:root {
  --papier: #f4eddd;
  --papier-2: #ece2cb;
  --papier-3: #e2d5b8;
  --tinte: #1d1b17;
  --tinte-2: #3b362d;
  --grau: #5e5649;
  --linie: #cdbf9f;
  --gruen: #1e3a31;
  --gruen-2: #284a3f;
  --gruen-tief: #12241e;
  --bordeaux: #6e1f2a;
  --bordeaux-hell: #8d2f3c;
  --gold: #a9853f;
  --gold-hell: #d4b673;
  --gold-text: #6e5220;
  --sepia: #65533f;
  --mark: rgba(169, 133, 63, .16);
  --mark-stark: rgba(169, 133, 63, .32);
  --schatten: 0 1px 2px rgba(29, 27, 23, .06), 0 8px 28px -12px rgba(29, 27, 23, .28);

  --f-titel: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --f-text: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --gedicht-groesse: 1.22rem;

  --rand: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --breite: 1180px;
  --kopf: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: only light;
}

:root[data-abend="an"] {
  --papier: #1b1813;
  --papier-2: #231f19;
  --papier-3: #2d281f;
  --tinte: #ece0c6;
  --tinte-2: #d6c8aa;
  --grau: #b2a386;
  --linie: #4a4133;
  --bordeaux: #d48a8f;
  --bordeaux-hell: #e3a2a6;
  --gold: #d0ae69;
  --gold-text: #d6b672;
  --sepia: #b8a07f;
  --mark: rgba(208, 174, 105, .16);
  --mark-stark: rgba(208, 174, 105, .3);
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga', 'onum';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-abend="an"] body::before { opacity: .25; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bordeaux); }
button { font: inherit; color: inherit; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mark-stark); }
[hidden] { display: none !important; }
.skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--papier); padding: 8px 14px; border: 1px solid var(--gold); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--f-titel); font-weight: 500; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 400; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.kapit { font-variant: small-caps; letter-spacing: .12em; text-transform: lowercase; font-size: .95rem; color: var(--grau); }
.kapit-klein { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); font-family: var(--f-text); }
.kursiv { font-style: italic; }
.ru { font-family: var(--f-text); }
[lang="ru"] { hyphens: manual; }
[lang="de"] { hyphens: auto; }

