/* ═══════════════════════════════════════════════════════════════════════════
   XnD – Experience-Native Design · Bildschirmfassung
   Ein Gestaltungsprinzip von Percy Wippler

   Aufbau dieser Datei
     1  Farben und Maße (hell, dunkel)        7  Tiefe: das Blatt (7b: Erleben)
     2  Grundlagen                            8  Der Tipp (Hinweis am Faden)
     3  Himmel (Licht je Raum)                9  Die Beispiele der zwölf Räume
     4  Kopf                                 10  Fassungen: ruhig, ohne Skript,
     5  Räume, Schrift, Bedienteile              schmal, Kontrast, einfacher Druck
     6  Wegweiser und Leiste unten

   Regeln
   · Farben nur über die Variablen aus Abschnitt 1. Dunkel steht zweimal identisch da
     (Vorgabe des Geräts und Wahl des Besuchers) – Änderungen immer in beiden Blöcken.
   · Bewegung wird ohne Media-Abfrage angelegt. Die Sammelregel in Abschnitt 10 hält
     bei <html class="ruhig"> alles an. Was trotzdem laufen darf, trägt die Klasse .frei.
   · Ohne Skript (kein <html class="js">) ist die Seite ein gegliedertes Dokument.
   Das A4-Buch steht in buch.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1  Farben und Maße ─────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --grund: #f3f4fb;
  --flaeche: #ffffff;
  --flaeche-2: #eceefa;
  --tinte: #16172b;
  --leise: #51566f;
  --linie: #d6d9ea;
  --linie-stark: #7d819f;
  --akzent: #4f46d8;
  --akzent-weich: #e7e6fb;
  --auf-akzent: #ffffff;
  --licht: #3fc79a;
  --licht-hell: #9cecd0;
  --warn: #b4441a;
  --glas: rgb(255 255 255 / .78);
  --glas-rand: rgb(22 23 43 / .09);
  --schatten: 0 1px 2px rgb(30 28 80 / .05), 0 14px 44px rgb(30 28 80 / .10);
  --himmel-hell: .9;
  --himmel-satt: .075;
  --himmel-kraft: .62;

  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;   /* Auszeichnung: kursive Wörter, Merksätze */
  --lese: Georgia, "Iowan Old Style", "Times New Roman", serif;                                 /* Lesetext der Tiefe – wie im Buch */
  --rand: clamp(1.25rem, 5vw, 4rem);
  --weich: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund: #10111c;
    --flaeche: #191b2b;
    --flaeche-2: #21243b;
    --tinte: #eeeef8;
    --leise: #a7abc4;
    --linie: #2c2f48;
    --linie-stark: #6f7392;
    --akzent: #a8a2ff;
    --akzent-weich: #26264e;
    --auf-akzent: #12122a;
    --licht: #7fe3bf;
    --licht-hell: #b3f3dc;
    --warn: #f4a77e;
    --glas: rgb(25 27 43 / .76);
    --glas-rand: rgb(255 255 255 / .1);
    --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 18px 52px rgb(0 0 0 / .45);
    --himmel-hell: .34;
    --himmel-satt: .12;
    --himmel-kraft: .6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #10111c;
  --flaeche: #191b2b;
  --flaeche-2: #21243b;
  --tinte: #eeeef8;
  --leise: #a7abc4;
  --linie: #2c2f48;
  --linie-stark: #6f7392;
  --akzent: #a8a2ff;
  --akzent-weich: #26264e;
  --auf-akzent: #12122a;
  --licht: #7fe3bf;
  --licht-hell: #b3f3dc;
  --warn: #f4a77e;
  --glas: rgb(25 27 43 / .76);
  --glas-rand: rgb(255 255 255 / .1);
  --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 18px 52px rgb(0 0 0 / .45);
  --himmel-hell: .34;
  --himmel-satt: .12;
  --himmel-kraft: .6;
}

/* Diese Werte wandern weich von Raum zu Raum (Abschnitt 3). */
@property --ton { syntax: "<number>"; inherits: true; initial-value: 285; }
@property --hx { syntax: "<percentage>"; inherits: true; initial-value: 78%; }
@property --hy { syntax: "<percentage>"; inherits: true; initial-value: 16%; }

/* ── 2  Grundlagen ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.js:not(.ruhig) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; overflow-x: clip;
}
h1, h2, h3, h4, p, dl, dd, ol, ul, blockquote, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
svg { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zeichen { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: .4rem; }
::selection { background: var(--akzent); color: var(--auf-akzent); }

.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .nur-js { display: none !important; }
html.js .ohne-js { display: none !important; }
.nur-papier { display: none; }

.sprung { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1.1rem; border-radius: 99px; background: var(--akzent); color: var(--auf-akzent); font-weight: 600; text-decoration: none; }
.sprung:focus { top: 1rem; }

/* ── 3  Himmel: jeder Raum hat sein eigenes Licht ───────────────────────── */
.himmel {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at var(--hx) var(--hy), oklch(var(--himmel-hell) var(--himmel-satt) var(--ton) / var(--himmel-kraft)), transparent 68%),
    radial-gradient(52vmax 52vmax at calc(100% - var(--hx)) calc(100% - var(--hy)), oklch(var(--himmel-hell) var(--himmel-satt) var(--ton2, calc(var(--ton) - 70)) / calc(var(--himmel-kraft) * .6)), transparent 66%);
  transition: --ton 1.6s ease, --hx 1.6s ease, --hy 1.6s ease;
}
html[data-raum="begriff"]      { --ton: 268; --hx: 24%; --hy: 22%; }
html[data-raum="zuhause"]      { --ton: 222; --hx: 80%; --hy: 70%; }
html[data-raum="ort"]          { --ton: 250; --hx: 70%; --hy: 20%; }
html[data-raum="tiefe"]        { --ton: 300; --hx: 30%; --hy: 74%; }
html[data-raum="lebendigkeit"] { --ton: 185; --hx: 76%; --hy: 28%; }
html[data-raum="teile"]        { --ton: 318; --hx: 22%; --hy: 18%; }
html[data-raum="antwort"]      { --ton: 232; --hx: 72%; --hy: 76%; }
html[data-raum="fassungen"]    { --ton: 262; --hx: 28%; --hy: 26%; }
html[data-raum="methode"]      { --ton: 200; --hx: 78%; --hy: 24%; }
html[data-raum="fundament"]    { --ton: 278; --hx: 26%; --hy: 72%; }
html[data-raum="urheber"]      { --ton: 290; --hx: 74%; --hy: 20%; }

/* ── 4  Kopf: kein Balken, nur Marke und eine Glas-Pille ────────────────── */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem var(--rand);
  pointer-events: none;
}
.kopf > * { pointer-events: auto; }
.marke, .kopf__pille {
  display: flex; align-items: center;
  border-radius: 99px;
  background: var(--glas);
  border: 1px solid var(--glas-rand);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--schatten);
}
.marke { gap: .7rem; padding: .4rem 1rem .4rem .9rem; text-decoration: none; min-height: 2.9rem; }
.marke__zeichen { font-size: 1.3rem; font-weight: 680; letter-spacing: -.05em; line-height: 1; }
.marke__zeichen i { font: italic 400 1.08em var(--serif); color: var(--akzent); padding: 0 .04em; letter-spacing: 0; }
.marke__name { font-size: .7rem; font-weight: 620; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }
.kopf__pille { gap: .1rem; padding: .2rem; }
.rund {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 0; border-radius: 50%; background: none;
  transition: background .2s, color .2s;
}
.rund:hover { background: var(--akzent-weich); color: var(--akzent); }
.rund--wort { display: flex; gap: .45rem; width: auto; padding: 0 1rem 0 .8rem; border-radius: 99px; font-size: .88rem; font-weight: 620; }
.rund .aus { display: none; }
html.ruhig .rund .an { display: none; }
html.ruhig .rund .aus { display: block; }

/* ── 5  Räume ───────────────────────────────────────────────────────────── */
.raum {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: clamp(5.5rem, 12vh, 7.5rem) var(--rand) clamp(4.5rem, 10vh, 6.5rem);
}
/* Die Raumnummer steht groß und leise im Hintergrund (xnd.js setzt data-nr). */
.raum[data-nr]::before {
  content: attr(data-nr);
  position: absolute; right: var(--rand); bottom: clamp(3rem, 8vh, 5rem); z-index: -1;
  font-size: clamp(6rem, 17vw, 15rem); font-weight: 700; line-height: .8; letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--tinte) 9%, transparent);
  pointer-events: none; user-select: none;
}
.raum__innen {
  width: min(100%, 72rem); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.raum__innen--breit { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 4vw, 4rem); }
.raum__text { display: grid; gap: clamp(1rem, 2.2vh, 1.5rem); justify-items: start; }
.raum__spiel { min-width: 0; }

.kicker {
  display: flex; align-items: center; gap: .8rem;
  font-size: .76rem; font-weight: 680; letter-spacing: .17em; text-transform: uppercase;
  color: var(--akzent);
}
.kicker::before { content: ""; width: 1.8rem; height: 2px; border-radius: 2px; background: currentColor; }
h1, h2 { font-weight: 640; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 5.3vw, 4.8rem); }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); }
h1 em, h2 em, .mehr__kopf h3 em { font: italic 400 1.04em var(--serif); letter-spacing: -.025em; color: var(--akzent); }
h1 em, h2 em { white-space: nowrap; }   /* das kursive Ende einer Überschrift bleibt zusammen und bricht als Ganzes um */
.satz { max-width: 33rem; font-size: clamp(1.14rem, 1.55vw, 1.38rem); line-height: 1.48; text-wrap: pretty; }
.klein { max-width: 34rem; font-size: .9rem; line-height: 1.55; color: var(--leise); }
.urheberzeile { font-size: 1rem; color: var(--leise); }
.urheberzeile strong { color: var(--tinte); font-weight: 650; }
.wege { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Erscheinen beim Betreten eines Raums – nur mit Skript und nur, wenn Bewegung erwünscht ist. */
html.js:not(.ruhig) .raum:not(.ist-da) [data-auf] { opacity: 0; translate: 0 1.4rem; }
html.js:not(.ruhig) [data-auf] { transition: opacity .9s ease, translate .9s var(--weich); transition-delay: calc(var(--i, 0) * 90ms); }

/* Bedienteile */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .65rem 1.45rem;
  border: 1.5px solid transparent; border-radius: 99px;
  background: var(--akzent); color: var(--auf-akzent);
  font-size: 1rem; font-weight: 640; line-height: 1.2; text-decoration: none;
  transition: translate .25s var(--weich), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.knopf:hover { translate: 0 -2px; box-shadow: 0 10px 28px color-mix(in oklab, var(--akzent) 34%, transparent); }
.knopf--leise { background: transparent; border-color: var(--linie-stark); color: var(--tinte); }
.knopf--leise:hover { border-color: var(--akzent); color: var(--akzent); box-shadow: none; }
.knopf--leise[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent-weich); color: var(--akzent); }
.knopf--klein { min-height: 2.5rem; padding: .4rem 1.05rem; font-size: .88rem; }
.knopf:disabled { opacity: .4; pointer-events: none; }

