/* lp-269 · 1. DC PFEILGIFT Leoben (Beispiel) · Die Seite ist ein Leg: neun Pfeile von 501 auf null.
   Schrift-Ordnung (SCHRIFT.md): Epilogue für alles, Caveat nur für Kreide. Fünf Größen als Variablen. */

@font-face { font-family: "Epilogue"; src: url("../fonts/epilogue-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --gruen: #0B7C47;
  --rot: #D41E28;
  --creme: #F2E3BF;
  --schwarz: #151412;
  --gift: #C4F53A;
  --kreide: #F6F1E4;

  --s-riesig: clamp(6.5rem, 24vw, 24rem);
  --s-kopf: clamp(2.3rem, 5.2vw, 5.2rem);
  --s-titel: clamp(1.85rem, 3.4vw, 3.2rem);
  --s-text: clamp(1.02rem, 1.18vw, 1.2rem);
  --s-klein: .86rem;
  --s-kreide: clamp(1.5rem, 2.5vw, 2.5rem);

  --rand: clamp(1.1rem, 4vw, 4rem);
  --ecke: 14px;
  --leiste: 68px;
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--leiste); }
body { margin: 0; background: var(--schwarz); color: var(--kreide); font-family: "Epilogue", "Segoe UI", system-ui, sans-serif; font-size: var(--s-text); line-height: 1.5; font-weight: 450; overflow-x: clip; }
img, picture, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gift); outline-offset: 3px; border-radius: 4px; }
.hell-grund :focus-visible, .probe :focus-visible, .schluss :focus-visible { outline-color: var(--schwarz); }

.rand { width: min(100% - 2 * var(--rand), 1600px); margin-inline: auto; }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--kreide); color: var(--schwarz); padding: .7rem 1rem; border-radius: var(--ecke); }
.sprung:focus { top: 12px; }

h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--s-kopf); }
h2 { font-size: var(--s-titel); }
.etikett { font-size: var(--s-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Knopf: ein gefüllter Typ, Farbe kommt vom Feld */
.knopf { --k-grund: var(--kreide); --k-tinte: var(--schwarz); display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.5rem; border: 0; border-radius: 999px; background: var(--k-grund); color: var(--k-tinte); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s; box-shadow: 0 0 0 0 transparent; }
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: translateY(0) scale(.97); }
.knopf-klein { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.knopf-dunkel { --k-grund: var(--schwarz); --k-tinte: var(--kreide); }
.knopf-rahmen { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.knopf-satz { font-size: var(--s-klein); margin-top: .7rem; opacity: .9; max-width: 34ch; }

/* ---------- Kopfzeile ---------- */
.leiste { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--leiste); display: flex; align-items: center; gap: 1.2rem; padding-inline: max(var(--rand), calc((100vw - 1600px) / 2)); color: var(--kreide); transition: color .25s; pointer-events: none; }
.leiste > * { pointer-events: auto; }
.leiste[data-modus="dunkel"] { color: var(--schwarz); }
.marke { font-weight: 900; font-size: 1.18rem; letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: baseline; gap: .45rem; min-height: 44px; align-items: center; }
.marke small { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.leiste-nav { display: flex; gap: 1.3rem; margin-left: auto; font-size: .93rem; font-weight: 600; }
.leiste-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.leiste-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.stand { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; padding: .2rem .85rem; border-radius: 999px; background: var(--schwarz); color: var(--kreide); font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(246, 241, 228, .22); white-space: nowrap; }
.stand b { font-weight: 800; color: var(--gift); min-width: 2.2ch; display: inline-block; text-align: right; }
.stand b[data-pfeil] { min-width: 0; }
.leiste .knopf { --k-grund: var(--kreide); --k-tinte: var(--schwarz); }
.leiste[data-modus="dunkel"] .knopf { --k-grund: var(--schwarz); --k-tinte: var(--kreide); }
@media (max-width: 1099px) { .leiste-nav { display: none; } .stand { margin-left: auto; } }
@media (max-width: 599px) { .leiste .knopf { display: none; } .leiste { gap: .6rem; } }

/* ---------- Doppelbühne: festes Foto hinter einer angehefteten Szene ---------- */
.doppel { position: relative; }
.doppel-bild { position: sticky; top: 0; height: var(--vh); overflow: hidden; z-index: 0; background: var(--schwarz); }
.doppel-bild img { width: 100%; height: 100%; object-fit: cover; }
.doppel > section { position: relative; z-index: 1; }
.doppel > section:first-of-type { margin-top: calc(var(--vh) * -1); }

/* ---------- 1 · Kopf: drei Pfeile, 180 ---------- */
.kopf { height: calc(var(--vh) * 4.6); }
.kopf-buehne { position: sticky; top: 0; height: var(--vh); overflow: hidden; background: var(--gruen); color: var(--kreide); --g: 0; --raus: 0; --mx: 0; --my: 0; }
.kopf-raster { position: absolute; inset: 0; margin: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) auto minmax(0, .7fr); column-gap: 3vw; align-items: center; padding-top: var(--leiste); padding-bottom: 2vh; }
.kopf-text { align-self: end; padding-bottom: 5vh; opacity: calc(1 - var(--raus)); transform: translate3d(calc(var(--raus) * -8vw), 0, 0); }
.kopf-sub { margin-top: 1.1rem; max-width: 30ch; }
.kopf-text .knopf { margin-top: 1.5rem; }
.kopf-beleg { margin-top: 1.4rem; font-size: var(--s-klein); font-weight: 600; letter-spacing: .02em; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.kopf-beleg b { font-weight: 850; }

.scheibe-box { --B: min(74vh, 44vw); --sx: 1; --sy: .5; --ss: 2.5; position: relative; width: var(--B); height: var(--B); container-type: size; }
.scheibe-box::before { content: ""; position: absolute; inset: 5% -3% -7% 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0)); }
.scheibe { position: relative; width: 100%; height: 100%; border-radius: 50%; }
.kopf .scheibe-box { transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0); }
.scheibe.schlag { animation: schlag .34s cubic-bezier(.2, .7, .2, 1); }
@keyframes schlag { 0% { transform: none; } 22% { transform: translate(-.35cqw, -.55cqw) scale(.984); } 100% { transform: none; } }

