/* „Kein Orange“ · Stil der Seite /orange/. Farben und Maße wie die Unterseiten von ausloggen.at (assets/seiten.css),
   aber ohne Orange, solange das Experiment läuft: Die Akzentfarben hängen an html[data-orange]. */
:root {
  color-scheme: only light;
  --paper: #F5F1E8; --paper-2: #EAE3D3; --ink: #14161C; --ink-2: #1B1E26; --ink-3: #2A2E39; --muted: #6C665B;
  --orange: #D4501C; --orange-2: #AC401B; --orange-3: #E0612C; --glow: #F2C48D;
  --leise: #AEB4BD; --kante: #5B6572; --wasser: rgba(19, 148, 255, .55);
  --akzent: #7C8794; --akzent-2: #5B6572; --akzent-hell: #C9CED6;
  --lvl: var(--leise); --menue-linie: var(--ink-3); --dreieck: var(--akzent);
  --sprung-f: var(--paper); --sprung-s: var(--kante);
  --fuss-text: #C9CED6; --fuss-leise: #AEB4BD; --grau-text: #5B6572;
  --wahl-f: #2A2E39; --wahl-t: #F5F1E8;
  --fokus: var(--ink);
  --f-display: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Source Code Pro", ui-monospace, Consolas, "Courier New", monospace;
  --f-pixel: "Silkscreen", "Source Code Pro", ui-monospace, monospace;
  --gutter: clamp(18px, 4vw, 48px);
  --rand-l: max(var(--gutter), env(safe-area-inset-left, 0px)); --rand-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --hud-h: 46px;
  --platz-h: 228px;
  --wechsel: .6s;
}
html[data-orange="an"] {
  --akzent: var(--orange); --akzent-2: var(--orange-2); --akzent-hell: var(--glow);
  --lvl: var(--glow); --menue-linie: var(--orange); --dreieck: var(--orange-3);
  --sprung-f: var(--glow); --sprung-s: var(--orange);
  --fuss-text: #CFC8B8; --fuss-leise: #A09A8C; --grau-text: var(--muted);
  --wahl-f: var(--orange); --wahl-t: var(--paper);
  --fokus: var(--orange);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hud-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-display); font-size: 19px; line-height: 1.6; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3, b, strong { font-weight: 900; }
img, canvas { display: block; }
::selection { background: var(--wahl-f); color: var(--wahl-t); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.band { padding-left: var(--rand-l); padding-right: var(--rand-r); }
.wrap { max-width: 1180px; margin-inline: auto; }
.screen { background: var(--ink); color: var(--paper); }

/* ---------- Sprung-Links ---------- */
.sprung { position: absolute; left: 12px; top: -90px; z-index: 100; padding: 12px 16px; background: var(--sprung-f); color: var(--ink); font-family: var(--f-pixel); font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; box-shadow: 4px 4px 0 var(--sprung-s); --fokus: var(--paper); }
.sprung:focus { top: 8px; }

/* ---------- Kopfzeile (Maße wie auf der Website, Farben über die Akzente) ---------- */
.hud { position: sticky; top: 0; z-index: 50; height: var(--hud-h); display: flex; align-items: center; gap: 18px; padding-left: var(--rand-l); padding-right: var(--rand-r);
  background: rgba(20, 22, 28, .95); color: var(--paper); font-family: var(--f-pixel); font-size: 12px; letter-spacing: .06em; --fokus: var(--paper); }
html[data-orange="an"] .hud { --fokus: var(--orange); }
.hud a { color: inherit; }
.hud .logo { font-family: var(--f-display); font-weight: 900; font-size: 19px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.sq { display: inline-block; width: .36em; height: .36em; background: var(--paper); margin: 0 .1em; vertical-align: .15em; transition: background-color var(--wechsel) ease; }
html[data-orange="an"] .sq { background: var(--orange); }
.hud .lvl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lvl); text-transform: uppercase; transition: color var(--wechsel) ease; }
.hud nav { display: flex; gap: 2px; margin-left: auto; }
.hud nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; text-transform: uppercase; }
.hud nav a:hover { background: var(--ink-3); }
.hud-buch { flex: none; position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; background: transparent; color: var(--paper); text-decoration: none; text-transform: uppercase;
  white-space: nowrap; box-shadow: inset 0 0 0 2px var(--paper), 3px 3px 0 transparent;
  transition: transform .12s ease, box-shadow var(--wechsel) ease, background-color var(--wechsel) ease; }
