/* =========================================================
   Erste Ansicht, Variante f (Runde 4, Falko 23.11.2026: "der muss knallen", Video und Überschrift ausgewogen in der Mitte,
   darunter die Schritte, dann gleich die Tour). Baut auf den Grundstilen der dunklen Karte aus css/hero-scroll.css auf
   (ohne dessen Bühne, js/hero-scroll.js lädt nicht). Beim Laden steigen Zeilen und Video einmal auf, kein Zoom.
   ========================================================= */
.hf { padding: 8px 0 0; }
.hf .hs-karte { padding: clamp(56px, 7vh, 88px) clamp(28px, 5vw, 72px) 0; }
.hf-in { display: grid; grid-template-columns: minmax(0, 780px) auto; justify-content: center; align-items: center; gap: clamp(48px, 6vw, 96px); }
.hf .hs-titel { font-size: clamp(40px, 4.4vw, 66px); }
.hf-reel { position: relative; margin: 0; width: clamp(250px, 21vw, 320px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #0f1416;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 90px -30px rgba(0,0,0,.7), 0 0 120px -20px rgba(36,71,209,.45); }
.hf-reel video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hf-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 13px; font-weight: 560; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.hf-tag i { width: 18px; height: 18px; border-radius: 50%; background: #e6f4ec; position: relative; }
.hf-tag i::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 4px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* Die sechs Schritte als Punkte unten in der Karte, führen zur Tour */
.hf-schritte { margin-top: clamp(40px, 6vh, 64px); border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 26px; display: flex; align-items: center; gap: 28px; }
.hf-schritte > .mono { flex: none; color: rgba(255,255,255,.5); }
.hf-schritte ol { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; position: relative; }
.hf-schritte ol::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(142,162,255,.5), rgba(142,162,255,.1)); }
.hf-schritte a { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 12px; border-radius: 999px; background: #1b1a18; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 540; letter-spacing: -.01em; transition: background .25s, box-shadow .25s; }
.hf-schritte a .mono { color: #8ea2ff; font-size: 11px; }
.hf-schritte a:hover { background: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.hf-schritte a:hover .mono { color: #fff; }

/* Einmal beim Laden: Zeilen steigen auf, das Video schiebt sich hoch, die Schritte kommen nacheinander */
html.bew .hf-text > *, html.bew .hf .hs-titel .zeile { animation: hf-rein .9s cubic-bezier(.16, 1, .3, 1) backwards; }
html.bew .hf .hs-titel .zeile:nth-child(1) { animation-delay: .08s; } html.bew .hf .hs-titel .zeile:nth-child(2) { animation-delay: .16s; }
html.bew .hf-text > .hs-sub { animation-delay: .26s; } html.bew .hf-text > .liste { animation-delay: .34s; } html.bew .hf-text > .einw, html.bew .hf-text > .hinweis { animation-delay: .42s; }
html.bew .hf-text > h1 { animation: none; }
html.bew .hf-reel { animation: hf-hoch 1.1s cubic-bezier(.16, 1, .3, 1) .2s backwards; }
html.bew .hf-schritte li { animation: hf-rein .7s cubic-bezier(.16, 1, .3, 1) backwards; }
html.bew .hf-schritte li:nth-child(1) { animation-delay: .5s; } html.bew .hf-schritte li:nth-child(2) { animation-delay: .56s; } html.bew .hf-schritte li:nth-child(3) { animation-delay: .62s; }
html.bew .hf-schritte li:nth-child(4) { animation-delay: .68s; } html.bew .hf-schritte li:nth-child(5) { animation-delay: .74s; } html.bew .hf-schritte li:nth-child(6) { animation-delay: .8s; }
@keyframes hf-rein { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hf-hoch { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }

@media (max-width: 1199px) {
  .hf-in { grid-template-columns: minmax(0, 1fr) auto; }
  .hf .hs-titel .zeile { white-space: normal; }
}
@media (max-width: 899px) {
  .hf-in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; }
  .hf-text { justify-self: stretch; }
  .hf-reel { width: min(280px, 72vw, calc((100svh - 330px) * .5625)); } /* passt am Ende ganz ins Fenster, auch auf kleinen Handys */
  .hf-schritte { flex-direction: column; align-items: stretch; gap: 14px; }
  .hf-schritte ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hf-schritte ol::before { display: none; }
}
@media (max-width: 640px) {
  .hf .hs-buehne { padding: 0 12px; }
  .hf .hs-karte { padding: 34px 20px 0; border-radius: 24px; }
  .hf-schritte a { font-size: 14px; padding: 9px 8px; gap: 6px; }
  .hf-schritte { padding-bottom: 20px; }
}

/* Kaufen (später, nur mit config kaufen_url und preis) */
.hf-kaufen { margin-top: 18px; }
.kaufen { padding: 120px 0 40px; }
.kaufen-in { display: grid; gap: 36px; justify-items: start; }
.kaufen-karte { display: grid; gap: 18px; justify-items: start; padding: 36px 40px; border-radius: 24px; background: var(--s); border: 1px solid var(--line); box-shadow: var(--sch2); }
.kaufen-preis { margin: 0; font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -.04em; }

/* Runde 5: Übergang beim Scrollen (js/hero-f.js setzt .hf-an, --hf-oben, clip-path der Karte und die Lage des Videos).
   Die Karte steht, solange der Abschnitt seinen Rest (85vh) durchscrollt, und wird dabei zum Fenster um das Video. */
html.bew .hf.hf-an { box-sizing: content-box; height: calc(var(--hf-h, 760px) + 100vh); } /* echte Höhe statt Padding: sticky läuft nicht ins Padding */
html.bew .hf.hf-an { position: relative; z-index: 3; }
/* Die stehende Bühne deckt den Bildschirm ab, bis die Tour darunter übernimmt (die Tour rückt per margin-top unter den Hero) */
html.bew .hf.hf-an .hs-buehne { position: sticky; top: var(--hf-oben, 84px); background: var(--bg); min-height: calc(100svh - var(--hf-oben, 84px)); will-change: opacity; }
html.bew .hf.hf-weg .hs-buehne { visibility: hidden; pointer-events: none; }
html.bew .hf-ziel { z-index: 4; pointer-events: none; will-change: opacity; }
html.bew .hf.hf-an .hs-karte { will-change: clip-path; }
html.bew .hf.hf-an .hf-reel { will-change: transform; }
html.bew .hf.hf-an .hf-text, html.bew .hf.hf-an .hf-schritte { will-change: opacity, transform; }
html.bew .hf.hf-klein .hf-text, html.bew .hf.hf-klein .hf-schritte { visibility: hidden; }
@media (max-height: 820px) and (min-width: 900px) {
  .hf .hs-karte { padding-top: 40px; }
  .hf .hs-titel { margin-top: 18px; }
  .hf-schritte { margin-top: 28px; padding: 16px 0 18px; }
}

/* Gründer Angebot bald (Falko 26.11.2026): der Text steht auch am Handy, statt des Countdowns */
@media (max-width: 640px) { .hf .hn-angebot span { display: inline; } }
