/* MARIE · die Münze aus Wien (Beispiel) · lp-246, zweite Fassung „HODL, die Kurs-Achterbahn“
   Fünf Phasen, je eine laute Farbe. Größen und Farben nur aus den Variablen. */

@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --c0: #6B2BFF; --c1: #B8FF2E; --c2: #E01A3A; --c3: #19D9E6; --c4: #0A1038; --c5: #FFD21F;
  --tinte: #0B0A14; --weiss: #fff; --gold: #FFD21F; --hoch: #7CFF6B; --tief: #FF7A8A;
  --u: min(1vw, 16px);
  --seite: max(0px, (100vw - 1600px) / 2);
  --rand: calc(var(--seite) + max(20px, 4 * var(--u)));
  --g-wort: clamp(5.5rem, min(28 * var(--u), 45svh), 28rem);
  --g-zeile: clamp(2rem, min(4.4 * var(--u), 8.4svh), 4.4rem);
  --g-ueber: clamp(1.625rem, min(3.3 * var(--u), 6.4svh), 3.3rem);
  --g-zahl: clamp(1.75rem, 2.6 * var(--u), 2.75rem);
  --g-text: clamp(1.0625rem, 1.12 * var(--u), 1.1875rem);
  --g-klein: 0.875rem;
  --a1: 8px; --a2: 16px; --a3: 24px; --a4: 40px; --a5: 64px; --a6: 104px;
  --kopf: 72px; --leiste: 64px;
  --titel: "Chakra Petch", "Arial Narrow", Impact, sans-serif;
  --text: "Sora", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--kopf); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c0); color: var(--weiss); font: 400 var(--g-text)/1.5 var(--text); overflow-x: clip; }
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.rand { padding-inline: var(--rand); }
.klein { font-size: var(--g-klein); }
main { position: relative; z-index: 1; }

.sprung { position: absolute; left: var(--rand); top: -80px; z-index: 60; background: var(--gold); color: var(--tinte); padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.sprung:focus { top: 12px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--gold); color: var(--tinte); font: 700 1.0625rem/1 var(--text); text-decoration: none; cursor: pointer; transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s; box-shadow: 0 0 0 0 var(--tinte); }
.knopf:hover { transform: translate(-2px, -3px); box-shadow: 4px 5px 0 0 var(--tinte); }
.knopf:active { transform: translate(1px, 1px) scale(0.98); box-shadow: 0 0 0 0 var(--tinte); }
.knopf-klein { padding: 0 22px; font-size: 0.9375rem; }
.knopf-dunkel { background: var(--tinte); color: var(--gold); }
.knopf-dunkel:hover { box-shadow: 4px 5px 0 0 rgb(11 10 20 / 0.35); }
.knopf-rahmen { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 700 1rem/1 var(--text); cursor: pointer; }

/* Kopfzeile */
.leiste { position: fixed; z-index: 40; top: 10px; left: var(--rand); right: var(--rand); height: 52px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.leiste > * { pointer-events: auto; }
.marke { display: inline-flex; align-items: baseline; gap: 8px; height: 52px; padding: 15px 20px 0; border-radius: 999px; background: var(--tinte); color: var(--weiss); font: 700 1.5rem/1 var(--titel); letter-spacing: 0.06em; text-decoration: none; }
.marke small { font: 500 0.6875rem/1 var(--text); letter-spacing: 0; opacity: 0.75; }
.ticker { position: relative; overflow: hidden; margin-left: auto; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px 0 12px; border-radius: 999px; background: var(--tinte); color: var(--weiss); }
.ticker-muenze { width: 26px; height: 26px; }
.ticker-kurs { display: inline-flex; align-items: baseline; gap: 5px; }
.ticker-kurs b { font: 700 1.5rem/1 var(--titel); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
.ticker-kurs span { font-size: 0.8125rem; opacity: 0.85; }
.ticker-delta { display: inline-flex; align-items: center; gap: 6px; color: var(--hoch); font: 700 0.9375rem/1 var(--titel); font-variant-numeric: tabular-nums; min-width: 8ch; }
.ticker-delta i { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid currentColor; transition: rotate 0.25s; }
.ticker-delta.runter { color: var(--tief); }
.ticker-delta.runter i { rotate: 180deg; }
.ticker-lade { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--lade, 0) * 100%); background: var(--gold); transition: opacity 0.5s 0.3s; }
.ticker.geladen .ticker-lade { opacity: 0; }