.hud-buch::after { content: ""; position: absolute; inset: -9px -5px; }
html[data-orange="an"] .hud-buch { background: var(--orange-2); box-shadow: inset 0 0 0 2px var(--orange-2), 3px 3px 0 var(--paper); }
.hud-buch:hover { transform: translate(-1px, -1px); }
.hud-buch:active { transform: translate(2px, 2px); }
.hud-menue { display: none; }
@media (max-width: 899px) { .hud .lvl { visibility: hidden; } }
@media (forced-colors: active) { .hud-buch { outline: 2px solid; outline-offset: -2px; } .sq { background: CanvasText !important; }
  .regler::-webkit-slider-runnable-track { background: CanvasText; } .regler::-moz-range-track { background: CanvasText; } }
.fugen { forced-color-adjust: none; }
@media (max-width: 760px) {
  .hud { gap: 12px; }
  .hud .lvl { visibility: hidden; }
  html.js .hud-menue { display: inline-flex; align-items: center; gap: 9px; height: 44px; margin-right: -6px; padding: 0 6px; background: none; border: 0; border-radius: 0; color: var(--paper);
    font: inherit; letter-spacing: inherit; text-transform: uppercase; cursor: pointer; }
  html.js .hud-menue span { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  html.js .hud.offen .hud-menue { color: var(--akzent-hell); }
  html.js .hud nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0; margin: 0; padding: 2px var(--rand-r) 18px var(--rand-l); background: var(--ink);
    border-bottom: 3px solid var(--menue-linie); box-shadow: 0 26px 44px rgba(0, 0, 0, .45); max-height: calc(100vh - var(--hud-h)); overflow-y: auto; }
  html.js .hud.offen nav { display: flex; }
  html.js .hud nav a { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 2px; font-size: 14px; letter-spacing: .06em; border-bottom: 2px dashed var(--ink-3); }
  html.js .hud nav a::after { content: ""; width: 0; height: 0; border-left: 8px solid var(--dreieck); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
  html.js .hud nav a:hover { background: none; color: var(--akzent-hell); }
  html:not(.js) .hud .lvl { display: none; }
  html:not(.js) .hud nav { flex: 1; min-width: 0; overflow-x: auto; }
}
@media (max-width: 360px) { .hud .logo { font-size: 16px; } .hud { gap: 8px; } .hud-buch { padding: 0 9px; } }

/* ---------- Spielbereich ---------- */
.spiel { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); --fokus: var(--paper);
  --frei: calc(100vh - var(--hud-h));
  --bh: max(232px, min(calc((100vw - 36px) * 1.25), calc(var(--frei) - var(--platz-h) - 30px)));
  min-height: var(--frei); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 12px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
@supports (height: 100svh) { .spiel { --frei: calc(100svh - var(--hud-h)); } }
.spiel ::selection { background: var(--ink-3); color: var(--paper); }

.buehne { position: relative; flex: none; box-sizing: content-box; width: calc(var(--bh) * .8); height: var(--bh); border: 3px solid var(--paper); background: var(--ink-2);
  box-shadow: 6px 6px 0 var(--kante); overflow: hidden; }
.buehne > img, .buehne > canvas, .wasser-css { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#bild { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.wasser-css { display: none; background: var(--wasser); }
html:not(.js) .wasser-css, html.ohne-spiel .wasser-css { display: block; }
#flaeche { visibility: hidden; }
html.bereit #flaeche { visibility: visible; }
html.ohne-spiel #flaeche, html.ohne-spiel #blende { display: none; }
#blende { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
#blende.an { opacity: 1; }
#karte { opacity: 0; transform: translateY(100%); transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; -webkit-touch-callout: default; }
#karte.an { opacity: 1; transform: none; }
.loch { position: absolute; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.loch:focus { outline: none; }

/* Mindesthöhe, keine feste Höhe: Mit größerer Schrift oder weiteren Textabständen wächst der Bedienplatz, und die Seite scrollt, statt Knöpfe abzuschneiden. */
.platz { position: relative; flex: none; width: 100%; max-width: 560px; min-height: var(--platz-h); padding: 12px 0; display: grid; user-select: none; -webkit-user-select: none; }
.tafel { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility 0s linear .12s; }
.tafel.an { visibility: visible; opacity: 1; transition: opacity .18s ease .1s, visibility 0s; }
html:not(.js) .tafel, html.ohne-spiel .tafel { display: none; }
.tafel-ersatz { grid-area: 1 / 1; display: none; align-self: center; font-size: 17px; line-height: 1.45; color: var(--paper); }
html:not(.js) .tafel-ersatz, html.ohne-spiel .tafel-ersatz { display: block; }

.etikett { position: absolute; left: 0; top: -4px; font-family: var(--f-pixel); font-size: 11px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); white-space: nowrap; }
.zeile { font-weight: 900; font-size: 19px; line-height: 23px; letter-spacing: -.01em; min-height: 46px; color: var(--paper); text-wrap: balance; }
html.js[data-zustand="laden"]:not(.ohne-spiel) .tafel[data-tafel="wetten"] .zeile { visibility: hidden; }
.zeile.eins { min-height: 23px; }
.text { font-size: 15px; line-height: 20px; color: #E3E6EA; }
.waehlbar { user-select: all; -webkit-user-select: all; font-family: var(--f-mono); font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
html:not([data-wette]) [data-nur] { display: none; }
html[data-wette="orange"] [data-nur]:not([data-nur~="orange"]),
html[data-wette="braun"] [data-nur]:not([data-nur~="braun"]),
html[data-wette="grau"] [data-nur]:not([data-nur~="grau"]),
html[data-wette="blau"] [data-nur]:not([data-nur~="blau"]) { display: none; }

/* Knöpfe im Spielbereich: Papier auf Dunkel, Versatz in kühlem Grau, nie Orange */
.knopf { font-family: var(--f-pixel); font-size: 15px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; margin: 0; padding: 6px 16px; border: 3px solid var(--paper); border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none;
  box-shadow: 5px 5px 0 var(--kante); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease, opacity .2s ease;
  touch-action: manipulation; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .knopf:not(:disabled):hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--kante); } }
.knopf:not(:disabled):active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--kante); }
.knopf.gewaehlt, .knopf[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.knopf:disabled { cursor: default; }
.knopf.schmal { font-size: 12px; padding: 6px 8px; letter-spacing: .02em; }
.knopf.zweit { background: var(--ink); color: var(--paper); }
.unten { position: relative; display: inline-flex; align-items: center; gap: 9px; justify-self: start; min-height: 30px; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--paper); cursor: pointer;
  font-family: var(--f-pixel); font-size: 12px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  touch-action: manipulation; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.unten::after { content: ""; position: absolute; inset: -4px -8px -10px; }
.unten .pfeil { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid currentColor; }
@media (hover: hover) and (pointer: fine) { .nur-finger { display: none; } }
.reihe { display: flex; align-items: center; gap: 13px; padding-right: 5px; margin-top: auto; }
.reihe.zwei { justify-content: space-between; }
.reihe.drei .knopf, .reihe.umbruch .knopf { flex: 1 1 auto; }
.reihe.umbruch { flex-wrap: wrap; gap: 9px 11px; }

/* Wette: vier gleiche Knöpfe, ohne Farbfelder */
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 13px; padding-right: 5px; margin-top: auto; padding-bottom: 5px; transition: opacity .35s ease; }
.wahl .knopf { min-height: 48px; }
html:not([data-zustand="wetten"]):not([data-zustand="herausnehmen"]) .wahl { opacity: 0; visibility: hidden; }
.wahl .knopf:disabled:not(.gewaehlt) { opacity: .55; }
html[data-zustand="laden"] .wahl .knopf, html[data-zustand="ankommen"] .wahl .knopf, html[data-zustand="eintauchen"] .wahl .knopf { opacity: 1; }

