/* ==========================================================================
   gast.css — Gestaltung der Spielseite „Der Gast ohne Namen“.
   Eine Nacht in einem alten Haus am Moor: sehr dunkles, warmes Grüngrau bis
   Torfbraun; ein einziges Licht (das warme Gelb einer Lampe im Flur) und als
   Gegenpol das kalte Grau des Türspalts; Kreideweiß für alles, was an der
   Tafel steht. Feine Linien, viel Ruhe, keine Schatten, kein Dauerflackern.
   Zuerst fürs Handy (390 × 844, eine Hand), Tippflächen mindestens 44 px,
   Kontrast AA. Diese Datei enthält keine Inhalte.
   ========================================================================== */
:root {
  --moor: #151a16;
  --tief: #0e120f;
  --torf: #231d15;
  --linie: #3a4035;
  --linie-hell: #646b5b;
  --text: #e8e2d2;
  --leise: #b3b09f;
  --lampe: #ecb75c;
  --lampe-dunkel: #241a06;
  --spalt: #a9b9c1;
  --kreide: #f4f2ea;
  --holz: #b08a5c;
  --holz-dunkel: #6c5236;
  --brand: #1a1108;
  --papier: #f1ecdf;
  --tinte: #1b1a17;
  --lese: "Literata", Georgia, serif;
  --titel: "Fraunces", "Playfair Display", Georgia, serif;
  --bedien: "Nunito Sans", system-ui, sans-serif;
  --hand: "Kalam", "Patrick Hand", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--moor); color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.g-gesperrt { overflow: hidden; }
body { margin: 0; font-family: var(--lese); font-size: 18px; line-height: 1.58; }
p { margin: 0 0 .85em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lampe); outline-offset: 3px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
a { color: var(--text); text-underline-offset: .18em; }
b { font-weight: 700; }
.g-notfall { padding: 24px; }
.g-versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-sprung { position: absolute; left: -999px; top: 0; background: var(--lampe); color: var(--lampe-dunkel); padding: 10px 14px; font-family: var(--bedien); font-weight: 800; z-index: 6; }
.g-sprung:focus { left: 8px; top: 8px; }

/* ---------- Schrift ---------- */
.g-dach { font-family: var(--bedien); font-weight: 700; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lampe); margin: 0 0 .7em; }
.g-h1 { font-family: var(--titel); font-weight: 600; font-size: 34px; line-height: 1.12; margin: 0 0 .75em; letter-spacing: .005em; outline: none; }
.g-h1--titel { font-size: 42px; margin-bottom: .35em; }
.g-h2 { font-family: var(--bedien); font-weight: 800; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); margin: 0 0 .8em; display: flex; align-items: center; gap: 12px; }
.g-h2::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.g-klein { font-family: var(--bedien); font-size: 15.5px; line-height: 1.45; color: var(--leise); }
.g-frage-text { display: block; font-family: var(--titel); font-weight: 600; font-size: 23px; line-height: 1.28; margin: 0 0 .6em; }
.g-warnung { font-family: var(--bedien); font-size: 15.5px; border: 1px solid var(--lampe); color: var(--lampe); padding: 10px 14px; }
.g-vorsatz { font-size: 19px; }
.zch { color: inherit; }

