/* ============================================================
   Hero (Designvorschlag, 1:1 nachgebaut) — isoliert via hx-Präfix.
   Marke: unsere Teal-/Weiß-Welt + --font-sans. Nav liefert der globale Header.
   ============================================================ */
.hx-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
  background: var(--c-surface);
  --band: 64%;
  --hx-sage: #9cc7c3;
}

/* Petrol-Band + gewellte Unterkante (eine Einheit) */
.hx-bandgroup {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Band + Wellenkante = EINE SVG-Form mit EINEM Gradient → nahtloser Verlauf,
   der durch die Welle durchgezogen wird (keine Bruchkante an der Naht). */
.hx-bandsvg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--band) + 96px);
  display: block;
}

/* Inhalt */
.hx-inner {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  padding: 0 clamp(28px, 5vw, 72px);
}

/* Portrait links */
.hx-pwrap {
  position: relative;
  justify-self: center;
  align-self: center;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  margin-top: 34px;
}

.hx-portrait {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(10, 60, 54, 0.45);
}

.hx-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hx-pring {
  position: absolute;
  z-index: 1;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

/* Rechte Spalte */
.hx-col {
  position: relative;
  z-index: 5;
  max-width: 900px;
}

.hx-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.05vw, 15px);
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px;
}

.hx-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  text-wrap: balance;
}

.hx-line { display: block; }
.hx-li { display: block; }

.hx-subline {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 600px;
}

.hx-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 18px);
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Auf dem Teal-Band gut lesbar (wie die Mobile-Variante des Vorschlags) */
.hx-btn--primary {
  background: #fff;
  color: var(--c-teal-700);
  border: 1px solid #fff;
  box-shadow: 0 14px 30px -12px rgba(10, 70, 62, 0.6);
}
.hx-btn--primary:hover { background: var(--c-teal-100); color: var(--c-teal-900); }

.hx-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.hx-btn--ghost:hover { background: #fff; color: var(--c-teal-700); }

/* ====== Deko (Ring-Set) ====== */
.hx-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hx-ar-sage {
  width: 330px;
  height: 330px;
  border: 14px solid var(--hx-sage);
  left: calc(46% - 200px);
  bottom: -70px;
  z-index: 1;
  opacity: 0.9;
}
.hx-ar-ring-lg {
  width: 240px;
  height: 240px;
  border: 9px solid rgba(255, 255, 255, 0.32);
  right: 8%;
  top: -90px;
}
.hx-ar-ring-sm {
  width: 120px;
  height: 120px;
  border: 7px solid var(--hx-sage);
  right: 5%;
  bottom: 8%;
  opacity: 0.85;
}
.hx-ar-dot {
  width: 34px;
  height: 34px;
  background: var(--c-teal-700);
  right: 16%;
  bottom: 30%;
}

/* ============================================================
   Lade-Choreografie — nur bei prefers-reduced-motion: no-preference.
   Ruhezustand (ohne .intro) ist immer vollständig sichtbar.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hx-stage.intro .hx-eyebrow,
  .hx-stage.intro .hx-subline,
  .hx-stage.intro .hx-actions { opacity: 0; }

  /* Band + Welle laden gemeinsam von oben nach unten (kurze Strecke, ruhig) */
  .hx-stage.intro .hx-bandgroup { animation: hxFillDown 1.9s cubic-bezier(0.42, 0, 0.38, 1) both; }
  .hx-stage.intro .hx-pwrap { animation: hxIrisIn 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both; }
  .hx-stage.intro .hx-pring { animation: hxRingPop 0.7s ease 0.55s both; }
  .hx-stage.intro .hx-eyebrow { animation: hxUpIn 0.6s ease 0.35s both; }
  /* Maske unten um Unterlängen-Tiefe erweitern, damit g/z/"." nicht abgeschnitten werden */
  .hx-stage.intro .hx-headline .hx-line {
    overflow: hidden;
    padding-bottom: 0.18em;
    margin-bottom: -0.18em;
  }
  .hx-stage.intro .hx-headline .hx-li { animation: hxLineIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hx-stage.intro .hx-headline .hx-line:nth-child(1) .hx-li { animation-delay: 0.42s; }
  .hx-stage.intro .hx-headline .hx-line:nth-child(2) .hx-li { animation-delay: 0.54s; }
  .hx-stage.intro .hx-subline { animation: hxUpIn 0.7s ease 0.95s both; }
  .hx-stage.intro .hx-actions { animation: hxUpIn 0.7s ease 1.6s both; }
  .hx-stage.intro .hx-ar-sage { animation: hxScaleIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.9s both; }
  .hx-stage.intro .hx-ar-ring-lg { animation: hxScaleIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 1.0s both; }
  .hx-stage.intro .hx-ar-ring-sm { animation: hxScaleIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 1.1s both; }
  .hx-stage.intro .hx-ar-dot { animation: hxScaleIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 1.2s both; }
}

.hx-li { transform: translateY(0); }

@keyframes hxFillDown {
  from { clip-path: inset(0 0 calc(36% + 60px) 0); }
  to { clip-path: inset(0 0 calc(36% - 130px) 0); }
}
@keyframes hxIrisIn {
  from { clip-path: circle(0% at 50% 50%); opacity: 0; transform: scale(0.98); }
  to { clip-path: circle(72% at 50% 50%); opacity: 1; transform: scale(1); }
}
@keyframes hxRingPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hxUpIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes hxLineIn {
  from { transform: translateY(115%); }
  to { transform: translateY(0); }
}
@keyframes hxScaleIn {
  from { opacity: 0; transform: scale(0.78); }
  to { opacity: 1; transform: scale(1); }
}

/* ============ Responsive: gestapelt ============ */
@media (max-width: 1024px) {
  .hx-stage { height: auto; min-height: 100dvh; }
  .hx-bandsvg { display: none; }
  .hx-inner {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 100dvh;
    padding: 76px clamp(22px, 6vw, 40px) 104px;
    background: linear-gradient(135deg, var(--c-teal-500) 0%, var(--c-teal-700) 50%, var(--c-teal-900) 100%);
  }
  .hx-pwrap { width: min(58vw, 32vh, 260px); margin: 0 auto 20px; }
  .hx-headline { font-size: clamp(28px, 6vw, 42px); }
  .hx-subline { font-size: clamp(15px, 2.6vw, 18px); margin-top: 16px; }
  .hx-actions { margin-top: 24px; }
  .hx-col { max-width: none; }
  .hx-deco.hx-ar-ring-lg { display: none; }
}