.schalter { display: inline-flex; flex-wrap: wrap; gap: .15rem; padding: .25rem; border: 1px solid var(--linie); border-radius: 99px; background: var(--flaeche-2); }
.schalter button {
  min-height: 2.5rem; padding: .35rem 1.05rem;
  border: 0; border-radius: 99px; background: none;
  font-size: .88rem; font-weight: 620; color: var(--leise);
  transition: background .25s, color .25s;
}
.schalter button:hover { color: var(--tinte); }
.schalter button[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); }

.schild { display: inline-block; font-size: .7rem; font-weight: 680; letter-spacing: .15em; text-transform: uppercase; color: var(--leise); }
.schild--neu { color: var(--akzent); }
.tafel {
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid var(--glas-rand); border-radius: 1.7rem;
  background: var(--glas);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--schatten);
}

/* Der Weg in die Tiefe: ein Name und ein Zeichen – überall dasselbe. */
.tiefer {
  display: inline-flex; align-items: center; gap: .85rem;
  padding: .5rem 1.25rem .5rem .55rem;
  border: 1px solid var(--linie); border-radius: 99px;
  background: var(--glas);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color .25s, translate .25s var(--weich), box-shadow .25s;
}
.tiefer svg { width: 2.5rem; height: 2.5rem; padding: .6rem; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent); transition: background .25s, color .25s; }
.tiefer span { display: grid; gap: .1rem; font-weight: 640; line-height: 1.25; }
.tiefer small { font-size: .68rem; font-weight: 680; letter-spacing: .15em; text-transform: uppercase; color: var(--akzent); }
.tiefer:hover { border-color: var(--akzent); translate: 0 2px; box-shadow: var(--schatten); }
.tiefer:hover svg { background: var(--akzent); color: var(--auf-akzent); }

/* Der Pfeil zum nächsten Raum: ein kleines Zeichen, das wippt (höchstens 5 px). */
.weiter {
  position: absolute; left: 50%; bottom: clamp(1rem, 3vh, 1.75rem); translate: -50% 0;
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--glas-rand); border-radius: 50%;
  background: var(--glas); color: var(--leise);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: color .2s, border-color .2s;
}
.weiter svg { animation: wippen 2.4s ease-in-out infinite; }
.weiter:hover { color: var(--akzent); border-color: var(--akzent); }
@keyframes wippen { 50% { translate: 0 5px; } }
@keyframes atmen { 50% { scale: 1.035; } }
@keyframes erscheinen { from { opacity: 0; translate: 0 .6rem; } }

.fuss {
  position: absolute; left: var(--rand); right: var(--rand); bottom: 1.3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem;
  font-size: .82rem; color: var(--leise);
}
.fuss p { display: flex; align-items: baseline; gap: .6rem; }
.fuss .marke__zeichen { font-size: 1rem; color: var(--tinte); }
.fuss__hoch { display: inline-flex; align-items: center; gap: .4rem; font-weight: 620; text-decoration: none; }
.fuss__hoch:hover { color: var(--akzent); }
.fuss__recht { gap: .2rem !important; }
.fuss__recht a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .3rem; text-underline-offset: .18em; }
.fuss__recht a:hover { color: var(--akzent); }

/* ── 6  Wegweiser: der Standort als Linie mit Haltestellen ──────────────── */
.weg {
  position: fixed; left: clamp(.7rem, 1.5vw, 1.4rem); top: 50%; z-index: 40;
  display: none; flex-direction: column; align-items: center; gap: .65rem;
  padding: .85rem .4rem .5rem;
  border: 1px solid var(--glas-rand); border-radius: 99px;
  background: var(--glas);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--schatten);
  opacity: 0; translate: -.8rem -50%; pointer-events: none;
  transition: opacity .45s, translate .45s var(--weich);
}
.weg.ist-da { opacity: 1; translate: 0 -50%; pointer-events: auto; }
.weg__liste { position: relative; touch-action: none; cursor: grab; }
.weg__liste ol { display: grid; margin: 0; padding: 0; list-style: none; }
.weg__liste::before, .weg__fuellung { content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px; }
.weg__liste::before { top: var(--erster, .75rem); bottom: var(--erster, .75rem); background: var(--linie); }
.weg__fuellung { top: var(--erster, .75rem); height: var(--fuellung, 0px); background: var(--akzent); }
.weg__perle {
  position: absolute; left: 50%; top: calc(var(--erster, .75rem) + var(--fuellung, 0px)); z-index: 2;
  width: .85rem; height: .85rem; margin: -.425rem 0 0 -.425rem; border-radius: 50%;
  background: var(--akzent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--akzent) 22%, transparent);
  pointer-events: none;
  transition: scale .25s;
}
.weg__halt a { position: relative; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.5rem; text-decoration: none; }
.weg__halt a::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--flaeche); border: 2px solid var(--linie-stark);
  transition: background .3s, border-color .3s, scale .3s;
}
.weg__halt.ist-vorbei a::before { background: var(--akzent); border-color: var(--akzent); }
.weg__halt.ist-hier a::before { border-color: var(--akzent); scale: 1.2; }
.weg__halt a:hover::before { border-color: var(--akzent); scale: 1.5; }
/* Die Antwort der Seite: der vorgeschlagene Raum trägt einen feinen Ring im Licht-Ton. */
.weg__halt.ist-vorschlag a::after {
  content: ""; position: absolute; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  border: 1.5px solid var(--licht);
  animation: ring 2.4s ease-in-out infinite;
}
@keyframes ring { 50% { scale: 1.25; opacity: .45; } }
.weg__name {
  position: absolute; left: calc(100% + .85rem); top: 50%; translate: -.4rem -50%;
  padding: .3rem .8rem; border-radius: 99px;
  background: var(--tinte); color: var(--grund);
  font-size: .8rem; font-weight: 620; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, translate .25s var(--weich);
}
.weg__halt a:hover .weg__name,
.weg__halt a:focus-visible .weg__name,
.weg.am-ziehen .ist-hier .weg__name { opacity: 1; translate: 0 -50%; }
.weg.am-ziehen .weg__liste { cursor: grabbing; }
.weg.am-ziehen .weg__perle { scale: 1.35; }
html.am-ziehen { scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; cursor: grabbing; }

/* Zahl im Ring: die Raumnummer rollt wie eine Aufzugsanzeige, der Ring zeigt den ganzen Weg. */
.zahl { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; }
.zahl > svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; stroke-width: 2.5; }
.zahl > svg circle:first-child { stroke: var(--linie); }
.zahl > svg circle:last-child { stroke: var(--akzent); stroke-dasharray: 100; stroke-dashoffset: 100; }
.walze {
  width: 1.7rem; height: 1.25rem; perspective: 150px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
}
.walze__rolle {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateX(calc(var(--k, 0) * var(--schritt)));
  transition: transform .9s var(--weich);
}
.walze__rolle b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: rotateX(calc(var(--n) * var(--schritt) * -1)) translateZ(var(--r));
}

@media (min-width: 1024px) and (hover: hover) {
  .weg { display: flex; }
  .raum { padding-left: max(var(--rand), 6rem); }
  .kopf { padding-left: clamp(.7rem, 1.5vw, 1.4rem); }
}

/* Schmal oder mit dem Finger: dieselbe Auskunft als Leiste unten. */
.leiste {
  position: fixed; left: 50%; bottom: max(.8rem, env(safe-area-inset-bottom)); z-index: 40;
  translate: -50% 1.2rem; opacity: 0; pointer-events: none;
  transition: opacity .4s, translate .4s var(--weich);
}
.leiste.ist-da { translate: -50% 0; opacity: 1; pointer-events: auto; }
.leiste summary {
  display: flex; align-items: center; gap: .7rem;
  padding: .3rem 1.1rem .3rem .3rem;
  border: 1px solid var(--glas-rand); border-radius: 99px;
  background: var(--glas);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--schatten);
  list-style: none; cursor: pointer; white-space: nowrap;
}
.leiste summary::-webkit-details-marker { display: none; }
.leiste__wo { display: grid; line-height: 1.2; }
.leiste__wo small { font-size: .62rem; font-weight: 680; letter-spacing: .15em; text-transform: uppercase; color: var(--akzent); }
.leiste__wo span { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; font-weight: 640; }
.leiste__liste {
  position: absolute; left: 50%; bottom: calc(100% + .6rem); translate: -50% 0;
  width: min(19rem, 88vw); max-height: 70vh; max-height: calc(100svh - 9.5rem); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  margin: 0; padding: .5rem; list-style: none;
  border: 1px solid var(--glas-rand); border-radius: 1.4rem;
  background: var(--flaeche); box-shadow: var(--schatten);
  animation: erscheinen .3s var(--weich);
}
.leiste__liste a { display: flex; align-items: baseline; gap: .8rem; min-height: 2.75rem; padding: .55rem .8rem; border-radius: .9rem; text-decoration: none; font-weight: 600; }
.leiste__liste a b { font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--leise); }
.leiste__liste .ist-hier a { background: var(--akzent-weich); color: var(--akzent); }
.leiste__liste .ist-hier a b { color: inherit; }
.leiste__liste .ist-vorschlag a::after { content: "Vorschlag"; margin-left: auto; font-size: .62rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--licht); }
@media (min-width: 1024px) and (hover: hover) { .leiste { display: none; } }
@media not ((min-width: 1024px) and (hover: hover)) {
  .kopf { transition: translate .4s var(--weich), opacity .3s; }
  .kopf.ist-weg { translate: 0 -130%; opacity: 0; pointer-events: none; }
  .kopf.ist-weg > * { pointer-events: none; }
  html.js .raum:not(.raum--auftakt) .weiter { display: none; }
  html.js .raum { padding-bottom: 6.5rem; }
  html.js .fuss { position: static; width: min(100%, 72rem); margin: 3rem auto 0; }   /* im Fluss: überlagert nie den Raum */
}

