/* =========================================================
   Erste Ansicht, Variante e (Vorschau 20.11.2026): Bühne zum Durchscrollen, Idee von heyeddie.ai, in eigener Form.
   Falkos Regel: kein Zoom. Darum wird nichts größer oder kleiner: die dunkle Karte zieht sich als Ausschnitt
   (clip-path) auf den Bildschirm der App zusammen, Video und Karten gleiten nur (translate), die App blendet ein.
   Grundzustand (ohne JavaScript, ohne Bewegung, unter 1000 px): alles steht untereinander fertig da.
   Die Bühne gibt es nur mit .hs-an (setzt js/hero-scroll.js ab 1000 px und mit Bewegung).
   ========================================================= */
.hs { padding: 8px 0 30px; }
.hs-buehne { max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 20px; }

/* Die dunkle Karte mit Überschrift */
.hs-karte { position: relative; background: #131211; color: #fff; border-radius: 28px; overflow: hidden; padding: 64px 56px; isolation: isolate; }
.hs-grund { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 82% 40%, rgba(36,71,209,.32), transparent 70%), radial-gradient(50% 60% at 10% 100%, rgba(36,71,209,.14), transparent 70%); }
.hs-grund .schleife { left: -6%; width: 112%; height: 100%; will-change: transform; }
.hs-grund .schleife.zwei path { stroke: #8ea2ff; opacity: .16; }
/* Zeichen zum Scrollen: nur mit der Bühne, der Pfeil wippt sanft (kein Zoom, nur Gleiten) */
.hs-scroll { display: none; }
.hs-an .hs-scroll, .hs-an-m .hs-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; transform: translateX(-50%); white-space: nowrap;
  padding: 8px 10px 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: rgba(255,255,255,.82); font-size: 13.5px; }
