/* Noridan – Gestaltung „Dunkle Chronik“
   Schriften: Cinzel, Cinzel Decorative, EB Garamond (SIL Open Font License, lokal eingebunden)
   Zierrahmen und Zierlinien: eigene SVG-Zeichnungen im Ordner gestaltung/ */

/* Eigene Schriften: auf die Zeichen der Seite gekürzt (Latein inkl. Umlaute, ß, Satzzeichen von Windows-1252).
   EB Garamond als feste Schnitte 400 und 600, Cinzel als variable Schrift (400–900). */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("fonts/cinzel-decorative-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("fonts/cinzel-decorative-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

/* Ersatzschriften für die Ladezeit: Times New Roman (bzw. Liberation Serif/Tinos) auf Breite und
   Zeilenhöhe der eigenen Schriften angepasst, damit der Text beim Wechsel nicht springt. */
@font-face { font-family: "EB Garamond Ersatz"; font-weight: 400; font-style: normal;
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos");
  size-adjust: 95.0%; ascent-override: 106.0%; descent-override: 31.4%; line-gap-override: 0%; }
@font-face { font-family: "EB Garamond Ersatz"; font-weight: 600 700; font-style: normal;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 95.0%; ascent-override: 106.0%; descent-override: 31.4%; line-gap-override: 0%; }
@font-face { font-family: "EB Garamond Ersatz"; font-weight: 400; font-style: italic;
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("Tinos Italic");
  size-adjust: 93.4%; ascent-override: 107.8%; descent-override: 31.9%; line-gap-override: 0%; }
/* Cinzel hat Kapitälchen statt Kleinbuchstaben: eigene Anpassung für gemischten Text und für Versalien (text-transform: uppercase) */
@font-face { font-family: "Cinzel Ersatz"; font-weight: 400 500;
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos");
  size-adjust: 135.5%; ascent-override: 72.0%; descent-override: 27.5%; line-gap-override: 0%; }
@font-face { font-family: "Cinzel Ersatz"; font-weight: 600 900;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 133.3%; ascent-override: 73.2%; descent-override: 27.9%; line-gap-override: 0%; }
@font-face { font-family: "Cinzel Ersatz Versal"; font-weight: 400 500;
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos");
  size-adjust: 102.2%; ascent-override: 95.5%; descent-override: 36.4%; line-gap-override: 0%; }
@font-face { font-family: "Cinzel Ersatz Versal"; font-weight: 600 900;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 102.9%; ascent-override: 94.8%; descent-override: 36.2%; line-gap-override: 0%; }
@font-face { font-family: "Cinzel Decorative Ersatz"; font-weight: 400 900;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 139.8%; ascent-override: 69.8%; descent-override: 26.6%; line-gap-override: 0%; }

/* Sprungmarken: Ziel nicht direkt an den Fensterrand bzw. unter die Inhaltsleiste (Handy) setzen */
html { scroll-padding-top: 14px; }

:root {
  --nacht: #0c0906;
  --leder: #171009;
  --leder-hell: #22180e;
  --gold: #c99a45;
  --gold-hell: #f0c66b;
  --gold-matt: #8f6d33;
  --bernstein: #ffb440;          /* Schriftfarbe der alten Seiten */
  --text: #ecc98c;               /* etwas weicher für lange Texte */
  --text-matt: #b89763;
  --link: #ffb400;
  --link-hover: #ffe0a0;
  --siegel: #8a2f12;
  --linie: rgba(201, 154, 69, .38);
  --schrift-zier: "Cinzel", "Cinzel Ersatz", Georgia, serif;
  --schrift-zier-versal: "Cinzel", "Cinzel Ersatz Versal", Georgia, serif;
  --schrift-titel: "Cinzel Decorative", "Cinzel", "Cinzel Decorative Ersatz", Georgia, serif;
  --schrift-text: "EB Garamond", "EB Garamond Ersatz", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { background: var(--nacht); scrollbar-color: var(--gold-matt) var(--nacht); }
body {
  margin: 0; color: var(--text); font-family: var(--schrift-text);
  font-size: 1.16rem; line-height: 1.62;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201,154,69,.13), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(138,47,18,.12), transparent 60%),
    var(--nacht);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration-color: rgba(255,180,0,.45); text-underline-offset: .15em; }