/* Auf großen Bildschirmen rastet jeder Raum sanft ein – der Browser behält das Scrollen. */
@media (min-width: 1024px) and (min-height: 700px) and (hover: hover) {
  html.js { scroll-snap-type: y proximity; }
  html.js .raum { scroll-snap-align: start; }
}

/* ── 7  Tiefe: das Blatt ────────────────────────────────────────────────── */
/* Ohne Skript steht die Tiefe als gewöhnlicher Text unter ihrem Raum. */
.mehr { width: min(100%, 46rem); margin: clamp(2.5rem, 6vh, 4rem) auto 0; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--linie); border-radius: 1.7rem; background: var(--flaeche); }
html.js .raum > .mehr { display: none; }
html.js .raum > .mehr.ist-offen { display: block; }   /* Browser ohne <dialog>: die Tiefe klappt an Ort und Stelle auf */
.mehr__kopf { display: grid; gap: 1rem; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.mehr__kopf h3 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 640; letter-spacing: -.04em; line-height: 1.06; text-wrap: balance; }
.mehr__text { max-width: 39rem; font: 400 1.1rem/1.75 var(--lese); }
.mehr__text > * + * { margin-top: 1.05em; }
.mehr__text h4 { margin-top: 2.4em; font: 660 1.22rem/1.3 var(--sans); letter-spacing: -.015em; }
.mehr__text h4:first-child { margin-top: 0; }
.mehr__text strong { font-weight: 700; }
.mehr__text ul, .mehr__text ol { padding-left: 1.3em; }
.mehr__text li + li { margin-top: .6em; }
.mehr__text li::marker { color: var(--akzent); font-family: var(--sans); font-weight: 650; }
.merksatz { margin-top: 2.4em !important; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--akzent); }
.merksatz p { font: italic 400 clamp(1.35rem, 2.6vw, 1.75rem)/1.35 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.beleg {
  display: inline-block; padding: .1em .42em; border-radius: .5em;
  background: var(--akzent-weich); color: var(--akzent);
  font: 680 .68em/1.3 var(--sans); text-decoration: none; vertical-align: .22em;
  transition: background .2s, color .2s;
}
.beleg:hover, .beleg[aria-expanded="true"] { background: var(--akzent); color: var(--auf-akzent); }
.tabelle { overflow-x: auto; margin-top: 1.4em; border: 1px solid var(--linie); border-radius: 1rem; }
.tabelle table { width: 100%; min-width: 34rem; border-collapse: collapse; font: 400 .9rem/1.5 var(--sans); }
.tabelle th, .tabelle td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font-size: .7rem; font-weight: 680; letter-spacing: .13em; text-transform: uppercase; color: var(--leise); background: var(--flaeche-2); }
.tabelle tbody th { font-weight: 660; }
.tabelle tbody tr:last-child > * { border-bottom: 0; }
.karte { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 0 1.4rem; padding: .4rem 1.2rem; border: 1px solid var(--linie); border-radius: 1rem; background: var(--flaeche-2); font: 400 .95rem/1.5 var(--sans); }
.karte dt, .karte dd { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.karte dt { font-weight: 680; color: var(--akzent); }
.karte dt:last-of-type, .karte dd:last-of-type { border-bottom: 0; }
.quellen { margin-top: 3em !important; padding-top: 1.6em; border-top: 1px solid var(--linie); font: 400 .92rem/1.55 var(--sans); }
.quellen h4 { margin-top: 0; }
.quellen ol { margin-top: 1rem; }
.quellen li { padding-left: .3rem; scroll-margin-top: 6rem; }
.quellen li + li { margin-top: 1.1em; }
.quellen cite { display: block; font-style: normal; font-weight: 640; }
.quellen span { display: block; color: var(--leise); }
.quellen a { color: var(--akzent); overflow-wrap: anywhere; text-underline-offset: .2em; }
.quellen li:target cite { color: var(--akzent); }

/* Mit Skript öffnet sich die Tiefe als Blatt über dem Raum. */
dialog.blatt {
  --bogen-oben: clamp(.75rem, 6vh, 3.75rem); --bogen-breite: min(100% - 1.5rem, 57rem);   /* Blatt und Rahmen des Eintauchens teilen diese Maße */
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: inherit;
  overscroll-behavior: contain; touch-action: pinch-zoom;   /* Wischen neben dem Blatt bewegt nichts; vergrößern bleibt möglich */
}
/* Solange ein Blatt offen ist, steht die Seite dahinter still. Der Rand für die Bildlaufleiste bleibt, damit nichts springt. */
html.blatt-offen { overflow: hidden; scrollbar-gutter: stable; }
html.blatt-offen body { overflow: hidden; }
dialog.blatt::backdrop {
  background: color-mix(in oklab, var(--grund) 55%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  animation: schleier .45s ease;
}
@keyframes schleier { from { opacity: 0; } }
.blatt__bogen {
  position: absolute; left: 50%; top: var(--bogen-oben); bottom: 0; translate: -50% 0;
  width: var(--bogen-breite);
  overflow: auto; overscroll-behavior: contain; scroll-behavior: auto; touch-action: pan-x pan-y pinch-zoom;
  border: 1px solid var(--glas-rand); border-bottom: 0; border-radius: 1.9rem 1.9rem 0 0;
  background: var(--flaeche);
  box-shadow: 0 -10px 60px rgb(20 18 60 / .18);
  animation: blatt-auf .6s var(--weich);
}
@keyframes blatt-auf { from { opacity: 0; translate: -50% 9%; } }
dialog.blatt.geht .blatt__bogen { opacity: 0; translate: -50% 6%; transition: opacity .25s, translate .25s ease-in; }
dialog.blatt.geht::backdrop { opacity: 0; transition: opacity .25s; }
.blatt__leiste {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem .8rem .7rem clamp(1.25rem, 5vw, 3.5rem);
  background: color-mix(in oklab, var(--flaeche) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.blatt__bogen:focus { outline: none; }   /* der Bogen bekommt beim Öffnen den Fokus, damit die Pfeiltasten ihn rollen – ein Rahmen ums ganze Blatt sagt nichts */
.blatt__leiste .knopf { flex: none; white-space: nowrap; }
.blatt__wo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 3 auto; min-width: 0; }
/* Der jetzige Abschnitt hinter dem Raum: in gewöhnlicher Schrift, beim Ziehen am Lot in der Akzentfarbe. */
.blatt__wo .blatt__station { display: inline-block; flex: 0 1 auto; font-size: .9rem; font-weight: 620; letter-spacing: 0; text-transform: none; color: var(--tinte); transition: color .2s; }
.blatt__station:empty { display: none !important; }
.blatt__station::before { content: "›"; margin-right: .5rem; color: var(--akzent); font-weight: 700; }
dialog.blatt:has(.lot.am-ziehen) .blatt__station { color: var(--akzent); }
@media (max-width: 600px) {   /* schmal: nur der Abschnitt – und „Zur Oberfläche“ als Pfeil, damit der Name Platz hat */
  dialog.blatt[data-erleben] .blatt__wo > span:first-of-type { display: none; }
  .blatt__station::before { display: none; }
  dialog.blatt[data-erleben] .blatt__zu { width: 2.5rem; padding: 0; justify-content: center; }
  dialog.blatt[data-erleben] .blatt__zu span { display: none; }
}
.blatt__wo { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: .76rem; font-weight: 680; letter-spacing: .15em; text-transform: uppercase; color: var(--leise); }
.blatt__wo svg { color: var(--akzent); }
.blatt__fortschritt { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--akzent); transform-origin: left; scale: var(--gelesen, 0) 1; }
.blatt .mehr { width: auto; margin: 0; padding: clamp(1.75rem, 5vh, 3rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 9vh, 5rem); border: 0; border-radius: 0; background: none; }
.blatt .mehr__kopf .kicker { display: none; }
.blatt__ende { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--linie); }

/* ── 7b  Erleben in der Tiefe (<article class="mehr" data-erleben>) ──────── */
/* Das Licht des Raums reicht ins Blatt: oben ein Hauch seines Tons, dahinter wird es dichter, je tiefer man liest. */
dialog.blatt[data-erleben] .mehr { background: linear-gradient(oklch(var(--himmel-hell) var(--himmel-satt) var(--ton) / .42), transparent 24rem); }

/* Eintauchen (je Tiefe einmal): Rahmen in der Form des Blatts stehen hintereinander im Raum, das Blatt selbst ist der hinterste.
   Dieselbe Kamera fährt auf alle zu – die vorderen ziehen vorbei, der letzte kommt genau an seinem Platz an und füllt sich.
   Rahmen und Blatt teilen Perspektive, Fluchtpunkt, Weg (1520px = 8 × 190px) und Zeitkurve; deshalb passt alles ohne Schnitt. */
dialog.blatt.taucht, .eintauchen { perspective: 820px; perspective-origin: 50% calc((100% + var(--bogen-oben)) / 2); }
.eintauchen { position: absolute; inset: 0; z-index: -1; display: none; overflow: hidden; pointer-events: none; }
dialog.blatt.taucht .eintauchen { display: block; animation: tauch-schleier 1.7s ease forwards; }
.eintauchen i {
  position: absolute; left: 50%; top: var(--bogen-oben); bottom: 0; translate: -50% 0; width: var(--bogen-breite);
  border: 1.5px solid color-mix(in oklab, var(--akzent) 55%, transparent); border-radius: 1.9rem;
  background: color-mix(in oklab, var(--akzent) 3%, transparent);
  box-shadow: inset 0 0 44px color-mix(in oklab, var(--akzent) 16%, transparent);
  --z0: calc(var(--t) * -190px);
  transform: translateZ(var(--z0));
  animation: rahmen-tauchen 1.7s cubic-bezier(.62, 0, .25, 1) forwards;
}
@keyframes rahmen-tauchen { to { transform: translateZ(calc(var(--z0) + 1520px)); } }
@keyframes tauch-schleier { 0% { opacity: 0; } 12% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; } }
dialog.blatt.taucht .blatt__bogen { animation: bogen-tauchen 1.7s cubic-bezier(.62, 0, .25, 1) both; scrollbar-color: transparent transparent; }
@keyframes bogen-tauchen {
  0% { transform: translateZ(-1520px); opacity: 0; background-color: transparent; border: 1.5px solid color-mix(in oklab, var(--akzent) 70%, transparent); border-radius: 1.9rem; box-shadow: none; }
  12% { opacity: 1; }
  70% { background-color: color-mix(in oklab, var(--flaeche) 20%, transparent); border: 1.5px solid color-mix(in oklab, var(--akzent) 70%, transparent); border-radius: 1.9rem; }
  100% { transform: translateZ(0); opacity: 1; background-color: var(--flaeche); }
}
dialog.blatt.taucht .blatt__leiste, dialog.blatt.taucht .blatt__inhalt { animation: inhalt-da .45s ease 1.3s backwards; }
@keyframes inhalt-da { from { opacity: 0; } }
dialog.blatt.taucht .lot { animation-delay: 1.7s; }
dialog.blatt.aufgetaucht .blatt__bogen, dialog.blatt.aufgetaucht .lot { animation: none; }   /* nach dem Zoom nichts noch einmal abspielen */

