/* Documented Journey: Seitenstil v10. Tokens: tokens.css. Inhalt ist standardmäßig sichtbar;
   Verstecken nur unter html.js-anim (setzt spur.js). Bühnen (sticky) nur unter html.js-anim,
   @supports (overflow-x: clip) und ausreichend großem Bildschirm ohne reduzierte Bewegung. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; background: var(--nacht); }
body {
  margin: 0; background: var(--nacht); color: var(--weiss);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:root { --fokus: var(--mint); --seite: clamp(1.25rem, 4.5vw, 4.5rem); --dim: #5d7b99; --papier: #fefefe; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }

.mono {
  font: 500 .8125rem/1.4 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
}

/* Sprunglink */
.sprung {
  position: fixed; left: 1rem; top: 1rem; z-index: 40;
  background: var(--mint); color: var(--nacht); padding: .7rem 1rem;
  font: 500 .875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-200%);
}
.sprung:focus { transform: none; }
main:focus { outline: none; }

/* Kopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; align-items: baseline;
  padding: 1.15rem var(--seite) 2.2rem;
  background: linear-gradient(to bottom, var(--nacht) 35%, rgba(6,34,63,0));
  transition: opacity .4s var(--ease), color .4s var(--ease);
  pointer-events: none;
}
.kopf a { pointer-events: auto; text-decoration: none; }
.wortmarke { font: 600 1.25rem/1 var(--serif); letter-spacing: -.01em; }
.wortmarke i { font-style: normal; color: var(--mint); font-size: 1.4em; line-height: .6; padding-right: .02em; transition: color .4s var(--ease); }
.kopf-link { font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.kopf-link:hover { border-bottom-width: 3px; }
html.in-zone .kopf { opacity: 0; }
html.in-zone .kopf a { pointer-events: none; }
html.in-zone .kopf:focus-within { opacity: 1; }
html.in-zone .kopf:focus-within a { pointer-events: auto; }
html.ist-hell { --fokus: var(--blau); }
html.ist-hell .kopf { color: var(--tinte); background: linear-gradient(to bottom, var(--eis) 35%, rgba(234,242,249,0)); }
html.ist-hell .wortmarke i { color: var(--blau); }

/* Papierkörnung über allem (Bild 180 px, kachelnd, ohne Mischmodus: kein Scroll-Kostentreiber) */
body::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; background: url("../img/korn.png") repeat; opacity: .04; }
.rechtsseite::after { opacity: .03; }