a:hover, a:focus-visible { color: var(--link-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 8px; background: var(--leder); color: var(--gold-hell); padding: .4em .8em; z-index: 50; }
.sprung:focus { left: 8px; }

/* ---------- Kopf ---------- */
.kopf { text-align: center; padding: 22px 16px 6px; }
.kopf a { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 18px; }
.kopf .drache { width: 72px; height: 72px; filter: drop-shadow(0 0 10px rgba(240,198,107,.25)); }
.kopf .titel { display: block; font-family: var(--schrift-titel); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--gold-hell); letter-spacing: .06em; text-shadow: 0 0 18px rgba(240,198,107,.25), 0 2px 0 #000; }
.kopf .motto { display: block; margin-top: .45em; font-family: var(--schrift-zier-versal); font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .32em; text-transform: uppercase; color: var(--text-matt); }
.kopf .worte { text-align: left; }
.zierlinie { display: block; height: 24px; margin: 14px auto 0; max-width: 420px; background: url("zier.svg") center / contain no-repeat; }

/* ---------- Gerüst ---------- */
.gerues { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; max-width: 1260px; margin: 0 auto; padding: 18px 24px 40px; align-items: start; }

/* Inhaltsverzeichnis */
.inhalt {
  position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto;
  padding: 22px 18px 18px; text-align: center;
  background: linear-gradient(180deg, var(--leder-hell), var(--leder));
  border: 1px solid var(--linie); box-shadow: inset 0 0 0 4px var(--leder), inset 0 0 0 5px rgba(201,154,69,.22), 0 10px 30px rgba(0,0,0,.6);
}
.inhalt h2 { margin: 1.1em 0 .35em; font-family: var(--schrift-zier-versal); font-weight: 700; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.inhalt h2:first-of-type { margin-top: .2em; }
.inhalt h2::before, .inhalt h2::after { content: "◆"; font-size: .5em; vertical-align: .35em; margin: 0 .7em; color: var(--gold-matt); }
.inhalt ul { list-style: none; margin: 0; padding: 0; }
.inhalt a { display: block; padding: .18em .2em; font-size: 1.12rem; text-decoration: none; color: var(--text); border-radius: 2px; }
.inhalt a:hover, .inhalt a:focus-visible { color: var(--link-hover); background: rgba(201,154,69,.08); }
.inhalt a[aria-current="page"], .inhalt a.hier { color: var(--gold-hell); }
.inhalt a[aria-current="page"]::before, .inhalt a.hier::before { content: "❦ "; color: var(--gold); }
.inhalt .heim { margin-top: 1.4em; padding-top: .9em; border-top: 1px solid var(--linie); font-size: .95rem; }
.inhalt .heim a { font-family: var(--schrift-zier); font-size: .85rem; letter-spacing: .12em; color: var(--text-matt); }
.inhalt-knopf { display: none; }

/* Pergament-Blatt (Inhaltsfläche) */
.blatt {
  position: relative; min-width: 0; padding: 46px 56px 40px;
  background:
    url("ecke-ol.svg") 8px 8px / 56px no-repeat,
    url("ecke-or.svg") calc(100% - 8px) 8px / 56px no-repeat,
    url("ecke-ul.svg") 8px calc(100% - 8px) / 56px no-repeat,
    url("ecke-ur.svg") calc(100% - 8px) calc(100% - 8px) / 56px no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(240,198,107,.06), transparent 60%),
    linear-gradient(180deg, var(--leder-hell), var(--leder) 40%, #120c07);
  border: 1px solid var(--linie);
  box-shadow: inset 0 0 0 6px var(--leder), inset 0 0 0 7px rgba(201,154,69,.2), 0 18px 50px rgba(0,0,0,.7);
}

/* Brotkrumen */
.pfad { margin: 0 0 1.4em; font-family: var(--schrift-zier-versal); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-matt); text-align: center; }
.pfad ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2em .6em; }
.pfad li + li::before { content: "›"; margin-right: .6em; color: var(--gold-matt); }
.pfad a { color: var(--text-matt); text-decoration: none; }
.pfad a:hover { color: var(--link-hover); }