/* Ablage: eine Karte aus Papier (Zeichenfläche) mit Hoodie, Lupe und Farbfeld. Die Beschriftung steht daneben und darunter auf Dunkel. */
.ablage { position: relative; display: grid; grid-template-columns: calc(var(--slot-h) * .9111) calc(var(--lupe) + 4px) calc(var(--lupe) + 4px) minmax(0, 1fr); grid-template-rows: var(--karte-h) auto;
  column-gap: var(--luft); justify-items: center; align-items: center; padding-left: var(--pad); color: var(--paper); --slot-h: 80px; --lupe: 64px; --pad: 6px; --luft: 12px; --karte-h: 86px; }
.papier { grid-column: 1 / 4; grid-row: 1; justify-self: start; width: calc(100% + 2 * var(--pad)); height: 100%; margin-left: calc(-1 * var(--pad)); background: var(--paper); }
.ablage-feld { grid-column: 1; grid-row: 1; width: calc(var(--slot-h) * .9111); height: var(--slot-h); outline: 2px dashed rgba(20, 22, 28, .22); outline-offset: -3px; cursor: pointer; }
.tafel[data-fall="draussen"] .ablage-feld { outline-style: none; }
.klein { font-family: var(--f-mono); font-weight: 700; font-size: 11px; line-height: 12px; letter-spacing: 0; text-transform: uppercase; margin-top: 2px; white-space: nowrap; }
.ablage > .klein { grid-row: 2; align-self: start; width: max-content; }
#antippen { grid-column: 1; cursor: pointer; }
#name-lupe { grid-column: 2; }
#probe-lupe { grid-column: 2; grid-row: 1; }
#probe-feld { grid-column: 3; grid-row: 1; }
.probe { position: relative; opacity: 0; }
.probe canvas { box-sizing: content-box; width: var(--lupe); height: var(--lupe); border: 2px solid var(--ink); }
#lupe { image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; image-rendering: pixelated; }
/* Fugen: feine dunkle Linien zwischen den 64 Bildpunkten, damit man sie als einzelne Bildpunkte erkennt. Sie liegen über der Lupe und ändern keinen Bildpunkt. */
.fugen { position: absolute; left: 2px; top: 2px; width: calc(var(--lupe) - 1px); height: calc(var(--lupe) - 1px); pointer-events: none;
  background-image: linear-gradient(to left, rgba(20, 22, 28, .34) 1px, transparent 1px), linear-gradient(to top, rgba(20, 22, 28, .34) 1px, transparent 1px); background-size: calc(var(--lupe) / 8) calc(var(--lupe) / 8); }
