/* Startseite v2 (index-v2.html) – Hero-Umbau laut Briefing vom 15.11.2026.
   Lädt nach hero-ab-overrides.css und überschreibt nur, was die neue
   Headline, die Beweiszeile und die schmale Reihenfolge brauchen. */

/* ---------- Headline: zwei Sätze, je eine Zeile ---------- */

/* Längste Zeile misst rund 9,9em – die Schriftgröße folgt der Spaltenbreite,
   damit kein Satz umbricht oder ins Showreel läuft. */
.hero--ab .a-h1 {
  font-size: clamp(26px, 9.8cqw, 76px);
  line-height: 0.95;
}

.hero--ab .a-h1 .ln i:first-child {
  margin-inline-start: 0;
}

/* Knockout-Intro: beide Sätze untereinander, gleiche Zeilenhöhe wie die
   Ziel-Headline, damit der Übergang deckungsgleich landet */
.hab-knockout .b-h1 {
  font-size: min(8vw, 20vh, 150px);
  line-height: 0.95;
}

.hab-knockout .b-h1 .ln {
  display: block;
}

.hab-knockout .b-h1 .ln + .ln {
  margin-left: 0;
}

/* ---------- Beweiszeile ---------- */

.hero--ab .a-proof {
  list-style: none;
  padding: 0;
  margin: clamp(24px, 2.8vw, 34px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  width: min(100%, 36rem);
}

.hero--ab .a-proof__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.hero--ab .a-proof__num {
  font-family: var(--d);
  font-weight: 700;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  transition: color 0.25s;
}

.hero--ab .a-proof__desc,
.hero--ab .a-proof__client {
  font-family: var(--m);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}

.hero--ab .a-proof__desc {
  margin-top: 9px;
  color: var(--on-dark);
}

.hero--ab .a-proof__client {
  margin-top: 4px;
  font-size: 9px;
  color: var(--on-dark-soft);
}

.hero--ab .a-proof__item:hover .a-proof__num,
.hero--ab .a-proof__item:focus-visible .a-proof__num {
  color: var(--accent);
}

.hero--ab.morphing .a-proof.a-fade.d2,
.hero--ab.hero-ab-skip.settled .a-proof.a-fade.d2 {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease 0.16s, transform 0.45s ease 0.16s;
}

/* Subline: gekürzt auf zwei Sätze, läuft in der breiten Ansicht zweizeilig */
.hero--ab .a-sub {
  max-width: 56ch;
  text-wrap: balance;
}

/* ---------- Einstiege: drei dezente Buttons (Kontur statt Fläche) ---------- */

.hero--ab .a-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 2.8vw, 34px);
}

.hero--ab .a-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--on-dark-line);
  border-radius: 999px;
  font-family: var(--m);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  transition: color 0.25s, border-color 0.25s;
}

.hero--ab .a-link .arr {
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero--ab .a-link:hover,
.hero--ab .a-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.hero--ab .a-link:hover .arr {
  transform: translateX(4px);
}

.hero--ab.morphing .a-links.a-fade.d2,
.hero--ab.hero-ab-skip.settled .a-links.a-fade.d2 {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease 0.16s, transform 0.45s ease 0.16s;
}

/* Breite Ansicht: Beweiszeile folgt direkt auf die Einstiege; der Textblock
   bleibt als Ganzes vertikal in der Spalte zentriert */
@media (min-width: 1041px) {
  .hero--ab.settled .a-proof,
  .hero--ab.morphing .a-proof,
  .hero--ab.hero-ab-skip.settled .a-proof {
    margin-top: clamp(44px, 4.6vw, 64px);
    margin-bottom: auto;
  }
}

/* ---------- Schmale Ansicht: Showreel direkt unter die Subline ---------- */

@media (max-width: 1040px) {
  /* Kinder der Textspalte werden zu Rasterzeilen, damit das Showreel
     zwischen Subline und Beweiszeile stehen kann. */
  .hero--ab .a-copy {
    display: contents;
  }

  .hero--ab .a-grid {
    gap: 0;
  }

  .hero--ab .a-ovl { order: 1; }
  .hero--ab .a-h1 { order: 2; }
  .hero--ab .a-sub { order: 3; }
  .hero--ab .a-reel { order: 4; }
  .hero--ab .a-links { order: 5; }
  .hero--ab .a-proof { order: 6; }

  /* Ohne Textspalte als Bezugsrahmen: Größe aus der Fensterbreite */
  .hero--ab .a-h1 {
    font-size: clamp(26px, 8.7vw, 72px);
  }

  .hero--ab.morphing .a-reel,
  .hero--ab.settled .a-reel,
  .hero--ab .a-reel {
    margin-top: clamp(28px, 5vw, 40px);
  }

  .hero--ab .a-links {
    margin-top: clamp(28px, 5vw, 40px);
  }

  .hero--ab .a-proof {
    margin-top: clamp(32px, 6vw, 44px);
  }
}

@media (max-width: 640px) {
  .hero--ab .a-h1 {
    font-size: clamp(26px, 8.7vw, 72px);
    letter-spacing: -0.045em;
  }

  .hab-knockout .b-h1 {
    font-size: min(8.3vw, 11.5vh, 76px);
    line-height: 0.95;
  }

  .hero--ab .a-links {
    gap: 8px;
  }

  .hero--ab .a-link {
    gap: 7px;
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .hero--ab .a-proof__desc {
    font-size: 8.5px;
    letter-spacing: 0.08em;
  }

  .hero--ab .a-proof__client {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
}