/* Überschriften */
.blatt h1 { margin: 0; text-align: center; overflow-wrap: break-word; font-family: var(--schrift-titel); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: .03em; color: var(--gold-hell); text-shadow: 0 0 16px rgba(240,198,107,.18), 0 2px 0 #000; }
.blatt .untertitel { margin: .5em 0 0; text-align: center; font-family: var(--schrift-zier); font-size: 1rem; letter-spacing: .18em; color: var(--text-matt); }
.blatt > .zierlinie { margin: 16px auto 26px; }

/* ---------- Text der alten Seiten (Wortlaut unverändert) ---------- */
.text { overflow-wrap: break-word; }
.text p { margin: 0 0 1em; }
.text [align="justify"] { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.text u { text-decoration: none; font-family: var(--schrift-zier); font-weight: 700; letter-spacing: .04em; color: var(--gold-hell); }
.text b, .text strong { color: #ffd48a; font-weight: 600; }
.text i, .text em { color: var(--text); }
.text hr { border: 0; height: 24px; margin: 1.6em auto; max-width: 320px; background: url("zier.svg") center / contain no-repeat; }
.text center { display: block; }

/* Schmuckinitiale am ersten Absatz */
.text .initial::first-letter {
  float: left; font-family: var(--schrift-titel); font-weight: 700; font-size: 3.6em; line-height: .82;
  margin: .06em .1em 0 0; padding: .06em .08em 0; color: var(--gold-hell);
  text-shadow: 0 0 12px rgba(240,198,107,.3);
}

/* Bilder */
.text img.bild { border: 1px solid rgba(201,154,69,.55); padding: 4px; background: #0a0705; box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.text img[align="left"] { float: left; margin: .3em 1.2em .8em 0; }
.text img[align="right"] { float: right; margin: .3em 0 .8em 1.2em; }
.text figure { margin: 1em auto; text-align: center; }
.text .bildnachweis, .text .klein { font-size: .82rem; color: var(--text-matt); }
.text span.bildnachweis { display: block; text-align: center; margin-top: .4em; }
.text table[align="left"] { margin: .2em 1.6em 1em 0; }
.text table[align="right"] { margin: .2em 0 1em 1.6em; }
.text div[align="center"] + div[align="right"] { margin: .6em 0 1.4em; }

/* Tabellen: mit Rahmen = Datentabelle, ohne Rahmen = Anordnung */
.text table { border-collapse: collapse; margin: 1em auto; max-width: 100%; }
.text table.spalten, .text table.spalten > tbody { display: block; }
.text table.spalten > tbody > tr { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1em 1.8em; }
.text table.spalten > tbody > tr > td { padding: 0; }
.text table.spalten > tbody > tr > td:empty { display: none; }
.text .tafelgruppe { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: .6em 1.8em; margin: 1.6em 0 1em; }
.text .tafelgruppe section { flex: 0 1 auto; max-width: 100%; }
.text .tafelgruppe table { margin: 0 auto; }
.text .tafel-titel { margin: 0 0 .5em; text-align: center; font-family: var(--schrift-zier-versal); font-size: .95rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.text table[border] { border: 1px solid var(--linie); background: rgba(0,0,0,.25); }
.text table[border] td, .text table[border] th { border: 1px solid rgba(201,154,69,.25); padding: .35em .7em; vertical-align: top; }
.text table[border] tr:nth-child(even) td { background: rgba(201,154,69,.04); }
.text table:not([border]) td { padding: .2em .6em; vertical-align: top; }
.tabelle-rollen { overflow-x: auto; max-width: 100%; }
/* XP-Knöpfe im EP-Archiv: feste Größe, schrumpfen nicht mit der Spalte */
.text img.xp { width: 30px; height: 30px; max-width: none; vertical-align: middle; }

/* Große Karte in Originalgröße */
.grosskarte { overflow: auto; max-height: 80vh; border: 1px solid var(--linie); }
.grosskarte div { text-align: left !important; }
.text .grosskarte img.voll { max-width: none; width: auto; height: auto; border: 0; padding: 0; box-shadow: none; }

/* Zurück-Verweise */
.text .zurueck { margin: .4em 0 1em; text-align: right; font-family: var(--schrift-zier-versal); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.text .zurueck a { text-decoration: none; }
.text .zurueck a::before { content: "‹ "; }

/* Hinweiskasten (z. B. Muadibs Tagebuch) */
.kasten { margin: 2em auto; max-width: 640px; padding: 1.1em 1.4em; text-align: center; border: 1px solid var(--gold-matt); background: rgba(201,154,69,.07); box-shadow: inset 0 0 0 3px var(--leder), inset 0 0 0 4px rgba(201,154,69,.25); }

/* Kacheln auf der Startseite und in Übersichten */
.abschnitt-titel { margin: 1.8em 0 .4em; text-align: center; font-family: var(--schrift-zier-versal); font-weight: 700; font-size: 1.05rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.verweisliste { list-style: none; margin: .4em 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.4em; }
/* Seitenwahl (Schöpfung, 8 Seiten): ‹ Seite 3   1 2 3 [4] 5 6 7 8   Seite 5 › */
.seitenwahl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6em 1.2em; margin: 1.2em 0 1.6em; }
.seitenwahl ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35em; }
.seitenwahl ol a, .seitenwahl ol span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; height: 2.1em; border: 1px solid var(--linie); font-family: var(--schrift-zier); text-decoration: none; }
.seitenwahl ol a:hover, .seitenwahl ol a:focus-visible { border-color: var(--gold); background: rgba(201,154,69,.1); }
.seitenwahl ol span[aria-current] { border-color: var(--gold); background: rgba(201,154,69,.2); color: var(--gold); font-weight: 700; }
.seitenwahl-pfeil { min-width: 6em; white-space: nowrap; }
.seitenwahl-pfeil[rel="prev"], span.seitenwahl-pfeil:first-child { text-align: right; }
@media (max-width: 600px) {
  .seitenwahl { justify-content: space-between; }
  .seitenwahl ol { order: -1; width: 100%; gap: .3em; }
  .seitenwahl ol a, .seitenwahl ol span { min-width: 1.9em; height: 1.9em; }
  .seitenwahl-pfeil { min-width: 0; }
}
/* Startseite: Verweisgruppen Noridan / Kampagne / Spieler – wie die Gruppen auf der Religionsseite */
.text .verweisgruppen { margin: 1.2em 0 1.6em; }
.text .verweisgruppen h2.abschnitt-titel { margin: 1.6em 0 .3em; font-family: var(--schrift-zier-versal); font-size: 1.05rem; letter-spacing: .26em; }
.text .verweisgruppen .verweisliste { margin: .2em 0; }
/* Religion: Gruppen Menschenglaube / Fremdglaube – Überschrift dicht über ihren Verweisen, Abstand zwischen den Gruppen */
.text .religion-gruppen p.abschnitt-titel { margin: 1.6em 0 .3em; }
.text .religion-gruppen .verweisliste { margin: .2em 0; }

/* Galerie (Charaktere) */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; margin: 1.6em 0; }
.galerie figure { margin: 0; text-align: center; }
.galerie a { display: block; text-decoration: none; }
.galerie .rahmen { height: 250px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--linie); background: #0a0705; box-shadow: inset 0 0 0 3px var(--leder), inset 0 0 0 4px rgba(201,154,69,.2); transition: border-color .15s ease; }
.galerie a:hover .rahmen, .galerie a:focus-visible .rahmen { border-color: var(--gold); }
.galerie img { max-height: 232px; width: auto; }
.galerie figcaption { margin-top: .5em; font-family: var(--schrift-zier); font-size: .9rem; letter-spacing: .06em; color: var(--gold-hell); }

/* Fuß */
.fuss { max-width: 1260px; margin: 0 auto; padding: 8px 24px 34px; text-align: center; font-size: .95rem; color: var(--text-matt); }
.fuss .zierlinie { margin: 0 auto 12px; }
.fuss a { color: var(--text-matt); }
.fuss a:hover { color: var(--link-hover); }

/* ---------- Kampagne und Spielerbereich ---------- */
.text h2 { margin: 1.6em 0 .6em; text-align: center; font-family: var(--schrift-zier); font-weight: 700; font-size: 1.2rem; letter-spacing: .14em; color: var(--gold); }
.text h2 b { font-weight: 700; color: inherit; }
/* Knopf (früher Tabelle mit einer Zelle und einem Verweis) */
.knopf { margin: 1.6em 0; text-align: center; }
.knopf a { display: inline-block; padding: .55em 1.4em; font-family: var(--schrift-zier); font-size: .95rem; letter-spacing: .12em; text-decoration: none;
  border: 1px solid var(--gold-matt); background: rgba(201,154,69,.07); box-shadow: inset 0 0 0 3px var(--leder), inset 0 0 0 4px rgba(201,154,69,.25); }
.knopf a:hover, .knopf a:focus-visible { border-color: var(--gold-hell); }
.kasten.zelle { max-width: 760px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.kasten.zelle [align="center"] { text-align: center; }
/* Tabellen mit langen Texten (Halle der Stille, vergangene Abenteuer, EP-Archiv) */
.text table.textliste { width: 100%; }
.text img.daumen { max-width: none; }
.text table.textliste td { padding: .55em .8em; }
.text table.textliste tr.kopfzeile td { font-family: var(--schrift-zier); font-size: .85rem; letter-spacing: .1em; color: var(--gold); background: rgba(201,154,69,.08); }
/* Erfahrungspunkte */
.text table.ep { min-width: 0; }
.text table.ep td { text-align: right; white-space: nowrap; padding: .3em .7em; font-variant-numeric: tabular-nums; }
.text table.ep td.text { text-align: left; white-space: normal; min-width: 12em; }
.text table.ep tr.kopfzeile td { text-align: center; color: var(--gold); background: rgba(201,154,69,.08); }
/* Muadibs Tagebuch */
.sprungleiste { margin: 0 0 1.6em; padding: .7em .8em; text-align: center; line-height: 2; font-family: var(--schrift-zier); font-size: .85rem; letter-spacing: .08em;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.sprungleiste a { display: inline-block; margin: 0 .35em; text-decoration: none; }
.tagebuch .jahr { margin: 1.8em 0 .4em; font-family: var(--schrift-titel); font-size: 1.7rem; letter-spacing: .06em; color: var(--gold-hell); }
.eintrag { padding: .9em 0 1em; border-top: 1px solid var(--linie); }
.eintrag.neues-jahr { border-top: 3px double var(--gold-matt); }
.eintrag-daten { margin: 0 0 .35em; font-family: var(--schrift-zier); font-size: .85rem; letter-spacing: .08em; color: var(--gold); }
.eintrag-daten .spielzeit { color: var(--text-matt); }
.eintrag-daten .spielzeit::before { content: "· "; color: var(--gold-matt); }
.eintrag-daten .datum:empty, .eintrag-daten .spielzeit:empty { display: none; }
.eintrag-text { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.eintrag-verweis { margin-top: .4em; font-size: .92rem; color: var(--text-matt); }
#Seitenende { display: block; }

/* ---------- Schmale Fenster und Handy ---------- */
/* Schmale Fenster (Tablet, Handy): Anordnungstabellen untereinander statt nebeneinander,
   breite Datentabellen waagrecht verschiebbar */
@media (max-width: 1150px) {
  /* Anordnungstabellen untereinander statt nebeneinander */
  .text table:not([border]), .text table:not([border]) > tbody, .text table:not([border]) > tbody > tr, .text table:not([border]) > tbody > tr > td { display: block; width: auto !important; }
  .text table:not([border]) { margin: .6em 0; }
  .text table:not([border]) > tbody > tr > td { padding: .2em 0; }
  .text table:not([border]) > tbody > tr > td:empty { display: none; }
  .text table:not([border]) > tbody > tr.kopfzeile { display: none; }
  .text table[border] { display: block; overflow-x: auto; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }   /* Höhe der festen Inhaltsleiste + Abstand */
  .text table.textliste, .text table.textliste > tbody, .text table.textliste > tbody > tr, .text table.textliste > tbody > tr > td { display: block; width: auto !important; }
  .text table.textliste { border: 0; background: none; }
  .text table.textliste > tbody > tr { margin: 0 0 .9em; border: 1px solid var(--linie); background: rgba(0,0,0,.25); }
  .text table.textliste > tbody > tr > td { border: 0 !important; padding: .35em .8em; }
  .text table.textliste > tbody > tr > td:empty { display: none; }
  .text table.textliste tr.kopfzeile { display: none !important; }
  .eintrag-text { text-align: left; }
  .kasten.zelle { text-align: left; }
  .gerues { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 28px; gap: 14px; }
  .kopf { padding: 14px 12px 0; }
  .kopf .drache { width: 52px; height: 52px; }
  .kopf a { gap: 12px; }
  .kopf .motto { font-size: .72rem; letter-spacing: .16em; white-space: nowrap; }
  .inhalt { position: sticky; top: 0; z-index: 20; max-height: none; overflow: visible; padding: 8px 12px; text-align: left; }
  .inhalt-knopf {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    font: inherit; font-family: var(--schrift-zier-versal); font-weight: 700; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-hell); background: transparent; border: 0; padding: .45em .2em; cursor: pointer;
  }
  .inhalt-knopf::after { content: "▾"; font-size: 1.1em; transition: transform .15s ease; }
  .inhalt-offen .inhalt-knopf::after { transform: rotate(180deg); }
  .inhalt nav { display: none; max-height: calc(100vh - 70px); overflow-y: auto; padding: 4px 0 10px; text-align: center; }
  .inhalt-offen .inhalt nav { display: block; }
  .inhalt a { padding: .42em .2em; font-size: 1.2rem; }
  .blatt { padding: 30px 18px 26px; background-size: 36px, 36px, 36px, 36px, auto, auto; }
  .blatt { background-position: 4px 4px, calc(100% - 4px) 4px, 4px calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), 0 0, 0 0; }
  body { font-size: 1.1rem; }
  .text [align="justify"] { text-align: left; }
  .text img[align="left"], .text img[align="right"] { max-width: 45%; }
  .galerie { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .galerie .rahmen { height: 190px; }
  .galerie img { max-height: 172px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) { .inhalt nav { animation: aufklappen .15s ease-out; } }
@keyframes aufklappen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .inhalt, .pfad, .fuss .zierlinie, .zierlinie { display: none; }
  .gerues { display: block; padding: 0; }
  .blatt { background: none; border: 0; box-shadow: none; padding: 0; }
  .blatt h1, .text u, .text b { color: #000; text-shadow: none; }
  a { color: #000; }
}