#probe-lupe { transform-origin: 0 50%; transform: scale(.2); transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .15s ease; }
#name-lupe { opacity: 0; transition: opacity .15s ease; }
#probe-feld, .ablage-wert { transition: opacity .2s ease; }
.ablage-wert { grid-column: 4; grid-row: 1; justify-self: start; opacity: 0; padding-left: 2px; }
.ablage-wert .klein { margin: 0 0 3px; }
.zahlen { font-family: var(--f-mono); font-weight: 700; font-size: 13px; line-height: 14px; white-space: nowrap; }
.ablage .zahlen { line-height: 15px; }
.ablage .zahlen .z { display: block; }
.ablage .zahlen .punkt { display: none; }
.tafel.beweis-1 #probe-lupe { opacity: 1; transform: none; }
.tafel.beweis-1 #name-lupe { opacity: 1; }
.tafel.beweis-2 #probe-feld, .tafel.beweis-2 .ablage-wert { opacity: 1; }
@media (max-width: 374px) {
  .ablage { --slot-h: 76px; --lupe: 56px; --pad: 4px; --luft: 7px; }
  .klein { font-size: 10px; }
  .ablage .zahlen { font-size: 11px; line-height: 13px; }
  .reihe.zwei .knopf { font-size: 13px; padding-inline: 10px; }
}