/* Pfeil, der in der Scheibe steckt: Nullpunkt ist die Spitze */
.stecker { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; }
.schweb { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.pfeil-bild, .pfeil-schatten { position: absolute; max-width: none; width: 11.5cqw; height: calc(11.5cqw * 760 / 311); left: calc(11.5cqw * -.4964); top: calc(11.5cqw * 760 / 311 * -.9942); transform-origin: 49.64% 99.42%; transform: rotate(var(--w)) scaleY(.58); pointer-events: none; }
.js .pfeil-schatten { opacity: 0; transition: opacity .18s; }
.pfeil-schatten { transform: rotate(calc(var(--w) + 17deg)) scaleY(.78); filter: brightness(0) blur(.8cqw); opacity: .46; }
.js .steckt .pfeil-schatten { opacity: .46; }
.steckt .pfeil-bild { animation: zittern .52s cubic-bezier(.3, .6, .3, 1); }
@keyframes zittern { 0% { transform: rotate(calc(var(--w) + 8deg)) scaleY(.58); } 28% { transform: rotate(calc(var(--w) - 5deg)) scaleY(.58); } 54% { transform: rotate(calc(var(--w) + 2.5deg)) scaleY(.58); } 78% { transform: rotate(calc(var(--w) - 1deg)) scaleY(.58); } 100% { transform: rotate(var(--w)) scaleY(.58); } }
.kopf .wartet .schweb { transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 20px), 0); }
.lebt .kopf .wartet .pfeil-bild { animation: schweben 3.4s ease-in-out infinite; }
@keyframes schweben { 0%, 100% { transform: rotate(calc(var(--w) - 1.6deg)) scaleY(.58); } 50% { transform: rotate(calc(var(--w) + 1.6deg)) scaleY(.58); } }
.kopf .stecker { will-change: transform; }

