/* Seiten der Geschichte: gleiche Gestaltung in Vorschau und Druck. */
.seite-blatt {
  --pb: 148mm; --ph: 210mm; --rand-o: 17mm; --rand-s: 16mm; --rand-u: 15mm; --grad: 11.2pt;
  width: var(--pb); min-height: var(--ph);
  padding: var(--rand-o) var(--rand-s) var(--rand-u);
  background: #fffefb; color: #1d1b18;
  font-family: "Literata", Georgia, serif; font-size: var(--grad); line-height: 1.52;
  font-optical-sizing: auto;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 18px rgb(0 0 0 / .35);
  hyphens: auto; -webkit-hyphens: auto;
  font-kerning: normal; font-variant-ligatures: common-ligatures;
}
.seite-blatt.a4 { --pb: 210mm; --ph: 297mm; --rand-o: 26mm; --rand-s: 27mm; --rand-u: 20mm; --grad: 13pt; }

.blatt-kopf { text-align: center; margin-bottom: 1.6em; }
.blatt-zahl { font-size: 4.6em; font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.blatt-monat {
  font-variant-caps: all-small-caps; letter-spacing: .22em; font-size: 1.05em; color: #6d665c;
  margin-top: .35em;
}
.blatt-titel { font-style: italic; font-size: 1.45em; line-height: 1.3; margin: 1.1em 0 0; font-weight: 400; text-wrap: balance; }
.blatt-linie { width: 14mm; height: 0; border-top: .5pt solid #8a2e2a; margin: 1.2em auto 0; }

.blatt-text { text-align: justify; flex: 1; text-wrap: pretty; }
.blatt-text p { margin: 0; text-indent: 1.3em; orphans: 2; widows: 2; }
.blatt-text p:first-child { text-indent: 0; }
.blatt-text p:first-child::first-line { font-variant-caps: small-caps; letter-spacing: .04em; }

.blatt-fuss {
  margin-top: 2em; text-align: center; font-size: .78em; color: #8a8378;
  font-variant-caps: all-small-caps; letter-spacing: .18em;
}

#druck { display: none; }

@media print {
  html, body { background: #fff !important; margin: 0; }
  body > *:not(#druck) { display: none !important; }
  #druck { display: block !important; }
  .seite-blatt {
    /* Ränder kommen im Druck aus @page (von app.js gesetzt), damit auch Folgeseiten Rand haben. */
    box-shadow: none; width: auto; padding: 0; background: #fff;
    min-height: calc(var(--ph) - var(--rand-o) - var(--rand-u) - 1mm);
    break-after: page; page-break-after: always;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .seite-blatt:last-child { break-after: auto; page-break-after: auto; }
}
