/* ABLAGE Steuerberatung (Beispiel) · lp-260
   Aufbau: zuerst die Grundfassung (steht ohne Skript und bei „weniger Bewegung“ fertig untereinander),
   darunter „Film“ (html.film): angeheftete Bühnen und Bewegung am Scroll.
   Regel der Seite: was unsortiert ist, liegt schief; was erledigt ist, steht gerade. */

@font-face { font-family: "Chivo"; src: url("../schrift/chivo-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Chivo Mono"; src: url("../schrift/chivo-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --pink: #ff2f7d;
  --pink-tief: #e3145f;
  --gruen: #2fdb82;
  --gruen-tief: #17bd68;
  --papier: #fbfaf4;
  --tinte: #14123a;
  --stempel: #d4135f;

  --schrift: "Chivo", "Segoe UI", Arial, sans-serif;
  --mono: "Chivo Mono", "Consolas", monospace;

  /* fünf Größen, an Breite und Höhe gebunden */
  --g-1: clamp(2.3rem, min(5.5vw, 9.6vh), 5.4rem);
  --g-2: clamp(1.8rem, min(3.9vw, 7.4vh), 3.7rem);
  --g-3: clamp(1.15rem, 1.5vw, 1.45rem);
  --g-text: clamp(1rem, 1.08vw, 1.12rem);
  --g-klein: 0.86rem;

  --rand: clamp(18px, 4vw, 64px);
  --ecke: 14px;
  --nav-h: 76px;
  --mark: var(--papier);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: var(--g-text); line-height: 1.5; color: var(--tinte); background: var(--tinte); overflow-x: clip; }
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { overflow-wrap: break-word; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--g-1); }
h2 { font-size: var(--g-2); }
h3 { font-size: var(--g-3); letter-spacing: -0.01em; line-height: 1.15; }
strong { font-weight: 800; }

.innen { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--rand); }

.sprung { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--tinte); color: var(--papier); padding: 12px 18px; border-radius: 999px; }
.sprung:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; box-shadow: 0 0 0 6px var(--papier); border-radius: 6px; }

/* Leuchtstift: zieht beim Hereinscrollen über das Wort */
mark, .marker {
  --m: clamp(0, calc((var(--p, 1) - 0.14) / 0.2), 1);
  color: inherit; background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 62% / calc(var(--m) * 100%) 82%;
  padding: 0 0.14em; margin: 0 -0.06em; border-radius: 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* schief → gerade */
.schief { --g: clamp(0, calc((var(--p, 1) - 0.06) / 0.26), 1); transform: rotate(calc((1 - var(--g)) * -2.6deg)); transform-origin: 0 100%; }

/* Knöpfe: ein gefüllter Typ, die zweite Aktion als Rahmen */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border: 2px solid var(--tinte); border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; color: var(--papier);
  background: linear-gradient(var(--pink-tief), var(--pink-tief)) no-repeat 0 0 / 0% 100% var(--tinte);
  transition: background-size 0.32s cubic-bezier(0.3, 0.7, 0.2, 1), transform 0.16s ease;
}
.knopf:hover { background-size: 100% 100%; }
.knopf:active { transform: scale(0.97); }
.knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.knopf.klein { min-height: 44px; padding: 10px 20px; font-size: 0.92rem; }
.knopf.rahmen { color: var(--tinte); background: linear-gradient(var(--tinte), var(--tinte)) no-repeat 0 0 / 0% 100% transparent; transition: background-size 0.32s cubic-bezier(0.3, 0.7, 0.2, 1), color 0.2s ease; }
.knopf.rahmen:hover { color: var(--papier); }

/* Stempel */
.stempel {
  display: inline-block; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stempel);
  border: 3px solid currentColor; border-radius: 8px; padding: 6px 12px 5px; line-height: 1;
}

