/* Ruins Legacy – Website (Prototyp „Ein Tag im Reich“).
   Farben aus docs/art_style_tokens.json, Schriften wie in docs/ART_STYLE.md vorgeschlagen (lokal, OFL).
   Aufbau: Die Bühne (.pin) bleibt stehen, die Kapitel (.stop) laufen darüber. Text steht immer auf einer festen Fläche.
   Keine Inline-Styles im HTML (Content-Security-Policy 'self'); site.js setzt nur Eigenschaften über das CSSOM. */

@font-face { font-family: "Grenze Gotisch"; src: url("fonts/grenze-gotisch-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-var.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
	--parchment: #F4E8D2; --ink: #020E1F; --ink-muted: #5E5241;
	--night: #141A26; --night-raised: #1E2636; --line-n: #34405A; --cream: #F5EBD8; --cream-muted: #B4AB9C;
	--stone-cream: #FDEFD6; --gold: #C58934; --gold-bright: #F0BF5E; --gold-text: #7A4F12;
	--own: #3D86E0; --ash: #8E8A84; --ember: #FF6A3D;
	--f-display: "Grenze Gotisch", Georgia, serif;
	--f-ui: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bar-h: 64px; --rail-w: 56px;
	--view-h: calc(100vh - var(--bar-h));
	--stage-h: 42vh; /* Höhe der Bühne auf schmalen Schirmen */
}
@supports (height: 100svh) { :root { --view-h: calc(100svh - var(--bar-h)); --stage-h: 42svh; } }

* { box-sizing: border-box; }
/* Die Seite rastet je Kapitel ein: Jedes bleibt stehen, bis man weiterscrollt. Mausrad, Trackpad und Tasten führt
   site.js (eine Geste = ein Kapitel, sanfte Fahrt). Finger scrollen nativ und rasten per CSS ein: site.js setzt
   snap-touch, sobald ein Finger im Spiel war; scroll-snap-stop verhindert, dass ein Wisch Kapitel überfliegt.
   Rastpunkte sind die Kapitel der Reise, der Playtest-Abschnitt, die Szenen darunter und der Fuß der Seite. */
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
html.snap-touch { scroll-snap-type: y mandatory; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--stone-cream); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- Knöpfe (Sticker-Look: Tintenrand, harter Schatten) */
.btn {
	--b-bg: var(--stone-cream); --b-fg: var(--ink); --b-drop: var(--ink); --b-off: 5px;
	display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
	font: 700 20px/1 var(--f-ui); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	color: var(--b-fg); background: var(--b-bg); border: 3px solid var(--ink); border-radius: 4px;
	box-shadow: var(--b-off) var(--b-off) 0 var(--b-drop); cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.btn-main { --b-bg: var(--ink); --b-fg: var(--stone-cream); --b-drop: var(--gold); }
.dark .btn, .is-night .btn { --b-drop: var(--gold); }
.dark .btn-main, .is-night .btn-main { --b-bg: var(--gold-bright); --b-fg: var(--ink); --b-drop: var(--stone-cream); }
.btn-small { min-height: 40px; padding: 0 15px; font-size: 17px; --b-off: 4px; }
a.btn:hover, button.btn:hover { transform: translate(2px, 2px); box-shadow: calc(var(--b-off) - 2px) calc(var(--b-off) - 2px) 0 var(--b-drop); }
a.btn:active, button.btn:active { transform: translate(var(--b-off), var(--b-off)); box-shadow: 0 0 0 var(--b-drop); }
.btn.is-off { border-style: dashed; box-shadow: none; opacity: .8; cursor: default; }
.btn small { font: 700 12px/1 var(--f-ui); letter-spacing: .1em; padding: 4px 6px; border-radius: 3px; background: var(--b-fg); color: var(--b-bg); }

/* ---------------------------------------------------------------- Kopfleiste */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 22px; padding: 0 20px; background: var(--night); border-bottom: 1px solid var(--line-n); }
.bar-logo { display: block; flex: none; line-height: 0; }
.bar-logo img { width: 52px; height: 52px; }
.bar-nav { display: flex; gap: 26px; }
.bar-nav a, .lang { font: 600 16px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-muted); text-decoration: none; }
.bar-nav a:hover, .lang:hover { color: var(--stone-cream); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ---------------------------------------------------------------- Bühne und Tagesleiste */
.story { position: relative; }
.pin { position: sticky; top: var(--bar-h); z-index: 1; height: var(--view-h); display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); }
.stage { position: relative; overflow: hidden; background: #0c1220; }
.frame { position: absolute; inset: 0; opacity: 0; }
.frame.is-on { opacity: 1; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Über dem Bild liegt nichts: keine Tönung, kein Schleier, keine zweite Ebene. Je Moment genau ein Bild.
   Sobald das erste Ruhebild geladen ist, übernimmt die Leinwand; die <img>-Ruhebilder bleiben der Rückfall. */
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.stage.has-seq .stage-canvas { display: block; }
.stage.has-seq .frame { visibility: hidden; }
/* Blickpunkt: ein Ring wie die Bodenringe im Spiel, darunter ein Satz, was man sieht */
.focus { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; display: none; transition: opacity .2s ease; }
.js .focus { display: block; }
.focus.is-away { opacity: 0; }
.focus.is-new { animation: focus-in .35s ease; }
@keyframes focus-in { from { opacity: 0; } to { opacity: 1; } }
.focus-ring { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--stone-cream); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink); animation: ring 2.6s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.focus-label { position: absolute; left: 0; top: 62px; transform: translateX(-50%); white-space: nowrap; background: var(--night); color: var(--stone-cream); border: 2px solid var(--stone-cream); border-radius: 4px; padding: 6px 10px; font: 600 15px/1.2 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.focus-label b { color: var(--gold-bright); font-weight: 700; margin-right: 4px; }
/* Auf breiten Schirmen wächst die Bildzeile von der Tafel weg, damit sie nie darunter rutscht */
@media (min-width: 900px) {
	.stage[data-side="left"] .focus-label { left: -48px; transform: none; }
	.stage[data-side="right"] .focus-label { left: auto; right: -48px; transform: none; }
}
.stage-note { position: absolute; bottom: 14px; margin: 0; max-width: 46%; font: 600 13px/1.3 var(--f-ui); letter-spacing: .05em; color: var(--cream); background: rgba(20, 26, 38, .9); border: 1px dashed var(--gold-bright); border-radius: 4px; padding: 6px 9px; }
.stage[data-side="left"] .stage-note { right: 14px; }
.stage[data-side="right"] .stage-note { left: 14px; }

.rail { position: relative; background: var(--night); border-left: 1px solid var(--line-n); }
.rail svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rail path { fill: none; vector-effect: non-scaling-stroke; }
.rail-track { stroke: var(--line-n); stroke-width: 3; }
.rail-gold { stroke: var(--gold); stroke-width: 4; }
.rail-fill { clip-path: inset(0 0 100% 0); } /* site.js gibt die Goldlinie Stück für Stück frei */
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li { position: absolute; left: 50%; }
.rail li:nth-child(1) { top: 8%; } .rail li:nth-child(2) { top: 22%; } .rail li:nth-child(3) { top: 36%; } .rail li:nth-child(4) { top: 50%; }
.rail li:nth-child(5) { top: 64%; } .rail li:nth-child(6) { top: 78%; } .rail li:nth-child(7) { top: 92%; }
.rail a { position: relative; display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--night); border: 2px solid var(--ash); }
.rail a.is-done { background: var(--gold); border-color: var(--gold); }
.rail a.is-now { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--gold-bright); border: 3px solid var(--stone-cream); }
.rail a span { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 13px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); background: var(--night); border: 1px solid var(--line-n); padding: 6px 9px; border-radius: 4px; opacity: 0; pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }

