/* Bookling Startseite. Farben der Marke (CLAUDE.md, Abschnitt Marke), Literata wie in der App. */
:root {
  --paper: #f6f0e4;
  --paper-2: #f1e9d8;          /* Creme der Marke */
  --paper-3: #e8dec9;
  --card: #fbf8f2;
  --ink: #2b2622;
  --ink-2: #5f564e;
  --ink-3: #6f655c;
  --line: rgba(43, 38, 34, 0.1);
  --line-2: rgba(43, 38, 34, 0.18);
  --accent: #7a1f2e;           /* Bordeaux */
  --accent-ink: #7a1f2e;
  --accent-soft: #efdcd8;
  --on-accent: #fbf6ee;
  --green: #1f4d3a;            /* Dunkelgrün */
  --wood: #241a13;
  --wood-ink: #f1e9d8;
  --wood-ink-2: #c9bba4;
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.06), 0 12px 32px -12px rgba(43, 30, 20, 0.28);
  --radius: 14px;
  --serif: "Literata", "Iowan Old Style", "Charter", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1612;
    --paper-2: #1e1913;
    --paper-3: #29221a;
    --card: #241e18;
    --ink: #ece6dd;
    --ink-2: #bfb5aa;
    --ink-3: #8f857a;
    --line: rgba(236, 230, 221, 0.09);
    --line-2: rgba(236, 230, 221, 0.18);
    --accent: #9a3044;
    --accent-ink: #e3a0aa;
    --accent-soft: #3a2124;
    --on-accent: #fbf6ee;
    --wood: #120d0a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* Sprache: beide Fassungen stehen im HTML, die andere wird ausgeblendet */
html[lang="de"] body [lang="en"], html[lang="en"] body [lang="de"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 500; line-height: 1.18; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 8px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid transparent; }
.kopf .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.marke { display: flex; align-items: center; flex: none; }
.marke img { width: 128px; height: 48px; }
.marke .dunkel { display: none; }
@media (prefers-color-scheme: dark) { .marke .hell { display: none; } .marke .dunkel { display: block; } }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.sprache { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; font-size: 0.8rem; flex: none; }
.nav + .sprache { margin-left: 8px; }
.sprache button { font: inherit; color: var(--ink-2); background: none; border: 0; padding: 4px 10px; border-radius: 999px; cursor: pointer; min-width: 40px; min-height: 32px; }
.sprache button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 980px) { .nav { display: none; } .nav + .sprache { margin-left: auto; } }
@media (max-width: 760px) {
  .nav { display: none; }
  .sprache { margin-left: auto; }
  .kopf .wrap { gap: 10px; }
  .kopf .knopf { padding: 6px 14px; min-height: 38px; font-size: 0.9rem; }
  .sprache button { padding: 3px 8px; min-width: 34px; }
  .marke img { width: 96px; height: 36px; }
}
@media (max-width: 340px) { .kopf .knopf { display: none; } }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; border-radius: 999px; padding: 12px 22px; min-height: 44px; border: 1px solid transparent; cursor: pointer; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.knopf.voll { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -8px rgba(122, 31, 46, 0.7); }
.knopf.voll:hover { background: color-mix(in oklab, var(--accent) 88%, black); transform: translateY(-1px); }
.knopf.leer { color: var(--ink); border-color: var(--line-2); background: transparent; }
.knopf.leer:hover { background: var(--paper-2); }
.knopf:disabled { opacity: 0.6; cursor: progress; }

/* Hero */
.hero { padding: 56px 0 0; text-align: center; }
.augenbraue { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 400; max-width: 22ch; margin: 0 auto; }
.hero h1 em { font-style: italic; color: var(--accent-ink); display: block; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 40rem; margin: 22px auto 0; }
.hero .knoepfe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .klein { font-size: 0.9rem; color: var(--ink-3); margin-top: 14px; }
/* Bühne: Kaminzimmer mit Regal (buehne.js). Die Welt hat genau das Seitenverhältnis des Bilds, alle Maße in Prozent davon. */
.buehne-wrap { max-width: 1200px; }
.buehne { position: relative; margin-top: 44px; }
.szene { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 2048 / 1143; background: #2a1d14; isolation: isolate; }
.welt { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 2048 / 1143; transform: scale(1.05); }
.ebene { position: absolute; inset: 0; will-change: transform; }
.ebene picture, .raum-bild { position: absolute; inset: 0; width: 100%; height: 100%; }
.licht, .funken { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.licht { mix-blend-mode: screen; }
.ebene-dinge { pointer-events: none; }
.schleier { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 50% 52%, transparent 45%, rgba(25, 14, 6, .35) 100%); }
@media (max-width: 640px) {
  /* Auf dem Handy steht das Zimmer gleich unter der Überschrift, damit es beim ersten Blick zu sehen ist */
  .hero { padding-top: 28px; display: flex; flex-direction: column; }
  .hero > .wrap:first-child { display: contents; }
  .hero > .wrap:first-child > * { padding-left: 20px; padding-right: 20px; }
  .hero .augenbraue { order: 1; margin-bottom: 12px; }
  .hero h1 { order: 2; font-size: 2.1rem; }
  .hero .buehne-wrap { order: 3; }
  .hero .lead { order: 4; margin-top: 26px; }
  .hero .knoepfe { order: 5; }
  .hero .klein { order: 6; }
  .szene { aspect-ratio: 3 / 4; border-radius: 18px; }
  /* Auf dem Handy etwas näher heran und nach links gerückt: Kamin und Regal ganz im Bild, die Bücher größer */
  .welt { aspect-ratio: 1152 / 2064; width: 122%; left: -3%; top: 60%; transform: translateY(-60%); }
  .buehne { margin-top: 22px; }
  .buehne-wrap { padding: 0 12px; }
}

/* Gegenstände */
.ding { position: absolute; display: block; filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, .45)); }
.ding img { width: 100%; height: 100%; }