/* ── Kopfzeile: jedes Teil ein eigenes Etikett, damit es auf jeder Fläche lesbar bleibt ── */
.nav { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--rand); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.nav > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--papier); color: var(--tinte); font-weight: 900; letter-spacing: 0.04em; text-decoration: none; font-size: 1.05rem; }
.logo-loch { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); box-shadow: inset 0 0 0 2.5px var(--tinte); }
.nav-links { display: flex; gap: 2px; margin-left: auto; padding: 0 8px; border-radius: 999px; background: var(--papier); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transform: rotate(calc((1 - var(--ord, 1)) * var(--dreh, 0deg))); }
.nav-links a:nth-child(1) { --dreh: -5deg; } .nav-links a:nth-child(2) { --dreh: 4deg; } .nav-links a:nth-child(3) { --dreh: -3deg; } .nav-links a:nth-child(4) { --dreh: 6deg; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--pink); text-underline-offset: 5px; }
.nav-zaehler { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--tinte); color: var(--papier); font-family: var(--mono); font-size: 0.84rem; white-space: nowrap; }
.nav-zahl { display: inline-block; min-width: 3ch; text-align: right; font-weight: 700; color: var(--gruen); }

/* ── Kopf ── */
.kopf { background: var(--pink); position: relative; }
.buehne { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 2vw; max-width: 1600px; margin-inline: auto; padding: calc(var(--nav-h) + 24px) var(--rand) 40px; min-height: 100vh; min-height: 100svh; }
.zahl { position: absolute; z-index: 0; right: 1vw; top: 40vh; transform: translateY(-56%); font-weight: 900; font-size: min(43vw, 82vh); line-height: 0.8; letter-spacing: -0.05em; color: var(--pink-tief); font-variant-numeric: tabular-nums; user-select: none; pointer-events: none; }
.karton { position: relative; z-index: 2; grid-column: 2; grid-row: 1; aspect-ratio: 1800 / 1423; width: 100%; }
.karton-bild { position: absolute; inset: 0; width: 100%; height: 100%; }
.karton-bild.z0 { opacity: var(--k0, 1); } .karton-bild.z1 { opacity: var(--k1, 0); } .karton-bild.z2 { opacity: var(--k2, 0); }
.wolke { display: none; }
.kopf-text { position: relative; z-index: 4; grid-column: 1; grid-row: 1; max-width: 600px; }
h1 .zl { display: block; transform-origin: 0 60%; }
h1 .zl-1 { transform: rotate(-2.2deg); }
h1 .zl-2 { color: var(--papier); transform: rotate(1.3deg) translateX(0.3em); }
.kopf-zeile { margin-top: 26px; font-size: var(--g-3); line-height: 1.35; font-weight: 500; max-width: 31em; }
.kopf-beleg { margin-top: 14px; max-width: 33em; }
.kopf-beleg strong { background: var(--papier); padding: 1px 7px; border-radius: 5px; }
.kopf-knopf { margin-top: 26px; }
.kopf-satz { margin-top: 11px; font-size: var(--g-klein); font-weight: 500; }
.wink { display: none; }

.stapel { grid-column: 1 / -1; position: relative; z-index: 3; padding-top: 60px; }
.stapel-titel { max-width: 16em; }
.stapel-reihe { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 36px); }
.lade { display: none; }
.fach h3 { padding-top: 14px; border-top: 4px solid var(--tinte); }
.fach p { margin-top: 8px; font-weight: 500; max-width: 24em; }
.stapel-null { margin-top: 30px; }
.stapel-null .stempel { color: var(--tinte); font-size: 1.05rem; transform: rotate(-3deg); background: var(--gruen); }
.dock { display: none; }

/* ── Leuchtstift-Wisch zwischen zwei Kapiteln ── */
.wisch { --von: var(--pink); --nach: var(--papier); height: 36vh; background: var(--von); display: grid; grid-template-rows: repeat(3, 1fr); overflow: hidden; }
.wisch[data-von="papier"] { --von: var(--papier); } .wisch[data-nach="gruen"] { --nach: var(--gruen); }
.wisch span { background: var(--nach); transform-origin: 0 50%; margin-bottom: -1px; transform: scaleX(clamp(0, calc((var(--p, 1) - var(--ab)) / 0.24), 1)); border-radius: 0 40vh 40vh 0 / 0 50% 50% 0; }
.wisch span:nth-child(1) { --ab: 0.14; } .wisch span:nth-child(2) { --ab: 0.3; transform-origin: 100% 50%; border-radius: 40vh 0 0 40vh / 50% 0 0 50%; } .wisch span:nth-child(3) { --ab: 0.46; border-radius: 0; }