/* Licht im Dunkeln: der Fokuspunkt leuchtet mit – am Lot als Lesestelle und von unten, je tiefer man liest. */
dialog.blatt[data-erleben] {
  background:
    radial-gradient(60vmax 40vmax at 50% 118%, color-mix(in oklab, var(--licht) calc(var(--gelesen, 0) * 26%), transparent), transparent 70%),
    radial-gradient(95vmax 85vmax at 50% 125%, oklch(var(--himmel-hell) calc(var(--himmel-satt) * 2) var(--ton) / calc(.12 + var(--gelesen, 0) * .5)), transparent 72%);
}
.blatt__wo svg circle { transition: opacity .3s; }

/* Ankommen: was man erreicht, erscheint – gestaffelt, einmal. */
html:not(.ruhig) .blatt [data-erleben] .kommt { transition: opacity .8s ease, translate .8s var(--weich); transition-delay: calc(var(--k, 0) * 70ms); }
html:not(.ruhig) .blatt [data-erleben] .kommt:not(.ist-da, .merksatz) { opacity: 0; translate: 0 .9rem; }

/* Das Lot: die ganze Tiefe als Bahn am linken Rand des Blatts – Anzeige und Regler zugleich.
   Punkte an der Stelle ihrer Abschnitte, ein Raum-Rechteck um den jetzigen, das Licht wandert mit der Lesestelle.
   Die Trefferfläche ist breit und reicht über den Rand neben dem Blatt: Wer knapp danebentippt, schließt nicht das Blatt.
   Den Lesestrich oben haben erlebte Tiefen nicht – das Lot sagt dasselbe. */
dialog.blatt[data-erleben] .blatt__fortschritt { display: none; }
dialog.blatt[data-erleben] .mehr, dialog.blatt[data-erleben] .blatt__leiste { padding-left: max(3.4rem, clamp(1.25rem, 5vw, 3.5rem)); }   /* Platz für das Lot */
.lot {
  display: none; position: absolute; z-index: 4; top: 50%; translate: 0 -50%;
  left: max(0px, calc((100% - var(--bogen-breite)) / 2 - 2.5rem)); right: calc(100% - (100% - var(--bogen-breite)) / 2 - 2.95rem); padding: 1rem 0;
  touch-action: none; cursor: ns-resize; user-select: none; -webkit-user-select: none;
  animation: lot-da .6s ease .45s backwards;
}
@keyframes lot-da { from { opacity: 0; translate: -.5rem -50%; } }
dialog.blatt[data-erleben] .lot:not([hidden]) { display: block; }
dialog.blatt.geht .lot { opacity: 0; transition: opacity .2s; }
.lot__bahn { position: relative; width: 3.7rem; margin-left: auto; height: clamp(11rem, 46vh, 24rem); }   /* die Linie steht 1,1rem im Blatt, die Fläche reicht links darüber hinaus */
.lot ol { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.lot li { position: absolute; left: 50%; top: calc(var(--x, 0) * 100%); translate: -50% -50%; }
.lot__schnur { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--linie); }
.lot__schnur i { position: absolute; inset: 0; border-radius: 1px; background: var(--akzent); transform-origin: top; scale: 1 var(--gelesen, 0); }
.lot__raum {
  position: absolute; left: 50%; width: 1.25rem; margin-left: -.625rem; border-radius: .625rem;
  top: calc(var(--von, 0) * 100% - .55rem); height: max(1.1rem, calc((var(--bis, 0) - var(--von, 0)) * 100% + .2rem));
  border: 1.5px solid color-mix(in oklab, var(--akzent) 50%, transparent); background: color-mix(in oklab, var(--akzent) 12%, transparent);
  opacity: 0; transition: top .5s var(--weich), height .5s var(--weich), opacity .3s;
}
.lot.hat-raum .lot__raum { opacity: 1; }
.lot button { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; padding: 0; border: 0; border-radius: 50%; background: none; pointer-events: none; }
.lot button:focus-visible { outline: none; }
.lot button:focus-visible b { border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--akzent) 45%, transparent); }   /* nur mit der Tastatur */
.lot b { width: .5rem; height: .5rem; border-radius: 50%; background: var(--flaeche); border: 1.5px solid var(--linie-stark); transition: background .35s, border-color .35s, box-shadow .35s; }
.lot .ist-vorbei b, .lot .ist-hier b { background: var(--akzent); border-color: var(--akzent); }
.lot__licht {
  position: absolute; left: 50%; top: calc(var(--gelesen, 0) * 100%); width: .75rem; height: .75rem; margin: -.375rem 0 0 -.375rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #effff8, var(--licht-hell) 40%, var(--licht));
  box-shadow: 0 0 10px 3px color-mix(in oklab, var(--licht) 50%, transparent); pointer-events: none;
}
.lot.am-ziehen .lot__licht { scale: 1.25; }
@media (max-width: 420px) {
  .lot__bahn { margin-left: 0; width: 100%; }
  dialog.blatt[data-erleben] .mehr, dialog.blatt[data-erleben] .blatt__leiste { padding-left: 3.1rem; }
}

/* Randbild: eine kleine Linienzeichnung je Station. Breit steht sie im rechten Rand, schmal fließt der Text um sie herum. */
.randbild { float: right; width: 8rem; margin: .2rem -10rem 0 1rem; display: grid; gap: .5rem; justify-items: center; font: 600 .72rem/1.35 var(--sans); letter-spacing: .01em; color: var(--leise); text-align: center; text-wrap: balance; }
.randbild svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; stroke-width: 1.6; }
.randbild .r-leise { stroke: color-mix(in oklab, var(--tinte) 36%, transparent); }
.randbild .r-akzent { stroke: var(--akzent); stroke-width: 2; }
.randbild .r-fuell { fill: var(--akzent-weich); stroke: none; }
.randbild .r-text { fill: var(--akzent); stroke: none; font: 700 12px var(--sans); }
.randbild [data-zug] { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; transition: stroke-dashoffset 1.1s var(--weich) calc(var(--z, 0) * 110ms + 250ms); }
.randbild .r-auf { opacity: 0; transition: opacity .9s ease calc(var(--z, 0) * 110ms + 250ms); }
.randbild .r-seite { transition: opacity 1s ease 1.4s; }
.randbild.ist-da [data-zug], html.ruhig .randbild [data-zug] { stroke-dashoffset: 0; }
.randbild.ist-da .r-auf, html.ruhig .randbild .r-auf { opacity: 1; }
.randbild.ist-da .r-seite, html.ruhig .randbild .r-seite { opacity: .2; }
.randbild.ist-da .r-schwebt { animation: schweben 7s ease-in-out 3.4s infinite; }
@keyframes schweben { 50% { transform: translateY(-3px); } }
.randbild figcaption { max-width: 8rem; }
.randbild .r-punkt { fill: var(--akzent); stroke: none; }
.randbild .r-warn { stroke: var(--warn); stroke-width: 2; }
.randbild .r-perle { fill: var(--akzent); stroke: none; }
.randbild.ist-da .r-perle { animation: perle 9s linear 2.4s infinite alternate; }
@keyframes perle { to { transform: translateX(70px); } }
.randbild .r-verblasst { transition: opacity 1s ease 2s; }
.randbild.ist-da .r-verblasst, html.ruhig .randbild .r-verblasst { opacity: 0; }
.randbild .r-hebt { transition: transform 1.2s var(--weich) 1.9s, opacity 1.2s ease 1.9s; }
.randbild.ist-da .r-hebt, html.ruhig .randbild .r-hebt { transform: translateY(calc(var(--h, 0) * -1px)); opacity: .3; }
.randbild .r-sammeln { fill: var(--akzent); stroke: none; opacity: 0; transform: translate(calc(var(--dx, 0) * 1px), calc(var(--dy, 0) * 1px)); transition: transform 1.5s var(--weich) calc(var(--z, 0) * 90ms + 250ms), opacity .7s ease calc(var(--z, 0) * 90ms + 250ms); }
.randbild.ist-da .r-sammeln, html.ruhig .randbild .r-sammeln { opacity: 1; transform: none; }
@media (max-width: 1099px) {
  .randbild { width: clamp(4.6rem, 20vw, 6.5rem); margin: .35rem 0 .4rem 1.1rem; }
  .randbild figcaption { display: none; }
}

