@charset "utf-8";

/* ==========================================================================
   Der Kult der Ewigen Erdnuss — Stilblatt für den Buch-/PDF-Export

   Dieses Blatt gilt nur für buch.html. Es wird von Paged.js eingelesen
   (das Blatt wird dabei aus dem Kopf genommen, verarbeitet und wieder
   eingesetzt), deshalb steht hier alles ohne @media print: was hier steht,
   gilt für die gesetzten Seiten, am Schirm wie im Druck.

   css/style.css wird bewusst NICHT eingebunden — es ist ein Stilblatt für
   den Bildschirm. Die nötigen Inhaltsstile stehen hier noch einmal, in
   Punkt und Millimeter statt in rem und vw.

   Aufbau:
     1. Schriften
     2. Farben und Grundwerte
     3. Seitenlayout (@page, Kolumnentitel, Seitenzahl)
     4. Grundtypografie
     5. Titelblatt, Kolophon, Inhalt
     6. Kapitel und Bausteine
     7. Bilder
     8. Bildschirmteil (wird hier versteckt, buch.html holt ihn zurück)
   ========================================================================== */

/* ==========================================================================
   1. Schriften — selbst ausgeliefert (OFL, siehe assets/fonts/LIZENZ.txt)
   ========================================================================== */
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: block; src: url("../assets/fonts/im-fell-english.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: block; src: url("../assets/fonts/im-fell-english-italic.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: block; src: url("../assets/fonts/im-fell-english-sc.woff2") format("woff2"); }
@font-face { font-family: "Pirata One"; font-style: normal; font-weight: 400; font-display: block; src: url("../assets/fonts/pirata-one.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pirata One"; font-style: normal; font-weight: 400; font-display: block; src: url("../assets/fonts/pirata-one-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   2. Farben und Grundwerte
   Dieselbe Palette wie die Seite, nur auf hellem Papier und ohne dunklen
   Modus: ein Buch hat keine Nachtschaltung.
   ========================================================================== */
:root {
  --papier:        #fbf6ea;
  --papier-tief:   #f3e6c8;
  --tinte:         #2a1f14;
  --tinte-blass:   #5c4a36;

  --roest:         #a5652c;
  --roest-dunkel:  #6b3f18;
  --roest-hell:    #c98a4b;

  --salz:          #fbfaf4;
  --meer:          #2f6b5e;
  --meer-hell:     #4c9184;
  --rost:          #8c3b24;

  /* Deckend notiert statt als rgba: tools/bilder-aufbereiten.py legt die
     Druckfassung von logo-erdnuss gegen genau diesen Wert flach, damit in
     der Karte kein heller Kasten steht. Ändert sich die Farbe, muss sie
     dort mitgezogen werden. (Entspricht rgba(246,236,213,.55) auf --papier.) */
  --flaeche:       #f8f1df;
  --linie:         rgba(107, 63, 24, .32);
  --linie-stark:   rgba(107, 63, 24, .6);
  --scheibe:       #f3e6c8;
  --schale-linie:  rgba(42, 31, 20, .38);

  --font-titel:   "Pirata One", "IM Fell English SC", serif;
  --font-kapitel: "IM Fell English SC", "Pirata One", Georgia, serif;
  --font-text:    "IM Fell English", Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   3. Seitenlayout
   ========================================================================== */
@page {
  size: A4;
  margin: 20mm 18mm 22mm;

  /* Kolumnentitel links: Seitenzahl und laufender Buchtitel */
  @top-left {
    content: counter(page) "  ·  Der Kult der Ewigen Erdnuss";
    font-family: "IM Fell English SC", Georgia, serif;
    font-size: 8pt;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6b5946;
    vertical-align: bottom;
    padding-bottom: 3mm;
    white-space: nowrap;
  }

  /* Kolumnentitel rechts: das Buch, in dem man gerade liest */
  @top-right {
    content: string(buchtitel);
    font-family: "IM Fell English SC", Georgia, serif;
    font-size: 8pt;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6b5946;
    text-align: right;
    vertical-align: bottom;
    padding-bottom: 3mm;
    white-space: nowrap;
  }

  /* Seitenzahl im Fuß, wie im Bordbuch */
  @bottom-center {
    content: "–  " counter(page) "  –";
    font-family: "IM Fell English", Georgia, serif;
    font-size: 9.5pt;
    color: #6b5946;
    vertical-align: top;
    padding-top: 6mm;
  }
}

/* Das Titelblatt bekommt die ganze Seite und keinen Kolumnentitel */
@page :first {
  margin: 0;
  @top-left { content: none; }
  @top-right { content: none; }
  @bottom-center { content: none; }
}

/* Die Rückseite des Titelblatts trägt ebenfalls nichts im Kopf */
@page kolophon {
  @top-left { content: none; }
  @top-right { content: none; }
  @bottom-center { content: none; }
}
.buch-kolophon { page: kolophon; }

/* Das Papier. Ohne Verlauf, damit der Druck nicht grau wird. */
.pagedjs_page { background: var(--papier); }

/* ==========================================================================
   4. Grundtypografie
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { background: var(--papier); }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 11pt;
  line-height: 1.45;
  color: var(--tinte);
  background: var(--papier);
  text-rendering: optimizeLegibility;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-kapitel);
  font-weight: 400;
  line-height: 1.15;
  color: var(--roest-dunkel);
  letter-spacing: .01em;
  margin: 0 0 .5em;
  break-after: avoid;
  break-inside: avoid;
  hyphens: none;
}
h2 { font-size: 21pt; margin-bottom: .4em; }
h3 { font-size: 14pt; margin-top: 1.6em; }
h4 { font-size: 12pt; margin-top: 1.2em; }

p { margin: 0 0 .75em; orphans: 2; widows: 2; }
em { font-style: italic; }
strong { font-weight: 700; color: var(--roest-dunkel); }

/* Verweise bleiben lesbar, aber ohne Netzfarbe und ohne Unterstrich */
a { color: inherit; text-decoration: none; }

ul, ol { padding-left: 1.3em; margin: 0 0 .9em; }
li { margin-bottom: .35em; }

dl { margin: 0 0 .9em; }

.ober {
  font-family: var(--font-kapitel);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 7.5pt;
  color: var(--tinte-blass);
  margin-bottom: .5em;
}
.vorspann { font-size: 11.5pt; color: var(--tinte-blass); }
.klein { font-size: 9pt; color: var(--tinte-blass); }

/* Initiale am Anfang jedes Buches, wie im Druck der Zeit.
   Die Klasse setzt js/buch.js: Paged.js wirft Regeln mit „+“ um und
   verliert dabei ::first-letter, ein Geschwisterwähler geht hier also nicht. */
.vorspann.initiale::first-letter {
  float: left;
  font-family: var(--font-titel);
  font-size: 3.2em;
  line-height: .82;
  padding: .06em .12em 0 0;
  color: var(--roest-dunkel);
}

.ikone { width: 1.15em; height: 1.15em; vertical-align: -.22em; color: var(--roest); }
.ikone.gross { width: 9mm; height: 9mm; vertical-align: middle; }

/* ==========================================================================
   5. Titelblatt, Kolophon, Inhalt
   ========================================================================== */

/* --- Titelblatt --------------------------------------------------------- */
.buch-titelblatt {
  height: 297mm;
  padding: 16mm 20mm 14mm;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--papier);
}
.titel-frontispiz { margin: 0 0 8mm; }
.titel-frontispiz img {
  display: block;
  width: 148mm;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.buch-titelblatt h1 {
  font-family: var(--font-titel);
  font-weight: 400;
  font-size: 34pt;
  line-height: 1.05;
  color: var(--roest-dunkel);
  margin: 0 0 4mm;
}
.buch-titelblatt h1 .gross-akzent { color: var(--roest); }
.titel-unterzeile {
  font-family: var(--font-kapitel);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 10pt;
  color: var(--tinte-blass);
  margin: 0 0 8mm;
}
.titel-gruender {
  font-size: 11.5pt;
  line-height: 1.5;
  color: var(--tinte-blass);
  margin: 0 0 10mm;
}
.titel-knack {
  font-family: var(--font-titel);
  font-size: 20pt;
  color: var(--roest-dunkel);
  margin: 0;
}
.titel-knack .ikone { width: 8mm; height: 8mm; vertical-align: -1.8mm; }
.titel-knack strong { color: var(--roest-dunkel); font-weight: 400; }

/* --- Kolophon ----------------------------------------------------------- */
.buch-kolophon {
  break-before: page;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 235mm;
}
.buch-kolophon p {
  font-size: 9.5pt;
  line-height: 1.5;
  color: var(--tinte-blass);
  max-width: 105mm;
  margin: 0 0 4mm;
}
.buch-kolophon .kolophon-zier {
  display: block;
  width: 34mm;
  height: auto;
  margin: 0 0 8mm;
}

/* --- Inhaltsblatt ------------------------------------------------------- */
.buch-inhalt { break-before: page; }
.inhalt-kopf { text-align: center; margin-bottom: 5mm; }
.inhalt-kopf h2 { font-size: 22pt; margin: 0 0 2mm; }
.inhalt-fleuron {
  display: block;
  width: 48mm;
  height: auto;
  margin: 0 auto;
}
.buch-inhalt .teil {
  font-family: var(--font-kapitel);
  font-size: 12pt;
  color: var(--roest-dunkel);
  letter-spacing: .06em;
  margin: 5mm 0 2.5mm;
  padding-bottom: 1mm;
  border-bottom: .5pt solid var(--linie);
  break-after: avoid;
}
.buch-inhalt .teil span {
  font-family: var(--font-text);
  font-style: italic;
  letter-spacing: 0;
  color: var(--tinte-blass);
}
.buch-inhalt ol { list-style: none; padding: 0; margin: 0; }
.buch-inhalt li { margin: 0 0 2mm; break-inside: avoid; }
.buch-inhalt li a {
  display: flex;
  align-items: baseline;
  font-family: var(--font-kapitel);
  font-size: 12pt;
  color: var(--roest-dunkel);
}
.buch-inhalt .nr {
  flex: none;
  width: 11mm;
  font-size: 10pt;
  color: var(--roest);
  letter-spacing: .08em;
}
.buch-inhalt .titel { flex: none; max-width: 105mm; }
.buch-inhalt .punkte {
  flex: 1 1 auto;
  margin: 0 2mm;
  border-bottom: .5pt dotted var(--linie-stark);
  transform: translateY(-1mm);
}
/* Die Seitenzahl holt Paged.js aus der Seite, auf der das Buch beginnt */
.buch-inhalt li a::after {
  content: target-counter(attr(href url), page);
  flex: none;
  font-family: var(--font-text);
  font-size: 11pt;
  color: var(--tinte);
}
.buch-inhalt .kurz {
  margin: .2mm 0 0 11mm;
  font-size: 9pt;
  font-style: italic;
  color: var(--tinte-blass);
}

/* ==========================================================================
   6. Kapitel und Bausteine
   ========================================================================== */
.buch-kapitel { break-before: page; }
.buch-kapitel > .wrap { max-width: none; padding: 0; }

/* Der laufende Titel oben rechts kommt aus der Kapitelüberschrift */
.buch-inhalt h2,
.buch-kapitel h2 { string-set: buchtitel content(text); }

/* Kapitelkopf mit Vignette */
.buchkopf {
  display: flex;
  align-items: center;
  gap: 6mm;
  margin-bottom: 5mm;
  break-after: avoid;
  break-inside: avoid;
}
.buchkopf-text { min-width: 0; }
.buchkopf-text > .ober { margin-bottom: .3em; }
.buchkopf-text > h2 { margin-bottom: 0; }
.buchvignette {
  flex: none;
  width: 24mm;
  height: 24mm;
  background: var(--scheibe);
  border-radius: 50%;
}

/* Fleuron am Ende jedes Buches */
.kapitel-fleuron {
  display: block;
  width: 48mm;
  height: auto;
  margin: 8mm auto 0;
  break-before: avoid;
}

/* Die Zierstücke sind Kupferstiche auf hellem Grund. „multiply“ rechnet den
   Grund gegen das Papier, die Maske blendet die Ränder aus — sonst steht ein
   heller Kasten auf dem Papier. */
.kapitel-fleuron, .inhalt-fleuron, .kolophon-zier {
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}

/* --- Kästen, Karten, Listen -------------------------------------------- */
.karten, .zwei-spalten, .riten-liste, .haeresien, .ehrenblock { display: block; }

.karte, .ehren-karte, .ritus, .haeresie, .spalte {
  background: var(--flaeche);
  border: .5pt solid var(--linie);
  border-radius: 1mm;
  padding: 3mm 4mm;
  margin: 0 0 3mm;
  break-inside: avoid;
}
.karte { border-left: 1.2pt solid var(--roest-hell); }
.ehren-karte { border-left: 1.2pt solid var(--meer); }
.ritus { border-top: 1.2pt solid var(--roest); }
.karte h3, .karte h4, .ehren-karte h4, .ritus h3, .haeresie h3, .spalte h3 {
  margin-top: 0;
  font-size: 12.5pt;
}
.karte p:last-child, .ehren-karte p:last-child, .ritus p:last-child,
.haeresie p:last-child, .spalte p:last-child { margin-bottom: 0; }

.ritus-art, .ehren-amt, .stufe-nr, .anlass {
  display: block;
  font-family: var(--font-text);
  font-style: italic;
  font-size: 9pt;
  color: var(--tinte-blass);
  letter-spacing: 0;
}
.ehren-zitat {
  font-style: italic;
  color: var(--roest-dunkel);
  border-top: .5pt dotted var(--linie-stark);
  padding-top: .6em;
  margin-bottom: 0;
}

.hinweis-kasten {
  background: rgba(47, 107, 94, .08);
  border: .5pt dashed var(--meer);
  border-radius: 1mm;
  padding: 3mm 4mm;
  margin: 4mm 0;
  font-size: 10pt;
  break-inside: avoid;
}
.mysterium {
  background: rgba(230, 211, 172, .4);
  border: .5pt solid var(--linie-stark);
  border-radius: 1mm;
  padding: 4mm 5mm;
  margin: 4mm 0;
  break-inside: avoid;
}
.mysterium p:last-child { margin-bottom: 0; }
.merksatz {
  font-family: var(--font-kapitel);
  font-size: 14pt;
  text-align: center;
  color: var(--roest-dunkel);
  line-height: 1.3;
  margin: .8em 0;
}
.betont {
  font-family: var(--font-kapitel);
  font-size: 12pt;
  color: var(--roest-dunkel);
  border-top: .5pt solid var(--linie);
  border-bottom: .5pt solid var(--linie);
  padding: .5em 0;
}

blockquote.pete {
  margin: 5mm 0;
  padding: 3mm 4mm;
  background: rgba(165, 101, 44, .1);
  border-left: 1.5pt solid var(--roest);
  border-radius: 1mm;
  font-style: italic;
  font-size: 11pt;
  break-inside: avoid;
}
blockquote.pete p { margin-bottom: .3em; }
blockquote.pete footer {
  font-style: normal;
  font-family: var(--font-kapitel);
  font-size: 9pt;
  color: var(--tinte-blass);
}

/* Offenbarungsszene */
.szene {
  background: rgba(230, 211, 172, .45);
  border: .5pt solid var(--linie-stark);
  border-radius: 1mm;
  padding: 4mm 5mm;
  margin: 4mm 0;
}
.szene p:last-child { margin-bottom: 0; }
.regie, .regie-inline { font-style: italic; color: var(--tinte-blass); }
.regie { font-size: 10pt; }
.schluss-formel {
  font-family: var(--font-titel);
  font-size: 17pt;
  color: var(--roest);
  text-align: center;
  line-height: 1.25;
  margin: 5mm 0 7mm;
}

.chronik { padding-left: 1.2em; }
.chronik > li { margin-bottom: 4mm; break-inside: avoid; }
.chronik h4 { margin: 0 0 .3em; }

.gegenueber { list-style: none; padding-left: 0; }
.gegenueber li {
  border-left: 1.2pt solid var(--linie-stark);
  padding-left: 3mm;
  margin-bottom: 2.5mm;
}

/* Gebete */
.gebet-tafel {
  text-align: center;
  background: rgba(243, 230, 200, .65);
  border: 1.5pt double var(--roest-dunkel);
  border-radius: 1mm;
  padding: 6mm 5mm;
  margin: 5mm 0;
  break-inside: avoid;
}
.gebet-tafel .zier { margin-bottom: 2mm; }
.gebet {
  font-family: var(--font-kapitel);
  font-size: 13pt;
  line-height: 1.65;
  color: var(--roest-dunkel);
  margin: 0;
  hyphens: none;
}
.gebet strong { color: var(--roest); }
.klein-gebet {
  font-size: 11.5pt;
  text-align: left;
  border-left: 1.2pt solid var(--roest-hell);
  padding-left: 3.5mm;
  margin: 4mm 0;
  break-inside: avoid;
}

/* Anleitungen mit Ziffernperle */
.anleitung { counter-reset: schritt; list-style: none; padding-left: 0; }
.anleitung > li {
  counter-increment: schritt;
  position: relative;
  padding-left: 9mm;
  margin-bottom: 3mm;
  break-inside: avoid;
}
.anleitung > li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: .1em;
  width: 6mm;
  height: 6mm;
  display: grid;
  place-items: center;
  font-family: var(--font-kapitel);
  font-size: 9pt;
  color: var(--salz);
  background: var(--roest);
  border-radius: 50%;
}
.gross-anleitung > li { margin-bottom: 5mm; }
.gross-anleitung h3 { margin: 0 0 .3em; font-size: 12.5pt; }

/* Gebote */
.gebote-liste { counter-reset: kern; list-style: none; padding-left: 0; }
.gebote-liste > li {
  counter-increment: kern;
  position: relative;
  padding: 3mm 4mm 3mm 12mm;
  margin-bottom: 3mm;
  background: var(--flaeche);
  border: .5pt solid var(--linie);
  border-radius: 1mm;
  break-inside: avoid;
}
.gebote-liste > li::before {
  content: counter(kern);
  position: absolute;
  left: 3.5mm;
  top: 3mm;
  width: 6.5mm;
  height: 6.5mm;
  display: grid;
  place-items: center;
  font-family: var(--font-titel);
  font-size: 11pt;
  color: var(--salz);
  background: var(--roest);
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
}
.gebote-liste h3 { margin: 0 0 .3em; font-size: 12.5pt; }
.gebote-liste p:last-child { margin-bottom: 0; }


/* Stufen */
.stufen-liste { list-style: none; padding-left: 0; }
.stufen-liste > li {
  margin: 0 0 3mm;
  padding: 3mm 4mm;
  background: var(--flaeche);
  border: .5pt solid var(--linie);
  border-left: 2pt solid var(--roest-hell);
  border-radius: 1mm;
  break-inside: avoid;
}
.stufen-liste > li:nth-child(1) { border-left-color: var(--meer-hell); }
.stufen-liste > li:nth-child(3) { border-left-color: var(--roest); }
.stufen-liste > li:nth-child(4) { border-left-color: var(--roest-dunkel); }
.stufen-liste > li:nth-child(5) { border-left-color: var(--tinte); }
.stufen-liste > li:nth-child(6) { border-left-color: var(--meer); border-left-style: dashed; }
.stufen-liste h3 { margin-top: 0; font-size: 12.5pt; }

.aemter { list-style: none; padding-left: 0; }
.aemter li { padding-left: 4mm; position: relative; }
.aemter li::before {
  content: "·";
  position: absolute;
  left: .8mm;
  color: var(--roest);
  font-size: 1.6em;
  line-height: .6;
}

/* Zeichen, Farben, Gesten */
.farben-liste { list-style: none; padding-left: 0; }
.farben-liste li { display: flex; gap: 3mm; align-items: flex-start; }
.farbklecks {
  flex: none;
  width: 4mm;
  height: 4mm;
  margin-top: .3em;
  border: .5pt solid var(--linie-stark);
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
}
.kl-roest { background: var(--roest); }
.kl-salz  { background: var(--salz); }
.kl-meer  { background: var(--meer); }
.kl-tinte { background: var(--tinte); }

.gesten dt {
  font-family: var(--font-kapitel);
  font-size: 12pt;
  color: var(--roest-dunkel);
  margin-top: 1em;
  break-after: avoid;
}
.gesten dd { margin: .2em 0 0; padding-left: 3mm; border-left: 1pt solid var(--linie); break-inside: avoid; }

.losung-spiel {
  font-family: var(--font-kapitel);
  font-size: 12pt;
  background: rgba(47, 107, 94, .08);
  border: .5pt dashed var(--meer);
  border-radius: 1mm;
  padding: 3mm 4mm;
  break-inside: avoid;
}
.losung-spiel span { color: var(--tinte-blass); font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; }

/* Lieder */
.lied {
  background: var(--flaeche);
  border: .5pt solid var(--linie);
  border-radius: 1mm;
  padding: 3mm 4mm;
  margin: 4mm 0;
}
.lied-hinweis { font-style: italic; color: var(--tinte-blass); font-size: 10pt; margin-bottom: .5em; }
.strophe, .refrain { break-inside: avoid; hyphens: none; }
.refrain {
  font-family: var(--font-kapitel);
  color: var(--roest-dunkel);
  padding-left: 3.5mm;
  border-left: 1.2pt solid var(--roest);
}
.lied p:last-child { margin-bottom: 0; }
.wechsel p { break-inside: avoid; }
.wechsel .rolle {
  font-family: var(--font-kapitel);
  font-size: 9pt;
  letter-spacing: .06em;
  color: var(--tinte-blass);
  display: inline-block;
  min-width: 7.5em;
}

.segen-liste { list-style: none; padding-left: 0; }
.segen-liste li {
  font-family: var(--font-kapitel);
  font-size: 11.5pt;
  color: var(--roest-dunkel);
  padding: .4em 0;
  border-bottom: .5pt dotted var(--linie);
  break-inside: avoid;
}

.fluch {
  font-family: var(--font-kapitel);
  font-size: 11.5pt;
  color: var(--rost);
  background: rgba(140, 59, 36, .08);
  border: .5pt solid rgba(140, 59, 36, .4);
  border-radius: 1mm;
  padding: 3mm 4mm;
  break-inside: avoid;
}

/* Die Sprüche des Orakels (im Buch steht statt des Knopfes die ganze Liste) */
.orakel-sprueche {
  background: rgba(243, 230, 200, .55);
  border: 1.5pt double var(--roest-dunkel);
  border-radius: 1mm;
  padding: 4mm 5mm;
  margin: 5mm 0;
}
.orakel-sprueche h3 { margin-top: 0; text-align: center; }
.orakel-sprueche .orakel-vorrede {
  font-style: italic;
  font-size: 10pt;
  color: var(--tinte-blass);
  text-align: center;
  margin-bottom: 4mm;
}
.sprueche-liste {
  list-style: decimal;
  padding-left: 7mm;
  margin: 0;
}
.sprueche-liste li {
  font-size: 10.5pt;
  line-height: 1.4;
  color: var(--tinte);
  margin-bottom: 1.6mm;
  padding-left: 1mm;
  break-inside: avoid;
}
.sprueche-liste li::marker { font-family: var(--font-kapitel); color: var(--roest); }

/* Haken- und Kreuzlisten */
.haken-liste, .kreuz-liste { list-style: none; padding-left: 0; }
.haken-liste li, .kreuz-liste li { padding-left: 5mm; position: relative; }
.haken-liste li::before { content: "✔"; position: absolute; left: 0; color: var(--meer); font-weight: 700; }
.kreuz-liste li::before { content: "✘"; position: absolute; left: 0; color: var(--rost); font-weight: 700; }

/* Fragen und Antworten: im Buch steht alles offen. Aus jeder Klappe der
   Seite macht js/buch.js einen schlichten Block mit Frage und Antwort. */
.faq .frage {
  background: var(--flaeche);
  border: .5pt solid var(--linie);
  border-radius: 1mm;
  padding: 2.5mm 4mm;
  margin-bottom: 2.5mm;
  break-inside: avoid;
}
.faq .frage-titel {
  font-family: var(--font-kapitel);
  font-size: 12pt;
  color: var(--roest-dunkel);
  margin: 0 0 1.5mm;
  break-after: avoid;
}
.faq .frage p { margin: 0 0 1.5mm; }
.faq .frage p:last-child { margin-bottom: 0; }

/* OT-Hinweis */
.ot-kasten {
  background: rgba(47, 107, 94, .06);
  border: .5pt solid var(--meer);
  border-radius: 1mm;
  padding: 4mm 5mm;
}
.warnung {
  background: rgba(140, 59, 36, .08);
  border: 1pt solid var(--rost);
  border-radius: 1mm;
  padding: 3mm 4mm;
  margin: 4mm 0;
}
.warnung h3 { margin-top: 0; color: var(--rost); }
.warnung li { margin-bottom: .5em; }

/* Tabellen */
.tabelle-huelle { margin: 5mm 0; border: 0; overflow: visible; }
.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
  line-height: 1.35;
  hyphens: auto;
}
.tabelle caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-kapitel);
  font-size: 9.5pt;
  color: var(--tinte-blass);
  padding-bottom: 2mm;
  break-after: avoid;
}
.tabelle th, .tabelle td {
  padding: 1.3mm 2mm;
  border-bottom: .4pt solid var(--linie);
  text-align: left;
  vertical-align: top;
}
.tabelle thead th {
  font-family: var(--font-kapitel);
  font-size: 9pt;
  letter-spacing: .06em;
  color: var(--salz);
  background: var(--roest-dunkel);
}
.tabelle tbody th { font-weight: 700; color: var(--roest-dunkel); hyphens: none; }
/* Die erste Spalte trägt die Namen und soll nicht zur Silbensäule werden */
.tabelle th:first-child, .tabelle td:first-child { width: 24%; }
.tabelle tbody tr > *:nth-child(2) { hyphens: none; }
.tabelle tbody tr { break-inside: avoid; }
.tabelle tbody tr:nth-child(even) { background: rgba(165, 101, 44, .06); }
.tabelle td.ja   { color: var(--meer); font-weight: 700; white-space: nowrap; }
.tabelle td.nein { color: var(--rost); font-weight: 700; white-space: nowrap; }
/* Wiederholter Tabellenkopf auf Folgeseiten (setzt js/buch.js) */
.tabelle thead.kopf-wiederholt th { font-style: italic; }