/* ── Fristen ── */
.fristen { background: var(--papier); --mark: var(--pink); padding: clamp(40px, 8vh, 110px) 0 clamp(60px, 12vh, 150px); }
.fristen-innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.fristen-kopf { position: sticky; top: 120px; }
.fristen-kopf p { margin-top: 22px; max-width: 28em; font-weight: 500; }
.fristen-kopf .klein { font-size: var(--g-klein); margin-top: 12px; }
.frist { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 150px 26px 0; border-top: 3px solid var(--tinte); }
.frist:last-child { border-bottom: 3px solid var(--tinte); }
.frist-tag { font-family: var(--mono); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.2; }
.frist-tag .marker { font-weight: 800; }
.frist-was { font-weight: 500; max-width: 34em; }
.klein-stempel { --s: clamp(0, calc((var(--p, 1) - 0.3) / 0.05), 1); position: absolute; right: 6px; top: 50%; font-size: 0.86rem; opacity: var(--s); transform: translateY(-50%) rotate(-8deg) scale(calc(1 + (1 - var(--s)) * 1.3)); }
.frist:nth-child(even) .klein-stempel { transform: translateY(-50%) rotate(5deg) scale(calc(1 + (1 - var(--s)) * 1.3)); }

/* ── Locher: das Foto geht aus zwei Lochungen auf ── */
.locher { background: var(--papier); }
.locher-buehne { position: relative; }
.locher-wort { display: none; }
.loch img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.loch-1 { aspect-ratio: 16 / 9; }
.loch-2 { display: none; }
.locher-karte { max-width: 1600px; margin-inline: auto; padding: 34px var(--rand) 60px; }
.locher-karte p { margin-top: 14px; max-width: 34em; font-weight: 500; }

/* ── Ablauf: der Rechenstreifen ── */
.ablauf { background: var(--gruen); --mark: var(--papier); padding: clamp(40px, 8vh, 100px) 0 20px; }
.streifen-bahn { margin-top: 34px; }
.schlitz { display: none; }
.streifen { background: var(--papier); padding: 10px var(--rand); }
.streifen li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 2px dashed rgba(20, 18, 58, 0.3); font-family: var(--mono); }
.streifen .nr { font-weight: 800; color: var(--stempel); font-size: 1rem; }
.streifen .zeile { font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.25; }
.streifen .summe { border-bottom: 0; } .streifen .summe .zeile { font-weight: 800; }
.innen-text, .ablauf-fuss { max-width: 1600px; margin: 22px auto 0; padding-inline: var(--rand); font-weight: 600; }