.kopf {
  position: sticky; top: 0; z-index: 40; height: var(--kopf);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--rand);
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.marke svg { width: 30px; height: 30px; color: var(--bordeaux); flex: none; }
.marke-text { font-family: var(--f-titel); font-size: 1.25rem; line-height: 1; }
.marke-text small { display: block; font-family: var(--f-text); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; padding: 8px 10px; font-size: .98rem; border-radius: 3px; color: var(--tinte-2); position: relative; }
.nav a[aria-current="page"] { color: var(--bordeaux); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1px; background: var(--gold); }
.kopf-werkzeuge { display: flex; gap: 6px; align-items: center; }
.knopf-icon {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid transparent;
  background: none; border-radius: 50%; cursor: pointer; color: var(--tinte-2);
}
.knopf-icon:hover { border-color: var(--linie); color: var(--bordeaux); }
.knopf-icon svg { width: 20px; height: 20px; }
.sprachwahl { display: inline-flex; border: 1px solid var(--linie); border-radius: 99px; overflow: hidden; }
.sprachwahl button { border: 0; background: none; padding: 4px 10px; cursor: pointer; font-size: .85rem; letter-spacing: .06em; color: var(--grau); }
.sprachwahl button[aria-pressed="true"] { background: var(--gruen); color: #f4eddd; }
.menue-knopf { display: none; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menue-knopf { display: inline-grid; }
  .kopf-werkzeuge { margin-left: auto; }
}

.verzeichnis {
  position: fixed; inset: 0; z-index: 60; background: var(--gruen-tief); color: #efe5cf;
  display: grid; place-items: center; padding: 70px var(--rand) 40px; overflow: auto;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.verzeichnis.offen { opacity: 1; pointer-events: auto; }
.verzeichnis-innen { width: min(560px, 100%); }
.verzeichnis h2 { color: var(--gold-hell); text-align: center; font-style: italic; margin-bottom: 1.2em; }
.verzeichnis ol { list-style: none; margin: 0; padding: 0; counter-reset: k; }
.verzeichnis li a {
  display: flex; align-items: baseline; gap: 10px; text-decoration: none; padding: 9px 0; font-size: 1.25rem;
  font-family: var(--f-titel);
}
.verzeichnis li a::before { counter-increment: k; content: counter(k, upper-roman); width: 2.4em; color: var(--gold-hell); font-size: .9rem; font-family: var(--f-text); }
.verzeichnis li a .punkte { flex: 1; border-bottom: 1px dotted rgba(212, 182, 115, .5); transform: translateY(-5px); }
.verzeichnis li a .ru-klein { font-size: .9rem; color: rgba(239, 229, 207, .6); font-family: var(--f-text); }
.verzeichnis li a:hover { color: var(--gold-hell); }
.verzeichnis .schliessen { position: absolute; top: 12px; right: var(--rand); color: #efe5cf; }

main { position: relative; z-index: 1; min-height: calc(100vh - var(--kopf)); }
.seite { max-width: var(--breite); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--rand) 96px; }
.seite.schmal { max-width: 780px; }
.seiten-kopf { text-align: center; margin-bottom: clamp(28px, 5vw, 56px); }
.seiten-kopf .ru-unter { font-family: var(--f-titel); font-style: italic; font-size: 1.35rem; color: var(--grau); }
.seiten-kopf p.einleitung { max-width: 640px; margin: 18px auto 0; color: var(--tinte-2); }
.ornament { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); margin: 18px auto; max-width: 320px; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.ornament svg { width: 22px; height: 22px; }

.knopf {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--tinte-2); background: transparent; padding: 10px 20px; border-radius: 99px;
  font-size: 1rem; letter-spacing: .02em; transition: all .2s var(--ease);
}
.knopf:hover { background: var(--tinte); color: var(--papier); }
.knopf.voll { background: var(--bordeaux); border-color: var(--bordeaux); color: #f7efe0; }
.knopf.voll:hover { background: var(--bordeaux-hell); border-color: var(--bordeaux-hell); color: #fff; }
.knopf.klein { padding: 6px 14px; font-size: .92rem; }
.knopf svg { width: 18px; height: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--linie); border-radius: 99px;
  background: transparent; cursor: pointer; font-size: .95rem; color: var(--tinte-2); transition: all .15s;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: #f4eddd; }
:root[data-abend="an"] .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1b1813; }
.chip .anz { font-size: .82rem; opacity: .7; }

.hinweis-entwurf {
  border: 1px dashed var(--bordeaux); color: var(--bordeaux); background: color-mix(in srgb, var(--bordeaux) 6%, transparent);
  padding: .6em 1em; border-radius: 4px; font-size: .95rem; font-style: italic;
}

.ouvertuere {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #2a2219 0%, #15110c 70%);
  color: #efe5cf; transition: opacity .9s var(--ease), visibility .9s;
}
.ouvertuere.fort { opacity: 0; visibility: hidden; }
.ouvertuere .lichtkegel { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 38%, rgba(255, 220, 160, .14), transparent 45%); pointer-events: none; }
.buch-buehne { perspective: 2200px; width: min(420px, 78vw); aspect-ratio: 3 / 4.2; position: relative; }
.buch { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.4s var(--ease); }
.buch .seite-innen {
  position: absolute; inset: 0; transform: translateZ(-2px); background: #f4eddd; color: #1d1b17; border-radius: 2px 6px 6px 2px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 3px 0 12px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12% 10%;
}
.buch .seite-innen::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px); pointer-events: none; border-radius: inherit; }
.widmung-zeilen { font-family: var(--f-titel); font-size: clamp(1.25rem, 3.6vw, 1.65rem); line-height: 1.35; font-style: italic; }
.widmung-zeilen span { display: block; opacity: 0; transform: translateY(6px); transition: all .9s var(--ease); }
.widmung-motto { margin-top: 1.6em; font-size: clamp(.92rem, 2.4vw, 1rem); color: #5f5747; line-height: 1.5; opacity: 0; transition: opacity 1.2s .2s var(--ease); }
.widmung-motto cite { display: block; font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .6em; color: #8a7d64; }
.buch.offen .widmung-zeilen span, .buch.offen .widmung-motto { opacity: 1; transform: none; }
.buch.offen .widmung-zeilen span:nth-child(2) { transition-delay: .9s; }
.buch.offen .widmung-zeilen span:nth-child(3) { transition-delay: 1.1s; }
.buch.offen .widmung-zeilen span:nth-child(1) { transition-delay: .7s; }
.buch.offen .widmung-motto { transition-delay: 1.5s; }
.widmung-von { margin-top: 1.2em; font-family: var(--f-titel); font-style: italic; font-size: 1.2rem; }

.widmung-von.widmung-platz { margin-top: 1.5em; padding-top: .7em; font-size: .95rem; letter-spacing: .02em; color: #7a5e2a; opacity: 0; transition: opacity 1.2s var(--ease) 3.8s; position: relative; }
.widmung-von.widmung-platz::before { content: ''; position: absolute; top: 0; left: 50%; width: 4.5em; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #b8975a, transparent); }
.buch.offen .widmung-platz { opacity: 1; }

.deckel {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(.6, .05, .25, 1); cursor: pointer; z-index: 2; transform: translateZ(2px);
}
.buch.offen .deckel { transform: translateZ(2px) rotateY(-165deg); }
.deckel-vorn, .deckel-hinten { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 8px 8px 3px; }
.deckel-vorn {
  background:
    linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(0,0,0,.05) 4%, transparent 7%),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .25' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"),
    #1d3a30;
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10%;
  color: var(--gold-hell);
}
.deckel-vorn::after { content: ''; position: absolute; inset: 5.5%; border: 1px solid rgba(212, 182, 115, .55); outline: 1px solid rgba(212, 182, 115, .3); outline-offset: 5px; pointer-events: none; }
.deckel-hinten { transform: rotateY(180deg); background: #e9dfc6; box-shadow: inset -8px 0 20px rgba(0,0,0,.15); }
.deckel-vorn .anlass { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; opacity: .85; }
.deckel-vorn .name { font-family: var(--f-titel); font-size: clamp(2.2rem, 8vw, 3.3rem); font-weight: 500; letter-spacing: .04em; margin: .35em 0 .1em; color: #e8d39d; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.deckel-vorn .name-ru { font-family: var(--f-titel); font-style: italic; font-size: 1.1rem; opacity: .75; }
.deckel-vorn .kimm { width: 70%; margin: 1.4em auto; color: var(--gold-hell); }
.deckel-vorn .titel { font-family: var(--f-titel); font-style: italic; font-size: clamp(1.4rem, 4.6vw, 1.9rem); line-height: 1.15; }
.deckel-vorn .titel-ru { font-family: var(--f-titel); font-size: clamp(1.05rem, 3.4vw, 1.3rem); opacity: .8; margin-top: .25em; }
.deckel-vorn .deckel-fuss { position: absolute; bottom: 9%; left: 8%; right: 8%; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ouvertuere-steuer { position: absolute; bottom: max(24px, 4vh); left: 0; right: 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
.ouvertuere .knopf { border-color: rgba(212, 182, 115, .6); color: #efe5cf; }
.ouvertuere .knopf:hover { background: rgba(212, 182, 115, .15); color: #fff; }
.ouvertuere .knopf.voll { background: var(--gold); border-color: var(--gold); color: #1a150e; }
.ouvertuere .ueberspringen { position: absolute; top: 16px; right: 16px; font-size: .9rem; color: rgba(239, 229, 207, .7); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }

.foyer-held { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.foyer-held .gruss { font-family: var(--f-titel); font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; margin: .1em 0 .3em; font-weight: 400; }
.foyer-held .gruss em { color: var(--bordeaux); }
.foyer-held .text { color: var(--tinte-2); max-width: 34em; }
.tageskarte {
  background: var(--papier-2); border: 1px solid var(--linie); padding: clamp(22px, 3.4vw, 36px); position: relative; box-shadow: var(--schatten);
}
.tageskarte::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--linie); pointer-events: none; }
.tageskarte .datum { display: flex; justify-content: space-between; gap: 10px; }
.tageskarte h3 { font-size: 1.7rem; margin: .45em 0 .1em; }
.tageskarte .titel-ru { font-style: italic; color: var(--grau); }
.tageskarte .auszug { font-size: 1.12rem; margin: 1em 0 1.2em; white-space: pre-line; line-height: 1.5; }
.raeume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(48px, 7vw, 90px); }
.raum {
  position: relative; display: block; padding: 26px 24px 24px; text-decoration: none; border: 1px solid var(--linie);
  background: color-mix(in srgb, var(--papier-2) 60%, transparent); min-height: 190px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.raum:hover { transform: translateY(-3px); box-shadow: var(--schatten); border-color: var(--gold); color: inherit; }
.raum .nr { font-family: var(--f-titel); color: var(--gold); font-size: 1.05rem; }
.raum h3 { margin: .3em 0 .15em; font-size: 1.6rem; }
.raum .ru-klein { font-style: italic; color: var(--grau); font-size: .98rem; }
.raum p { margin: .7em 0 0; color: var(--tinte-2); font-size: 1rem; line-height: 1.45; }
.raum.brief { background: var(--gruen); color: #efe5cf; border-color: var(--gruen); }
.raum.brief .ru-klein, .raum.brief p { color: rgba(239, 229, 207, .78); }
.raum.brief .nr { color: var(--gold-hell); }
.zitatband { margin: clamp(56px, 8vw, 100px) auto 0; max-width: 760px; text-align: center; }
.zitatband blockquote { margin: 0; font-family: var(--f-titel); font-size: clamp(1.4rem, 3vw, 1.95rem); line-height: 1.3; font-style: italic; }
.zitatband cite { display: block; margin-top: 14px; font-style: normal; }
@media (max-width: 820px) { .foyer-held { grid-template-columns: 1fr; } }
@media (max-width: 1060px) { .raeume { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .raeume { grid-template-columns: 1fr; } .raum { min-height: 0; } }

.raeume.ungerade > .raum:last-child { grid-column: span 2; }
@media (max-width: 560px) { .raeume.ungerade > .raum:last-child { grid-column: auto; } }

.platzhalter { color: var(--bordeaux); font-style: italic; }

.suchleiste { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--tinte-2); padding: 6px 2px; max-width: 640px; margin: 0 auto 22px; }
.suchleiste svg { width: 20px; height: 20px; color: var(--grau); flex: none; }
.suchleiste input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.25rem; color: var(--tinte); padding: 6px 0; min-width: 0; }
.suchleiste input:focus { outline: none; }
.filter { display: grid; gap: 12px; margin: 0 auto 30px; max-width: 980px; }
.filter-reihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.filter-reihe .kapit-klein { margin-right: 4px; }
.ergebnis-zeile { text-align: center; color: var(--grau); font-style: italic; margin-bottom: 26px; min-height: 1.6em; }
.jahrgang { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--linie); }
.jahrgang-kopf { position: sticky; top: calc(var(--kopf) + 16px); align-self: start; }
.jahrgang-kopf .jahr { font-family: var(--f-titel); font-size: 2.6rem; line-height: 1; color: var(--bordeaux); }
.jahrgang-kopf .alter { font-size: .9rem; color: var(--grau); font-style: italic; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.karte {
  position: relative; display: flex; flex-direction: column; text-align: left; text-decoration: none; cursor: pointer;
  background: var(--papier-2); border: 1px solid var(--linie); padding: 18px 18px 16px; min-height: 150px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.karte:hover { transform: translateY(-2px) rotate(-.2deg); box-shadow: var(--schatten); border-color: var(--gold); color: inherit; }
.karte .t-ru { font-family: var(--f-titel); font-size: 1.32rem; line-height: 1.15; font-weight: 500; }
.karte .t-de { font-style: italic; color: var(--tinte-2); margin-top: 2px; }
.karte .zeile1 { margin-top: auto; padding-top: 12px; font-size: 1rem; color: var(--grau); line-height: 1.4; }
.karte .zeile1 mark { background: var(--mark-stark); color: inherit; }
.karte .stern { position: absolute; top: 10px; right: 12px; color: var(--gold); font-size: 1rem; }
.karte.stankewitsch { background: color-mix(in srgb, var(--gruen) 9%, var(--papier-2)); }
.karte .autor-mark { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-2); margin-bottom: 6px; }
:root[data-abend="an"] .karte .autor-mark { color: var(--gold); }
.leer { text-align: center; padding: 40px 0; color: var(--grau); font-style: italic; }
@media (max-width: 640px) {
  .jahrgang { grid-template-columns: 1fr; gap: 10px; }
  .jahrgang-kopf { position: static; display: flex; align-items: baseline; gap: 12px; }
  .jahrgang-kopf .jahr { font-size: 2rem; }
}

.lesetisch-kopf { text-align: center; margin-bottom: 24px; }
.lesetisch-kopf .t-ru { font-family: var(--f-titel); font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.05; font-weight: 500; }
.lesetisch-kopf .t-de { font-family: var(--f-titel); font-style: italic; font-size: clamp(1.35rem, 3.2vw, 1.8rem); color: var(--tinte-2); margin-top: .15em; }
.lesetisch-kopf .meta { margin-top: 12px; color: var(--grau); font-size: 1rem; }
.lesetisch-kopf .meta a { text-decoration: none; border-bottom: 1px dotted var(--gold); }
.werkzeugleiste {
  position: sticky; top: calc(var(--kopf) + 8px); z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
  margin: 0 auto 30px; padding: 6px 8px; width: fit-content; max-width: 100%;
  background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--linie); border-radius: 99px; box-shadow: var(--schatten);
}
.werkzeugleiste .trenner { width: 1px; height: 22px; background: var(--linie); margin: 0 4px; }
.werkzeugleiste .segment { display: inline-flex; border-radius: 99px; overflow: hidden; }
.werkzeugleiste .segment button { border: 0; background: none; padding: 6px 11px; cursor: pointer; font-size: .9rem; color: var(--tinte-2); }
.werkzeugleiste .segment button[aria-pressed="true"] { background: var(--tinte); color: var(--papier); }
.werkzeugleiste .knopf-icon { width: 34px; height: 34px; }
.werkzeugleiste .knopf-icon[aria-pressed="true"] { color: var(--bordeaux); border-color: var(--linie); }

.gedicht-flaeche { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 1020px; margin: 0 auto; position: relative; }
.gedicht-flaeche::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(transparent, var(--linie) 8%, var(--linie) 92%, transparent); }
.gedicht-flaeche.nur-ru, .gedicht-flaeche.nur-de, .gedicht-flaeche.verschraenkt { grid-template-columns: 1fr; max-width: 640px; }
.gedicht-flaeche.nur-ru::before, .gedicht-flaeche.nur-de::before, .gedicht-flaeche.verschraenkt::before { display: none; }
.gedicht-flaeche.nur-ru .spalte-de, .gedicht-flaeche.nur-de .spalte-ru { display: none; }
.spalte-kopf { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grau); margin-bottom: 18px; display: flex; justify-content: space-between; }
.gedicht { font-size: var(--gedicht-groesse); line-height: 1.62; }
.strophe { margin: 0 0 1.15em; }
.vz {
  display: block; padding: 0 .35em; margin: 0 -.35em; border-radius: 2px; cursor: default;
  transition: background .25s var(--ease), color .25s;
  text-indent: -1em; padding-left: calc(1em + .35em);
}
.vz.an { background: var(--mark-stark); }
.vz.liest { background: var(--mark-stark); box-shadow: inset 2px 0 0 var(--bordeaux); }
.zuordnung-zeile .vz { cursor: pointer; }
.strophe.an { background: var(--mark); box-shadow: -10px 0 0 var(--mark), 10px 0 0 var(--mark); }
.verschraenkt .paar { margin-bottom: .55em; }
.verschraenkt .paar .vz-ru { display: block; }
.verschraenkt .paar .vz-de { display: block; font-style: italic; color: var(--tinte-2); font-size: .9em; padding-left: 1em; }
.verschraenkt .strophen-trenner { height: .9em; }
.widmungszeile { font-style: italic; color: var(--grau); margin-bottom: 1em; font-size: .95rem; }
.zuordnung-hinweis { text-align: center; font-size: .92rem; color: var(--grau); font-style: italic; margin: 22px auto 0; max-width: 640px; }
.lese-erlebnis { text-align: center; margin: 14px auto 0; }
.lese-erlebnis a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--linie); border-radius: 999px; font-size: 1rem; color: var(--bordeaux); text-decoration: none; }
.lese-erlebnis a:hover, .lese-erlebnis a:focus-visible { background: var(--mark); }
.lese-erlebnis svg { width: 18px; height: 18px; flex: none; }
@media print { .lese-erlebnis { display: none; } }
@media (max-width: 760px) {
  .gedicht-flaeche { grid-template-columns: 1fr; }
  .gedicht-flaeche::before { display: none; }
  .gedicht-flaeche:not(.nur-ru):not(.nur-de):not(.verschraenkt) .spalte-de { border-top: 1px solid var(--linie); padding-top: 26px; }
}

.lese-unten { display: grid; grid-template-columns: 1fr 300px; gap: clamp(28px, 5vw, 64px); max-width: 1020px; margin: clamp(48px, 7vw, 80px) auto 0; }
.anmerkungen h2 { font-size: 1.9rem; }
.reiter { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--linie); margin-bottom: 20px; }
.reiter button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-size: 1.02rem; color: var(--grau); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter button[aria-selected="true"] { color: var(--tinte); border-bottom-color: var(--bordeaux); }
.anm-text { white-space: pre-line; color: var(--tinte-2); }
.anm-text p { margin: 0 0 1em; }
.anm-quelle { font-size: .9rem; color: var(--grau); margin-top: 1em; }
.randspalte { display: grid; gap: 22px; align-content: start; }
.randkasten { border-top: 1px solid var(--tinte-2); padding-top: 12px; }
.randkasten dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 1rem; }
.randkasten dt { color: var(--grau); }
.randkasten dd { margin: 0; }
.motivliste { display: flex; flex-wrap: wrap; gap: 6px; }
.frage { font-family: var(--f-titel); font-style: italic; font-size: 1.32rem; line-height: 1.3; color: var(--bordeaux); }
figure { margin: 0; }
figure img { border: 1px solid var(--linie); background: var(--papier-2); }
figcaption { font-size: .9rem; color: var(--grau); margin-top: 8px; line-height: 1.4; }
figcaption small { display: block; font-size: .82rem; opacity: .85; }
.blaettern { display: flex; justify-content: space-between; gap: 16px; max-width: 1020px; margin: 60px auto 0; border-top: 1px solid var(--linie); padding-top: 22px; }
.blaettern a { text-decoration: none; max-width: 46%; }
.blaettern a .r { display: block; font-family: var(--f-titel); font-size: 1.3rem; }
.blaettern a.weiter { text-align: right; margin-left: auto; }
@media (max-width: 860px) { .lese-unten { grid-template-columns: 1fr; } }

.himmel {
  position: relative; background: radial-gradient(ellipse at 50% 30%, #1a2e44 0%, #0d1521 55%, #070b11 100%);
  border-radius: 6px; overflow: hidden; color: #e9e1cd; box-shadow: var(--schatten);
}
.himmel svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.himmel .hintergrund-stern { fill: #fff; }
.himmel .motiv-stern { cursor: pointer; }
.himmel .motiv-stern .kern { fill: #f5e2ae; transition: r .3s; }
.himmel .motiv-stern .hof { fill: url(#hof); opacity: .55; transition: opacity .3s; }
.himmel .motiv-stern text { fill: #e9e1cd; font-family: var(--f-titel); font-size: 25px; letter-spacing: .02em; pointer-events: none; }
.himmel .motiv-stern text.ru-text { font-size: 19px; fill: rgba(233, 225, 205, .8); font-style: italic; }

.himmel .motiv-stern text { paint-order: stroke; stroke: rgba(9, 14, 22, .82); stroke-width: 5px; stroke-linejoin: round; }
.himmel .motiv-stern text.ru-text { stroke-width: 4px; }
.himmel .motiv-stern:hover .hof, .himmel .motiv-stern.an .hof, .himmel .motiv-stern:focus .hof { opacity: 1; }
.himmel .werk-stern { fill: #cfd8e6; opacity: .75; cursor: pointer; transition: opacity .3s, r .3s; }
.himmel .werk-stern.an { fill: #ffe7a8; opacity: 1; }
.himmel .werk-stern.aus { opacity: .18; }
.himmel .linie { stroke: rgba(214, 196, 150, .14); stroke-width: .8; fill: none; transition: stroke .3s, stroke-width .3s; }
.himmel .linie.an { stroke: rgba(240, 214, 150, .75); stroke-width: 1.1; }
.himmel .linie.aus { stroke: rgba(214, 196, 150, .04); }
.himmel-tipp { position: absolute; pointer-events: none; background: rgba(10, 16, 26, .92); border: 1px solid rgba(212, 182, 115, .4); padding: 8px 12px; border-radius: 4px; font-size: .95rem; max-width: 260px; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .2s; }
.himmel-tipp.sichtbar { opacity: 1; }
.himmel-tipp b { font-family: var(--f-titel); font-weight: 500; font-size: 1.1rem; display: block; }
.sternbild-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.sternbild-panel { border: 1px solid var(--linie); background: var(--papier-2); padding: 22px; position: sticky; top: calc(var(--kopf) + 16px); max-height: calc(100vh - var(--kopf) - 32px); overflow: auto; }
.sternbild-panel h2 { font-size: 1.7rem; font-weight: 500; margin-bottom: 0; }
.sternbild-panel ul { list-style: none; padding: 0; margin: 14px 0 0; }
.sternbild-panel li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--linie); text-decoration: none; }
.sternbild-panel li a span { display: block; font-size: .92rem; color: var(--grau); font-style: italic; }
.motiv-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
@media (max-width: 1100px) { .sternbild-layout { grid-template-columns: 1fr; } .sternbild-panel { position: static; max-height: none; } }

.seismo { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 0 2px; border-bottom: 1px solid var(--tinte-2); overflow-x: auto; scrollbar-width: thin; }
.seismo button {
  flex: 1 0 22px; min-width: 22px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; padding: 0;
  position: relative;
}
.seismo .balken { width: 70%; background: var(--linie); border-radius: 2px 2px 0 0; transition: background .2s, height .6s var(--ease); min-height: 2px; }
.seismo .ereignis-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--bordeaux); margin-bottom: 4px; }
.seismo button:hover .balken { background: var(--gold); }
.seismo button[aria-pressed="true"] .balken { background: var(--bordeaux); }
.jahresachse { display: flex; gap: 3px; padding: 6px 2px 0; overflow: hidden; }

.jahresachse span { flex: 1 0 22px; min-width: 22px; min-height: 1.3em; text-align: center; font-size: .82rem; line-height: 1.3; white-space: nowrap; font-variant-numeric: lining-nums; color: var(--grau); }
.jahresachse span.voll { color: var(--tinte); font-weight: 600; }
.jahresachse span.an { color: var(--bordeaux); }
.lebensweg-legende { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: .92rem; color: var(--grau); margin: 14px 0 34px; }
.lebensweg-legende i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 6px; }
.jahr-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); }
.jahr-detail .jahr-gross { font-family: var(--f-titel); font-size: clamp(3.6rem, 10vw, 6rem); line-height: .9; color: var(--bordeaux); }
.jahr-detail .alter-zeile { font-style: italic; color: var(--grau); margin-bottom: 1.2em; }
.jahr-detail .chronik p { margin-bottom: .7em; }
.jahr-detail h2 { font-family: var(--f-text); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); font-weight: 500; margin: 1.4em 0 .6em; }
.mini-liste { list-style: none; padding: 0; margin: 0; }
.mini-liste a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--linie); text-decoration: none; }
.mini-liste a span:last-child { font-style: italic; color: var(--grau); text-align: right; }
.karte-wege { margin-top: clamp(56px, 8vw, 90px); }
.karte-wege svg { width: 100%; height: auto; display: block; background: var(--papier-2); border: 1px solid var(--linie); }
.karte-wege .land { fill: color-mix(in srgb, var(--papier-3) 70%, transparent); stroke: var(--linie); }
.karte-wege .meer { fill: color-mix(in srgb, #7c98a6 22%, var(--papier-2)); }
.karte-wege .gebirge { fill: none; stroke: var(--sepia); stroke-width: 1.2; opacity: .55; }
.karte-wege .ort { cursor: pointer; }
.karte-wege .ort circle { fill: var(--bordeaux); stroke: var(--papier); stroke-width: 2; transition: r .2s; }
.karte-wege .ort:hover circle, .karte-wege .ort.an circle { r: 8; }
.karte-wege .ort text { font-family: var(--f-titel); font-size: 17px; fill: var(--tinte); }
.karte-wege .route { fill: none; stroke: var(--bordeaux); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .55; }
.karte-info { margin-top: 14px; min-height: 4.5em; }
@media (max-width: 760px) { .jahr-detail { grid-template-columns: 1fr; } }

.aufsatz-liste { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.aufsatz-liste a { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--linie); text-decoration: none; }
.aufsatz-liste a .nr { font-family: var(--f-titel); color: var(--gold); font-size: 1.2rem; }
.aufsatz-liste a .t { font-family: var(--f-titel); font-size: 1.55rem; line-height: 1.15; }
.aufsatz-liste a .k { display: block; font-size: .95rem; color: var(--grau); font-style: italic; }
.aufsatz-liste a .z { font-size: .9rem; color: var(--grau); white-space: nowrap; }
.aufsatz { font-size: 1.16rem; line-height: 1.7; }
.aufsatz p { text-align: justify; hyphens: auto; }
.aufsatz h2 { margin-top: 1.6em; font-size: 1.7rem; font-weight: 500; }
.aufsatz .vers { white-space: pre-line; font-style: italic; margin: 0 0 1.2em 1.5em; padding-left: 1em; border-left: 2px solid var(--linie); color: var(--tinte-2); }
.aufsatz figure { margin: 1.6em auto; max-width: 420px; }
.aufsatz .fn-ref { font-size: .75em; vertical-align: super; line-height: 0; color: var(--bordeaux); text-decoration: none; padding: 0 1px; }
.fussnoten { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--linie); font-size: .95rem; color: var(--tinte-2); }
.fussnoten ol { padding-left: 1.4em; }
.fussnoten li { margin-bottom: .5em; }
.fussnoten li:target { background: var(--mark); }
.initial::first-letter { float: left; font-family: var(--f-titel); font-size: 4.2em; line-height: .82; padding: .06em .08em 0 0; color: var(--bordeaux); }

.methode { max-width: 760px; margin: 0 auto; text-align: center; }
.methode blockquote { font-family: var(--f-titel); font-size: clamp(1.35rem, 3vw, 1.8rem); font-style: italic; line-height: 1.3; margin: 0 0 .6em; }
.fassungen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.fassung { background: var(--papier-2); border: 1px solid var(--linie); padding: 22px; }
.fassung h3 { font-family: var(--f-text); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); font-weight: 500; }
.fassung .gedicht { font-size: 1.04rem; line-height: 1.5; white-space: pre-line; }
.dreieck { margin-top: clamp(48px, 7vw, 84px); }
.dreieck-stationen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 22px; border: 1px solid var(--linie); }
.station { padding: 22px; border-right: 1px solid var(--linie); position: relative; background: var(--papier-2); }
.station:last-child { border-right: 0; }
.station:not(:last-child)::after { content: '→'; position: absolute; right: -13px; top: 22px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--papier); border: 1px solid var(--linie); border-radius: 50%; color: var(--gold); font-size: .9rem; z-index: 1; }
.station .wer { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); margin-bottom: 12px; }
.station .gedicht { font-size: 1.04rem; line-height: 1.5; white-space: pre-line; }
.buecherbord { display: flex; align-items: flex-end; gap: 6px; padding: 30px 12px 0; border-bottom: 10px solid #5c4430; box-shadow: 0 14px 18px -12px rgba(0,0,0,.35); overflow-x: auto; min-height: 290px; }
.buchruecken {
  flex: none; width: 54px; height: 240px; position: relative; cursor: pointer; border: 0; padding: 14px 0; color: #ead9a8;
  background: var(--r, #1e3a31); border-radius: 2px 2px 0 0; box-shadow: inset 4px 0 6px rgba(255,255,255,.08), inset -5px 0 8px rgba(0,0,0,.35);
  writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-titel); font-size: 1rem; text-align: left;
  transition: transform .3s var(--ease);
}
.buchruecken:nth-child(2n) { height: 222px; width: 48px; }
.buchruecken:nth-child(3n) { height: 256px; width: 58px; }
.buchruecken:hover, .buchruecken[aria-pressed="true"] { transform: rotate(180deg) translateY(12px); }
.buchruecken::before, .buchruecken::after { content: ''; position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(234, 217, 168, .5); }
.buchruecken::before { top: 8px; } .buchruecken::after { bottom: 8px; }
.buchruecken .jz { position: absolute; bottom: 14px; left: 0; right: 0; font-family: var(--f-text); font-size: .82rem; letter-spacing: .1em; }
.buchruecken.hier { outline: 2px solid var(--gold-hell); outline-offset: -5px; }
.buch-info { min-height: 5em; margin-top: 18px; }
.widmung-karte { border-left: 3px solid var(--bordeaux); padding: 4px 0 4px 18px; margin: 0 0 22px; font-style: italic; font-size: 1.15rem; }
.widmung-karte cite { display: block; font-style: normal; font-size: .9rem; color: var(--grau); margin-top: 6px; }
@media (max-width: 860px) {
  .fassungen, .dreieck-stationen { grid-template-columns: 1fr; }
  .station { border-right: 0; border-bottom: 1px solid var(--linie); }
  .station:not(:last-child)::after { content: '↓'; right: auto; left: 22px; top: auto; bottom: -13px; }
}

.raetsel-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.raetsel-wahl button { text-align: left; border: 1px solid var(--linie); background: var(--papier-2); padding: 22px; cursor: pointer; transition: all .25s var(--ease); }
.raetsel-wahl button:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--schatten); }
.raetsel-wahl b { display: block; font-family: var(--f-titel); font-size: 1.5rem; font-weight: 500; }
.raetsel-wahl span { color: var(--tinte-2); font-size: 1rem; }
.raetsel-buehne { max-width: 720px; margin: 0 auto; }
.raetsel-fortschritt { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.raetsel-fortschritt i { width: 26px; height: 3px; background: var(--linie); }
.raetsel-fortschritt i.richtig { background: var(--gruen-2); }
.raetsel-fortschritt i.falsch { background: var(--bordeaux); }
.raetsel-fortschritt i.jetzt { background: var(--gold); }
:root[data-abend="an"] .raetsel-fortschritt i.richtig { background: #7fae94; }
.raetsel-frage { font: inherit; letter-spacing: normal; text-align: center; font-size: 1.05rem; color: var(--grau); margin-bottom: 10px; }
.raetsel-text { text-align: center; font-family: var(--f-titel); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; margin-bottom: 28px; white-space: pre-line; }
.antworten { display: grid; gap: 10px; }
.antworten button { text-align: left; border: 1px solid var(--linie); background: var(--papier-2); padding: 14px 18px; cursor: pointer; font-size: 1.12rem; transition: all .2s; }
.antworten button:hover:not(:disabled) { border-color: var(--tinte-2); }
.antworten button.richtig { border-color: var(--gruen-2); background: color-mix(in srgb, var(--gruen-2) 14%, var(--papier-2)); }
.antworten button.falsch { border-color: var(--bordeaux); background: color-mix(in srgb, var(--bordeaux) 10%, var(--papier-2)); }
.antworten button:disabled { cursor: default; }
.antworten .urteil-zeichen { float: right; margin-left: 10px; font-weight: 600; }
.antworten .richtig .urteil-zeichen { color: var(--gruen-2); }
.antworten .falsch .urteil-zeichen { color: var(--bordeaux); }
.aufloesung { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--papier-2); }
.alter-regler { display: grid; gap: 12px; justify-items: center; }
.alter-regler input[type=range] { width: min(460px, 100%); accent-color: var(--bordeaux); }
.alter-regler output { font-family: var(--f-titel); font-size: 2.4rem; }

.brief-buehne { min-height: calc(100vh - var(--kopf)); min-height: calc(100svh - var(--kopf)); display: grid; place-items: center; padding: 48px var(--rand) 96px; background: radial-gradient(ellipse at 50% 30%, var(--gruen-2), var(--gruen-tief) 75%); color: #efe5cf; position: relative; overflow: hidden; }
.umschlag { position: relative; width: min(520px, 90vw); aspect-ratio: 1.55; cursor: pointer; border: 0; padding: 0; background: none; transition: transform .8s var(--ease), opacity .8s; }
.umschlag .koerper { position: absolute; inset: 0; background: #e8dcc0; border-radius: 4px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.7); overflow: hidden; }
.umschlag .koerper::before { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg, transparent 49.6%, rgba(0,0,0,.08) 50%, transparent 50.4%), linear-gradient(25deg, transparent 49.6%, rgba(0,0,0,.08) 50%, transparent 50.4%); }
.umschlag .klappe { position: absolute; left: 0; right: 0; top: 0; height: 58%; transform-origin: top; transition: transform 1s var(--ease); }
.umschlag .klappe::before { content: ''; position: absolute; inset: 0; background: #ddd0b0; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 4px rgba(0,0,0,.15)); }
.umschlag .adresse { position: absolute; left: 0; right: 0; bottom: 6%; line-height: 1.15; text-align: center; color: #3b362d; font-family: var(--f-titel); font-style: italic; font-size: clamp(1.2rem, 4vw, 1.6rem); }
.siegel {
  position: absolute; left: 50%; top: 58%; width: 74px; height: 74px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a43a46, #6e1f2a 60%, #4e121b); box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 -3px 6px rgba(0,0,0,.3);
  display: grid; place-items: center; color: #e9b9a6; font-family: var(--f-titel); font-size: 1.6rem; letter-spacing: .02em; transition: transform .6s var(--ease), opacity .6s;
}
.siegel::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(233, 185, 166, .45); }
.umschlag:hover .siegel { transform: translate(-50%, -50%) scale(1.05) rotate(-4deg); }
.brief-buehne.geoeffnet .siegel { transform: translate(-50%, -50%) scale(.6) rotate(25deg); opacity: 0; }
.brief-buehne.geoeffnet .klappe { transform: rotateX(180deg); }
.brief-buehne.geoeffnet .umschlag { transform: translateY(40vh) scale(.9); opacity: 0; pointer-events: none; }
.briefbogen {
  width: min(680px, 100%); background: #f6efe0; color: #1d1b17; padding: clamp(28px, 6vw, 64px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.75);
  position: relative; transform-origin: top; opacity: 0; transform: perspective(1400px) rotateX(-70deg) translateY(-30px); transition: transform 1.3s var(--ease), opacity .9s;
  background-image: repeating-linear-gradient(180deg, transparent 0 33%, rgba(0,0,0,.04) 33% 33.3%, transparent 33.3% 66.4%, rgba(0,0,0,.04) 66.4% 66.7%, transparent 66.7%);
}
.brief-buehne.geoeffnet .briefbogen { opacity: 1; transform: none; }
.briefbogen-hidden { position: absolute; }
.cento { margin: 0 auto 2.2em; max-width: 30em; font-family: var(--f-titel); font-size: clamp(1.3rem, 3.4vw, 1.65rem); line-height: 1.42; }
.cento-zeile { display: block; width: fit-content; max-width: 100%; opacity: 0; transform: translateY(10px); filter: blur(4px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s; text-decoration: none; position: relative; }
.cento-zeile.da { opacity: 1; transform: none; filter: none; }
.cento-zeile:hover { color: #6e1f2a; }
.cento-zeile .q { position: absolute; left: 100%; top: .35em; margin-left: 14px; font-family: var(--f-text); font-size: .78rem; white-space: nowrap; color: #8a7d64; opacity: 0; transition: opacity .3s; font-style: italic; }
.cento-zeile:hover .q, .cento-zeile:focus .q { opacity: 1; }
.cento-zeile.schluss { margin-top: .5em; font-style: italic; color: #6e1f2a; }
.cento-erklaerung { font-size: .95rem; color: #6c6354; font-style: italic; border-top: 1px solid #d6c9a9; padding-top: 1em; margin-bottom: 2em; }
.brief-fest { text-align: center; margin: 2.2em 0 .4em; font-style: italic; }
.brief-fest a { color: #7a2a2a; }
.brief-text { font-size: 1.18rem; line-height: 1.7; }
.brief-text .anrede { font-family: var(--f-titel); font-size: 1.6rem; font-style: italic; margin-bottom: .6em; }
.brief-text .gruss { font-family: var(--f-titel); font-style: italic; font-size: 1.5rem; text-align: right; margin-top: 1em; }
.brief-text .ort { text-align: right; color: #6c6354; font-size: .95rem; }
.brief-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin-top: 2em; }
.brief-fotos figure { background: #fff; padding: 10px 10px 30px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.4); transform: rotate(var(--dreh, -1.5deg)); }
.brief-fotos figcaption { font-family: var(--f-titel); font-style: italic; color: #3b362d; text-align: center; font-size: 1.05rem; }
.kimm-feld { position: absolute; left: 0; right: 0; bottom: 18%; height: 1px; background: rgba(212, 182, 115, .25); }
@media (max-width: 600px) { .cento-zeile .q { position: static; display: block; margin: 0 0 .3em; opacity: .9; font-size: .74rem; } }

.fuss { position: relative; z-index: 1; border-top: 1px solid var(--linie); padding: 40px var(--rand) 34px; text-align: center; color: var(--grau); font-size: .95rem; overflow: hidden; }
.fuss .horizont { position: relative; height: 34px; max-width: 900px; margin: 0 auto 18px; }
.fuss .horizont::before { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: linear-gradient(90deg, transparent, var(--linie) 15%, var(--linie) 85%, transparent); }
.segel-ei {
  position: absolute; bottom: 6px; left: 8%; width: 22px; height: 26px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--grau);
  animation: treiben 90s linear infinite alternate;
}
.segel-ei svg { width: 100%; height: 100%; }
.segel-ei:hover, .segel-ei:focus-visible { color: var(--bordeaux); }
@keyframes treiben { from { left: 6%; } to { left: 90%; } }
.fuss p { margin: .3em 0; }
.fuss a { color: inherit; }

.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(12, 18, 24, .78); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.overlay.offen { opacity: 1; pointer-events: auto; }
.overlay .karte-gross { background: var(--papier); color: var(--tinte); width: min(820px, 100%); max-height: 90vh; overflow: auto; padding: clamp(24px, 5vw, 48px); position: relative; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.overlay .schliessen { position: absolute; top: 10px; right: 10px; }
.ei-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.ei-paar .gedicht { white-space: pre-line; font-size: 1.1rem; }
@media (max-width: 640px) { .ei-paar { grid-template-columns: 1fr; } }

.einblenden { animation: einblenden .45s var(--ease) both; }
@keyframes einblenden { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .segel-ei { animation: none; left: 50%; }
}
:root[data-ruhig="an"] *, :root[data-ruhig="an"] *::before, :root[data-ruhig="an"] *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }

@media print {
  .kopf, .fuss, .werkzeugleiste, .randspalte, .blaettern { display: none !important; }
  body::before { display: none; }
  body { background: #fff; color: #000; }
}

.mehr-filter { display: grid; gap: 12px; }
.mehr-filter summary { cursor: pointer; text-align: center; color: var(--grau); font-style: italic; list-style: none; }
.mehr-filter summary::-webkit-details-marker { display: none; }
.mehr-filter summary::after { content: ' ▾'; font-style: normal; }
.mehr-filter[open] summary::after { content: ' ▴'; }
.mehr-filter[open] { gap: 12px; }
.mehr-filter[open] > .filter-reihe { margin-top: 10px; }

.nachtmeer { position: relative; height: min(88vh, 860px); min-height: 520px; overflow: hidden; color: #f1e6cc; display: grid; place-items: center; text-align: center; isolation: isolate; }
.nm-bild { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.nm-bild .funkeln { animation: funkeln 5s ease-in-out infinite; }
@keyframes funkeln { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }
.nm-welle { animation: wogen 14s ease-in-out infinite alternate; }
.nm-welle.w2 { animation-duration: 18s; animation-direction: alternate-reverse; }
.nm-welle.w3 { animation-duration: 23s; }
@keyframes wogen { from { transform: translateX(0); } to { transform: translateX(-80px); } }
.nm-glanz { animation: glanz 7s ease-in-out infinite alternate; transform-origin: center top; }
@keyframes glanz { from { opacity: .55; transform: scaleX(.8); } to { opacity: 1; transform: scaleX(1.25); } }
.nm-segel { animation: segeln 70s linear infinite; }
@keyframes segeln {
  0% { transform: translate(-80px, 700px) rotate(-1deg); }
  25% { transform: translate(400px, 702px) rotate(1.5deg); }
  50% { transform: translate(800px, 699px) rotate(-1.5deg); }
  75% { transform: translate(1200px, 702px) rotate(1deg); }
  100% { transform: translate(1700px, 700px) rotate(-1deg); }
}
.nm-inhalt { position: relative; padding: 0 var(--rand); margin-top: -8vh; max-width: 1100px; }
.nm-oben { color: rgba(241, 230, 204, .7); letter-spacing: .3em; }
.nm-titel { font-size: clamp(3.4rem, 11vw, 8.5rem); font-weight: 300; line-height: .95; margin: .25em 0 .35em; letter-spacing: -.01em; color: #f4ead2; text-shadow: 0 2px 30px rgba(0,0,0,.35), 0 0 12px rgba(8, 20, 17, .55); }
.nm-titel em { font-style: italic; color: var(--gold-hell); font-weight: 400; }
.nm-verwandlung { display: grid; justify-items: center; text-decoration: none; color: inherit; min-height: 7.5em; position: relative; }
.nm-verwandlung:hover { color: inherit; }
.nm-ru, .nm-de { grid-area: 1 / 1; font-family: var(--f-titel); font-size: clamp(1.3rem, 3.2vw, 2.15rem); font-style: italic; line-height: 1.3; max-width: 22em; }
.nm-ru span, .nm-de span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.25em); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.nm-verwandlung.sichtbar .nm-ru span { opacity: 1; filter: none; transform: none; }
.nm-verwandlung.uebersetzt .nm-ru span { opacity: 0; filter: blur(8px); transform: translateY(-.25em); }
.nm-verwandlung.uebersetzt .nm-de span { opacity: 1; filter: none; transform: none; color: #f4ead2; }
.nm-ru { color: var(--gold-hell); }
.nm-quelle { grid-area: 2 / 1; margin-top: 1.1em; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 230, 204, .55); opacity: 0; transition: opacity 1s .6s; }
.nm-verwandlung.sichtbar .nm-quelle { opacity: 1; }
.nm-verwandlung:hover .nm-quelle { color: var(--gold-hell); }
.nm-hinweis { position: absolute; bottom: 22px; left: 0; right: 0; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(241, 230, 204, .55); animation: schweben 3s ease-in-out infinite; }
@keyframes schweben { 50% { transform: translateY(6px); } }
.foyer-held .gruss { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
:root:not([data-abend="an"]) .kopf { transition: background .4s; }

.faden { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .3s; }
.faden.an { opacity: 1; }
.faden path { fill: none; stroke: var(--gold); stroke-width: 1.3; transition: stroke-dashoffset .55s var(--ease); }
.faden circle { fill: var(--gold); }

.deckel-hinten { display: grid; place-items: center; }
.exlibris { width: 58%; aspect-ratio: 3 / 4; border: 1px solid #b8a67c; outline: 1px solid #d6c8a4; outline-offset: -6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #6e1f2a; padding: 10%; }
.exlibris .el-k { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: #8a7d64; }
.exlibris .el-n { font-family: var(--f-titel); font-size: 1.5rem; font-style: italic; margin: .2em 0; color: #3b2a1e; }
.exlibris svg { width: 64%; color: #6e1f2a; }
.karte::before { content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 0; border-top: 1px solid color-mix(in srgb, var(--bordeaux) 35%, transparent); opacity: .0; }
.karte .t-ru { position: relative; }
.karte::after { content: attr(data-nr); position: absolute; right: 12px; bottom: 10px; font-size: .7rem; letter-spacing: .1em; color: var(--grau); opacity: .55; font-variant-numeric: oldstyle-nums; }
.karte .zeile1 { padding-right: 34px; }

@media (prefers-reduced-motion: reduce) { .nm-segel { transform: translate(1240px, 700px); } }
:root[data-ruhig="an"] .nm-segel { animation: none; transform: translate(1240px, 700px); }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) opacity(.5); cursor: pointer; }

.nachtmeer { margin-top: calc(-1 * var(--kopf)); }
.kopf { transition: background .4s var(--ease), border-color .4s, color .4s; }
.kopf.auf-meer { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #efe5cf; }

.kopf.auf-meer.nachtgrund { background: rgba(12, 26, 23, .92); border-bottom-color: rgba(212, 182, 115, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kopf.auf-meer .marke-text small, .kopf.auf-meer .nav a, .kopf.auf-meer .knopf-icon { color: rgba(239, 229, 207, .82); }
.kopf.auf-meer .marke svg { color: var(--gold-hell); }
.kopf.auf-meer .sprachwahl { border-color: rgba(239, 229, 207, .35); }
.kopf.auf-meer .sprachwahl button { color: rgba(239, 229, 207, .7); }
.kopf.auf-meer .sprachwahl button[aria-pressed="true"] { background: rgba(212, 182, 115, .9); color: #1a150e; }
.kopf.auf-meer .nav a[aria-current="page"] { color: var(--gold-hell); }
.nm-glanz rect { animation: glitzern 4s ease-in-out infinite alternate; }
@keyframes glitzern { from { opacity: .15; } to { opacity: .8; } }
.lese-hinweis { text-align: center; font-style: italic; color: var(--grau); font-size: .95rem; margin: -18px auto 22px; max-width: 560px; opacity: 0; transition: opacity .4s; min-height: 1.4em; }
.lese-hinweis.an { opacity: 1; }
.karte-wege .karte-svg { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }
.karte-wege .gradnetz { stroke: var(--linie); stroke-width: .6; opacity: .55; fill: none; }
.karte-wege .grad { font-size: 17px; fill: var(--grau); font-family: var(--f-text); }
.karte-wege .fluss { fill: none; stroke: color-mix(in srgb, #5f86a0 60%, var(--papier-2)); stroke-width: 1.4; stroke-linejoin: round; opacity: .8; }
.karte-wege .fluss-name { font-family: var(--f-titel); font-style: italic; font-size: 18px; fill: color-mix(in srgb, #4e7690 70%, var(--tinte)); }
.karte-wege .ort text { paint-order: stroke; stroke: var(--papier-2); stroke-width: 4px; }
.karte-info { position: sticky; top: calc(var(--kopf) + 24px); }
.nm-ru .wort, .nm-de .wort { display: inline-block; white-space: nowrap; }
.nm-ru .wort span, .nm-de .wort span { display: inline-block; }
@media (max-width: 520px) {
  .kopf { gap: 8px; padding: 0 12px; }
  .marke-text small { display: none; }
  .marke-text { font-size: 1.12rem; }
  .marke svg { width: 26px; height: 26px; }
  .sprachwahl button { padding: 4px 8px; }
  .kopf-werkzeuge { gap: 2px; }
  .knopf-icon { width: 36px; height: 36px; }
  .nm-oben { letter-spacing: .18em; font-size: .7rem; }
  .nm-inhalt { margin-top: -4vh; }
}
.verschraenkt .paar .vz-de { padding-left: calc(2.1em + .35em); }
@media (max-width: 760px) {
  .werkzeugleiste { width: 100%; }
  .werkzeugleiste > * { flex: none; }
}

.album { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid #d6c9a9; }
.album-kopf { text-align: center; margin-bottom: 1.6em; }
.album-frei { margin: .35em 0 0; font-family: var(--f-titel); font-style: italic; font-size: 1rem; color: #6c6354; }
.brief-fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px; margin: 0; padding: 6px 4px 10px; }
.abzug {
  position: relative; margin: 0; background: #fffdf8; padding: 12px 12px 14px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 12px 24px -10px rgba(40, 28, 10, .45);
  transform: rotate(var(--dreh, -1.5deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease);

  -webkit-mask: radial-gradient(circle at 3px 3px, #000 2.2px, transparent 2.6px) -3px -3px / 6px 6px repeat-x, linear-gradient(#000, #000) 0 3px / 100% calc(100% - 6px) no-repeat, radial-gradient(circle at 3px 3px, #000 2.2px, transparent 2.6px) -3px 100% / 6px 6px repeat-x;
          mask: radial-gradient(circle at 3px 3px, #000 2.2px, transparent 2.6px) -3px -3px / 6px 6px repeat-x, linear-gradient(#000, #000) 0 3px / 100% calc(100% - 6px) no-repeat, radial-gradient(circle at 3px 3px, #000 2.2px, transparent 2.6px) -3px 100% / 6px 6px repeat-x;
}
.abzug:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 26px 40px -16px rgba(40, 28, 10, .5); z-index: 2; }
.abzug-knopf { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.abzug img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; border: 0; background: #e9e2d2;
  filter: brightness(2.1) contrast(.45) sepia(.7) blur(3px); transition: filter 4.5s cubic-bezier(.3, .1, .2, 1); }
.abzug.entwickelt img { filter: none; }
.abzug figcaption { font-family: var(--f-titel); font-style: italic; color: #3b362d; text-align: center; font-size: 1.12rem; margin-top: 10px; line-height: 1.25; }

.ecke { position: absolute; width: 22px; height: 22px; z-index: 2; pointer-events: none; background: linear-gradient(135deg, #2b2620 0 50%, transparent 50%); filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.ecke.e1 { top: -5px; left: -5px; }
.ecke.e2 { top: -5px; right: -5px; transform: rotate(90deg); }
.ecke.e3 { bottom: -5px; right: -5px; transform: rotate(180deg); }
.ecke.e4 { bottom: -5px; left: -5px; transform: rotate(270deg); }
.foto-platz .ecke { opacity: .55; }

.foto-leer {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center;
  border: 1.5px dashed #c2b089; color: #8a7d64; background: #f3ecdc;
}
.foto-leer .schale { position: absolute; inset: -40%; background: radial-gradient(ellipse at center, rgba(169, 133, 63, .22), transparent 55%); animation: schale 7s ease-in-out infinite alternate; animation-delay: var(--v, 0s); }
@keyframes schale { from { transform: translate(-18%, -12%) scale(.9); } to { transform: translate(18%, 14%) scale(1.15); } }
.foto-leer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-100%); animation: schimmer 4.8s ease-in-out infinite; animation-delay: var(--v, 0s); }
@keyframes schimmer { 0%, 35% { transform: translateX(-100%); } 75%, 100% { transform: translateX(100%); } }
.foto-leer > * { position: relative; z-index: 1; }
.foto-leer svg { width: 34px; height: 34px; color: #b8a67c; }
.foto-leer .pl-nr { font-family: var(--f-titel); font-size: 1.35rem; color: #6e1f2a; }
.foto-leer .pl-text { font-family: var(--f-titel); font-style: italic; font-size: 1rem; color: #6c6354; }
.foto-leer small { font-size: .68rem; letter-spacing: .04em; color: #9a8d72; margin-top: 2px; }
.foto-platz figcaption { color: #8a7d64; font-size: 1rem; }

.foto-gross { margin: 0; text-align: center; }
.foto-gross img { max-height: 72vh; width: auto; margin: 0 auto; border: 10px solid #fffdf8; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.foto-gross figcaption { font-family: var(--f-titel); font-style: italic; font-size: 1.4rem; color: var(--tinte); margin-top: 14px; }

.brief-fotos.einzeln { grid-template-columns: minmax(0, 480px); justify-content: center; }
@media (max-width: 560px) { .brief-fotos { grid-template-columns: 1fr; gap: 30px; padding: 6px 14px; } .brief-fotos.einzeln { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .abzug img { filter: none; } }

.kopf { view-transition-name: kopf; }
::view-transition-old(root) { animation: .38s var(--ease) both blatt-raus; }
::view-transition-new(root) { animation: .5s var(--ease) both blatt-rein; }
@keyframes blatt-raus { to { opacity: 0; transform: translateY(-8px); filter: blur(3px); } }
@keyframes blatt-rein { from { opacity: 0; transform: translateY(12px); } }
:root[data-richtung="vor"]::view-transition-old(root) { animation-name: blatt-links; }
:root[data-richtung="vor"]::view-transition-new(root) { animation-name: blatt-von-rechts; }
:root[data-richtung="zurueck"]::view-transition-old(root) { animation-name: blatt-rechts; }
:root[data-richtung="zurueck"]::view-transition-new(root) { animation-name: blatt-von-links; }
@keyframes blatt-links { to { opacity: 0; transform: translateX(-6%) rotateY(8deg); } }
@keyframes blatt-rechts { to { opacity: 0; transform: translateX(6%) rotateY(-8deg); } }
@keyframes blatt-von-rechts { from { opacity: 0; transform: translateX(6%); } }
@keyframes blatt-von-links { from { opacity: 0; transform: translateX(-6%); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

.schnuppe { stroke: url(#nm-mond); stroke: #f4ead2; stroke-width: 1.6; stroke-linecap: round; fill: none; opacity: 0; stroke-dasharray: 160; stroke-dashoffset: 160; }
.schnuppe.s1 { transform: translate(560px, 70px); animation: schnuppe 13s 4s linear infinite; }
.schnuppe.s2 { transform: translate(1380px, 140px); animation: schnuppe 19s 11s linear infinite; }
@keyframes schnuppe { 0% { opacity: 0; stroke-dashoffset: 160; } 1% { opacity: .9; } 5% { opacity: 0; stroke-dashoffset: -160; } 100% { opacity: 0; stroke-dashoffset: -160; } }
.wimpel { animation: wimpel 1.6s ease-in-out infinite alternate; transform-origin: 0 -70px; }
@keyframes wimpel { to { transform: skewY(-8deg) scaleX(.85); } }
.nm-festknopf { margin-top: 1.4em; box-shadow: 0 0 0 0 rgba(212, 182, 115, .6); animation: festpuls 2.6s ease-out infinite; background: var(--gold); border-color: var(--gold); color: #1a150e; }
.nm-festknopf:hover { background: var(--gold-hell); color: #1a150e; }
@keyframes festpuls { 0% { box-shadow: 0 0 0 0 rgba(212, 182, 115, .55); } 100% { box-shadow: 0 0 0 22px rgba(212, 182, 115, 0); } }
.weiterlesen { margin-top: .4em; font-size: 1.02rem; }
.weiterlesen a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.weiterlesen .kapit-klein { margin-right: 8px; }
@media (prefers-reduced-motion: reduce) { .schnuppe, .wimpel, .nm-festknopf { animation: none; } }
:root[data-ruhig="an"] .schnuppe { animation: none; }

.hg-sterne { transition: transform .9s var(--ease); }

.kerze { position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: 0; transition: opacity .8s;
  background: radial-gradient(circle 420px at var(--kx, 50%) var(--ky, 40%), rgba(255, 196, 120, .07), transparent 70%),
              radial-gradient(circle 900px at var(--kx, 50%) var(--ky, 40%), transparent 25%, rgba(0, 0, 0, .4)); }
:root[data-abend="an"] .kerze.an { opacity: 1; }
:root[data-ruhig="an"] .kerze { display: none; }
@media (prefers-reduced-motion: reduce) { .kerze { display: none; } }

.druck-kopf, .druck-fuss { display: none; }
@media print {
  @page { margin: 16mm 18mm; }
  :root { --gedicht-groesse: 11.5pt; }
  :root[data-abend="an"] { --papier: #fff; --tinte: #111; --tinte-2: #333; --grau: #666; --linie: #bbb; }
  .kerze, .verzeichnis, .overlay, .lese-hinweis, .zuordnung-hinweis, .faden, .skip { display: none !important; }
  :root[data-druck="karte"] .lese-unten { display: none !important; }
  .seite { padding: 0 !important; max-width: none !important; }
  .druck-kopf, .druck-fuss { display: block; text-align: center; font-family: var(--f-text); font-size: 8pt; letter-spacing: .2em; text-transform: uppercase; color: #8a7d64; }
  .druck-kopf { margin-bottom: 10mm; } .druck-fuss { margin-top: 10mm; letter-spacing: .08em; text-transform: none; font-style: italic; }
  .lesetisch-kopf .t-ru { font-size: 26pt; } .lesetisch-kopf .t-de { font-size: 16pt; } .lesetisch-kopf .meta { display: none; }
  .gedicht-flaeche { grid-template-columns: 1fr 1fr !important; max-width: none !important; gap: 12mm; }
  .gedicht-flaeche .spalte-ru, .gedicht-flaeche .spalte-de { display: block !important; }
  .vz.an, .vz.liest { background: none !important; box-shadow: none !important; }
  .strophe { break-inside: avoid; }
  #inhalt { view-transition-name: none; }
}
.nm-mondgruppe { transition: transform .6s; }
@media (max-width: 1000px) { .nm-mondgruppe { transform: translateX(-120px); } }

@media (max-width: 700px) { .nm-mondgruppe { transform: translate(-200px, 20px); } .nm-mondgruppe > circle { transform: translateY(-98px); } }

@media (min-width: 701px) and (max-width: 1000px) { .nm-mondgruppe { transform: translateX(-60px); } .nm-mondgruppe > circle { transform: translateY(-62px); } }
@media (min-width: 881px) and (max-width: 1000px) { .nm-mondgruppe { transform: translateX(-20px); } }

@media (min-width: 521px) and (max-width: 700px) and (max-height: 500px) { .nm-mondgruppe { transform: translateX(-20px); } .nm-mondgruppe > circle { transform: translateY(-62px); } }

.kalenderblatt { padding-top: 34px; background: #fbf7ee; transform: rotate(.6deg); transition: transform .5s var(--ease); }
:root[data-abend="an"] .kalenderblatt { background: var(--papier-2); }
.kalenderblatt:hover { transform: rotate(0deg) translateY(-3px); }
.kalenderblatt::before { inset: 26px 7px 7px; }
.kalenderblatt::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -7px; height: 7px; background: var(--papier-3); border: 1px solid var(--linie); border-top: 0; transform: rotate(-.8deg); z-index: -1; }
.kb-lochung { position: absolute; top: 0; left: 0; right: 0; height: 18px; background: var(--bordeaux); border-bottom: 1px solid rgba(0,0,0,.2);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 4px, #000 4.5px) 0 0 / 22px 18px repeat-x;
          mask: radial-gradient(circle at 50% 100%, transparent 4px, #000 4.5px) 0 0 / 22px 18px repeat-x; }
.kb-kopf { display: flex; justify-content: space-between; gap: 10px; }
.kb-tag { font-family: var(--f-titel); font-size: clamp(4.4rem, 9vw, 6rem); line-height: .9; color: var(--bordeaux); text-align: center; margin: 10px 0 2px; font-weight: 400; font-variant-numeric: lining-nums; }
.kb-was { text-align: center; }
.kalenderblatt h3 { text-align: center; margin-top: .55em; }
.kalenderblatt .titel-ru { text-align: center; }
.kalenderblatt .auszug { text-align: center; }
.kalenderblatt > .knopf { display: flex; width: fit-content; margin: 0 auto; }
.kb-widmung { margin: 18px 0 0; padding-top: 12px; border-top: 1px dotted var(--linie); font-size: .86rem; font-style: italic; color: var(--grau); text-align: center; line-height: 1.4; }

.lebenslinie { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 18px auto 0; font-size: .82rem; color: var(--grau); letter-spacing: .04em; }
.ll-ende { white-space: nowrap; }
.ll-linie { position: relative; flex: 1; height: 1px; background: var(--linie); }
.ll-linie i { position: absolute; top: -2px; width: 1px; height: 5px; background: var(--linie); }
.ll-linie b { position: absolute; top: -5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--bordeaux); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bordeaux) 18%, transparent); }
.ll-linie b span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-weight: 500; color: var(--bordeaux); font-size: .82rem; }
@media (max-width: 520px) { .lebenslinie { font-size: .68rem; gap: 8px; } }

.lesefortschritt { position: fixed; top: var(--kopf); left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--bordeaux)); transform-origin: left; transform: scaleX(0); z-index: 41; pointer-events: none; }

.silben-icon { font-size: .62rem; letter-spacing: 0; font-weight: 600; font-variant-numeric: lining-nums; }
.mit-silben .vz { position: relative; padding-right: 2.2em; }
.mit-silben .vz::after { content: attr(data-silben); position: absolute; right: .2em; top: .15em; font-size: .64em; color: var(--grau); opacity: .8; font-variant-numeric: lining-nums tabular-nums; font-style: normal; text-indent: 0; }
.mit-silben .vz.silben-gleich::after { color: var(--gold); opacity: 1; font-weight: 600; }
.silben-hinweis { text-align: center; font-style: italic; color: var(--grau); font-size: .95rem; margin: -14px auto 22px; max-width: 620px; }

mark.blieb { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.blieb-legende { font-size: .95rem; color: var(--grau); font-style: italic; }
.fuss .kolophon { font-family: var(--f-titel); font-style: italic; font-size: 1.02rem; color: var(--tinte-2); margin-bottom: .8em; }
.fuss .kolophon::before, .fuss .kolophon::after { content: '❦'; font-style: normal; color: var(--gold); margin: 0 .6em; font-size: .9em; }

.zahlenband { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(48px, 7vw, 84px); border-top: 1px solid var(--tinte-2); border-bottom: 1px solid var(--linie); }
.zahlenband div { padding: 22px 10px 18px; text-align: center; border-right: 1px solid var(--linie); }
.zahlenband div:last-child { border-right: 0; }
.zahlenband b { display: block; font-family: var(--f-titel); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1; color: var(--bordeaux); font-variant-numeric: lining-nums; }
.zahlenband span { display: block; margin-top: 8px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); }
@media (max-width: 700px) { .zahlenband div { border-bottom: 1px solid var(--linie); } .zahlenband div:nth-child(2n) { border-right: 0; } }

.karte-wege .route.zeichnet { mask: linear-gradient(#000, #000) no-repeat 0 0 / 100% 0%; -webkit-mask: linear-gradient(#000, #000) no-repeat 0 0 / 100% 0%; transition: -webkit-mask-size 3.2s cubic-bezier(.4, .1, .2, 1), mask-size 3.2s cubic-bezier(.4, .1, .2, 1); }
.karte-wege .route.zeichnet.gezeichnet { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.heute-blatt { position: relative; width: 132px; margin: 0 auto 14px; padding: 26px 0 8px; background: #fbf7ee; border: 1px solid var(--linie); box-shadow: var(--schatten); transform: rotate(-1.5deg); }
:root[data-abend="an"] .heute-blatt { background: var(--papier-2); }
.heute-blatt .kb-tag { margin: 0; font-size: 4.2rem; }
.himmel .linie.an { stroke-dasharray: 1; animation: linie-ziehen 1.1s var(--ease) both; }
@keyframes linie-ziehen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .himmel .linie.an { animation: none; } }

.vortrag { position: fixed; inset: 0; z-index: 95; background: radial-gradient(ellipse at 50% 35%, #232019, #0f0e0b 75%); color: #efe5cf; display: grid; grid-template-rows: auto 1fr auto; padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) max(18px, env(safe-area-inset-bottom)); }
.vt-kopf { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; letter-spacing: .08em; color: rgba(239, 229, 207, .55); font-family: var(--f-titel); font-style: italic; }
.vt-zaehler { font-style: normal; font-family: var(--f-text); letter-spacing: .2em; color: var(--gold-hell); }
.vt-buehne { display: grid; align-content: center; justify-items: center; gap: clamp(18px, 4vh, 44px); text-align: center; cursor: pointer; user-select: none; }
.vt-buehne span { display: block; }
.vt-ru { font-family: var(--f-titel); font-size: clamp(1.3rem, 3.4vw, 2.2rem); line-height: 1.35; color: var(--gold-hell); }
.vt-de { font-family: var(--f-titel); font-size: clamp(1.7rem, 5vw, 3.4rem); line-height: 1.3; color: #f4ead2; }
.vortrag[data-sprache="ru"] .vt-de, .vortrag[data-sprache="de"] .vt-ru { display: none; }
.vortrag[data-sprache="ru"] .vt-ru { font-size: clamp(1.7rem, 5vw, 3.4rem); color: #f4ead2; }
.vt-buehne.neu > div { animation: vt-ein .6s var(--ease) both; }
.vt-buehne.neu > .vt-de { animation-delay: .12s; }
@keyframes vt-ein { from { opacity: 0; transform: translateY(10px); } }
.vt-leiste { display: flex; justify-content: center; align-items: center; gap: 12px; }
.vt-leiste button { background: none; border: 1px solid rgba(212, 182, 115, .4); color: #efe5cf; border-radius: 99px; min-width: 48px; height: 44px; padding: 0 16px; font-size: 1.1rem; cursor: pointer; }
.vt-leiste button:hover { border-color: var(--gold-hell); color: #fff; }
.vt-sprachen { display: inline-flex; gap: 4px; }
.vt-sprachen button { font-size: .85rem; letter-spacing: .08em; }
.vt-sprachen button[aria-pressed="true"] { background: var(--gold); color: #1a150e; border-color: var(--gold); }
.vt-ende { position: absolute; top: 12px; right: 12px; }
@media (prefers-reduced-motion: reduce) { .vt-buehne.neu > div { animation: none; } }
.vt-kopf { padding-right: 60px; }

.verwandte { max-width: 1020px; margin: clamp(48px, 7vw, 80px) auto 0; }
.verwandte h2 { text-align: center; font-family: var(--f-text); font-size: .78rem; margin-bottom: 18px; }
.verwandte .karten { grid-template-columns: repeat(3, 1fr); }
.vw-motive { margin-top: 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 760px) { .verwandte .karten { grid-template-columns: 1fr; } }
@media print { .verwandte { display: none; } }

.ansicht-wahl { display: flex; gap: 8px; justify-content: center; margin: -6px 0 18px; }
.regalwand { display: grid; gap: 34px; }
.brett { display: grid; grid-template-columns: 96px 1fr; align-items: end; gap: 16px; }
.brett-schild { align-self: end; padding-bottom: 14px; }
.brett-schild b { display: block; font-family: var(--f-titel); font-weight: 400; font-size: 2.1rem; color: var(--bordeaux); line-height: 1; }
.brett-schild span { font-size: .72rem; color: var(--grau); }
.brett-buecher { display: flex; align-items: flex-end; gap: 3px; flex-wrap: wrap; padding: 0 10px; border-bottom: 12px solid #6b4f36; box-shadow: 0 10px 14px -10px rgba(0,0,0,.4); min-height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,.06), transparent 40%); }
:root[data-abend="an"] .brett-buecher { border-bottom-color: #4a3726; }
.ruecken { position: relative; display: flex; align-items: center; justify-content: center; gap: 1px; width: var(--b); height: var(--h); text-decoration: none; color: #ecdcb0;
  background: linear-gradient(90deg, rgba(255,255,255,.1), transparent 22%, transparent 75%, rgba(0,0,0,.28)), var(--r);
  border-radius: 2px 2px 0 0; transition: transform .3s var(--ease); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.ruecken::before, .ruecken::after { content: ''; position: absolute; left: 4px; right: 4px; height: 1px; background: rgba(236, 220, 176, .45); }
.ruecken::before { top: 9px; } .ruecken::after { bottom: 9px; }
.ruecken.bekannt { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 -26px 0 -20px var(--gold-hell); }
.ruecken:hover, .ruecken:focus-visible { transform: translateY(-10px); color: #fff; z-index: 1; }
.ruecken-titel, .ruecken-de { writing-mode: vertical-rl; transform: rotate(180deg); max-height: calc(var(--h) - 26px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ruecken-titel { font-family: var(--f-titel); font-size: .92rem; line-height: 1.05; }

.ruecken-de { font-family: var(--f-text); font-style: italic; font-size: .74rem; line-height: 1.1; opacity: .92; }
.ruecken-stern { position: absolute; top: 12px; font-size: .62rem; color: var(--gold-hell); }
.regal-legende { text-align: center; font-size: .9rem; color: var(--grau); font-style: italic; margin-top: 26px; }
@media (max-width: 640px) { .brett { grid-template-columns: 1fr; gap: 6px; } .brett-schild { padding: 0; } .brett-buecher { padding: 0 4px; } }

.suchleiste:focus-within { border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.verzeichnis:not(.offen) { visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.verzeichnis.offen { visibility: visible; transition: opacity .35s var(--ease); }
[aria-disabled="true"] { opacity: .65; cursor: default; }

#inhalt:fullscreen { overflow-y: auto; background: var(--papier); }
#inhalt::backdrop { background: var(--papier); }
@media print {
  .gedicht-flaeche.verschraenkt { grid-template-columns: 1fr !important; }
  .karte-wege .route.zeichnet { mask: none; -webkit-mask: none; }
}

:root[data-gross="an"] { font-size: 118%; }
:root[data-gross="an"] body { line-height: 1.68; }
:root[data-gross="an"] .kapit-klein { font-size: .86rem; }
.gross-knopf span { font-family: var(--f-titel); font-size: 1.05rem; font-weight: 600; line-height: 1; }
.gross-knopf sup { font-size: .62em; }
.gross-knopf[aria-pressed="true"] { color: var(--bordeaux); border-color: var(--linie); }
.kopf.auf-meer .gross-knopf[aria-pressed="true"] { color: var(--gold-hell); }

.mehr-wrap { position: relative; display: inline-flex; }
.mehr-knopf span { font-size: 1.3rem; line-height: 1; letter-spacing: .05em; }
.mehr-menue { position: absolute; top: calc(100% + 10px); right: -6px; z-index: 30; display: grid; min-width: 230px; padding: 6px; background: var(--papier); border: 1px solid var(--linie); border-radius: 10px; box-shadow: var(--schatten); }
.mehr-menue[hidden] { display: none; }
.mehr-menue button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 6px; cursor: pointer; text-align: left; font-size: 1rem; color: var(--tinte); white-space: nowrap; }
.mehr-menue button:hover, .mehr-menue button:focus-visible { background: var(--mark); }
.mehr-menue button svg { width: 18px; height: 18px; flex: none; color: var(--grau); }
.mehr-menue button .silben-icon { width: 18px; text-align: center; color: var(--grau); }
.mehr-menue button[aria-checked="true"] { color: var(--bordeaux); }
.mehr-menue button[aria-checked="true"]::after { content: '✓'; margin-left: auto; color: var(--bordeaux); }
@media (max-width: 760px) { .werkzeugleiste { overflow: visible; flex-wrap: wrap; justify-content: center; border-radius: 16px; } .mehr-menue { right: -40px; } }

.raum .nr, .aufsatz-liste a .nr, .vw-motive, .karte .stern,
.mit-silben .vz.silben-gleich::after, .station:not(:last-child)::after { color: var(--gold-text); }

.karte::after { opacity: 1; }
.mit-silben .vz::after { opacity: 1; }
.chip .anz { opacity: .85; }
figcaption small { opacity: 1; }

.karte .zeile1 mark { color: var(--tinte-2); }
:root[data-abend="an"] .mit-silben .vz:is(.an, .liest):not(.silben-gleich)::after { color: var(--tinte-2); }

.cento-zeile .q, .widmung-motto cite, .foto-leer small, .foto-platz figcaption { color: #6c6354; }
.exlibris .el-k { color: #5f5747; }
.deckel-vorn .name-ru { opacity: .85; }
.deckel-vorn .deckel-fuss { opacity: .9; }
.ruecken { color: #f5ebd3; }

.nm-oben { color: rgba(241, 230, 204, .95); }
.nm-quelle { color: rgba(241, 230, 204, .8); }
@media print { .druck-kopf, .druck-fuss { color: #6c6354; } }

.buch-buehne { transition: transform 1.6s cubic-bezier(.6, .05, .25, 1); }
.buch-buehne:has(.buch.offen) { transform: translateX(50%); }
@media (prefers-reduced-motion: reduce) { .buch-buehne { transition: none; } }
.ouvertuere { overscroll-behavior: contain; }
.ouvertuere .lichtkegel { inset: 0; }

.werkzeugleiste .paar { display: inline-flex; gap: 6px; }

.nm-verwandlung { min-height: 0; grid-template-rows: 2.75em auto; }
.nm-ru, .nm-de { align-self: end; }
.nm-inhalt { margin-top: -13vh; }
.nm-gruss { font-family: var(--f-titel); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: var(--gold-hell); margin: -.2em 0 .7em; text-shadow: 0 1px 18px rgba(0,0,0,.4); }

:root[data-abend="an"] { --bordeaux: #c49272; --bordeaux-hell: #d3a585; }
:root[data-abend="an"] .knopf.voll { color: #1b1813; }

@media (max-width: 860px) {
  .buch-buehne { width: min(86vw, 420px, calc((100svh - 150px) / 1.4)); min-width: min(86vw, 300px); }
  .buch-buehne:has(.buch.offen) { transform: none; }
  .buch.offen .deckel { opacity: 0; transition: transform 1.6s cubic-bezier(.6, .05, .25, 1), opacity .6s 1.1s; }
  .widmung-zeilen { font-size: clamp(1.35rem, 3.4vw, 1.65rem); }
  .widmung-motto { font-size: clamp(1rem, 2.3vw, 1.12rem); }
}
@media (max-width: 520px) {
  .buch-buehne { width: min(86vw, 360px); }
  .widmung-zeilen { font-size: 1.35rem; }
  .widmung-motto { font-size: 1rem; }
  .deckel-vorn .deckel-fuss { text-wrap: balance; }
}

h1, h2, h3, blockquote, .widmung-motto, .einleitung, .raum p { text-wrap: balance; }
p { text-wrap: pretty; }
.seiten-kopf h1 { margin-bottom: .12em; }
.jahr-detail .jahr-gross { line-height: 1.08; margin-bottom: .1em; }
.aufsatz p { max-width: 36em; }
@media (max-width: 700px) { .aufsatz p { text-align: left; } }

.karte-wege .ort text { font-size: 21px; stroke-width: 5px; }

@media (max-width: 760px) { .werkzeugleiste { position: relative; top: auto; z-index: 20; } .werkzeugleiste .trenner { display: none; } }
.werkzeugleiste { box-shadow: var(--schatten), 0 0 0 8px color-mix(in srgb, var(--papier) 85%, transparent); }

.zahlenband { grid-template-columns: repeat(4, 1fr); }
.zahlenband span { white-space: nowrap; }
@media (max-width: 700px) { .zahlenband div:last-child { grid-column: auto; border-bottom: 1px solid var(--linie); } .zahlenband span { white-space: normal; } }

.raum .nr { font-size: 1.45rem; font-family: var(--f-titel); }

@media (max-width: 640px) { .brett-buecher { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } }
.ruecken:nth-child(3n) { width: calc(var(--b) + 4px); } .ruecken:nth-child(4n+1) { width: calc(var(--b) - 3px); }

.raetsel-wahl .probe { display: block; font-family: var(--f-titel); font-size: 1.15rem; color: var(--bordeaux); margin-bottom: 10px; }
.raetsel-wahl .beginnen { display: inline-block; margin-top: 14px; font-size: .95rem; color: var(--bordeaux); border-bottom: 1px solid var(--gold); }
.raetsel-wahl .beginnen { display: block; width: fit-content; }

@media (max-width: 1100px) { .zahlenband span { white-space: normal; } }

@media (max-width: 700px) { .zahlenband { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zahlenband span { letter-spacing: .06em; overflow-wrap: anywhere; } }

@media (max-width: 520px) {
  .kopf .knopf-icon { width: 44px; height: 44px; }
  .kopf-werkzeuge { gap: 4px; }
  .sprachwahl button { padding: 8px 9px; }
}
@media (max-width: 400px) { .marke-text { display: none; } }

@media (max-width: 760px) {
  .werkzeugleiste .knopf-icon { width: 44px; height: 44px; }
  .werkzeugleiste [data-label] { width: auto; min-width: 44px; height: auto; padding: 4px 4px 2px; border-radius: 10px; display: inline-flex; flex-direction: column; gap: 1px; }
  .werkzeugleiste [data-label]::after { content: attr(data-label); font-size: .68rem; letter-spacing: .02em; color: var(--grau); line-height: 1.1; }
}

@media (max-width: 700px) {
  .kapit-klein { font-size: .84rem; letter-spacing: .1em; }
  .ll-ende, .vw-motive, .cento-zeile .q { font-size: .82rem; }
}

@media (max-width: 700px) {
  .himmel .motiv-stern text { font-size: 40px; }
  .himmel .motiv-stern text.ru-text { font-size: 38px; }
  .karte-wege .ort text { font-size: 30px; stroke-width: 6px; }
}

.aufsatz .fn-ref { padding: 8px 6px; margin: -8px -4px; }
.fn-zurueck { border: 0; background: none; color: var(--bordeaux); cursor: pointer; font: inherit; font-size: .9rem; padding: 4px 6px; }

@media (hover: none) {
  .antworten button:hover:not(:disabled) { border-color: var(--linie); }
  .raum:hover, .karte:hover, .raetsel-wahl button:hover, .abzug:hover, .kalenderblatt:hover { transform: none; box-shadow: none; }
}

@media (max-width: 600px) { .vt-de { font-size: clamp(1.25rem, 6vw, 1.7rem); } .vt-ru { font-size: clamp(1.1rem, 5vw, 1.4rem); } .vt-buehne span { text-wrap: balance; } }

@media (max-width: 760px) {
  .seismo, .jahresachse { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

  .seismo button, .jahresachse span { flex-basis: 27px; min-width: 27px; }
}

.umschlag-hinweis { position: absolute; left: 0; right: 0; bottom: -2.4em; text-align: center; font-family: var(--f-titel); font-style: italic; color: rgba(239, 229, 207, .8); font-size: 1.05rem; }

.buch:not(.offen) { animation: atmen 5.5s ease-in-out infinite; }
@keyframes atmen { 50% { transform: translateY(-4px); } }
.deckel-vorn .name {
  background: linear-gradient(105deg, #e8d39d 0%, #e8d39d 40%, #fff6dc 50%, #e8d39d 60%, #e8d39d 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: blattgold 6s ease-in-out 1.2s infinite;
}
@keyframes blattgold { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: -50% 0; } }

.blatt { position: absolute; inset: 1.5% 0 1.5% 0; background: linear-gradient(90deg, #e9dfc6, #f4eddd 40%); border-radius: 1px 5px 5px 1px; transform-origin: left center; transform: translateZ(1px); backface-visibility: visible; box-shadow: inset -4px 0 8px rgba(0,0,0,.08); transition: transform 1.3s cubic-bezier(.6, .05, .25, 1); }
.buch.offen .blatt.b1 { transform: translateZ(1px) rotateY(-163.5deg); transition-delay: .32s; }
.buch.offen .blatt.b2 { transform: translateZ(1px) rotateY(-161deg); transition-delay: .5s; }
.buch.offen .blatt.b3 { transform: translateZ(1px) rotateY(-158deg); transition-delay: .68s; }

.ouvertuere .lichtkegel { transition: opacity 1.8s ease, background 1.8s ease; }
.ouvertuere.geoeffnet .lichtkegel { background: radial-gradient(circle at 50% 42%, rgba(255, 214, 150, .26), transparent 52%); }

.goldstaub { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.goldstaub i { position: absolute; width: var(--g); height: var(--g); border-radius: 50%; background: radial-gradient(circle, #fff3c9, #d4b673 60%, transparent 70%); opacity: 0; animation: staub 2.6s var(--d) cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes staub { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1); } }

.widmung-zeilen span { clip-path: inset(0 100% 0 0); transform: none; transition: clip-path 1.4s cubic-bezier(.5, 0, .3, 1), opacity .4s; }
.buch.offen .widmung-zeilen span { clip-path: inset(0 0 0 0); }
.buch.offen .widmung-zeilen span:nth-child(1) { transition-delay: 1.15s; }
.buch.offen .widmung-zeilen span:nth-child(2) { transition-delay: 1.85s; }
.buch.offen .widmung-zeilen span:nth-child(3) { transition-delay: 2.55s; }
.buch.offen .widmung-motto { transition-delay: 3.3s; }
@media (max-width: 860px) { .buch.offen .blatt { opacity: 0; transition: transform 1.3s cubic-bezier(.6, .05, .25, 1), opacity .5s 1.2s; } }
@media (prefers-reduced-motion: reduce) { .buch:not(.offen), .deckel-vorn .name, .goldstaub i { animation: none; } .goldstaub { display: none; } .widmung-zeilen span { clip-path: none; } }
:root[data-ruhig="an"] .goldstaub { display: none; }
:root[data-ruhig="an"] .widmung-zeilen span { clip-path: none; }
.deckel-vorn .name { text-shadow: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)); }

.siegel { background: none; box-shadow: none; }
.siegel::after { display: none; }
.siegel .sh { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #a43a46, #6e1f2a 60%, #4e121b); box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 -3px 6px rgba(0,0,0,.3);
  color: #e9b9a6; font-family: var(--f-titel); font-size: 1.6rem; transition: transform 1s cubic-bezier(.3, .1, .2, 1), opacity .9s .25s; }
.siegel .sh::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(233, 185, 166, .45); }
.siegel .links { clip-path: polygon(0 0, 54% 0, 46% 38%, 55% 62%, 47% 100%, 0 100%); }
.siegel .rechts { clip-path: polygon(54% 0, 100% 0, 100% 100%, 47% 100%, 55% 62%, 46% 38%); }
.krumen { position: absolute; left: 50%; top: 55%; width: 6px; height: 5px; border-radius: 2px; background: #7d2a35; opacity: 0; }
.brief-buehne.geoeffnet .siegel { opacity: 1; transform: translate(-50%, -50%); animation: siegel-zittern .35s ease-in-out; }
@keyframes siegel-zittern { 25% { transform: translate(-50%, -50%) rotate(-4deg); } 75% { transform: translate(-50%, -50%) rotate(4deg); } }
.brief-buehne.geoeffnet .siegel .links { transform: translate(-26px, 18px) rotate(-24deg); opacity: 0; transition-delay: .3s, .75s; }
.brief-buehne.geoeffnet .siegel .rechts { transform: translate(28px, 22px) rotate(21deg); opacity: 0; transition-delay: .3s, .75s; }
.brief-buehne.geoeffnet .krumen { animation: krumen 1s .35s cubic-bezier(.4, 0, .9, .6) forwards; }
.brief-buehne.geoeffnet .k2 { --kx: 22px; animation-delay: .4s; }
.brief-buehne.geoeffnet .k3 { --kx: -16px; animation-delay: .45s; width: 4px; height: 4px; }
@keyframes krumen { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--kx, -6px), 90px) rotate(160deg); } }

.brief-buehne.geoeffnet .klappe { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .siegel .sh, .krumen { transition: none; animation: none !important; } }
:root[data-ruhig="an"] .krumen { display: none; }
.brief-buehne.geoeffnet .umschlag { transition-delay: .8s; } .brief-buehne.geoeffnet .briefbogen { transition-delay: .9s; }

.vt-sprachen button { white-space: nowrap; }
.karte-wege .karte-info { scroll-margin-top: calc(var(--kopf) + 12px); }

.blatt { transform-style: preserve-3d; }
.blatt-rueck { position: absolute; inset: 0; transform: rotateY(180deg) translateZ(1px); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; background: linear-gradient(270deg, #e6dbc0, #f4eddd 45%); border-radius: 5px 1px 1px 5px; }

.nm-verwandlung { grid-template-rows: var(--vers-h, 2.75em) auto; }
.nm-gruss { line-height: 1.15; margin: -.1em 0 .85em; }
.nm-titel { margin-bottom: .24em; }
.nm-inhalt { margin-top: -11vh; }

@media (max-width: 520px) { .nm-inhalt { margin-top: 2vh; } }
.nm-oben { text-wrap: balance; }

.nm-festknopf { animation: festpuls 2.6s ease-out 3.6s 3 both; }
.nm-festknopf:hover, .nm-festknopf:focus-visible { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .nm-festknopf { animation: none; } }

@media (min-width: 761px) {
  .werkzeugleiste [data-label] { width: auto; min-width: 46px; height: auto; padding: 4px 6px 3px; border-radius: 12px; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; }
  .werkzeugleiste [data-label]::after { content: attr(data-label); font-size: .72rem; letter-spacing: .02em; color: var(--grau); line-height: 1.1; }
  .werkzeugleiste [data-label]:hover::after { color: var(--bordeaux); }
}

:root:has(body > .vortrag) { overflow: hidden; }
.vt-kopf { font-size: 1.02rem; color: rgba(239, 229, 207, .78); }
.vt-zaehler { font-size: .92rem; white-space: nowrap; flex: none; }
.vt-kopf > span:not(.vt-zaehler) { flex: 1 1 0; min-width: 0; }
.vt-kopf > span:last-child { text-align: right; }
@media (max-width: 600px) { .vt-kopf { font-size: .92rem; letter-spacing: .03em; } }
.vt-leiste { padding: 8px 0 4px; }
.vt-leiste button[aria-disabled="true"] { opacity: .32; cursor: default; }
.vt-leiste button[aria-disabled="true"]:hover { border-color: rgba(212, 182, 115, .4); color: #efe5cf; }

.umschlag-hinweis { transition: opacity .35s ease; }
.brief-buehne.geoeffnet .umschlag-hinweis { opacity: 0; }
.kimm-feld { transition: opacity 1.2s ease .6s; }
.brief-buehne.geoeffnet .kimm-feld { opacity: 0; }

.ruecken { flex: none; width: auto; min-width: var(--b); padding: 0 4px; }
.ruecken:nth-child(3n) { width: auto; min-width: calc(var(--b) + 4px); }
.ruecken:nth-child(4n+1) { width: auto; min-width: calc(var(--b) - 3px); }
.ruecken-titel, .ruecken-de { white-space: normal; text-overflow: clip; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.fuss .buch-wieder { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; } .fuss .buch-wieder:hover { color: var(--bordeaux); }

@media (min-width: 761px) {
  .gedicht-flaeche .gedicht { width: fit-content; max-width: 100%; margin-inline: auto; }
  .gedicht-flaeche:not(.nur-ru):not(.nur-de):not(.verschraenkt) .spalte-kopf { justify-content: center; gap: .7em; }
  .gedicht-flaeche:not(.nur-ru):not(.nur-de):not(.verschraenkt) .spalte-kopf span + span::before { content: '·'; margin-right: .7em; }
}
.gedicht > .strophe:first-child > .vz:first-child::first-letter,
.gedicht > .widmungszeile + .strophe > .vz:first-child::first-letter,
.gedicht > .strophe:first-child > .paar:first-child > .vz-ru::first-letter,
.gedicht > .widmungszeile + .strophe > .paar:first-child > .vz-ru::first-letter { font-family: var(--f-titel); font-size: 1.48em; line-height: .8; font-weight: 500; color: var(--bordeaux); }
.vz.haengt { text-indent: -1.38em; }
.vz.haengt.breit { text-indent: -1.6em; }
.zuordnung-hinweis::before { content: ''; display: block; width: 132px; height: 12px; margin: 2px auto 20px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 12'%3E%3Cpath d='M0 6h50M82 6h50' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='55' cy='6' r='1.4'/%3E%3Ccircle cx='77' cy='6' r='1.4'/%3E%3Cpath d='M66 .8 71.2 6 66 11.2 60.8 6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 12'%3E%3Cpath d='M0 6h50M82 6h50' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='55' cy='6' r='1.4'/%3E%3Ccircle cx='77' cy='6' r='1.4'/%3E%3Cpath d='M66 .8 71.2 6 66 11.2 60.8 6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.anm-text { line-height: 1.68; max-width: 36em; }

.werkzeugleiste .gruppe { display: inline-grid; grid-template-columns: auto auto; column-gap: 2px; justify-items: center; align-items: center; }
.werkzeugleiste .gruppe::after { content: attr(data-gruppe); grid-column: 1 / -1; font-size: .72rem; letter-spacing: .02em; line-height: 1.1; color: var(--grau); white-space: nowrap; }
.werkzeugleiste .gruppe:hover::after { color: var(--bordeaux); }
.werkzeugleiste .gruppe .knopf-icon { width: 36px; height: 28px; border-radius: 10px; }
.werkzeugleiste .gruppe .hoer-knopf { display: inline-flex; align-items: center; gap: 3px; width: auto; min-width: 44px; padding: 0 7px; }
.werkzeugleiste .hoer-knopf svg { width: 19px; height: 19px; flex: none; }
.werkzeugleiste .hoer-knopf .hk { font-size: .66rem; letter-spacing: .06em; color: var(--grau); }
.werkzeugleiste .hoer-knopf[aria-pressed="true"] .hk { color: var(--bordeaux); }
@media (max-width: 760px) {
  .werkzeugleiste { column-gap: 4px; }
  .werkzeugleiste > * { order: 2; }
  .werkzeugleiste > .segment { order: 0; }
  .werkzeugleiste > .mehr-wrap { order: 1; }
  .werkzeugleiste .gruppe::after { font-size: .68rem; }
  .werkzeugleiste .gruppe .knopf-icon { width: 40px; height: 32px; }
  .werkzeugleiste > [data-label] { padding-top: 8px; }
  .werkzeugleiste .gruppe .hoer-knopf { padding: 0 5px; }
  .werkzeugleiste .segment button { padding: 6px 9px; }
  .werkzeugleiste .mehr-wrap { position: static; }
  .mehr-menue { left: 50%; right: auto; transform: translateX(-50%); top: calc(100% + 8px); max-width: calc(100vw - 32px); }
}

.blaettern { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 20px; }
.blaettern a { max-width: none; justify-self: start; padding: 12px 16px; margin: -12px -16px; border-radius: 8px; transition: background .25s var(--ease); }
.blaettern a.weiter { justify-self: end; margin: -12px -16px; }
.blaettern a:hover, .blaettern a:focus-visible { background: var(--mark); color: inherit; }
.blaettern a:hover .r { color: var(--bordeaux); }
.blaettern a .r { margin-top: 4px; line-height: 1.2; text-wrap: balance; }
.blaettern .u { display: block; margin-top: 3px; font-style: italic; color: var(--grau); font-size: .98rem; line-height: 1.3; }
.blaettern .pf { display: inline-block; transition: transform .3s var(--ease); }
.blaettern a.zurueck:hover .pf, .blaettern a.zurueck:focus-visible .pf { transform: translateX(-4px); }
.blaettern a.weiter:hover .pf, .blaettern a.weiter:focus-visible .pf { transform: translateX(4px); }
.blaettern > :nth-child(2):not(a) { align-self: center; text-align: center; white-space: nowrap; }
.blaettern > a.weiter { grid-column: -2 / -1; }
@media (max-width: 600px) {
  .blaettern { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .blaettern > :nth-child(2):not(a) { grid-column: 1 / -1; order: -1; }
  .blaettern a, .blaettern a.weiter { padding: 10px; margin: -10px; }
  .blaettern a .r { font-size: 1.18rem; }
}

.leer-zustand { text-align: center; max-width: 36em; margin: 0 auto; padding: 26px 0 8px; }
.leer-zustand .ornament { max-width: 240px; margin: 0 auto 18px; }
.leer-titel { font-family: var(--f-titel); font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.2; color: var(--tinte); margin-bottom: .35em; text-wrap: balance; }
.leer-text { color: var(--tinte-2); font-style: italic; }
.leer-vorschlag { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px dotted var(--linie); }
.leer-vorschlag .kapit-klein { flex-basis: 100%; margin-bottom: 4px; }
.leer-vorschlag .chip { text-decoration: none; font-size: 1rem; padding: 7px 15px; }
.leer-vorschlag .chip em { color: var(--grau); }

.kb-alt { text-align: center; font-style: italic; color: var(--grau); font-size: .98rem; line-height: 1.3; margin: 0 0 10px; }
.kb-frist { display: block; width: fit-content; margin: 16px auto 0; font-style: italic; font-size: 1.04rem; color: var(--bordeaux); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); }
.kb-frist:hover { color: var(--bordeaux-hell); border-bottom-color: var(--gold); }
.kb-widmung { font-size: .92rem; }

.karte, .raum, .chip, .knopf, .knopf-icon, .blaettern a, .kb-frist { -webkit-tap-highlight-color: transparent; }
.karte:focus-visible, .raum:focus-visible { outline-offset: 4px; border-color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-ruhig="an"]) :is(.karte, .raum):active { transform: translateY(1px) scale(.992); box-shadow: none; transition-duration: .08s; }
  :root:not([data-ruhig="an"]) :is(.chip, .knopf, .knopf-icon):active { transform: scale(.95); transition-duration: .08s; }
}
:is(.karte, .raum):active { border-color: var(--gold); }
.verwandte .karte .zeile1 { margin-top: 12px; padding-top: 0; font-style: italic; color: var(--tinte-2); }
.verwandte .karte .vw-motive { margin-top: auto; padding-top: 12px; }

@media (max-width: 760px) {
  .chip, .knopf { min-height: 44px; }
  .werkzeugleiste .gruppe .knopf-icon { width: 44px; height: 44px; }
  .werkzeugleiste .segment button { min-height: 44px; min-width: 44px; }
  .werkzeugleiste [data-label] { min-height: 44px; }
  .mehr-filter summary { padding: 8px 0; }

  .aufsatz .fn-ref, .fuss .buch-wieder, .kb-frist, .fussnoten .fn-zurueck { position: relative; }
  .fussnoten .fn-zurueck::after { content: ''; position: absolute; inset: -7px 0; }
  .aufsatz .fn-ref::after { content: ''; position: absolute; inset: -14px -13px; }
  .fuss .buch-wieder::after { content: ''; position: absolute; inset: -10px -4px; }
  .kb-frist::after { content: ''; position: absolute; inset: -8px -4px; }
  .segel-ei::after { content: ''; position: absolute; inset: -10px -11px; }
}
@media (max-width: 520px) {
  .sprachwahl button { min-width: 44px; min-height: 44px; }
  .marke { min-width: 44px; min-height: 44px; justify-content: center; }
}

@media (max-width: 760px) {
  .ouvertuere .ueberspringen { min-height: 44px; padding: 0 12px; top: 6px; right: 4px; }
}

@media (max-width: 760px) {
  .lesetisch-kopf .meta a, .widmung-karte cite a { position: relative; }
  .lesetisch-kopf .meta a::after { content: ''; position: absolute; inset: -10px -7px; }
  .widmung-karte cite a::after { content: ''; position: absolute; inset: -12px -6px; }
}

@media (max-width: 760px) {
  .fuss p > a { position: relative; }
  .fuss p > a::after { content: ''; position: absolute; inset: -10px -4px 0; }
  .fuss .buch-wieder::after { inset: 0 -4px -10px; }
}

.buch-buehne { transition: transform 1.6s cubic-bezier(.6, .05, .25, 1), scale 1.1s cubic-bezier(.4, 0, .2, 1); }
.ouvertuere.fort .buch-buehne { scale: 1.045; }
.ouvertuere.fort .ouvertuere-steuer, .ouvertuere.fort .ueberspringen { opacity: 0; transition: opacity .35s ease; }

@keyframes nm-ankunft { from { opacity: 0; transform: translateY(12px); } }
.nachtmeer.nach-buch .nm-oben { animation: nm-ankunft 1.4s cubic-bezier(.22, .61, .36, 1) .25s both; }
.nachtmeer.nach-buch .nm-titel { animation: nm-ankunft 1.8s cubic-bezier(.22, .61, .36, 1) .4s both; }
.nachtmeer.nach-buch .nm-gruss { animation: nm-ankunft 1.6s cubic-bezier(.22, .61, .36, 1) .7s both; }

.nachtmeer::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 42%, transparent 55%, rgba(4, 10, 8, .38) 100%); }
@media (max-width: 520px) { .nachtmeer::after { background: radial-gradient(ellipse 110% 70% at 50% 42%, transparent 60%, rgba(4, 10, 8, .3) 100%); } }
@media (prefers-reduced-motion: reduce) { .buch-buehne { transition: none; } .ouvertuere.fort .buch-buehne { scale: none; } .nachtmeer.nach-buch .nm-oben, .nachtmeer.nach-buch .nm-titel, .nachtmeer.nach-buch .nm-gruss { animation: none; } }
:root[data-ruhig="an"] .ouvertuere.fort .buch-buehne { scale: none; }
:root[data-ruhig="an"] .nachtmeer.nach-buch .nm-oben, :root[data-ruhig="an"] .nachtmeer.nach-buch .nm-titel, :root[data-ruhig="an"] .nachtmeer.nach-buch .nm-gruss { animation: none; }

:root { --holz-1: #4a3421; --holz-2: #3a2919; --holz-3: #6e4f33; --messing-1: #ecd391; --messing-2: #b48d45; --messing-3: #7f5e25; --karton: #fbf5e4; --stempel: #8a2433; --mono: ui-monospace, 'Courier New', 'Cousine', monospace; }
:root[data-abend="an"] { --holz-1: #2f2216; --holz-2: #231910; --holz-3: #4f3825; --messing-1: #d9bd7c; --messing-2: #9c793a; --messing-3: #6a4e1f; --karton: #e8dec6; --stempel: #8f2232; }
.signatur { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; line-height: 1.3; color: var(--tinte-2); background: var(--papier); border: 1px solid var(--linie); border-radius: 2px; padding: 1px 6px 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.karte .signatur { margin-bottom: 9px; }
.lesetisch-kopf .signatur-schild { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 3px 4px 3px 10px; border: 1px solid var(--linie); border-radius: 2px; background: var(--papier-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }
.lesetisch-kopf .signatur-schild .signatur { font-size: .78rem; text-transform: none; letter-spacing: .05em; border-color: color-mix(in srgb, var(--bordeaux) 35%, var(--linie)); }

.regalwand { gap: 0; padding: 6px clamp(10px, 2vw, 22px) 0; border-radius: 3px; border: 10px solid var(--holz-3);
  background:
    linear-gradient(90deg, rgba(0,0,0,.4), transparent 5%, transparent 95%, rgba(0,0,0,.4)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 2px, transparent 2px 9px, rgba(0,0,0,.05) 9px 11px, transparent 11px 23px),
    linear-gradient(var(--holz-1), var(--holz-2));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), inset 0 0 40px rgba(0,0,0,.45), 0 22px 44px -24px rgba(0,0,0,.65); }
.regalwand .brett { padding-top: 22px; }
.regalwand .brett-buecher { position: relative; padding-top: 6px; border-bottom: 16px solid transparent; box-shadow: none; min-height: 130px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.22) 0 1px, transparent 1px 5px, rgba(0,0,0,.14) 5px 6px, transparent 6px 10px, rgba(0,0,0,.12) 10px 11px, transparent 11px) left bottom / 100% 16px no-repeat border-box,
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 28%, rgba(255,255,255,.07) 55%, transparent 78%, rgba(0,0,0,.14)) left bottom / 100% 16px no-repeat border-box,
    linear-gradient(to bottom, #8d6744, #6b4c30 60%, #4a331f) left bottom / 100% 16px no-repeat border-box,
    linear-gradient(to top, rgba(0,0,0,.35), transparent 26px) left bottom / 100% 100% no-repeat padding-box; }
:root[data-abend="an"] .regalwand .brett-buecher { border-bottom-color: transparent; }
.regalwand .brett-schild { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 30px; text-align: center; }
.regalwand .brett-schild b { position: relative; font-size: 1.15rem; letter-spacing: .08em; color: #2b1e0f; padding: 4px 14px 3px; border-radius: 2px; font-variant-numeric: lining-nums;
  background: linear-gradient(180deg, var(--messing-1), var(--messing-2) 55%, var(--messing-3)); text-shadow: 0 1px 0 rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.55); }
.regalwand .brett-schild b::before, .regalwand .brett-schild b::after { content: ''; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c9, var(--messing-3) 70%); box-shadow: 0 0 1px rgba(0,0,0,.6); }
.regalwand .brett-schild b::before { left: 4px; } .regalwand .brett-schild b::after { right: 4px; }
.regalwand .brett-schild span { color: #dcc592; font-size: .72rem; line-height: 1.25; }
.regalwand .brett-schild .brett-zahl { color: #c9b385; font-style: italic; }
.regalwand .ruecken { padding-bottom: 30px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.13), transparent 22%, transparent 74%, rgba(0,0,0,.32)),
    linear-gradient(to bottom, transparent 13px, rgba(212,182,115,.75) 13px 15px, transparent 15px 18px, rgba(212,182,115,.5) 18px 19px, transparent 19px),
    linear-gradient(to top, transparent 5px, rgba(212,182,115,.55) 5px 6px, transparent 6px),
    var(--r);
  transform-origin: 0 100%; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.regalwand .ruecken::before { top: 24px; background: rgba(0,0,0,.25); box-shadow: 0 1px 0 rgba(255,255,255,.12); }
.regalwand .ruecken::after { bottom: 27px; }
.regalwand .ruecken-titel, .regalwand .ruecken-de { max-height: calc(var(--h) - 62px); }
.regalwand .ruecken-stern { top: 22px; }
.ruecken-sig { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); min-width: calc(100% - 10px); padding: 1px 2px 0; font-family: var(--mono); font-size: .5rem; line-height: 1.15; letter-spacing: 0; text-align: center; color: #2a2118; background: #efe3c4; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); white-space: nowrap; }
.regalwand .ruecken:nth-child(5n+2) { border-radius: 3px 3px 0 0; }
.regalwand .ruecken:nth-child(7n+3) { filter: saturate(.85) brightness(.95); }
.regalwand .ruecken:hover, .regalwand .ruecken:focus-visible { transform: translateY(-6px) rotate(-4deg); box-shadow: 8px 6px 14px -6px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.18); color: #fff; z-index: 2; }
.regalwand .ruecken:focus-visible { outline: 2px solid var(--messing-1); outline-offset: 2px; }
.buchstuetze { flex: none; align-self: flex-end; width: 16px; height: 86px; margin-left: 6px; border-radius: 2px 2px 0 0; position: relative;
  background: linear-gradient(90deg, var(--messing-3), var(--messing-1) 30%, var(--messing-2) 60%, var(--messing-3)); box-shadow: -3px 0 6px -2px rgba(0,0,0,.6); }
.buchstuetze::after { content: ''; position: absolute; left: -10px; right: -2px; bottom: 0; height: 4px; background: var(--messing-3); border-radius: 1px; }
.regalwand + .regal-legende { margin-top: 18px; }
@media (max-width: 640px) {
  .regalwand { border-width: 7px; padding: 4px 8px 0; }
  .regalwand .brett-schild { flex-direction: row; justify-content: flex-start; padding: 0 0 4px; }
}
@media (hover: none) { .regalwand .ruecken:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); } }
@media (prefers-reduced-motion: reduce) { .regalwand .ruecken, .zettel, .lade { transition: none; } .regalwand .ruecken:hover, .regalwand .ruecken:focus-visible { transform: none; } }
:root[data-ruhig="an"] .regalwand .ruecken, :root[data-ruhig="an"] .zettel, :root[data-ruhig="an"] .lade { transition: none; }
:root[data-ruhig="an"] .regalwand .ruecken:hover, :root[data-ruhig="an"] .regalwand .ruecken:focus-visible { transform: none; }

.katalog-schrank { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; padding: 14px; border-radius: 4px; border: 8px solid var(--holz-3);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 11px, rgba(0,0,0,.05) 11px 13px, transparent 13px 27px), linear-gradient(var(--holz-1), var(--holz-2));
  box-shadow: inset 0 0 30px rgba(0,0,0,.45), 0 22px 44px -24px rgba(0,0,0,.65); }
.lade { appearance: none; border: 0; font: inherit; cursor: pointer; position: relative; min-height: 92px; padding: 10px 6px 8px; border-radius: 3px; color: #2b1e0f;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: linear-gradient(90deg, rgba(0,0,0,.12), transparent 20%, rgba(255,255,255,.06) 50%, transparent 80%, rgba(0,0,0,.12)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 6px), linear-gradient(#94704a, #6e4f33);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.3), 0 2px 3px rgba(0,0,0,.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lade-schild { display: block; min-width: 62px; padding: 1px 8px 0; background: #f3e8cc; border: 3px solid var(--messing-2); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 1px 1px rgba(0,0,0,.4);
  font-family: var(--f-titel); font-size: 1.45rem; line-height: 1.15; text-align: center; color: #2b1e0f; }
.lade-griff { display: block; width: 36px; height: 9px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, var(--messing-1), var(--messing-3)); box-shadow: 0 2px 2px rgba(0,0,0,.5); }
.lade-zahl { font-size: .74rem; color: #f1e2bb; font-style: italic; }
.lade:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.5); }
.lade[aria-expanded="true"] { transform: translateY(5px) scale(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 16px -4px rgba(0,0,0,.7); z-index: 1; }
.lade[aria-expanded="true"] .lade-schild { border-color: var(--messing-1); background: #fff8e2; }
.lade:focus-visible { outline: 3px solid var(--messing-1); outline-offset: 2px; }
.katalog-lade { margin: 0 8px; padding: 18px clamp(12px, 2.4vw, 24px) 26px; border-radius: 0 0 6px 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 26px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 8px), linear-gradient(#6b4c30, #553a24);
  box-shadow: 0 16px 30px -18px rgba(0,0,0,.7); }
.katalog-lade h2 { margin: 0 0 14px; font-family: var(--f-titel); font-weight: 400; font-size: 1.15rem; letter-spacing: .06em; color: #f1e2bb; text-align: center; }
.zettel-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.zettel { position: relative; display: flex; flex-direction: column; min-height: 178px; padding: 0 16px 26px; text-decoration: none; color: #2a241b; border-radius: 2px;
  background:
    linear-gradient(to bottom, transparent 33px, rgba(176, 40, 52, .75) 33px 34px, transparent 34px),
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(70, 110, 160, .2) 23px 24px) 0 34px / 100% calc(100% - 34px) no-repeat,
    var(--karton);
  box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 3px 8px -2px rgba(0,0,0,.45); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.zettel::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #553a24; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.zettel:hover, .zettel:focus-visible { transform: translateY(-5px); box-shadow: 0 10px 18px -6px rgba(0,0,0,.6); color: #2a241b; }
.zettel:focus-visible { outline: 3px solid var(--messing-1); outline-offset: 3px; }
.zettel-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; height: 33px; padding-bottom: 4px; font-family: var(--mono); font-size: .76rem; color: #3a3226; }
.zettel-kopf .sig { color: #8a2433; }
.zettel .t-ru { font-family: var(--f-titel); font-size: 1.22rem; line-height: 24px; font-weight: 500; margin-top: 2px; }
.zettel .t-de { font-style: italic; line-height: 24px; color: #4a4134; }
.zettel .z1 { font-family: var(--mono); font-size: .76rem; line-height: 24px; color: #4f463a; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.zettel .z1 mark { background: rgba(169, 133, 63, .35); color: inherit; }
.katalog-hinweis { text-align: center; font-size: .9rem; color: var(--grau); font-style: italic; margin-top: 18px; }
@media (max-width: 640px) { .katalog-schrank { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; padding: 10px; border-width: 6px; } .lade { min-height: 80px; } .lade-schild { min-width: 46px; font-size: 1.25rem; } .katalog-lade { margin: 0 4px; } }
@media (hover: none) { .zettel:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lade[aria-expanded="true"] { transform: none; } .zettel:hover, .zettel:focus-visible { transform: none; } }
:root[data-ruhig="an"] .lade[aria-expanded="true"] { transform: none; }
:root[data-ruhig="an"] .zettel:hover, :root[data-ruhig="an"] .zettel:focus-visible { transform: none; }

.leihkarte-tasche { position: relative; max-width: 440px; margin: clamp(44px, 6vw, 70px) auto 0; }
.lk-karte { position: relative; z-index: 1; margin: 0 14px; padding: 14px 18px 16px; color: #2a241b; transform: rotate(-.6deg); border-radius: 2px;
  background: linear-gradient(to bottom, transparent 46px, rgba(176, 40, 52, .7) 46px 47px, transparent 47px), var(--karton);
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 10px 22px -12px rgba(0,0,0,.55); }
.lk-karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 32px; }
.lk-karte-kopf h2 { margin: 0; font-family: var(--f-titel); font-weight: 500; font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; color: #2a241b; }
.lk-karte-kopf h2 span { font-weight: 400; letter-spacing: .04em; text-transform: none; color: #5a5042; }
.lk-karte-kopf .signatur { background: transparent; color: #8a2433; border-color: rgba(138, 36, 51, .4); }
.lk-werk { margin: 6px 0 8px; line-height: 1.3; }
.lk-werk b { font-family: var(--f-titel); font-weight: 500; font-size: 1.1rem; } .lk-werk i { color: #4a4134; }
.lk-liste { list-style: none; margin: 0; padding: 0; counter-reset: lk; border-top: 1px solid rgba(70, 110, 160, .3); }
.lk-liste li { counter-increment: lk; display: flex; align-items: center; gap: 12px; min-height: 31px; border-bottom: 1px solid rgba(70, 110, 160, .3); }
.lk-liste li::before { content: counter(lk); width: 18px; font-family: var(--mono); font-size: .72rem; color: #6a5f4f; text-align: right; }
.stempel { display: inline-block; padding: 1px 7px 0; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stempel);
  border: 2px solid currentColor; border-radius: 3px; opacity: .85; transform: rotate(var(--w, -2deg)); mix-blend-mode: multiply; }
.stempel.neu { animation: lk-stempel .5s cubic-bezier(.3, 1.5, .5, 1) .25s both; }
@keyframes lk-stempel { from { opacity: 0; transform: rotate(var(--w, -2deg)) scale(1.7); } }
.lk-fuss { margin: 10px 0 0; font-size: .82rem; line-height: 1.4; color: #5a5042; font-style: italic; }
.lk-tasche { position: relative; height: 70px; margin-top: -34px; border-radius: 0 0 4px 4px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,.12), transparent 8px), linear-gradient(#cbb489, #b89d6c); clip-path: polygon(0 0, 40% 0, 50% 14px, 60% 0, 100% 0, 100% 100%, 0 100%); }
.lk-tasche span { font-family: var(--f-titel); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #4a3a22; border-top: 1px solid rgba(74,58,34,.4); border-bottom: 1px solid rgba(74,58,34,.4); padding: 1px 8px; }
:root[data-abend="an"] .lk-tasche { background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent 8px), linear-gradient(#a08b62, #93805a); }
:root[data-abend="an"] .lk-tasche span { color: #1a1208; }
@media (prefers-reduced-motion: reduce) { .stempel.neu { animation: none; } .lk-karte { transform: none; } }
:root[data-ruhig="an"] .stempel.neu { animation: none; }
:root[data-ruhig="an"] .lk-karte { transform: none; }
@media print { .leihkarte-tasche, .signatur-schild { display: none !important; } }
.zettel .t-1 { font-family: var(--f-titel); font-size: 1.22rem; line-height: 24px; font-weight: 500; margin-top: 2px; }
.zettel .t-2 { font-style: italic; line-height: 24px; color: #4a4134; }

.regalwand .brett { margin: 0 calc(-1 * clamp(10px, 2vw, 22px)); padding-left: clamp(10px, 2vw, 22px); padding-right: clamp(10px, 2vw, 22px);
  background: linear-gradient(to bottom, rgba(255,255,255,.22) 0 1px, transparent 1px 5px, rgba(0,0,0,.14) 5px 6px, transparent 6px) left bottom / 100% 16px no-repeat, linear-gradient(to bottom, #8d6744, #6b4c30 60%, #4a331f) left bottom / 100% 16px no-repeat; }
@media (max-width: 640px) { .regalwand .brett { margin: 0 -8px; padding-left: 8px; padding-right: 8px; } }

.lk-karte { background: var(--karton); }
.lk-karte-kopf { flex-wrap: wrap; row-gap: 4px; margin: 0 -18px; padding: 0 18px 7px; border-bottom: 1px solid rgba(176, 40, 52, .7); }
.lk-karte-kopf h2 { line-height: 1.15; }

@media (max-width: 640px) { .katalog-schrank { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 7px; padding: 8px; } .lade { min-height: 60px; padding: 7px 3px 6px; gap: 5px; } .lade-schild { min-width: 0; width: 100%; max-width: 44px; padding: 0 2px; border-width: 2px; font-size: 1.1rem; } .lade-griff { width: 26px; height: 7px; } .lade-zahl { display: none; } }
@media (max-width: 640px) { .zettel { min-height: 140px; } }
.lk-tasche span { white-space: nowrap; }
@media (max-width: 480px) { .lk-tasche span { font-size: .75rem; letter-spacing: .1em; padding: 1px 4px; } }

.overlay .karte-gross.postkarte-dialog { width: min(1060px, 100%); max-height: 94vh; padding: clamp(18px, 3.4vw, 36px); }
.pk-kopf { text-align: center; padding: 0 40px; }
.pk-kopf h2 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.pk-unter { margin: 2px 0 0; color: var(--grau); }
.pk-wahl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 6px; }
.pk-wahl .kapit-klein { margin-right: 4px; }
.pk-wahl .chip { min-width: 2.6em; padding: 4px 11px; }
.pk-hinweis { text-align: center; font-size: .9rem; font-style: italic; color: var(--grau); margin: 4px auto 0; max-width: 560px; }
.pk-buehne { position: relative; margin: 14px auto 0; max-width: min(900px, calc((94vh - 270px) * 1.4286)); min-width: min(100%, 300px); }
.pk-bild { display: block; width: 100%; height: auto; aspect-ratio: 1500 / 1050; background: #f2e8d2; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(29, 27, 23, .12), 0 18px 40px -18px rgba(29, 27, 23, .55); transform: rotate(-.35deg); transition: opacity .3s; }
.pk-laden { position: absolute; inset: 0; display: none; place-items: center; margin: 0; font-style: italic; color: #6a5f4f; }
.pk-buehne.laedt .pk-bild { opacity: .35; }
.pk-buehne.laedt .pk-laden { display: grid; }
.pk-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.pk-knoepfe .knopf svg { width: 18px; height: 18px; vertical-align: -3px; }
.pk-status { text-align: center; min-height: 1.4em; margin: 8px 0 0; font-size: .92rem; color: var(--grau); overflow-wrap: anywhere; }
:root[data-abend="an"] .pk-bild { box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .9); }
@media (max-width: 640px) { .overlay:has(.postkarte-dialog) { padding: 10px; } .overlay .karte-gross.postkarte-dialog { padding: 16px 12px 18px; } .pk-kopf { padding: 0 36px; } .pk-bild { transform: none; } .pk-wahl { gap: 5px; } .pk-wahl .chip { min-width: 2.3em; padding: 3px 8px; font-size: .88rem; } }
@media (prefers-reduced-motion: reduce) { .pk-bild { transform: none; transition: none; } }
:root[data-ruhig="an"] .pk-bild { transform: none; }
.mehr-menue [data-aktion="postkarte"] svg { width: 18px; height: 18px; }

.postkarte-druck { display: none; }
@page postkarte { size: A5 landscape; margin: 8mm; }
@media print {
  :root[data-druck="postkarte"] body > *:not(.postkarte-druck) { display: none !important; }
  :root[data-druck="postkarte"] .postkarte-druck { display: block; page: postkarte; }
  .postkarte-druck img { display: block; width: 100%; height: auto; }
}

.rundgang-einladung { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .98rem; }
.rundgang-einladung svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.rundgang-einladung button { border: 0; background: none; padding: 2px 0; font: inherit; font-style: italic; color: var(--tinte-2); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; text-align: left; }
.rundgang-einladung button:hover { color: var(--bordeaux); }
.rundgang-karte { position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(340px, calc(100vw - 32px));
  background: var(--papier-2); color: var(--tinte); border: 1px solid var(--gold); border-radius: 3px; padding: 12px 16px 14px;
  box-shadow: 0 2px 4px rgba(29, 27, 23, .08), 0 18px 40px -14px rgba(29, 27, 23, .45); animation: rg-ein .35s var(--ease) both; }
.rundgang-karte.fort { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes rg-ein { from { opacity: 0; transform: translateY(10px); } }
.rg-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -4px -8px 2px 0; }
.rg-kopf .kapit-klein { color: var(--gold-text); }
.rg-kopf .kapit-klein { flex: 1; min-width: 0; }
.rg-zu, .rg-klappe { width: 34px; height: 34px; flex: none; }
.rg-zu svg, .rg-klappe svg { width: 18px; height: 18px; }
.rg-kopf .rg-zu { margin-left: -6px; }
.rg-kurz { display: none; }
.rundgang-karte.klein { padding-bottom: 10px; }
.rundgang-karte.klein .rg-kurz { display: inline; }
.rundgang-karte.klein .rg-titel, .rundgang-karte.klein .rg-text, .rundgang-karte.klein .rg-punkte,
.rundgang-karte.klein [data-rg="zurueck"], .rundgang-karte.klein .rg-beenden { display: none; }
.rundgang-karte.klein .rg-kopf { margin-bottom: 6px; }
.rundgang-karte.klein .rg-kurz, .rundgang-karte.klein .rg-kopf .kapit-klein { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-titel { font-size: 1.35rem; margin: 0 0 .25em; }
.rg-text { margin: 0; font-size: .98rem; line-height: 1.45; color: var(--tinte-2); }
.rg-punkte { list-style: none; display: flex; gap: 6px; margin: 12px 0 10px; padding: 0; }
.rg-punkte li { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); }
.rg-punkte li.war { background: color-mix(in srgb, var(--gold) 45%, transparent); }
.rg-punkte li.an { background: var(--gold); transform: scale(1.25); }
.rg-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rg-knoepfe .knopf { padding: 6px 14px; font-size: .92rem; }
.rg-knoepfe .knopf[disabled] { opacity: .4; cursor: default; }
.rg-knoepfe .knopf[disabled]:hover { background: transparent; color: inherit; }
.rg-beenden { margin-left: auto; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--grau); cursor: pointer; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: .2em; padding: 6px 2px; }
.rg-beenden:hover { color: var(--bordeaux); }
:root[data-rundgang="an"] .fuss { padding-bottom: 240px; }
:root[data-abend="an"] .rundgang-karte { box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .85); }
@media (max-width: 640px) {
  .rundgang-karte { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; padding: 10px 14px 12px; }
  .rg-titel { font-size: 1.2rem; } .rg-text { font-size: .93rem; } .rg-punkte { margin: 8px 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .rundgang-karte { animation: none; } .rundgang-karte.fort { transition: none; } }
:root[data-ruhig="an"] .rundgang-karte { animation: none; }
@media print { .rundgang-karte { display: none !important; } }

.sonderraeume { margin-top: clamp(48px, 7vw, 90px); }
.sonderraeume > h2 { font-family: var(--f-titel); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-align: center; margin: 0 0 22px; }
.sonderraeume > h2 .kapit-klein { display: block; color: var(--gold-text); margin-bottom: 4px; }
.sonder-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sonder { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px 20px; border-radius: 14px; overflow: hidden; color: #efe5cf; text-decoration: none; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, rgba(212, 182, 115, .22), transparent 60%), linear-gradient(160deg, #1e3a31, #12241e 70%);
  border: 1px solid rgba(212, 182, 115, .45); box-shadow: inset 0 0 0 4px rgba(18, 36, 30, .9), inset 0 0 0 5px rgba(212, 182, 115, .35), var(--schatten);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.sonder-kino { background: radial-gradient(120% 90% at 50% 0%, rgba(212, 182, 115, .2), transparent 60%), linear-gradient(160deg, #4a1820, #1f0c10 72%); }
.sonder-fest { background: radial-gradient(90% 70% at 50% 30%, rgba(212, 182, 115, .3), transparent 65%), linear-gradient(160deg, #15131c, #07060b 75%); }
.sonder-segel { background: radial-gradient(120% 80% at 50% 110%, rgba(120, 170, 200, .28), transparent 60%), linear-gradient(170deg, #1b3446, #0b1720 75%); }
.sonder::after { content: ""; position: absolute; inset: -40% -60%; z-index: -1; background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 190, .16) 50%, transparent 58%); transform: translateX(-60%); transition: transform 1.1s var(--ease); }
.sonder:hover, .sonder:focus-visible { transform: translateY(-4px); color: #fff4dc; box-shadow: inset 0 0 0 4px rgba(18, 36, 30, .9), inset 0 0 0 5px rgba(212, 182, 115, .7), 0 18px 40px -16px rgba(0, 0, 0, .55); }
.sonder:hover::after, .sonder:focus-visible::after { transform: translateX(60%); }
.sonder-zeichen { font-size: 2rem; line-height: 1; color: var(--gold-hell); text-shadow: 0 0 18px rgba(212, 182, 115, .55); margin-bottom: 6px; }
.sonder h3 { font-family: var(--f-titel); font-weight: 500; font-size: 1.5rem; line-height: 1.1; margin: 0; color: #f6ead0; }
.sonder .ru-klein { color: rgba(239, 229, 207, .72); font-style: italic; }
.sonder p { margin: 6px 0 12px; font-size: 1rem; line-height: 1.45; color: rgba(239, 229, 207, .88); }
.sonder-los { margin-top: auto; font-family: var(--f-titel); font-style: italic; font-size: 1.05rem; color: var(--gold-hell); }
@media (max-width: 1000px) { .sonder-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sonder-reihe { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sonder, .sonder::after { transition: none; } .sonder:hover { transform: none; } }
:root[data-ruhig="an"] .sonder, :root[data-ruhig="an"] .sonder::after { transition: none; }
:root[data-ruhig="an"] .sonder:hover { transform: none; }
.sonder-feder { background: radial-gradient(110% 80% at 15% 10%, rgba(255, 196, 120, .26), transparent 60%), linear-gradient(160deg, #3a2a1a, #1a120a 75%); }
.sonder-reise { background: radial-gradient(120% 70% at 50% 0%, rgba(240, 190, 140, .22), transparent 60%), linear-gradient(175deg, #2c3a4a, #141c26 55%, #0c1218); }

.nm-sonder { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3.2vh, 30px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 var(--rand); z-index: 1; }
.nm-sonder-kopf { display: inline-flex; align-items: center; gap: 14px; border: 0; background: none; cursor: pointer; padding: 4px 6px; font: inherit; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(241, 230, 204, .78); }
.nm-sonder-kopf::before, .nm-sonder-kopf::after { content: ''; width: clamp(28px, 6vw, 64px); height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 182, 115, .75)); }
.nm-sonder-kopf::after { background: linear-gradient(270deg, transparent, rgba(212, 182, 115, .75)); }
.nm-sonder-kopf:hover, .nm-sonder-kopf:focus-visible { color: var(--gold-hell); }
.nm-sonder-reihe { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 1040px; }
.nm-sonder-reihe a { display: inline-flex; align-items: center; gap: .5em; padding: 6px 15px 6px 12px; border: 1px solid rgba(212, 182, 115, .34); border-radius: 999px; background: rgba(8, 20, 16, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: #efe5cf; text-decoration: none; font-family: var(--f-titel); font-style: italic; font-size: 1.06rem; line-height: 1.2; white-space: nowrap; transition: border-color .4s var(--ease), background .4s var(--ease), color .4s; }
.nm-sonder-reihe a:hover, .nm-sonder-reihe a:focus-visible { border-color: var(--gold-hell); background: rgba(212, 182, 115, .16); color: #fff4dc; }
.nm-sonder a:focus-visible, .nm-sonder-kopf:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
.nm-sz { font-style: normal; color: var(--gold-hell); font-size: 1.05em; text-shadow: 0 0 10px rgba(212, 182, 115, .45); }

@keyframes nm-sonder-auf { from { opacity: 0; transform: translateY(8px); } }
@keyframes nm-sonder-auf2 { from { opacity: 0; transform: translateY(8px); } }
@keyframes nm-sonder-glimmen { 40% { color: #fff3cf; text-shadow: 0 0 16px rgba(255, 226, 160, .95), 0 0 4px rgba(255, 240, 200, .9); } }
@keyframes nm-sonder-glimmen2 { 40% { color: #fff3cf; text-shadow: 0 0 16px rgba(255, 226, 160, .95), 0 0 4px rgba(255, 240, 200, .9); } }
.nm-sonder-kopf { animation: nm-sonder-auf 1.2s cubic-bezier(.22, .61, .36, 1) 1s both; }
.nm-sonder-reihe li { animation: nm-sonder-auf 1.1s cubic-bezier(.22, .61, .36, 1) calc(1.25s + var(--k) * .12s) both; }
.nm-sonder-reihe .nm-sz { display: inline-block; animation: nm-sonder-glimmen 1.8s ease calc(1.7s + var(--k) * .12s) 1; }
.nachtmeer.nach-buch .nm-sonder-kopf { animation-name: nm-sonder-auf2; animation-delay: 2s; }
.nachtmeer.nach-buch .nm-sonder-reihe li { animation-name: nm-sonder-auf2; animation-delay: calc(2.3s + var(--k) * .14s); }
.nachtmeer.nach-buch .nm-sonder-reihe .nm-sz { animation-name: nm-sonder-glimmen2; animation-delay: calc(2.8s + var(--k) * .14s); }

.nachtmeer:has(.nm-sonder) .nm-inhalt { margin-top: -15vh; }

@media (max-width: 760px), (max-height: 640px) {
  .nm-sonder-reihe { gap: 8px; flex-wrap: nowrap; }
  .nm-sonder-reihe a { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .nm-sonder-reihe .nm-sn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nm-sz { font-size: 1.25rem; }
}
@media (max-width: 520px) { .nachtmeer:has(.nm-sonder) .nm-inhalt { margin-top: -2vh; } .nm-sonder-reihe { gap: 6px; } .nm-sonder-reihe a { width: 42px; height: 42px; } }
@media (max-width: 360px) { .nm-sonder-reihe a { width: 40px; height: 40px; } .nm-sonder-reihe { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .nm-sonder-kopf, .nm-sonder-reihe li, .nm-sonder-reihe .nm-sz { animation: none !important; } }
:root[data-ruhig="an"] .nm-sonder-kopf, :root[data-ruhig="an"] .nm-sonder-reihe li, :root[data-ruhig="an"] .nm-sonder-reihe .nm-sz { animation: none !important; }
@media print { .nm-sonder { display: none; } }

.sonderraeume > h2::after { content: ''; display: block; width: 140px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform-origin: center; }
.sonderraeume.wartet > h2::after { transform: scaleX(0); }
.sonderraeume.erwacht > h2::after { transition: transform 1.6s var(--ease) .15s; }
.sonder.wartet { opacity: 0; transform: translateY(26px) scale(.985); }
.sonder.erwacht { transition: opacity 1.1s var(--ease) calc(var(--k, 0) * .14s), transform 1.1s var(--ease) calc(var(--k, 0) * .14s), box-shadow .5s var(--ease); }
.sonder.erwacht::after { background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, .3) 50%, transparent 60%); animation: sonder-goldstrich 1.7s cubic-bezier(.4, 0, .2, 1) calc(var(--k, 0) * .14s + .45s) 1 backwards; }
.sonder.erwacht .sonder-zeichen { animation: sonder-entzuenden 2s ease calc(var(--k, 0) * .14s + .3s) 1 both; }
@keyframes sonder-goldstrich { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
@keyframes sonder-entzuenden { from { opacity: .25; text-shadow: none; } 45% { opacity: 1; text-shadow: 0 0 28px rgba(255, 226, 160, .95), 0 0 6px rgba(255, 240, 200, .9); } to { opacity: 1; text-shadow: 0 0 18px rgba(212, 182, 115, .55); } }
@media (prefers-reduced-motion: reduce) { .sonder.wartet { opacity: 1; transform: none; } .sonderraeume.wartet > h2::after { transform: none; } .sonder.erwacht::after, .sonder.erwacht .sonder-zeichen { animation: none; } }
:root[data-ruhig="an"] .sonder.wartet { opacity: 1; transform: none; }
:root[data-ruhig="an"] .sonderraeume.wartet > h2::after { transform: none; }
@media print { .sonder.wartet { opacity: 1; transform: none; } .sonderraeume.wartet > h2::after { transform: none; } }
.sonderraeume { scroll-margin-top: calc(var(--kopf) + 20px); }
#sonder-titel:focus { outline: none; }
#sonder-titel:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

.sonder-reihe { display: flex; flex-wrap: wrap; justify-content: center; }
.sonder-reihe > .sonder { flex: 0 1 calc((100% - 36px) / 3); min-width: 0; }
@media (max-width: 820px) {
  .sonder-reihe > .sonder { flex-basis: calc((100% - 18px) / 2); }
  .sonder-reihe > .sonder:first-child:nth-last-child(odd) { flex-basis: 100%; }
}
@media (max-width: 560px) { .sonder-reihe > .sonder { flex-basis: 100%; } }

@media (min-width: 1101px) {
  .sonder-reihe > .sonder:first-child:nth-last-child(8), .sonder-reihe > .sonder:first-child:nth-last-child(8) ~ .sonder { flex-basis: calc((100% - 54px) / 4); padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 561px) and (max-width: 1100px) {
  .sonder-reihe > .sonder:first-child:nth-last-child(8), .sonder-reihe > .sonder:first-child:nth-last-child(8) ~ .sonder { flex-basis: calc((100% - 18px) / 2); }
}
.sonder-woertlich { background: radial-gradient(110% 80% at 85% 10%, rgba(212, 182, 115, .24), transparent 60%), linear-gradient(160deg, #2b2620, #15120e 75%); }

.werkzeugleiste .gruppe::after, .werkzeugleiste [data-label]::after { font-size: .82rem !important; letter-spacing: .01em; }
.werkzeugleiste .hoer-knopf .hk { font-size: .82rem; letter-spacing: .04em; }

.signatur { font-family: var(--f-text); font-variant: small-caps; font-variant-numeric: oldstyle-nums proportional-nums; font-size: .9rem; letter-spacing: .05em; line-height: 1.25; padding: 1px 8px 2px;
  color: var(--gold-text); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 9%, var(--papier)), color-mix(in srgb, var(--gold) 16%, var(--papier)));
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 3px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--papier) 70%, transparent), 0 1px 0 color-mix(in srgb, var(--tinte) 8%, transparent); }
.lesetisch-kopf .signatur-schild { font-size: .82rem; color: var(--grau); }
.lesetisch-kopf .signatur-schild .signatur { font-size: .95rem; text-transform: none; letter-spacing: .05em; border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.lk-karte-kopf .signatur { background: transparent; box-shadow: none; }

.anm-text .anm-verweis { font-size: .86em; font-variant: small-caps; letter-spacing: .04em; white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: .2em; }

:root.kino-an[data-rundgang="an"]:has(.kino:not(.im-film)) .rundgang-karte { visibility: visible; z-index: 90; }

.raeume .raum { overflow: hidden; isolation: isolate; border-radius: 6px; border-color: color-mix(in srgb, var(--gold) 45%, var(--linie));
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 62%), linear-gradient(170deg, var(--papier-2), color-mix(in srgb, var(--papier-2) 82%, var(--gold) 8%));
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--papier-2) 92%, transparent), inset 0 0 0 6px color-mix(in srgb, var(--gold) 42%, transparent), 0 1px 2px rgba(29, 27, 23, .06);
  padding-top: 24px; }
.raeume .raum::after { content: ''; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255, 238, 200, .45) 50%, transparent 58%); transform: translateX(-60%); transition: transform 1.1s var(--ease); }
.raeume .raum:hover, .raeume .raum:focus-visible { box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--papier-2) 92%, transparent), inset 0 0 0 6px color-mix(in srgb, var(--gold) 75%, transparent), var(--schatten); }
.raeume .raum:hover::after, .raeume .raum:focus-visible::after { transform: translateX(60%); }
.raeume .raum .nr { display: inline-grid; place-items: center; min-width: 2.35em; height: 2.35em; padding: 0 .35em; border-radius: 999px; font-family: var(--f-titel); font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; line-height: 1;
  color: #23170a; text-shadow: 0 1px 0 rgba(255, 246, 214, .7);
  background: radial-gradient(circle at 35% 30%, var(--messing-1), var(--messing-2) 62%, var(--messing-3));
  box-shadow: inset 0 1px 1px rgba(255, 248, 220, .7), inset 0 -1px 2px rgba(60, 40, 10, .35), 0 0 0 1px color-mix(in srgb, var(--messing-3) 70%, transparent), 0 2px 5px -1px rgba(40, 28, 10, .35); }
.raeume .raum h3 { margin-top: .45em; }
:root[data-abend="an"] .raeume .raum { background: radial-gradient(120% 80% at 50% 0%, rgba(212, 182, 115, .09), transparent 62%), linear-gradient(170deg, var(--papier-2), color-mix(in srgb, var(--papier-2) 88%, #000)); }
:root[data-abend="an"] .raeume .raum::after { background: linear-gradient(105deg, transparent 42%, rgba(255, 226, 170, .1) 50%, transparent 58%); }
.raeume .raum.brief { background: radial-gradient(120% 80% at 50% 0%, rgba(212, 182, 115, .2), transparent 62%), linear-gradient(165deg, #1e3a31, var(--gruen) 70%); border-color: rgba(212, 182, 115, .5);
  box-shadow: inset 0 0 0 5px rgba(18, 36, 30, .55), inset 0 0 0 6px rgba(212, 182, 115, .45), 0 1px 2px rgba(29, 27, 23, .06); }
.raeume .raum.brief::after { background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 190, .16) 50%, transparent 58%); }
.raeume .raum.brief:hover, .raeume .raum.brief:focus-visible { box-shadow: inset 0 0 0 5px rgba(18, 36, 30, .55), inset 0 0 0 6px rgba(212, 182, 115, .8), var(--schatten); }
.raeume .raum.brief .nr { color: #23170a; }
@media (prefers-reduced-motion: reduce) { .raeume .raum::after { transition: none; } }
:root[data-ruhig="an"] .raeume .raum::after { transition: none; }
@media print { .raeume .raum::after { display: none; } }

@media (max-width: 760px), (max-height: 640px) {
  .nm-sonder { padding: 0; }
  .nm-sonder-reihe { width: 100%; max-width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 3px 26px 5px; box-sizing: border-box;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 36px), transparent 100%); }
  .nm-sonder-reihe::-webkit-scrollbar { display: none; }
  .nm-sonder-reihe li { flex: none; scroll-snap-align: center; }
  .nm-sonder-reihe li:first-child { margin-left: auto; }
  .nm-sonder-reihe li:last-child { margin-right: auto; }
  .nm-sonder-reihe a { width: auto; height: 44px; padding: 0 14px 0 11px; gap: .45em; }
  .nm-sonder-reihe .nm-sn { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: .95rem; }
  .nm-sz { font-size: 1.1rem; }
}
@media (max-width: 520px) { .nm-sonder-reihe { gap: 6px; } .nm-sonder-reihe a { width: auto; height: 42px; padding: 0 12px 0 10px; } }
@media (max-width: 360px) { .nm-sonder-reihe a { width: auto; height: 42px; } .nm-sonder-reihe { gap: 6px; } }

:root[data-kopf-sprung="an"] .kopf, :root[data-kopf-sprung="an"] .kopf * { transition: none !important; }
:root[data-kopf-sprung="an"]::view-transition-old(kopf) { animation: none; opacity: 0; }
:root[data-kopf-sprung="an"]::view-transition-new(kopf) { animation: none; }
:root[data-kopf-sprung="an"]::view-transition-group(kopf) { animation: none; }

.heute-raum { max-width: 980px; overflow-x: clip; padding-top: clamp(24px, 4vw, 48px); }
.hb-kalender { position: relative; max-width: 900px; margin: 0 auto; }
.hb-block { position: relative; z-index: 3; text-align: center; padding: 22px 20px 30px; border-radius: 7px 7px 3px 3px; color: #efe2c2;
  background: radial-gradient(120% 140% at 50% -20%, rgba(212, 182, 115, .22), transparent 60%), linear-gradient(170deg, #284a3f, #1e3a31 55%, #152b24);
  box-shadow: inset 0 0 0 5px rgba(12, 26, 22, .5), inset 0 0 0 6px rgba(212, 182, 115, .5), 0 10px 26px -14px rgba(20, 30, 25, .6); }
.hb-block-zeile { color: rgba(233, 211, 154, .95); font-size: .82rem; }
.hb-h1 { margin: .12em 0 0; font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 500; color: #f4e7c4; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.hb-block-unter { font-family: var(--f-titel); font-style: italic; font-size: 1.12rem; color: rgba(233, 211, 154, .85); }
.hb-klammer { position: absolute; bottom: -7px; width: 44px; height: 9px; border-radius: 2px; z-index: 2;
  background: linear-gradient(180deg, #f1e6c9, #b9a27a 45%, #7d6a48 70%, #c9b58e); box-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.hb-klammer:first-of-type { left: 22%; }
.hb-klammer:nth-of-type(2) { right: 22%; }

.hb-block::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -8px; height: 9px; z-index: 1; background: #e9dfc7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='9'%3E%3Cpath d='M0 0H90V5L86 7L81 4L77 8L72 5L67 6L63 3L58 7L54 5L49 8L45 4L40 6L36 3L31 7L27 5L22 8L18 4L13 6L9 3L4 7L0 5Z'/%3E%3C/svg%3E") 0 0 / 90px 9px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='9'%3E%3Cpath d='M0 0H90V5L86 7L81 4L77 8L72 5L67 6L63 3L58 7L54 5L49 8L45 4L40 6L36 3L31 7L27 5L22 8L18 4L13 6L9 3L4 7L0 5Z'/%3E%3C/svg%3E") 0 0 / 90px 9px repeat-x; }
:root[data-abend="an"] .hb-block::after { background: #3a3327; }

.hb-stapel { position: relative; z-index: 2; margin-top: -4px; perspective: 1900px; perspective-origin: 50% 0; }
.hb-kalender:has(.hb-blatt.reisst) .hb-stapel, .hb-kalender:has(.hb-blatt.legt) .hb-stapel { z-index: 4; }

.hb-stapel::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: -9px; height: 9px; z-index: 0; border-radius: 0 0 3px 3px;
  background: repeating-linear-gradient(180deg, #f3ebd8 0 2px, #cdbf9f 2px 3px); box-shadow: 0 6px 12px -6px rgba(40, 28, 10, .35); }
:root[data-abend="an"] .hb-stapel::after { background: repeating-linear-gradient(180deg, #2b261e 0 2px, #4a4133 2px 3px); }

.hb-blatt { position: relative; z-index: 1; isolation: isolate; transform-origin: 50% 0; padding: 40px clamp(18px, 5.5vw, 64px) 26px; color: var(--tinte);
  filter: drop-shadow(0 1px 1px rgba(40, 28, 10, .14)) drop-shadow(0 12px 18px rgba(40, 28, 10, .16)); }
.hb-papier { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(130% 90% at 50% 30%, rgba(255, 252, 243, .9), rgba(255, 250, 238, 0) 70%),
    linear-gradient(180deg, #f6eedb, #efe4cb);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12'%3E%3Cpath d='M0 6L5 4L9 7L14 3L19 6L23 5L28 8L32 4L37 6L41 2L46 6L51 5L55 8L59 4L64 6L68 3L73 7L78 5L82 6L87 3L91 7L96 4L100 6L105 3L109 7L114 5L118 8L123 4L127 6L132 3L136 6L140 6V12H0Z'/%3E%3C/svg%3E") 0 0 / 140px 12px repeat-x, linear-gradient(#000, #000) 0 11px / 100% calc(100% - 11px) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12'%3E%3Cpath d='M0 6L5 4L9 7L14 3L19 6L23 5L28 8L32 4L37 6L41 2L46 6L51 5L55 8L59 4L64 6L68 3L73 7L78 5L82 6L87 3L91 7L96 4L100 6L105 3L109 7L114 5L118 8L123 4L127 6L132 3L136 6L140 6V12H0Z'/%3E%3C/svg%3E") 0 0 / 140px 12px repeat-x, linear-gradient(#000, #000) 0 11px / 100% calc(100% - 11px) no-repeat; }
:root[data-abend="an"] .hb-papier { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .7 0 0 0 0 .5 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(130% 90% at 50% 30%, rgba(255, 236, 200, .05), transparent 70%), linear-gradient(180deg, #29241c, #221e17); }
:root[data-abend="an"] .hb-blatt { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)) drop-shadow(0 12px 20px rgba(0, 0, 0, .45)); }

.hb-stempel { display: table; margin: -12px auto 14px; padding: 2px 12px; border: 1.5px solid var(--bordeaux); border-radius: 3px; color: var(--bordeaux);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-2.5deg); opacity: .85; }
.hb-datum { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(12px, 3.5vw, 40px); }
.hb-seite { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hb-links { text-align: right; }
.hb-rechts { text-align: left; }
.hb-wt { font-size: clamp(.82rem, 1.9vw, 1.08rem); letter-spacing: .18em; text-transform: uppercase; color: var(--tinte-2); font-weight: 500; overflow-wrap: anywhere; }
.hb-wt2 { font-family: var(--f-titel); font-style: italic; font-size: clamp(.98rem, 2vw, 1.18rem); color: var(--grau); }
.hb-zahl { font-family: var(--f-titel); font-size: clamp(6.2rem, 18vw, 10.5rem); line-height: .8; font-weight: 500; color: var(--tinte); font-variant-numeric: lining-nums; letter-spacing: -.02em; padding-top: .06em; }
.hb-blatt.rot .hb-zahl, .hb-blatt.rot .hb-links .hb-wt { color: var(--bordeaux); }
.hb-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .8em; margin: 16px 0 0; font-style: italic; color: var(--grau); font-size: .98rem; line-height: 1.35; text-align: center; }
.hb-alt2::before { content: '·'; font-style: normal; margin-right: .8em; color: var(--gold); }
.hb-doppellinie { height: 5px; margin: 18px 0 26px; border-top: 1.5px solid var(--tinte-2); border-bottom: .75px solid var(--tinte-2); opacity: .7; }

.hb-anlass { position: relative; max-width: 660px; margin: 6px auto 30px; padding: 22px 24px 18px; text-align: center; border: 1px solid color-mix(in srgb, var(--bordeaux) 55%, transparent);
  background: color-mix(in srgb, var(--bordeaux) 6%, transparent); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--papier) 40%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--bordeaux) 22%, transparent); }
.hb-anlass-marke { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 2px 14px; border-radius: 2px; background: var(--bordeaux); color: #f7efe0; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
:root[data-abend="an"] .hb-anlass-marke { color: #1b1813; }
.hb-anlass p { margin: 0; font-family: var(--f-titel); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.38rem); line-height: 1.42; color: var(--bordeaux); text-wrap: pretty; }

.hb-kopf { text-align: center; margin-bottom: 26px; }
.hb-titel { display: flex; flex-direction: column; gap: .16em; margin: .3em 0 0; font-size: inherit; line-height: 1.06; }
.hb-t-ru { font-size: clamp(2.2rem, 5.4vw, 3.3rem); font-weight: 500; }
.hb-t-de { font-size: clamp(1.3rem, 3vw, 1.8rem); font-style: italic; color: var(--tinte-2); }
.hb-meta { margin: 12px 0 0; color: var(--grau); font-size: .95rem; }

.hb-umschalter { display: none; }
.hb-verse { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); font-size: calc(var(--gedicht-groesse) * .94); }
.hb-verse::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(transparent, var(--linie) 6%, var(--linie) 94%, transparent); }
.hb-verse .gedicht { font-size: inherit; }
.hb-spalte { min-width: 0; }
.hb-spalte-kopf { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grau); }
.hb-verse.lang:not(.offen) { max-height: 38em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 6em), transparent); mask-image: linear-gradient(#000 calc(100% - 6em), transparent); }
.hb-ganz-wrap { text-align: center; margin: 6px 0 0; }

.hb-notiz { max-width: 680px; margin: 34px auto 0; padding: 20px 4px 16px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.hb-notiz figcaption { text-align: center; }
.hb-notiz blockquote { margin: 12px 0 10px; padding: 0 0 0 18px; border-left: 2px solid var(--gold); font-size: 1.06rem; line-height: 1.55; color: var(--tinte-2); text-wrap: pretty; }
.hb-notiz blockquote p { margin: 0; }
.hb-notiz-mehr { display: table; margin-left: auto; font-size: .95rem; color: var(--bordeaux); }
.hb-aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hb-aktionen .knopf { min-height: 44px; }
.hb-fuss { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 12px; border-top: 1px dotted var(--linie); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }
.hb-fuss .hb-sig { text-transform: none; letter-spacing: .05em; font-variant: small-caps; }

.hb-blaettern { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 40px auto 0; }
.hb-bl { display: flex; flex-direction: column; align-items: center; min-width: 9.6em; min-height: 44px; padding: 8px 18px 9px; border: 1px solid var(--linie); border-radius: 4px; cursor: pointer; line-height: 1.25;
  background: color-mix(in srgb, var(--papier-2) 70%, transparent); color: var(--tinte); transition: border-color .2s, background .2s, color .2s; }
.hb-bl:hover { border-color: var(--gold); }
.hb-bl-wort { font-family: var(--f-titel); font-size: 1.22rem; font-weight: 500; }
.hb-bl-datum { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.hb-bl[aria-current="date"] { border-color: var(--bordeaux); color: var(--bordeaux); box-shadow: inset 0 0 0 1px var(--bordeaux); cursor: default; }
.hb-hinweis { max-width: 560px; margin: 14px auto 0; text-align: center; font-style: italic; color: var(--grau); font-size: .95rem; }
.hb-widmung { max-width: 560px; margin: 22px auto 0; }

.hb-blatt.geht { position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none; }
.hb-blatt.reisst { z-index: 3; animation: hb-reissen 1s cubic-bezier(.5, .05, .6, .95) forwards; }
.hb-blatt.blende { z-index: 3; animation: hb-blende .38s ease forwards; }
.hb-blatt.legt { z-index: 3; animation: hb-legen .85s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hb-reissen {
  0% { transform: none; }
  18% { transform: rotateX(16deg) rotateZ(-.8deg); }
  34% { transform: translate3d(1%, -2%, 0) rotateX(30deg) rotateZ(-3deg); opacity: 1; }
  72% { opacity: 1; }
  100% { transform: translate3d(-6%, -48%, 60px) rotateX(96deg) rotateZ(-11deg); opacity: 0; }
}
@keyframes hb-legen {
  0% { transform: translate3d(-4%, -36%, 60px) rotateX(88deg) rotateZ(-7deg); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes hb-blende { to { opacity: 0; } }

@media (max-width: 760px) {
  .hb-umschalter { display: flex; width: fit-content; margin: 0 auto 20px; border: 1px solid var(--linie); border-radius: 99px; overflow: hidden; }
  .hb-umschalter button { border: 0; background: none; min-height: 40px; padding: 6px 14px; cursor: pointer; font-size: .95rem; color: var(--tinte-2); }
  .hb-umschalter button + button { border-left: 1px solid var(--linie); }
  .hb-umschalter button[aria-pressed="true"] { background: var(--tinte); color: var(--papier); }
  .hb-verse { grid-template-columns: 1fr; gap: 0; font-size: calc(var(--gedicht-groesse) * .9); }
  .hb-verse::before { display: none; }
  .hb-verse.ansicht-ru .hb-de, .hb-verse.ansicht-de .hb-ru { display: none; }
  .hb-verse.ansicht-beide .hb-de { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--linie); }
  .hb-verse.lang:not(.offen) { max-height: 30em; }
}
@media (max-width: 560px) {
  .hb-block { padding: 18px 14px 26px; }
  .hb-klammer:first-of-type { left: 14%; }
  .hb-klammer:nth-of-type(2) { right: 14%; }
  .hb-blatt { padding-top: 34px; }
  .hb-datum { gap: 10px; }
  .hb-wt { font-size: .82rem; letter-spacing: .04em; overflow-wrap: normal; }
  .hb-wt2 { font-size: .95rem; }
  .hb-alt { flex-direction: column; gap: 2px; font-size: .92rem; }
  .hb-alt2::before { display: none; }
  .hb-aktionen .knopf { flex: 1 1 100%; justify-content: center; }
  .hb-bl { min-width: 0; flex: 1 1 0; padding: 8px 6px; }
  .hb-bl-datum { letter-spacing: .04em; }
  .hb-fuss { font-size: .82rem; letter-spacing: .06em; }
  .hb-notiz blockquote { padding-left: 14px; font-size: 1rem; }
}
@media print {
  .hb-blaettern, .hb-hinweis, .hb-aktionen, .hb-umschalter, .hb-ganz-wrap, .hb-block::after { display: none !important; }
  .hb-blatt { filter: none; }
  .hb-verse.lang { max-height: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
}

.nm-selbst { margin: .7em 0 0; text-align: center; }
.nm-selbst button { border: 0; background: none; padding: 8px 6px; min-height: 44px; cursor: pointer; font: inherit; font-family: var(--f-titel); font-style: italic; font-size: 1.08rem; color: rgba(241, 230, 204, .86); text-decoration: underline; text-decoration-color: rgba(212, 182, 115, .5); text-underline-offset: 4px; }
.nm-selbst button:hover { color: var(--gold-hell); text-decoration-color: var(--gold-hell); }
.nm-selbst button:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; border-radius: 4px; }
.nm-selbst span { font-style: normal; margin-left: .2em; }
@media (max-height: 640px) and (min-width: 521px) { .nm-selbst { margin-top: .2em; } .nm-selbst button { padding: 4px 6px; min-height: 36px; font-size: 1rem; } }
.nm-sonder-reihe a { border-color: rgba(212, 182, 115, .22); background: rgba(8, 20, 16, .24); color: rgba(239, 229, 207, .86); }
.nm-sonder-kopf { color: rgba(241, 230, 204, .74); }
@media (min-width: 761px) and (min-height: 641px) { .nm-sonder-reihe a { font-size: 1rem; padding: 5px 13px 5px 11px; } }

.nachtmeer:has(.nm-sonder) { height: auto; min-height: max(520px, min(88vh, 860px)); grid-template-rows: minmax(calc(var(--kopf) + 6px), 1fr) auto minmax(118px, 2.4fr); }
.nachtmeer:has(.nm-sonder) > .nm-inhalt { grid-row: 2; margin-top: 0; }
@media (max-height: 640px) { .nachtmeer:has(.nm-sonder) { grid-template-rows: minmax(calc(var(--kopf) + 4px), 1fr) auto minmax(96px, 2.4fr); } }

@media (max-width: 520px) { .nachtmeer:has(.nm-sonder) { grid-template-rows: minmax(calc(var(--kopf) + 6px), 1fr) auto minmax(calc(1.75rem + 72px + 3.2vh), .9fr); } }
@media (min-width: 521px) { .nm-selbst { margin-top: .35em; } .nm-selbst button { min-height: 36px; padding: 4px 6px; font-size: 1.02rem; } }

.foyer-held .text .wege { margin-top: 28px; scroll-margin: calc(var(--kopf) + 12px) 0 12px; }
.wege > h3 { margin: 0 0 6px; color: var(--gold-text); font-weight: 500; }
.wege-liste { list-style: none; margin: 0; padding: 0; }
.weg { display: grid; grid-template-columns: 6.4em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linie); }
.weg:last-child { border-bottom: 1px solid var(--linie); }
.weg-zeit { font-family: var(--f-titel); font-style: italic; font-size: 1.2rem; line-height: 1.25; color: var(--bordeaux); padding-top: 1px; }
.weg-titel { display: block; font-family: var(--f-titel); font-weight: 600; font-size: 1.32rem; line-height: 1.2; color: var(--tinte); }
.weg-text { display: block; margin: 3px 0 10px; font-size: 1rem; line-height: 1.45; color: var(--tinte-2); }
.weg-tun { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.weg-tun .knopf svg { width: 16px; height: 16px; }

.weg.empfohlen { position: relative; border-top-color: transparent; margin: 0 -18px; padding: 16px 18px; border-radius: 8px; background: linear-gradient(100deg, rgba(169, 133, 63, .13), rgba(169, 133, 63, .04)); box-shadow: inset 0 0 0 1px rgba(169, 133, 63, .55); }
.weg.empfohlen + .weg { border-top-color: transparent; }
.weg-marke { display: inline-block; margin-left: .45em; padding: 2px 9px 1px; border: 1px solid var(--gold); border-radius: 99px; font-family: var(--f-text); font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); vertical-align: .28em; white-space: nowrap; }
:root[data-abend="an"] .weg.empfohlen { background: linear-gradient(100deg, rgba(208, 174, 105, .14), rgba(208, 174, 105, .04)); box-shadow: inset 0 0 0 1px rgba(208, 174, 105, .5); }
@media (max-width: 560px) {
  .weg { grid-template-columns: 1fr; gap: 2px; }
  .weg-zeit { font-size: 1.05rem; }
  .weg.empfohlen { margin: 0 -12px; padding: 14px 12px; }
}
@media print { .wege, .nm-selbst { display: none; } }

.seite.bib { padding-top: clamp(18px, 3.2vw, 38px); }
.bib .seiten-kopf { margin-bottom: clamp(14px, 2.2vw, 24px); }
.bib .tuerschild { margin-bottom: 10px; }
.bib-titel { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 18px; }
.bib-titel h1 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.bib .seiten-kopf p.einleitung { margin-top: 4px; }
.bib-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; max-width: 980px; margin: 0 auto 12px; }
.bib-leiste .suchleiste { flex: 1 1 340px; max-width: 560px; min-width: 0; margin: 0; }
.bib-leiste .suchleiste input { width: 0; }
.bib-leiste .ansicht-wahl { margin: 0; }
.filter-schalter { display: none; }
.bib .filter { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; margin: 0 auto 6px; }
.bib .filter-reihe { gap: 6px; }
.bib .mehr-filter { display: block; }
.bib .mehr-filter summary { padding: 6px 4px; }
.bib .mehr-filter[open] { flex-basis: 100%; display: grid; gap: 10px; }
.bib .ergebnis-zeile { margin-bottom: 14px; }
.bib .erg-filter { display: none; }
@media (max-width: 760px) {
  .bib .erg-filter { display: inline; color: var(--gruen); }
  :root[data-abend="an"] .bib .erg-filter { color: var(--gold-text); }
  .bib .tuerschild { margin-bottom: 6px; }
  .bib-titel { gap: 0 12px; }
  .bib-leiste { gap: 10px; margin-bottom: 8px; }
  .bib-leiste .suchleiste { flex-basis: 100%; max-width: none; }
  .filter-schalter { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 99px; background: transparent; font: inherit; font-size: .95rem; color: var(--tinte-2); cursor: pointer; }
  .filter-schalter::after { content: '▾'; margin-left: 4px; font-size: .8em; }
  .filter-schalter[aria-expanded="true"]::after { content: '▴'; }
  .filter-schalter.aktiv { border-color: var(--gruen); color: var(--gruen); font-weight: 500; }
  :root[data-abend="an"] .filter-schalter.aktiv { border-color: var(--gold); color: var(--gold-text); }
  .bib .filter.zu { display: none; }
  .bib .filter { display: grid; gap: 10px; margin: 4px 0 12px; padding: 12px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
  .bib .ergebnis-zeile { margin-bottom: 10px; }
}

@media (pointer: coarse) {
  .kopf .knopf-icon { width: 44px; height: 44px; }
  .sprachwahl button { min-width: 44px; min-height: 44px; }
  .chip, .knopf { min-height: 44px; }
  .nm-sonder-kopf, .nm-selbst button { min-height: 44px; }
  .nm-sonder-reihe a { min-height: 44px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .ouvertuere .buch-buehne { width: calc((100svh - 36px) / 1.4); min-width: 0; }
  .ouvertuere-steuer { left: auto; right: max(24px, env(safe-area-inset-right)); top: 50%; bottom: auto; transform: translateY(-50%); padding: 0; }
  .ouvertuere .ueberspringen { right: max(4px, env(safe-area-inset-right)); }
  .buch .seite-innen { padding: 8% 9%; }
  .widmung-zeilen { font-size: min(1.3rem, 5.4svh); }
  .widmung-motto { margin-top: 1.1em; font-size: min(.95rem, 4svh); }
  .widmung-von { font-size: min(1rem, 4.2svh); }
  .deckel-vorn .name { font-size: min(2.2rem, 9svh); }
  .deckel-vorn .kimm { margin: .8em auto; }
  .deckel-vorn .titel { font-size: min(1.4rem, 6svh); }
}
