/* ESELSOHR · Stadtbücherei Leoben (Beispiel)
   Farben und Schriften stehen gleich hier oben. Die Farbe der ersten Ansicht kommt je Buch aus js/buecher.js. */

@font-face { font-family: "Anybody"; src: url("../fonts/anybody-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --tinte: #17132E;
  --papier: #FFF6E5;
  --blatt: #FFF9EE;
  --gelb: #FFC61A;
  --rot: #E8392C;
  --kobalt: #2343F5;
  --pink: #FF5C9D;
  --tuerkis: #0FB5AE;
  --limette: #C6F135;
  --stempelrot: #D42A1E;
  --stempelblau: #1F3FC4;
  --anz: "Anybody", "Arial Narrow", sans-serif;
  --txt: "Schibsted Grotesk", system-ui, sans-serif;
  --stp: "Courier Prime", "Courier New", monospace;
  --weich: cubic-bezier(.2, .8, .2, 1);
  --feder: cubic-bezier(.34, 1.56, .64, 1);
  --H: min(42vh, 30vw);
  --cy: 49vh;
  --rand: max(32px, calc((100vw - 1600px) / 2));
  --kf: #17132E;
  --kb: #FF6B1A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blatt); color: var(--tinte); font: 400 17px/1.55 var(--txt); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: fixed; left: 16px; top: -80px; z-index: 400; background: var(--tinte); color: var(--papier); padding: 12px 18px; border-radius: 8px; }
.sprung:focus { top: 16px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }

@media (pointer: fine) {
  html.js.zeiger-an, html.js.zeiger-an body, html.js.zeiger-an a, html.js.zeiger-an button, html.js.zeiger-an label, html.js.zeiger-an select { cursor: none; }
  html.js.zeiger-an input { cursor: text; }
}

/* ---------- Bausteine ---------- */
.gross { font: 800 clamp(40px, 6vw, 92px)/.96 var(--anz); font-stretch: 78%; letter-spacing: -.012em; text-wrap: balance; }
.lauf { font-size: clamp(17px, 1.25vw, 20px); max-width: 46ch; }
.marker { font: 700 13px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--tinte); color: var(--papier); font: 700 15px/1 var(--txt); text-decoration: none; transition: transform .35s var(--feder), background-color .3s, color .3s; }
.knopf:hover { transform: translateY(-2px) rotate(-1.2deg); }
.knopf:active { transform: scale(.96); }
.knopf-gross { min-height: 58px; padding: 0 30px; font-size: 17px; }
.schild { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1.5px solid currentColor; border-radius: 4px; font: 700 12px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; }

/* Zeilen, die aus einer Maske steigen (js/seite.js setzt .zm um jede Zeile) */
.zm { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.zm > span { display: block; }
html.js [data-zeilen] .zm > span { transform: translateY(108%); transition: transform .9s var(--weich); transition-delay: calc(var(--i, 0) * 70ms); }
html.js [data-zeilen].da .zm > span { transform: none; }

/* ---------- Ladeanzeige ---------- */
.lade { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: #FF6B1A; color: var(--tinte); transition: clip-path .9s cubic-bezier(.76, 0, .18, 1); clip-path: inset(0 0 0 0); }
html.js .lade { display: grid; }
.lade.fertig { clip-path: inset(0 0 100% 0); pointer-events: none; }
.lade-mitte { display: grid; justify-items: center; gap: 22px; }
.lade-band { position: relative; width: 54px; height: 120px; background: rgba(23, 19, 46, .16); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.lade-band i { position: absolute; inset: 0; background: var(--tinte); transform-origin: 50% 0; transform: scaleY(0); transition: transform .35s var(--weich); }
.lade-text { font: 700 14px/1.4 var(--stp); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 0 24px; max-width: 30ch; }

/* ---------- Kopfzeile ---------- */
.kopf { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: 76px; padding: 0 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--kf); transition: color .35s, transform .5s var(--weich); pointer-events: none; }
.kopf > * { pointer-events: auto; }
.kopf.weg { transform: translateY(-110%); }
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.marke-zeichen { width: 24px; height: 29px; fill: currentColor; }
.marke-ohr { fill: var(--kb); stroke: currentColor; stroke-width: 1.5; transition: fill .35s; }
.marke-wort { font: 900 22px/1 var(--anz); font-stretch: 112%; letter-spacing: .01em; text-transform: uppercase; display: grid; gap: 4px; }
.marke-wort small { font: 700 10px/1 var(--stp); letter-spacing: .08em; opacity: .85; }
.menue { display: flex; gap: 28px; font: 600 15px/1 var(--txt); }
.menue a { text-decoration: none; position: relative; padding: 14px 0; }
.menue a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--weich); }
.menue a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.kopf-rechts { justify-self: end; display: flex; align-items: center; gap: 18px; }
.pegel { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--stp); letter-spacing: .08em; }
.pegel-balken { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.pegel-balken i { width: 3px; height: 100%; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.18); border-radius: 1px; }
.pegel-wert { min-width: 5.2ch; }
.stapel { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px; text-decoration: none; font: 600 15px/1 var(--txt); }
.stapel-bild { display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; width: 20px; height: 26px; }
.stapel-bild i { display: block; height: 4px; border-radius: 1px; background: currentColor; outline: 1px solid var(--kf); outline-offset: -1px; animation: stapel-plus .5s var(--feder) both; }
.stapel-bild:empty { border-bottom: 2px solid currentColor; }
.stapel b { font: 700 13px/1 var(--stp); min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--kf); color: var(--kb); transition: background-color .35s, color .35s; }
.stapel.hupf b { animation: hupf .5s var(--feder); }
@keyframes hupf { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes stapel-plus { from { transform: translateY(-18px) scaleX(.4); } to { transform: none; } }
.knopf-kopf { background: var(--kf); color: var(--kb); }

/* ---------- 1 · Regal ---------- */
.regal { position: relative; height: calc(100vh + 340vh); height: calc(100svh + 340vh); background: var(--bg, #FF6B1A); color: var(--fg, #17132E); }
.regal-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; user-select: none; -webkit-user-select: none; }
html.js:not(.bereit) .regal-buehne > * { visibility: hidden; }

.wort { position: absolute; left: 0; right: 0; top: calc(var(--cy) - var(--H) / 2 - 20vh); height: 34vh; pointer-events: none; color: var(--wf, rgba(0, 0, 0, .14)); will-change: transform; }
.wort-w { position: absolute; left: 50%; top: 0; white-space: nowrap; font: 900 min(40vh, 26vw)/.86 var(--anz); letter-spacing: -.01em; transform: translateX(-50%); }
.wort-w .bz { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .04em; }
.wort-w .bz i { display: inline-block; font-style: normal; will-change: transform; }

.regal-raum { position: absolute; left: 0; right: 0; top: calc(var(--cy) - var(--H) / 2 - 90px); height: calc(var(--H) + 180px); perspective: 2200px; perspective-origin: 50% 50%; touch-action: pan-y; }
.stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.brett { position: absolute; left: 0; right: 0; top: calc(var(--cy) + var(--H) / 2); height: 14px; background: var(--bf, rgba(0, 0, 0, .35)); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .35); }

.band { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; cursor: pointer; }
.band:not(.aus) { will-change: transform; }
.band.aus { visibility: hidden; }
.band > * { position: absolute; }
.fl-r { width: var(--w); height: var(--hh); left: calc(var(--w) / -2); top: calc(var(--hh) / -2); transform: translateZ(calc(var(--d) / 2)); backface-visibility: hidden; background: var(--rc); color: var(--rt); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.fl-r::after, .kv::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--sch, 0); pointer-events: none; }
.fl-r::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .12) 18%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .14)); pointer-events: none; z-index: 1; }
.r-bild { flex: 0 0 auto; width: 100%; aspect-ratio: 1; background-size: 155% auto; background-position: 50% 78%; border-bottom: 2px solid rgba(0, 0, 0, .25); }
.r-titel { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-family: var(--anz); font-weight: 700; font-stretch: 62%; letter-spacing: .01em; padding: 8px 0; }
.r-schild { flex: 0 0 auto; width: 82%; margin-bottom: 9%; padding: 5px 0 3px; background: #FFFDF6; color: var(--tinte); border-radius: 2px; text-align: center; font: 700 calc(var(--w) * .2)/1.05 var(--stp); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.r-schild span { display: block; }

.fl-k, .fl-s { width: var(--d); height: var(--hh); left: calc(var(--d) / -2); top: calc(var(--hh) / -2); }
.fl-k { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); transform-style: preserve-3d; }
.fl-s { transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 2px)); backface-visibility: hidden; background: linear-gradient(90deg, #E9DFC9, var(--blatt) 7%); overflow: hidden; }
.fl-s { container-type: inline-size; }
.ts { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; gap: 4cqw; padding: 10cqw; color: var(--tinte); }
.ts small { font: 700 3cqw/1.2 var(--stp); letter-spacing: .08em; text-transform: uppercase; }
.ts b { font: 800 9.5cqw/1 var(--anz); font-stretch: 76%; letter-spacing: -.01em; text-wrap: balance; }
.ts i { font: 600 4.2cqw/1.2 var(--txt); font-style: normal; }
.ts u { margin-top: 8cqw; padding: 1.6cqw 3cqw 1cqw; border: .7cqw solid currentColor; border-radius: 1.4cqw; color: var(--stempelrot); font: 700 3.2cqw/1.1 var(--stp); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transform: rotate(-5deg); }
.ts-halter { position: absolute; container-type: inline-size; }
.tuer { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; }
.kv, .ki { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 1px 3px 3px 1px; overflow: hidden; }
.kv { background-color: var(--rc); background-size: cover; background-position: 50% 50%; box-shadow: 0 34px 60px -26px rgba(20, 12, 30, .6); container-type: inline-size; color: var(--kt); }
.kv::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .22) 46%, rgba(255, 255, 255, 0) 62%); background-size: 260% 100%; background-position: var(--gl, 50%) 0; }
.ki { transform: rotateY(180deg); background: var(--rc); }
.ki::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 10px, rgba(255, 255, 255, 0) 10px 20px); }
.ki-tasche { position: absolute; left: 14%; right: 14%; bottom: 12%; height: 46%; background: #FFFDF6; border-radius: 3px; padding: 8% 9%; color: var(--tinte); font: 700 3.6cqw/1.5 var(--stp); box-shadow: 0 6px 14px rgba(0, 0, 0, .2); container-type: inline-size; }
.ki-tasche b { display: block; font-size: 7cqw; letter-spacing: .08em; border-bottom: 2px solid var(--tinte); padding-bottom: 4%; margin-bottom: 6%; }
.ki-tasche span { display: block; font-size: 6.4cqw; line-height: 1.7; border-bottom: 1px dashed rgba(23, 19, 46, .35); }
.ki-tasche span:nth-child(2) { color: var(--stempelrot); transform: rotate(-2deg); }
.ki-tasche span:nth-child(3) { color: var(--stempelblau); transform: rotate(1.5deg); }
.fl-o { width: var(--w); height: var(--d); left: calc(var(--w) / -2); top: calc(var(--d) / -2); transform: rotateX(90deg) translateZ(calc(var(--hh) / 2)); backface-visibility: hidden; background: repeating-linear-gradient(90deg, #F6EEDD 0 2px, #DDD2BB 2px 3px); border-left: 3px solid var(--rc); border-right: 3px solid var(--rc); }
.fl-v { width: var(--w); height: var(--hh); left: calc(var(--w) / -2); top: calc(var(--hh) / -2); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); backface-visibility: hidden; background: repeating-linear-gradient(90deg, #F6EEDD 0 2px, #DDD2BB 2px 3px); border-left: 3px solid var(--rc); border-right: 3px solid var(--rc); }
.band.zu > .fl-k, .band.zu > .fl-s, .band.zu > .fl-o, .band.zu > .fl-v { display: none; }

/* Schrift auf dem Umschlag (Größen in Anteilen der Umschlagbreite) */
.u-autor { position: absolute; left: 7cqw; right: 7cqw; top: 6.5cqw; font: 700 3.7cqw/1 var(--txt); letter-spacing: .08em; text-transform: uppercase; z-index: 1; }
.u-titel { position: absolute; left: 7cqw; right: 7cqw; top: 13cqw; font: 800 11.5cqw/.94 var(--anz); font-stretch: 78%; letter-spacing: -.01em; z-index: 1; }
.u-titel span { display: block; white-space: nowrap; }
.u-unter { display: block; font: 600 5cqw/1.2 var(--txt); letter-spacing: 0; margin-top: 2.4cqw; }
.u-verlag { position: absolute; right: 6cqw; bottom: 5cqw; width: 7.5cqw; height: 9cqw; z-index: 1; background: currentColor; clip-path: polygon(0 0, 64% 0, 100% 30%, 100% 100%, 0 100%); opacity: .9; }
.u-krimi .u-titel { font-weight: 900; font-stretch: 62%; font-size: 15cqw; text-transform: uppercase; }
.u-grusel .u-titel { font-weight: 300; font-stretch: 112%; font-size: 10.4cqw; letter-spacing: .01em; top: auto; bottom: 7cqw; }
.u-zukunft .u-titel { font-weight: 800; font-stretch: 132%; font-size: 9.6cqw; text-transform: uppercase; }
.u-liebe .u-titel { font-weight: 500; font-stretch: 58%; font-size: 14.5cqw; }
.u-musik .u-titel { font-weight: 800; font-stretch: 60%; font-size: 7.7cqw; top: 10.5cqw; }
.u-musik .u-autor { top: 5cqw; }
.u-kueche .u-titel { font-weight: 900; font-stretch: 104%; font-size: 19cqw; }
.u-garten .u-titel { font-weight: 700; font-stretch: 84%; font-size: 13.4cqw; }
.u-natur .u-titel { font-weight: 800; font-stretch: 66%; font-size: 13.6cqw; }
.u-reise .u-titel { font-weight: 900; font-stretch: 120%; font-size: 9.4cqw; text-transform: uppercase; }
.u-wissen .u-titel { font-weight: 500; font-stretch: 74%; font-size: 10.6cqw; }
.u-kinder .u-titel { font-weight: 800; font-stretch: 86%; font-size: 9.2cqw; }
.u-comic .u-titel { font-weight: 900; font-stretch: 96%; font-size: 15.5cqw; text-transform: uppercase; transform: rotate(-5deg); transform-origin: 0 100%; top: 17cqw; }

.ring { position: absolute; left: 0; top: 0; z-index: 6; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; will-change: transform; transition: background-color .3s, color .3s; }
.ring svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .45s var(--feder); }
.ring:hover svg { transform: rotate(90deg); }
.ring.drin svg { transform: rotate(45deg); }

.zeile { position: absolute; left: 50%; top: calc(var(--cy) + var(--H) / 2 + 36px); width: min(92vw, 720px); margin-left: calc(min(92vw, 720px) / -2); display: grid; justify-items: center; gap: 9px; pointer-events: none; text-align: center; }
.zeile-maske { position: relative; overflow: hidden; width: 100%; }
.zeile-maske > span { display: block; will-change: transform; }
.zeile-maske > span + span { position: absolute; left: 0; right: 0; top: 0; }
.zeile-titel { font: 800 clamp(24px, 2.5vw, 36px)/1.14 var(--anz); font-stretch: 84%; }
.zeile-sub { font: 700 12.5px/1.2 var(--stp); letter-spacing: .08em; text-transform: uppercase; }
.zeile-stand { font: 600 14px/1.3 var(--txt); }
.zeile-stand i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; margin-right: 8px; }
.zeile-stand .weg-i { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }

.pfeil { position: absolute; top: calc(var(--cy) + var(--H) / 2 + 30px); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; transition: transform .4s var(--feder), background-color .3s, color .3s; }
.pfeil svg { width: 18px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pfeil-l { left: calc(50% - min(46vw, 420px)); }
.pfeil-r { right: calc(50% - min(46vw, 420px)); }
.pfeil:hover { background: var(--fg); color: var(--bg); transform: scale(1.08); }

.regal-fuss { position: absolute; bottom: 26px; }
.regal-fuss-l { left: var(--rand); }
.regal-fuss-r { right: calc(var(--rand) + 56px); display: grid; justify-items: end; gap: 14px; }
.regal-satz { font: 700 clamp(15px, 1.25vw, 19px)/1.3 var(--txt); max-width: 26ch; }
.reiter { position: relative; display: flex; }
.reiter button { position: relative; z-index: 1; height: 32px; padding: 0 13px; border: 1.5px solid currentColor; margin-left: -1.5px; font: 700 12px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: color .45s; }
.reiter button.an { color: var(--bg); }
.reiter-marke { position: absolute; left: 0; top: 0; height: 32px; width: 0; background: var(--fg); transition: transform .6s var(--weich), width .6s var(--weich), background-color .3s; }
.regal-hinweis { display: flex; align-items: center; gap: 10px; font: 700 12px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; }
.regal-hinweis i { width: 1.5px; height: 26px; background: currentColor; transform-origin: 50% 0; animation: tropf 2.2s var(--weich) infinite; }
@keyframes tropf { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1) translateY(26px); opacity: 0; } }

.blatt { position: absolute; inset: 0; z-index: 8; background: var(--blatt); clip-path: inset(50% 50% 50% 50%); visibility: hidden; pointer-events: none; }
.ohne-js { position: absolute; left: 0; right: 0; top: 30vh; text-align: center; padding: 0 24px; font-weight: 700; }
html:not(.js) .regal { height: 70vh; }
html:not(.js) .regal-buehne > .ring, html:not(.js) .regal-buehne > .pfeil, html:not(.js) .regal-fuss-r { display: none; }

/* ---------- 2 · Kapitel ---------- */
.kapitel { background: var(--blatt); position: relative; }
.kapitel-auftakt { padding: 22vh var(--rand) 12vh; display: grid; gap: 22px; justify-items: start; }
.kapitel-auftakt .marker { color: var(--rot); }
.kapitel-auftakt .gross { max-width: 14ch; }
.buch { position: relative; }
.buch-buehne { padding: 0 var(--rand) 12vh; }
.buch-innen { position: relative; display: flex; flex-direction: column; gap: 0; border-radius: 10px; }
.halb, .wende-vorn, .wende-hinten { position: relative; }
.wende { display: contents; }
.halb-l { order: 1; } .wende[data-wende="0"] .wende-vorn { order: 2; } .wende[data-wende="0"] .wende-hinten { order: 3; }
.wende[data-wende="1"] .wende-vorn { order: 4; } .wende[data-wende="1"] .wende-hinten { order: 5; } .halb-r { order: 6; }
.bildseite { position: relative; height: 100%; min-height: min(70vw, 86vh); background-size: cover; background-position: 50% 50%; }
.bild-1 { background-image: url("../bilder/kapitel-1.webp"); background-color: #E9417F; }
.bild-2 { background-image: url("../bilder/kapitel-2.webp"); background-color: #1447B8; background-position: 50% 0; }
.bild-3 { background-image: url("../bilder/kapitel-3.webp"); background-color: #C99A1C; }
.bildseite figcaption { position: absolute; left: 18px; bottom: 16px; padding: 6px 10px; background: var(--blatt); color: var(--tinte); font: 700 11px/1.2 var(--stp); letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; }
.textseite { position: relative; height: 100%; background: #FFFDF6; padding: clamp(28px, 4.4vw, 76px); display: grid; align-content: center; gap: 18px; overflow: hidden; }
.textseite .marker { color: var(--rot); }
.textseite h3 { font: 800 clamp(36px, 4.6vw, 76px)/.96 var(--anz); font-stretch: 76%; letter-spacing: -.01em; }
.textseite p { max-width: 40ch; }
.kap-ziffer { position: absolute; right: 3%; top: -7%; font: 900 clamp(200px, 30vw, 520px)/1 var(--anz); font-stretch: 60%; color: var(--gelb); z-index: 0; pointer-events: none; }
.textseite[data-kap="2"] .kap-ziffer { color: #BFD4FF; }
.textseite[data-kap="3"] .kap-ziffer { color: #FFC3D9; }
.textseite > *:not(.kap-ziffer) { position: relative; z-index: 1; }
.kap-fakt { font: 700 13px/1.4 var(--stp); letter-spacing: .08em; text-transform: uppercase; padding-top: 14px; border-top: 2px solid var(--tinte); justify-self: start; }
.seitenzahl { position: absolute !important; right: 28px; bottom: 22px; font: 700 13px/1 var(--stp); }
.wende-schatten, .buch-falz, .buch-stand { display: none; }

@media (min-width: 900px) and (min-height: 560px) {
  html.js .buch.blaettert { height: calc(100vh + 240vh); }
  html.js .buch.blaettert .buch-buehne { position: sticky; top: 0; height: 100vh; padding: 92px var(--rand) 44px; display: grid; place-items: center; }
  html.js .buch.blaettert .buch-innen { display: block; width: min(100%, 1500px); height: min(100%, 860px); perspective: 2600px; background: var(--tinte); padding: 0; box-shadow: 0 0 0 10px var(--tinte), 0 50px 80px -30px rgba(23, 19, 46, .55); }
  html.js .buch.blaettert .halb { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; }
  html.js .buch.blaettert .halb-l { left: 0; border-radius: 6px 0 0 6px; }
  html.js .buch.blaettert .halb-r { right: 0; border-radius: 0 6px 6px 0; }
  html.js .buch.blaettert .wende { display: block; position: absolute; left: 50%; top: 0; bottom: 0; width: 50%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
  html.js .buch.blaettert .wende-vorn, html.js .buch.blaettert .wende-hinten { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; }
  html.js .buch.blaettert .wende-vorn { border-radius: 0 6px 6px 0; }
  html.js .buch.blaettert .wende-hinten { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
  html.js .buch.blaettert .bildseite { min-height: 0; }
  html.js .buch.blaettert .wende-schatten { display: block; position: absolute !important; inset: 0; z-index: 3 !important; pointer-events: none; opacity: var(--s, 0); }
  html.js .buch.blaettert .wende-vorn .wende-schatten { background: linear-gradient(90deg, rgba(23, 19, 46, .55), rgba(23, 19, 46, .12) 55%, rgba(23, 19, 46, .3)); }
  html.js .buch.blaettert .wende-hinten .wende-schatten { background: linear-gradient(270deg, rgba(23, 19, 46, .55), rgba(23, 19, 46, .12) 55%, rgba(23, 19, 46, .3)); }
  html.js .buch.blaettert .buch-falz { display: block; position: absolute; left: 50%; top: 0; bottom: 0; width: 90px; margin-left: -45px; z-index: 40; pointer-events: none; background: linear-gradient(90deg, rgba(23, 19, 46, 0), rgba(23, 19, 46, .2) 46%, rgba(23, 19, 46, .34) 50%, rgba(23, 19, 46, .2) 54%, rgba(23, 19, 46, 0)); }
  html.js .buch.blaettert .buch-stand { display: block; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font: 700 12px/1 var(--stp); letter-spacing: .08em; }
}

/* ---------- 3 · Lesesaal ---------- */
.saal { position: relative; min-height: 132vh; overflow: hidden; background: #2A1708; color: var(--papier); }
.saal-bild { position: absolute; left: -3%; right: -3%; top: -10%; bottom: -10%; will-change: transform; }
.saal-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.saal-dunkel { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 10, 4, .86), rgba(20, 10, 4, .5) 34%, rgba(20, 10, 4, 0) 60%), linear-gradient(0deg, rgba(20, 10, 4, .5), rgba(20, 10, 4, 0) 30%); }
.saal-text { position: relative; z-index: 2; padding: 20vh var(--rand) 0; display: grid; gap: 22px; justify-items: start; max-width: calc(var(--rand) + 620px); }
.saal-text .gross { max-width: 12ch; color: var(--gelb); }
.messer { margin-top: 14px; width: min(100%, 380px); padding: 18px 20px 16px; background: var(--papier); color: var(--tinte); border-radius: 10px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); transform: rotate(-1.5deg); }
.messer-kopf { display: flex; justify-content: space-between; align-items: baseline; font: 700 12px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; }
.messer-kopf b { font: 900 34px/1 var(--anz); font-stretch: 80%; letter-spacing: 0; }
.messer-leiste { position: relative; height: 16px; margin: 12px 0 10px; background: rgba(23, 19, 46, .12); border-radius: 3px; overflow: hidden; }
.messer-leiste i { position: absolute; inset: 0; background: linear-gradient(90deg, #0FB5AE 0 50%, #FFC61A 50% 72%, #E8392C 72%); clip-path: inset(0 calc(100% - var(--f, 8%)) 0 0); }
.messer-leiste u { position: absolute; left: 72%; top: 0; bottom: 0; width: 2px; background: var(--tinte); }
.messer-wort { font: 600 14px/1.3 var(--txt); }
.messer.laut { animation: wackel .4s linear 2; }
@keyframes wackel { 0%, 100% { transform: rotate(-1.5deg); } 25% { transform: rotate(-3.5deg) translateX(-3px); } 75% { transform: rotate(.5deg) translateX(3px); } }
.saal-vorn { position: absolute; left: -4%; width: 108%; max-width: none; bottom: -9vw; z-index: 3; pointer-events: none; will-change: transform; }

/* ---------- 4 · Zahlen ---------- */
.zahlen { position: relative; background: var(--gelb); padding: 20vh var(--rand); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 6vw; align-items: center; overflow: hidden; }
.zahlen-text { display: grid; gap: 22px; }
.zettel { justify-self: center; width: min(100%, 500px); background: #FFFDF6; padding: 30px 30px 24px; border-radius: 4px; box-shadow: 0 40px 60px -30px rgba(120, 80, 0, .7), 0 2px 0 rgba(0, 0, 0, .08); transform: rotate(2.2deg); font-family: var(--stp); position: relative; }
.zettel::before { content: ""; position: absolute; left: 50%; top: -16px; width: 110px; height: 34px; margin-left: -55px; background: rgba(232, 57, 44, .82); transform: rotate(-3deg); }
.zettel.ruck { animation: ruck .28s linear; }
@keyframes ruck { 0% { transform: rotate(2.2deg) translateY(0); } 30% { transform: rotate(1.6deg) translateY(5px) scale(.992); } 100% { transform: rotate(2.2deg) translateY(0); } }
.zettel-kopf { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 3px double var(--tinte); }
.zettel-liste li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; border-bottom: 1.5px dashed rgba(23, 19, 46, .35); }
.zettel-was { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.zettel-fuss { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 14px; opacity: .75; }
.stempel { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 12px 3px; border: 3px solid currentColor; border-radius: 6px; font: 700 15px/1.1 var(--stp); letter-spacing: .08em; text-transform: uppercase; color: var(--stempelrot); transform: rotate(-3deg); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='160' height='80' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='160' height='80' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stempel b { font: 900 30px/1 var(--anz); font-stretch: 80%; letter-spacing: 0; }
.stempel-blau { color: var(--stempelblau); transform: rotate(2.5deg); }
.stempel-tinte { color: var(--tinte); transform: rotate(-1.2deg); }
html.js [data-stempel] .stempel { visibility: hidden; }
html.js [data-stempel].da .stempel { visibility: visible; animation: stempeln .34s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stempeln { 0% { scale: 2.6; opacity: 0; } 55% { scale: .94; opacity: 1; } 100% { scale: 1; opacity: 1; } }

/* ---------- 5 · Rückenpoesie ---------- */
.ruecken { background: var(--kobalt); color: var(--papier); padding: 18vh var(--rand) 20vh; display: grid; justify-items: center; gap: 34px; overflow: hidden; }
.turm { display: grid; justify-items: center; gap: 5px; width: 100%; }
.tb { --hb: clamp(52px, 9.2vh, 96px); position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--hb); padding: 0 calc(var(--hb) * .3) 0 calc(var(--hb) * .42); border-radius: 4px 8px 8px 4px; color: var(--tinte); box-shadow: 0 10px 18px -8px rgba(8, 10, 60, .65), inset 0 6px 0 rgba(255, 255, 255, .22), inset 0 -7px 0 rgba(0, 0, 0, .16); will-change: transform; transition: translate .5s var(--feder); }
.tb::before { content: ""; position: absolute; left: calc(var(--hb) * .16); top: 0; bottom: 0; width: 4px; background: rgba(0, 0, 0, .18); }
.tb:hover { translate: 22px 0; }
.tb b { font: 900 calc(var(--hb) * .7)/1 var(--anz); font-stretch: 86%; text-transform: uppercase; letter-spacing: .005em; white-space: nowrap; padding-top: .06em; }
.tb i { font: 700 calc(var(--hb) * .15)/1.1 var(--stp); font-style: normal; background: #FFFDF6; color: var(--tinte); padding: 6px 7px 4px; border-radius: 2px; text-align: center; width: min-content; }
.tb-1 { width: min(74%, 560px); background: var(--gelb); margin-left: -6%; }
.tb-2 { width: min(96%, 860px); background: var(--pink); margin-left: 4%; }
.tb-3 { width: min(90%, 760px); background: #FFFDF6; margin-left: -3%; }
.tb-4 { width: min(70%, 520px); background: var(--limette); margin-left: 8%; }
.tb-5 { width: min(76%, 600px); background: var(--rot); color: var(--papier); margin-left: -5%; }
.tb-6 { width: min(92%, 800px); background: var(--tuerkis); margin-left: 3%; }
.tb-7 { width: min(100%, 1040px); background: var(--tinte); color: var(--papier); }

/* ---------- 6 · Karte holen ---------- */
.karte { background: var(--pink); padding: 20vh var(--rand) 18vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 6vw; align-items: start; }
.karte-links { display: grid; gap: 22px; justify-items: start; }
.ausweis-raum { perspective: 1100px; margin-top: 26px; width: min(100%, 440px); }
.ausweis { position: relative; aspect-ratio: 1.586; border-radius: 20px; background: var(--gelb); color: var(--tinte); padding: 7% 7% 6%; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 40px 50px -26px rgba(120, 10, 60, .75), inset 0 0 0 2px rgba(255, 255, 255, .3); transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)) rotate(-3deg); transform-style: preserve-3d; will-change: transform; overflow: hidden; container-type: inline-size; }
.ausweis-kopf { display: flex; justify-content: space-between; align-items: baseline; }
.ausweis-marke { font: 900 7cqw/1 var(--anz); font-stretch: 112%; text-transform: uppercase; }
.ausweis-art { font: 700 3.2cqw/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; }
.ausweis-name { align-self: center; font: 800 9.5cqw/1 var(--anz); font-stretch: 70%; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: clip; text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(120, 80, 0, .35); }
.ausweis-name.leer { opacity: .38; }
.ausweis-fuss { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ausweis-strich { display: flex; align-items: stretch; height: 11cqw; gap: 0; }
.ausweis-strich i { display: block; background: var(--tinte); margin-right: 2px; }
.ausweis-nr { font: 700 3.6cqw/1 var(--stp); letter-spacing: .08em; }
.ausweis-stempel { position: absolute; right: 6%; top: 30%; padding: 5px 10px 3px; border: 3px solid currentColor; border-radius: 6px; color: var(--stempelrot); font: 700 5cqw/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-12deg); visibility: hidden; }
.ausweis.gestempelt .ausweis-stempel { visibility: visible; animation: stempeln .34s cubic-bezier(.2, 1.4, .4, 1) both; }
.ausweis-glanz { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, 0) 64%); background-size: 250% 100%; background-position: var(--gx, 30%) 0; }
.formular { background: var(--blatt); border-radius: 18px; padding: clamp(24px, 3vw, 44px); display: grid; gap: 20px; box-shadow: 0 40px 60px -34px rgba(120, 10, 60, .7); }
.feld { display: grid; gap: 7px; }
.feld label, .merkliste-titel { font: 700 12px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; }
.feld input, .feld select { height: 54px; padding: 0 14px; border: 2px solid var(--tinte); border-radius: 8px; background: #FFFDF6; font: 600 17px/1 var(--txt); width: 100%; }
.feld input:focus-visible, .feld select:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 2px; }
.feld.fehler input { border-color: var(--stempelrot); background: #FFE9E4; }
.merkliste { display: grid; gap: 10px; padding: 16px; border: 2px dashed rgba(23, 19, 46, .4); border-radius: 8px; }
.merkliste-leer { font-size: 15px; opacity: .8; }
.merkliste ul { display: grid; gap: 6px; }
.merkliste li { display: flex; align-items: center; gap: 10px; font: 600 15px/1.25 var(--txt); }
.merkliste li i { flex: 0 0 auto; width: 10px; height: 26px; border-radius: 2px; }
.merkliste li button { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--txt); }
.merkliste li button:hover { background: var(--tinte); color: var(--papier); }
.formular .knopf { justify-self: start; }
.formular-meldung { min-height: 1.5em; font-weight: 700; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: var(--papier); padding: 16vh var(--rand) 130px; }
.fuss-innen { display: grid; gap: 9vh; }
.fuss-gross { font: 800 clamp(42px, 6.4vw, 100px)/.96 var(--anz); font-stretch: 78%; letter-spacing: -.012em; color: var(--gelb); }
.fuss-spalten { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 5vw; }
.fuss h2 { font: 700 13px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zeiten-stand { font: 700 11px/1 var(--stp); padding: 5px 9px 4px; border-radius: 999px; background: var(--limette); color: var(--tinte); }
.zeiten-stand.zu { background: var(--papier); color: var(--tinte); }
.zeiten-stand:empty { display: none; }
.fuss-zeiten dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 246, 229, .22); }
.fuss-zeiten dl div.heute { color: var(--gelb); font-weight: 700; }
.fuss-ort p + p { margin-top: 14px; }
.fuss a { text-underline-offset: 4px; }
.sozial { display: flex; gap: 8px; margin: -10px 0 18px -10px; }
.sozial a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s, color .3s, transform .4s var(--feder); }
.sozial a:hover { background: var(--gelb); color: var(--tinte); transform: rotate(-8deg) scale(1.06); }
.sozial svg { width: 20px; height: 20px; fill: currentColor; }
.fuss-klein { font-size: 14px; opacity: .8; margin-top: 8px; }

/* ---------- Buchkarte (geht aus dem Umschlag auf) ---------- */
.detail { position: fixed; inset: 0; z-index: 60; background: var(--blatt); color: var(--tinte); display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; padding: 100px 6vw 56px 7vw; visibility: hidden; overflow: hidden; }
.detail.offen { visibility: visible; }
.detail-zu { position: absolute; left: 32px; top: 24px; background: var(--blatt); }
.detail-zu:hover { background: var(--tinte); color: var(--papier); }
.detail-text { align-self: center; max-width: 560px; display: grid; gap: 18px; justify-items: start; }
.dm { overflow: hidden; padding: 4px 0; margin: -4px 0; max-width: 100%; }
.dm-frei { overflow: visible; }
.dm > * { will-change: transform; }
.detail-sign { font: 700 13px/1 var(--stp); letter-spacing: .08em; text-transform: uppercase; display: inline-block; padding: 7px 10px 5px; background: var(--dc, var(--tinte)); color: var(--dt, var(--papier)); border-radius: 3px; }
.detail-titel { font: 800 clamp(40px, 5vw, 80px)/.98 var(--anz); font-stretch: 78%; letter-spacing: -.012em; text-wrap: balance; }
.detail-meta { font: 700 13px/1.3 var(--stp); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.detail-klappe { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; max-width: 40ch; }
.detail-stand { min-height: 44px; display: flex; align-items: center; }
.detail-stand .stempel { visibility: hidden; font-size: 16px; }
.detail-stand .stempel.frei { color: #0B8A4B; }
.detail.offen .detail-stand .stempel.da { visibility: visible; animation: stempeln .34s cubic-bezier(.2, 1.4, .4, 1) both; }
.detail-bild { display: grid; place-items: center; min-height: 0; }
.detail-bild svg { height: min(100%, 78vh); width: auto; aspect-ratio: 480 / 720; filter: drop-shadow(0 30px 40px rgba(23, 19, 46, .25)); }

/* ---------- Psst ---------- */
.psst { position: fixed; right: 0; bottom: 20vh; z-index: 55; width: clamp(130px, 13vw, 200px); pointer-events: none; transform: translateX(160%) rotate(14deg); transition: transform .5s var(--weich); }
.psst.da { transform: translateX(22%) rotate(-7deg); transition: transform .55s var(--feder); }
.psst img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--papier); box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .5); }
.psst-blase { position: absolute; right: 76%; top: -4%; padding: 10px 16px 9px; background: var(--tinte); color: var(--papier); border-radius: 18px 18px 4px 18px; font: 900 26px/1 var(--anz); font-stretch: 90%; white-space: nowrap; transform: scale(0); transform-origin: 100% 100%; transition: transform .3s var(--weich); }
.psst.da .psst-blase { transform: scale(1) rotate(-4deg); transition: transform .5s var(--feder) .25s; }

/* ---------- Eselsohr ---------- */
.ohr { position: fixed; right: 0; bottom: 0; z-index: 45; width: var(--g, 0px); height: var(--g, 0px); display: none; filter: drop-shadow(-4px -4px 8px rgba(0, 0, 0, .3)); }
html.js .ohr { display: block; }
.ohr::before { content: ""; position: absolute; inset: 0; background: var(--tinte); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.ohr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #FFFDF6 30%, #E4D7BC 50%); clip-path: polygon(0 0, 100% 0, 0 100%); transition: background .3s; }
.ohr span { position: absolute; left: 12%; top: 12%; z-index: 1; font: 700 12px/1 var(--stp); color: var(--tinte); transform: rotate(-45deg); transform-origin: 50% 50%; opacity: var(--gz, 0); }
.ohr span::after { content: " %"; }
.ohr:hover::after { background: linear-gradient(135deg, var(--gelb) 30%, #E2A800 50%); }

/* ---------- Zeiger ---------- */
.zeiger { display: none; }
@media (pointer: fine) {
  html.js.zeiger-an .zeiger { display: block; position: fixed; left: 0; top: 0; z-index: 300; width: 58px; height: 58px; margin: -29px 0 0 -29px; pointer-events: none; will-change: transform; color: var(--tinte); }
  .zeiger-ring { position: absolute; inset: 0; border: 1.5px solid var(--zf, #17132E); border-radius: 50%; transition: transform .5s var(--weich), background-color .4s var(--weich), border-color .4s var(--weich); }
  .zeiger-punkt { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--zf, #17132E); transition: transform .4s var(--weich), background-color .3s; }
  .zeiger-wort { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 700 9.5px/1.2 var(--stp); letter-spacing: .08em; text-transform: uppercase; color: var(--zb, #fff); transform: scale(0); transition: transform .45s var(--weich); }
  .zeiger.ruecken-z .zeiger-ring { transform: scale(.72); }
  .zeiger.knopf-z .zeiger-ring { transform: scale(.5); }
  .zeiger.knopf-z .zeiger-punkt { transform: scale(0); }
  .zeiger.auf .zeiger-ring { transform: scale(1.8); background: var(--zf, #17132E); }
  .zeiger.auf .zeiger-punkt { transform: scale(0); }
  .zeiger.auf .zeiger-wort { transform: scale(1); }
}

/* ---------- Rechtliches ---------- */
.recht-seite { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; display: grid; gap: 16px; }
.recht-seite h1 { font: 800 clamp(40px, 7vw, 72px)/1 var(--anz); font-stretch: 78%; margin-top: 30px; }
.recht-seite h2 { font: 800 26px/1.1 var(--anz); font-stretch: 84%; margin-top: 22px; }
.recht-seite .zurueck { font-weight: 700; }

/* ---------- Schmal ---------- */
@media (max-width: 1100px) {
  .menue { display: none; }
  .kopf { grid-template-columns: 1fr auto; }
}
@media (max-width: 899px) {
  :root { --H: min(74vw, 38svh); --cy: 43svh; --rand: 20px; }
  .kopf { height: 64px; padding: 0 16px; }
  .marke-wort { font-size: 18px; }
  .marke-wort small { display: none; }
  .pegel, .stapel-wort { display: none; }
  .knopf-kopf { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .kopf-rechts { gap: 8px; }
  .wort { top: calc(var(--cy) - var(--H) / 2 - 15svh); }
  .wort-w { font-size: min(22svh, 30vw); }
  .zeile { top: calc(var(--cy) + var(--H) / 2 + 30px); gap: 7px; }
  .pfeil { top: auto; bottom: 74px; width: 44px; height: 44px; }
  .pfeil-l { left: 16px; } .pfeil-r { right: 16px; }
  .regal-fuss-l { left: 20px; right: 20px; bottom: 136px; text-align: center; }
  .regal-satz { max-width: none; font-size: 15px; }
  .regal-fuss-r { left: 0; right: 0; bottom: 80px; justify-items: center; }
  .regal-hinweis { display: none; }
  .reiter button { height: 30px; padding: 0 9px; font-size: 11px; }
  .reiter-marke { height: 30px; }
  .kapitel-auftakt { padding: 16vh var(--rand) 8vh; }
  .textseite { min-height: 0; padding: 44px 24px 60px; }
  .buch-innen { border-radius: 0; margin: 0 calc(var(--rand) * -1); }
  .saal { min-height: 0; padding-bottom: 46vw; }
  .saal-bild img { object-position: 58% 50%; }
  .saal-dunkel { background: linear-gradient(180deg, rgba(20, 10, 4, .82), rgba(20, 10, 4, .55) 55%, rgba(20, 10, 4, .1)); }
  .saal-text { padding-top: 14vh; }
  .saal-vorn { width: 160%; left: -30%; bottom: -16vw; }
  .zahlen, .karte { grid-template-columns: 1fr; padding: 14vh var(--rand); gap: 44px; }
  .zettel { padding: 26px 20px 20px; }
  .stempel b { font-size: 24px; }
  .ruecken { padding: 14vh 14px 16vh; }
  .tb { --hb: clamp(40px, 11.5vw, 70px); }
  .tb-1, .tb-2, .tb-3, .tb-4, .tb-5, .tb-6 { margin-left: 0; }
  .tb i { display: none; }
  .fuss-spalten { grid-template-columns: 1fr; gap: 44px; }
  .detail { grid-template-columns: 1fr; padding: 84px 22px 40px; gap: 24px; overflow-y: auto; align-content: start; }
  .detail-bild { order: -1; }
  .detail-bild svg { height: 44svh; }
  .detail-zu { left: 16px; top: 18px; }
  .psst { bottom: 26vh; }
}
@media (max-width: 899px) and (max-height: 640px) {
  :root { --H: min(60vw, 36svh); --cy: 44svh; }
  .regal-fuss-l, .zeile-sub { display: none; }
  .regal-fuss-r { bottom: 8px; }
  .pfeil { bottom: 46px; }
}
@media (max-height: 620px) and (min-width: 900px) {
  :root { --H: min(38vh, 30vw); --cy: 47vh; }
  .regal-fuss { bottom: 12px; }
  .zeile { gap: 5px; top: calc(var(--cy) + var(--H) / 2 + 24px); }
  .zeile-stand { display: none; }
  .regal-hinweis { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-zeilen] .zm > span { transform: none; transition: none; }
  .regal-hinweis i, .messer.laut, .zettel.ruck { animation: none; }
  html.js [data-stempel].da .stempel, .ausweis.gestempelt .ausweis-stempel, .detail.offen .detail-stand .stempel.da { animation: none; }
  .lade, .psst, .psst.da, .tb, .knopf { transition: none; }
}

/* ---------- Nachträge ---------- */
/* Wenn das Buch aufgeht, räumt alles andere die Bühne (js/regal.js setzt --qa von 0 bis 1) */
.wort { translate: 0 calc(var(--qa, 0) * -80vh); }
.zeile, .pfeil, .regal-fuss, .brett { translate: 0 calc(var(--qa, 0) * 52vh); }
.raeumt .zeile, .raeumt .pfeil, .raeumt .regal-fuss { pointer-events: none; }
@media (pointer: fine) {
  html.js.zeiger-an .zeiger { mix-blend-mode: difference; }
  html.js.zeiger-an .zeiger .zeiger-ring { border-color: #fff; }
  html.js.zeiger-an .zeiger .zeiger-punkt { background: #fff; }
  html.js.zeiger-an .zeiger.auf { mix-blend-mode: normal; }
  html.js.zeiger-an .zeiger.auf .zeiger-ring { border-color: var(--zf); background: var(--zf); }
}

/* Umschläge der zweiten Lieferung */
.u-western .u-titel { font-weight: 800; font-stretch: 60%; font-size: 7.6cqw; top: 5.5cqw; text-transform: uppercase; }
.u-western .u-autor { top: auto; bottom: 6.5cqw; }
.u-maerchen .u-titel { font-weight: 600; font-stretch: 92%; font-size: 10.4cqw; top: 12cqw; }
.u-lyrik .u-titel { font-weight: 300; font-stretch: 100%; font-size: 10.6cqw; }
.u-humor .u-titel { font-weight: 900; font-stretch: 72%; font-size: 10.4cqw; }
.u-winter .u-titel { font-weight: 500; font-stretch: 100%; font-size: 8.4cqw; top: 12cqw; }
.u-berge .u-titel { font-weight: 800; font-stretch: 66%; font-size: 9.4cqw; text-transform: uppercase; }
.u-sport .u-titel { font-weight: 900; font-stretch: 90%; font-size: 15.5cqw; text-transform: uppercase; }
.u-ordnung .u-titel { font-weight: 700; font-stretch: 70%; font-size: 8.2cqw; top: 11.5cqw; }
.u-kunst .u-autor, .u-kunst .u-titel { text-align: right; left: 46cqw; }
.u-kunst .u-titel { font-weight: 900; font-stretch: 70%; font-size: 8.4cqw; text-transform: uppercase; }
.u-tiere .u-titel { font-weight: 600; font-stretch: 80%; font-size: 12cqw; }
.u-technik .u-titel { font-weight: 800; font-stretch: 100%; font-size: 10.8cqw; }
.u-frueher .u-autor { top: 31cqw; }
.u-frueher .u-titel { top: 37.5cqw; font-weight: 800; font-stretch: 66%; font-size: 8.4cqw; }