/* ---------------------------------------------------------------- Kapitel: eine Tafel, eine Aussage, eine Aktion, darunter die Henne */
/* Die Kapitel liegen über der Bühne. Ihre leere Fläche lässt Klicks durch, sonst wäre die Tagesleiste nicht erreichbar. */
.stops { position: relative; z-index: 2; margin-top: calc(-1 * var(--view-h)); pointer-events: none; }
.stop > * { pointer-events: auto; }
.stop { min-height: var(--view-h); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px calc(var(--rail-w) + 64px) 40px 64px; scroll-snap-align: start; scroll-snap-stop: always; }
.stop.is-right { align-items: flex-end; }
.panel { width: min(540px, 100%); background: var(--parchment); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; padding: 28px 32px 26px; box-shadow: 8px 8px 0 var(--ink); }
.panel.is-night { background: var(--night); color: var(--cream); border-color: var(--stone-cream); box-shadow: 8px 8px 0 var(--gold); }
.where { display: flex; flex-wrap: wrap; margin: 0 0 12px; font: 600 15px/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.where span + span::before { content: "·"; margin: 0 8px; }
.is-night .where { color: var(--gold-bright); }
.panel h1, .panel h2 { margin: 0 0 14px; font: 700 clamp(44px, 5.2vw, 80px)/.93 var(--f-display); letter-spacing: -.005em; }
.panel h2 { font-size: clamp(36px, 3.7vw, 54px); line-height: .97; }
.is-night h2 { color: var(--stone-cream); }
.say { margin: 0 0 20px; font-size: 18px; line-height: 1.5; }
.acts { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; }
.facts-line { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.is-night .facts-line { color: var(--cream-muted); }
/* Gameplay als ruhiges Standbild in der Tafel, läuft erst auf Klick */
.proof { margin: 0 0 16px; }
.proof video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--ink); border-radius: 4px; }
.is-night .proof video { border-color: var(--line-n); }
.proof figcaption { margin-top: 5px; font: 600 13px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.is-night .proof figcaption { color: var(--cream-muted); }
.next { display: inline-block; font: 700 17px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.next::after { content: " ↓"; }

/* ---------------------------------------------------------------- Henne */
.hen { display: flex; align-items: flex-end; gap: 12px; width: min(540px, 100%); margin: 20px 0 0; }
.hen-face { flex: none; width: 72px; height: 72px; padding: 0; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); box-shadow: 0 0 0 3px var(--gold-bright), 0 0 0 5px var(--ink); overflow: hidden; cursor: pointer; }
.hen-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hen-bubble { position: relative; background: var(--stone-cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 10px 14px; margin-bottom: 14px; box-shadow: 4px 4px 0 var(--ink); }
.hen-says { margin: 0; font: 700 16px/1.35 var(--f-body); }
.hen.is-new .hen-face { animation: peck .42s ease; }
@keyframes peck { 0% { transform: rotate(0); } 35% { transform: rotate(-14deg) translateY(3px); } 70% { transform: rotate(6deg); } 100% { transform: rotate(0); } }
.hen-big { width: auto; margin: 0 0 8px; align-items: center; }
.hen-big .hen-face { width: 128px; height: 128px; }
.hen-big .hen-says { font-size: 20px; }
.hen-big .hen-bubble { margin-bottom: 0; }

/* ---------------------------------------------------------------- Abschnitte auf fester Nachtfläche */
.band { position: relative; z-index: 4; padding: 84px 64px; background: var(--night); }
.inner { max-width: 1080px; margin: 0 auto; }
.band h2 { margin: 0 0 14px; font: 700 clamp(36px, 4vw, 56px)/.97 var(--f-display); color: var(--stone-cream); }
.band h3 { margin: 0 0 6px; font: 700 20px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--stone-cream); }
.band h3.sub { margin-top: 34px; }
.lead { margin: 0 0 26px; max-width: 46em; font-size: 18px; }
.lead a { color: var(--gold-bright); }
.gate { border-top: 4px solid var(--gold-bright); }
/* Der Playtest-Abschnitt und die Szenen sind Rastpunkte wie die Kapitel: eine Geste, ein Bildschirm. */
.gate, .scene { scroll-snap-align: start; scroll-snap-stop: always; }
.home .foot { scroll-snap-align: end; } /* der Fuß der Startseite ist der letzte Rastpunkt: Von dort führt ein Wisch zurück zur letzten Szene */
@media (min-width: 900px) {
	.gate { min-height: var(--view-h); display: flex; align-items: center; }
	.gate .inner { width: 100%; }
}
.pennant { display: inline-block; margin: 0 0 18px; padding: 10px 30px 10px 14px; background: var(--own); color: var(--stone-cream); font: 700 16px/1.1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
.gate h2 { margin-bottom: 22px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 18px; padding: 0; }
.steps li { counter-increment: step; background: var(--night-raised); border: 1px solid var(--line-n); border-radius: 8px; padding: 14px 16px 16px; font-size: 16px; line-height: 1.4; }
.steps li::before { content: counter(step); display: block; margin-bottom: 6px; font: 700 36px/1 var(--f-display); color: var(--gold-bright); }
.steps b { display: block; margin-bottom: 4px; font: 700 19px/1.1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--stone-cream); }
.note { margin: 0 0 24px; max-width: 48em; color: var(--cream-muted); }
.gate .acts { margin: 0; }

/* ---------------------------------------------------------------- Szenen unter der Reise */
/* Dieselben Bausteine wie ein Kapitel: ein Bild über die ganze Fläche, eine Tafel, darunter die Henne. Im Bild läuft
   echtes Gameplay als stumme Schleife. Über dem Bild liegt auch hier nichts Halbdurchsichtiges; die Schleife ersetzt
   ihr Standbild hart, sobald sie läuft. Die Szenen rasten ein wie die Kapitel (site.js führt sie als Rastpunkte). */
.scene { position: relative; z-index: 4; display: flex; min-height: var(--view-h); background: #0c1220; border-top: 4px solid var(--ink); }
.scene-stage { position: absolute; inset: 0; overflow: hidden; }
.scene-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-loop { visibility: hidden; }
.scene.is-playing .scene-loop { visibility: visible; }
.scene-tools { position: absolute; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.scene.is-left .scene-tools { right: 14px; }
.scene.is-right .scene-tools { left: 14px; }
.scene-tools .stage-note { position: static; max-width: none; }
.scene-toggle { min-height: 30px; padding: 0 10px; font: 700 13px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--stone-cream); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--gold); cursor: pointer; }
.scene-body { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 64px; pointer-events: none; }
.scene.is-right .scene-body { align-items: flex-end; }
.scene-body > * { pointer-events: auto; }
.scene .panel { position: relative; }
.ways { margin: 0 0 18px; }
.ways div { padding: 10px 0 11px; border-top: 2px solid var(--ink); }
.ways div:last-child { border-bottom: 2px solid var(--ink); }
.ways dt { font: 700 19px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.ways dd { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
.is-night .ways div, .is-night .ways div:last-child { border-color: var(--line-n); }
.panel .more { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.more a { font: 700 17px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
/* Das Duell: Blau gegen Rot als harte Kanten hinter der Tafel, dazu ein Siegel. Farben der beiden Seiten aus dem Spiel. */
.scene-duel { --own-light: #9CC7FF; --foe: #D8453A; }
.scene-duel .panel { box-shadow: none; }
.scene-duel .panel::before, .scene-duel .panel::after { content: ""; position: absolute; z-index: -1; bottom: -13px; width: 50%; height: 100%; border-radius: 6px; }
.scene-duel .panel::before { left: -13px; background: var(--own); }
.scene-duel .panel::after { right: -13px; background: var(--foe); }
.seal { position: absolute; top: -34px; right: -30px; width: 104px; height: 104px; display: grid; place-items: center; transform: rotate(9deg); border-radius: 50%; background: var(--gold-bright); color: var(--ink); border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--stone-cream), 0 0 0 7px var(--ink); font: 700 42px/1 var(--f-display); }
.scene-last .facts-line { margin-bottom: 16px; }
.scene .hen-big { margin: 24px 0 0; max-width: 680px; }

.info .hen { margin: 26px 0 8px; }
.info h2 { scroll-margin-top: calc(var(--bar-h) + 16px); }
.sheet { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 10px 0 0; }
.sheet dt, .sheet dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line-n); }
.sheet dt { padding-right: 28px; font: 600 16px/1.5 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-muted); }
.plain { margin: 18px 0; padding-left: 1.1em; }
.plain li { margin: 0 0 8px; }
details { border-top: 1px solid var(--line-n); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line-n); }
summary { font: 700 19px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--stone-cream); cursor: pointer; }
details p { margin: 12px 0 4px; max-width: 48em; }

