/*
 * Satz für Exporte: PDF (über OpenHTMLtoPDF, Schrift Liberation) und die
 * Druckansicht im Browser. Alles ist unter .export gekapselt.
 */

@page {
  size: A4;
  margin: 18mm 16mm 20mm 18mm;
  @bottom-left {
    content: "Archivsuche";
    font-family: "Liberation Sans", Arial, sans-serif;
    font-size: 7.5pt;
    color: #8a8071;
  }
  @bottom-right {
    content: "Seite " counter(page) " von " counter(pages);
    font-family: "Liberation Sans", Arial, sans-serif;
    font-size: 7.5pt;
    color: #8a8071;
  }
}

/* Ohne diese Zeile schiebt der Standardrand des body eine fast volle letzte
   Seite um wenige Pixel über den Rand – das PDF bekäme eine leere Seite. */
html, body.pdf { margin: 0; padding: 0; }

.export {
  font-family: "Liberation Serif", "Palatino Linotype", Georgia, serif;
  font-size: 10.5pt;
  line-height: 1.38;
  color: #2b261e;
  background: #fff;
}

.export p { margin: 0; }

.export-kopf {
  border-bottom: 1.5pt solid #8c3b2e;
  padding-bottom: 8pt;
  margin-bottom: 12pt;
}
.export-kopf .marke {
  font-family: "Liberation Sans", Arial, sans-serif;
  font-size: 8pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c3b2e;
}
.export-kopf h1 { font-size: 20pt; line-height: 1.2; margin: 2pt 0 3pt; font-weight: bold; }
.export-kopf .untertitel { font-size: 10pt; color: #564c3e; }
.export-kopf .meta { font-family: "Liberation Sans", Arial, sans-serif; font-size: 8pt; color: #7a6f60; margin-top: 3pt; }
.export-kopf .begleittext {
  margin-top: 8pt;
  padding: 5pt 8pt;
  background: #f4eee2;
  border-left: 2.5pt solid #8c3b2e;
  white-space: pre-wrap;
}

.export h2.gruppe {
  font-size: 12.5pt;
  margin: 14pt 0 6pt;
  padding-bottom: 2pt;
  border-bottom: 0.75pt solid #b9ad99;
  page-break-after: avoid;
}
.export h2.gruppe span { font-weight: normal; color: #7a6f60; font-size: 10pt; }

/* Nummer als schwebender Block statt absolut positioniert – absolute Elemente
   am Seitenende erzeugen in OpenHTMLtoPDF sonst eine leere Zusatzseite. */
.export .eintrag {
  padding: 0 0 7pt 24pt;
  margin: 0 0 7pt;
  border-bottom: 0.5pt solid #ddd3c2;
  page-break-inside: avoid;
}
.export .eintrag::after { content: ""; display: block; clear: both; }
.export .eintrag .nr {
  float: left;
  margin: 1pt 0 0 -24pt;
  width: 20pt;
  font-family: "Liberation Sans", Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  color: #8c3b2e;
}
.export .quelle { font-family: "Liberation Sans", Arial, sans-serif; font-size: 8pt; color: #6b6153; }
.export .quelle .digi { color: #4e6e81; }
.export .titel { font-weight: bold; font-size: 11pt; margin-top: 1pt; }
.export .signatur { color: #8c3b2e; font-size: 9.5pt; }
.export .kontext { font-size: 9pt; color: #564c3e; margin-top: 2pt; }
.export .beschreibung { font-size: 9.5pt; margin-top: 2pt; }
.export .notiz {
  margin-top: 3pt;
  padding: 3pt 6pt;
  background: #e8f0f4;
  border-left: 2pt solid #4e6e81;
  font-size: 9.5pt;
  white-space: pre-wrap;
}
.export .notiz-marke { font-weight: bold; color: #4e6e81; }
.export .links {
  margin-top: 3pt;
  font-family: "Liberation Sans", Arial, sans-serif;
  font-size: 7.5pt;
  color: #6b6153;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.export .links a { color: #4e6e81; text-decoration: none; }

.export-fuss {
  margin-top: 14pt;
  font-family: "Liberation Sans", Arial, sans-serif;
  font-size: 7.5pt;
  color: #8a8071;
}

/* Druckansicht im Browser: nur der Druckbereich erscheint auf dem Papier. */
#druckbereich { display: none; }
@media print {
  body.drucken > *:not(#druckbereich) { display: none !important; }
  body.drucken { background: #fff; display: block; }
  body.drucken #druckbereich { display: block; }
}

/* Gegliederter Export (Suchregister) */
.export .inhaltsverzeichnis { margin: 0 0 12pt; padding: 6pt 10pt; background: #f8f4ec; border: 0.5pt solid #ddd3c2; }
.export .iv-titel { font-family: "Liberation Sans", Arial, sans-serif; font-size: 8pt; text-transform: uppercase; letter-spacing: 0.06em; color: #7a6f60; margin-bottom: 3pt; }
.export .iv-zeile { font-size: 9.5pt; }
.export .iv-zeile.ebene-2 { padding-left: 14pt; }
.export .iv-zeile.ebene-3 { padding-left: 28pt; font-size: 9pt; }
.export .iv-zeile.ebene-4 { padding-left: 42pt; font-size: 9pt; }
.export .iv-nr, .export .abschnitt-nr { color: #8c3b2e; font-weight: bold; }
.export .iv-zahl { color: #8a8071; font-size: 8.5pt; }
.export .abschnitt { page-break-after: avoid; margin: 14pt 0 6pt; line-height: 1.25; }
.export h2.abschnitt { font-size: 14pt; padding-bottom: 2pt; border-bottom: 0.75pt solid #b9ad99; }
.export h3.abschnitt { font-size: 12pt; }
.export h4.abschnitt { font-size: 11pt; font-style: italic; }
.export .abschnitt-text { font-size: 9.5pt; color: #564c3e; margin: -2pt 0 6pt; white-space: pre-wrap; }

/* Sichtungsangaben */
.export .sichtung { margin-top: 3pt; padding: 3pt 6pt; background: #eaf1e4; border-left: 2pt solid #4d6b3c; font-size: 9.5pt; }
.export .sichtung-kopf { font-family: "Liberation Sans", Arial, sans-serif; font-size: 8pt; font-weight: bold; color: #4d6b3c; }
.export .befund { white-space: pre-wrap; }
.export .speicherort { font-family: "Liberation Sans", Arial, sans-serif; font-size: 7.5pt; color: #564c3e; word-wrap: break-word; overflow-wrap: anywhere; }
.export .speicherort a { color: #4e6e81; text-decoration: none; }