/* Einstreuungen: Probe und Gegenprobe stehen im Lesetext, sprechen aber die Sprache der Räume. */
.mehr__text .einstreu { display: grid; gap: 1rem; margin: 2em 0 !important; padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid var(--linie); border-radius: 1.4rem; background: var(--flaeche-2); font-family: var(--sans); }
.einstreu__kopf, .gegenprobe__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 1rem; }
.einstreu .schalter button { font-size: .85rem; }
.einstreu__urteil { padding-left: .9rem; border-left: 2px solid var(--licht); font-size: .95rem; line-height: 1.45; color: var(--leise); }
.wechsel__text { transition: opacity .2s; }
.wechsel.wechselt .wechsel__text { opacity: 0; }
.mehr__text .gegenprobe__ebenen { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.mehr__text .gegenprobe__ebenen li {
  display: grid; gap: .3rem; margin: 0 0 0 calc(var(--t, 0) * clamp(.7rem, 3vw, 1.7rem));
  padding: .8rem 1rem; border: 1px solid var(--linie); border-radius: 1rem;
  background: color-mix(in oklab, var(--flaeche) calc(100% - var(--t, 0) * 30%), var(--flaeche-2));
  box-shadow: 0 calc(6px - var(--t, 0) * 2px) calc(18px - var(--t, 0) * 5px) rgb(30 28 80 / .06);
  transition: border-color .4s, background-color .4s;
}
.gegenprobe__ebenen p { font-size: .98rem; line-height: 1.45; transition: opacity .2s; }
.gegenprobe__ebenen li:first-child p { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
.gegenprobe .schild { transition: color .4s, opacity .2s; }
.gegenprobe__urteil { padding-left: .9rem; border-left: 2px solid var(--licht); font-size: .95rem; line-height: 1.45; color: var(--leise); transition: opacity .2s, border-color .4s; }
.gegenprobe[data-zustand="versteckt"] [data-hebt] { border-color: var(--warn); background: color-mix(in oklab, var(--warn) 8%, var(--flaeche)); }
.gegenprobe[data-zustand="versteckt"] [data-hebt] .schild { color: var(--warn); }
.gegenprobe[data-zustand="versteckt"] li:first-child p { text-decoration: underline wavy color-mix(in oklab, var(--warn) 70%, transparent); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.gegenprobe[data-zustand="versteckt"] .gegenprobe__urteil { border-color: var(--warn); }

.mehr__text .probe { gap: .85rem; background: color-mix(in oklab, var(--akzent-weich) 55%, var(--flaeche)); }
.probe__wahl { counter-reset: weg; }
.probe__weg:not(:has(svg))::before {                                /* Wege ohne Zeichen bekommen einen Buchstaben */
  counter-increment: weg; content: counter(weg, upper-alpha);
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--akzent-weich); color: var(--akzent); font-size: .85rem; font-weight: 700;
  transition: background .25s, color .25s;
}
.probe__weg[aria-pressed="true"]::before { background: var(--akzent); color: var(--auf-akzent); }
.probe__frage { font-size: 1.12rem; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.probe__wahl { display: grid; gap: .55rem; }
.probe__weg {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem;
  width: 100%; padding: .5rem 1.1rem .5rem .5rem; text-align: left;
  border: 1px solid var(--linie); border-radius: 1.2rem; background: var(--flaeche);
  font-weight: 640; line-height: 1.3;
  transition: border-color .25s, translate .25s var(--weich), box-shadow .25s;
}
.probe__weg span { padding: .35rem 0 .6rem; }   /* unten Platz für den Strich, auch bei zwei Zeilen */
.probe__weg svg { width: 2.3rem; height: 2.3rem; padding: .55rem; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent); transition: background .25s, color .25s; }
.probe__weg:hover { border-color: var(--akzent); translate: 0 1px; }
.probe__weg[aria-pressed="true"] { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.probe__weg[aria-pressed="true"] svg { background: var(--akzent); color: var(--auf-akzent); }
.probe__weg i { position: absolute; left: 3.6rem; right: 1.1rem; bottom: .4rem; height: 3px; overflow: hidden; border-radius: 2px; background: var(--linie); opacity: 0; transition: opacity .4s; }
.probe__weg i::after { content: ""; position: absolute; inset: 0; background: var(--akzent); transform-origin: left; scale: 0 1; transition: scale 1.1s var(--weich) .15s; }
.probe.ist-beantwortet .probe__weg i { opacity: 1; }
.probe.ist-beantwortet .probe__weg i::after { scale: calc(var(--faehrte, 0) / 5) 1; }
.probe.ist-beantwortet [data-richtig] i::after { background: var(--licht); }
.probe__antwort { font-size: .98rem; line-height: 1.45; }
.probe__antwort:empty { display: none; }
.probe__legende { font-size: .8rem; line-height: 1.4; color: var(--leise); }
.probe:not(.ist-beantwortet) .probe__legende { display: none; }

/* Live: was die Seite in diesem Moment wirklich liest oder weiß – keine Behauptung, sondern der echte Wert. */
.live__liste { display: grid; gap: .45rem; margin: 0; }
.live__liste > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .8rem; align-items: baseline; padding: .55rem .8rem; border-radius: .8rem; background: var(--flaeche); }
.live__liste dt { font-size: .72rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.live__liste dd { margin: 0; font-weight: 620; line-height: 1.4; }
.live__satz { padding: .8rem 1rem; border-radius: .9rem; background: var(--flaeche); font-size: 1.05rem; font-weight: 620; line-height: 1.45; }
.live__puls { display: inline-flex; align-items: center; gap: .45rem; color: var(--akzent); }
.live__puls::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--licht); box-shadow: 0 0 0 0 var(--licht); animation: puls 2.4s ease-out infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 .4rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 420px) { .live__liste > div { grid-template-columns: 1fr; gap: .15rem; } }

/* Ton: derselbe Hinweis, einmal als Begleiter, einmal als Absender */
.ton__hinweis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; padding: .9rem 1rem; border: 1px solid var(--glas-rand); border-radius: 1.1rem; background: var(--flaeche); box-shadow: var(--schatten); }
.ton__hinweis p { flex: 1 1 14rem; font-size: 1rem; line-height: 1.45; }
.ton__knopf { pointer-events: none; }
.ton[data-zustand="absender"] .ton__hinweis { border-color: var(--warn); }
.ton[data-zustand="absender"] .ton__knopf { background: var(--warn); border-color: var(--warn); color: var(--flaeche); }
.ton[data-zustand="absender"] .einstreu__urteil { border-color: var(--warn); }

/* Mensch und Maschine: dieselbe Aussage in zwei Formen */
.zwei__text { padding: .9rem 1rem; border-radius: .9rem; background: var(--flaeche); font: 400 1.08rem/1.5 var(--lese); }
.zwei[data-zustand="maschine"] .zwei__text { font: 500 .84rem/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--akzent); }

/* Maße zum Ansehen: dieselbe Szene nach Maß, zu schnell, zu weit */
.mass__szene { position: relative; height: 9rem; overflow: hidden; border-radius: 1rem; background: var(--flaeche); --dauer: 7s; --gross: 1.06; --weg: 4px; --zeit: 1.6s; }
.mass[data-zustand="schnell"] .mass__szene { --dauer: 1.6s; --zeit: .35s; }
.mass[data-zustand="weit"] .mass__szene { --gross: 1.32; --weg: 20px; }
.mass__flaeche { position: absolute; left: 50%; top: 50%; width: 6.5rem; height: 6.5rem; margin: -3.25rem 0 0 -3.25rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--akzent-weich), color-mix(in oklab, var(--akzent) 30%, var(--akzent-weich))); animation: mass-atmen var(--dauer) ease-in-out infinite; }
.mass__zeichen { position: absolute; right: 1.4rem; bottom: 1.2rem; color: var(--akzent); animation: mass-wippen var(--zeit) ease-in-out infinite alternate; }
.mass__zeichen svg { width: 1.6rem; height: 1.6rem; }
@keyframes mass-atmen { 50% { scale: var(--gross); } }
@keyframes mass-wippen { to { translate: 0 var(--weg); } }
.mass[data-zustand="schnell"] .einstreu__urteil, .mass[data-zustand="weit"] .einstreu__urteil { border-color: var(--warn); }
.mass__ruhig { display: none; }
html.ruhig .mass__ruhig { display: block; }

/* Der Merksatz kommt zuletzt: erst die Linie, dann der Satz – und man kann ihn mitnehmen. */
.blatt [data-erleben] .merksatz { position: relative; border-left-color: transparent; }
.blatt [data-erleben] .merksatz::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--akzent); transform-origin: top; transition: scale 1s var(--weich) .2s; }
.blatt [data-erleben] .merksatz p { transition: opacity .9s ease .65s, translate .9s var(--weich) .65s; }
html:not(.ruhig) .blatt [data-erleben] .merksatz:not(.ist-da)::before { scale: 1 0; }
html:not(.ruhig) .blatt [data-erleben] .merksatz:not(.ist-da) p { opacity: 0; translate: .7rem 0; }
.mehr__text .fund { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.1rem; padding-left: 1.4rem; font: 400 .86rem/1.4 var(--sans); color: var(--leise); }
html:not(.ruhig) .blatt [data-erleben] .fund.kommt { transition-delay: 1.2s; }
.fund [data-mitnehmen] svg { transition: fill .3s, scale .3s var(--weich); }
.fund [data-mitnehmen][aria-pressed="true"] svg { fill: currentColor; scale: 1.1; }

/* ── 8  Der Tipp: ein Hinweis, der an seinem Wort hängt ─────────────────── */
.tipp {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: max-content; max-width: min(23rem, calc(100vw - 1.5rem));
  padding: .7rem 1rem;
  border: 1px solid var(--glas-rand); border-radius: 1.1rem;
  background: color-mix(in oklab, var(--flaeche) 93%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--schatten);
  font: 500 .9rem/1.45 var(--sans); color: var(--tinte);
  opacity: 0; visibility: hidden; translate: 0 5px;
  transition: opacity .2s, translate .2s var(--weich), visibility .2s;
}
.tipp.ist-da { opacity: 1; visibility: visible; translate: 0 0; }
.tipp.ist-kurz { border-radius: 99px; padding: .45rem 1rem; font-weight: 600; }
.tipp::after { content: ""; position: absolute; left: var(--faden, 50%); top: 100%; width: 1.5px; height: 13px; margin-left: -.75px; background: var(--akzent); }
.tipp::before { content: ""; position: absolute; left: var(--faden, 50%); top: calc(100% + 13px); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--akzent); }
.tipp.ist-unten::after { top: auto; bottom: 100%; }
.tipp.ist-unten::before { top: auto; bottom: calc(100% + 13px); margin: 0 0 -3.5px -3.5px; }
.tipp cite { display: block; font-style: normal; font-weight: 650; }
.tipp span { display: block; margin-top: .3rem; color: var(--leise); }
.tipp a { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; color: var(--akzent); font-weight: 640; text-underline-offset: .2em; overflow-wrap: anywhere; }
.tipp a + a { margin-left: .2rem; }

/* ── 9  Die Beispiele der Räume ─────────────────────────────────────────── */