/* Auflösung: „Wasser ablassen“ betont, „Messen“ und „Teilen“ leiser, darunter der Verweis auf den Text */
.menue { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 9px; padding-right: 5px; margin-top: auto; }
.menue .knopf { padding-inline: 10px; }
.menue .knopf.zweit { padding-inline: 2px; }
.menue .unten { grid-column: 1 / -1; }
@media (max-width: 374px) { .menue .knopf, .reihe.drei .knopf, .reihe.umbruch .knopf { font-size: 11px; letter-spacing: 0; } }

/* Wasserstand */
.felder { list-style: none; padding: 0; display: grid; gap: 4px; }
.felder li { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; align-items: center; }
.felder .feld { grid-row: 1 / 3; width: 24px; height: 24px; border: 2px solid var(--paper); }
.felder .wo { font-family: var(--f-mono); font-weight: 700; font-size: 10px; line-height: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--leise); }
.felder .zahlen { font-size: 12px; color: var(--paper); }
.regler-reihe { gap: 16px; }
.regler { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; width: 100%; height: 48px; margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; border-radius: 0; }
.regler::-webkit-slider-runnable-track { height: 6px; background: var(--kante); border: 0; border-radius: 0; }
.regler::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 0; box-shadow: 0 0 0 2px var(--paper); }
.regler::-moz-range-track { height: 6px; background: var(--kante); border: 0; border-radius: 0; }
.regler::-moz-range-thumb { width: 24px; height: 24px; background: var(--paper); border: 3px solid var(--ink); border-radius: 0; box-shadow: 0 0 0 2px var(--paper); }
.regler:focus-visible { outline: 3px solid var(--fokus); outline-offset: 0; }

/* Messung: Klecks auf Papier */
.mess { display: flex; align-items: center; gap: 16px; padding-right: 5px; }
.klecksfeld { position: relative; flex: none; display: grid; place-items: center; width: 84px; height: 76px; background: var(--paper); --klecks: 64px; }
.papier-voll { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.klecks { position: relative; width: var(--klecks); height: var(--klecks); border-radius: 58% 42% 55% 45% / 46% 57% 43% 54%; }

/* Der Hoodie zum Herausnehmen: liegt über Bühne und Bedienplatz, wird nur über transform bewegt */
.stueck { position: absolute; left: 0; top: 0; z-index: 5; width: 99px; height: 108px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; transform-origin: 0 0; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; }
.stueck canvas { width: 100%; height: 100%; visibility: hidden; pointer-events: none; -webkit-user-drag: none; }
.stueck.sichtbar canvas { visibility: visible; }
.stueck.fliegt { cursor: grabbing; }
.stueck.fliegt canvas { filter: drop-shadow(0 10px 12px rgba(20, 22, 28, .25)); }
.stueck:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); }
@keyframes wink { 0%, 100% { transform: none; } 35% { transform: translateY(-6%) rotate(-3deg); } 70% { transform: translateY(0) rotate(2deg); } }
.stueck.wink canvas { animation: wink .7s ease-in-out 1; }
.stueck .ring { position: absolute; left: 46%; top: 53%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--paper);
  transform: scale(var(--gegen, 1)); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.stueck.draussen.ruht .ring { opacity: 1; }