.kopf-tafel { align-self: start; justify-self: end; text-align: right; padding-top: 7vh; opacity: calc(1 - var(--raus)); transform: translate3d(calc(var(--raus) * 8vw + var(--mx) * 6px), 0, 0); font-variant-numeric: tabular-nums; }
.t-rest { display: block; }
.t-zahl { display: block; font-size: clamp(4.2rem, 8.4vw, 8.6rem); font-weight: 900; line-height: .86; letter-spacing: -.04em; }
.t-wuerfe { margin-top: 1rem; font-family: "Caveat", cursive; font-size: var(--s-kreide); font-weight: 700; line-height: 1.06; }
.js .t-wuerfe li, .js .t-summe { opacity: 0; transform: translate3d(0, 10px, 0) rotate(-2deg); transition: opacity .22s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.js .t-wuerfe li.da, .js .t-summe.da { opacity: 1; transform: none; }
.t-wuerfe b { font-weight: 700; margin-left: .5ch; }
.t-summe { font-family: "Caveat", cursive; font-size: var(--s-kreide); font-weight: 700; color: var(--gift); border-top: 3px solid currentColor; margin-top: .3rem; padding-top: .1rem; display: inline-block; }

.kopf-wink { position: absolute; right: max(var(--rand), calc((100vw - 1600px) / 2)); bottom: 3.2vh; font-size: var(--s-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: calc(1 - var(--raus) * 2); }
.kopf-wink::after { content: ""; display: inline-block; width: 2px; height: 1.6em; margin-left: .7em; vertical-align: middle; background: currentColor; transform-origin: top; }
.lebt .kopf-wink::after { animation: wink 1.8s ease-in-out infinite; }
@keyframes wink { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.gross180 { position: absolute; left: 0; right: 0; bottom: -4vh; z-index: 3; text-align: center; font-size: min(40vw, 78vh); font-weight: 900; line-height: .8; letter-spacing: -.05em; color: var(--gift); opacity: var(--g); transform: translate3d(0, calc((1 - var(--g)) * 46%), 0) scale(calc(.82 + var(--g) * .18)); pointer-events: none; }
.kopf-max { position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--leiste) + 3vh); text-align: center; font-size: var(--s-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: var(--g); }

/* Startbild ohne Springen: bis zum ersten Zeichnen bleiben die fliegenden Teile verborgen */
.js:not(.bereit) .kopf .stecker, .js:not(.bereit) .gross180, .js:not(.bereit) .kopf-max { visibility: hidden; }

/* ---------- 2 · Mittendrin (Foto steht, Text fährt darüber) ---------- */
.lampe { position: absolute; inset: 0; --lx: 64%; --ly: 44%; background: radial-gradient(circle at var(--lx) var(--ly), rgba(12, 11, 10, 0) 0, rgba(12, 11, 10, 0) 16vmax, rgba(12, 11, 10, .74) 44vmax); pointer-events: none; }
.mitte { min-height: calc(var(--vh) * 1.5); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; color: var(--kreide); }
.mitte-wort { font-size: clamp(3.4rem, 11.2vw, 12rem); font-weight: 900; line-height: .86; letter-spacing: -.045em; display: flex; }
.mitte-wort span { display: inline-block; transform: translate3d(calc((1 - var(--e, 1)) * var(--d, 0) * 5vw), 0, 0); opacity: calc(.15 + var(--e, 1) * .85); }
.mitte-satz { margin-top: 1.6rem; max-width: 34ch; font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 600; line-height: 1.3; }

.zahlen { background: var(--schwarz); color: var(--kreide); padding: 14vh 0 12vh; }
.zahlen-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 6vw; align-items: end; }
.zahlen-text p + p { margin-top: 1rem; }
.zahlen-text p { max-width: 42ch; }
.zahlen-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5vh 3vw; }
.zahlen-liste li { border-top: 3px solid var(--kreide); padding-top: .7rem; }
.zahlen-liste strong { display: block; font-size: clamp(3.4rem, 8vw, 8rem); font-weight: 900; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--gift); }
.zahlen-liste span { font-weight: 600; }