/* ── Preise: der Bon wird gedruckt ── */
.preise { background: var(--gruen); --mark: var(--papier); padding: clamp(50px, 10vh, 130px) 0 clamp(60px, 12vh, 150px); }
.preise-zeile { margin-top: 20px; font-weight: 500; max-width: 36em; }
.bons { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 44px); align-items: start; }
.bon { --e: clamp(0, calc((var(--p, 1) - 0.1 - var(--spaet, 0)) / 0.3), 1); }
.bon:nth-child(2) { --spaet: 0.05; } .bon:nth-child(3) { --spaet: 0.1; }
.bon-schlitz { position: relative; z-index: 2; height: 26px; border-radius: 13px; background: var(--tinte); }
.bon-schlitz::after { content: ""; position: absolute; left: 16px; right: 16px; top: 11px; height: 4px; border-radius: 2px; background: #07061c; }
.bon-fenster { margin: -13px 16px 0; overflow: hidden; }
.bon-papier {
  --zz: 14px; background: var(--papier); padding: 34px 20px 40px; font-family: var(--mono); font-size: 0.9rem; letter-spacing: -0.02em;
  transform: translateY(calc((1 - var(--e)) * -100%)) rotate(calc((1 - var(--e)) * 1.5deg));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
}
.bon-papier h3 { font-family: var(--schrift); font-size: 1.5rem; font-weight: 900; }
.bon-fuer { margin-top: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.bon-papier ul { margin-top: 18px; border-top: 2px dashed var(--tinte); }
.bon-papier li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(20, 18, 58, 0.35); }
.bon-papier li span:last-child { white-space: nowrap; font-weight: 600; }
.bon-summe { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; }
.bon-summe span:first-child { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.bon-takt { text-align: right; font-size: 0.8rem; }
.bon-knopf { margin-top: 20px; }
.bon-knopf .knopf { width: 100%; font-family: var(--schrift); }

/* ── Anfrage ── */
.anfrage { position: relative; background: var(--gruen); overflow: hidden; padding-top: clamp(30px, 6vh, 80px); }
.erledigt {
  --s: clamp(0, calc((var(--p, 1) - 0.2) / 0.045), 1);
  position: absolute; z-index: 0; right: 1.5vw; top: 5%; font-weight: 900; font-size: min(15.5vw, 250px); line-height: 0.86; letter-spacing: -0.03em; color: var(--gruen-tief);
  border: min(1.3vw, 20px) solid currentColor; border-radius: min(2.4vw, 38px); padding: 0.1em 0.16em 0.06em; opacity: var(--s);
  transform: rotate(-7deg) scale(calc(1 + (1 - var(--s)) * 0.6)); user-select: none; pointer-events: none;
}
.anfrage-innen { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 80px); align-items: end; }
.anfrage-text { padding-bottom: clamp(50px, 9vh, 110px); }
.anfrage-text > p { margin-top: 18px; max-width: 32em; font-weight: 500; }
.formular { margin-top: 30px; background: var(--papier); border-radius: var(--ecke); padding: clamp(20px, 2.6vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; max-width: 680px; }
.feld { display: grid; gap: 7px; }
.feld.wahl, .formular-knopf, .formular-satz, .formular-meldung { grid-column: 1 / -1; }
.feld:has(select) { grid-column: 1 / -1; }
.feld label, .feld legend { font-weight: 700; font-size: 0.95rem; }
.feld input[type="text"], .feld select { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--tinte); border-radius: 10px; background: #fffefa; color: var(--tinte); font: inherit; }
.feld input[type="text"]:focus-visible, .feld select:focus-visible { box-shadow: none; outline-offset: 2px; }
.feld.fehlt input { border-color: var(--stempel); background: #ffe9f1; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl legend { margin-bottom: 8px; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 2px solid var(--tinte); border-radius: 999px; font-weight: 600; background: #fffefa; }
.wahl input:checked + span { background: var(--pink); }
.wahl input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 3px; }
.formular-satz { font-size: var(--g-klein); font-weight: 500; margin-top: -6px; }
.formular-meldung { font-weight: 700; }
.formular-meldung:empty { display: none; }
.formular-meldung.gut { background: var(--gruen); padding: 12px 16px; border-radius: 10px; }

.anfrage-bild { position: relative; justify-self: center; width: min(100%, 470px); --d: clamp(0, calc((var(--p, 1) - 0.12) / 0.2), 1); }
.vera { position: relative; z-index: 1; width: 100%; margin-bottom: -22%; }
.karton-zu { --fall: -60vh; position: absolute; z-index: 2; left: -30%; bottom: 0; width: 62%; height: auto; transform: translateY(calc((1 - var(--d)) * (1 - var(--d)) * var(--fall))) rotate(calc((1 - var(--d)) * -14deg)); }
.vera-name { position: absolute; z-index: 3; right: -4%; top: 35%; background: var(--papier); padding: 10px 16px; border-radius: 10px; font-weight: 800; line-height: 1.25; transform: rotate(calc(3deg * (1 - var(--d)))); }
.vera-name span { font-weight: 500; font-size: var(--g-klein); }

/* ── Fuß ── */
.fuss { background: var(--tinte); color: var(--papier); padding: 46px 0 40px; position: relative; z-index: 2; }
.fuss-innen { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 40px; align-items: end; }
.fuss-wer { line-height: 1.6; }
.netze { display: flex; gap: 6px; }
.zeichen-link { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; }
.zeichen-link:hover { background: var(--pink); }
.zeichen { width: 22px; height: 22px; }
.fuss-recht { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 22px; border-top: 1px solid rgba(251, 250, 244, 0.25); font-size: var(--g-klein); }
.fuss :focus-visible { outline-color: var(--papier); box-shadow: none; }

/* ══ Film: angeheftete Bühnen ══ */
html.film .kopf { height: 420vh; }
html.film .buehne { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; min-height: 0; max-width: none; padding: 0; overflow: hidden; }
html.film .zahl { top: 35%; right: max(1vw, calc((100vw - 1600px) / 2)); opacity: var(--zo, 1); will-change: transform; }
html.film .karton { position: absolute; right: max(4vw, calc((100vw - 1600px) / 2 + 30px)); bottom: 8vh; width: min(50vw, 98vh, 860px); will-change: transform; }
html.film .wolke { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
html.film .wolke img { position: absolute; left: 0; top: 0; max-width: none; will-change: transform, opacity; }
html.film .wolke img.vorn { z-index: 6; }
html.film .kopf-text { position: absolute; left: max(var(--rand), calc((100vw - 1600px) / 2 + var(--rand))); top: 52%; width: min(41vw, 600px); transform: translateY(calc(-50% - var(--tf, 0) * 9vh)); opacity: calc(1 - var(--tf, 0)); }
html.film .kopf-text.weg { visibility: hidden; }
html.film .stapel { position: absolute; z-index: 1; inset: 0; max-width: 1600px; margin-inline: auto; padding: calc(var(--nav-h) + 3vh) var(--rand) 3vh; display: flex; flex-direction: column; opacity: var(--st, 0); }
html.film .stapel.weg { visibility: hidden; }
html.film .stapel-titel { --p: var(--mk, 0); font-size: clamp(1.6rem, min(3.6vw, 6.4vh), 3.4rem); }
html.film .stapel-reihe { margin-top: 2.4vh; }
html.film .lade { display: block; height: clamp(84px, 31vh, 320px); }
html.film .fach h3 { font-size: clamp(1.2rem, 1.9vw, 1.8rem); }
html.film .fach p { font-size: clamp(0.92rem, 1.12vw, 1.14rem); line-height: 1.42; }
html.film .stapel-null { margin-top: auto; padding-top: 2vh; min-height: 19vh; display: flex; align-items: center; }
html.film .stapel-null .stempel { --s: var(--sn, 0); font-size: clamp(1rem, 1.5vw, 1.4rem); padding: 10px 16px 8px; opacity: var(--s); transform: rotate(-4deg) scale(calc(1 + (1 - var(--s)) * 1.2)); }
html.film .dock { display: block; position: absolute; right: var(--rand); bottom: 2.5vh; width: min(22vw, 25vh, 320px); aspect-ratio: 1800 / 1423; }
html.film .wink { display: flex; align-items: center; gap: 10px; position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.8rem; font-weight: 600; opacity: calc(1 - var(--tf, 0) * 3); white-space: nowrap; }
.wink-pfeil { width: 12px; height: 12px; border-right: 3px solid var(--tinte); border-bottom: 3px solid var(--tinte); transform: rotate(45deg) translate(-2px, -2px); animation: wink 1.8s ease-in-out infinite; }
@keyframes wink { 50% { transform: rotate(45deg) translate(3px, 3px); } }

/* Startbild ohne Springen: bis das Skript einmal gezeichnet hat, steht nur der erste Bildschirm */
html.film:not(.bereit) .wolke, html.film:not(.bereit) .stapel { visibility: hidden; }

html.film .locher { height: 270vh; }
html.film .locher-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--papier); --a: clamp(0, calc((var(--p, 0) - 0.03) / 0.07), 1); --b: clamp(0, calc((var(--p, 0) - 0.2) / 0.52), 1); --r: calc(var(--a) * 2.1vmin + var(--b) * var(--b) * 170vmax); }
html.film .locher-wort { display: block; position: absolute; left: 22%; top: 50%; transform: translateY(-54%) rotate(calc((1 - var(--a)) * -3deg)); font-weight: 900; font-size: min(17vw, 46vh); letter-spacing: -0.04em; line-height: 0.9; color: var(--tinte); }
html.film .loch { position: absolute; inset: 0; aspect-ratio: auto; display: block; will-change: clip-path; }
html.film .loch-1 { clip-path: circle(var(--r) at 9% 36%); }
html.film .loch-2 { clip-path: circle(var(--r) at 9% 64%); }
html.film .loch img { transform: scale(calc(1.12 - var(--b) * 0.12)); }
html.film .locher-karte {
  --c: clamp(0, calc((var(--p, 0) - 0.74) / 0.1), 1);
  position: absolute; left: max(var(--rand), calc((100vw - 1600px) / 2 + var(--rand))); bottom: 7vh; width: min(560px, calc(100vw - 2 * var(--rand))); margin: 0; padding: 26px 30px 28px 62px; background: var(--papier); border-radius: var(--ecke);
  opacity: var(--c); transform: translateY(calc((1 - var(--c)) * 40px)) rotate(calc((1 - var(--c)) * -3deg));
  -webkit-mask: radial-gradient(circle at 28px 36%, #0000 8px, #000 9px), radial-gradient(circle at 28px 64%, #0000 8px, #000 9px); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 28px 36%, #0000 8px, #000 9px), radial-gradient(circle at 28px 64%, #0000 8px, #000 9px); mask-composite: intersect;
}
html.film .locher-karte h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }

html.film .ablauf { height: 300vh; padding: 0; }
html.film .ablauf-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; --pp: clamp(0, calc((var(--p, 0) - 0.06) / 0.84), 1); }
html.film .ablauf-buehne h2 { --p: calc(var(--pp) * 2); }
html.film .streifen-bahn { position: relative; margin-top: 6vh; height: clamp(120px, 34vh, 320px); transform: rotate(calc((1 - var(--pp)) * -2.4deg)); transform-origin: 100% 50%; }
html.film .schlitz { display: block; position: absolute; z-index: 2; right: 0; top: -18px; bottom: -18px; width: max(5vw, 34px); background: var(--tinte); border-radius: 18px 0 0 18px; }
html.film .schlitz::after { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 5px; border-radius: 3px; background: #07061c; }
html.film .streifen { position: absolute; left: 0; top: 0; height: 100%; display: flex; flex-wrap: nowrap; width: max-content; padding: 0; transform: translateX(calc(100vw - max(5vw, 34px) - var(--pp) * var(--weg, 3000px))); will-change: transform; }
html.film .streifen li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 4.5vw 0 3vw; border-bottom: 0; border-right: 3px dashed rgba(20, 18, 58, 0.35); }
html.film .streifen li:first-child { padding-left: 5vw; -webkit-mask: conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) 0 50% / 100% 16px; mask: conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) 0 50% / 100% 16px; }
html.film .streifen .zeile { white-space: nowrap; font-size: clamp(1.35rem, min(4.4vw, 8.4vh), 4rem); }
html.film .streifen .nr { font-size: clamp(1rem, 1.6vw, 1.5rem); }
html.film .ablauf-buehne h2 { font-size: var(--g-1); }
html.film .streifen .summe { border-right: 0; padding-right: 7vw; }
html.film .streifen .summe .zeile { background: linear-gradient(var(--gruen), var(--gruen)) no-repeat 0 60% / 100% 70%; padding: 0 0.2em; }
html.film .ablauf-fuss { margin-top: 6vh; width: 100%; }