/* ---------- Computer und Handy quer: Bühne links, Bedienplatz rechts ---------- */
@media (orientation: landscape) and (min-width: 640px) {
  .spiel { --bh: max(300px, min(calc(var(--frei) - 56px), calc((100vw - 420px) * 1.25), 1100px)); flex-direction: row; gap: 40px; padding: 20px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); }
  .buehne { box-shadow: 8px 8px 0 var(--kante); }
  .platz { flex: 0 1 480px; width: auto; min-width: 290px; max-width: 480px; min-height: 250px; padding: 0; }
  .tafel { gap: 10px; }
  .etikett { top: -24px; }
  .ablage { grid-template-columns: calc(var(--slot-h) * .9111) calc(var(--lupe) + 4px) calc(var(--lupe) + 4px); justify-content: start; --slot-h: 96px; --lupe: 72px; --pad: 10px; --luft: 12px; --karte-h: 116px; }
  .ablage-wert { grid-column: 3; grid-row: 2; align-self: start; padding-left: 0; margin-top: 2px; }
  .menue { padding-bottom: 0; }
  .klecksfeld { width: 108px; height: 100px; --klecks: 80px; }
  .tafel.an { transition-delay: .1s, 0s; }
  .ablage .zahlen { font-size: 11px; line-height: 13px; }
}
@media (orientation: landscape) and (min-width: 1000px) { .ablage .zahlen { font-size: 13px; line-height: 15px; } }
@media (orientation: landscape) and (min-width: 640px) and (max-height: 480px) { .etikett { display: none; } .spiel { padding-block: 10px; --bh: max(240px, min(calc(var(--frei) - 30px), calc((100vw - 420px) * 1.25))); } }
@media (orientation: landscape) and (min-width: 1180px) and (min-height: 700px) {
  .spiel { gap: 56px; --bh: max(300px, min(calc(var(--frei) - 56px), 1100px)); }
  .buehne { box-shadow: 10px 10px 0 var(--kante); }
  .platz { flex: 0 0 480px; min-height: 420px; }
  .tafel { gap: 18px; }
  .etikett { font-size: 13px; line-height: 16px; top: -34px; }
  .zeile { font-size: 30px; line-height: 33px; min-height: 66px; letter-spacing: -.02em; }
  .zeile.eins { min-height: 33px; }
  .text { font-size: 19px; line-height: 27px; }
  .wahl { gap: 14px 19px; }
  .wahl .knopf { min-height: 56px; font-size: 17px; }
  .knopf { min-height: 48px; }
  .knopf.schmal { font-size: 14px; padding: 6px 12px; letter-spacing: .03em; }
  .menue { gap: 13px; }
  .ablage { --slot-h: 180px; --lupe: 120px; --pad: 14px; --luft: 20px; --karte-h: 212px; }
  .klein { font-size: 12px; line-height: 14px; margin-top: 6px; letter-spacing: .04em; }
  .ablage-wert { margin-top: 0; }
  .ablage-wert .klein { margin: 6px 0 4px; }
  .zahlen { font-size: 14px; line-height: 18px; }
  .ablage .zahlen { font-size: 15px; line-height: 20px; }
  .unten { font-size: 14px; min-height: 36px; }
  .felder { gap: 10px; }
  .felder li { grid-template-columns: 34px 1fr; column-gap: 12px; }
  .felder .feld { width: 34px; height: 34px; }
  .felder .wo { font-size: 11px; line-height: 14px; }
  .felder .zahlen { font-size: 15px; }
  .klecksfeld { width: 132px; height: 124px; --klecks: 96px; }
  .mess { gap: 24px; }
}

