/* Roleplay Studio — Startseite. Fünf Bilder: Lesesaal bei Nacht · Schreibpult · Marmorpapier mit rotem Faden · Regal vor
   Tapete · Leihkarten auf der Schreibunterlage.
   Keine fremden Dateien: Schriften aus /fonts (wie im Studio), Texturen als eigene SVGs. */
:root {
  --nacht: #0c0603; --holz-dunkel: #1d0f07; --tinte: #2c1808; --tinte-weich: #5a3a1a;
  --papier: #f6e9cb; --papier-tief: #e6d09d; --creme: #f6e6c4; --glut: #ff9a2e; --glut-tief: #b5560f; --gold: #f0c463;
  --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --alt: "IM Fell English", "EB Garamond", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --weich: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--nacht); color: var(--creme); font: 400 19px/1.55 var(--serif); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--papier); color: var(--tinte); border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #ffcf7a; outline-offset: 3px; border-radius: 4px; }
main { transition: filter 1.2s ease; overflow-x: clip; }
/* Lichtschein und gedrehte Zettel ragen über ihre Abschnitte hinaus — jeder Abschnitt schneidet am eigenen Rand ab,
   sonst wird die Seite auf dem Handy breiter als der Bildschirm. */
.pult, .regal, .tisch, .fuss { overflow: hidden; }
body.nacht main { filter: brightness(.5) saturate(.7); }
body.dialog-offen { overflow: hidden; }