/* ══ Schmal ══ */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-zaehler { margin-left: auto; }
  .fristen-innen { grid-template-columns: minmax(0, 1fr); }
  .fristen-kopf { position: static; }
  .bons { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .bon { --e: clamp(0, calc((var(--p, 1) - 0.08) / 0.24), 1); }
}
@media (max-width: 760px) {
  :root { --nav-h: 66px; }
  .nav { top: 10px; gap: 8px; }
  .nav-zaehler { display: none; }
  .nav .knopf.klein { margin-left: auto; padding: 10px 15px; font-size: 0.84rem; }
  .logo { font-size: 0.95rem; padding: 0 14px 0 11px; }
  .buehne { grid-template-columns: minmax(0, 1fr); }
  .karton { grid-column: 1; grid-row: 2; }
  .zahl { font-size: 62vw; top: 46vh; transform: none; right: 2vw; }
  .stapel-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frist { padding-right: 0; padding-bottom: 60px; }
  .klein-stempel { top: auto; bottom: 14px; right: 4px; transform: rotate(-6deg) scale(calc(1 + (1 - var(--s)) * 1.3)); }
  .frist:nth-child(even) .klein-stempel { transform: rotate(4deg) scale(calc(1 + (1 - var(--s)) * 1.3)); }
  .formular { grid-template-columns: minmax(0, 1fr); }
  .anfrage-innen { grid-template-columns: minmax(0, 1fr); }
  .anfrage-text { padding-bottom: 10px; }
  .anfrage-bild { width: 66%; margin-top: 20px; justify-self: end; margin-right: 6%; }
  .erledigt { font-size: 21vw; top: auto; bottom: 30%; right: -3vw; }
  .karton-zu { --fall: -14vh; }
  .fuss-innen { grid-template-columns: minmax(0, 1fr); }
  .loch img { object-position: 58% 30%; }

  html.film .kopf-text { top: calc(var(--nav-h) + 12px); left: var(--rand); width: calc(100vw - 2 * var(--rand)); transform: translateY(calc(var(--tf, 0) * -6vh)); }
  html.film .kopf-zeile { margin-top: 14px; font-size: 1.02rem; }
  html.film .kopf-beleg { margin-top: 9px; font-size: 0.93rem; }
  html.film .kopf-knopf { margin-top: 14px; }
  html.film .karton { right: 4vw; bottom: 3vh; width: min(92vw, 52vh); }
  html.film .zahl { top: auto; bottom: calc(3vh + 34vw); }
  html.film .stapel { padding-top: calc(var(--nav-h) + 8px); }
  html.film .stapel-titel { font-size: 1.5rem; }
  html.film .stapel-reihe { margin-top: 8px; gap: 6px 14px; }
  html.film .lade { height: clamp(60px, 13vh, 120px); }
  html.film .fach h3 { font-size: 1.02rem; padding-top: 8px; border-top-width: 3px; }
  html.film .fach p { font-size: 0.84rem; line-height: 1.34; margin-top: 4px; }
  html.film .stapel-null { min-height: 0; padding-top: 8px; margin-top: 8px; }
  html.film .dock { display: none; }
  html.film .locher-wort { left: 22%; font-size: 17vw; }
  html.film .loch-1 { clip-path: circle(var(--r) at 11% 40%); } html.film .loch-2 { clip-path: circle(var(--r) at 11% 60%); }
  html.film .locher-karte { bottom: 4vh; padding: 20px 20px 22px 54px; }
  html.film .wink { display: none; }
}
@media (max-height: 560px) and (min-width: 761px) {
  html.film .dock { display: none; }
  html.film .stapel-null { min-height: 0; }
  html.film .kopf-beleg { display: none; }
  html.film .kopf-zeile { margin-top: 12px; font-size: 1rem; }
  html.film .kopf-knopf { margin-top: 14px; }
  html.film .fach p { font-size: 0.86rem; line-height: 1.3; }
  html.film .lade { height: 76px; }
}

@media (prefers-reduced-motion: reduce) { .wink-pfeil { animation: none; } .knopf { transition: none; } }
