/*
Theme Name: Pingu Theme
Author: WP Studio
Description: Performance-optimiertes Pingu Theme – Komponenten-basiert, Lazy Loading ready
Version: 1.0.8
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: pingu-theme
*/


@font-face {
  font-family: 'Instrumental-Variable';
  src: url('assets/fonts/InstrumentSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:   #1a1a1a;
  --color-accent:    #e63946;
  --color-bg:        #ffffff;
  --color-bg-alt:    #f5f5f5;
  --dark-blue:       #082f49;
  --dark-blue-text:  #082f49;
  --color-muted:     #6b7280;
  --color-border:    #e5e7eb;
  --font-base:       system-ui, -apple-system, sans-serif;
  --max-width:       1440px;
  --gap:             clamp(1rem, 3vw, 2rem);
  --section-padding: clamp(3rem, 8vw, 6rem);
  --radius:          8px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-base); color: var(--dark-blue-text); background: var(--color-bg); line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
}

.boxed-layout {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* === LAZY LOAD === */
.lazy-component {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lazy-component.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* === HEADER === */
.site-header {
  width: 100%;
  position: fixed;
  z-index: 999;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 40px 2vw;
}

.site-header__nav {
  justify-self: start;
}

.site-header__logo {
  justify-self: center;
}

.site-header__logo img {
  display: block;
  width: 130px;
  height: auto;
}

.site-header__cta {
  justify-self: end;
  gap: 40px;
  display: flex;
}

/* Die Icon-Gruppe selbst */
.header-icons {
  display: inline-flex;
  align-items: center;
  gap: 40px; 
}

/* Styling für die Icon-Buttons */
.header-icon-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #323232; /* Deine Farbe */
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-icon-link:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.header-icon-link svg {
  display: block;
  width: 32px; /* Einheitliche Größe */
  height: 32px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 4rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-family: 'Instrumental-Variable';
}

/* Mobile Toggle (versteckt auf Desktop) */
.nav-toggle {
  display: none;
}

/* === PRIMARY BUTTON === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--dark-blue);
  color: #ffffff;
  padding: 2px;
  border-radius: 24px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary__text {
  padding: 10px 20px;
}
 
.btn-primary__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary svg  {
  transition: 0.2s all;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-primary:hover svg {
  transform: rotate(45deg);
}

/* === MOBILE === */
@media (max-width: 768px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "nav nav";
    padding: 20px 2vw;
  }

  .site-header__logo  { grid-area: logo; justify-self: start; }
  .nav-toggle         { grid-area: toggle; display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
  .nav-toggle span    { display: block; width: 24px; height: 2px; background: var(--color-primary); }
  .site-header__nav   { grid-area: nav; display: none; }
  .site-header__nav.is-open { display: block; }
  .site-header__cta   { display: none; }
  .nav-menu           { flex-direction: column; gap: 1rem; padding: 1rem 0; }
}

/* === HERO === */
.hero {
  position: relative;
  background: linear-gradient(0deg,rgba(240, 249, 255, 1) 0%, rgba(255, 255, 255, 0) 50%);
  text-align: center;
  overflow: hidden;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  min-height: 95vh;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 19vh;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero__title {
  font-family: 'Instrumental-Variable';
  font-size: 115px;
  font-weight: 700;
  color: var(--dark-blue);
  max-width: 1000px;
  line-height: 1;
  background: linear-gradient(to right, #44a1d3 0%, #005a9c 50%, #44a1d3 100%);  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--dark-blue-text);
}

/* Grosser blasser Hintergrundtext */
.hero__bg-text {
  font-family: 'Instrumental-Variable';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(5rem, 16vw, 20rem);
  font-weight: 900;
  white-space: nowrap;
  color: rgba(100, 160, 210, 0.15);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
  user-select: none;
}

/* Produktbild */
.hero__image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.hero__image img {
  width: clamp(300px, 55vw, 680px);
  height: auto;
  object-fit: contain;
}

/* Scroll-Indikator rechts */
.hero::after {
  content: '';
  position: absolute;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60px;
  background: var(--dark-blue);
  opacity: 0.5;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hero__bg-text { font-size: 4rem; }
  .hero::after { display: none; }
}



/* === CATEGORY GRID === */
.category-grid {
  padding-block: var(--section-padding);
}

.category-grid__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.category-grid__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 1;
}

/* === CATEGORY CARD === */
.category-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  background: #111;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.015);
}

/* Grosse Karte */
.category-card--large {
  aspect-ratio: 1;
}

/* Kleine Karten */
.category-grid__stack .category-card {
  height: calc(50% - 6px);
}

/* Overlay unten */
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  pointer-events: none;
}

/* Footer */
.category-card__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.category-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.category-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #ffffff;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.category-card:hover .category-card__arrow {
  background: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  .category-grid__layout {
    grid-template-columns: 1fr;
  }

  .category-card--large {
    min-height: 320px;
  }

  .category-grid__stack .category-card {
    min-height: 220px;
  }
}