/* 01 Auftakt · das Tor: Rahmen hinter Rahmen, am Ende das Licht. */
.tor {
  width: min(100%, 30rem); aspect-ratio: 1 / 1.06; margin-inline: auto;
  perspective: 820px; perspective-origin: var(--px, 50%) var(--py, 46%);
  transition: perspective-origin .5s var(--weich);
}
.tor__raum { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: tor-schweben 18s ease-in-out infinite alternate; }
@keyframes tor-schweben { from { transform: rotateX(2.5deg) rotateY(-6deg); } to { transform: rotateX(-2deg) rotateY(6deg); } }
.tor__raum i {
  position: absolute; inset: 0; border-radius: 2.4rem;
  border: 1.5px solid color-mix(in oklab, var(--akzent) 52%, transparent);
  background: color-mix(in oklab, var(--akzent) 3%, transparent);
  box-shadow: inset 0 0 calc(34px + var(--t) * 6px) color-mix(in oklab, var(--akzent) calc(20% + var(--t) * 7%), transparent), inset 0 1px 0 rgb(255 255 255 / .25);
  transform: translateZ(calc(var(--t) * -190px));
}
.tor__licht {
  position: absolute; left: 27%; top: 27%; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #effff8, var(--licht-hell) 34%, var(--licht) 72%);
  box-shadow: 0 0 90px 34px color-mix(in oklab, var(--licht) 50%, transparent);
  transform: translateZ(-1120px);
  animation: atmen 6s ease-in-out infinite;
}
.inhalt { width: min(100%, 46rem); margin: 3rem auto 0; }
.inhalt h2 { font-size: 1.4rem; letter-spacing: -.02em; }
.inhalt ol { margin-top: 1rem; padding-left: 1.4rem; columns: 2; }
.inhalt li { padding: .2rem 0; }

/* 02 Begriff und 11 Fundament · eine Auswahl, drei Felder */
html.js .wahl__felder > div:not(.ist-da) { display: none; }
html.js:not(.ruhig) .wahl__felder > .ist-da { animation: erscheinen .5s var(--weich); }
.wahl__felder { display: grid; gap: 1.4rem; }
.wahl__felder strong { display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 640; letter-spacing: -.03em; }
.wahl__felder p { max-width: 31rem; margin-top: .5rem; color: var(--leise); font-size: 1.08rem; line-height: 1.55; }
.wahl--buchstaben .wahl__knoepfe { display: flex; align-items: baseline; gap: clamp(.1rem, .6vw, .5rem); }
.wahl--buchstaben button {
  position: relative; padding: 0 .05em .08em; border: 0; background: none;
  font-size: clamp(5.5rem, 14vw, 11.5rem); font-weight: 660; letter-spacing: -.06em; line-height: .88;
  color: color-mix(in oklab, var(--tinte) 20%, transparent);
  transition: color .5s, translate .5s var(--weich);
}
.wahl--buchstaben button i { font: italic 400 1.06em var(--serif); letter-spacing: -.02em; padding-right: .06em; }
.wahl--buchstaben button:hover { color: color-mix(in oklab, var(--tinte) 50%, transparent); }
.wahl--buchstaben button[aria-pressed="true"] { color: var(--tinte); translate: 0 -.04em; }
.wahl--buchstaben button[data-zeig="n"][aria-pressed="true"] { color: var(--akzent); }
.wahl--buchstaben button::after {
  content: ""; position: absolute; left: .07em; right: .09em; bottom: -.06em; height: 5px; border-radius: 5px;
  background: var(--akzent); scale: 0 1; transform-origin: left;
  transition: scale .5s var(--weich);
}
.wahl--buchstaben button[aria-pressed="true"]::after { scale: 1 1; }
.wahl--buchstaben .wahl__felder { margin-top: clamp(1.5rem, 4vh, 2.5rem); min-height: 9rem; }
.wahl--status .wahl__felder { margin-top: 1.5rem; min-height: 10.5rem; }
.wahl--status .wahl__felder strong { display: none; }
html:not(.js) .wahl--status .wahl__felder strong { display: block; }
.wahl--status .wahl__felder p { color: var(--tinte); font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; margin-top: 0; }

/* 03 Zu Hause · was der Browser mitteilt */
.mitgebracht__liste { margin: .6rem 0 1.3rem; }
.mitgebracht__liste > div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--linie); }
.mitgebracht__liste dt { font-size: .86rem; color: var(--leise); padding-top: .12rem; }
.mitgebracht__liste dd { font-weight: 640; line-height: 1.35; }
.mitgebracht__wahl { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }

/* 04 Ort · dieselbe Miniaturseite, stufenlos vom Dokument (--m: 0) zum Ort (--m: 1) */
.wandel { display: grid; gap: 1.1rem; }
.wandel__seite {
  position: relative; aspect-ratio: 16 / 10.5; overflow: hidden;
  border: 1px solid var(--linie); border-radius: calc(.6rem + var(--m) * 1.1rem);
  background: var(--flaeche); box-shadow: var(--schatten);
}
.wandel__seite i { position: absolute; display: block; border-radius: 3px; }
.w-bild {
  left: calc(6% * (1 - var(--m))); top: calc(21% * (1 - var(--m)));
  width: calc(40% + 60% * var(--m)); height: calc(34% + 66% * var(--m));
  border-radius: calc(4px * (1 - var(--m))) !important;
  background: linear-gradient(150deg,
    color-mix(in oklab, var(--akzent) calc(var(--m) * 92%), var(--linie)),
    color-mix(in oklab, var(--licht) calc(var(--m) * 62%), var(--flaeche-2)));
}
.w-leiste {
  left: calc(57% * var(--m)); top: calc(7% * var(--m));
  width: calc(100% - 63% * var(--m)); height: calc(12% - 2% * var(--m));
  border-radius: calc(99px * var(--m)) !important;
  background: color-mix(in oklab, #fff calc(var(--m) * 26%), var(--flaeche-2));
  border-bottom: 1px solid color-mix(in oklab, var(--linie) calc((1 - var(--m)) * 100%), transparent);
  display: flex !important; justify-content: flex-end; align-items: center; gap: 5%; padding-right: 6%;
}
.w-leiste b { width: 14%; height: 18%; border-radius: 9px; background: color-mix(in oklab, #fff calc(var(--m) * 100%), var(--linie-stark)); }
.w-logo {
  left: calc(4% + 4% * var(--m)); top: calc(3.6% + 5.4% * var(--m)); width: 11%; height: 5%;
  background: color-mix(in oklab, #fff calc(var(--m) * 100%), var(--tinte));
}
.w-titel {
  left: calc(52% - 44% * var(--m)); top: calc(22% + 13% * var(--m));
  width: calc(34% + 20% * var(--m)); height: calc(5% + 6% * var(--m));
  background: color-mix(in oklab, #fff calc(var(--m) * 100%), var(--tinte));
}
.w-titel--2 { top: calc(30% + 20% * var(--m)); width: calc(24% + 14% * var(--m)); }
.w-text {
  left: calc(52% - 44% * var(--m)); top: calc(41% + 26% * var(--m)); width: calc(40% - 4% * var(--m)); height: 2.4%;
  background: color-mix(in oklab, #fff calc(var(--m) * 78%), var(--linie-stark)); opacity: .8;
}
.w-text--2 { top: calc(46.5% + 25.5% * var(--m)); width: calc(36% - 8% * var(--m)); }
.w-text--3 { top: 52%; left: 52%; width: 40%; opacity: calc(.8 - var(--m) * 1.6); translate: 0 calc(var(--m) * 60%); }
.w-text--4 { top: 57.5%; left: 52%; width: 30%; opacity: calc(.8 - var(--m) * 1.6); translate: 0 calc(var(--m) * 60%); }
.w-spalte {
  left: 6%; top: 61%; width: 40%; height: 22%;
  border: 1px solid var(--linie); background: var(--flaeche-2);
  opacity: calc(1 - var(--m) * 2); translate: calc(var(--m) * -30%) 0;
}
.w-weg {
  left: 3.2%; top: 30%; width: 1px; height: 42%; border-radius: 0 !important;
  background: rgb(255 255 255 / .6);
  opacity: calc(var(--m) * 2 - 1);
  display: flex !important; flex-direction: column; justify-content: space-between; align-items: center;
}
.w-weg b { width: 6px; height: 6px; border-radius: 50%; background: #fff; flex: none; }
.w-weg b:nth-child(2) { width: 10px; height: 10px; box-shadow: 0 0 0 3px rgb(255 255 255 / .3); }
.w-knopf {
  left: calc(52% - 44% * var(--m)); top: calc(64% + 16.5% * var(--m));
  width: calc(12% + 6% * var(--m)); height: calc(3% + 5.5% * var(--m));
  border-radius: calc(3px + var(--m) * 99px) !important;
  background: color-mix(in oklab, #fff calc(var(--m) * 100%), var(--akzent));
}
.w-fuss { left: 0; bottom: 0; width: 100%; height: 9%; border-radius: 0 !important; background: var(--flaeche-2); border-top: 1px solid var(--linie); opacity: calc(1 - var(--m) * 2); translate: 0 calc(var(--m) * 100%); }
.wandel__wort { min-height: 3.2em; font-size: 1.08rem; font-weight: 600; line-height: 1.45; }

/* Regler */
.regler { display: grid; gap: .5rem; }
.regler__enden { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 680; letter-spacing: .15em; text-transform: uppercase; color: var(--leise); }
.regler input { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; margin: 0; background: none; cursor: grab; touch-action: pan-y; }
.regler input:active { cursor: grabbing; }
.regler input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--akzent) var(--wert, 0%), var(--linie) var(--wert, 0%)); }
.regler input::-moz-range-track { height: 6px; border-radius: 6px; background: var(--linie); }
.regler input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--akzent); }
.regler input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.7rem; height: 1.7rem; margin-top: calc(3px - .85rem); border-radius: 50%; background: var(--akzent); border: 4px solid var(--flaeche); box-shadow: 0 2px 10px rgb(30 28 80 / .3); }
.regler input::-moz-range-thumb { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--akzent); border: 4px solid var(--flaeche); box-shadow: 0 2px 10px rgb(30 28 80 / .3); }

/* 05 Tiefe · drei Ebenen hintereinander im Raum */
.ebenen { display: grid; gap: 1.2rem; }
.ebenen__raum { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.ebene {
  display: flex; flex-direction: column; justify-content: center; gap: .9rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--linie); border-radius: 1.7rem;
  background: var(--flaeche); box-shadow: var(--schatten);
}
.ebene p { font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.5; }
.ebene:first-child p { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 640; letter-spacing: -.03em; line-height: 1.18; text-wrap: balance; }
html.js .ebenen__raum { position: relative; display: block; height: clamp(15rem, 36vh, 19rem); margin-top: 3.6rem; perspective: 900px; }
html.js .ebene {
  position: absolute; inset: 0;
  transition: transform 1s var(--weich), opacity .8s ease, visibility .8s;
}
html.js .ebene.ist-nah { transform: translateZ(-240px) translateY(-31%); opacity: .5; pointer-events: none; }
html.js .ebene.ist-fern { transform: translateZ(-480px) translateY(-60%); opacity: .22; pointer-events: none; }
html.js .ebene.ist-vorbei { transform: translateZ(340px); opacity: 0; visibility: hidden; }
html.js .ebene:nth-child(1) { z-index: 3; }
html.js .ebene:nth-child(2) { z-index: 2; }
html.js .ebene:nth-child(3) { z-index: 1; }
html.js .ebene.ist-nah > *, html.js .ebene.ist-fern > * { opacity: .5; }
.ebenen__wege { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ebenen__stand { font-size: .76rem; font-weight: 680; letter-spacing: .15em; text-transform: uppercase; color: var(--leise); }

/* 06 Lebendigkeit · dieselbe Szene, von still (--s: 0) über richtig (1) bis zu viel */
.leben { display: grid; gap: 1.1rem; }
.leben__szene { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; border: 1px solid var(--linie); border-radius: 1.7rem; background: var(--flaeche); box-shadow: var(--schatten); }
.leben__szene i { position: absolute; display: block; }
.l-kreis {
  left: 11%; top: 15%; width: 39%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in oklab, var(--akzent) 30%, #fff), var(--akzent) 78%);
  animation: l-atmen calc(6s / var(--tempo)) ease-in-out infinite;
}
.l-karte {
  right: 9%; top: 20%; width: 35%; height: 46%; padding: 8% 6%;
  border: 1px solid var(--glas-rand); border-radius: 1.1rem;
  background: var(--glas); box-shadow: var(--schatten);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: l-treiben calc(9s / var(--tempo)) ease-in-out infinite;
}
.l-karte b { display: block; height: 9%; margin-bottom: 11%; border-radius: 9px; background: var(--linie-stark); opacity: .55; }
.l-karte b:first-child { width: 62%; height: 13%; background: var(--tinte); opacity: 1; }
.l-karte b:last-child { width: 78%; }
.l-pfeil {
  left: 50%; bottom: 8%; margin-left: -1.2rem;
  display: grid !important; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--linie-stark); color: var(--leise);
  animation: l-wippen calc(2.4s / var(--tempo)) ease-in-out infinite;
}
@keyframes l-atmen { 50% { scale: calc(1 + .04 * var(--s)); } }
@keyframes l-treiben { 50% { translate: 0 calc(-5px * var(--s)); rotate: calc(-.7deg * var(--s)); } }
@keyframes l-wippen { 50% { translate: 0 calc(5px * var(--s)); } }
.leben__urteil { min-height: 3.2em; font-size: 1.08rem; line-height: 1.45; color: var(--leise); }
.leben__urteil strong { color: var(--tinte); font-weight: 660; }
.leben[data-urteil="zuviel"] .leben__urteil strong { color: #c2410c; }
:root[data-theme="dark"] .leben[data-urteil="zuviel"] .leben__urteil strong { color: #fdba74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leben[data-urteil="zuviel"] .leben__urteil strong { color: #fdba74; } }

/* 07 Teile · drei Karten: vorn das Übliche, hinten das neu Gedachte */
.wenden { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.4vw, 1.2rem); margin: 0; padding: 0; list-style: none; }
.wende { position: relative; display: grid; gap: .8rem; perspective: 1100px; }
.wende__seite {
  display: flex; flex-direction: column; gap: .45rem;
  min-height: 19.5rem; padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--linie); border-radius: 1.5rem;
  background: var(--flaeche); box-shadow: var(--schatten);
}
.wende__hinten { border-color: color-mix(in oklab, var(--akzent) 45%, var(--linie)); background: linear-gradient(170deg, var(--akzent-weich), var(--flaeche) 62%); }
.wende__seite strong { margin-top: auto; font-size: 1.22rem; font-weight: 650; letter-spacing: -.02em; }
.wende__seite p { font-size: .92rem; line-height: 1.45; color: var(--leise); }
html.js .wende__seite { grid-area: 1 / 1; padding-bottom: 4.3rem; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .8s var(--weich); }
html.js .wende__hinten { transform: rotateY(180deg); }
html.js .wende.ist-neu .wende__vorn { transform: rotateY(-180deg); }
html.js .wende.ist-neu .wende__hinten { transform: none; }
.wende__knopf {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 2;
  min-height: 2.5rem; border: 1.5px solid var(--linie-stark); border-radius: 99px; background: var(--flaeche);
  font-size: .86rem; font-weight: 640;
  transition: border-color .2s, color .2s, background .2s;
}
.wende__knopf:hover, .wende.ist-neu .wende__knopf { border-color: var(--akzent); color: var(--akzent); }
.wende__bild { position: relative; display: grid; place-items: center; height: 7rem; margin: .4rem 0 .3rem; border-radius: 1rem; background: var(--flaeche-2); overflow: hidden; font-size: .82rem; }
.wende__hinten .wende__bild { background: color-mix(in oklab, var(--flaeche) 70%, transparent); border: 1px solid var(--glas-rand); }
.m-wort { font-weight: 640; text-decoration: underline dotted; text-underline-offset: .25em; }
.m-wort--an { color: var(--akzent); text-decoration-style: solid; translate: 0 1.35rem; }
.m-kasten { position: absolute; left: 40%; top: 62%; padding: .12rem .4rem; border: 1px solid #8a8a8a; background: #f7f7e1; color: #222; font: 400 .66rem/1.3 Arial, sans-serif; white-space: nowrap; box-shadow: 1px 1px 2px rgb(0 0 0 / .25); }
.m-haenger { position: absolute; top: 1rem; padding: .3rem .8rem; border: 1px solid var(--glas-rand); border-radius: 99px; background: var(--flaeche); box-shadow: var(--schatten); font-weight: 600; font-size: .76rem; white-space: nowrap; }
.m-faden { position: absolute; top: 2.75rem; left: 50%; width: 1.5px; height: 1rem; background: var(--akzent); }
.m-faden::after { content: ""; position: absolute; left: -2.75px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); }
.m-seite { color: var(--leise); translate: 0 -.6rem; }
.m-balken { position: absolute; left: 14%; right: 14%; top: 62%; height: 5px; background: var(--linie); }
.m-balken::after { content: ""; position: absolute; inset: 0 75% 0 0; background: var(--linie-stark); }
.m-linie { position: absolute; left: 12%; right: 12%; top: 34%; height: 2px; background: var(--linie); display: flex; justify-content: space-between; align-items: center; }
.m-linie::before { content: ""; position: absolute; left: 0; width: 50%; height: 100%; background: var(--akzent); }
.m-linie b { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--flaeche); border: 2px solid var(--linie-stark); }
.m-linie b:nth-child(-n+2) { background: var(--akzent); border-color: var(--akzent); }
.m-linie u { position: absolute; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--akzent) 22%, transparent); }
.m-ring { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; translate: 0 1.5rem; border-radius: 50%; border: 2.5px solid var(--linie); border-top-color: var(--akzent); border-right-color: var(--akzent); font-weight: 700; font-size: .78rem; }
.m-krumen { color: var(--leise); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; font-size: .76rem; }
.wende__hinten .wende__bild:has(.m-anfang) { display: flex; justify-content: center; align-items: center; gap: 0; }
.m-anfang { font-weight: 700; letter-spacing: -.04em; }
.m-strang { width: 1.1rem; height: 1.5px; background: var(--akzent); flex: none; }
.m-station { padding: .15rem .5rem; font-size: .68rem; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); white-space: nowrap; }
.m-station--hier { border: 1px solid var(--akzent); border-radius: 99px; color: var(--akzent); background: var(--flaeche); }

/* 08 Antwort · die Spur des Besuchs */
.spur__punkte { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; margin: 1.1rem 0 1.3rem; padding: 0; list-style: none; }
.spur__punkte li { height: .55rem; border-radius: 99px; background: var(--linie); transition: background .5s; }
.spur__punkte .ist-betreten { background: var(--akzent); }
.spur__punkte .ist-tief { background: var(--licht); }
.spur__punkte .ist-hier { outline: 2px solid var(--akzent); outline-offset: 2px; }
.spur__satz { font-size: clamp(1.1rem, 1.5vw, 1.28rem); font-weight: 600; line-height: 1.45; }
.spur__vorschlag { display: grid; gap: .6rem; justify-items: start; margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 1.1rem; background: var(--akzent-weich); }
.spur__vorschlag[hidden] { display: none; }
.spur__grund { font-size: .98rem; line-height: 1.45; }
.spur__wege { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1rem; }
.spur__tasche { display: grid; gap: .6rem; margin-top: 1.2rem; }
.spur__tasche[hidden] { display: none; }
.spur__tasche ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.spur__tasche li { padding: .55rem .9rem; border-left: 3px solid var(--akzent); border-radius: 0 .7rem .7rem 0; background: var(--flaeche-2); font: italic 400 1.02rem/1.4 var(--serif); animation: in-tasche .6s var(--weich); }
.spur__tasche small { display: block; margin-bottom: .15rem; font: 680 .66rem/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--leise); }
@keyframes in-tasche { from { opacity: 0; translate: -.6rem 0; } }