/* Grundaufbau */
main { position: relative; background: var(--nacht); overflow-x: clip; }
.kap { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.rahmen { position: relative; z-index: 2; width: 100%; padding-inline: var(--seite); }
.svh-sonde { position: absolute; top: 0; left: -9999px; width: 1px; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
.anker { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Spur */
.spur { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.spur-pfad { fill: none; stroke: url(#spur-verlauf); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spur-blatt path { fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spur-knoten circle { fill: var(--nacht); stroke: var(--mint); stroke-width: 1.5; transition: fill .5s var(--ease); }
.spur-knoten circle.an { fill: var(--mint); }
.spur-spitze { fill: var(--mint); transition: opacity .3s; }
html.statisch .spur-spitze { display: none; }

/* Zeilenmaske für Titel */
.zeile { display: block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.24em; }
.zeile > span { display: inline-block; }
.zeile .l { display: inline-block; }
html.js-anim .zeile .l { transform: translateY(125%) rotate(7deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
html.js-anim .zeile.ist .l { transform: none; }
html.js-anim .ist-lock .zeile .l { transform: none; transition: none; }
html.js-anim .reveal { opacity: 0; transform: translateY(1.1rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js-anim .reveal.ist { opacity: 1; transform: none; }

/* Linierung wie Formularpapier, nur auf den dunklen Kapiteln */
.auftakt, .ausgang, .station { --zeile: 4.5rem; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--zeile) - 1px), rgba(169,195,219,.07) calc(var(--zeile) - 1px), rgba(169,195,219,.07) var(--zeile)); }

/* 1 · Auftakt */
.auftakt { align-items: flex-end; padding-block: 18vh 14vh; }
.display { font: 500 clamp(4.4rem, 17vw, 21rem)/.9 var(--serif); letter-spacing: -.035em; font-variation-settings: "opsz" 60; }
.unter { margin-top: clamp(2rem, 5vh, 3.5rem); max-width: 34ch; font: 500 clamp(1.25rem, 2.2vw, 2rem)/1.3 var(--serif); color: var(--weiss); }
.klar { margin-top: 1.1rem; max-width: 52ch; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--nebelblau); }
.scrollen { position: absolute; z-index: 2; left: var(--seite); bottom: 2.2rem; display: flex; gap: .9rem; align-items: center; color: var(--nebelblau); transition: opacity .5s var(--ease); }
.scrollen-linie { display: block; width: 3.5rem; height: 1px; background: currentColor; transform-origin: left; animation: lauf 3.2s var(--ease) .6s 2 both; }
html.gescrollt .scrollen { opacity: 0; }
@keyframes lauf { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 75%, 100% { transform: scaleX(1); opacity: 0; } }
.anker-ursprung { bottom: 7rem; }

/* 2 · Ausgangslage */
.ausgang .rahmen { max-width: 96rem; display: grid; grid-template-columns: minmax(8rem, 16vw) minmax(0, 1fr); align-items: start; }
.ausgang .etikett { padding-top: 1.1rem; border-top: 1px solid rgba(15,252,190,.45); margin-right: 2rem; }
@media (max-width: 720px) { .ausgang .rahmen { display: block; } .ausgang .etikett { border-top: 0; padding-top: 0; } }
.etikett { color: var(--mint); margin-bottom: 1.6rem; }
.manifest { overflow-wrap: anywhere; max-width: 13.5em; font: 500 clamp(1.8rem, 4.9vw, 5.4rem)/1.08 var(--serif); text-indent: -.04em; letter-spacing: -.015em; }
.manifest .w { color: var(--dim); transition: color .5s var(--ease), transform .7s var(--ease); }
html.js-anim .manifest .w { display: inline-block; max-width: 100%; overflow-wrap: anywhere; transform: translateY(.34em); }
html.js-anim .manifest .w.an { transform: none; }
.manifest .w.an { color: var(--weiss); }
.anker-mitte { top: 50%; }

/* 3 · Stationen: Grundzustand = normaler Dokumentfluss */
.station { display: block; z-index: 2; min-height: 0; }
.buehne { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; padding-block: 6rem 4rem; perspective: 1400px; }
.ziffer-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ziffer {
  position: absolute; bottom: -.14em; right: 3vw;
  font: 500 clamp(14rem, 36vw, 48rem)/.8 var(--serif); letter-spacing: -.04em; color: rgba(169,195,219,.1); -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(169,195,219,.1); user-select: none;
}
.st-rechts .ziffer { right: auto; left: 3vw; }

.buehne-raster { --collage-b: min(36vw, 62vh); }
#s2 .buehne-raster { --collage-b: min(31vw, 54vh); }
.st-text { min-width: 0; max-width: calc(100% - var(--collage-b) - 3vw); }
.st-rechts .st-text { text-align: right; margin-left: auto; }

.titel { font: 500 clamp(3rem, 8.6vw, 13rem)/.95 var(--serif); letter-spacing: -.03em; font-variation-settings: "opsz" 60; }
.station .etikett { margin-bottom: 1.2rem; }
.felder { margin-top: clamp(1.8rem, 5vh, 3rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.6rem), 1fr)); gap: 1.6rem clamp(1rem, 2.2vw, 2rem); counter-reset: feld var(--feld-start, 0); }
.st-rechts .felder { text-align: left; }
.felder li { counter-increment: feld; display: flex; flex-direction: column; justify-content: flex-end; font: 500 clamp(.8125rem, 1vw, .95rem)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--weiss); padding: 0 0 1.5rem; border-bottom: 2px solid var(--mint); min-width: 0; overflow-wrap: break-word; }
.felder li::before { content: counter(feld, decimal-leading-zero); display: block; color: var(--mint); margin-bottom: .55rem; letter-spacing: .04em; }
#s1 .felder { --feld-start: 0; } #s2 .felder { --feld-start: 4; } #s3 .felder { --feld-start: 8; }
.felder-quadrat { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; gap: 1.8rem clamp(1rem, 2.4vw, 2.4rem); max-width: 34rem; }
.anker-titel { top: 50%; }
.anker-ein { top: 22vh; top: 22svh; }
.anker-aus { top: calc(100% - 26vh); top: calc(100% - 26svh); }

/* Zählwerk (Station 02): Spalten rollen und landen auf „—“ */
.zaehl { display: flex; gap: .12em; margin-top: .9rem; font: 500 clamp(1.4rem, 2.1vw, 2rem)/1 var(--mono); letter-spacing: 0; color: var(--mint); height: 1em; overflow: hidden; }
.zaehl .sp { display: block; width: .62em; text-align: center; translate: 0 calc(var(--n, 0) * -1em); }
.zaehl .sp > span { display: block; height: 1em; }
.zaehl .sp.wort { width: auto; text-align: left; }
.zaehl .lit { display: block; height: 1em; width: .34em; text-align: center; }
.zaehl-klein { font-size: clamp(1.15rem, 1.65vw, 1.6rem); }
.felder-reihe li { justify-content: flex-start; }
.felder-reihe li:not(.feld-zaehl)::after { content: ""; display: block; height: calc(clamp(1.4rem, 2.1vw, 2rem) + .9rem); }
.zaehl-hinweis { margin-top: 1.1rem; color: var(--nebelblau); font-size: .75rem; }

/* Feldleiste: zwölf Fächer am unteren Rand, füllen sich, wenn die Felder einer Station abgelegt werden.
   Nur mit Animation sichtbar (rein dekorativ, aria-hidden). */
.leiste { display: none; }
html.js-anim .leiste {
  position: fixed; z-index: 25; left: 50%; bottom: 1.1rem; translate: -50% 0;
  display: flex; gap: clamp(.35rem, .9vw, .8rem); padding: .55rem .9rem .5rem; margin: 0;
  background: var(--nacht); border: 1px solid rgba(169,195,219,.16); border-radius: 2px;
  font-size: .625rem; letter-spacing: .04em; color: var(--dim);
  opacity: 0; transition: opacity .5s var(--ease), translate .5s var(--ease); pointer-events: none;
}
html.js-anim.leiste-an .leiste { opacity: 1; }
html.js-anim.ist-hell .leiste { background: var(--eis); border-color: rgba(10,31,51,.14); color: var(--torfblau); }
.leiste li { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.leiste li { position: relative; }
.leiste b { position: absolute; left: 50%; bottom: calc(100% + .8rem); font: 500 .75rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--weiss); white-space: nowrap; transform-origin: 0 100%; rotate: -38deg; opacity: 0; translate: 0 .3rem; transition: opacity .4s var(--ease), translate .5s var(--ease); }
.leiste li.aktiv b { opacity: 1; translate: 0 0; }
.leiste li.aktiv { color: var(--nebelblau); }
.leiste li.aktiv.voll { color: var(--mint); }
html.ist-hell .leiste li.aktiv { color: var(--torfblau); }
html.ist-hell .leiste b { color: var(--tinte); }
@media (max-width: 900px) { .leiste li.aktiv b { opacity: 0; } }
.leiste i { display: block; width: clamp(1rem, 1.6vw, 1.5rem); height: 2px; background: currentColor; opacity: .45; transform-origin: left; transition: background .35s var(--ease), opacity .35s var(--ease); }
.leiste li.voll { color: var(--mint); }
.leiste li.voll i { opacity: 1; }
html.ist-hell .leiste li.voll { color: var(--blau); }
@media (max-width: 720px) { html.js-anim .leiste { bottom: .6rem; gap: .3rem; padding: .45rem .55rem; max-width: calc(100vw - 1rem); } .leiste li { flex: 1 1 0; min-width: 0; } .leiste i { width: 100%; max-width: .9rem; } .leiste span { font-size: min(.625rem, 2.6vw); } }

/* Collage: Haupttafel, Karte dahinter, Anhänger. Alles Papier, leicht gedreht, eigene Parallax (data-par). */
.collage { perspective: 1400px; position: absolute; z-index: 2; top: 50%; right: var(--seite); width: var(--collage-b); height: min(80vh, 48rem); transform: translateY(-50%); pointer-events: none; }
#s2 .collage { right: auto; left: var(--seite); }
.tafel, .karte-hinten, .anhaenger {
  --maus: translate(calc(var(--mx, 0) * var(--tiefe, 6px) * -1), calc(var(--my, 0) * var(--tiefe, 6px) * -1));
  transition: transform .9s var(--ease);
  position: absolute; margin: 0; background: var(--papier); color: var(--torfblau);
  box-shadow: 0 1px 1px rgba(3,18,36,.18), 0 3px 6px rgba(3,18,36,.16), 0 12px 24px -6px rgba(3,18,36,.32), 0 34px 60px -20px rgba(3,18,36,.55);
}
.tafel { --tiefe: 10px; z-index: 2; top: 5%; right: 2%; width: 66%; padding: clamp(.55rem, .9vw, .85rem) clamp(.55rem, .9vw, .85rem) .5rem; transform: var(--maus) rotate(2.2deg); transform-origin: 100% 50%; }
.tafel-bild { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--papier); overflow: hidden; }
.tafel img { width: 100%; height: 100%; object-fit: cover; }
.tafel figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; font-size: .6875rem; color: var(--torfblau); }
.karte-hinten { --tiefe: 4px; z-index: 1; left: 0; top: 30%; width: 46%; padding: .45rem; transform: var(--maus) rotate(-6deg); }
.karte-hinten img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.karte-blanko { left: auto; right: 0; top: 36%; width: 50%; aspect-ratio: 4 / 5; padding: 1rem 1rem; display: flex; flex-direction: column; justify-content: flex-start; gap: 1.6rem; transform: var(--maus) rotate(4deg); }
.karte-blanko .mono { font-size: .6875rem; color: var(--torfblau); padding-bottom: .6rem; border-bottom: 1px solid rgba(10,31,51,.14); }
.karte-blanko i { display: block; height: 2px; background: var(--blau); opacity: .55; }
.anhaenger { z-index: 3; left: 10%; bottom: 3%; width: 9.5rem; padding: 1.5rem 1rem .9rem 1.1rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: baseline; font-size: .6875rem; color: var(--torfblau); --tiefe: 18px; transform: var(--maus) rotate(5deg); border-radius: 2px 2px 2px 14px; }
.anhaenger span:first-child { color: var(--blau); }
.anhaenger b { grid-column: 1 / -1; font: 500 2rem/1 var(--serif); color: var(--tinte); margin-top: .5rem; }
.anhaenger::before { content: ""; position: absolute; left: 1rem; top: .65rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--nacht); box-shadow: inset 0 0 0 1.5px var(--nebelblau); }
.anhaenger::after { content: ""; position: absolute; left: 1.24rem; bottom: calc(100% - .9rem); width: 1px; height: 4.5rem; background: var(--nebelblau); transform-origin: bottom; transform: rotate(-18deg); }
#s2 .tafel { top: 8%; left: 4%; right: auto; width: 62%; transform: var(--maus) rotate(-2.4deg); transform-origin: 0 50%; }
#s2 .anhaenger { left: auto; right: 8%; bottom: 2%; transform: var(--maus) rotate(-6deg); }
#s3 .tafel { top: 2%; right: 0; transform: var(--maus) rotate(-1.4deg); }
#s3 .karte-hinten { left: 2%; top: 26%; transform: var(--maus) rotate(5deg); }
#s3 .anhaenger { left: 26%; bottom: 1%; transform: var(--maus) rotate(-4deg); }
.tafel-scan .tafel-bild, .tafel-wachsen .tafel-bild { clip-path: inset(0 0 calc((1 - var(--k, 1)) * 100%) 0); }
.tafel-scan::after {
  content: ""; position: absolute; left: -.6rem; right: -.6rem; height: 2px; background: var(--mint);
  top: calc(clamp(.55rem, .9vw, .85rem) + var(--k, 1) * (100% - clamp(.55rem, .9vw, .85rem) - 2rem));
  opacity: calc((1 - var(--k, 1)) * 12); pointer-events: none;
}