/* Buchrücken wie in der App (Shelf.tsx, Spine): Lederton, Bünde, Goldprägung, Titel senkrecht */
.ruecken {
  --gold-1: #8a6a3a; --gold-2: #b08d57; --gold-3: #e3cc95;
  position: absolute; padding: 0; border: 0; cursor: pointer; border-radius: 3px 3px 1px 1px; transform-origin: 50% 100%;
  background:
    linear-gradient(160deg, rgba(255,226,186,.16) 0%, rgba(255,226,186,.04) 30%, transparent 55%, rgba(0,0,0,.38) 100%),
    radial-gradient(ellipse 90% 8% at 50% 0%, rgba(255,222,185,.16), transparent),
    linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 11%, rgba(255,232,205,.12) 36%, rgba(255,232,205,.04) 56%, rgba(0,0,0,.2) 84%, rgba(0,0,0,.62) 100%),
    var(--leder, #4a2e1e);
  box-shadow: 6px 3px 8px -2px rgba(0, 0, 0, .55), 2px 0 1px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .3);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1), box-shadow 320ms ease, filter 320ms ease;
}
@media (prefers-color-scheme: dark) { .ruecken { filter: brightness(.72); } .ding { filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, .6)) brightness(.95); } }
.ruecken:hover, .ruecken:focus-visible, .ruecken.ist-raus { transform: translateY(-16%) rotate(-3deg); z-index: 3; filter: none; box-shadow: 12px 16px 20px -8px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(0, 0, 0, .3); }
.ruecken:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; }
.ruecken.ist-weg { visibility: hidden; }
.ruecken-bund { position: absolute; left: 0; right: 0; height: 5%; max-height: 6px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(255,228,192,.26) 38%, rgba(255,228,192,.08) 62%, rgba(0,0,0,.55)); }
.ruecken-bund::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -3px; height: 1px; background: linear-gradient(90deg, var(--gold-1), var(--gold-3) 50%, var(--gold-1)); opacity: .75; }
.ruecken-bund.o1 { top: 4.5%; } .ruecken-bund.o2 { top: 10%; } .ruecken-bund.u2 { bottom: 10%; } .ruecken-bund.u1 { bottom: 4.5%; }
.ruecken-titel { position: absolute; left: 0; right: 0; top: 15%; bottom: 15%; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.ruecken-titel > span {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%;
  font-family: var(--serif); font-size: var(--schrift, 10px); font-variant-caps: small-caps; letter-spacing: .07em; line-height: 1;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2) 55%, var(--gold-1)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ruecken-band { position: absolute; left: 0; right: 0; bottom: 5.5%; text-align: center; font-family: var(--serif); font-size: calc(var(--schrift, 10px) * .85); line-height: 1; color: #d9b56a; pointer-events: none; }
.ruecken-neu { position: absolute; border-radius: 3px; border: 1px dashed rgba(227, 204, 149, .6); color: #e3cc95; display: grid; place-items: center; text-decoration: none; font-size: 1.1rem; background: rgba(241, 233, 216, .05); transition: background 200ms ease, transform 300ms cubic-bezier(.2, .8, .2, 1); }
.ruecken-neu:hover, .ruecken-neu:focus-visible { background: rgba(176, 141, 87, .2); transform: translateY(-6%); }
.ruecken-neu:focus-visible { outline: 2px solid #e3cc95; outline-offset: 3px; }

/* Hinweis unter der Bühne */
.buehne-tipp { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 7px 16px 7px 34px; border-radius: 999px; font-size: .92rem; white-space: nowrap;
  color: #f6ecd8; background: rgba(28, 18, 11, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; transition: opacity 500ms ease, transform 500ms ease; }
.buehne-tipp::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #e3cc95; box-shadow: 0 0 0 0 rgba(227, 204, 149, .6); animation: tipp-puls 2.4s ease-out infinite; }
@keyframes tipp-puls { 0% { box-shadow: 0 0 0 0 rgba(227, 204, 149, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(227, 204, 149, 0); } }
.buehne-tipp.weg { opacity: 0; transform: translateX(-50%) translateY(6px); }

/* Abschnitte */
.abschnitt { padding: 112px 0; }
.abschnitt.creme { background: var(--paper-2); }
.abschnitt-kopf { max-width: 44rem; }
.abschnitt-kopf.mitte { margin: 0 auto; text-align: center; }
.abschnitt h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 400; }
.abschnitt-kopf p { color: var(--ink-2); font-size: 1.15rem; margin-top: 16px; }
.zahl { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; display: block; }
@media (max-width: 640px) { .abschnitt { padding: 72px 0; } }
.hero + .abschnitt { padding-top: 160px; }
@media (max-width: 900px) { .hero + .abschnitt { padding-top: 80px; } }

.merkmal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.merkmal.gedreht { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.merkmal.gedreht .text { order: 2; }
@media (max-width: 900px) {
  .merkmal, .merkmal.gedreht { grid-template-columns: 1fr; gap: 36px; }
  .merkmal.gedreht .text { order: 0; }
}
.punkte { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.punkte li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.punkte svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent-ink); }
.punkte strong { font-weight: 600; }
.punkte span.leise { color: var(--ink-2); }

/* Fenster mit Bildschirmfoto */
.fenster { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fenster::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 16px 13px, #d9b8ad 4px, transparent 4.5px), radial-gradient(circle at 32px 13px, #e2cfa8 4px, transparent 4.5px), radial-gradient(circle at 48px 13px, #b9c9b0 4px, transparent 4.5px), var(--paper-2); }
.fenster img { width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { .fenster img { filter: brightness(0.92); } }
.bildzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.bildzeile figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 640px) { .bildzeile { grid-template-columns: 1fr; } }
.export-bild { max-width: 520px; margin-left: auto; margin-right: auto; width: 100%; }

/* Regal und Stufen: warmes Holz, in beiden Modi */
.regal { background: var(--wood); color: var(--wood-ink); }
.regal .zahl { color: #e3b78a; }
.regal .abschnitt-kopf p, .regal .leise { color: var(--wood-ink-2); }
.regal .fenster { background: #2e231b; border-color: rgba(255, 240, 220, 0.08); }
.regal .fenster::before { background: radial-gradient(circle at 16px 13px, #7a4a3e 4px, transparent 4.5px), radial-gradient(circle at 32px 13px, #8a6a3e 4px, transparent 4.5px), radial-gradient(circle at 48px 13px, #4e6a4a 4px, transparent 4.5px), #261c15; border-color: rgba(255, 240, 220, 0.08); }
.regal .merkmal { margin-top: 56px; }
.stufen { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.stufen li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.stufen .nr { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(227, 183, 138, 0.5); color: #e3b78a; display: grid; place-items: center; }
.stufen .nr svg { width: 16px; height: 16px; }
/* Überall */
.handys { display: flex; justify-content: center; gap: 28px; margin-top: 56px; }
.handy { width: 240px; flex: none; border-radius: 34px; padding: 8px; background: #1b1512; box-shadow: var(--shadow); }
.handy img { border-radius: 27px; width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; }
.handy:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 860px) {
  .handys { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 20px 16px; margin: 16px -20px 0; gap: 18px; }
  .handy { width: 220px; scroll-snap-align: center; }
  .handy:nth-child(2) { transform: none; }
  .handys { scrollbar-width: none; }
  .handys::-webkit-scrollbar { display: none; }
}
.geraete { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; padding: 0; list-style: none; }
.geraete li { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 14px; font-size: 0.92rem; color: var(--ink-2); }

/* Preise */
.preise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1100px; margin: 56px auto 0; align-items: stretch; }
@media (max-width: 980px) { .preise { grid-template-columns: 1fr; max-width: 520px; } }
.preis { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; }
.preis.hervor { border-color: color-mix(in oklab, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.preis h3 { font-size: 1.35rem; }
.preis .betrag { font-size: 2.6rem; font-weight: 400; margin-top: 14px; line-height: 1.1; }
.preis .betrag small { font-size: 1rem; color: var(--ink-2); font-weight: 400; }
.preis .neben { color: var(--ink-2); font-size: 0.98rem; margin-top: 6px; }
.preis .punkte { margin-top: 22px; gap: 10px; flex: 1; align-content: start; }
.preis .knopf { margin-top: 28px; width: 100%; }
.marker { display: inline-block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 3px; }
.preis-hinweis { text-align: center; color: var(--ink-3); font-size: 0.9rem; margin-top: 24px; }

/* Fragen */
.fragen { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--line-2); }
.fragen details { border-bottom: 1px solid var(--line-2); }
.fragen summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.15rem; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 200ms ease; }
.fragen details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.fragen details p { color: var(--ink-2); padding: 0 0 22px; max-width: 42rem; }

/* Warteliste */
.liste { text-align: center; }
.liste form { display: flex; gap: 10px; max-width: 520px; margin: 32px auto 0; }
.liste input[type=email] { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 20px; min-height: 48px; }
.liste input[type=email]::placeholder { color: var(--ink-3); }
.liste input[type=email]:focus { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
@media (max-width: 520px) { .liste form { flex-direction: column; } }
.liste .zustimmung { font-size: 0.88rem; color: var(--ink-3); max-width: 520px; margin: 14px auto 0; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { max-width: 520px; margin: 20px auto 0; padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.status[data-art="danke"] { border-color: color-mix(in oklab, var(--green) 40%, transparent); }
.status[data-art="ungueltig"] { border-color: color-mix(in oklab, var(--accent) 40%, transparent); }

/* Fuß */
.fuss { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.95rem; color: var(--ink-2); }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.fuss img { width: 40px; height: 40px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.fuss a { color: var(--ink-2); }
.fuss .klein { width: 100%; color: var(--ink-3); font-size: 0.85rem; }

/* Unterseiten (Impressum, Datenschutz) */
.unterseite { padding: 72px 0 120px; }
.unterseite h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 400; }
.unterseite p { margin-top: 18px; color: var(--ink-2); max-width: 40rem; }

/* Nur für Vorleseprogramme */
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.rund { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 1.45rem; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0 0 3px; transition: background 160ms ease, transform 160ms ease; }
.rund:hover { transform: translateY(-1px); }

/* ---------- Das aufgeschlagene Buch ---------- */
.buch-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: #2b2622; }
.buch-dialog::backdrop { background: transparent; }
.buch-raum { position: absolute; inset: 0; perspective: 2000px; background: rgba(18, 11, 6, 0); transition: background 450ms ease; }
.buch-dialog.offen .buch-raum { background: rgba(18, 11, 6, .66); }
.buch-band { --papier: #f6efe0; position: absolute; left: 50%; top: 50%; width: calc(var(--P) * 2); height: var(--H); margin-left: calc(var(--P) * -1); margin-top: calc(var(--H) / -2 - 22px); transform-style: preserve-3d; }
.buch-blatt { position: absolute; left: var(--P); top: 0; width: var(--P); height: 100%; transform: translateZ(-1px); border-radius: 2px 7px 7px 2px; overflow: auto; overscroll-behavior: contain;
  padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(90deg, rgba(60, 40, 20, .14), transparent 7%), var(--papier);
  box-shadow: 2px 2px 0 #e8dcc5, 4px 4px 0 #ddd0b5, 6px 6px 0 #d4c5a7, 0 40px 70px -24px rgba(0, 0, 0, .7); }
.buch-deckel { position: absolute; left: var(--P); top: 0; width: var(--P); height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.deckel-vorne, .deckel-hinten { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.deckel-vorne { border-radius: 3px 8px 8px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 34px;
  background: linear-gradient(100deg, rgba(0, 0, 0, .45) 0%, rgba(255, 230, 200, .1) 5%, transparent 12%), radial-gradient(ellipse 80% 60% at 40% 30%, rgba(255, 226, 186, .14), transparent), linear-gradient(160deg, transparent 50%, rgba(0, 0, 0, .35)), var(--leder, #5a1a26);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 30px rgba(0, 0, 0, .35), 0 40px 70px -24px rgba(0, 0, 0, .7); }
.deckel-rahmen { position: absolute; inset: 16px 16px 16px 22px; border: 1.5px solid rgba(217, 181, 106, .6); border-radius: 4px; box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(217, 181, 106, .28); pointer-events: none; }
.deckel-siegel { width: clamp(56px, 22%, 88px); height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.deckel-titel { font-size: clamp(1.25rem, calc(var(--P) * .065), 1.9rem); line-height: 1.25; text-align: center; font-variant-caps: small-caps; letter-spacing: .05em;
  background: linear-gradient(180deg, #f0dca8, #c9a464 60%, #9c7a40); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.deckel-hinten { transform: rotateY(180deg); border-radius: 7px 2px 2px 7px; padding: 34px 30px 24px; overflow: auto;
  background: linear-gradient(270deg, rgba(60, 40, 20, .14), transparent 7%), var(--papier); box-shadow: -2px 2px 0 #e8dcc5, -4px 4px 0 #ddd0b5, 0 40px 70px -24px rgba(0, 0, 0, .7); }
.buch-ruecken { position: absolute; left: calc(var(--P) - var(--T)); top: 0; width: var(--T); height: 100%; transform-origin: 100% 50%; transform: rotateY(-90deg); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 232, 205, .12) 36%, rgba(0, 0, 0, .2) 84%, rgba(0, 0, 0, .62)), var(--leder, #5a1a26); }
.buch-ruecken span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: calc(var(--T) * .42); font-variant-caps: small-caps; letter-spacing: .07em; color: #d9b56a; }
.buch-art { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #7a1f2e; }
.buch-titel { font-size: 1.45rem; font-weight: 500; margin-top: -6px; }
.buch-kapitel { font-style: italic; color: #6f655c; font-size: .95rem; margin-bottom: 18px; }
.buch-kapitel::after { content: ""; display: block; width: 46px; height: 1px; margin-top: 14px; background: linear-gradient(90deg, #b08d57, transparent); }
.buch-dialog.schmal .buch-kapitel::after { display: none; }
.buch-text { font-size: clamp(1rem, calc(var(--P) * .027), 1.16rem); line-height: 1.8; color: #2b2622; text-wrap: pretty; }
.schreibmarke { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: #7a1f2e; opacity: 0; }
.buch-dialog.tippt .schreibmarke { opacity: 1; animation: marke 1s steps(1) infinite; }
@keyframes marke { 50% { opacity: 0; } }
.buch-rest { color: transparent; }
.buch-woerter { margin-top: 12px; font-size: .82rem; color: #8f857a; font-variant-numeric: tabular-nums; }
.buch-elemente { display: grid; gap: 10px; }
.el { border: 1px solid rgba(43, 38, 34, .12); border-radius: 10px; padding: 10px 12px; background: #fbf8f2; font-size: .9rem; line-height: 1.45; }
.buch-dialog.aufgeschlagen .el { animation: el-rein 520ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n) * 140ms + 120ms); }
@keyframes el-rein { from { opacity: 0; transform: translateY(10px); } }
.el-name { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8f857a; margin-bottom: 6px; }
.el p { margin: 0; color: #5f564e; }
.el-figur { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.el-figur b { display: block; font-weight: 600; color: #2b2622; }
.el-figur small { color: #8f857a; }
.el-kreis { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; color: #fff; background: var(--f); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.el-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.el-liste li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; color: #2b2622; }
.el-liste small { color: #8f857a; font-variant-numeric: tabular-nums; }
.st-punkt { display: block; width: 8px; height: 8px; border-radius: 50%; background: #c9bdaa; }
.st-punkt.s-ueberarbeiten { background: #c99a3e; } .st-punkt.s-fertig { background: #3f7a5c; }
.el-kurve { width: 100%; height: 52px; overflow: visible; }
.el-kurve path { fill: none; stroke: #7a1f2e; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; }
.el-kurve circle { fill: #fbf8f2; stroke: #7a1f2e; stroke-width: 1.6; }
.buch-dialog.aufgeschlagen .el-kurve path { animation: linie 1.4s ease-out .5s both; }
@keyframes linie { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.el-balken { display: block; height: 6px; border-radius: 99px; background: rgba(43, 38, 34, .1); margin-top: 8px; overflow: hidden; }
.el-balken > span { display: block; height: 100%; width: calc(var(--anteil) * 100%); border-radius: inherit; background: linear-gradient(90deg, #8a6a3a, #b08d57, #e3cc95); }
.buch-dialog.aufgeschlagen .el-balken > span { animation: balken 1.2s cubic-bezier(.2, .8, .2, 1) .6s both; }
@keyframes balken { from { width: 0; } }
.el-leise { font-size: .84rem; margin-top: 6px !important; color: #8f857a !important; }
.el-karte { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.el-karte dt { color: #8f857a; font-size: .82rem; } .el-karte dd { margin: 0; color: #2b2622; }
.el-zeit { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid rgba(122, 31, 46, .35); display: grid; gap: 6px; }
.el-zeit li { position: relative; display: grid; grid-template-columns: 3.4em 1fr; gap: 8px; color: #2b2622; }
.el-zeit li::before { content: ""; position: absolute; left: -17px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: #7a1f2e; }
.el-zeit small { color: #8f857a; font-variant-numeric: tabular-nums; }
.el-notiz { font-style: italic; }
.el-bez { color: #2b2622 !important; }
.buch-weiter { margin-top: auto; align-self: stretch; }
.buch-steuer { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 16px; color: #f1e9d8; opacity: 0; transition: opacity 400ms ease; }
.buch-dialog.offen .buch-steuer, .buch-dialog.offen .buch-zu { opacity: 1; }
.buch-dialog .rund { background: rgba(30, 20, 12, .55); color: #f1e9d8; border-color: rgba(241, 233, 216, .3); }
.buch-dialog .rund:hover { background: rgba(60, 40, 24, .75); }
.buch-dialog .rund:focus-visible, .buch-dialog .knopf:focus-visible { outline: 2px solid #e3cc95; outline-offset: 3px; }
.buch-nr { font-variant-numeric: tabular-nums; font-size: .92rem; min-width: 4.5em; text-align: center; }
.buch-zu { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; opacity: 0; transition: opacity 400ms ease; }
.buch-dialog.schmal .buch-blatt { padding: 18px 18px 14px; gap: 9px; }
.buch-dialog.schmal .buch-band { margin-top: calc(var(--H) / -2 - 8px); }
.buch-dialog.schmal .buch-kapitel { margin-bottom: 6px; }
.buch-dialog.schmal .buch-text { font-size: .95rem; line-height: 1.7; }
.buch-dialog.schmal .buch-woerter { margin: 4px 0 2px; }

/* ---------- Schreiben: kleiner echter Editor ---------- */
.editor { display: flex; flex-direction: column; }
.ed-kopf { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); transition: opacity 500ms ease; }
.ed-buch { font-weight: 600; color: var(--ink); }
.ed-stand { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.ed-stand::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3f7a5c; transition: background 200ms ease; }
.ed-stand.speichert::before { background: #c99a3e; }
.ed-fokus { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .85rem; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; min-height: 34px; cursor: pointer; }
.ed-fokus svg { width: 15px; height: 15px; }
.ed-fokus[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ed-flaeche { position: relative; height: 290px; background: var(--card); }
.ed-spiegel, .ed-text { position: absolute; inset: 0; margin: 0; padding: 22px 28px; border: 0; font-family: var(--serif); font-size: 1.04rem; font-weight: 400; line-height: 1.75; letter-spacing: normal; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; text-align: left; }
.ed-spiegel { color: var(--ink); overflow: hidden; pointer-events: none; }
.ed-text { background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--accent-ink); resize: none; outline: none; overflow-y: auto; scrollbar-width: none; }
.ed-text::-webkit-scrollbar { display: none; }
.ed-text::selection { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.ed-text:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--accent-ink) 45%, transparent); }
.ed-spiegel .abs { transition: opacity 450ms ease; }
.ed-spiegel .name { text-decoration: underline dotted color-mix(in oklab, var(--accent-ink) 75%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.editor.fokus .ed-spiegel .abs:not(.jetzt) { opacity: .25; }
.editor.fokus .ed-kopf > :not(.ed-fokus), .editor.fokus .ed-fuss, .editor.fokus .ed-tipp { opacity: .25; }
.ed-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); transition: opacity 500ms ease; }
.ed-zahl b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ed-balken { flex: 1; min-width: 80px; max-width: 180px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ed-balken > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8a6a3a, #b08d57, #e3cc95); transition: width 500ms cubic-bezier(.2, .8, .2, 1); }
.editor.geschafft .ed-balken > span { box-shadow: 0 0 10px rgba(227, 204, 149, .9); }
.ed-figuren { margin-left: auto; display: flex; gap: 6px; }
.ed-figuren span { border-radius: 999px; padding: 1px 9px; font-size: .8rem; background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 560px) {
  .ed-buch { display: none; }
  .ed-stand { margin-left: 0; }
  .ed-fokus { margin-left: auto; }
  .ed-spiegel, .ed-text { padding: 16px 18px; font-size: .98rem; }
  .ed-flaeche { height: 270px; }
}
.ed-kopf > * { white-space: nowrap; }
.ed-tipp { padding: 0 16px 12px; font-size: .84rem; color: var(--ink-3); transition: opacity 500ms ease; }

/* ---------- Figuren & Welt: Beziehungsnetz und Steckbriefe ---------- */
.figuren-buehne { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.netz { position: relative; aspect-ratio: 100 / 60; border-radius: 10px; background: radial-gradient(ellipse at 50% 50%, var(--paper-2), transparent 70%); }
.netz-knoten { position: absolute; inset: 0; }
@media (max-width: 560px) { .netz { aspect-ratio: 100 / 78; } }
.netz-linien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.netz-linien line { stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke 300ms ease; }
.netz-linien line.an { stroke: var(--accent-ink); stroke-width: 2; }
.figuren-buehne.zu-sehen .netz-linien line { animation: netz-linie 1.1s ease-out both; animation-delay: calc(var(--n) * 220ms + 200ms); }
@keyframes netz-linie { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.figuren-buehne:not(.zu-sehen) .netz-linien line { stroke-dashoffset: 1; }
.figuren-buehne.zu-sehen .netz-linien line { stroke-dashoffset: 0; }
.knoten { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 4px; font: inherit; color: var(--ink); cursor: pointer; border-radius: 12px; }
.knoten i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .9rem; color: #fff; background: var(--f); box-shadow: 0 0 0 3px var(--card), 0 4px 10px -4px rgba(0, 0, 0, .5); transition: transform 300ms cubic-bezier(.2, .8, .2, 1), box-shadow 300ms ease; }
.knoten span { font-size: .8rem; white-space: nowrap; }
.knoten.an i { transform: scale(1.12); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent-ink), 0 6px 14px -4px rgba(0, 0, 0, .5); }
.figuren-buehne:not(.zu-sehen) .knoten { opacity: 0; }
.figuren-buehne.zu-sehen .knoten { animation: knoten-rein 600ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n) * 120ms); }
@keyframes knoten-rein { from { opacity: 0; transform: translate(-50%, -40%) scale(.85); } }
.bez-label { position: absolute; transform: translate(-50%, -50%); font-size: .72rem; color: var(--ink-3); background: var(--card); padding: 0 6px; border-radius: 99px; white-space: nowrap; pointer-events: none; transition: color 300ms ease; }
.bez-label.an { color: var(--accent-ink); }
.steckbriefe { position: relative; min-height: 172px; perspective: 1200px; }
.steckbrief { border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; transform-origin: 0 50%; }
.steckbrief.rein { animation: blatt-rein 560ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes blatt-rein { from { opacity: 0; transform: rotateY(-28deg) translateX(18px); } }
.steckbrief .el-kreis { width: 52px; height: 52px; font-size: 1rem; grid-row: span 2; color: #fff; }
.steckbrief h3 { font-size: 1.15rem; }
.steckbrief .rolle { color: var(--ink-3); font-size: .88rem; margin-top: -4px; }
.steckbrief dl { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 0; font-size: .93rem; }
.steckbrief dt { color: var(--ink-3); } .steckbrief dd { margin: 0; }
.steckbrief .satz { grid-column: 1 / -1; font-style: italic; color: var(--ink-2); }
.figuren-punkte { display: flex; justify-content: center; gap: 6px; }

/* ---------- Plotten: Spannungskurve mit ziehbaren Wendepunkten ---------- */
.kurve-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; font-size: .9rem; }
.kurve-titel { font-weight: 600; }
.kurve-legende { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .82rem; }
.kurve-legende .strich { width: 22px; border-top: 2px dashed var(--ink-3); opacity: .7; }
.kurve-flaeche { position: relative; margin: 26px 18px 0; aspect-ratio: 600 / 260; }
.kurve-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kurve-raster line { stroke: var(--line); stroke-width: 1; }
.kurve-raster text { fill: var(--ink-3); font-size: 11px; font-family: var(--serif); }
.kurve-ideal { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .55; }
.kurve-linie { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; }
.kurve-flaeche-fuell { fill: color-mix(in oklab, var(--accent) 12%, transparent); }
.kp { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; transition: opacity 400ms ease; }
.kp::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--accent-ink); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .4); transition: transform 200ms ease; }
.kp:hover::before, .kp:focus-visible::before, .kp.zieht::before { transform: scale(1.25); background: var(--accent-ink); }
.kp.zieht { cursor: grabbing; }
.kp span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-size: .74rem; white-space: nowrap; color: var(--ink-2); pointer-events: none; }
.kp.oben span { top: auto; bottom: 100%; }
.kp.versteckt { opacity: 0; pointer-events: none; }
.kurve-stand { padding: 18px 18px 14px; font-size: .9rem; color: var(--ink-2); min-height: 3.2em; }
@media (max-width: 520px) { .kp span { font-size: .66rem; } .kurve-flaeche { margin: 26px 10px 0; } }

/* ---------- Deine Texte gehören dir: das Schloss ---------- */
.schloss { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 10px; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.schloss-geraet, .schloss-server { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.schloss-server { background: color-mix(in oklab, var(--paper-2) 60%, transparent); }
.schloss-titel { display: flex; align-items: center; gap: 8px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.schloss-titel svg, .schloss-schluessel svg { width: 18px; height: 18px; flex: none; }
.schloss-text { font-size: 1rem; line-height: 1.55; min-height: 4.7em; flex: 1; overflow-wrap: anywhere; }
.schloss-text.geheim { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; color: var(--ink-3); word-break: break-all; letter-spacing: .02em; }
.schloss-text .zeichen { word-break: break-all; color: var(--accent-ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
.schloss-schluessel { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--green); }
@media (prefers-color-scheme: dark) { .schloss-schluessel { color: #9fcbb0; } }
.schloss-unter { font-size: .84rem; color: var(--ink-3); }
.schloss-weg { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--accent-ink); }
.schloss-weg svg { width: 34px; height: 40px; overflow: visible; }
.schloss .buegel { transform: translateY(-7px); transition: transform 450ms cubic-bezier(.5, 0, .2, 1.4); }
.schloss.zu .buegel { transform: none; }
.schloss-linie { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.paket { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 3px; background: var(--accent-ink); opacity: 0; box-shadow: 0 0 10px color-mix(in oklab, var(--accent-ink) 60%, transparent); }
.schloss.fliegt .paket { animation: paket 1.1s cubic-bezier(.5, 0, .4, 1) both; }
@keyframes paket { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 560px) {
  .schloss { grid-template-columns: 1fr; padding: 16px; }
  .schloss-geraet, .schloss-server { min-height: 0; }
  .schloss-weg { flex-direction: row; height: 64px; }
  .schloss-linie { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 11px); order: -1; position: absolute; left: 30%; top: 0; }
  .paket { left: 50%; top: 0; margin: -6px 0 0 -6px; }
  .schloss.fliegt .paket { animation-name: paket-runter; }
  @keyframes paket-runter { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
}

/* ---------- Regal und Stufen: Weg und Zimmer-Karussell ---------- */
.regal .stufen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; margin-top: 36px; }
@media (max-width: 860px) { .regal .stufen { grid-template-columns: 1fr; } }
.weg { margin-top: 56px; }
.weg-pfad { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0 0 24px; }
.weg-pfad::before, .weg-pfad::after { content: ""; position: absolute; left: 6.25%; top: 17px; height: 2px; border-radius: 2px; }
.weg-pfad::before { right: 6.25%; background: rgba(227, 183, 138, .22); }
.weg-pfad::after { width: calc(87.5% * var(--fort, 0)); background: linear-gradient(90deg, #8a6a3a, #e3cc95); transition: width 900ms cubic-bezier(.2, .8, .2, 1); }
.weg-pfad li { position: relative; z-index: 1; display: flex; justify-content: center; }
.weg-pfad button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(227, 183, 138, .45); background: var(--wood); color: #e3b78a; font: inherit; font-size: .88rem; cursor: pointer; transition: background 300ms ease, color 300ms ease, transform 300ms ease; }
.weg-pfad button.erreicht { background: #3a2a1c; border-color: #b08d57; }
.weg-pfad button[aria-current="true"] { background: linear-gradient(180deg, #e3cc95, #b08d57); color: #241a10; transform: scale(1.12); border-color: transparent; }
.weg-pfad button:focus-visible, .zimmer-karussell figure:focus-visible, .regal .rund:focus-visible, .tag-abend:focus-visible { outline: 2px solid #e3cc95; outline-offset: 3px; }
/* Ohne seitlichen Versatz: sonst rastet das Karussell beim Laden um 2 px ein, und Chrome misst kein LCP mehr */
.zimmer-karussell { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; }
.zimmer-karussell::-webkit-scrollbar { display: none; }
.zimmer-karussell figure { flex: 0 0 clamp(250px, 31%, 360px); scroll-snap-align: start; margin: 0; cursor: pointer; border-radius: 12px; }
.zimmer-bild { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 480 / 268; background: #2e231b; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8); }
.zimmer-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms ease, transform 1.2s ease; }
.zimmer-bild .abend { opacity: 0; }
.zimmer-karussell figure:hover .abend, .zimmer-karussell figure:focus-visible .abend, .zimmer-karussell figure.abend-an .abend, .weg.abends .abend { opacity: 1; }
.zimmer-karussell figure:hover img { transform: scale(1.03); }
.zimmer-karussell figcaption { color: var(--wood-ink-2); margin-top: 10px; font-size: .9rem; }
.zimmer-karussell figcaption b { color: var(--wood-ink); font-weight: 500; display: block; }
.weg-steuer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.regal .rund { background: transparent; color: var(--wood-ink); border-color: rgba(227, 183, 138, .4); }
.tag-abend { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .92rem; color: var(--wood-ink); background: transparent; border: 1px solid rgba(227, 183, 138, .4); border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.tag-abend svg { width: 16px; height: 16px; }
.tag-abend[aria-pressed="true"] { background: #e3cc95; color: #241a10; border-color: transparent; }
@media (max-width: 640px) { .zimmer-karussell figure { flex-basis: 80%; } }

/* ---------- Preise: Bookling Buddy leuchtet leise ---------- */
.preis.leuchtet { border-color: rgba(201, 164, 100, .55); }
.preis.leuchtet::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(217, 181, 106, .35), 0 0 32px 2px rgba(217, 181, 106, .26), inset 0 0 24px rgba(217, 181, 106, .08); animation: leuchten 5s ease-in-out infinite; }
@keyframes leuchten { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* Abschnitte, die erst beim Scrollen erscheinen */
[data-sichtbar] { transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.js [data-sichtbar]:not(.zu-sehen) { opacity: 0; transform: translateY(24px); }

/* ---------- Rechtstexte (Impressum, Datenschutz, AGB, Widerruf, Lesesaal-Regeln) ---------- */
.kopf .marke + .sprache { margin-left: auto; }
.recht { max-width: 46rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.recht .stand { margin-top: 10px; color: var(--ink-3); font-size: 0.92rem; }
.recht h2 { font-size: 1.4rem; font-weight: 500; margin-top: 48px; scroll-margin-top: 80px; }
.recht h3 { font-size: 1.08rem; font-weight: 600; margin-top: 28px; }
.recht p, .recht li, .recht dd { color: var(--ink-2); }
.recht p { margin-top: 14px; max-width: none; }
.recht ul, .recht ol { margin: 12px 0 0; padding-left: 1.3rem; }
.recht li + li { margin-top: 6px; }
.recht address { font-style: normal; margin-top: 16px; color: var(--ink-2); }
.recht dl { margin: 14px 0 0; }
.recht dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.recht dd { margin: 2px 0 0; }
.recht .kasten { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); }
.recht .kasten > :first-child { margin-top: 0; }
.recht .inhalt { margin-top: 28px; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; }
.recht .inhalt ol { margin-top: 6px; columns: 2 16rem; column-gap: 32px; }
.recht .inhalt li { break-inside: avoid; margin-top: 4px; }
.recht .tabelle { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.recht table { width: 100%; border-collapse: collapse; font-size: 0.93rem; hyphens: auto; }
.recht th, .recht td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.recht th { color: var(--ink); font-weight: 600; }
.recht td:first-child, .recht th:first-child { hyphens: manual; -webkit-hyphens: manual; }
.recht .formular { margin-top: 20px; padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--card); }
.recht .formular p { margin-top: 10px; }
.recht .linie { display: block; border-bottom: 1px solid var(--line-2); height: 1.6em; }
.recht .zurueck { margin-top: 56px; }
.fuss a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .unterseite { padding: 44px 0 88px; }
  .recht h2 { font-size: 1.25rem; margin-top: 40px; }
  .recht .kasten, .recht .inhalt, .recht .formular { padding: 14px 16px; }
  .recht table { font-size: 0.88rem; }
  .recht th, .recht td { min-width: 9rem; }
}
@media print {
  .kopf, .fuss, .recht .zurueck { display: none; }
}