.foot { position: relative; z-index: 4; padding: 36px 64px 56px; background: var(--night); border-top: 1px solid var(--line-n); font-size: 15px; }
.foot .hen { margin: 0 0 20px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 10px; padding: 0; }
.foot-links a { color: var(--gold-bright); }
.foot-note { margin: 0; color: var(--cream-muted); }

/* ---------------------------------------------------------------- Rechtstexte und Fehlerseite */
.legal-text { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.legal-text h1 { margin: 0 0 20px; font: 700 clamp(38px, 5vw, 60px)/.97 var(--f-display); color: var(--stone-cream); }
.legal-text h2 { margin: 34px 0 8px; font: 700 22px/1.2 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--stone-cream); }
.legal-text h3 { margin: 22px 0 6px; font: 700 18px/1.3 var(--f-body); }
.legal-text a { color: var(--gold-bright); }
.legal-text a.btn { color: var(--b-fg); }
.legal-text code { font-size: .92em; background: var(--night-raised); padding: 1px 5px; border-radius: 3px; }
.back { margin-top: 36px; }
.notfound .hen-big { margin: 26px 0; }

/* ---------------------------------------------------------------- Kontaktformular */
.contact-form { position: relative; display: grid; gap: 18px; margin: 28px 0 14px; }
.contact-form p { margin: 0; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font: 700 16px/1.3 var(--f-body); color: var(--stone-cream); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; font: 400 17px/1.5 var(--f-body); color: var(--stone-cream); background: var(--night-raised); border: 2px solid var(--line-n); border-radius: 4px; }
.contact-form textarea { min-height: 190px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { border-color: var(--gold-bright); outline-offset: 2px; }
/* Honigtopf: aus dem Blick und aus der Tab-Folge; display: none würden manche Programme erkennen. */
.contact-form .trap { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-note { color: var(--cream-muted); font-size: 15px; }
.form-status { min-height: 1.5em; font-weight: 700; }
.form-status.is-ok { color: var(--gold-bright); }
.form-status.is-bad { color: var(--ember); }
.form-status:empty, .form-fallback[hidden] { display: none; }

/* ---------------------------------------------------------------- Schmale Schirme: Bühne oben fest, Text läuft darunter */
@media (max-width: 899px) {
	.bar { gap: 12px; padding: 0 12px; }
	.bar-nav, .bar-actions .is-off { display: none; }
	html { scroll-padding-top: calc(var(--bar-h) + var(--stage-h)); } /* Kapitel rasten unter der Bühne ein */
	.band { scroll-margin-top: calc(-1 * var(--stage-h)); } /* die Abschnitte danach direkt unter der Kopfleiste */
	.pin { z-index: 3; height: var(--stage-h); grid-template-columns: minmax(0, 1fr); border-bottom: 3px solid var(--gold); }
	.rail { display: none; }
	.focus-ring { left: -32px; top: -32px; width: 64px; height: 64px; }
	.focus-label { top: 42px; width: max-content; max-width: 78vw; white-space: normal; text-align: center; font-size: 13px; }
	.stage-note { left: 8px; right: 8px; bottom: 6px; max-width: none; font-size: 11px; padding: 4px 6px; }
	.stage[data-side] .stage-note { left: 8px; right: 8px; }
	.stops { margin-top: 0; }
	.stop, .stop.is-right { min-height: calc(var(--view-h) - var(--stage-h)); justify-content: flex-start; align-items: stretch; padding: 20px 16px 32px; }
	.panel { width: auto; padding: 20px 20px 20px; box-shadow: 5px 5px 0 var(--ink); }
	.panel.is-night { box-shadow: 5px 5px 0 var(--gold); }
	.say { font-size: 17px; }
	.hen { width: auto; }
	.hen-face { width: 60px; height: 60px; }
	.band { padding: 52px 16px; }
	.foot { padding: 28px 16px 44px; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Szenen: das Bild oben in voller Breite, die Tafel darunter */
	.scene { display: block; min-height: 0; scroll-margin-top: calc(-1 * var(--stage-h)); } /* rastet direkt unter der Kopfleiste ein */
	.scene-stage { position: relative; inset: auto; aspect-ratio: 16 / 9; border-bottom: 3px solid var(--gold); }
	.scene-tools, .scene.is-left .scene-tools, .scene.is-right .scene-tools { left: 8px; right: auto; bottom: 8px; }
	.scene-tools .stage-note { font-size: 11px; padding: 4px 6px; }
	.scene-body, .scene.is-right .scene-body { align-items: stretch; padding: 22px 16px 34px; }
	.scene-duel .panel, .scene-duel .panel.is-night { margin: 26px 8px 12px; box-shadow: none; }
	.scene-duel .panel::before, .scene-duel .panel::after { bottom: -9px; }
	.scene-duel .panel::before { left: -9px; }
	.scene-duel .panel::after { right: -9px; }
	.seal { top: -38px; right: -4px; width: 76px; height: 76px; font-size: 30px; }
	.hen-big .hen-face { width: 88px; height: 88px; }
	.hen-big .hen-says { font-size: 17px; }
	.sheet { grid-template-columns: minmax(0, 1fr); }
	.sheet dd { border-top: 0; padding-top: 0; }
}
@media (max-width: 419px) {
	.btn { font-size: 18px; padding: 0 16px; }
	.steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.focus-ring, .focus.is-new, .hen.is-new .hen-face { animation: none; }
	.btn, .focus { transition: none; }
}