/* Der Ritt: eine angeheftete Bühne, fünf Phasen */
.ritt { height: 1080svh; }
.buehne { position: sticky; top: 0; height: 100svh; overflow: clip; color: var(--weiss); --schrift: var(--weiss); }
.buehne[data-tinte="1"], .buehne[data-tinte="3"] { color: var(--tinte); }
.grund, .kerze { position: absolute; inset: 0; }
.grund { background: var(--c0); }
.buehne[data-phase="1"] .grund { background: var(--c1); }
.buehne[data-phase="2"] .grund { background: var(--c2); }
.buehne[data-phase="3"] .grund { background: var(--c3); }
.buehne[data-phase="4"] .grund { background: var(--c4); }
/* Die Kerze füllt den Bildschirm: grün von unten, rot von oben, seitwärts von links */
.kerze { transform: scaleY(var(--w, 0)); transform-origin: 50% 100%; will-change: transform; }
.buehne[data-nach="1"] .kerze { background: var(--c1); }
.buehne[data-nach="2"] .kerze { background: var(--c2); transform-origin: 50% 0; }
.buehne[data-nach="3"] .kerze { background: var(--c3); transform: scaleX(var(--w, 0)); transform-origin: 0 50%; }
.buehne[data-nach="4"] .kerze { background: var(--c4); }

.skyline { position: absolute; left: -4vw; right: -4vw; bottom: -14svh; height: 76svh; display: flex; align-items: flex-end; gap: 1.1vw; padding-inline: 1.6vw; pointer-events: none; }
.skyline i { flex: 1; height: var(--h, 50%); background: rgb(11 10 20 / 0.13); transform-origin: 50% 100%; transform: scaleY(clamp(0, calc(var(--sky, 0) * 2.4 - var(--d, 0)), 1)); }
.skyline i:nth-child(1) { --h: 18%; --d: 0; } .skyline i:nth-child(2) { --h: 26%; --d: 0.08; } .skyline i:nth-child(3) { --h: 22%; --d: 0.16; }
.skyline i:nth-child(4) { --h: 34%; --d: 0.24; } .skyline i:nth-child(5) { --h: 30%; --d: 0.32; } .skyline i:nth-child(6) { --h: 44%; --d: 0.4; }
.skyline i:nth-child(7) { --h: 40%; --d: 0.48; } .skyline i:nth-child(8) { --h: 52%; --d: 0.56; } .skyline i:nth-child(9) { --h: 47%; --d: 0.64; }
.skyline i:nth-child(10) { --h: 62%; --d: 0.72; } .skyline i:nth-child(11) { --h: 58%; --d: 0.8; } .skyline i:nth-child(12) { --h: 72%; --d: 0.88; }
.skyline i:nth-child(13) { --h: 68%; --d: 0.96; } .skyline i:nth-child(14) { --h: 84%; --d: 1.04; } .skyline i:nth-child(15) { --h: 80%; --d: 1.12; } .skyline i:nth-child(16) { --h: 100%; --d: 1.2; }

.sterne { position: absolute; inset: -6%; opacity: var(--nacht, 0); pointer-events: none; }
.sterne b { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--weiss); }
.sterne b.gross { width: 5px; height: 5px; background: var(--gold); }
.sterne .ebene { position: absolute; inset: 0; transform: translate3d(calc(var(--mx, 0) * var(--t, 10) * 1px), calc(var(--my, 0) * var(--t, 10) * 1px + var(--sy, 0) * var(--t, 10) * 1px), 0); }
.sterne .e1 { --t: -8; } .sterne .e2 { --t: -20; } .sterne .e3 { --t: -38; }

.linie { position: absolute; left: 0; top: 13%; width: 100%; height: 50%; pointer-events: none; }
.linie-weg { fill: none; stroke: currentColor; stroke-width: 3; stroke-opacity: 0.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }

.kipp { position: absolute; z-index: 3; inset: 0; pointer-events: none; transform: translate3d(calc(var(--rx, 0) * 1px), calc(var(--ry, 0) * 1px), 0) rotate(calc(var(--kipp, 0) * 1deg)); transform-origin: 50% 62%; will-change: transform; }
.wort { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--kopf) + 5svh); display: flex; justify-content: center; align-items: center; font: 700 var(--g-wort)/0.8 var(--titel); letter-spacing: -0.01em; user-select: none; white-space: nowrap; }
.wort .b { opacity: var(--buchstaben, 1); }
.o { position: relative; z-index: 3; flex: none; width: 0.9em; height: 0.9em; margin: 0 0.03em 0 0.05em; transform: translate3d(calc(var(--ox, 0) * 1px), calc(var(--oy, 0) * 1px), 0) scale(var(--os, 1)); will-change: transform; }
.o-bild, .o-flaeche { position: absolute; inset: 0; width: 100%; height: 100%; }
.o.laeuft .o-bild { visibility: hidden; }
html:not(.js) .o-flaeche, html.ruhig .o-flaeche { display: none; }
.hof { position: absolute; inset: -26%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 226 120 / 0.5), rgb(255 226 120 / 0.16) 62%, rgb(255 226 120 / 0)); opacity: var(--hof, 0); }
.haende { position: absolute; z-index: 4; left: 50%; top: 60%; width: 176%; max-width: none; height: auto; margin-left: -88%; -webkit-mask-image: linear-gradient(#000 52%, transparent 90%); mask-image: linear-gradient(#000 52%, transparent 90%); transform: translate3d(0, calc((1 - var(--halt, 0)) * 120%), 0); opacity: clamp(0, calc(var(--halt, 0) * 4), 1); pointer-events: none; }
.bulle { position: absolute; z-index: 4; left: 0; bottom: 15svh; width: min(42vw, 640px); height: auto; transform: translate3d(calc(var(--bx, -120) * 1vw), calc(var(--by, 0) * 1px), 0) rotate(calc(var(--bw, 0) * 1deg)); pointer-events: none; }
.baer { position: absolute; z-index: 4; right: calc(var(--seite) - 5vw); top: calc(var(--kopf) + 17svh); height: 50svh; width: auto; transform: translate3d(calc(var(--brx, 70) * 1vw), 0, 0) rotate(calc(var(--brw, 0) * 1deg)); transform-origin: 60% 90%; pointer-events: none; }

/* Texte der Phasen */
.phase { position: absolute; z-index: 6; left: var(--rand); right: var(--rand); bottom: calc(var(--leiste) + 5svh); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: var(--a5); align-items: end; transition: opacity 0.3s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.phase > h1, .phase > h2, .phase > .phase-zeile, .phase > .beleg, .phase > .knopf, .phase > .satz { grid-column: 1; justify-self: start; }
.phase > ul, .phase > ol, .phase > .panik { grid-column: 2; }
.phase > ul, .phase > ol { grid-row: 1 / span 2; align-self: end; }
html.js .phase { opacity: 0; transform: translate3d(0, 22px, 0); pointer-events: none; }
html.js .phase.an { opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .phase, html.ruhig .phase { pointer-events: auto; }
h1 { font: 800 var(--g-zeile)/1.02 var(--text); letter-spacing: -0.02em; text-wrap: balance; max-width: 15ch; margin-bottom: var(--a2); }
.phase h2 { font: 800 var(--g-ueber)/1.06 var(--text); letter-spacing: -0.015em; text-wrap: balance; max-width: 19ch; margin-bottom: var(--a2); }
.phasen-name { display: block; font: 700 1.15em/1 var(--titel); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.12em; }
.phase-zeile { max-width: 34rem; }
.p0 .phase-zeile { margin-bottom: var(--a2); }
.beleg { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--a3); font-size: var(--g-klein); }
.beleg b { font: 700 var(--g-zahl)/1 var(--titel); color: var(--gold); font-variant-numeric: tabular-nums; }
.satz { margin-top: var(--a2); font-size: var(--g-klein); max-width: 30rem; }
.p0 > .beleg, .p0 > .knopf, .p0 > .satz { grid-column: 2; }
.p0 > h1 { grid-row: 1 / span 2; align-self: end; margin-bottom: 0; }
.p0 > .phase-zeile { grid-column: 2; grid-row: 1; }

.fakten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a3); }
.fakten b { display: block; font: 700 var(--g-zahl)/1 var(--titel); font-variant-numeric: tabular-nums; }
.fakten span { display: block; margin-top: 6px; font-size: var(--g-klein); line-height: 1.35; }
.fakten li { border-top: 3px solid currentColor; padding-top: 12px; }
.liste li { padding: 12px 0; border-top: 2px solid rgb(255 255 255 / 0.45); line-height: 1.35; }
.liste b { font-weight: 800; }
.panik { margin-top: var(--a2); display: flex; align-items: center; gap: var(--a2); min-height: 52px; }
#panik { transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0); transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.3), background 0.2s, color 0.2s; }
#panik.hodl { background: var(--weiss); color: var(--c2); border-color: var(--weiss); }
#panik-antwort { font-weight: 700; }
.tag { font: 700 1.1em/1 var(--titel); white-space: nowrap; font-variant-numeric: tabular-nums; }
.balken li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: var(--a2); padding: 10px 0 14px; font-size: 0.9375rem; line-height: 1.3; }
.balken b { font: 700 1.375rem/1 var(--titel); font-variant-numeric: tabular-nums; }
.balken i { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: rgb(11 10 20 / 0.16); }
.balken i::after { content: ""; position: absolute; inset: 0; background: var(--tinte); transform-origin: 0 50%; transform: scaleX(calc(var(--anteil) * clamp(0, var(--fuell, 0), 1))); }
.b60 { --anteil: 0.6; } .b20 { --anteil: 0.2; } .b12 { --anteil: 0.12; } .b8 { --anteil: 0.08; }
.schritte li { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--a2); align-items: baseline; padding: 12px 0; border-top: 2px solid rgb(255 255 255 / 0.3); line-height: 1.35; }
.schritte b { font: 700 1.25rem/1 var(--titel); color: var(--gold); }