/* ==========================================================================
   7. Bilder
   Keine Floats: Paged.js rechnet umlaufenden Text über Seitengrenzen
   hinweg nicht zuverlässig. Alle Figuren stehen deshalb mittig.
   ========================================================================== */
img { max-width: 100%; height: auto; }

figure { margin: 5mm 0; break-inside: avoid; text-align: center; }
figure img { display: block; margin: 0 auto; }

.figur img {
  width: auto;
  max-width: 100%;
  max-height: 105mm;
  border-radius: .5mm;
}
.figur.schmal img, .figur.rechts.schmal img { max-height: 85mm; }
.figur figcaption {
  margin-top: 1.5mm;
  font-size: 8.5pt;
  font-style: italic;
  line-height: 1.35;
  color: var(--tinte-blass);
  text-align: center;
}
/* Auf dem Papier steht nichts mehr rechts angeschlagen */
.figur.rechts { float: none; width: auto; margin-inline: 0; }

.emblem img { width: 45mm; height: auto; }
.zeichen-bild { display: block; width: 26mm; height: 26mm; margin: 0 0 2mm; }
.zeichen-bild.gerahmt { border: .5pt solid var(--linie); border-radius: 1mm; }

/* Zierbänder zwischen den Liedern. js/buch.js legt jedes Band auf eine
   Pergamentfläche; „darken“ verschluckt darin den hellen Bildgrund, die
   Maske lässt die Fläche zum Papier hin auslaufen. */
.band-huelle {
  width: 105mm;
  margin: 6mm auto;
  background: var(--papier-tief);
  isolation: isolate;
  break-inside: avoid;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
  mask-image: radial-gradient(closest-side, #000 60%, transparent);
}
.band {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: darken;
}

/* ==========================================================================
   8. Bildschirmteil
   Die Leiste über dem Buch gehört nicht ins Buch. Sie steht hier auf
   „weg“; buch.html holt sie in einem Stilblock mit media="screen" zurück,
   den Paged.js nicht anfasst und der Drucker nicht sieht.
   ========================================================================== */
.werkzeugleiste, .buch-fehler { display: none; }

/* Tonaufnahme gibt es im Buch nicht; stattdessen der Hinweis, wo sie liegt */
.lied-audio audio { display: none; }
.lied-audio { font-size: .85em; font-style: italic; color: var(--tinte-blass, #5c4a36); margin: 0 0 1em; }
.lied-audio .lied-laden { text-decoration: none; color: inherit; }
.lied-audio .lied-laden .ikone { display: none; }
.lied-audio .lied-laden::before { content: "Aufnahme: petenut.piratenlarp.de/assets/audio/knack.mp3 — "; }