.hs-scroll svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--akzent); color: #fff; }
html.bew .hs-scroll svg { animation: hs-wippen 1.6s ease-in-out infinite; }
@keyframes hs-wippen { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
.hs-grund .schleife path { stroke: #5674f6; opacity: .35; }
.hs-text { position: relative; max-width: 760px; }
.hs .hn-angebot { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.hs-titel { font-size: clamp(40px, 4.75vw, 72px); line-height: .95; letter-spacing: -.056em; font-weight: 620; margin: 28px 0 0; }
.hs-titel .zeile { display: block; white-space: nowrap; }
.hs-titel .a { color: #8ea2ff; }
.hs-sub { max-width: 540px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: rgba(255,255,255,.74); margin: 24px 0 0; text-wrap: pretty; }
.hs .liste { margin: 32px 0 0; width: min(590px, 100%); border-color: transparent; }
.hs .liste .pill { background: var(--akzent); padding-inline: 26px; }
.hs .liste .pill:hover { background: var(--akzent-2); }
.hs .liste .meldung { color: #fff; }
/* Am Handy steht die Meldung im weißen Formular (site.css), dort rot statt weiß (Falko 26.11.2026: weiß auf weiß) */
@media (max-width: 640px) { .hs .liste .meldung { color: var(--rot); } }
.hs .hinweis { color: rgba(255,255,255,.56); font-size: 13px; margin-top: 16px; }
.hs .einw { margin: 30px 0 0; width: min(590px, 100%); color: rgba(255,255,255,.78); }
.hs .einw a { color: #fff; }
.hs .einw + .hinweis { margin-top: 10px; }

/* Die App */
.hs-app { position: relative; display: flex; flex-direction: column; }
.hs-fenster { position: absolute; inset: 0; background: var(--s); border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--sch3); }
.hs-leiste { position: relative; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.hs-leiste b { margin-left: 12px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.hs-raster { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr) 300px; min-height: 0; }
/* Runde 3 (Falko 22.11.2026: echter Schnittplatz, Karten raus): links der Chat wie in Mit Chat schneiden, rechts der Text des Videos */
.hs-chat { gap: 12px !important; padding: 16px 14px !important; }
.hs-chat .hs-nav { padding: 0; border-radius: 0; color: inherit; }
.hs-chat-kopf b { font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.hs-blase { margin: 0; background: var(--s2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px !important; font-size: 13px; line-height: 1.45; color: var(--ink2) !important; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chips i { font-style: normal; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--s); color: var(--ink2); white-space: nowrap; }
.hs-eingabe { margin-top: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 12px; padding: 8px 8px 8px 12px !important; background: var(--s); }
.hs-eingabe em { flex: 1; font-style: normal; font-size: 12.5px; color: var(--muted); }
.hs-eingabe i { font-style: normal; font-size: 12px; font-weight: 560; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.hs-fertig-machen { background: var(--ink); color: #fff; }
.hs-reiter { display: flex; gap: 4px; margin: 0 0 14px !important; }
.hs-reiter > * { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.hs-reiter b { background: var(--s); color: var(--ink); box-shadow: 0 1px 2px rgba(19,18,17,.08); font-weight: 600; }
.hs-text-schnitt { position: relative; z-index: 1; font-size: 17px; line-height: 1.75; letter-spacing: -.01em; }
.hs-text-schnitt p { margin: 0 0 12px; }
.hs-text-schnitt s { text-decoration: none; display: inline-block; line-height: 1.3; padding: 0 6px; border-radius: 6px; font-size: 13px; vertical-align: 1px; transition: opacity .3s, color .3s, background .3s; }
.hs-text-schnitt s.pause { background: repeating-linear-gradient(135deg, var(--s3) 0 5px, #e6e2da 5px 10px); color: var(--muted); }
.hs-text-schnitt s.aeh { background: #fde9ee; color: #c1355b; }
.hs-text-schnitt s.raus { text-decoration: line-through; opacity: .45; background: transparent; }
.hs-text-schnitt .weiter { color: var(--ink2); }
.hs-raus { color: var(--akzent) !important; }
.hs-seite { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line); }
.hs-marke { display: flex; align-items: center; gap: 9px; padding: 0 6px 14px; font-weight: 640; letter-spacing: -.02em; font-size: 15px; }
.hs-marke svg { width: 24px; height: 24px; }
.hs-marke svg rect { stroke: var(--line2); stroke-width: 18; }
.hs-nav { padding: 7px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink2); }
.hs-nav.an { background: var(--hauch); color: var(--akzent); font-weight: 600; }
.hs-mitte { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 16px 16px; }
.hs-kopfzeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.hs-kopfzeile b { margin-right: auto; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.hs-tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--s3); color: var(--ink2); }
.hs-fertig { background: #e6f4ec; color: var(--ok); opacity: 0; transition: opacity .3s; }
.hs-fertig.da { opacity: 1; }
.hs-viewer { display: grid; place-items: center; padding: 16px; height: 520px; background: #131211; border-radius: 14px; }
.hs-video { position: relative; z-index: 5; height: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #0f1416; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -24px rgba(0,0,0,.6); }
.hs-video video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Die Spur: Wörter, Pausen und Versprecher. Geschnitten wird nur in der Breite, nichts wird skaliert */
.hs-spur { background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; }
.hs-spur-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 560; letter-spacing: -.01em; }
.hs-zeit { font-size: 11px; }
.hs-spur-zeile { position: relative; display: flex; gap: 3px; height: 44px; margin-top: 8px; }
.hs-spur-zeile i { flex: 1 0 auto; display: flex; align-items: flex-end; padding: 0 7px 5px; border-radius: 7px; background: var(--hauch); border: 1px solid var(--a-linie); color: var(--akzent-2); font-style: normal; font-size: 11.5px; font-weight: 540; white-space: nowrap; overflow: hidden;
  transition: flex-basis .45s var(--weich), flex-grow .45s var(--weich), padding .45s var(--weich), opacity .3s, margin .45s var(--weich), border-width .45s; }
.hs-spur-zeile i.pause { flex-basis: 34px; background: repeating-linear-gradient(135deg, var(--s3) 0 5px, #e6e2da 5px 10px); border-color: var(--line2); }
.hs-spur-zeile i.aeh { flex-basis: 40px; background: #fde9ee; border-color: #f4c5cf; color: #c1355b; }
.hs-spur-zeile i.raus { flex: 0 0 0; padding: 0; opacity: 0; margin-right: -3px; border-width: 0; }
.hs-kopf { position: absolute; top: -5px; bottom: -5px; left: var(--kopf, 0%); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); }

/* Rechts: was takealoop gerade macht */
.hs-panel { position: relative; padding: 16px 14px; border-left: 1px solid var(--line); }
.hs-panel-grund { position: absolute; inset: 0; background: var(--s2); border-radius: 0 0 21px 0; }
.hs-panel-kopf { position: relative; z-index: 1; margin: 0 0 12px 4px; font-size: 12.5px; font-weight: 560; color: var(--muted); }
.hs-karten { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hs-karten li { position: relative; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; border: 1px solid var(--line2); background: #fff; font-size: 14px;
  box-shadow: 0 1px 2px rgba(19,18,17,.05), 0 18px 40px -18px rgba(19,18,17,.28); }

.hs-schubs { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 6px 0; }
.hs-schubs > span:first-child { font-size: 15px; color: var(--ink2); }
.hs-schubs .beispiel { position: static; }

/* Unter 1000 px und ohne Bewegung: untereinander */
@media (max-width: 1199px) {
  .hs-raster { grid-template-columns: minmax(0, 1fr) 272px; }
  .hs-seite { display: none; }
}
@media (max-width: 999px) {
  .hs-raster { grid-template-columns: minmax(0, 1fr); }
  .hs-panel { border-left: 0; border-top: 1px solid var(--line); }
  .hs-panel-grund { border-radius: 0 0 21px 21px; }
  .hs-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 640px) {
  .hs { padding-top: 4px; }
  .hs-buehne { padding: 0 12px; gap: 14px; }
  .hs-karte { padding: 34px 20px 28px; border-radius: 24px; }
  .hs-titel { font-size: clamp(36px, 10.6vw, 52px); margin-top: 22px; }
  .hs-titel .zeile { white-space: normal; }
  .hs-sub { font-size: 16.5px; margin-top: 18px; }
  .hs .liste { margin-top: 24px; }
  .hs .hn-angebot { font-size: 12.5px; }
  .hs-leiste { height: 32px; }
  .hs-mitte { padding: 12px; }
  .hs-kopfzeile b { font-size: 14px; flex-basis: 100%; }
  .hs-viewer { height: 440px; padding: 12px; }
  .hs-spur-zeile { flex-wrap: wrap; height: auto; row-gap: 5px; }
  .hs-spur-zeile i { height: 30px; padding: 0 5px 4px; font-size: 10.5px; }
  .hs-spur-zeile i.pause { flex-basis: 16px; }
  .hs-spur-zeile i.aeh { flex-basis: 30px; }
  .hs-kopf { display: none; }
  .hs-panel { padding: 12px; }
  .hs-schubs .beispiel { display: none; }
}

/* ===== Die Bühne (ab 1000 px, mit Bewegung) ===== */
@media (min-width: 1000px) {
  .hs.hs-an { height: 210vh; margin-top: -76px; padding: 0; }
  .hs-an .hs-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; padding: 0; display: block; overflow: clip; }
  .hs-an .hs-karte { position: absolute; left: 24px; right: 24px; top: 84px; bottom: 24px; z-index: 2; display: flex; align-items: center; padding: 0 64px; border-radius: 0;
    clip-path: inset(var(--ct, 0px) var(--cr, 0px) var(--cb, 0px) var(--cl, 0px) round var(--crad, 28px)); }
  .hs-an .hs-text { max-width: min(760px, calc(100vw - 560px)); }
  .hs-an .hn-angebot { white-space: nowrap; }
  .hs-an .hs-app { position: absolute; left: max(24px, calc(50% - 640px)); right: max(24px, calc(50% - 640px)); top: 84px; bottom: 92px; }
  .hs-an .hs-fenster, .hs-an .hs-leiste { opacity: var(--win, 0); }
  .hs-an .hs-raster { flex: 1; grid-template-rows: minmax(0, 1fr); }
  .hs-an .hs-seite { opacity: var(--seite, 0); transform: translateX(calc((1 - var(--seite, 0)) * -28px)); }
  .hs-an .hs-kopfzeile { opacity: var(--oben, 0); transform: translateY(calc((1 - var(--oben, 0)) * -12px)); }
  .hs-an .hs-viewer { flex: 1; height: auto; min-height: 0; }
  .hs-an .hs-spur { opacity: var(--tl, 0); transform: translateY(calc((1 - var(--tl, 0)) * 40px)); }
  .hs-an [data-teil="panel"] { opacity: var(--panel, 0); transform: translateX(calc((1 - var(--panel, 0)) * 36px)); }
  .hs-an .hs-video { transform: translate(var(--x, 0px), var(--y, 0px)); will-change: transform; }
  .hs-an .hs-karten li { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)); will-change: transform; }
  .hs-an .hs-schubs { position: absolute; left: 0; right: 0; bottom: 26px; opacity: var(--schubs, 0); transform: translateY(calc((1 - var(--schubs, 0)) * 14px)); }
  .hs-an .hs-schubs .beispiel { position: absolute; right: max(24px, calc(50% - 640px)); }
}

/* ===== Die Bühne am Handy (unter 1000 px, mit Bewegung) =====
   Nur transform und opacity bewegen sich (setzt js/hero-scroll.js direkt), kein clip-path, kein Layout pro Bild.
   100svh: die kleine Höhe mit Adressleiste, damit nichts springt, wenn Safari die Leiste ein oder ausblendet. */
@media (max-width: 999px) {
  .hs.hs-an-m { --kh: 76px; height: 230vh; height: 230svh; margin-top: calc(-1 * var(--kh)); padding: 0; }
  .hs-an-m .hs-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; padding: 0; display: block; overflow: hidden; }
  .hs-an-m .hs-karte { position: absolute; left: 12px; right: 12px; top: calc(var(--kh) + 6px); bottom: 12px; display: flex; align-items: center; padding: 24px 22px; }
  .hs-an-m .hs-text > * { will-change: transform, opacity; }
  .hs-an-m .hs-app { position: absolute; z-index: 3; left: 12px; right: 12px; top: calc(var(--kh) + 6px); bottom: 12px; padding: 16px 14px 14px; pointer-events: none; }
  .hs-an-m .hs-fenster, .hs-an-m .hs-leiste, .hs-an-m .hs-seite, .hs-an-m .hs-kopfzeile, .hs-an-m .hs-panel-kopf, .hs-an-m .hs-panel-grund { display: none; }
  .hs-an-m .hs-raster { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .hs-an-m .hs-mitte { flex: 1; min-height: 0; padding: 0; gap: 10px; }
  .hs-an-m .hs-viewer { flex: 1; min-height: 0; height: auto; padding: 0; background: none; }
  .hs-an-m .hs-video { height: 100%; max-width: 100%; will-change: transform; }
  .hs-an-m .hs-spur { opacity: 0; will-change: transform, opacity; }
  .hs-an-m .hs-panel { display: none; }
  .hs-an-m .hs-karten { display: block; position: relative; height: 62px; }
  .hs-an-m .hs-karten li { position: absolute; left: 0; right: 0; top: 0; height: 62px; opacity: 0; will-change: transform, opacity; }
  .hs-an-m .hs-schubs { position: absolute; z-index: 4; left: 26px; right: 26px; bottom: 26px; height: 62px; padding: 0; gap: 12px; flex-wrap: nowrap; justify-content: space-between; opacity: 0; will-change: transform, opacity; }
  .hs-an-m .hs-schubs > span:first-child { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.3; }
  .hs-an-m .hs-schubs .pill { background: var(--akzent); flex: none; }
  .hs-an-m .hs-schubs .beispiel { display: none; }
  html.hs-pin .handy-knopf { opacity: 0 !important; pointer-events: none !important; }
}
@media (max-width: 640px) {
  .hs.hs-an-m { --kh: 62px; }
  .hs-an-m .hs-karte { padding: 20px 20px; }
}

/* Gestaffelt: Zeilen des Textes, Einträge der Seitenleiste und Wörter der Spur bewegen sich einzeln (js/hero-scroll.js) */
.hs-an .hs-text > *, .hs-an .hs-titel .zeile { will-change: transform, opacity; }
@media (max-width: 640px) { .hs-an-m .hs-scroll { bottom: 18px; font-size: 12.5px; } }

/* Der Weg in fünf Schritten: wartet (Zahl), aktiv (Kobalt, Ring), fertig (Haken). Stand setzt js/hero-scroll.js */
.hs-karten li { transition: border-color .3s, box-shadow .3s; }
.hs-karten .hs-stand { background: var(--s3); color: var(--muted); transition: background .3s, color .3s; }
.hs-karten .hs-stand b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; width: auto; height: auto; background: none; }
.hs-karten .hs-stand svg { display: none; }
.hs-karten li > div { flex: 1; min-width: 0; }
.hs-karten li > div span:not(.rk-balken) { white-space: nowrap; }
.hs-nr { display: none; font-style: normal; font-size: 11px; }
.hs-karten li.aktiv { border-color: var(--a-linie); box-shadow: 0 0 0 4px var(--hauch), 0 18px 40px -18px rgba(36,71,209,.4); }
.hs-karten li.aktiv .hs-stand { background: var(--akzent); color: #fff; }
.hs-karten li.aktiv .hs-stand b { color: #fff; }
.hs-karten li.fertig .hs-stand { background: #e6f4ec; color: var(--ok); }
.hs-karten li.fertig .hs-stand b { display: none; }
.hs-karten li.fertig .hs-stand svg { display: block; }
@media (max-width: 999px) { .hs-an-m .hs-nr { display: block; margin-left: auto; align-self: center; } }
/* Handy mit Bühne: unten steht der Hinweis zum Scrollen, darum fällt der kleine Satz unter dem Haken weg (der Haken sagt dasselbe) */
@media (max-width: 640px) {
  .hs-an-m .hs-text .hinweis { display: none; }
}
@media (max-width: 640px) and (max-height: 720px) {
  .hs-an-m .hs-titel { font-size: 34px; margin-top: 14px; }
  .hs-an-m .hs-sub { font-size: 15px; margin-top: 12px; }
  .hs-an-m .liste { margin-top: 16px; }
  .hs-an-m .einw { margin-top: 12px; font-size: 12.5px; }
}
@media (max-width: 999px) { .hs-an-m .hs-karte { align-items: flex-start; padding-top: 20px; } }