/* Kurs-Leiste: wo bin ich im Ritt */
.kursleiste { position: absolute; z-index: 7; left: var(--rand); right: var(--rand); bottom: 12px; height: 44px; display: grid; grid-template-columns: 13fr 22fr 24fr 18fr 23fr; }
.kursleiste a { display: flex; align-items: flex-end; padding-bottom: 2px; border-top: 3px solid rgb(127 127 127 / 0.45); font: 700 0.8125rem/1 var(--titel); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; opacity: 0.6; transition: opacity 0.2s; }
.kursleiste a span { padding: 12px 0 0; }
.kursleiste a.an, .kursleiste a:hover { opacity: 1; }
.kursleiste-stand { position: absolute; left: 0; top: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: currentColor; }
.kursleiste-stand::after { content: ""; position: absolute; right: -6px; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--tinte); }

/* Landung */
.landung { position: relative; z-index: 2; background: var(--c5); color: var(--tinte); padding-block: var(--a6) 0; overflow: clip; }
.landung-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a5); align-items: end; }
.landung-text { padding-bottom: var(--a6); }
.landung h2 { font: 800 var(--g-zeile)/1.02 var(--text); letter-spacing: -0.02em; text-wrap: balance; max-width: 13ch; margin-bottom: var(--a4); }
.protokoll-kopf { font-weight: 700; padding-bottom: 10px; border-bottom: 3px solid var(--tinte); }
.protokoll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a2); margin-block: var(--a2) var(--a2); }
.protokoll div { display: flex; flex-direction: column-reverse; }
.protokoll dt { font-size: var(--g-klein); }
.protokoll dd { font: 700 clamp(1.75rem, 3.4 * var(--u), 3.4rem)/1 var(--titel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.formular { margin-top: var(--a4); max-width: 30rem; }
.feld { margin-bottom: var(--a2); }
.feld label { display: block; font-size: var(--g-klein); font-weight: 700; margin-bottom: 2px; }
.feld input { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 3px solid var(--tinte); border-radius: 0; background: transparent; color: var(--tinte); font: 500 1.0625rem/1.4 var(--text); }
.feld input:focus-visible { outline: none; box-shadow: 0 4px 0 0 var(--c0); border-bottom-color: var(--c0); }
.feld-fehler { min-height: 1.3em; margin-top: 4px; font-size: var(--g-klein); font-weight: 700; color: #9A0F25; }
.formular-meldung { margin-top: var(--a2); font-weight: 800; min-height: 1.5em; }
.formular-meldung:focus { outline: none; }
.landung-bild { position: relative; align-self: end; padding-top: 44svh; }
.schwein { position: relative; width: min(100%, 640px); margin-inline: auto; transform: rotate(calc(var(--wackel, 0) * 1deg)) scale(calc(1 + var(--plumps, 0) * 0.03), calc(1 - var(--plumps, 0) * 0.04)); transform-origin: 50% 100%; }
.schwein img { position: relative; width: 100%; height: auto; }
.schatten { position: absolute; left: 8%; right: 8%; bottom: -1%; height: 9%; background: radial-gradient(closest-side, rgb(11 10 20 / 0.3), rgb(11 10 20 / 0)); }
/* Die Münze fällt in den Schlitz: der Rahmen endet genau an der Schlitzkante */
.fall { position: absolute; z-index: 2; left: var(--schlitz-x, 56%); bottom: var(--schlitz-y, 95%); width: 24%; aspect-ratio: 1 / 3.2; margin-left: -11%; overflow: hidden; pointer-events: none; }
.fall-bild, .fall-flaeche { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1; height: auto; transform: translate3d(0, calc((var(--fall, 0) - 1) * 220% + var(--fall, 0) * 100%), 0); }
.fall.laeuft .fall-bild { visibility: hidden; }
html:not(.js) .fall-flaeche, html.ruhig .fall-flaeche { display: none; }
.plus { position: absolute; left: 76%; bottom: 100%; font: 700 clamp(2.5rem, 6 * var(--u), 6rem)/1 var(--titel); transition: opacity 0.3s, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.2); }
html.js .plus { opacity: 0; transform: translate3d(0, 20px, 0); }
html.js .plus.an { opacity: 1; transform: none; }
html.ruhig .plus { opacity: 1; transform: none; }

/* Fuß */
.fuss { position: relative; z-index: 2; background: var(--tinte); color: var(--weiss); padding-block: var(--a5); font-size: var(--g-klein); line-height: 1.7; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr auto 1.5fr; gap: var(--a4); align-items: start; }
.fuss a { text-underline-offset: 3px; }
.fuss a:hover { color: var(--gold); }
.zeichen-liste { display: flex; gap: 4px; }
.zeichen-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background 0.15s; }
.zeichen-link:hover { background: rgb(255 255 255 / 0.12); }
.zeichen { width: 22px; height: 22px; }

/* Rechtliches */
.recht { max-width: 46rem; margin-inline: auto; padding: calc(var(--kopf) + var(--a5)) var(--rand) var(--a6); }
.recht h1 { max-width: none; margin-bottom: var(--a4); }
.recht h2 { font: 800 clamp(1.375rem, 2.2 * var(--u), 1.875rem)/1.1 var(--text); margin: var(--a5) 0 var(--a2); }
.recht p, .recht dl { margin-bottom: var(--a2); }
.recht dt { font-size: var(--g-klein); opacity: 0.8; }
.recht dd { margin-bottom: var(--a1); }
.recht .kasten { background: var(--tinte); padding: var(--a3); margin-bottom: var(--a4); }

/* Startbild ohne Springen: bis zum ersten Takt stehen nur Wort, Münze und Kopftext */
html.js:not(.bereit) .bulle, html.js:not(.bereit) .baer, html.js:not(.bereit) .haende, html.js:not(.bereit) .kerze, html.js:not(.bereit) .skyline, html.js:not(.bereit) .sterne { visibility: hidden; }
html.js .p0 > * { animation: schub 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
html.js .p0 > :nth-child(2) { animation-delay: 0.05s; } html.js .p0 > :nth-child(3) { animation-delay: 0.1s; }
html.js .p0 > :nth-child(4) { animation-delay: 0.15s; } html.js .p0 > :nth-child(5) { animation-delay: 0.2s; }
@keyframes schub { from { translate: 0 22px; } }

/* Ohne JavaScript und bei „weniger Bewegung“: fünf Flächen untereinander, nichts angeheftet */
html:not(.js) .ritt, html.ruhig .ritt { height: auto; }
html:not(.js) .buehne, html.ruhig .buehne { position: relative; height: auto; overflow: visible; }
html:not(.js) .kerze, html.ruhig .kerze, html:not(.js) .skyline, html.ruhig .skyline, html:not(.js) .sterne, html.ruhig .sterne, html:not(.js) .linie, html.ruhig .linie, html:not(.js) .kursleiste, html.ruhig .kursleiste, html:not(.js) .bulle, html.ruhig .bulle, html:not(.js) .baer, html.ruhig .baer, html:not(.js) .haende, html.ruhig .haende, html:not(.js) .ticker, html:not(.js) .panik, html.ruhig .panik, html.ruhig .ticker-muenze { display: none; }
html:not(.js) .kipp, html.ruhig .kipp { position: relative; inset: auto; transform: none; pointer-events: auto; }
html:not(.js) .wort, html.ruhig .wort { position: relative; top: auto; padding: calc(var(--kopf) + 6svh) 0 7svh; }
html:not(.js) .grund, html.ruhig .grund { display: none; }
html:not(.js) .phase, html.ruhig .phase { position: relative; left: auto; right: auto; bottom: auto; opacity: 1; transform: none; pointer-events: auto; padding: var(--a5) var(--rand); }
html:not(.js) .p0, html.ruhig .p0 { padding-top: 0; padding-bottom: var(--a6); }
html:not(.js) .p1, html.ruhig .p1 { background: var(--c1); color: var(--tinte); }
html:not(.js) .p2, html.ruhig .p2 { background: var(--c2); color: var(--weiss); }
html:not(.js) .p3, html.ruhig .p3 { background: var(--c3); color: var(--tinte); }
html:not(.js) .p4, html.ruhig .p4 { background: var(--c4); color: var(--weiss); }
html:not(.js) .balken i::after, html.ruhig .balken i::after { transform: scaleX(var(--anteil)); }
html:not(.js) .p0 > *, html.ruhig .p0 > * { animation: none; }
html:not(.js) .fall-bild, html.ruhig .fall-bild { transform: none; }

/* Flaches Fenster am Computer */
@media (max-height: 640px) and (min-width: 821px) {
  .phase-zeile { display: none; }
  .phase { bottom: calc(var(--leiste) + 2svh); }
  .beleg { margin-bottom: var(--a2); }
  .fakten span { display: none; }
  .liste li, .schritte li, .balken li { padding-block: 6px 8px; font-size: 0.9375rem; }
}

/* Handy */
@media (max-width: 820px) {
  :root { --kopf: 68px; --leiste: 58px; --g-wort: min(29vw, 20svh); --a6: 72px; }
  .leiste { top: 8px; gap: 6px; }
  .marke { padding-inline: 14px; font-size: 1.25rem; }
  .marke small { display: none; }
  .ticker { gap: 8px; padding: 0 12px 0 8px; }
  .ticker-kurs b { font-size: 1.1875rem; min-width: 5.6ch; }
  .ticker-kurs span { display: none; }
  .ticker-delta { min-width: 0; font-size: 0.8125rem; }
  .knopf-klein { padding: 0 14px; font-size: 0.875rem; }
  .wort { top: calc(var(--kopf) + 2svh); }
  .phase { grid-template-columns: minmax(0, 1fr); bottom: calc(var(--leiste) + 2svh); }
  .p0 > .beleg, .p0 > .knopf, .p0 > .satz, .p0 > .phase-zeile { grid-column: 1; grid-row: auto; }
  .p0 > h1 { grid-row: auto; margin-bottom: 10px; }
  .phase > ul, .phase > ol, .phase > .panik { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .phase h2 { margin-bottom: 8px; }
  .phase-zeile { font-size: 1rem; line-height: 1.4; }
  .p0 .phase-zeile { margin-bottom: 10px; }
  .beleg { margin-bottom: 12px; }
  .satz { margin-top: 10px; }
  .fakten { gap: 10px; }
  .fakten li { padding-top: 8px; }
  .fakten span { font-size: 0.75rem; margin-top: 4px; }
  .liste li, .schritte li { padding: 7px 0; font-size: 0.9375rem; }
  .schritte li { grid-template-columns: 7.5rem 1fr; gap: 10px; }
  .schritte b { font-size: 1.0625rem; }
  .balken li { padding: 6px 0 10px; font-size: 0.875rem; }
  .balken b { font-size: 1.125rem; }
  .bulle { width: 66vw; bottom: 47svh; }
  .baer { height: 25svh; top: calc(var(--kopf) + 19svh); right: -9vw; }
  .kursleiste { height: 40px; }
  .kursleiste a { font-size: 0.6875rem; letter-spacing: 0.04em; }
  .kursleiste a:not(.an) span { visibility: hidden; }
  .linie { top: 15%; height: 30%; }
  .linie-weg { stroke-opacity: 0.38; }
  .landung-raster { grid-template-columns: 1fr; gap: 0; }
  .landung-text { padding-bottom: var(--a4); }
  .landung-bild { padding-top: 34svh; }
  .schwein { width: 78vw; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .ticker-delta { display: none; } }
@media (max-width: 820px) and (max-height: 700px) {
  .phase-zeile { display: none; }
  .p0 .phase-zeile { display: block; }
}
@media (max-width: 820px) and (max-height: 520px) {
  :root { --g-wort: min(29vw, 19svh); }
  .wort { top: calc(var(--kopf) - 4px); }
  .p0 .phase-zeile, .p0 .beleg { display: none; }
  .fakten span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