/* Bühnen festhalten: nur mit JS, moderner Engine, genug Platz und ohne reduzierte Bewegung */
@supports (overflow-x: clip) {
  @media (min-width: 721px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
    html.js-anim .station:not(.frei) { height: 170vh; height: 170svh; }
    html.js-anim .station:not(.frei) > .buehne { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-block: 5rem 2rem; }
  }
  @media (min-width: 1100px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
    html.js-anim .finale:not(.frei) { display: block; min-height: 0; height: 220vh; height: 220svh; padding-top: 0; }
    html.js-anim .finale:not(.frei) > .buehne { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-block: 4.2rem .8rem; }
  }
}

/* Mittlere Breite und Mobil: Collage unter dem Text, im Fluss */
@media (max-width: 900px) {
  .st-text, .st-rechts .st-text { max-width: none; }
  .collage, #s2 .collage { position: relative; top: auto; left: auto; right: auto; transform: none; width: min(100%, 30rem); height: min(118vw, 37rem); margin-top: 2.8rem; }
  .st-rechts .collage { margin-left: auto; }
}

/* Übergangszone: die Feldlinien wachsen als Spuren ins Hellblaue */
.uebergang { position: relative; height: 70vh; height: 70svh; background: var(--nacht); }
.zlinie { position: absolute; left: 7.5vw; top: var(--top); width: var(--w); height: 2px; }
.zlinie i { display: block; height: 2px; background: var(--c); transform-origin: left; }
.zlinie b { position: absolute; left: 100%; top: 50%; margin: -.55rem 0 0 .7rem; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; color: var(--c); }
.anker-zone { top: 50%; }
.zlinie:nth-child(1) { --top:8.0%; --w:58%; --c:#0ffcbe; }
.zlinie:nth-child(2) { --top:15.4%; --w:72%; --c:#3bfdca; }
.zlinie:nth-child(3) { --top:22.8%; --w:40%; --c:#66fdd6; }
.zlinie:nth-child(4) { --top:30.2%; --w:66%; --c:#92fee1; }
.zlinie:nth-child(5) { --top:37.6%; --w:80%; --c:#befeed; }
.zlinie:nth-child(6) { --top:45.0%; --w:48%; --c:#e9fff9; }
.zlinie:nth-child(7) { --top:52.4%; --w:62%; --c:#e9f2f9; }
.zlinie:nth-child(8) { --top:59.8%; --w:34%; --c:#bed7ed; }
.zlinie:nth-child(9) { --top:67.2%; --w:70%; --c:#92bde1; }
.zlinie:nth-child(10) { --top:74.6%; --w:54%; --c:#67a3d6; }
.zlinie:nth-child(11) { --top:82.0%; --w:76%; --c:#3b88ca; }
.zlinie:nth-child(12) { --top:89.4%; --w:44%; --c:#106ebe; }

/* 5 · Finale */
.finale::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: calc(-1 * min(10vh, 6vw)); height: calc(min(10vh, 6vw) + 1px); background: var(--eis); clip-path: polygon(0% 100%, 0.00% 77.22%, 1.56% 74.90%, 3.12% 73.62%, 4.69% 70.51%, 6.25% 72.79%, 7.81% 70.69%, 9.38% 71.03%, 10.94% 67.47%, 12.50% 64.23%, 14.06% 68.42%, 15.62% 66.42%, 17.19% 59.70%, 18.75% 64.17%, 20.31% 62.53%, 21.88% 62.23%, 23.44% 60.05%, 25.00% 59.51%, 26.56% 55.60%, 28.12% 54.53%, 29.69% 55.58%, 31.25% 55.28%, 32.81% 52.82%, 34.38% 52.68%, 35.94% 50.20%, 37.50% 49.40%, 39.06% 46.58%, 40.62% 44.21%, 42.19% 43.25%, 43.75% 42.24%, 45.31% 42.54%, 46.88% 41.66%, 48.44% 41.82%, 50.00% 38.38%, 51.56% 36.25%, 53.12% 35.39%, 54.69% 32.39%, 56.25% 33.55%, 57.81% 33.74%, 59.38% 32.96%, 60.94% 31.70%, 62.50% 28.78%, 64.06% 24.96%, 65.62% 25.53%, 67.19% 20.38%, 68.75% 22.62%, 70.31% 24.80%, 71.88% 20.85%, 73.44% 19.06%, 75.00% 19.35%, 76.56% 16.53%, 78.12% 18.51%, 79.69% 17.83%, 81.25% 13.46%, 82.81% 15.51%, 84.38% 11.14%, 85.94% 12.17%, 87.50% 9.00%, 89.06% 10.66%, 90.62% 8.71%, 92.19% 6.17%, 93.75% 2.80%, 95.31% 4.50%, 96.88% 4.36%, 98.44% 0.62%, 100.00% -1.33%, 100% 100%); pointer-events: none; }
.finale > .buehne { position: relative; z-index: 1; }
.finale { --fokus: var(--blau); background: var(--eis); color: var(--tinte); flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: clamp(2rem, 8vh, 6rem); }
.finale .etikett { color: var(--torfblau); margin-bottom: 1rem; }
.finale-buehne { display: flex; align-items: center; min-height: 0; padding-block: 2rem 4rem; perspective: none; }
.finale-raster { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: center; padding-left: clamp(1.25rem, 9vw, 10rem); }
.finale-raster > * { min-width: 0; }
.einlauf { position: absolute; z-index: 1; top: 0; width: 1.5px; height: var(--einlauf-h, 0px); left: var(--einlauf-x, 0px); background: var(--blau); transform-origin: top; display: none; }
.finale.ist-lock .einlauf { display: block; }

.blatt { --zab: clamp(.4rem, 1.05vh, .95rem); position: relative; z-index: 3; color: var(--tinte); padding: clamp(1rem, 2vh, 1.5rem) clamp(1.3rem, 2.6vw, 2.2rem) clamp(1.2rem, 2.4vh, 1.9rem); transform: rotate(-1.1deg); }
.blatt-papier { position: absolute; inset: 0; z-index: -1; background: var(--weiss); border: 1px solid rgba(10,31,51,.08); box-shadow: 0 1px 1px rgba(10,31,51,.06), 0 4px 10px rgba(10,31,51,.06), 0 18px 34px -12px rgba(10,31,51,.18), 0 40px 70px -30px rgba(10,31,51,.28);
  background-image: linear-gradient(to right, transparent calc(clamp(1.3rem, 2.6vw, 2.2rem) - 10px), rgba(16,110,190,.22) calc(clamp(1.3rem, 2.6vw, 2.2rem) - 10px), rgba(16,110,190,.22) calc(clamp(1.3rem, 2.6vw, 2.2rem) - 9px), transparent calc(clamp(1.3rem, 2.6vw, 2.2rem) - 9px)); }
.blatt-papier::before, .blatt-papier::after { content: ""; position: absolute; left: .55rem; width: .62rem; height: .62rem; border-radius: 50%; background: var(--eis); box-shadow: inset 0 1px 2px rgba(10,31,51,.25); }
.blatt-papier::before { top: 30%; } .blatt-papier::after { top: 68%; }
.blatt-kopf { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(10,31,51,.14); color: var(--torfblau); }
.blatt-kopf h2 { font: 500 .8125rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.stempel {
  position: absolute; right: 0; top: 2.5rem; transform: rotate(-7deg);
  font: 600 1.05rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blau);
  border: 3px solid var(--blau); outline: 1px solid var(--blau); outline-offset: 3px; padding: .55rem .75rem .55rem .95rem; border-radius: 3px;
  background: rgba(255,255,255,.55);
}
.blatt-felder { margin-top: calc(var(--zab) * 3.2); }
.blatt-felder li { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); align-items: baseline; padding: var(--zab) 0 0; }
.blatt-felder .nr { font: 500 .8125rem/1 var(--mono); color: var(--blau); letter-spacing: .04em; }
.blatt-felder .name { font: 500 clamp(1.1rem, 1.3vw + .3rem, 1.3rem)/1.1 var(--serif); min-width: 0; overflow-wrap: anywhere; }
.blatt-felder li[data-gruppe] { margin-top: calc(var(--zab) * 1.5); }
.blatt-felder li[data-gruppe]:first-child { margin-top: 0; }
.blatt-felder li[data-gruppe]::before { content: attr(data-gruppe); grid-column: 1 / -1; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--torfblau); padding-bottom: .2rem; }
.blatt-felder .linie { grid-column: 1 / -1; display: block; height: 2px; background: var(--blau); margin-top: calc(var(--zab) * .8); transform-origin: left; transition: transform 1s var(--ease); }
html.js-anim .blatt-felder .linie { transition: none; }
.anker-ende { left: 0; top: 0; }

.finale-text { max-width: 34rem; }
.hintergrund { font: 500 clamp(1.2rem, 1.5vw, 1.5rem)/1.38 var(--serif); letter-spacing: -.005em; color: var(--tinte); }
.angebot { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(10,31,51,.16); color: var(--torfblau); font-size: 1rem; max-width: 40ch; }
.kontakt { scroll-margin-top: 5rem; margin-top: clamp(2.2rem, 6vh, 4rem); }
.kontakt-mail { display: inline-block; font: 500 clamp(1.4rem, 2.5vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.02em; color: var(--blau); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.kontakt-mail:hover { text-decoration-thickness: 5px; }
.ort { margin-top: .9rem; color: var(--torfblau); }

/* Fuß */
.fuss { --fokus: var(--blau); }
.fuss { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding: 2rem var(--seite) 2.2rem; color: var(--torfblau); background: var(--eis); border-top: 1px solid rgba(10,31,51,.14); }
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.fuss a { color: var(--tinte); text-underline-offset: .2em; }
.fuss a:hover { text-decoration-thickness: 3px; }

/* Rechtsseiten */
.rechtsseite { background: var(--weiss); color: var(--tinte); }
.rechtsseite main { background: var(--weiss); max-width: 46rem; margin: 0 auto; padding: 7rem var(--seite) 4rem; overflow: visible; }
.rechtsseite h1 { font: 500 clamp(2.2rem, 5vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 2rem; }
.rechtsseite h2 { font: 500 1.4rem/1.2 var(--serif); margin: 2.4rem 0 .6rem; }
.rechtsseite p, .rechtsseite li { color: var(--tinte); margin-bottom: .8rem; max-width: 62ch; }
.rechtsseite ul { list-style: disc; padding-left: 1.2rem; }
.rechtsseite a { color: var(--blau); }
.rechtsseite .kopf { color: var(--tinte); background: linear-gradient(to bottom, var(--weiss) 35%, rgba(255,255,255,0)); }
.rechtsseite .wortmarke i { color: var(--blau); }
.rechtsseite { --fokus: var(--blau); }
.rechtsseite .fuss { background: var(--weiss); }
.platzhalter { background: #fff3c4; color: #5c3b00; padding: 0 .25em; outline: 1px dashed #8a5a00; }

/* Stempel: schlägt ein (Klasse .gestempelt setzt spur.js) */
.stempel::after { content: ""; position: absolute; inset: -7px; border: 2px solid var(--blau); border-radius: 6px; opacity: 0; pointer-events: none; }
html.js-anim .stempel { opacity: 0; }
html.js-anim .blatt.gestempelt .stempel { animation: stempel .55s cubic-bezier(.2, 1.4, .35, 1) both; }
html.js-anim .blatt.gestempelt .stempel::after { animation: ring .8s ease-out .2s both; }
html.js-anim .blatt.gestempelt { animation: schlag .42s ease-out .22s; }
@keyframes stempel {
  0%   { opacity: 0; transform: rotate(-19deg) scale(2.7); }
  50%  { opacity: 1; transform: rotate(-5.5deg) scale(.9); }
  72%  { transform: rotate(-8deg) scale(1.05); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes schlag {
  0%   { transform: rotate(-1.1deg); }
  30%  { transform: rotate(-1.1deg) translateY(5px) scale(.996); }
  100% { transform: rotate(-1.1deg); }
}

/* Finale einspaltig unter 1100 px: Bericht zuerst, Kontakt darunter */
@media (max-width: 1099px) {
  .finale-raster { grid-template-columns: minmax(0, 36rem); padding-left: clamp(1.25rem, 9vw, 6rem); gap: 3rem; }
  .finale-text { padding-bottom: 2rem; }
}

/* Mobil */
@media (max-width: 720px) {
  :root { --seite: 1.25rem; }
  .rahmen, .scrollen { padding-left: 3.6rem; padding-right: 1.25rem; }
  .scrollen { padding: 0; left: 3.6rem; }
  .display { font-size: 16vw; }
  .titel { font-size: 13.5vw; }
  .ziffer { font-size: 62vw; right: 2vw; left: auto; }
  .st-rechts .ziffer { left: auto; right: 2vw; }
  .st-rechts .st-text { text-align: left; }
  .st-rechts .tafel { justify-self: start; }
  .buehne { min-height: 0; padding-block: 5rem 3.5rem; }
  .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
  .tafel, #s2 .tafel, #s3 .tafel { width: min(78%, 17rem); }
  .finale-raster { padding-left: 3.6rem; }
  .blatt { transform: rotate(-.8deg); padding-inline: 1.1rem; }
  @keyframes schlag { 0% { transform: rotate(-.8deg); } 30% { transform: rotate(-.8deg) translateY(5px); } 100% { transform: rotate(-.8deg); } }
  .blatt-felder li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .blatt-felder .name { font-size: 1.15rem; }
  .blatt-felder { margin-top: 4.4rem; }
  .stempel { font-size: .9rem; top: 3rem; }
  .fuss { padding-left: 3.6rem; }
}
@media (max-width: 360px) { .felder li { font-size: .75rem; letter-spacing: .04em; } .blatt { padding-inline: .9rem; } .stempel { font-size: .8rem; letter-spacing: .14em; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js-anim .zeile .l, html.js-anim .manifest .w, html.js-anim .reveal, html.js-anim .blatt-felder .linie { transform: none !important; opacity: 1 !important; }
  html.js-anim .stempel { opacity: 1 !important; }
}