/* ---------- Rahmen ---------- */
.g-kopf { border-bottom: 1px solid var(--linie); background: var(--tief); position: sticky; top: 0; z-index: 3; }
.g-kopf__zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 760px; margin: 0 auto; padding: 0 8px 0 18px; }
.g-wortmarke { font-family: var(--titel); font-style: italic; font-weight: 500; font-size: 17px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-kopf__knoepfe { display: flex; gap: 0; flex: none; }
.g-kopf__knopf { background: none; border: none; min-height: 48px; padding: 0 10px; font-family: var(--bedien); font-size: 15px; font-weight: 700; color: var(--leise); display: inline-flex; align-items: center; gap: 6px; }
.g-kopf__knopf:hover { color: var(--text); }
.g-zeichen { width: 20px; height: 20px; flex: none; fill: currentColor; }
.g-zeichen--linie { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g-skala { display: flex; justify-content: space-between; align-items: stretch; max-width: 760px; margin: 0 auto; padding: 0 10px; border-bottom: 1px solid var(--linie); }
.g-skala__marke { background: none; border: none; min-height: 44px; min-width: 30px; padding: 0 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--bedien); font-size: 13px; font-weight: 700; color: var(--leise); }
.g-skala__marke:disabled { color: var(--linie-hell); cursor: default; }
.g-skala__punkt { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.g-skala__marke.ist-hier { color: var(--lampe); }
.g-skala__marke.ist-hier .g-skala__punkt { background: var(--lampe); border-color: var(--lampe); }
.g-inhalt { max-width: 760px; margin: 0 auto; padding: 30px 20px 60px; }
.g-ansicht > * { max-width: 720px; }
.g-fuss { border-top: 1px solid var(--linie); max-width: 760px; margin: 0 auto; padding: 18px 20px 90px; }
.g-recht { font-family: var(--bedien); font-size: 14.5px; color: var(--leise); margin: 0; }
.g-recht a { color: var(--leise); display: inline-block; padding: 12px 2px; }

/* ---------- Knöpfe ---------- */
.g-knopf { min-height: 48px; padding: 10px 18px; border: 1px solid var(--linie-hell); background: transparent; color: var(--text); font-family: var(--bedien); font-weight: 700; font-size: 16.5px; line-height: 1.2; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.g-knopf:hover:not(:disabled) { border-color: var(--text); }
.g-knopf:disabled { color: var(--linie-hell); border-color: var(--linie); cursor: default; }
.g-knopf--haupt { background: var(--lampe); border-color: var(--lampe); color: var(--lampe-dunkel); }
.g-knopf--haupt:hover:not(:disabled) { background: #f3c672; border-color: #f3c672; }
.g-knopf--haupt:disabled { background: transparent; }
.g-knopf--breit { width: 100%; display: flex; }
.g-knopf--klein { min-height: 44px; padding: 6px 12px; font-size: 15px; gap: 6px; }
.g-knopf--schrift { min-width: 48px; }
.g-knopf--karten { margin-top: 12px; }
.g-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.g-reihe--eng { gap: 6px; flex-wrap: nowrap; }
.g-leise { background: none; border: none; padding: 0; min-height: 44px; font-family: var(--bedien); font-size: 15.5px; color: var(--leise); text-decoration: underline; text-underline-offset: .2em; }
.g-weiter { margin-top: 14px; }
.g-weiter--still { background: transparent; border-color: var(--linie-hell); color: var(--text); min-width: 9em; }
.g-klopfzeichen { display: inline-flex; gap: 5px; }
.g-klopfzeichen i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }

/* ---------- Tor (vor dem Code) ---------- */
.g-tor { max-width: 520px; margin: 0 auto; padding: 22px 22px 40px; }
.g-tor__bild { margin: 0 0 26px; aspect-ratio: 6 / 5; overflow: hidden; background: var(--tief); }
.g-tor__bild img, .g-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-tor__bild img { object-position: 50% 36%; }
.g-bild { margin: 22px 0 28px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tief); }
.g-bild img { object-position: 50% 58%; }
@media (min-width: 900px) and (min-height: 560px) {
  .g-tor { max-width: 960px; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: 60px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
  .g-tor__bild { margin: 0; aspect-ratio: 3 / 4; }
  .g-tor__bild img { object-position: 50% 50%; }
}
.g-tor__satz { font-family: var(--titel); font-style: italic; font-size: 21px; color: var(--leise); margin-bottom: 2.2em; }
.g-tor__form { margin-bottom: 1.6em; }
.g-eingabe { width: 100%; min-height: 54px; background: var(--tief); border: 1px solid var(--linie-hell); border-radius: 2px; padding: 10px 14px; font-family: "Courier Prime", ui-monospace, monospace; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.g-fehler { font-family: var(--bedien); font-size: 16px; color: var(--lampe); min-height: 1.5em; margin: 12px 0 0; }
/* GA-15: Meldung direkt unter dem Feld (über dem Knopf), damit Tastatur und Bildschirmrand sie nicht verdecken */
.g-tor__form .g-fehler { margin: 0 0 6px; min-height: 0; }
.g-tor__form .g-fehler:empty { display: none; }
.g-eingabe::placeholder { color: var(--linie-hell); opacity: 1; }

/* ---------- Blöcke einer Ansicht ---------- */
.g-block { margin: 30px 0; }
.g-erzaehlt p { margin-bottom: 1em; }
.g-block--aufgabe { border-left: 2px solid var(--lampe); padding: 4px 0 2px 16px; }
.g-block--aufgabe p { font-family: var(--titel); font-size: 21.5px; line-height: 1.38; margin: 0; }
.g-block--aufgabe .g-h2 { color: var(--lampe); }
.g-block--wer p, .g-block--zeigt p { margin: 0; }
.g-block--zeigt p { font-family: var(--bedien); font-size: 16px; line-height: 1.5; color: var(--leise); }
.g-umdrehen { font-family: var(--bedien); font-size: 17px; margin: 0 0 .3em; }
.g-umdrehen b { color: var(--lampe); font-weight: 800; }
.g-blattliste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.g-blattliste--lang { margin-bottom: 8px; }
.g-blattknopf { min-height: 48px; background: var(--tief); border: 1px solid var(--linie); border-radius: 2px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; text-align: left; font-family: var(--bedien); font-size: 14.5px; line-height: 1.25; font-weight: 600; color: var(--text); }
.g-blattknopf:hover { border-color: var(--linie-hell); }
.g-blattknopf .g-zeichen { color: var(--leise); }
.g-details { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin: 26px 0; }
.g-details summary { min-height: 48px; display: flex; align-items: center; font-family: var(--bedien); font-weight: 700; font-size: 16px; cursor: pointer; }
.g-details__inhalt { padding: 6px 0 14px; font-size: 16.5px; }
.g-details__inhalt ul { padding-left: 1.2em; margin: 0 0 .85em; }
.g-details__inhalt li { margin-bottom: .4em; }
.g-probe__frage { border: 1px solid var(--linie-hell); padding: 16px 16px 6px; margin-top: 14px; }
.g-probe__ok { font-family: var(--bedien); font-weight: 700; color: var(--lampe); display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.g-zuzweit { border-left: 2px solid var(--spalt); padding-left: 16px; }
.g-zuzweit p { margin: 0; }
.g-danach { border-top: 1px solid var(--lampe); padding-top: 18px; margin-top: 30px; outline: none; }
.g-danach p { font-size: 19px; }
.g-ende { margin-top: 8px; }

/* ---------- Bühne: Tür, Brett, Täfelchen ---------- */
.g-buehne { margin: 30px 0; display: grid; gap: 12px; scroll-margin-top: 58px; }
.g-buehne__bild { background: var(--tief); border: 1px solid var(--linie); border-radius: 2px; padding: 6px 6px 2px; }
.g-szene { display: block; width: 100%; height: auto; max-height: 200px; }
.g-sz__boden { stroke: var(--linie-hell); stroke-width: 1; fill: none; }
.g-sz__rahmen { fill: none; stroke: var(--linie-hell); stroke-width: 1.2; }
.g-sz__blatt { fill: var(--torf); stroke: var(--holz-dunkel); stroke-width: 1.2; }
.g-sz__fuge { stroke: #0c0906; stroke-width: 1; fill: none; }
.g-sz__riegelholz { stroke: var(--holz-dunkel); stroke-width: 1; fill: none; }
.g-sz__riegel rect { fill: var(--tief); stroke: var(--leise); stroke-width: 1.1; }
.g-sz__riegel path { stroke: var(--leise); stroke-width: 1.1; fill: none; }
.g-sz__spalt { stroke: var(--spalt); stroke-width: 2; fill: none; opacity: .75; }
.g-sz__lampe path, .g-sz__lampe circle { stroke: var(--lampe); stroke-width: 1.1; fill: none; }
.g-sz__lampe .g-sz__licht { fill: var(--lampe); stroke: none; }
.g-sz__klopf { fill: none; stroke: var(--lampe); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.g-sz__name { fill: var(--spalt); font-family: var(--titel); font-style: italic; font-weight: 500; font-size: 19px; text-anchor: middle; opacity: 0; transition: opacity .45s ease-out; }
.g-sz__name.da { opacity: 1; }
.g-sz__name--punkt { font-size: 17px; font-style: normal; }
.g-sz__tafel { opacity: 0; transition: opacity .5s; }
.g-sz__tafel.sichtbar { opacity: 1; }
.g-sz__tafelkopf { fill: var(--leise); font-family: var(--bedien); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-anchor: middle; }
.g-sz__schiefer { fill: #0a0c0a; stroke: var(--holz-dunkel); stroke-width: 3; }
.g-sz__kreide { fill: var(--kreide); font-family: var(--hand); font-size: 22px; text-anchor: middle; }
.g-szene.klopft .g-sz__klopf { animation: g-klopf .42s ease-out 1; }
.g-szene.klopft .g-sz__klopf:nth-of-type(2) { animation-delay: .04s; }
.g-szene.klopft .g-sz__klopf:nth-of-type(3) { animation-delay: .08s; }
.g-szene.antwortet .g-sz__spalt { animation: g-spalt .7s ease-out 1; }
@keyframes g-klopf { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes g-spalt { 0% { opacity: 1; stroke-width: 5; } 100% { opacity: .75; stroke-width: 2; } }

.g-brett { background: var(--torf); border: 1px solid var(--holz-dunkel); border-radius: 2px; padding: 10px 8px 12px; }
.g-brett__satz { font-family: var(--titel); font-weight: 600; font-size: 19px; text-align: center; color: var(--holz); margin: 0 0 4px; letter-spacing: .01em; }
.g-haken { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-hakenplatz { display: flex; flex-direction: column; align-items: center; min-height: 86px; }
.g-haken__bild { width: 20px; height: 22px; fill: none; stroke: var(--leise); stroke-width: 1.4; stroke-linecap: round; flex: none; position: relative; z-index: 1; }
.g-haken__bild .voll { fill: var(--leise); stroke: none; }
.g-tafel { appearance: none; -webkit-appearance: none; border: 1px solid #40301c; background: var(--holz); color: var(--brand); border-radius: 3px; min-height: 52px; padding: 7px 9px 8px; display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; text-align: left; font-family: var(--bedien); width: 100%; }
.g-tafel__zeichen { display: flex; }
.g-tafel__zeichen .zch { width: 19px; height: 15px; vertical-align: 0; }
.g-tafel__kurz { font-family: var(--titel); font-weight: 800; letter-spacing: .07em; font-size: 15.5px; line-height: 1.1; }
.g-tafel--dose { border-radius: 5px 2px 4px 2px; }
.g-tafel--dose .g-tafel__kurz { font-family: var(--hand); font-weight: 700; font-size: 16.5px; letter-spacing: .04em; }
.g-tafel__text { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.25; font-weight: 600; }
.g-tafel:disabled { cursor: default; }
.g-ablage .g-tafel.haengt { background: transparent; border: 1px dashed var(--linie-hell); color: var(--leise); }
.g-tafel--am-haken { --schief: 0deg; margin-top: -7px; min-height: 58px; grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 4px 9px; transform: rotate(var(--schief)); transform-origin: 50% -6px; }
.g-tafel--am-haken .g-tafel__kurz { font-size: 11.5px; letter-spacing: 0; line-height: 1.15; }
.g-tafel--am-haken.g-tafel--dose .g-tafel__kurz { font-size: 13.5px; }
.g-tafel--h0 { --schief: -2.4deg; }
.g-tafel--h1 { --schief: 1.5deg; }
.g-tafel--h2 { --schief: -1.2deg; }
.g-tafel.pendelt { animation: g-pendeln .95s ease-out 1; }
@keyframes g-pendeln { 0% { transform: rotate(8deg); } 30% { transform: rotate(-5deg); } 60% { transform: rotate(2.4deg); } 100% { transform: rotate(var(--schief)); } }
.g-regelwort { list-style: none; margin: 4px 0 0; padding: 0; font-family: var(--titel); font-style: italic; font-size: 17px; line-height: 1.35; color: var(--holz); min-height: 1.35em; }
.g-passen { font-family: var(--bedien); font-size: 17px; line-height: 1.4; margin: 4px 0 2px; padding: 10px 12px; border: 1px solid var(--linie-hell); border-radius: 2px; min-height: 48px; }
.g-passen b { color: var(--kreide); font-weight: 800; }
.g-passen__leer { color: var(--leise); }
.g-ablage__hilfe { margin: 12px 0 0; }
.g-ablage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-hinweis { font-family: var(--bedien); font-size: 15.5px; color: var(--lampe); min-height: 1.4em; margin: 0; }
.g-knopf--probe { margin-top: 2px; min-height: 54px; font-size: 17.5px; }
.g-zaehler { font-family: var(--bedien); font-size: 15px; color: var(--leise); margin: 2px 0 0; min-height: 1.3em; text-align: right; }
.g-ergebnis { font-size: 17.5px; }
.g-ergebnis:not(:empty) { border-left: 2px solid var(--spalt); padding: 6px 0 2px 14px; margin-top: 8px; }
.g-ergebnis p { margin-bottom: .6em; }
.g-ergebnis__kopf { font-family: var(--bedien); font-weight: 700; font-size: 17px; }
.g-ergebnis__kopf--lauf { color: var(--leise); font-weight: 600; }
.g-ergebnis__zahl { color: var(--kreide); font-weight: 800; font-size: 19px; }
.g-ergebnis__namen { color: var(--spalt); }
.g-kartenzeile { font-family: var(--bedien); font-size: 15.5px; border: 1px dotted var(--linie-hell); padding: 6px 10px; display: inline-block; margin-right: 6px; }
.g-aufloesung { outline: none; margin-top: 8px; }
.g-buehne.probt .g-ablage, .g-buehne.probt .g-brett { opacity: .55; }
.g-urteil { font-family: var(--bedien); font-weight: 700; font-size: 18px; color: var(--leise); }
.g-urteil--ja { color: var(--kreide); }

/* ---------- Steckbrief: Kästchen ---------- */
.g-steckbrief { margin: 30px 0; border: 1px solid var(--linie-hell); padding: 16px 14px 14px; border-radius: 2px; }
.g-steckbrief__kopf { font-family: var(--titel); font-weight: 600; font-size: 23px; margin: 0 0 12px; }
.g-steckbrief__kopf .regie, .g-steckbrief__kopf i { font-size: .7em; color: var(--leise); }
.g-kreuze { border: none; margin: 0 0 14px; padding: 0; min-width: 0; }
.g-kreuze__frage { font-family: var(--bedien); font-weight: 700; font-size: 16.5px; padding: 0; margin-bottom: 4px; }
.g-kreuze__feld { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.g-kreuze__feld--zwei { grid-template-columns: 1fr 1fr; }
.g-kreuz { display: flex; align-items: center; gap: 12px; min-height: 48px; font-family: var(--bedien); font-size: 17px; font-weight: 600; cursor: pointer; position: relative; }
.g-kreuz__feld { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; left: 0; }
.g-kreuz__kasten { width: 26px; height: 26px; flex: none; border: 1.5px solid var(--kreide); position: relative; }
.g-kreuz__feld:checked + .g-kreuz__kasten::before, .g-kreuz__feld:checked + .g-kreuz__kasten::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; border-top: 2px solid var(--kreide); transform: rotate(45deg); }
.g-kreuz__feld:checked + .g-kreuz__kasten::after { transform: rotate(-45deg); }
.g-kreuz__feld:focus-visible + .g-kreuz__kasten { outline: 2px solid var(--lampe); outline-offset: 3px; }
.g-kreuz__feld:disabled + .g-kreuz__kasten { border-color: var(--linie-hell); }
/* GA-28: Einstellungen als Schalter (an/aus) statt Kreuz – ein Kreuz liest man bei Einstellungen leicht als „aus“ */
.g-kreuz--schalter .g-kreuz__feld { width: 48px; }
.g-kreuz--schalter .g-kreuz__kasten { width: 46px; height: 26px; border-radius: 13px; border-color: var(--linie-hell); background: var(--tief); transition: background .2s, border-color .2s; }
.g-kreuz--schalter .g-kreuz__kasten::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--leise); border: none; transform: none; transition: left .2s, background .2s; }
.g-kreuz--schalter .g-kreuz__kasten::after { content: none; }
.g-kreuz--schalter .g-kreuz__feld:checked + .g-kreuz__kasten { background: var(--lampe-dunkel); border-color: var(--lampe); }
.g-kreuz--schalter .g-kreuz__feld:checked + .g-kreuz__kasten::before { left: 23px; right: auto; top: 3px; border-top: none; background: var(--lampe); transform: none; }
.g-kreuz--schalter .g-kreuz__feld:checked + .g-kreuz__kasten::after { content: none; }

/* ---------- Tipps ---------- */
.g-tipp { border-left: 2px solid var(--linie-hell); padding: 2px 0 2px 14px; margin: 0 0 16px; outline: none; }
.g-tipp__kopf { font-family: var(--bedien); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--leise); margin: 0 0 .3em; }
.g-tipp p:last-child { margin: 0; font-size: 17px; }
.g-tippangebot { border: 1px solid var(--linie-hell); border-radius: 2px; padding: 10px 12px 12px; margin: 14px 0 0; }
.g-tippangebot .g-klein { margin: 0 0 8px; }

/* ---------- Aufnahme ---------- */
.g-aufnahme { border: 1px solid var(--linie); border-left: 3px solid var(--spalt); padding: 12px 14px 6px; margin: 18px 0; background: var(--tief); }
.g-aufnahme__titel { font-family: var(--bedien); font-size: 15.5px; margin: 0 0 8px; color: var(--leise); }
.g-aufnahme__titel b { color: var(--text); }
.g-aufnahme__ruf { font-family: var(--titel); font-style: italic; font-size: 22px; color: var(--spalt); margin: 0 0 8px; }
.g-aufnahme__ruf:empty { display: none; }
.g-aufnahme__zeile { display: flex; align-items: center; gap: 14px; }
.g-aufnahme__lauf { flex: 1; height: 2px; background: var(--linie); }
.g-aufnahme__lauf i { display: block; height: 100%; width: 0; background: var(--spalt); }
.g-aufnahme.laeuft .g-aufnahme__knopf { border-color: var(--spalt); color: var(--spalt); }
.g-aufnahme.wartet { border-color: var(--lampe); border-left-color: var(--lampe); }
.g-mitschrift { border-top: 1px solid var(--linie); padding-top: 10px; margin: 2px 0 8px; font-size: 16.5px; outline: none; }
.g-mitschrift__kopf { font-family: var(--bedien); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); margin: 0 0 .3em; }

/* ---------- Schluss ---------- */
html[data-ort="schluss"] .g-skala, html[data-ort="schluss"] .g-fuss .g-klein { display: none; }
.g-ansicht--schluss { padding-top: 6vh; }
.g-erzaehlt--schluss p { font-size: 19.5px; line-height: 1.7; margin-bottom: 1.15em; }
/* GA-32: die zwei Namen als Kreideschrift auf der Tafel im Windfang */
.g-kreidetafel { margin: 6px 0 1.6em; max-width: 360px; }
.g-kreidetafel__ort { font-family: var(--bedien); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--leise); text-align: center; margin: 0 0 6px; }
.g-kreidetafel__schiefer { background: #0a0c0a; border: 6px solid var(--holz-dunkel); border-radius: 3px; padding: 20px 16px 16px; box-shadow: inset 0 0 0 1px #20251f; }
.g-erzaehlt--schluss .g-kreidetafel__schrift { font-family: var(--hand); font-size: 34px; line-height: 1.2; color: var(--kreide); text-align: center; margin: 0; letter-spacing: .02em; }
.g-kreidetafel--neu .g-kreidetafel__schrift { animation: g-kreide 3.2s ease-out .8s both; }
@keyframes g-kreide { from { opacity: 0; filter: blur(1.5px); } to { opacity: .94; filter: none; } }
.g-schluss__teil { margin-bottom: 8px; }
.g-ansicht--schluss .g-aufnahme { margin: 26px 0; }

/* ---------- Melder am unteren Rand ---------- */
.g-melder { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; max-width: 520px; margin: 0 auto; background: var(--tief); border: 1px solid var(--spalt); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.g-melder__text { font-family: var(--titel); font-style: italic; font-size: 22px; color: var(--spalt); }
.g-melder--knopf { border-color: var(--lampe); }
.g-melder--knopf .g-melder__text { color: var(--lampe); font-style: normal; font-weight: 600; }

/* ---------- Überlagerungen ---------- */
.g-schleier { position: fixed; inset: 0; z-index: 9; background: rgba(8, 10, 8, .86); display: flex; align-items: center; justify-content: center; padding: 20px; }
.g-frage { background: var(--moor); border: 1px solid var(--linie-hell); padding: 22px 20px 20px; max-width: 440px; }
.g-frage__text { font-size: 18.5px; }
.g-fenster { position: fixed; inset: 0; z-index: 8; background: var(--moor); display: flex; flex-direction: column; }
.g-fenster__leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 6px 18px; border-bottom: 1px solid var(--linie); background: var(--tief); }
.g-fenster__titel { font-family: var(--titel); font-weight: 600; font-size: 21px; margin: 0; }
.g-fenster__rolle { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 18px 40px; width: 100%; max-width: 760px; margin: 0 auto; }
.g-blattschau { position: fixed; inset: 0; z-index: 10; background: var(--tief); display: flex; flex-direction: column; }
.g-blattschau__leiste { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--linie); }
.g-blattschau__kopf { font-family: var(--bedien); font-weight: 700; font-size: 14.5px; line-height: 1.25; margin: 0; color: var(--leise); }
@media (max-width: 440px) { .g-blattschau__zusatz { display: none; } }
/* GA-33: Hinweis unter dem Plan, wenn er breiter ist als der Bildschirm */
.g-papier .g-wischen { font-family: var(--bedien); font-size: 14px; font-weight: 700; color: #5b5547; text-align: center; margin: -.5em 0 1em; }
.g-blattschau__rolle { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px 10px 20px; }
.g-blattschau__fuss { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linie); }
.g-papier { --blatt-schrift: 17px; --blatt-breite: 1; background: var(--papier); color: var(--tinte); width: calc(100% * var(--blatt-breite)); max-width: calc(820px * var(--blatt-breite)); margin: 0 auto; padding: 20px 16px 26px; border-radius: 1px; }
.g-papier--karte { max-width: 430px; padding: 14px 12px 18px; }
.g-reiter { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-bottom: 1px solid var(--linie); -webkit-overflow-scrolling: touch; }
.g-reiter__knopf { flex: none; min-height: 44px; padding: 6px 12px; background: transparent; border: 1px solid var(--linie); border-radius: 2px; font-family: var(--bedien); font-size: 15px; font-weight: 700; color: var(--leise); }
.g-reiter__knopf.ist-hier { border-color: var(--lampe); color: var(--lampe); }

/* Blätter am Bildschirm: dieselbe Auszeichnung wie im Druck, nur ohne feste Maße */
.g-papier .blatt { color: var(--tinte); }
.g-papier .blatt .schnitt { width: 100%; }
.g-papier .blatt .schere { fill: var(--papier); background: var(--papier); }
.g-papier .blatt .hausplan .tuer { fill: var(--papier); }
/* Fundstücke: Wo im Druck Weiß steht (Löcher, Lücken, Karten über Karten), steht hier die Papierfarbe */
.g-papier .blatt .hausplan .luecke, .g-papier .blatt .zwecke circle { fill: var(--papier); }
.g-papier .blatt .zwecke .voll { fill: currentColor; }
.g-papier .blatt .loch, .g-papier .blatt .k-loch, .g-papier .blatt .hb-loch, .g-papier .blatt .post-zettel, .g-papier .blatt .postkarte, .g-papier .blatt .pk-bild { background: var(--papier); }
.g-papier .blatt .schnitz { color: var(--papier); -webkit-text-stroke-color: var(--tinte); }
.g-papier .blatt .briefbogen, .g-papier .blatt .planrahmen, .g-papier .blatt .notizblock, .g-papier .blatt .hb-seite, .g-papier .blatt .postkarte, .g-papier .blatt .bettenplan, .g-papier .blatt .eintrag.h-g2, .g-papier .blatt .zettelchen { transform: none; }
.g-papier .blatt .notizblock { margin-left: 0; }
.g-papier .blatt .hb-seite { padding: .8em .8em .7em 2.6em; }
.g-papier .blatt .hb-seite::before { left: 1.9em; }
.g-papier .blatt .hb-loch { left: .45em; }
.g-papier .blatt .pk-stapel { padding-right: 1.2em; margin-left: 0; }
.g-papier .blatt .postkarte .pk-rechts { width: 6.4em; }
.g-papier .blatt .randlegende { font-size: 1.15em; }
.g-papier .blatt .dose-reihe .schnittfeld { flex: 1 1 100%; }
.g-papier .blatt .e-unter .sk-kinderbild { width: 5.6em; }
.g-papier .blatt .planrahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-papier .blatt .hausplan { min-width: 560px; }
.g-papier .blatt .schnitt.karten { grid-auto-rows: auto; }
.g-papier .blatt .karte { height: auto; overflow: visible; }
.g-papier--karte .blatt .karte { padding: .75em .95em .6em; }
.g-papier .blatt .brett-satz { font-size: 1.25em; }
.g-papier .blatt .h-feld { height: 3.4em; }
.g-papier .blatt .aushang { padding: .9em .8em .7em; }
.g-papier .blatt .briefbogen { padding: .9em 1em .8em; }
.g-papier .blatt .buchblatt { padding: .8em .9em .5em 1em; }
.g-papier .blatt .gb-leer { height: 1.9em; }
@media (max-width: 620px) {
  .g-papier .blatt .schnitt.karten { grid-template-columns: minmax(0, 1fr); }
  .g-papier .blatt .schnitt.s3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-papier .blatt .sb-kreuze.zwei { grid-template-columns: minmax(0, 1fr); }
  .g-papier .blatt .taefelchen { padding-top: 1.8em; }
  .g-papier .blatt .t-kurz { margin-top: 0; font-size: 1.02em; letter-spacing: .03em; }
  .g-papier .blatt .postkarte { flex-direction: column; }
  .g-papier .blatt .postkarte .pk-text { border-right: none; border-bottom: .6pt solid currentColor; padding: 0 0 .6em; }
  .g-papier .blatt .postkarte .pk-rechts { width: auto; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; }
  .g-papier .blatt .pk-anschrift { flex: 1 1 0; }
  .g-papier .blatt .pk-bild { display: none; }
  .g-papier .blatt .regeln li.mit-rand { flex-wrap: wrap; }
  .g-papier .blatt .regeln li.mit-rand .pt { flex: 1 1 calc(100% - 2.6em); }
  .g-papier .blatt .randlegende { flex-direction: row; gap: 1em; margin: .2em 0 .3em 2em; border-left: none; padding-left: 0; }
}

/* ---------- breiter Bildschirm ---------- */
@media (min-width: 700px) {
  .g-inhalt { padding-top: 40px; }
  .g-h1 { font-size: 40px; }
  .g-h1--titel { font-size: 52px; }
  .g-blattliste { grid-template-columns: 1fr 1fr 1fr; }
  .g-ablage { grid-template-columns: 1fr 1fr 1fr; }
  .g-tafel--am-haken .g-tafel__kurz { font-size: 15px; letter-spacing: .04em; }
  .g-tafel--am-haken.g-tafel--dose .g-tafel__kurz { font-size: 16px; }
  .g-papier { padding: 34px 38px 40px; }
}
@media (min-width: 1100px) {
  .g-inhalt, .g-kopf__zeile, .g-skala, .g-fuss { max-width: 1080px; }
  .g-kopf__zeile { padding-left: 20px; }
  .g-ansicht > * { margin-left: auto; margin-right: auto; }
  .g-ansicht > .g-haupt { max-width: none; }
  .g-haupt > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .g-haupt > .g-buehne { max-width: 1040px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
  .g-buehne__bild { position: sticky; top: 64px; }
  .g-szene { max-height: none; }
  .g-buehne__tisch { display: grid; gap: 12px; }
}
@media (max-width: 1099px) { .g-buehne__tisch { display: grid; gap: 10px; } }
@media (max-width: 359px) { .g-wortmarke { font-size: 15px; } .g-kopf__knopf { padding: 0 7px; } .g-inhalt { padding-left: 14px; padding-right: 14px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
