/* ── HERO — großer Einstieg mit Headline, Medium und Kennzahlen-Leiste ──
   Varianten:
   .hero          Startseite: Schreibmaschinen-Headline, Video (Status-Uhr .hero-status optional)
   .hero--case    Case Study: kompakter, Meta-Leiste, Bild statt Video
   .hero--results Ergebnisse: wie .hero, statische Headline, Bild (.hero-visual) statt Video
   .hero--case-alt  Zusatz zu .hero--case: Kennzahlen ohne Umbruch
   Eckdaten (Case): <dl class="hero-facts"> mit .hero-facts-item, nebeneinander ohne Linien
     (dt.hero-facts-label label t-micro, dd.hero-facts-val t-lead)
   Schrift: hero-h t-display (Case: t-h2) · hero-desc t-body ·
            hero-num-val t-h2 · hero-num-label label t-xs                */
.hero {
  padding: calc(var(--nav-h) + clamp(24px,3vw,40px)) var(--gutter) clamp(80px,10vw,160px);
  min-height: clamp(640px,100svh,1380px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-top { display: flex; align-items: flex-start; margin-bottom: clamp(10px,1.2vw,18px); opacity: 0; animation: fadeUp .6s .08s ease forwards; }
.hero-status {
  position: absolute; top: calc(var(--nav-h) + var(--space-l)); right: var(--gutter);
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  opacity: 0; animation: fadeUp .6s .08s ease forwards;
}
.hero-status-badge { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.hero-status-time  { color: var(--mute); font-variant-numeric: tabular-nums; margin-top: -4px; }
.hero-mid {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px,4vw,64px);
  flex: 1; padding: clamp(24px,3vw,48px) 0;
  opacity: 0; animation: fadeUp .6s .14s ease forwards;
}
.hero-h { font-weight: 700; flex-shrink: 0; pointer-events: none; }
.hero-top:empty { display: none; } /* ohne Eyebrow kein Leerraum über der Headline */
/* Desktop: Headline-Größe nach Breite und Höhe (--fs-hero), damit sie mit Button und Zahlen auf den ersten Blick passt */
@media (min-width: 861px) { .hero-h.t-display { font-size: var(--fs-hero); } }
/* Niedrige Bildschirme (Laptop, kleine Monitore): weniger Luft, damit Button und Zahlen ohne Scrollen sichtbar sind */
@media (min-width: 861px) and (max-height: 820px) {
  .hero { padding-bottom: 28px; }
  .hero-mid { padding: 12px 0; }
}
.hero-typeword { color: var(--ink); }
/* hero.js legt alle Wörter unsichtbar übereinander (.hero-typeghost): Die Headline ist so hoch
   wie ihr längstes Wort und springt beim Tippen nicht */
.hero-typebox   { display: inline-grid; vertical-align: top; }
.hero-typebox > * { grid-area: 1 / 1; }
.hero-typeghost { visibility: hidden; }
.hero-cursor {
  display: inline-block; font-weight: 300; color: var(--red);
  margin-left: 2px; transform: scaleX(.5);
  animation: heroCursorBlink .9s step-end infinite;
}
@keyframes heroCursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 48px;
  opacity: 0; animation: fadeUp .6s .32s ease forwards;
}
.hero-desc  { color: var(--mid); max-width: 720px; }
.hero-cta   { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-media { flex-shrink: 0; height: clamp(360px,40svh,500px); aspect-ratio: 16/10; }

/* Kennzahlen-Leiste am unteren Rand */
.hero-numbers {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; animation: fadeUp .6s .44s ease forwards;
}
.hero-num-item    { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: clamp(20px,2.5vw,36px) clamp(24px,3vw,48px); text-align: center; }
.hero-num-divider { width: 1px; align-self: stretch; background: var(--line); flex-shrink: 0; margin: 0 clamp(10px,2vw,24px); }
.hero-num-val     { font-weight: 700; color: var(--ink); white-space: nowrap; } /* „Mio. €“ nicht umbrechen */
.hero-num-label   { color: var(--mid); }

/* Startseite und Ergebnisse (Desktop): Kennzahlen-Leiste im Fluss statt absolut, damit Button und
   Leiste sich auf niedrigen Bildschirmen nie überlagern. Die Leiste bleibt durch .hero-mid (flex: 1) unten. */
@media (min-width: 861px) {
  .hero:not(.hero--case) { padding-bottom: 0; }
  .hero:not(.hero--case) .hero-numbers { position: static; margin: clamp(32px,4vw,64px) calc(-1 * var(--gutter)) 0; }
}

/* Variante: Ergebnisse — Bild ohne Neigung, füllt .hero-media */
.hero--results .hero-visual { height: 100%; aspect-ratio: auto; transform: none; }

/* Variante: Case Study */
.hero--case { min-height: clamp(640px,78svh,1000px); padding-bottom: clamp(56px,7vw,200px); }
.hero-meta {
  display: flex; align-items: stretch; width: fit-content; max-width: 100%;
  margin-top: 26px; padding: 0 10px;
  background: rgba(20,6,0,.07); border-radius: 100px; overflow: hidden;
}
.hero-meta-item    { display: flex; flex-direction: column; padding: 10px clamp(16px,2vw,26px); line-height: 1.4; }
.hero-meta-divider { width: 1px; background: var(--line); flex-shrink: 0; }
.hero-meta-label   { color: #fff9; }
.hero-meta-val     { color: var(--ink); font-weight: 500; }
.hero-visual {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 16/10;
  transform: perspective(1200px) rotateX(1deg) rotateY(-5deg);
  box-shadow: var(--shadow-lg);
  background: #85817a;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .hero { min-height: 100svh; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 0; justify-content: flex-start; }
  .hero-h      { margin-bottom: clamp(12px,3vw,24px); }
  .hero-top    { margin-bottom: 10px; }
  .hero-status { display: none; }
  .hero-mid    { flex-direction: column-reverse; justify-content: center; align-items: stretch; gap: 28px; padding: 0 0 30px; }
  .hero-mid > * { min-width: 0; }
  .hero-media  { width: 100%; height: auto; aspect-ratio: 16/9; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 21px; }
  .hero-numbers { position: static; margin: 0 calc(-1 * var(--gutter)); }
  .hero-num-item { padding: 15px 10px; }
  .hero-num-item:last-child,
  .hero-num-divider:nth-last-child(2) { display: none; }
  .hero-num-divider { margin: 0; }
  .hero-num-val { font-size: 20px; white-space: nowrap; } /* UI: 3 Zahlen müssen nebeneinander passen, auch „75 Mio.+ €“ */
  /* Startseiten-Hero etwas kompakter: passt so auf gängigen Handys (z. B. iPhone, ca. 715 px sichtbar)
     komplett über die Adressleiste, die Kennzahlen-Leiste liegt nicht dahinter */
  .hero:not(.hero--case) { padding-top: calc(var(--nav-h) + 12px); }
  .hero:not(.hero--case) .hero-mid { gap: 20px; padding-bottom: 20px; }
  .hero:not(.hero--case) .hero-bottom { margin-top: 12px; }
  .hero:not(.hero--case) .hero-cta { margin-top: 18px; }
  .hero:not(.hero--case) .hero-num-item { padding: 11px 10px; }

  .hero--case { min-height: auto; }
  .hero-meta { flex-direction: column; width: 100%; }
  .hero-meta-item { padding: 10px 0; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .hero-meta-divider { width: 100%; height: 1px; }
  .hero-visual { transform: none; border-radius: 12px; box-shadow: var(--shadow-sm); }
}

/* Zusatz: Case Study */
.hero--case-alt .hero-num-val { white-space: nowrap; }
/* Platz für die Kennzahlen-Leiste (absolut unten), damit Button/Eckdaten nicht hineinragen */
@media (min-width: 861px) { .hero--case-alt { padding-bottom: clamp(190px, 15vw, 260px); } }

/* Eckdaten: schlicht nebeneinander, ohne Linien, Werte ohne Umbruch */
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px clamp(32px, 3.5vw, 56px); margin-top: clamp(28px, 3vw, 44px); }
.hero-facts-item  { min-width: 0; }
.hero-facts-label { display: block; margin-bottom: 4px; font-weight: 400; color: var(--mute); }
.hero-facts-val   { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.25; white-space: nowrap; }


@media (max-width: 860px) {
  .hero-facts { gap: 14px 28px; }
}