/* 09 Fassungen · vier Fassungen derselben Seite */
.fassungen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 1.4vw, 1rem); margin: 0; padding: 0; list-style: none; }
.fassung {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  padding: 1rem; border: 1px solid var(--linie); border-radius: 1.5rem;
  background: var(--flaeche); box-shadow: var(--schatten);
  transition: border-color .3s, box-shadow .3s;
}
.fassung.ist-aktiv { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-weich), var(--schatten); }
.fassung strong { font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }
.fassung p { font-size: .9rem; line-height: 1.4; color: var(--leise); }
.fassung .knopf, .fassung__hinweis { margin-top: .6rem; }
.fassung__hinweis { display: inline-flex; align-items: center; min-height: 2.5rem; font-size: .8rem; color: var(--leise); }
.fassung__bild { position: relative; width: 100%; height: 5.2rem; margin-bottom: .5rem; border-radius: .9rem; background: var(--flaeche-2); overflow: hidden; }
.fassung__bild i { position: absolute; display: block; }
.fassung--lebendig .fassung__bild i:first-child, .fassung--ruhig .fassung__bild i:first-child { left: 14%; top: 50%; width: 2.6rem; height: 2.6rem; margin-top: -1.3rem; border-radius: 50%; background: var(--akzent); }
.fassung--lebendig .fassung__bild i:first-child { animation: atmen 6s ease-in-out infinite; }
.fassung--lebendig .fassung__bild i:last-child, .fassung--ruhig .fassung__bild i:last-child { right: 12%; top: 32%; width: 38%; height: 36%; border-radius: .5rem; background: var(--flaeche); border: 1px solid var(--linie); }
.fassung--lebendig .fassung__bild i:last-child { animation: f-treiben 8s ease-in-out infinite; }
@keyframes f-treiben { 50% { translate: 0 -4px; } }
.fassung--papier .fassung__bild i:first-child { left: 50%; top: 14%; width: 3.2rem; height: 4.6rem; margin-left: -1.6rem; background: #fff; border: 1px solid #d0cde0; box-shadow: 2px 3px 8px rgb(30 28 80 / .14); }
.fassung--papier .fassung__bild i:last-child { left: 50%; top: 28%; width: 2rem; height: 3px; margin-left: -1rem; background: #4f46d8; box-shadow: 0 9px 0 -1px #bbb, 0 15px 0 -1px #bbb, 0 21px 0 -1px #bbb, 0 27px 0 -1px #bbb; }
.fassung--einfach .fassung__bild i:first-child { left: 12%; top: 22%; width: 46%; height: 6px; background: var(--tinte); box-shadow: 0 14px 0 -1px var(--linie-stark), 0 24px 0 -1px var(--linie-stark); }
.fassung--einfach .fassung__bild i:last-child { left: 12%; top: 70%; width: 30%; height: 4px; background: var(--akzent); }

/* Fünfte Fassung „Für Maschinen": eine flache Zeile unter den vier Karten */
.fassung--maschine { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1rem; }
.fassung--maschine .fassung__bild { flex: none; width: 5.5rem; height: 3.6rem; margin: 0; }
.fassung--maschine .fassung__bild i:first-child { left: 14%; top: 24%; width: 22%; height: 4px; background: var(--akzent); box-shadow: 0 10px 0 var(--linie-stark), 0 20px 0 var(--linie-stark); }
.fassung--maschine .fassung__bild i:last-child { left: 44%; top: 24%; width: 40%; height: 4px; background: var(--linie-stark); box-shadow: 0 10px 0 var(--licht), 0 20px 0 var(--linie-stark); }
.fassung--maschine .fassung__wort { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.fassung--maschine .knopf { flex: none; margin-top: 0; }
@media (max-width: 560px) { .fassung--maschine { flex-wrap: wrap; } .fassung--maschine .fassung__wort { flex-basis: 55%; } }

/* „XnD in Kürze": Frage über Antwort */
.karte.kurz { grid-template-columns: minmax(0, 1fr); }
.karte.kurz dt { padding-bottom: 0; border-bottom: 0; color: var(--tinte); }
.karte.kurz dd { padding-top: .25rem; }

/* 10 Methode · sieben Schritte an einer Linie */
.schritte { position: relative; margin: 0; padding: 0; list-style: none; }
.schritte::before { content: ""; position: absolute; left: 1.075rem; top: 1.3rem; bottom: 1.3rem; width: 2px; margin-left: -1px; background: var(--linie); }
.schritte li { position: relative; padding-left: 3.3rem; }
.schritte button {
  display: block; width: 100%; padding: .62rem 0; border: 0; background: none; text-align: left;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem); font-weight: 620; letter-spacing: -.02em; color: var(--leise);
  transition: color .3s;
}
.schritte button b {
  position: absolute; left: 0; top: .42rem;
  display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%;
  background: var(--grund); border: 2px solid var(--linie-stark);
  font-size: .7rem; font-weight: 700; letter-spacing: 0; color: var(--leise);
  transition: background .3s, border-color .3s, color .3s, scale .3s var(--weich);
}
.schritte button:hover { color: var(--tinte); }
.schritte button:hover b { border-color: var(--akzent); }
.schritte p { max-width: 30rem; padding-bottom: .5rem; font-size: 1.04rem; line-height: 1.5; color: var(--leise); }
html.js .schritte p { display: grid; max-height: 0; padding-bottom: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--weich), opacity .5s, padding .6s; }
html.js .schritte .ist-offen p { max-height: 9rem; padding-bottom: .7rem; opacity: 1; }
html.js .schritte .ist-offen button { color: var(--tinte); font-weight: 660; }
html.js .schritte .ist-offen b { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); scale: 1.1; }
html:not(.js) .schritte button { color: var(--tinte); cursor: default; }

/* 12 Urheber · zum Mitnehmen */
.mitnehmen { display: grid; gap: 1.2rem; justify-items: start; }
.zitat { padding-left: 1.2rem; border-left: 3px solid var(--akzent); font: italic 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.45 var(--serif); }
.raum--urheber { padding-bottom: clamp(6rem, 14vh, 8rem); }

/* ── 10  Fassungen ──────────────────────────────────────────────────────── */

/* Ruhig: Alles steht still. Ausgenommen ist nur, was der Besucher selbst in Gang setzt (.frei). */
html.ruhig *:not(.frei, .frei *),
html.ruhig *:not(.frei, .frei *)::before,
html.ruhig *:not(.frei, .frei *)::after { animation: none !important; transition: none !important; }
html.ruhig dialog.blatt::backdrop { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation: none !important; transition: none !important; }
}

/* Ohne Skript: ein gegliedertes Dokument. Räume sind so hoch wie ihr Inhalt. */
html:not(.js) .raum { min-height: 0; padding-block: clamp(4rem, 10vh, 6rem); border-bottom: 1px solid var(--linie); }
html:not(.js) .raum--auftakt { padding-top: 7rem; }
html:not(.js) .weiter { display: none; }
html:not(.js) .fuss { position: static; margin: 3rem auto 0; width: min(100%, 72rem); }
html:not(.js) .wende__hinten { margin-top: -.3rem; }

/* Schmal */
@media (max-width: 900px) {
  .raum__innen, .raum__innen--breit { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .raum { align-items: start; }
  .raum--auftakt .raum__spiel { order: -1; }
  .tor { width: min(72%, 19rem); }
  .raum[data-nr]::before { bottom: auto; top: 5rem; font-size: 7rem; }
  .marke__name { display: none; }
  .wahl--buchstaben .wahl__felder { min-height: 10.5rem; }
}
@media (max-width: 700px) {
  .wenden { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--rand) * -1); padding: .4rem var(--rand) 1.4rem; }
  .wende { scroll-snap-align: center; }
  html:not(.js) .wenden { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .inhalt ol { columns: 1; }
  .rund--wort span { display: none; }
  .rund--wort { width: 2.5rem; padding: 0; justify-content: center; }
  .mitgebracht__liste > div { grid-template-columns: 6rem 1fr; }
  .karte { grid-template-columns: 1fr; }
  .karte dt { padding-bottom: 0; border-bottom: 0; }
  .karte dd { padding-top: .2rem; }
  .karte dt:last-of-type { border-bottom: 0; }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(2.15rem, 10.4vw, 2.6rem); }
  h2 { font-size: clamp(2rem, 9.6vw, 2.4rem); -webkit-hyphens: auto; hyphens: auto; }
  .satz { font-size: 1.08rem; }
  .tiefer { padding-right: 1rem; }
  .tiefer span { font-size: .95rem; }
  .schalter button { padding-inline: .75rem; }
  .leben__urteil, .wandel__wort { min-height: 4.6em; }
  .ebenen__wege { flex-wrap: wrap; }
  .ebenen__stand { order: -1; width: 100%; }
  dialog.blatt { --bogen-oben: .5rem; --bogen-breite: 100%; }
  .blatt__bogen { border-radius: 1.4rem 1.4rem 0 0; }
  .eintauchen i { border-radius: 1.4rem; }
}
@media (max-width: 340px) {
  .fassungen { grid-template-columns: minmax(0, 1fr); }
  .schalter button { padding-inline: .55rem; font-size: .82rem; }
  .tafel { padding: 1.1rem; }
  .kopf { padding-inline: .75rem; }
}
/* Smartphone im Querformat: Räume sind so hoch wie ihr Inhalt, der Kopf bleibt klein. */
@media (max-height: 480px) and (orientation: landscape) {
  .raum { min-height: 0; padding-block: 5rem 5.5rem; }
  .raum--auftakt { min-height: 100vh; min-height: 100svh; }
  .tor { width: min(40%, 15rem); }
}
@media (max-height: 760px) and (min-width: 901px) {
  h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
  .wende__seite { min-height: 17.5rem; }
  .wende__bild { height: 5.6rem; }
  .schritte button { padding: .45rem 0; }
  .schritte button b { top: .25rem; }
}

/* Erzwungene Farben (Kontrastmodus des Systems) */
@media (forced-colors: active) {
  .himmel, .tor { display: none; }
  .knopf, .schalter button, .tafel, .ebene, .wende__seite, .fassung, .tiefer, .probe__weg { border: 1px solid CanvasText; }
  .randbild, .mass__szene { display: none; }
  .schalter button[aria-pressed="true"], .weg__halt.ist-hier a::before { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* Einfacher Druck ohne Skript. Mit Skript setzt buch.js das A4-Buch (buch.css). */
@media print {
  :root { color-scheme: light; --grund: #fff; --flaeche: #fff; --flaeche-2: #f2f1f8; --tinte: #1b1a2c; --leise: #4b485e; --linie: #cfcbdc; --akzent: #4f46d8; --akzent-weich: #ebe9fb; }
  body { font-size: 11pt; background: #fff; }
  .himmel, .kopf, .weg, .leiste, .weiter, .sprung, .tipp, .raum__spiel, .tiefer, .wege, .nur-js, .inhalt, .raum[data-nr]::before { display: none !important; }
  .raum { display: block; min-height: 0; padding: 0 0 8mm; break-before: page; }
  .raum--auftakt { break-before: auto; }
  .raum__innen { display: block; width: auto; }
  .raum__text > * + * { margin-top: 4mm; }
  [data-auf] { opacity: 1 !important; translate: none !important; }
  h1 { font-size: 34pt; } h2 { font-size: 26pt; }
  html.js .raum > .mehr, .mehr { display: block !important; width: auto; margin: 8mm 0 0; padding: 0; border: 0; }
  .mehr__kopf h3 { font-size: 17pt; }
  .mehr__text { max-width: none; font-size: 11pt; line-height: 1.5; }
  .nur-papier { display: block; padding: 3mm 4mm; border: .25mm solid var(--linie); font-family: var(--sans); font-size: 10pt; }
  .beleg { background: none; padding: 0; }
  .tabelle { overflow: visible; }
  .fuss { position: static; margin-top: 10mm; }
  .fuss__hoch { display: none; }
}