/* ---------- Naht: ein Pfeil, die Zahl fällt, die nächste Farbe geht auf ---------- */
.naht { --von: var(--schwarz); --nach: var(--creme); --tinte-von: var(--kreide); --tinte-nach: var(--schwarz); --tx: 62%; height: calc(var(--vh) * 2.5); position: relative; }
.naht-buehne { position: sticky; top: 0; height: var(--vh); overflow: hidden; background: var(--von); color: var(--tinte-von); --q: 1; --pb: min(58vw, 980px); }
.naht-lage { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.naht-neu { background: var(--nach); color: var(--tinte-nach); clip-path: circle(0 at var(--tx) 50%); }
.naht-zahl { font-size: var(--s-riesig); font-weight: 900; line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; display: block; }
.naht-etikett { position: absolute; left: max(var(--rand), calc((100vw - 1600px) / 2)); top: calc(var(--leiste) + 3vh); }
.naht-satz { position: absolute; left: 0; right: 0; bottom: 9vh; font-size: var(--s-titel); font-weight: 800; letter-spacing: -.025em; }
.naht-pfeil { position: absolute; z-index: 3; right: calc(100% - var(--tx)); top: 50%; width: var(--pb); height: auto; max-width: none; margin-top: calc(var(--pb) * 176 / 1500 * -.5494); transform-origin: 99.7% 55%; transform: translate3d(calc((1 - var(--q)) * -120vw), calc((1 - var(--q)) * 6vh), 0) rotate(calc((1 - var(--q)) * -5deg)); }
.naht.traf .naht-pfeil { animation: wackeln .5s cubic-bezier(.3, .6, .3, 1); }
@keyframes wackeln { 0% { transform: rotate(3deg); } 30% { transform: rotate(-2deg); } 60% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
.naht-kreide { position: absolute; z-index: 4; left: calc(var(--tx) + 1.2vw); top: calc(50% - var(--zh, 12.5vw) - 1.6em); font-family: "Caveat", cursive; font-size: var(--s-kreide); font-weight: 700; color: var(--gift); transform: rotate(-6deg); transition: opacity .2s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.js .naht-kreide { opacity: 0; transform: rotate(-6deg) translate3d(0, 12px, 0); }
.js .naht.traf .naht-kreide { opacity: 1; transform: rotate(-6deg); }
.naht-2 { --von: var(--creme); --nach: var(--schwarz); --tinte-von: var(--schwarz); --tinte-nach: var(--kreide); --tx: 38%; }
.naht-2 .naht-pfeil { transform: translate3d(calc((1 - var(--q)) * 120vw), calc((1 - var(--q)) * -6vh), 0) rotate(calc((1 - var(--q)) * 5deg)) scaleX(-1); }
.naht-2 .naht-kreide { left: auto; right: calc(100% - var(--tx) + 1.2vw); color: var(--rot); transform: rotate(5deg); }
.js .naht-2 .naht-kreide { transform: rotate(5deg) translate3d(0, 12px, 0); }
.js .naht-2.traf .naht-kreide { transform: rotate(5deg); }
.naht-2.traf .naht-pfeil { animation: wackeln2 .5s cubic-bezier(.3, .6, .3, 1); }
@keyframes wackeln2 { 0% { transform: rotate(-3deg) scaleX(-1); } 30% { transform: rotate(2deg) scaleX(-1); } 60% { transform: rotate(-1deg) scaleX(-1); } 100% { transform: rotate(0) scaleX(-1); } }

/* ---------- 3 · Probewurf ---------- */
.probe { background: var(--creme); color: var(--schwarz); padding: 12vh 0 14vh; overflow: hidden; }
.probe-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5vw; align-items: center; }
.probe-text > p { margin-top: 1.1rem; max-width: 38ch; }
.legende { margin-top: 1.6rem; display: grid; gap: .55rem; font-weight: 600; }
.legende li { display: flex; align-items: center; gap: .8rem; }
.legende i { flex: none; width: 2.6rem; height: .7rem; border-radius: 999px; background: var(--rot); }
.legende li:nth-child(2) i { background: var(--gruen); }
.legende li:nth-child(3) i { width: .9rem; height: .9rem; margin-inline: .85rem; background: var(--rot); box-shadow: 0 0 0 .32rem var(--gruen); }
.aufnahme { margin-top: 2rem; min-height: 11.5rem; }
.slots { display: flex; gap: .7rem; font-family: "Caveat", cursive; font-size: var(--s-kreide); font-weight: 700; line-height: 1; }
.slots li { min-width: 4.6ch; min-height: 2.5em; padding: .35em .5em; border-radius: var(--ecke); background: var(--schwarz); color: var(--kreide); display: grid; place-items: center; text-align: center; }
.slots li small { display: block; font-family: "Epilogue", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; opacity: .75; }
.slots li.leer { background: transparent; color: var(--schwarz); box-shadow: inset 0 0 0 2px rgba(21, 20, 18, .35); }
.summe { margin-top: 1rem; font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 850; letter-spacing: -.02em; }
.urteil { margin-top: .3rem; max-width: 36ch; min-height: 3em; }
.probe-knoepfe { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.probe-scheibe { --B: min(80vh, 46vw); --e: clamp(0, calc((var(--p, 1) - .04) * 3.4), 1); transform: translate3d(calc((1 - var(--e)) * 62vw), 0, 0) rotate(calc((1 - var(--e)) * 150deg)); cursor: crosshair; touch-action: manipulation; }
.feldmal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.feld-name { position: absolute; z-index: 5; left: 0; top: 0; padding: .3rem .7rem; border-radius: 999px; background: var(--schwarz); color: var(--kreide); font-size: .9rem; font-weight: 750; white-space: nowrap; pointer-events: none; display: none; transform: translate3d(var(--fx, 0), var(--fy, 0), 0) translate(14px, -130%); }
.feld-name.an { display: block; }
.wurf { display: none; }
.wurf.da { display: block; }

/* ---------- 4 · Tafel: Training und Beitrag ---------- */
.tafel { position: relative; background: #1a1a19; color: var(--kreide); padding: 16vh 0 16vh; overflow: hidden; }
.tafel-bild { position: absolute; inset: 0; }
.tafel-bild img { width: 100%; height: 100%; object-fit: cover; }
.tafel-raster { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6vw; align-items: start; }
.kreide-zeilen { margin-top: 2.6rem; font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(1.7rem, 3.3vw, 3.4rem); line-height: 1.12; }
.kreide-zeilen li { display: grid; grid-template-columns: 6.2ch 4.4ch 1fr; gap: 0 1.6ch; padding: .25em 0; border-bottom: 2px solid rgba(246, 241, 228, .28); --an: clamp(0, calc((var(--p, 1) - var(--ab, 0)) * 9), 1); clip-path: inset(-10% calc((1 - var(--an)) * 100%) -10% 0); }
.kreide-zeilen li:nth-child(1) { --ab: .15; } .kreide-zeilen li:nth-child(2) { --ab: .2; } .kreide-zeilen li:nth-child(3) { --ab: .25; } .kreide-zeilen li:nth-child(4) { --ab: .3; }
.kreide-zeilen .zeit { color: var(--gift); }
.kreide-beitrag { margin-top: 2.2rem; font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(1.7rem, 3.3vw, 3.4rem); line-height: 1.1; --an: clamp(0, calc((var(--p, 1) - .36) * 9), 1); clip-path: inset(-10% calc((1 - var(--an)) * 100%) -10% 0); }
.kreide-beitrag b { color: var(--gift); font-weight: 700; }
.tafel-notiz { margin-top: 1.4rem; max-width: 44ch; }
.kreide-stand { font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3.8rem); line-height: 1.02; text-align: right; padding: .2em .5em 0 .9em; border-left: 3px solid rgba(246, 241, 228, .5); font-variant-numeric: tabular-nums; transform: rotate(1.5deg); min-width: 5ch; }
.kreide-stand::before { content: "Rest"; display: block; font-family: "Epilogue", sans-serif; font-size: var(--s-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.kreide-stand li { position: relative; width: max-content; margin-left: auto; }
.kreide-stand li.kommt { display: none; }
.kreide-stand li.durch { opacity: .62; }
.kreide-stand li.durch::after { content: ""; position: absolute; left: -8%; right: -8%; top: 52%; height: 3px; border-radius: 2px; background: var(--kreide); transform: rotate(-7deg); }
.kreide-stand li.jetzt { color: var(--gift); }

/* ---------- 5 · Distanz: 237 Zentimeter ---------- */
.distanz { height: calc(var(--vh) * 4.2); }
.distanz-buehne { position: sticky; top: 0; height: var(--vh); overflow: hidden; background: var(--rot); color: var(--kreide); --m: min(27vw, 42vh); --boden: 9vh; --links: max(2vw, calc((100vw - 1600px) / 2)); --ox: calc(var(--links) + var(--m) * 1.72 * .674 * .53); --e: 0; }
.cm { position: absolute; left: calc(var(--ox) + var(--m) * .62); bottom: calc(var(--boden) - 1.5vh); font-size: calc(var(--m) * .98); font-weight: 900; line-height: .8; letter-spacing: -.05em; color: rgba(21, 20, 18, .2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm small { font-size: .28em; letter-spacing: -.02em; margin-left: .12em; }
.distanz-text { position: absolute; left: calc(var(--ox) + var(--m) * .66); top: calc(100% - var(--boden) - var(--m) * 1.18); width: min(calc(var(--m) * 1.5), 36rem); }
.distanz-text p { margin-top: 1rem; }
.spielerin { position: absolute; left: var(--links); bottom: var(--boden); height: calc(var(--m) * 1.72); width: auto; max-width: none; }
.boden { position: absolute; left: 0; right: 0; bottom: var(--boden); height: 0; border-top: 3px solid rgba(246, 241, 228, .85); }
.linie-etikett { position: absolute; left: var(--ox); top: .6rem; padding-left: .7rem; border-left: 3px solid var(--kreide); font-size: var(--s-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mass { position: absolute; left: var(--ox); top: .6rem; width: calc(var(--m) * 2.37); height: 1.6rem; border-right: 3px solid var(--kreide); text-align: right; padding-right: .7rem; font-weight: 850; font-size: 1.05rem; }
.wand { position: absolute; left: calc(var(--ox) + var(--m) * 2.37); bottom: calc(var(--boden) + var(--m) * 1.73); width: 0; height: 0; }
.wand img { position: absolute; width: calc(var(--m) * .6); height: calc(var(--m) * .6); max-width: none; left: calc(var(--m) * -.3); top: calc(var(--m) * -.3); transform: perspective(900px) rotateY(-66deg); border-radius: 50%; box-shadow: 14px 0 0 -2px #0d0c0b; }
.distanz.traf .wand img { animation: wand .36s cubic-bezier(.2, .7, .2, 1); }
@keyframes wand { 0% { transform: perspective(900px) rotateY(-66deg); } 25% { transform: perspective(900px) rotateY(-66deg) translateX(6px) scale(.97); } 100% { transform: perspective(900px) rotateY(-66deg); } }
.hoehe { position: absolute; left: calc(var(--ox) + var(--m) * 2.37 + var(--m) * .2); bottom: var(--boden); height: calc(var(--m) * 1.73); border-left: 3px dotted rgba(246, 241, 228, .8); padding-left: .6rem; display: flex; align-items: center; font-weight: 850; font-size: 1.05rem; white-space: nowrap; }
.flug-pfeil { position: absolute; z-index: 3; left: 0; top: 0; width: calc(var(--m) * .5); height: auto; max-width: none; transform-origin: 99.7% 55%; will-change: transform; }
.distanz-kreide { position: absolute; z-index: 4; left: calc(var(--ox) + var(--m) * 1.62); bottom: calc(var(--boden) + var(--m) * 1.42); font-family: "Caveat", cursive; font-size: var(--s-kreide); font-weight: 700; color: var(--kreide); transform: rotate(-5deg); transition: opacity .2s, transform .3s; white-space: nowrap; }
.js .distanz-kreide { opacity: 0; transform: rotate(-5deg) translate3d(0, 10px, 0); }
.js .distanz.traf .distanz-kreide { opacity: 1; transform: rotate(-5deg); }

/* ---------- 6 · Vereinsheim ---------- */
.heim { min-height: calc(var(--vh) * 1.55); display: flex; align-items: flex-end; padding: 0 0 12vh; }
.heim-karte { background: var(--schwarz); color: var(--kreide); border-radius: var(--ecke); padding: clamp(1.4rem, 3vw, 3rem); max-width: 40rem; }
.heim-karte p { margin-top: 1rem; }
.heim-fakten { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.heim-fakten li { padding: .4rem .9rem; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(246, 241, 228, .4); font-size: .93rem; font-weight: 650; }

/* ---------- 7 · Mannschaften ---------- */
.teams { background: var(--gruen); color: var(--kreide); padding: 14vh 0 15vh; overflow: hidden; }
.teams h2 { max-width: 18ch; }
.team-liste { margin-top: 7vh; }
.team-liste li { display: grid; grid-template-columns: min(36vw, 560px) minmax(0, 1fr); align-items: center; gap: 2.5vw; padding: 3.2vh 0; border-top: 3px solid rgba(246, 241, 228, .9); --an: clamp(0, calc((var(--p, 1) - var(--ab, 0)) * 5.5), 1); --aus: calc(1 - (1 - var(--an)) * (1 - var(--an)) * (1 - var(--an))); }
.team-liste li:last-child { border-bottom: 3px solid rgba(246, 241, 228, .9); }
.team-liste li:nth-child(1) { --ab: .14; } .team-liste li:nth-child(2) { --ab: .2; } .team-liste li:nth-child(3) { --ab: .26; } .team-liste li:nth-child(4) { --ab: .32; }
.team-pfeil { width: 100%; height: auto; transform: translate3d(calc((1 - var(--aus)) * -70vw), 0, 0) rotate(calc((1 - var(--aus)) * -4deg)); transform-origin: 99.7% 55%; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.team-liste li:hover .team-pfeil { transform: translate3d(-22px, 0, 0) rotate(-1.5deg); }
.team-liste h3 { font-size: clamp(1.7rem, 4.4vw, 4.6rem); font-weight: 900; letter-spacing: -.035em; line-height: .95; }
.team-liste p { margin-top: .5rem; font-weight: 600; }

/* ---------- 8 · Schluss: Rest 141, das Formular wirft die letzten drei ---------- */
.schluss { position: relative; background: var(--creme); color: var(--schwarz); padding: 14vh 0 15vh; overflow: hidden; }
.schluss-flut { position: absolute; inset: 0; background: var(--gift); clip-path: circle(0 at var(--fx, 70%) var(--fy, 40%)); transition: clip-path 1.1s cubic-bezier(.2, .7, .2, 1); }
.schluss.gewonnen .schluss-flut { clip-path: circle(160vmax at var(--fx, 70%) var(--fy, 40%)); }
.schluss-raster { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6vw; align-items: center; }
.schluss h2 { font-size: var(--s-kopf); }
.schluss-text > p { margin-top: 1.1rem; max-width: 40ch; }
.formular { margin-top: 2rem; display: grid; gap: 1rem; max-width: 30rem; }
.feld label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 750; font-size: .95rem; margin-bottom: .35rem; }
.feld label small { font-weight: 650; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.feld input, .feld select { width: 100%; min-height: 52px; padding: .7rem 1rem; border: 2px solid var(--schwarz); border-radius: var(--ecke); background: #fffaf0; color: var(--schwarz); font: inherit; font-weight: 600; }
.feld input:focus-visible, .feld select:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 2px; }
.feld input[aria-invalid="true"] { border-color: #a3121a; background: #fff0ee; }
.feld-fehler { min-height: 1.3em; font-size: .86rem; font-weight: 650; color: #8f0f16; margin-top: .25rem; }
.formular .knopf { justify-self: start; }
.formular-meldung { min-height: 2.9em; font-weight: 800; font-size: 1.1rem; outline: none; }
.schluss-seite { position: relative; }
.schluss-scheibe { --B: min(64vh, 38vw); }
.schluss-kreide { margin-top: 1.4rem; display: flex; gap: 1.4rem; justify-content: center; font-family: "Caveat", cursive; font-size: var(--s-kreide); font-weight: 700; line-height: 1; min-height: 1.2em; }
.schluss-kreide li { opacity: .28; transition: opacity .2s; }
.schluss-kreide li.da { opacity: 1; }
.shot { position: absolute; left: 50%; top: 50%; z-index: 6; width: max-content; margin-left: -2.6em; padding: .16em .3em .1em; border-radius: var(--ecke); background: var(--schwarz); text-align: center; font-size: clamp(2.6rem, 6.4vw, 6.6rem); font-weight: 900; line-height: .9; letter-spacing: -.045em; color: var(--gift); transform: translate3d(0, -50%, 0) rotate(-6deg) scale(.6); pointer-events: none; transition: visibility 0s .5s, transform .6s .5s cubic-bezier(.2, 1.3, .3, 1); }
.schluss.gewonnen .shot { visibility: visible; transform: translate3d(0, -50%, 0) rotate(-6deg) scale(1); }
.schluss.gewonnen .schluss-scheibe { opacity: .9; }

/* ---------- Fuß ---------- */
.fuss { background: var(--schwarz); color: var(--kreide); padding: 9vh 0 5vh; overflow: hidden; }
.fuss-wort { font-size: min(17.4vw, 19rem); font-weight: 900; line-height: .78; letter-spacing: -.055em; color: var(--gift); text-align: center; white-space: nowrap; }
.fuss-raster { margin-top: 7vh; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 2.5rem; font-size: .96rem; }
.fuss a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.fuss a:hover { text-decoration: underline; text-underline-offset: 4px; }
.zeichen-liste { display: flex; gap: .3rem; }
.zeichen-link { width: 44px; height: 44px; display: grid !important; place-items: center; border-radius: 50%; transition: background-color .2s, color .2s; }
.zeichen-link:hover { background: var(--gift); color: var(--schwarz); }
.zeichen { width: 22px; height: 22px; }
.fuss-klein { grid-column: 1 / -1; font-size: var(--s-klein); opacity: .8; border-top: 1px solid rgba(246, 241, 228, .25); padding-top: 1.2rem; }

/* ---------- Mittlere Breite und flache Fenster ---------- */
@media (max-width: 999px), (max-height: 560px) {
  .kopf-raster { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr; column-gap: 4vw; }
  .kopf-text { align-self: center; padding-bottom: 0; }
  .kopf-sub { margin-top: .7rem; font-size: .98rem; }
  .kopf-text .knopf { margin-top: 1rem; }
  .kopf-beleg { margin-top: .9rem; }
  .scheibe-box { --B: min(62vh, 42vw); --sx: .98; --sy: .62; --ss: 2.1; }
  .kopf-tafel { position: absolute; right: max(var(--rand), 2vw); top: calc(var(--leiste) + 1vh); padding-top: 0; }
  .t-zahl { font-size: clamp(2.6rem, 7vw, 4.6rem); }
  .t-wuerfe, .t-summe { display: none; }
  .t-rest { display: inline; }
  .kopf-wink { display: none; }
  .zahlen-raster, .probe-raster, .tafel-raster, .schluss-raster { grid-template-columns: 1fr; }
  .probe-scheibe { --B: min(86vw, 78vh); justify-self: center; }
  .schluss-scheibe { --B: min(70vw, 60vh); margin-inline: auto; }
  .kreide-stand { display: flex; flex-wrap: wrap; gap: .1em .8em; border-left: 0; border-top: 3px solid rgba(246, 241, 228, .5); padding: .4em 0 0; transform: none; text-align: left; }
  .kreide-stand::before { width: 100%; margin-bottom: 0; }
  .kreide-stand li { margin-left: 0; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}

/* ---------- Handy hochkant ---------- */
@media (max-width: 599px) and (min-height: 561px) {
  .kopf-raster { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; row-gap: 1.6vh; padding-top: calc(var(--leiste) + 1vh); }
  .kopf-text { display: contents; }
  .kopf-text h1 { order: 1; }
  .kopf-sub { order: 2; max-width: none; margin-top: 0; }
  .scheibe-box { order: 3; --B: min(80vw, 40vh); --sx: .9; --sy: .86; --ss: 1.9; justify-self: center; margin-top: 1vh; }
  .kopf-unten { order: 4; align-self: start; }
  .kopf-tafel { display: none; }
  .kopf-text { opacity: 1; transform: none; }
  .kopf-text > * { opacity: calc(1 - var(--raus)); }
  .stand-wort { display: none; }
  .stand { padding-inline: .7rem; }
  .gross180 { bottom: 6vh; font-size: 46vw; }
  .mitte-wort { font-size: 15.5vw; }
  .zahlen-liste { gap: 4vh 5vw; }
  .naht-buehne { --pb: 84vw; }
  .naht { --tx: 80%; }
  .naht-2 { --tx: 20%; }
  .naht-kreide { top: calc(50% - 4.2em); left: auto; right: 6vw; }
  .naht-2 .naht-kreide { right: auto; left: 6vw; }
  .naht-zahl { font-size: 34vw; }
  .naht { --zh: 17vw; }
  .kreide-zeilen li { grid-template-columns: 5.6ch 4.2ch; }
  .kreide-zeilen .was { grid-column: 1 / -1; font-size: .8em; opacity: .9; }
  .distanz-buehne { --m: 20vh; --boden: 7vh; --links: -5vw; }
  .cm { left: auto; right: 5vw; bottom: auto; top: calc(var(--leiste) + 25vh); font-size: 30vw; }
  .distanz-text { left: var(--rand); right: var(--rand); width: auto; top: calc(var(--leiste) + 1.5vh); }
  .distanz-text p { font-size: .96rem; }
  .wand { left: auto; right: 9vw; bottom: calc(var(--boden) + var(--m) * 1.73); }
  .wand img { width: 34vw; height: 34vw; left: -17vw; top: -17vw; }
  .mass, .hoehe { display: none; }
  .flug-pfeil { width: 24vw; }
  .distanz-kreide { left: auto; right: 6vw; bottom: calc(var(--boden) + var(--m) * 1.2); }
  .team-liste li { grid-template-columns: 1fr; gap: 1.2vh; }
  .team-pfeil { width: 72vw; }
  .heim { padding-bottom: 8vh; }
  .fuss-raster { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Ruhige Fassung und ohne JavaScript: alles steht fertig da ---------- */
.ruhig .kopf, html:not(.js) .kopf, .ruhig .distanz, html:not(.js) .distanz, .ruhig .naht, html:not(.js) .naht { height: auto; }
.ruhig .kopf-buehne, html:not(.js) .kopf-buehne, .ruhig .distanz-buehne, html:not(.js) .distanz-buehne { position: relative; }
.ruhig .naht-buehne, html:not(.js) .naht-buehne { position: relative; height: 70vh; }
.ruhig .kopf-wink, html:not(.js) .kopf-wink, .ruhig .gross180, html:not(.js) .gross180, .ruhig .kopf-max, html:not(.js) .kopf-max, html:not(.js) .stand, html:not(.js) .probe-knoepfe, html:not(.js) .aufnahme { display: none; }
.ruhig .t-wuerfe li, .ruhig .t-summe, html:not(.js) .t-wuerfe li, html:not(.js) .t-summe { opacity: 1; transform: none; }
.ruhig .steckt .pfeil-bild, .ruhig .naht.traf .naht-pfeil, .ruhig .scheibe.schlag { animation: none; }
html:not(.js) .distanz-buehne { --e: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Plätze der Pfeile (Spitze in Prozent der Scheibe, Winkel des Schafts) */
.p1 { --x: 48.4%; --y: 27.4%; --w: 152deg; }
.p2 { --x: 51.4%; --y: 26.9%; --w: 128deg; }
.p3 { --x: 49.9%; --y: 27.8%; --w: 174deg; }
.s7 { --x: 50.3%; --y: 27.2%; --w: 152deg; }
.s8 { --x: 42.94%; --y: 71.72%; --w: 158deg; }
.s9 { --x: 28.31%; --y: 20.15%; --w: 145deg; }
.mitte-wort { --e: clamp(0, calc((var(--p, 1) - .1) * 3), 1); }
.ruhig .stand { display: none; }

/* ---------- Rechtliches ---------- */
.recht-seite { background: var(--gruen); }
.recht-seite .leiste { position: absolute; justify-content: space-between; }
.recht { max-width: 46rem; margin-inline: auto; padding: calc(var(--leiste) + 3rem) var(--rand) 5rem; }
.recht h1 { margin-bottom: 2rem; }
.recht h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 3rem; margin-bottom: .8rem; }
.recht p, .recht dl { margin: 0 0 .8rem; }
.recht dt { font-size: var(--s-klein); opacity: .85; }
.recht dd { margin: 0 0 .5rem; }
.recht .hinweis-kasten { background: var(--schwarz); border-radius: var(--ecke); padding: 1.4rem; margin-bottom: 2rem; }
.recht-seite .fuss { padding-top: 2rem; }

/* ---------- Keilkante: die nächste Farbe schiebt sich schräg herein und legt sich gerade ---------- */
.keilkante { position: relative; z-index: 2; margin-top: -9vw; padding-top: calc(14vh + 9vw); --k: clamp(0, calc(var(--p, 1) * 3.2), 1); clip-path: polygon(0 calc((1 - var(--k)) * 9vw), 100% 0, 100% 100%, 0 100%); }
.keilkante.andersrum { clip-path: polygon(0 0, 100% calc((1 - var(--k)) * 9vw), 100% 100%, 0 100%); }
/* Vereinsheim: der Schlitz öffnet auf einen dunklen Raum, dann geht das Licht an */
.dunkel { position: absolute; inset: 0; background: #0b0a09; opacity: calc((1 - var(--licht, 1)) * .74); pointer-events: none; }
.doppel-heim .doppel-bild img { transform: scale(calc(1.12 - var(--licht, 1) * .12)); }

/* Flaches Fenster: Zähler im Kopf und langer Text der Distanz weichen */
@media (max-height: 560px) {
  .kopf-tafel { display: none; }
  .distanz-text p { display: none; }
  .distanz-text h2 { font-size: 1.45rem; }
  .cm { font-size: calc(var(--m) * .8); }
}

/* Kopf: die Scheibe ist die Null von 501. Zwei Riesenziffern stehen Ton in Ton links und rechts, sie weichen mit dem ersten Wurf */
.riese { position: absolute; top: 50%; z-index: -1; font-size: 110cqw; font-weight: 900; line-height: .8; letter-spacing: -.04em; color: rgba(6, 48, 27, .36); --weg: clamp(0, calc(var(--p, 0) * 9), 1); opacity: calc(1 - var(--weg)); pointer-events: none; user-select: none; }
.riese-5 { right: 101%; transform: translate3d(calc(var(--mx) * 16px - var(--weg) * 30cqw), -52%, 0); }
.riese-1 { left: 99%; transform: translate3d(calc(var(--mx) * 16px + var(--weg) * 30cqw), -52%, 0); }
.kopf-text, .kopf-tafel { position: relative; z-index: 2; }
.kopf-tafel { opacity: calc(clamp(0, calc(var(--p, 0) * 9 - .3), 1) * (1 - var(--raus))); }
@media (max-width: 999px), (max-height: 560px) { .riese { display: none; } .kopf-tafel { position: absolute; opacity: calc(1 - var(--raus)); } }
.ruhig .kopf .stecker, html:not(.js) .kopf .stecker { display: none; }
.js:not(.bereit) .riese { visibility: hidden; }

.js .shot { visibility: hidden; }
html:not(.js) .shot { display: none; }