/* ---------- Textteil auf Papier ---------- */
.text-teil-anker { display: none; }
section.text, .schluss { background: var(--paper); color: var(--ink); padding: clamp(48px, 8vw, 96px) var(--rand-r) clamp(36px, 6vw, 64px) var(--rand-l); }
section.text.mehr { border-top: 3px solid var(--ink); padding-top: clamp(40px, 7vw, 72px); }
section.text.mehr .kasten { margin-top: 0; }
.schluss { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(56px, 9vw, 104px); border-top: 3px solid var(--ink); }
.spalte { max-width: 720px; margin-inline: auto; }
.spalte h2 { font-weight: 900; font-size: clamp(36px, 6vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.spalte h3 { font-weight: 900; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.12; letter-spacing: -.01em; margin-top: 56px; }
.spalte p { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--ink); }
.spalte .vorspann { font-size: clamp(20px, 2.6vw, 23px); line-height: 1.5; margin-top: 22px; }
.spalte blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--akzent); transition: border-color var(--wechsel) ease; }
.spalte blockquote p { margin: 0; font-weight: 600; font-size: 21px; line-height: 1.45; }
.spalte blockquote.gross p { font-weight: 900; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.spalte .quelle, .spalte .bildzeile { font-family: var(--f-mono); font-weight: 700; font-size: 12px; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; color: var(--grau-text); }
.spalte .bildzeile { margin-top: 44px; text-transform: none; letter-spacing: .02em; }
.kasten { margin: 56px 8px 0 0; padding: clamp(20px, 4vw, 30px); border: 3px solid var(--ink); background: #FBF9F4; box-shadow: 8px 8px 0 var(--akzent); transition: box-shadow var(--wechsel) ease; }
.kasten h3 { margin-top: 0; }
.kasten .zwischen { margin-top: 22px; font-family: var(--f-pixel); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.kasten ul { margin-top: 8px; padding-left: 22px; }
.kasten li { margin-top: 8px; font-size: 18px; line-height: 1.5; }
.kasten li::marker { color: var(--akzent-2); }
.schluss-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; padding-right: 8px; }
.btn { font-family: var(--f-pixel); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 20px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  box-shadow: 5px 5px 0 var(--akzent); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease; touch-action: manipulation; }
html[data-orange="an"] .btn { transition: transform .12s ease, box-shadow var(--wechsel) ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--akzent); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--akzent); }
.leise-link, .leise-knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--ink); cursor: pointer;
  font-family: var(--f-pixel); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; touch-action: manipulation; }
.leise-link:hover, .leise-knopf:hover { color: var(--akzent-2); }

/* ---------- Fußzeile (wie auf der Website) ---------- */
footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; --fokus: var(--paper); }
html[data-orange="an"] footer { --fokus: var(--orange); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
footer .fuss-titel { font-weight: 900; font-size: 18px; margin-bottom: 8px; color: var(--paper); letter-spacing: -.01em; line-height: 1.1; }
footer p { color: var(--fuss-text); line-height: 1.55; }
footer .nums { font-family: var(--f-mono); font-weight: 700; font-size: 14px; line-height: 1.8; color: var(--paper); }
footer .nums b { color: var(--akzent-hell); font-weight: 700; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--ink-3); padding-top: 16px; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--fuss-leise); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer .fine a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
footer .fine a:hover { color: var(--akzent-hell); }
footer .folgen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
footer .folgen-titel { font-family: var(--f-pixel); font-size: 12px; letter-spacing: .06em; color: var(--akzent-hell); margin-right: 6px; }
footer .folgen a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink-3); color: var(--paper); font-family: var(--f-mono); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
footer .folgen a:hover { border-color: var(--akzent-hell); color: var(--akzent-hell); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--akzent); }
@media (max-width: 760px) { footer .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px), (pointer: coarse) { footer .fine a { display: inline-block; padding: 13px 2px; } footer .folgen a { min-width: 44px; justify-content: center; } }

/* ---------- Weniger Bewegung: Bild steht sofort unter Wasser, nichts fliegt ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .wasser-css { display: block; }
  #blende { transition-duration: .4s; }
  #karte { transform: none; transition: opacity .4s ease; }
  #probe-lupe { transform: none; transition: opacity .2s ease; }
  .knopf, .btn, .hud-buch, footer .folgen a { transition: background-color .12s ease, color .12s ease, opacity .2s ease; }
  .knopf:hover, .knopf:active, .btn:hover, .btn:active, .hud-buch:hover, .hud-buch:active, footer .folgen a:hover { transform: none !important; }
  .stueck.fliegt canvas { filter: none; }
  .stueck.wink canvas { animation: none; }
}
@media print { .hud, .sprung, .spiel, .schluss-knoepfe, footer .folgen, footer .fine { display: none !important; } }