.feder { font: 500 27px/1.1 var(--hand); color: #ffd79c; letter-spacing: .01em; }
.feder.dunkel { color: #6b2f0c; }
h2 { font: 400 clamp(32px, 4.4vw, 54px)/1.08 var(--alt); letter-spacing: -.005em; text-wrap: balance; }
h2 .zeile { display: block; }

/* Einblenden beim Hereinrollen (nur mit Skript) */
.js .zeig { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--weich), transform .8s var(--weich); transition-delay: calc(var(--i, 0) * 70ms); }
.js .zeig.da { opacity: 1; transform: none; }

/* ---------- Knöpfe ---------- */
.knopf { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 2px 9px; min-height: 48px; padding: 11px 22px; border-radius: 8px; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 19px/1.15 var(--serif); border: 1px solid transparent; transition: transform .18s var(--weich), box-shadow .3s ease, filter .25s ease, background .25s ease; -webkit-tap-highlight-color: transparent; }
.knopf:has(small) { flex-direction: column; flex-wrap: nowrap; }
.knopf small { flex: none; font: 500 19px/1.1 var(--hand); opacity: .9; }
.knopf:active { transform: translateY(1px) scale(.99); }
.knopf.glut { color: #fff4dc; text-shadow: 0 1px 0 rgba(70, 25, 0, .7); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #f08a24 0%, #c25c12 48%, #8c3a08 100%); border-color: #ffbf6b;
  box-shadow: 0 0 0 1px rgba(60, 20, 0, .8), 0 4px 0 #5a2404, 0 14px 34px -8px rgba(255, 140, 30, .75), 0 0 60px -6px rgba(255, 150, 40, .5), inset 0 1px 0 rgba(255, 230, 170, .6); }
.knopf.glut::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 240, 200, .45) 48%, transparent 62%); transform: translateX(-120%); animation: glanz 4.6s ease-in-out infinite; }
.knopf.glut:hover, .knopf.glut:focus-visible { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(60, 20, 0, .8), 0 6px 0 #5a2404, 0 18px 44px -6px rgba(255, 150, 40, .95), 0 0 90px -4px rgba(255, 160, 50, .7), inset 0 1px 0 rgba(255, 230, 170, .7); }
.knopf.gross { min-height: 68px; padding: 14px 34px; font-size: 25px; border-radius: 10px; }
.knopf.klein { min-height: 42px; padding: 8px 18px; font-size: 18px; }
.knopf.voll { width: 100%; min-height: 60px; font-size: 22px; }
.knopf.leise { color: #ffe6bd; background: rgba(30, 14, 6, .45); border-color: rgba(255, 214, 150, .42); backdrop-filter: blur(4px); }
.knopf.leise:hover, .knopf.leise:focus-visible { background: rgba(70, 36, 12, .7); border-color: rgba(255, 214, 150, .85); transform: translateY(-1px); }
.knopf.papier { color: var(--tinte); background: linear-gradient(180deg, #f8ebc9, #e7d19f); border-color: rgba(90, 55, 20, .5); box-shadow: 0 3px 0 rgba(60, 30, 8, .5); }
.knopf.papier:hover, .knopf.papier:focus-visible { transform: translateY(-1px); filter: brightness(1.04); }
.knopf.tinte { width: 100%; color: #fbeccb; background: linear-gradient(180deg, #4a2a12, #2a1608); border-color: #1a0c04; box-shadow: 0 3px 0 #120803, 0 12px 22px -10px rgba(0, 0, 0, .7); }
.knopf.tinte:hover, .knopf.tinte:focus-visible { transform: translateY(-2px) rotate(-.4deg); filter: brightness(1.25); }
.knopf[disabled] { opacity: .75; cursor: progress; }
.knopf.laedt span::after { content: " …"; }
.textknopf { border: 0; background: none; padding: 0; color: #8a4a12; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes glanz { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- Kopfleiste ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 44px); transition: background .4s ease, box-shadow .4s ease, padding .3s ease; }
.nav.fest { padding-top: 9px; padding-bottom: 9px; background: linear-gradient(180deg, rgba(24, 11, 4, .94), rgba(24, 11, 4, .82)); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255, 190, 100, .22), 0 14px 34px -14px rgba(0, 0, 0, .9); }
.marke { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 400 25px/1 var(--alt); color: #ffe7b8; text-shadow: 0 0 18px rgba(255, 160, 50, .55); white-space: nowrap; }
.marke-flamme { position: relative; width: 13px; height: 22px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; background: radial-gradient(60% 70% at 50% 72%, #fffbe2 0 22%, #ffd45e 48%, #ff8a1c 80%, rgba(255, 90, 0, 0)); box-shadow: 0 0 18px 4px rgba(255, 160, 50, .6); transform-origin: 50% 100%; animation: flacker 1.8s ease-in-out infinite; }
.nav-links { display: flex; gap: clamp(12px, 2.2vw, 30px); margin-left: auto; }
.nav-links a { position: relative; padding: 8px 2px; text-decoration: none; font-size: 19px; color: #f1dcb4; opacity: .88; transition: opacity .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: linear-gradient(90deg, transparent, #ffc978, transparent); transform: scaleX(0); transition: transform .3s var(--weich); }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-tun { display: flex; gap: 10px; align-items: center; }
.nav-tun .leise { min-height: 42px; padding: 8px 16px; font-size: 18px; }

/* ============ 1 · Die Bibliothek bei Nacht ============ */
.halle { --px: 0; --py: 0; position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #0a0503; isolation: isolate; }
.halle-buehne, #kerzen { position: absolute; inset: -16px; transform: translate3d(calc(var(--px) * -11px), calc(var(--py) * -7px), 0); transition: transform .5s ease-out; }
.halle-buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#dunkel { image-rendering: auto; }
#kerzen { pointer-events: none; z-index: 2; }
#staub { position: absolute; inset: 0; pointer-events: none; }
#staub i { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff0c8 0, rgba(255, 196, 110, .7) 40%, rgba(255, 170, 70, 0) 70%); opacity: 0; mix-blend-mode: screen; animation: staub var(--dauer) linear var(--start) infinite; }
@keyframes staub { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: .9; } 70% { opacity: .55; } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0); } }

/* Kerze: ein Knopf — die Flamme lässt sich auspusten und wieder anzünden */
.kerze { position: absolute; width: 46px; height: 80px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform: translate(-50%, -100%); -webkit-tap-highlight-color: transparent; }
.kerze i { position: absolute; left: 50%; display: block; pointer-events: none; }
.kerze .k-wachs { bottom: 0; width: 11px; height: 30px; margin-left: -5.5px; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #b9a47c, #fbf0d4 45%, #cdb88e); box-shadow: inset 0 7px 7px -2px rgba(255, 180, 80, .8); }
.kerze .k-docht { bottom: 29px; width: 1.6px; height: 6px; margin-left: -.8px; background: #24150a; border-radius: 1px; }
.kerze .k-flamme { bottom: 32px; width: 13px; height: 25px; margin-left: -6.5px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; transform-origin: 50% 100%;
  background: radial-gradient(60% 72% at 50% 74%, #fffbe6 0 20%, #ffe07a 42%, #ff9a26 74%, rgba(255, 80, 0, 0) 100%); filter: drop-shadow(0 0 6px rgba(255, 170, 60, .95));
  animation: flacker var(--d, 1.8s) ease-in-out var(--v, 0s) infinite; transition: opacity .35s ease, transform .35s ease; }
.kerze .k-schein { bottom: -41px; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .62), rgba(255, 160, 60, .2) 42%, rgba(255, 130, 30, 0) 72%); animation: atme calc(var(--d, 1.8s) * 1.7) ease-in-out var(--v, 0s) infinite; transition: opacity .5s ease; }
.kerze .k-rauch { bottom: 36px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(210, 200, 190, .55); filter: blur(3px); opacity: 0; }
.kerze.aus .k-flamme { opacity: 0; transform: scale(.2, .1); animation-play-state: paused; }
.kerze.aus .k-schein { opacity: 0; }
.kerze.zuend .k-flamme, .kerze.zuend .k-schein { opacity: 0; }
.kerze.puff .k-rauch { animation: rauch 1.6s ease-out forwards; }
.kerze:hover .k-flamme { filter: drop-shadow(0 0 10px rgba(255, 190, 80, 1)); }
.kerze:focus-visible { outline: 2px solid #ffd58a; outline-offset: -6px; border-radius: 10px; }
.kerze.gross { position: relative; display: block; margin: 0 auto; transform: scale(1.9); transform-origin: 50% 100%; }
.kerze.deko { position: relative; flex: none; width: 30px; height: 62px; transform: none; pointer-events: none; cursor: default; }
.kerze.deko .k-schein { bottom: -186px; width: 460px; height: 460px; margin-left: -230px; background: radial-gradient(closest-side, rgba(255, 196, 110, .46), rgba(255, 150, 50, .14) 45%, rgba(255, 130, 30, 0) 72%); }
/* Laterne an der Kette: ein Knopf wie die Kerze — pendelt leicht, lässt sich löschen und wieder anzünden */
.laterne { --kette: 120px; position: absolute; width: 58px; height: calc(var(--kette) + 82px); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform: translateX(-50%); transform-origin: 50% 0; animation: pendel var(--p, 6s) ease-in-out var(--v, 0s) infinite; -webkit-tap-highlight-color: transparent; }
.laterne i { position: absolute; left: 50%; display: block; pointer-events: none; }
.laterne .l-kette { top: 0; width: 2px; height: var(--kette); margin-left: -1px; background: repeating-linear-gradient(180deg, #a07a34 0 4px, #3a2a10 4px 6px); }
.laterne .l-dach { top: calc(var(--kette) - 3px); width: 36px; height: 15px; margin-left: -18px; background: linear-gradient(180deg, #e0bc66, #7a561a); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.laterne .l-glas { top: calc(var(--kette) + 12px); width: 30px; height: 46px; margin-left: -15px; border: 2px solid #8a651f; border-width: 2px 3px; border-radius: 3px; overflow: visible;
  background: linear-gradient(90deg, rgba(255, 196, 100, .34), rgba(255, 226, 160, .14) 50%, rgba(255, 196, 100, .34)); box-shadow: inset 0 0 14px rgba(255, 176, 66, .7), 0 0 0 1px #2a1a08; transition: background .5s ease, box-shadow .5s ease; }
.laterne .l-glas::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: #7a561a; opacity: .75; }
.laterne .l-fuss { top: calc(var(--kette) + 58px); width: 38px; height: 9px; margin-left: -19px; border-radius: 2px 2px 7px 7px; background: linear-gradient(180deg, #d0a650, #5a3d10); }
.laterne .k-flamme { bottom: 4px; width: 12px; height: 23px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; transform-origin: 50% 100%;
  background: radial-gradient(60% 72% at 50% 74%, #fffbe6 0 20%, #ffe07a 42%, #ff9a26 74%, rgba(255, 80, 0, 0) 100%); filter: drop-shadow(0 0 7px rgba(255, 170, 60, .95)); animation: flacker var(--d, 1.8s) ease-in-out var(--v, 0s) infinite; transition: opacity .35s ease, transform .35s ease; }
.laterne .k-schein { top: calc(var(--kette) - 62px); width: 200px; height: 200px; margin-left: -100px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .6), rgba(255, 160, 60, .2) 42%, rgba(255, 130, 30, 0) 72%); animation: atme calc(var(--d, 1.8s) * 1.7) ease-in-out var(--v, 0s) infinite; transition: opacity .5s ease; }
.laterne .k-rauch { top: calc(var(--kette) + 4px); width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(210, 200, 190, .55); filter: blur(3px); opacity: 0; }
.laterne.aus .k-flamme { opacity: 0; transform: scale(.2, .1); animation-play-state: paused; }
.laterne.aus .k-schein, .laterne.zuend .k-schein, .laterne.zuend .k-flamme { opacity: 0; }
.laterne.aus .l-glas { background: rgba(30, 22, 14, .55); box-shadow: inset 0 0 8px rgba(0, 0, 0, .6), 0 0 0 1px #2a1a08; }
.laterne.puff .k-rauch { animation: rauch 1.6s ease-out forwards; }
.laterne:hover .k-flamme { filter: drop-shadow(0 0 11px rgba(255, 190, 80, 1)); }
.laterne:focus-visible { outline: 2px solid #ffd58a; outline-offset: -4px; border-radius: 10px; }
@keyframes pendel { 0%, 100% { transform: translateX(-50%) rotate(-1.5deg); } 50% { transform: translateX(-50%) rotate(1.7deg); } }
@keyframes flacker { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 18% { transform: scale(.93, 1.08) rotate(2.5deg) translateX(.4px); } 39% { transform: scale(1.06, .94) rotate(-1.5deg); } 58% { transform: scale(.96, 1.05) rotate(3deg) translateX(-.4px); } 80% { transform: scale(1.03, .97) rotate(-3deg); } }
@keyframes atme { 0%, 100% { opacity: .8; transform: scale(1); } 35% { opacity: 1; transform: scale(1.06); } 62% { opacity: .7; transform: scale(.96); } }
@keyframes rauch { 0% { opacity: .75; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(9px, -64px) scale(3.4); } }

/* Der Textblock liegt über den Lichtern, fängt aber keine Klicks ab — Laternen und Leuchter daneben bleiben bedienbar */
.halle-text { pointer-events: none; }
.halle-text a, .halle-text button { pointer-events: auto; }
.halle-text { position: relative; z-index: 3; width: min(880px, 92vw); padding: 120px 0 110px; text-align: center; transform: translate3d(calc(var(--px) * 7px), calc(var(--py) * 5px), 0); transition: transform .5s ease-out; }
.halle-text::before { content: ""; position: absolute; inset: 70px -10% 30px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(5, 6, 16, .78), rgba(5, 6, 16, .5) 55%, rgba(5, 6, 16, 0)); filter: blur(8px); }
.halle-text .feder { animation: herein 1s var(--weich) .25s both; }
h1 { margin: 10px 0 20px; font: 400 clamp(52px, 9.4vw, 122px)/.98 var(--alt); letter-spacing: -.012em; }
h1 .gold { display: block; padding: .06em .12em .1em; color: transparent; background: linear-gradient(100deg, #b97a22 0%, #ffe9b0 22%, #f3c466 40%, #fff3cf 52%, #e2a544 68%, #a8651a 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 rgba(50, 20, 3, .95)) drop-shadow(0 0 34px rgba(255, 160, 50, .45)); animation: herein 1.1s var(--weich) both, schimmer 9s ease-in-out 1.4s infinite; }
h1 .gold:nth-child(1) { animation-delay: .4s, 1.4s; }
h1 .gold:nth-child(2) { animation-delay: .62s, 2.2s; }
.halle-lead { max-width: 660px; margin: 0 auto 32px; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: #f3e0ba; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); text-wrap: pretty; animation: herein 1s var(--weich) .85s both; }
.halle-lead em { font-style: italic; color: #ffd98f; }
.halle-tun { display: flex; flex-wrap: wrap; gap: 16px 20px; justify-content: center; animation: herein 1s var(--weich) 1.05s both; }
.halle-wink { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; text-align: center; font: 500 22px/1 var(--hand); color: #ffd79c; opacity: 0; animation: wink 9s ease 2.6s forwards; pointer-events: none; text-shadow: 0 1px 8px #000; }
.maus .nur-finger, .finger .nur-maus { display: none; }
@keyframes herein { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes schimmer { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@keyframes wink { 0% { opacity: 0; } 12%, 78% { opacity: .85; } 100% { opacity: 0; } }

/* ============ 2 · Das Schreibpult ============ */
.pult { position: relative; padding: clamp(70px, 9vw, 130px) clamp(16px, 4vw, 44px) clamp(80px, 10vw, 140px); color: var(--creme);
  background: linear-gradient(180deg, #0a0503 0, rgba(10, 5, 3, 0) 150px), radial-gradient(90% 70% at 62% 44%, rgba(255, 170, 70, .34), rgba(255, 150, 50, 0) 70%), url(/site/holz.svg) center / cover, #3a1c0b; background-blend-mode: normal, screen, multiply, normal; }
.pult::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 60% 45%, rgba(0, 0, 0, 0) 30%, rgba(8, 3, 1, .82) 100%); }
.pult > * { position: relative; z-index: 1; }
.pult-kopf { max-width: 1180px; margin: 0 auto clamp(30px, 4vw, 54px); }
.pult-kopf h2 { margin-top: 6px; color: #ffe9bf; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.pult-flaeche { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(230px, .62fr) minmax(0, 1.7fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.schritte { display: grid; gap: 26px; counter-reset: s; }
.schritte li { display: grid; gap: 5px; padding-left: 4px; }
.schritte b { display: flex; align-items: center; gap: 12px; font: 400 26px/1.15 var(--alt); color: #ffe2a8; }
.schritte b i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 22px/1 var(--hand); color: #3a1c08; background: radial-gradient(circle at 35% 30%, #ffe9b6, #e9b659); box-shadow: 0 0 22px rgba(255, 170, 60, .5), inset 0 -2px 4px rgba(120, 60, 10, .5); }
.schritte span { padding-left: 52px; font-size: 18.5px; line-height: 1.45; color: #e8d2a8; text-wrap: pretty; }

.demo { position: relative; }
.demo-buch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 14px 16px 18px; border-radius: 10px 10px 12px 12px; transform: rotate(-1.1deg); transition: transform .6s var(--weich);
  background: linear-gradient(180deg, #5b2f14, #3b1c0a); box-shadow: 0 2px 0 #6f3d1c inset, 0 50px 80px -30px rgba(0, 0, 0, .95), 0 0 120px -20px rgba(255, 150, 40, .35); }
.demo:hover .demo-buch { transform: rotate(-.3deg) translateY(-4px); }
.seite { position: relative; min-height: 440px; padding: 26px 30px 44px; color: #33210f; font: 400 19px/1.5 var(--serif); text-align: justify; hyphens: auto;
  background: url(/site/papier.svg), linear-gradient(90deg, #efdcae, #f8ecd0 30%, #f6e8c8); }
.seite.links { border-radius: 4px 0 0 6px; box-shadow: inset -34px 0 38px -26px rgba(90, 50, 15, .55), -3px 3px 0 #e4cf9f, -6px 6px 0 #d9c18c; }
.seite.rechts { border-radius: 0 4px 6px 0; background: url(/site/papier.svg), linear-gradient(270deg, #efdcae, #f8ecd0 30%, #f6e8c8); box-shadow: inset 34px 0 38px -26px rgba(90, 50, 15, .55), 3px 3px 0 #e4cf9f, 6px 6px 0 #d9c18c; }
.falz { position: absolute; left: 50%; top: 14px; bottom: 18px; width: 2px; margin-left: -1px; background: linear-gradient(180deg, rgba(60, 30, 8, .5), rgba(60, 30, 8, .2)); }
.kolumne { font: italic 400 13.5px/1 var(--serif); letter-spacing: .06em; text-align: center; color: #8a6a3e; margin-bottom: 18px; }
.kapitel { font: 400 27px/1.1 var(--alt); text-align: center; color: #3a1f0a; margin-bottom: 16px; }
.kapitel span { display: block; font: 400 12.5px/1.6 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: #9a6a2e; }
.satz { min-height: 1.5em; margin-bottom: 14px; }
.hand { min-height: 1.3em; margin: 4px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid rgba(40, 70, 130, .32); font: 500 27px/1.2 var(--hand); color: #23407a; text-align: left; hyphens: manual; transform: rotate(-.6deg); }
.schreibt::after { content: ""; display: inline-block; width: 2px; height: .95em; margin-left: 2px; vertical-align: -.12em; background: currentColor; animation: blink .8s steps(2) infinite; }
.skizze.schreibt::after { display: none; }
.hand.schreibt::after { content: "✒"; width: auto; height: auto; background: none; font: 400 19px/1 var(--serif); animation: none; transform: translateY(-4px); }
.seitenzahl { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 400 14px/1 var(--serif); color: #8a6a3e; }
.skizze { margin: 6px 0 0; color: #453a30; opacity: 0; transition: opacity .5s ease; }
.skizze.fertig { opacity: 1; }
.skizze svg { display: block; width: 100%; height: auto; }
.skizze .st { stroke-dasharray: 520; stroke-dashoffset: 520; }
.gezeichnet .skizze .st { animation: zeichne 1.5s ease forwards; }
.skizze .st:nth-child(1) { animation-delay: .1s; } .skizze .st:nth-child(2) { animation-delay: .5s; } .skizze .st:nth-child(3) { animation-delay: 1s; } .skizze .st:nth-child(4) { animation-delay: 1.5s; } .skizze .st:nth-child(5) { animation-delay: 2s; }
.skizze .st:nth-child(6) { animation-delay: 2.5s; } .skizze .st:nth-child(7) { animation-delay: 3s; } .skizze .st:nth-child(8) { animation-delay: 3.5s; } .skizze .st:nth-child(9) { animation-delay: 4s; } .skizze .st:nth-child(10) { animation-delay: 4.4s; }
.skizze figcaption { margin-top: 2px; font: 500 17px/1.1 var(--hand); text-align: center; color: #8a6a3e; }
@keyframes zeichne { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.demo-leiste { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: flex-end; align-items: center; margin-top: 26px; }

/* Kerze auf dem Pult und am Dialog (nicht bedienbar) */
.demo-kerze { position: absolute; z-index: 3; top: -64px; left: -26px; width: 44px; height: 118px; pointer-events: none; }
.demo-kerze i { position: absolute; left: 50%; display: block; }
.demo-kerze .k-teller { bottom: -4px; width: 60px; height: 12px; margin-left: -30px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #d8a85a, #7a4a1c 70%); box-shadow: 0 8px 14px rgba(0, 0, 0, .6); }
.demo-kerze .k-wachs { bottom: 2px; width: 24px; height: 58px; margin-left: -12px; border-radius: 5px 5px 2px 2px; background: linear-gradient(90deg, #c2ad84, #fbf1d6 45%, #d3be94); box-shadow: inset 0 10px 12px -2px rgba(255, 180, 80, .8); }
.demo-kerze .k-docht { bottom: 59px; width: 2px; height: 9px; margin-left: -1px; background: #24150a; border-radius: 1px; }
.demo-kerze .k-flamme { bottom: 64px; width: 19px; height: 38px; margin-left: -9.5px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; transform-origin: 50% 100%; background: radial-gradient(60% 72% at 50% 74%, #fffbe6 0 20%, #ffe07a 42%, #ff9a26 74%, rgba(255, 80, 0, 0) 100%); filter: drop-shadow(0 0 10px rgba(255, 170, 60, .95)); animation: flacker 2s ease-in-out infinite; }
.demo-kerze .k-schein { bottom: -160px; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 206, 120, .5), rgba(255, 160, 60, .15) 45%, rgba(255, 130, 30, 0) 72%); animation: atme 3.3s ease-in-out infinite; }

/* ============ 3 · Marmorpapier und roter Faden ============ */
.ranken { position: relative; padding: clamp(80px, 9vw, 130px) clamp(16px, 4vw, 44px) clamp(110px, 12vw, 170px); overflow: hidden; color: var(--creme); isolation: isolate; background: #123a40; }
.ranken::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 130px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(8, 3, 1, .9), rgba(8, 3, 1, 0)); }
.marmor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.ranken::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 34%, rgba(6, 26, 32, .18), rgba(3, 14, 18, .74) 100%); }
.faden { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.faden path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.faden .f-schatten { stroke: rgba(0, 0, 0, .5); stroke-width: 9; transform: translate(3px, 6px); filter: blur(2.5px); }
.faden .f-band { stroke: #b3261e; stroke-width: 6.5; }
.faden .f-glanz { stroke: rgba(255, 176, 150, .55); stroke-width: 1.4; transform: translate(-1px, -1.6px); }
.faden .quaste circle, .faden .quaste rect { fill: #b3261e; } .faden .quaste rect { fill: #e0bc66; }
.faden .quaste path { stroke: #b3261e; stroke-width: 2.6; }
.js .faden > path { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); }
.js .waechst .faden > path { animation: wachs 3.8s cubic-bezier(.4, .1, .3, 1) .2s forwards; }
.js .faden .quaste { opacity: 0; transition: opacity .7s ease 3.7s; }
.js .waechst .faden .quaste { opacity: 1; }
@keyframes wachs { to { stroke-dashoffset: 0; } }
.funken { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.funken i { position: absolute; display: block; border-radius: 50%; background: radial-gradient(circle, #fff6d0 0, rgba(240, 196, 99, .85) 40%, rgba(240, 196, 99, 0) 70%); opacity: .1; animation: funkel var(--t) ease-in-out var(--v) infinite; }
@keyframes funkel { 0%, 100% { opacity: .08; transform: scale(.6); } 50% { opacity: .95; transform: scale(1.25); } }
.ranken-kopf { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto clamp(44px, 5vw, 74px); text-align: center; }
.ranken-kopf::before { content: ""; position: absolute; inset: -34px 6% -30px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(7, 30, 36, .94) 40%, rgba(7, 30, 36, .7) 70%, rgba(7, 30, 36, 0)); filter: blur(12px); }
.ranken-kopf h2 { margin-top: 6px; color: #ffe9bf; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.ranken-kopf .feder { color: #f0c463; }
.flugbuecher { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(34px, 4.6vw, 64px) clamp(22px, 3vw, 44px); }
.flugbuch { --rot: -3deg; position: relative; outline: none; perspective: 1100px; }
.flugbuch:nth-child(2n) { --rot: 2.5deg; margin-top: 34px; }
.flugbuch:nth-child(3n) { --rot: -1.5deg; margin-top: -10px; }
.flugbuch:nth-child(5) { --rot: 3.5deg; }
.fb-innen { position: relative; display: grid; grid-template-columns: 1fr 1fr; transform: rotate(var(--rot)); transform-style: preserve-3d; transition: transform .55s var(--weich), filter .4s ease; animation: schweb 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); filter: drop-shadow(0 22px 20px rgba(0, 10, 12, .6)); }
.fb-innen::before { content: ""; position: absolute; inset: 8px -7px -11px; z-index: -1; border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, #5a2a16, #2e140a); transform: translateZ(-2px); }
/* Lesebändchen: dasselbe Rot wie der Faden */
.fb-innen::after { content: ""; position: absolute; left: calc(50% - 5px); top: calc(100% + 6px); width: 10px; height: 40px; z-index: -1; background: linear-gradient(90deg, #8a1a14, #c9352b 50%, #8a1a14); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.fb-l, .fb-r { min-height: 216px; padding: 22px 18px 24px; background: url(/site/papier.svg), linear-gradient(90deg, #f1dcaa, #faedcf); transition: transform .55s var(--weich); }
.fb-l { display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; border-radius: 4px 0 0 8px; transform-origin: 100% 50%; transform: rotateY(17deg); box-shadow: inset -24px 0 26px -18px rgba(100, 50, 12, .6), 0 4px 0 #e2c98f, 0 8px 0 #d3b677; }
.fb-r { display: grid; align-content: center; border-radius: 0 4px 8px 0; background: url(/site/papier.svg), linear-gradient(270deg, #f1dcaa, #faedcf); transform-origin: 0 50%; transform: rotateY(-17deg); box-shadow: inset 24px 0 26px -18px rgba(100, 50, 12, .6), 0 4px 0 #e2c98f, 0 8px 0 #d3b677; }
.fb-l svg { width: 58px; height: 58px; color: #8a3a12; }
.fb-l h3 { font: 400 23px/1.12 var(--alt); color: #2c1406; text-wrap: balance; hyphens: manual; }
.fb-r p { font-size: 16.5px; line-height: 1.42; color: #40260f; text-wrap: pretty; hyphens: auto; }
.fremd { font-style: italic; color: #7a2d0c; white-space: nowrap; }
.flugbuch:hover .fb-innen, .flugbuch:focus-visible .fb-innen { transform: rotate(0deg) translateY(-10px) scale(1.045); animation-play-state: paused; filter: drop-shadow(0 34px 26px rgba(0, 10, 12, .7)); }
.flugbuch:hover .fb-l, .flugbuch:focus-visible .fb-l { transform: rotateY(5deg); }
.flugbuch:hover .fb-r, .flugbuch:focus-visible .fb-r { transform: rotateY(-5deg); }
.flugbuch:focus-visible .fb-innen { outline: 3px solid #fff0c4; outline-offset: 8px; border-radius: 8px; }
@keyframes schweb { 0%, 100% { translate: 0 0; } 50% { translate: 0 -11px; } }

/* ============ 4 · Das Regal vor der Tapete ============ */
.regal { position: relative; padding: clamp(80px, 9vw, 130px) clamp(12px, 3vw, 40px) clamp(70px, 8vw, 120px); isolation: isolate;
  background:
    radial-gradient(circle, rgba(226, 190, 112, .16) 0 1.6px, transparent 2.2px) 0 0 / 48px 48px,
    radial-gradient(circle, rgba(226, 190, 112, .1) 0 1.2px, transparent 1.8px) 24px 24px / 48px 48px,
    repeating-linear-gradient(45deg, rgba(226, 190, 112, .055) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(226, 190, 112, .055) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #17382f, #0f2620); }
.regal::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(3, 14, 18, .9), rgba(0, 0, 0, 0) 130px), radial-gradient(90% 60% at 50% 42%, rgba(255, 190, 110, .16), rgba(0, 0, 0, 0) 60%), radial-gradient(130% 100% at 50% 40%, rgba(0, 0, 0, 0) 40%, rgba(2, 8, 6, .86) 100%); }
.regal-kopf { max-width: 1180px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.regal-kopf h2 { margin: 6px auto 12px; color: #ffe9bf; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.regal-lead { font-size: 21px; color: #dccfa8; }
.regal-wand { max-width: 1260px; margin: 0 auto; }
.brett { position: relative; display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; padding: 0 3% 18px; }
.brett::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-radius: 2px; background: linear-gradient(180deg, #9a6a36, #6a4420 40%, #331c0c); box-shadow: 0 16px 22px -6px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 220, 160, .35), inset 0 -2px 0 rgba(226, 190, 112, .3); }
.brett.oben { min-height: 150px; }
.brett.unten { min-height: 140px; margin-top: 34px; }
.brett.buecher { margin-top: 30px; padding-top: 20px; gap: clamp(8px, 1.4vw, 20px); justify-content: center; }
/* Dinge im Regal: fünf Stücke nebeneinander in dinge.svg (Globus, Sanduhr, Tintenfass, Bild, Truhe) */
.ding { --p: 0; --h: 112px; flex: none; width: calc(var(--h) * .7143); height: var(--h); background: url(/site/dinge.svg) calc(var(--p) * 25%) 100% / 500% 100% no-repeat; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.ding.d1 { --p: 0; --h: 126px; } .ding.d2 { --p: 1; --h: 104px; } .ding.d3 { --p: 2; --h: 112px; } .ding.d4 { --p: 3; --h: 118px; } .ding.d5 { --p: 4; --h: 96px; }
.ding.klein { --h: 84px; }
.stapel { flex: none; width: 108px; height: 54px; border-radius: 2px; background: linear-gradient(180deg, #6f1d2a 0 15px, #1a0f08 15px 17px, #c5a258 17px 30px, #1a0f08 30px 32px, #1f4b47 32px 43px, #1a0f08 43px 45px, #6a4827 45px 54px); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .22), inset -1px 0 0 rgba(255, 255, 255, .12), 0 6px 8px rgba(0, 0, 0, .45); }
.stapel.s2 { width: 92px; height: 40px; background: linear-gradient(180deg, #22335c 0 13px, #1a0f08 13px 15px, #d8cbb0 15px 26px, #1a0f08 26px 28px, #553a69 28px 40px); }

/* Bücher im Regal: stehen mit dem Umschlag nach vorn */
.band { --bh: 232px; position: relative; flex: 1 1 0; max-width: 164px; min-width: 104px; height: var(--bh); padding: 34px 12px 14px; border: 0; border-radius: 3px 7px 7px 3px; cursor: pointer; text-align: center; display: grid; align-content: start; justify-items: center; gap: 8px;
  color: #f4dfb0; background: #5a2a14; box-shadow: inset 7px 0 0 rgba(0, 0, 0, .28), inset 9px 0 0 rgba(255, 255, 255, .08), 6px 0 0 -1px #e8d5a8, 8px 3px 14px rgba(0, 0, 0, .6); transform-origin: 50% 100%; transition: transform .4s var(--weich), box-shadow .4s ease, filter .3s ease; -webkit-tap-highlight-color: transparent; }
.js .band.zeig { transform: translateY(28px); }
.js .band.zeig.da { transform: none; }
.band b { font: 400 20px/1.12 var(--alt); text-wrap: balance; hyphens: manual; }
.band .b-stil { position: absolute; top: 11px; left: 14px; right: 8px; font: 500 15.5px/1 var(--hand); opacity: .8; letter-spacing: .02em; }
.band .b-art { margin-top: auto; align-self: end; font: italic 400 13.5px/1.2 var(--serif); opacity: .85; }
.band .b-klappe { position: absolute; left: 50%; bottom: calc(100% + 16px); z-index: 5; width: 230px; margin-left: -115px; padding: 13px 15px 14px; border-radius: 3px 5px 4px 6px; pointer-events: none; text-align: left;
  font: 400 16.5px/1.38 var(--serif); color: #3a2410; background: url(/site/papier.svg), linear-gradient(175deg, #fbf0d4, #ecd7a6); box-shadow: 0 16px 34px -8px rgba(0, 0, 0, .85), 0 0 40px -6px rgba(255, 160, 60, .4); opacity: 0; transform: translateY(10px) rotate(-1.4deg) scale(.96); transition: opacity .28s ease, transform .35s var(--weich); }
.band .b-klappe::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -9px; border: 9px solid transparent; border-top-color: #ecd7a6; }
.band:hover, .band:focus-visible { transform: translateY(-18px) rotate(-1.6deg); z-index: 4; filter: brightness(1.12); box-shadow: inset 7px 0 0 rgba(0, 0, 0, .28), inset 9px 0 0 rgba(255, 255, 255, .08), 6px 0 0 -1px #e8d5a8, 0 30px 34px -8px rgba(0, 0, 0, .8), 0 0 54px -4px rgba(255, 170, 70, .55); }
.band:hover .b-klappe, .band:focus-visible .b-klappe { opacity: 1; transform: translateY(0) rotate(-1.4deg) scale(1); }
.band:focus-visible { outline: 3px solid #ffd58a; outline-offset: 4px; }
.band:first-child .b-klappe { left: 0; margin-left: 0; } .band:first-child .b-klappe::after { left: 26%; }
.band:last-child .b-klappe { left: auto; right: 0; margin-left: 0; } .band:last-child .b-klappe::after { left: 74%; }
/* die sechs Buchstile */
.stil-alt { --bh: 244px; color: #f1cf86; background: radial-gradient(120% 90% at 30% 20%, #7a3a1a, #4a1f0c 70%); }
.stil-alt::after, .stil-nacht::after { content: ""; position: absolute; inset: 22px 9px 9px 16px; border: 1px solid currentColor; border-radius: 2px; opacity: .5; pointer-events: none; box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px currentColor; }
.stil-alt .b-stil, .stil-nacht .b-stil { top: 5px; }
.band.stil-alt, .band.stil-nacht { padding-left: 25px; padding-right: 18px; }
.band.stil-alt b, .band.stil-nacht b { font-size: 18.5px; }
.stil-modern { --bh: 226px; color: #1f2d2c; background: linear-gradient(180deg, #2f6f6a 0 34%, #f3ead6 34%); }
.stil-modern .b-stil { color: #e9f3ee; } .stil-modern b { margin-top: 56px; font: 600 19px/1.12 var(--serif); }
.stil-manuskript { --bh: 214px; color: #2c2118; background: url(/site/papier.svg), linear-gradient(180deg, #d9bd86, #c9a769); border-radius: 2px; box-shadow: 4px 4px 0 -1px #efe2c2, 7px 7px 0 -1px #e2d1a6, 9px 10px 14px rgba(0, 0, 0, .6); }
.stil-manuskript b { font: 700 16.5px/1.25 "Courier New", Courier, monospace; text-transform: uppercase; letter-spacing: .03em; margin-top: 12px; }
.stil-manuskript::after { content: ""; position: absolute; top: -9px; right: 20px; width: 14px; height: 40px; border: 2.5px solid #9aa0a6; border-radius: 8px; border-bottom-color: transparent; }
.stil-nacht { --bh: 238px; color: #cfe0ff; background: radial-gradient(1.5px 1.5px at 20% 22%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 70% 14%, #fff, transparent 60%), radial-gradient(1px 1px at 46% 40%, #cfe0ff, transparent 60%), radial-gradient(1.5px 1.5px at 82% 58%, #fff, transparent 60%), radial-gradient(1px 1px at 28% 72%, #cfe0ff, transparent 60%), radial-gradient(1px 1px at 60% 84%, #fff, transparent 60%), linear-gradient(180deg, #0e1730, #060a17); }
.stil-nacht b { text-shadow: 0 0 14px rgba(140, 180, 255, .8); }
.stil-rolle { --bh: 220px; color: #3a2008; background: url(/site/papier.svg), linear-gradient(90deg, #d9b97c, #f1ddae 22%, #f3e2b6 78%, #d2b071); border-radius: 2px; box-shadow: 8px 8px 14px rgba(0, 0, 0, .6); margin-bottom: 10px; }
.stil-rolle::before, .stil-rolle::after { content: ""; position: absolute; left: -9px; right: -9px; height: 15px; border-radius: 8px; background: linear-gradient(180deg, #a86c34, #5c3414); box-shadow: 0 3px 5px rgba(0, 0, 0, .5); }
.stil-rolle::before { top: -7px; } .stil-rolle::after { bottom: -7px; }
.stil-rolle b { font-family: "Almendra", var(--alt); font-size: 20.5px; }
.stil-notiz { --bh: 228px; color: #f2efe6; background: linear-gradient(90deg, #17181b, #26282d 30%, #1b1c20); border-radius: 4px 10px 10px 4px; }
.stil-notiz::after { content: ""; position: absolute; top: 0; bottom: 0; right: 22px; width: 7px; background: linear-gradient(90deg, #7a1d1d, #b23a32, #7a1d1d); pointer-events: none; }
.stil-notiz b { align-self: center; margin-top: 18px; padding: 9px 8px; border-radius: 2px; font: 600 21px/1.08 var(--hand); color: #26282d; background: #f2ead2; transform: rotate(-2deg); position: relative; z-index: 1; }
.stil-leer { --bh: 210px; color: #6a4a22; background: url(/site/papier.svg), linear-gradient(180deg, #f6ead0, #e8d5aa); box-shadow: inset 0 0 0 2px rgba(120, 80, 30, .0), 6px 0 0 -1px #e8d5a8, 8px 3px 14px rgba(0, 0, 0, .6); }
.stil-leer::after { content: "+"; position: absolute; left: 0; right: 0; bottom: 44px; font: 400 44px/1 var(--alt); opacity: .5; }
.stil-leer::before { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(120, 80, 30, .45); border-radius: 3px; pointer-events: none; }

/* ============ 5 · Leihkarten auf der Schreibunterlage ============ */
.tisch { position: relative; padding: clamp(80px, 9vw, 130px) clamp(12px, 4vw, 44px) clamp(80px, 9vw, 130px); isolation: isolate; background: linear-gradient(rgba(26, 12, 5, .8), rgba(26, 12, 5, .8)), url(/site/holz.svg) center / cover, #2a160b; }
.tisch::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(2, 8, 6, .85), rgba(0, 0, 0, 0) 150px), radial-gradient(110% 80% at 50% 36%, rgba(255, 180, 100, .16), rgba(10, 4, 1, .55) 100%); }
.tisch-kopf { max-width: 1100px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.tisch-kopf h2 { margin-top: 6px; color: #ffe9bf; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
/* Schreibunterlage aus grünem Leder mit goldener Prägelinie */
.auflage { max-width: 1040px; margin: 0 auto; padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 56px) clamp(34px, 5vw, 60px); border-radius: 16px;
  background: url(/site/papier.svg), radial-gradient(120% 90% at 50% 24%, #2c5647, #1c3a30 62%, #11261f);
  box-shadow: inset 0 0 0 2px #0c1c16, inset 0 0 0 12px #1d3d32, inset 0 0 0 13.5px rgba(226, 190, 112, .55), inset 0 0 0 15px rgba(0, 0, 0, .28), inset 0 0 90px rgba(0, 0, 0, .5), 0 34px 60px -24px rgba(0, 0, 0, .9), 0 2px 0 rgba(255, 220, 170, .08); }
.karten-reihe { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 52px); align-items: start; }
/* Karteikarte: rote Kopflinie, blaue Zeilen, Lochung, Stempel */
.karte { --dreh: -1.6deg; position: relative; padding: 0 30px 28px; color: #2a2118; rotate: var(--dreh); border-radius: 3px;
  background: radial-gradient(circle at 50% 21px, #1c3a30 0 6.5px, rgba(0, 0, 0, .25) 7px, transparent 8px), linear-gradient(180deg, transparent 0 57px, rgba(190, 40, 40, .7) 57px 59px, transparent 59px), repeating-linear-gradient(180deg, transparent 0 33px, rgba(70, 110, 170, .2) 33px 34px) 0 60px, url(/site/papier.svg), linear-gradient(175deg, #f6eed8, #ebdfc0);
  box-shadow: 0 16px 26px -10px rgba(0, 0, 0, .75), 0 2px 2px rgba(0, 0, 0, .35); transition: rotate .5s var(--weich), translate .5s var(--weich), box-shadow .4s ease; }
.karte.k-abo { --dreh: 1.4deg; margin-top: 22px; }
.karte:hover, .karte:focus-within { rotate: 0deg; translate: 0 -8px; box-shadow: 0 28px 36px -12px rgba(0, 0, 0, .8), 0 2px 2px rgba(0, 0, 0, .35); }
.k-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; height: 57px; padding: 0 2px 7px; font: 700 13px/1 "Courier New", Courier, monospace; letter-spacing: .14em; text-transform: uppercase; color: #6a4a2a; }
.z-art { margin-top: 18px; font: 500 25px/1 var(--hand); color: #6a3a14; }
.z-zahl { margin-top: 14px; font: 500 clamp(46px, 6vw, 70px)/.95 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -.015em; color: #1f1208; }
.z-unter { font: 500 30px/1.1 var(--hand); color: #7a4212; margin-bottom: 16px; }
.karte ul { display: grid; gap: 7px; margin-bottom: 24px; }
.karte li { position: relative; padding-left: 28px; font-size: 18.5px; line-height: 1.35; }
.karte li::before { content: "✓"; position: absolute; left: 2px; top: -3px; font: 700 24px/1 var(--hand); color: #8a3d0e; }
.stempel { position: absolute; top: 74px; right: 22px; display: grid; place-content: center; width: 104px; height: 104px; border-radius: 50%; text-align: center; rotate: 13deg; pointer-events: none; mix-blend-mode: multiply;
  font: 700 11px/1.25 "Courier New", Courier, monospace; letter-spacing: .1em; text-transform: uppercase; border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: -8px; opacity: .78; }
.stempel b { display: block; font-size: 22px; letter-spacing: .06em; }
.stempel.rot { color: #b23028; } .stempel.blau { color: #2c4f93; rotate: -11deg; }
.fragen { position: relative; max-width: 760px; margin: clamp(40px, 6vw, 70px) auto 0; padding: 0 clamp(20px, 4vw, 40px) 22px; color: #2a2118; rotate: -.4deg; border-radius: 3px;
  background: radial-gradient(circle at 50% 21px, #1c3a30 0 6.5px, rgba(0, 0, 0, .25) 7px, transparent 8px), linear-gradient(180deg, transparent 0 57px, rgba(190, 40, 40, .7) 57px 59px, transparent 59px), url(/site/papier.svg), linear-gradient(175deg, #f6eed8, #ebdfc0); box-shadow: 0 16px 26px -10px rgba(0, 0, 0, .75), 0 2px 2px rgba(0, 0, 0, .35); }
.fragen h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fragen details { border-top: 1px solid rgba(70, 110, 170, .25); }
.fragen details:first-of-type { border-top: 0; margin-top: 8px; }
.fragen summary { position: relative; padding: 14px 40px 14px 0; cursor: pointer; list-style: none; font: 600 20.5px/1.25 var(--serif); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 6px; top: 6px; font: 500 34px/1 var(--hand); color: #8a3d0e; transition: transform .3s var(--weich); }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { padding: 0 20px 16px 0; font-size: 18.5px; line-height: 1.5; color: #45301a; text-wrap: pretty; }
.fragen a { color: #8a3d0e; }

/* ---------- Fuß ---------- */
.fuss { position: relative; padding: 84px 20px 44px; text-align: center; background: linear-gradient(180deg, #120703, #070302); color: #d9bf93; }
.fuss-kerze { height: 150px; display: grid; align-items: end; justify-items: center; margin-bottom: 26px; }
.fuss-marke { font: 400 38px/1.1 var(--alt); color: #ffe7b8; text-shadow: 0 0 26px rgba(255, 160, 50, .5); transition: text-shadow 1s ease, color 1s ease; }
.fuss-satz { font: 500 26px/1.2 var(--hand); color: #ffd08a; margin-bottom: 22px; }
.nacht .fuss-marke { color: #8a7a62; text-shadow: none; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin-bottom: 18px; }
.fuss nav a, .fuss nav button { padding: 8px 2px; font-size: 18.5px; text-underline-offset: 4px; color: inherit; }
.fuss-klein { font-size: 15.5px; opacity: .65; }
.ohne-js { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; margin: 0; padding: 12px 20px; text-align: center; background: var(--papier); color: var(--tinte); }

/* ============ Dialog ============ */
.schleier { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 70px 16px 24px; overflow: auto; background: radial-gradient(120% 90% at 50% 30%, rgba(70, 34, 8, .6), rgba(6, 3, 1, .93)); backdrop-filter: blur(4px); opacity: 0; transition: opacity .24s ease; }
.schleier.an { opacity: 1; }
.blatt-karte { position: relative; width: min(600px, 100%); padding: 54px clamp(22px, 5vw, 44px) 26px; color: #3a2412; border-radius: 6px 10px 8px 12px; font: 400 18.5px/1.5 var(--serif);
  background: radial-gradient(140% 90% at 50% 0%, rgba(255, 214, 140, .6), transparent 55%), url(/site/papier.svg), linear-gradient(175deg, #f9eed3, #eedcb4 55%, #e2c996);
  box-shadow: 0 44px 90px -20px rgba(0, 0, 0, .95), 0 0 130px -10px rgba(255, 160, 50, .36), inset 0 0 60px rgba(150, 100, 40, .2), inset 0 0 0 1px rgba(120, 80, 30, .25); transform: translateY(18px) rotate(-.4deg) scale(.98); transition: transform .36s cubic-bezier(.2, .9, .25, 1.1); }
.an .blatt-karte { transform: rotate(-.4deg); }
.dlg-kerze { top: -78px; left: 50%; margin-left: -22px; transform: scale(.8); transform-origin: 50% 100%; }
.dlg-kerze .k-schein { width: 380px; height: 380px; margin-left: -190px; bottom: -110px; }
.dlg-x { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #7a5326; font: 400 30px/1 Georgia, serif; cursor: pointer; }
.dlg-x:hover, .dlg-x:focus-visible { background: rgba(120, 80, 30, .14); color: #2c1808; }
.dlg-sicht { display: grid; gap: 16px; }
.dlg-sicht h2 { font-size: clamp(27px, 4vw, 34px); color: #2c1808; }
.dlg-lead { font-size: 18.5px; color: #523518; margin-top: -6px; }
.feld { display: grid; gap: 5px; font-size: 17px; color: #5a3a1a; }
.feld small { font-size: 14.5px; opacity: .75; }
.feld small::before { content: "· "; }
.feld input { width: 100%; padding: 12px 14px; font: 400 19px/1.2 var(--serif); color: #2c1808; background: rgba(255, 250, 235, .78); border: 1px solid rgba(120, 80, 30, .45); border-radius: 5px; box-shadow: inset 0 2px 5px rgba(120, 80, 30, .16); }
.feld input[name=name] { font: 600 26px/1.1 var(--hand); color: #23407a; }
.feld input::placeholder { color: rgba(90, 60, 30, .45); }
.feld input:focus-visible { outline: 2px solid #c47a22; outline-offset: 1px; background: #fffaf0; }
.wahl { margin: 0; padding: 0; border: 0; min-width: 0; }
.wahl legend { padding: 0; margin-bottom: 8px; font-size: 17px; color: #5a3a1a; }
.wahl-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; }
.w-buch { position: relative; display: grid; place-items: center; min-height: 76px; padding: 9px 8px 9px 14px; border-radius: 3px 6px 6px 3px; cursor: pointer; text-align: center; background: #5a2a14; color: #f4dfb0; box-shadow: inset 5px 0 0 rgba(0, 0, 0, .28), 0 3px 6px rgba(60, 30, 8, .45); transition: transform .2s var(--weich), box-shadow .25s ease, filter .2s; }
.w-buch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.w-buch span { font: 400 15.5px/1.14 var(--alt); text-wrap: balance; pointer-events: none; }
.w-buch::before, .w-buch::after { display: none !important; }
.w-buch.stil-alt { height: auto; color: #f1cf86; background: radial-gradient(120% 90% at 30% 20%, #7a3a1a, #4a1f0c 70%); }
.w-buch.stil-modern { color: #1f2d2c; background: linear-gradient(180deg, #2f6f6a 0 20%, #f3ead6 20%); } .w-buch.stil-modern span { margin-top: 12px; font-family: var(--serif); font-weight: 600; }
.w-buch.stil-manuskript { color: #2c2118; background: linear-gradient(180deg, #d9bd86, #c9a769); border-radius: 2px; }
.w-buch.stil-nacht { color: #cfe0ff; background: radial-gradient(1.5px 1.5px at 18% 24%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 74% 16%, #fff, transparent 60%), radial-gradient(1px 1px at 88% 70%, #cfe0ff, transparent 60%), radial-gradient(1px 1px at 30% 80%, #fff, transparent 60%), linear-gradient(180deg, #0e1730, #060a17); }
.w-buch.stil-rolle { color: #3a2008; background: linear-gradient(90deg, #d9b97c, #f1ddae 22%, #f3e2b6 78%, #d2b071); border-radius: 2px; box-shadow: 0 -4px 0 -1px #7a4a20, 0 4px 0 -1px #7a4a20, 0 6px 8px rgba(60, 30, 8, .45); }
.w-buch.stil-notiz { color: #f2efe6; background: linear-gradient(90deg, #17181b, #26282d 30%, #1b1c20); box-shadow: inset 5px 0 0 rgba(0, 0, 0, .28), inset -9px 0 0 -4px #b23a32, 0 3px 6px rgba(60, 30, 8, .45); }
.w-buch.stil-leer { color: #6a4a22; background: linear-gradient(180deg, #f6ead0, #e8d5aa); box-shadow: inset 0 0 0 2px rgba(120, 80, 30, .0), 0 3px 6px rgba(60, 30, 8, .45); outline: 2px dashed rgba(120, 80, 30, .45); outline-offset: -6px; }
.w-buch.stil-manuskript span { font: 700 12.5px/1.2 "Courier New", monospace; text-transform: uppercase; } .w-buch.stil-notiz span { font: 600 17px/1.05 var(--hand); color: #f2efe6; } .w-buch.stil-rolle { margin: 0; } .w-buch.stil-rolle span { font-family: "Almendra", var(--alt); }
.w-buch.stil-leer span { font: 500 17px/1.1 var(--hand); }
.w-buch:hover { transform: translateY(-2px); filter: brightness(1.08); }
.wahl:not(.zu) .w-buch.w-buch:has(input:checked) { transform: translateY(-4px) rotate(-1deg); box-shadow: inset 5px 0 0 rgba(0, 0, 0, .28), 0 0 0 3px #f8ecd0, 0 0 0 6px #c47a22, 0 12px 20px -6px rgba(120, 60, 10, .7); }
.w-buch:has(input:checked)::after { content: "✓" !important; display: grid !important; place-items: center; position: absolute; inset: auto; top: -11px; right: -9px; left: auto; bottom: auto; width: 26px; height: 26px; margin: 0; border: 0; border-radius: 50%; background: #c47a22; color: #fff6dc; font: 700 16px/1 var(--serif); opacity: 1; box-shadow: 0 2px 5px rgba(60, 30, 8, .5); }
.w-buch:has(input:focus-visible) { outline: 3px solid #23407a; outline-offset: 7px; }
/* Häkchen: /site/haken.css (gemeinsam mit Anmeldung und Abo) */
.blatt-karte a { color: #8a4a12; text-underline-offset: 2px; }
.dlg-fehler { display: none; padding: 10px 13px; border-radius: 5px; background: rgba(160, 40, 20, .13); color: #7c1d0c; font-size: 17px; }
.dlg-fehler.an { display: block; }
.dlg-klein { font-size: 15.5px; line-height: 1.4; color: #6b4a26; text-align: center; }
.nur-vorlesen { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dlg-textknopf { justify-self: start; padding: 4px 0; border: 0; background: none; font: 500 16.5px/1.3 var(--serif); color: #8a4a12; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.dlg-textknopf:hover, .dlg-textknopf:focus-visible { color: #2c1808; text-decoration-thickness: 2px; }
.dlg-zurueck { justify-self: center; }

/* Zwei Schritte: Punkte oben links, der neue Schritt gleitet herein, das Blatt wächst oder schrumpft mit */
.dlg-punkte { position: absolute; top: 24px; left: clamp(22px, 5vw, 44px); display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dlg-punkte li { width: 20px; height: 5px; border-radius: 3px; background: rgba(120, 80, 30, .25); transition: background .3s ease, width .35s var(--weich); }
.dlg-punkte li.an { width: 32px; background: linear-gradient(90deg, #e08a2c, #b0560f); }
.dlg-schritt { display: grid; gap: 16px; }
.dlg-schritt[hidden] { display: none; }
.dlg-schritt.rein-vor { animation: schritt-vor .42s var(--weich) both; }
.dlg-schritt.rein-zurueck { animation: schritt-zurueck .42s var(--weich) both; }
@keyframes schritt-vor { from { opacity: 0; transform: translateX(34px); } }
@keyframes schritt-zurueck { from { opacity: 0; transform: translateX(-34px); } }
.blatt-karte.waechst { transition: transform .36s cubic-bezier(.2, .9, .25, 1.1), height .34s var(--weich); }

/* Das gewählte Buch allein: Einband links, Titel, Art und Klappentext rechts */
.wahl-info { display: none; }
.wahl.zu .wahl-box { display: grid; grid-template-columns: 108px 1fr; gap: 18px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 10px; background: rgba(255, 250, 235, .5); box-shadow: inset 0 0 0 1px rgba(120, 80, 30, .22); }
.wahl.zu .wahl-reihe { display: block; }
.wahl.zu .w-buch:not(:has(input:checked)) { display: none; }
.wahl.zu .w-buch, .wahl.zu .w-buch:hover { min-height: 138px; padding: 12px 8px 12px 14px; transform: rotate(-2deg); filter: drop-shadow(0 8px 10px rgba(60, 30, 8, .45)); cursor: default; }
.wahl.zu .w-buch:has(input:checked)::after { display: none !important; }
.wahl.zu .wahl-info { display: grid; gap: 3px; align-content: center; }
.wahl-info b { font: 400 23px/1.12 var(--alt); color: var(--tinte); text-wrap: balance; }
.wahl-art { font: 500 19px/1.1 var(--hand); color: #8a4a12; }
.wahl-info p { margin: 4px 0 2px; font-size: 16.5px; line-height: 1.4; color: #5a3a1a; text-wrap: pretty; }
.wahl-info p:empty { display: none; }
.wahl.auf .w-buch { animation: buch-rein .42s var(--weich) both; }
.wahl.auf .w-buch:nth-child(2) { animation-delay: .04s; } .wahl.auf .w-buch:nth-child(3) { animation-delay: .08s; } .wahl.auf .w-buch:nth-child(4) { animation-delay: .12s; }
.wahl.auf .w-buch:nth-child(5) { animation-delay: .16s; } .wahl.auf .w-buch:nth-child(6) { animation-delay: .2s; } .wahl.auf .w-buch:nth-child(7) { animation-delay: .24s; }
@keyframes buch-rein { from { opacity: 0; transform: translateY(12px) scale(.94); } }

/* Schritt 2: die drei Grenzen als kurze Marken statt eines Absatzes */
.dlg-grenzen { display: grid; gap: 10px; padding: 14px 14px; border-radius: 10px; color: #3f2913; background: linear-gradient(180deg, rgba(120, 40, 20, .09), rgba(120, 40, 20, .04)); box-shadow: inset 0 0 0 1px rgba(154, 58, 28, .22); }
.dlg-grenzen p { font-size: 17px; line-height: 1.4; } .dlg-grenzen b { color: #2c1808; }
.dlg-grenzen ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dlg-grenzen li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 99px; font-size: 15px; line-height: 1.2; color: #4a1c0c; background: rgba(255, 248, 232, .8); box-shadow: inset 0 0 0 1px rgba(154, 58, 28, .35); }
.dlg-grenzen li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d4553a, #8c2410 70%); box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .35); }
.dlg-grenzen small { font-size: 14.5px; line-height: 1.35; color: #6b4a26; }
/* Vertrauenssiegel unter der Schreibunterlage */
.vertrauen { max-width: 900px; margin: clamp(44px, 6vw, 80px) auto 0; padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 40px); border-radius: 14px; background: linear-gradient(180deg, rgba(20, 10, 4, .62), rgba(20, 10, 4, .4)); box-shadow: inset 0 0 0 1px rgba(240, 196, 99, .22), 0 26px 50px -28px #000; }
.blende { position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 46%, #fff6da 0, #ffc266 30%, #b3560f 70%, #2a1004 100%); transition: opacity .5s ease; }
.blende.an { opacity: 1; pointer-events: auto; }

/* ============ schmale Fenster ============ */
@media (max-width: 1020px) {
  .pult-flaeche { grid-template-columns: 1fr; }
  .schritte { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .schritte span { padding-left: 0; }
  .schritte b { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 23px; }
  .flugbuecher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flugbuch:nth-child(n) { margin-top: 0; }
  .brett.buecher { flex-wrap: wrap; row-gap: 46px; padding-bottom: 18px; }
  .band { flex: 0 0 150px; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .nav { gap: 10px; } .nav-links { display: none; } .nav-tun { margin-left: auto; } .marke { font-size: 21px; }
  .halle { place-items: end center; } .halle-text { padding: 268px 0 84px; }
  .halle-text { padding: 100px 0 90px; }
  .knopf.gross { width: 100%; font-size: 23px; }
  .schritte { grid-template-columns: 1fr; }
  .schritte b { flex-direction: row; align-items: center; } .schritte span { padding-left: 52px; }
  .demo-buch { grid-template-columns: 1fr; transform: none; padding: 10px; }
  .seite { min-height: 0; padding: 22px 20px 40px; font-size: 16.5px; }
  .seite.links { border-radius: 4px 4px 0 0; box-shadow: inset 0 -26px 30px -22px rgba(90, 50, 15, .5); } .seite.rechts { border-radius: 0 0 4px 4px; box-shadow: inset 0 26px 30px -22px rgba(90, 50, 15, .5); }
  .falz { display: none; } .demo > .demo-kerze { left: auto; right: 8px; top: -78px; transform: scale(.8); transform-origin: 50% 100%; }
  .demo-leiste { justify-content: stretch; } .demo-leiste .knopf { flex: 1 1 auto; }
  .flugbuecher { grid-template-columns: 1fr; gap: 34px; max-width: 460px; }
  .brett.oben .ding.d4, .brett.oben .stapel:not(.s2), .brett.unten .ding.d2, .brett.unten .stapel.s2 { display: none; }
  .karten-reihe { grid-template-columns: 1fr; max-width: 440px; } .karte.k-abo { margin-top: 0; }
  .karte { padding: 0 22px 24px; } .stempel { width: 88px; height: 88px; right: 14px; font-size: 10px; } .stempel b { font-size: 18px; }
  .wahl-reihe { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; } .w-buch { min-height: 70px; } .w-buch span { font-size: 14px; }
  .wahl.zu .wahl-box { grid-template-columns: 84px 1fr; gap: 14px; padding: 12px; } .wahl.zu .w-buch { min-height: 112px; } .wahl-info b { font-size: 20px; } .wahl-info p { font-size: 15.5px; }
  .dlg-grenzen li { font-size: 15px; }
}
/* Ohne Maus gibt es kein „Darüberfahren": der Klappentext steht dann unter dem Buch */
@media (hover: none), (max-width: 760px) {
  .brett.buecher { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; justify-content: start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 18px 168px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #c98c4a transparent; }
  .brett.buecher::after { bottom: 150px; }
  .band { max-width: none; min-width: 0; align-self: end; scroll-snap-align: center; }
  .band:hover, .band:focus-visible { transform: translateY(-6px); }
  .band .b-klappe, .band:first-child .b-klappe, .band:last-child .b-klappe { top: calc(100% + 34px); bottom: auto; left: 0; right: 0; width: auto; margin: 0; opacity: 1; transform: rotate(-.8deg); box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .7); font-size: 15.5px; padding: 10px 11px; }
  .band .b-klappe::after { display: none; }
}
@media (max-width: 500px) { .nav-tun .leise { display: none; } .marke { font-size: 20px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .halle-wink { opacity: .8; }
  .skizze .st { stroke-dashoffset: 0; }
  .js .faden > path { stroke-dashoffset: 0; } .js .faden .quaste { opacity: 1; }
}
