/* 06-hero.css — Hero, Reveal-System, Section-Kicker
   Teil von css/living-canvas (aufgeteilt). Ladereihenfolge = Dateiname.
   Siehe docs/components/ fuer die Zuordnung Sektion -> Datei. */
/* 8. Hero — Ambient Living Canvas */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px clamp(24px, 6vw, 80px) 70px; /* extra top for floating nav */
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob-1 {
  width: 550px;
  height: 550px;
  background: var(--teal);
  top: -20%;
  right: -15%;
  animation: drift-1 18s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: var(--electric-soft);
  bottom: -15%;
  left: -8%;
  animation: drift-2 22s ease-in-out infinite alternate;
}
.hero-blob-3 {
  width: 220px;
  height: 220px;
  background: var(--apricot);
  top: 55%;
  right: 25%;
  animation: drift-3 15s ease-in-out infinite alternate;
}
@keyframes drift-1 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-30px) scale(1.08); }
}
@keyframes drift-2 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-30px,25px) scale(0.92); }
}
@keyframes drift-3 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(20px,-15px) scale(1.05); }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

/* Mobile-specific hero elements hidden on desktop */
.mobile-hero-header {
  display: none;
}
.mobile-break {
  display: none;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--electric-d);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.hero-inner h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.subline {
  color: var(--grey);
  font-size: 15px;
  max-width: 54ch;
  margin: 0 0 26px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pulse-visual {
  aspect-ratio: 0.9/1;
  border-radius: 38% 62% 58% 42% / 48% 38% 62% 52%;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: 0 20px 50px rgba(16, 35, 51, 0.1);
  overflow: hidden;
  transition: transform 0.8s var(--ease-smooth);
}
.pulse-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  border: 3px solid var(--electric);
  opacity: 0.5;
  animation: pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.05); opacity: 0.15; }
}
.hand-drawn-underline {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  stroke: var(--apricot);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  stroke-linecap: round;
}
.hand-drawn-underline.visible {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s ease;
}

/* 9. Reveal System (Initial States for GSAP) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
}
.reveal-text {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transform-origin: left center;
}
/* Staggering is now handled by GSAP */

/* 10. Section Kicker */
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--electric-d);
  background: var(--electric-soft);
  border-radius: var(--radius-chip);
  padding: 5px 14px;
  margin: 0 0 16px;
}

/* Mobil: mehr Luft unter der fixierten Nav, einspaltig, Bild nicht dominant */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 116px clamp(24px, 6vw, 80px) 56px;
  }
  .hero-inner {
    gap: 32px;
  }
  .hero-inner h1 {
    /* Kein automatischer Umbruch (hyphens), da es bei kurzen Headlines oft zu unglücklichen Trennungen führt */
  }
  .subline {
    font-size: 15.5px;
    color: var(--ink); /* Increase contrast on mobile */
  }
  /* Der dekorative Cursor haengt am Bild und wuerde mobil daneben stehen */
  .miro-cursor {
    display: none;
  }
  /* Clean up the background for mobile to reduce clutter and improve contrast */
  .qs-shape-container {
    display: none;
  }
  .hero-blob {
    opacity: 0.15;
  }
}

/* Ab hier steht das Portrait ueber dem Text (Column-Reverse) */
/* Ab hier wird das Layout an Mobile angepasst */
@media (max-width: 760px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .subline {
    max-width: none;
  }
  
  /* Show mobile header (Image + Kicker side-by-side) */
  .mobile-hero-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
  }
  .mobile-hero-header .kicker {
    margin-bottom: 0;
    line-height: 1.5;
  }
  
  /* Format mobile portrait */
  .pulse-visual-mobile {
    width: 110px;
    height: auto;
    aspect-ratio: 0.9/1;
    margin: 0;
    border-radius: 38% 62% 58% 42% / 48% 38% 62% 52%;
    flex-shrink: 0;
  }
  
  /* Hide desktop elements on mobile */
  .desktop-portrait-wrap {
    display: none;
  }
  .desktop-kicker {
    display: none;
  }
  .mobile-break {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 108px clamp(20px, 5vw, 40px) 48px;
  }
  .hero-buttons {
    gap: 10px;
  }
  .hero-buttons .btn {
    flex: 1 1 auto;
  }
}

/* Mehr Luft im Hero (25.09.2026): Die Headline war mit -0.04em und
   Zeilenhoehe 1.05 zu dicht, und die handgezeichnete Unterstreichung
   (bottom: -15px) ragte in die 18px Abstand zur Subline hinein. */
.hero-inner h1 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 40px;
}
.subline {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 36px;
}
.hero-buttons { gap: 16px; }
@media (max-width: 760px) {
  .hero-inner h1 { margin-bottom: 32px; line-height: 1.2; }
  .subline { margin-bottom: 30px; }
}
