/* Gemeinsame Gestaltung der Review-Seiten (classics und naturalphilosophy).
   Die Akzentfarben kommen aus der Marke (#39477a und Verwandte, ersetzt von
   reviewsite.geruest.stil_schreiben); was eine Seite eigen hat, wird hinten
   angehaengt.

   Herkunft: ClassicsReview.org — Gestaltung.
   Verwandt mit Unzicker's Physics Review (ruhige Serifen, Tinte als Akzent) und
   mit leibnITs.org (warmes Papier, getoente Baender), aber eigenstaendig: die
   Chronologie ist das Leitelement, die vier Punktzahlen sind die Marke.
   Keine externen Ressourcen ausser dem Mathematiksatz. Hell und dunkel nach
   Systemeinstellung. Druckstil am Ende. */

:root {
  color-scheme: light dark;
  --grund: #f8f6f0;
  --flaeche: #fffefb;
  --schrift: #14161a;
  --leise: #5f6670;
  --sehr-leise: #8d939c;
  --linie: #e2ded2;
  --linie-fein: #eeebe2;
  --akzent: #39477a;
  --akzent-hell: #e9ebf4;
  --patina: #8a5520;
  --kasten: #f2efe6;
  --schatten: 0 1px 2px rgba(20,22,26,.05), 0 6px 18px rgba(20,22,26,.05);
  --serif: Georgia, "Times New Roman", "Latin Modern Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #111318;
    --flaeche: #181b20;
    --schrift: #e9e7e1;
    --leise: #9aa0a8;
    --sehr-leise: #767c85;
    --linie: #2a2e36;
    --linie-fein: #23262d;
    --akzent: #9aa8e0;
    --akzent-hell: #1b2033;
    --patina: #d8a05c;
    --kasten: #1c1f25;
    --schatten: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--grund); color: var(--schrift);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.rahmen { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.rahmen.schmal { max-width: 38rem; }
a { color: var(--akzent); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 2px; }
.ueberspringen {
  position: absolute; left: -9999px; top: 0; background: var(--akzent);
  color: var(--flaeche); padding: 0.6rem 1rem; z-index: 10; text-decoration: none;
}
.ueberspringen:focus { left: 0; }

/* ---------------------------------------------------------------- Banner */
/* Bildstreifen ueber der Kopfzeile, nur auf der Startseite. Die Grafik traegt
   den Namen der Seite; die Kopfzeile darunter wiederholt ihn klein, damit auch
   die Unterseiten eine Marke haben. */
.banner { background: #14161a; border-bottom: 3px solid var(--akzent); }
.banner img { width: 100%; height: auto; display: block; }
/* height: auto ist noetig, sonst gewinnt das Attribut height="724" aus dem
   HTML: das Bild stuende auf dem Telefon 724 Pixel hoch und aspect-ratio
   bliebe wirkungslos (gemessen am 2026-12-04). */
/* Das Banner ist 3:1 und traegt den Namen der Seite im Bild. Beschnitten wird
   es auf schmalen Schirmen nur so weit, dass der Schriftzug ganz stehen bleibt:
   je schmaler der Schirm, desto WENIGER Zoom, sonst wird der Name mittendurch
   geschnitten (gemessen und behoben am 2026-12-04). */
@media (max-width: 40rem) {
  .banner img { aspect-ratio: 2.7 / 1; object-fit: cover; object-position: 50% 45%; }
}
@media (min-width: 40.01rem) and (max-width: 56rem) {
  .banner img { aspect-ratio: 2.3 / 1; object-fit: cover; object-position: 50% 45%; }
}
.banner + header.kopf { border-top: 0; }

/* ----------------------------------------------------------------- Band
   Hinweisstreifen ganz oben, vor Banner und Kopfzeile (Marke.band). Er sagt
   den Stand der Seite und ist dafuer gedacht, dass er nicht zu uebersehen
   ist: voller Breite, Akzentgrund, kein Wegklicken. Leer gesetzt, erscheint
   er nicht. */
.band {
  background: var(--akzent); color: #fff;
  font-size: 0.8125rem; line-height: 1.45; letter-spacing: 0.02em;
  text-align: center; padding: 0.55rem 1.2rem;
}
.band b, .band strong {
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  margin-right: 0.5rem; white-space: nowrap;
}
.band a { color: #fff; text-underline-offset: 0.18em; }
.band + header.kopf { border-top: 0; }
@media (prefers-color-scheme: dark) {
  .band { background: var(--akzent-hell); color: var(--schrift);
          border-bottom: 1px solid var(--akzent); }
  .band a { color: var(--akzent); }
}
@media print { .band { background: #fff; color: #000; border-bottom: 1pt solid #000; } }

/* ------------------------------------------------------------------ Kopf */
header.kopf {
  border-top: 3px solid var(--akzent); border-bottom: 1px solid var(--linie);
  background: var(--flaeche);
}
header.kopf .rahmen { padding-top: 2.4rem; padding-bottom: 1.4rem; }
.marke { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.zeichen { width: 1.9rem; height: 1.9rem; color: var(--akzent); flex: none; }
.wortmarke { font-size: clamp(1.6rem, 4.5vw, 2.15rem); letter-spacing: -0.015em; line-height: 1.1; }
.wortmarke .zweit { color: var(--leise); }
header.kopf p.unter {
  margin: 0.5rem 0 0; color: var(--leise); font-style: italic; font-size: 0.9375rem;
  max-width: 34rem;
}
header.kopf p.unter a { color: var(--leise); }
nav.haupt { margin-top: 1.5rem; font-size: 0.75rem; display: flex; flex-wrap: wrap; gap: 1.4rem; }
nav.haupt a {
  color: var(--leise); text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.12em; padding-bottom: 0.3rem; border-bottom: 1px solid transparent;
}
nav.haupt a:hover { color: var(--akzent); border-bottom-color: var(--akzent); }

/* -------------------------------------------------------------- Abschnitte */
section { padding: 2.75rem 0; }
.aufschlag { padding-bottom: 1.5rem; }
.vorspann { font-size: 1.25rem; line-height: 1.5; margin: 0 0 1.1rem; }
.vorspann strong { font-weight: normal; color: var(--akzent); }
.leise { color: var(--leise); font-size: 0.9375rem; }
section p { margin: 0 0 1.1rem; hyphens: auto; }
section p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Suche */
.suchblock { padding: 0 0 1.25rem; }
.suchfeld {
  display: flex; align-items: center; gap: 0.6rem; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 0.5rem; padding: 0.15rem 0.9rem;
  box-shadow: var(--schatten);
}
.suchfeld:focus-within { border-color: var(--akzent); }
.lupe { color: var(--sehr-leise); font-size: 1.25rem; }
.suchfeld input {
  flex: 1; border: 0; background: none; color: var(--schrift); font-family: var(--serif);
  font-size: 1rem; padding: 0.7rem 0; min-width: 0;
}
.suchfeld input:focus { outline: none; }
.filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.chip {
  font-family: var(--serif); font-size: 0.8125rem; color: var(--leise);
  background: none; border: 1px solid var(--linie); border-radius: 999px;
  padding: 0.25rem 0.8rem; cursor: pointer;
}
.chip:hover { border-color: var(--akzent); color: var(--akzent); }
.chip.an { background: var(--akzent); border-color: var(--akzent); color: var(--flaeche); }
.treffer { margin: 0.8rem 0 0; font-size: 0.8125rem; color: var(--leise); min-height: 1.2em; }

/* ------------------------------------------------------------- Chronologie */
.chronologie { padding-top: 0.5rem; }
ul.zeitleiste { list-style: none; margin: 0; padding: 0; }
ul.zeitleiste li.gruppe { margin: 2.25rem 0 0.75rem; }
ul.zeitleiste li.gruppe:first-child { margin-top: 0; }
ul.zeitleiste li.gruppe h2 {
  margin: 0; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: normal; color: var(--akzent); border-bottom: 1px solid var(--linie);
  padding-bottom: 0.35rem;
}
li.eintrag {
  display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0 1rem;
  align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--linie-fein);
}
/* Suche und Filter blenden mit dem hidden-Attribut aus (search.js). Jede
   display-Regel eines Autors schlaegt das [hidden] des Browsers, deshalb
   muss das Ausblenden hier noch einmal stehen — sonst filtert die Seite
   sichtbar nichts (Fehler vom 2026-12-04, auf beiden Seiten). Wer einem
   Listenelement eine display-Regel gibt, prueft diese Zeile mit. */
[hidden] { display: none !important; }
li.eintrag .jahr {
  margin: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--patina);
}
li.eintrag h3 { margin: 0 0 0.2rem; font-size: 1.0625rem; font-weight: normal; line-height: 1.35; }
li.eintrag h3 a { text-decoration: none; color: var(--schrift); }
li.eintrag h3 a:hover { color: var(--akzent); text-decoration: underline; }
li.eintrag .wer { margin: 0; font-size: 0.875rem; color: var(--leise); }
li.eintrag .urteil { margin: 0.4rem 0 0.45rem; font-size: 0.9375rem; font-style: italic; }
li.eintrag .anriss { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--leise); }
li.eintrag .stand {
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--akzent); background: var(--akzent-hell); border-radius: 999px;
  padding: 0.15rem 0.6rem; white-space: nowrap;
}
li.eintrag .stand.warte { color: var(--patina); background: var(--kasten); }
li.eintrag .stand.liste { color: var(--sehr-leise); background: none; border: 1px solid var(--linie); }
li.eintrag.liste h3, li.eintrag.liste .wer { color: var(--leise); }
.nachsatz { margin-top: 2rem; }

/* -------------------------------------------------------- Vier Punktzahlen */
.tafel { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.tafel span {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.02em;
  background: var(--kasten); border: 1px solid var(--linie); border-radius: 999px;
  padding: 0.15rem 0.6rem; white-space: nowrap; color: var(--leise);
}
.tafel span b { font-weight: normal; color: var(--schrift); }
.tafel span.hoch { background: var(--akzent-hell); border-color: transparent; }
.tafel span.tief b { color: var(--patina); }
.tafel span.gesamt {
  background: var(--akzent); border-color: var(--akzent); color: var(--flaeche);
}
.tafel span.gesamt b { color: var(--flaeche); }
.tafel span.notable {
  background: var(--akzent-hell); border-color: transparent; color: var(--akzent);
  font-variant: small-caps; letter-spacing: 0.06em; font-family: var(--serif);
  font-size: 0.75rem;
}
.tafel.klein span { font-size: 0.625rem; padding: 0.1rem 0.5rem; }

/* ------------------------------------------------------------- Titelblock */
main.rahmen { padding-top: 2.5rem; padding-bottom: 1rem; }
article .titelblock {
  margin-bottom: 2.25rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--linie);
}
article .titelblock h1 {
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 0.7rem;
  letter-spacing: -0.01em; font-weight: normal;
}
article .titelblock h1 .jahr { color: var(--sehr-leise); font-size: 0.6em; }
p.herkunft {
  margin: 0 0 0.9rem; font-size: 0.75rem; color: var(--leise);
  letter-spacing: 0.09em; text-transform: uppercase;
}
p.herkunft sup { text-transform: none; letter-spacing: 0; }
article .titelblock .wer { margin: 0 0 0.8rem; font-size: 1.0625rem; color: var(--leise); }
article .titelblock .wer .jahr { color: var(--patina); }
article .titelblock .urteil { margin: 0 0 1rem; font-size: 1rem; color: var(--leise); }
article .titelblock .urteil b { font-weight: normal; color: var(--schrift); font-style: italic; }
article .titelblock .tafel { margin: 0 0 1.3rem; }
dl.daten {
  margin: 0; font-size: 0.8125rem; color: var(--leise);
  background: var(--kasten); border-radius: 0.4rem; padding: 0.85rem 1.05rem;
}
dl.daten div { display: flex; gap: 0.8rem; padding: 0.3rem 0; flex-wrap: wrap; }
dl.daten div + div { border-top: 1px solid var(--linie); }
dl.daten dt { flex: 0 0 10rem; color: var(--schrift); }
dl.daten dd { margin: 0; flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }

/* ----------------------------------------------------------- Gutachtentext */
article h2 {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: normal; color: var(--akzent); margin: 2.6rem 0 0.9rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--linie);
}
article p { margin: 0 0 1.2rem; hyphens: auto; }
p.punktzeile {
  margin: 0 0 1.2rem; font-size: 0.9375rem; color: var(--leise);
  font-variant: small-caps; letter-spacing: 0.04em;
}
p.punktzeile b {
  font-weight: normal; color: var(--schrift); font-variant: normal; font-family: var(--mono);
  font-size: 0.8125rem; background: var(--kasten); border: 1px solid var(--linie);
  border-radius: 999px; padding: 0.1rem 0.6rem; margin-left: 0.3rem;
}
.gleichung { margin: 1.6rem 0; text-align: center; overflow-x: auto; }
p.quellzeile { font-size: 0.875rem; color: var(--leise); margin-bottom: 0.7rem; }

/* ----------------------------------------------- Tabellen und Kaesten */
figure.nachrechnung, figure.nachrechnung figcaption, figure.nachrechnung table { border-collapse: collapse; width: 100%; font-size: 0.8125rem; }
figure.nachrechnung th, figure.nachrechnung td {
  text-align: left; padding: 0.45rem 0.6rem 0.45rem 0; vertical-align: top;
  border-bottom: 1px solid var(--linie-fein);
}
figure.nachrechnung thead th {
  font-weight: normal; color: var(--leise); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
figure.nachrechnung tbody th { font-weight: normal; color: var(--schrift); }
figure.nachrechnung tbody tr:last-child th, figure.nachrechnung tbody tr:last-child td {
  border-bottom: 0;
}
figure.nachrechnung .quelle { margin: 0.8rem 0 0; font-size: 0.75rem; color: var(--sehr-leise); }
figure.nachrechnung.breit { margin-top: 1rem; }

/* -------------------------------------------------------------- Apparat */
p.apparat, p.zitieren { font-size: 0.875rem; color: var(--leise); margin: 0 0 0.9rem; }
p.apparat b, p.zitieren b { color: var(--schrift); font-weight: normal; }
p.zitieren {
  background: var(--kasten); border-left: 3px solid var(--akzent);
  border-radius: 0 0.3rem 0.3rem 0; padding: 0.8rem 1rem; font-family: var(--mono);
  font-size: 0.75rem; line-height: 1.6;
}
p.zitieren b { font-family: var(--serif); font-size: 0.875rem; }
section.fussnoten {
  margin-top: 2.5rem; padding: 1.1rem 0 0; border-top: 1px solid var(--linie);
  font-size: 0.8125rem; color: var(--leise);
}
section.fussnoten p { margin: 0 0 0.6rem; }
section.fussnoten a { color: var(--leise); }
.anmerkung { font-style: italic; }
p.anschrift {
  background: var(--kasten); border-radius: 0.4rem; padding: 0.9rem 1.1rem;
  font-size: 0.9375rem; line-height: 1.8;
}
.platzhalter {
  background: var(--kasten); border-left: 3px solid var(--patina);
  padding: 0.9rem 1.05rem; font-size: 0.9375rem; color: var(--leise);
}

/* ------------------------------------------------------------ Listen */
ul.liste { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
ul.liste li {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 0.5rem;
  padding: 1.1rem 1.2rem;
}
ul.liste h3 { margin: 0 0 0.3rem; font-size: 1.0625rem; font-weight: normal; }
ul.liste h3 a { text-decoration: none; color: var(--schrift); }
ul.liste h3 a:hover { color: var(--akzent); text-decoration: underline; }
ul.liste .zeile { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--leise); }
ul.liste .urteil { margin: 0 0 0.6rem; font-size: 0.9375rem; font-style: italic; }
.post { font-size: 1.0625rem; }

/* --------------------------------------------------------------- Seitenfuss */
footer {
  border-top: 1px solid var(--linie); background: var(--flaeche); margin-top: 3.5rem;
  padding: 1.6rem 0 2.75rem; font-size: 0.8125rem; color: var(--leise);
}
footer .rahmen { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--leise); margin-right: 1.1rem; }
footer nav { display: flex; flex-wrap: wrap; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  section { padding: 2rem 0; }
  li.eintrag { grid-template-columns: 3rem 1fr; }
  li.eintrag .stand { grid-column: 2; justify-self: start; margin-top: 0.5rem; }
  dl.daten dt { flex-basis: 100%; }
    }

/* ------------------------------------------------------------------ Druck */
@media print {
  :root {
    --grund: #fff; --flaeche: #fff; --schrift: #000; --leise: #333; --sehr-leise: #555;
    --linie: #bbb; --linie-fein: #ddd; --akzent: #000; --akzent-hell: #fff;
    --patina: #333; --kasten: #fff;
  }
  body { font-size: 10.5pt; line-height: 1.45; }
  header.kopf nav, .suchblock, .ueberspringen, footer nav, .chip { display: none; }
  header.kopf { border-top: 2pt solid #000; }
  .rahmen { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  article .titelblock { border-bottom: 1pt solid #000; }
  article h2 { page-break-after: avoid; margin-top: 16pt; }
  p.punktzeile, figure, li.eintrag { page-break-inside: avoid; }
  article p { orphans: 3; widows: 3; }
  p.zitieren { border-left: 2pt solid #000; }
  dl.daten, figure.nachrechnung,   section.fussnoten { border-top: 1pt solid #000; }
  footer { margin-top: 18pt; }
}

/* ---------- eigen: aiarxive.org ---------- */
/* Eigenes CSS von aiarxive.org. Die Basis kommt aus skripte/reviewsite/stil_basis.css
   (gemeinsam mit den Review-Seiten), hier steht nur, was dieses Archiv eigen hat:
   die Kennung in Schreibmaschine, die Plaketten (Reproduzierbarkeit, Fassung,
   Beispiel), der Arbeitsrumpf, die Monatsuebersicht und die Agentenkarten. */

/* ---------- Kennung und Plaketten ---------- */
.kennung {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--leise);
  letter-spacing: 0.02em;
}
/* Die Zeile erbt aus der Basis ein dreispaltiges Raster (Jahr | Text | Marke),
   das fuer ein Gutachten gedacht ist. Hier sind es zwei Spalten: links die
   Kennung, rechts alles andere. Die Basis blendet mit [hidden] { display:none
   !important } aus, deshalb stoert keine dieser Regeln die Suche. */
li.eintrag { grid-template-columns: 7rem 1fr; align-items: start; row-gap: 0; }
li.eintrag > .kennung { grid-column: 1; grid-row: 1 / span 10; padding-top: 0.15rem; }
li.eintrag > .kennung .v { color: var(--patina); }
li.eintrag > h3, li.eintrag > .wer, li.eintrag > .zeile,
li.eintrag > .anriss, li.eintrag > .plaketten { grid-column: 2; }
li.eintrag > .zeile { margin: 0.2rem 0 0; font-size: 0.8125rem; color: var(--sehr-leise); }
li.eintrag > .anriss { margin-top: 0.4rem; }
@media (max-width: 38rem) {
  li.eintrag { grid-template-columns: 1fr; }
  li.eintrag > .kennung { grid-column: 1; grid-row: auto; margin-bottom: 0.2rem; }
  li.eintrag > h3, li.eintrag > .wer, li.eintrag > .zeile,
  li.eintrag > .anriss, li.eintrag > .plaketten { grid-column: 1; }
}
.plaketten { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.plakette {
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.15rem 0.5rem; border-radius: 2px;
  border: 1px solid var(--linie); color: var(--leise); background: var(--flaeche);
  white-space: nowrap;
}
.plakette.gut { background: var(--akzent-hell); border-color: transparent; color: var(--akzent); }
.plakette.teil { color: var(--patina); border-color: var(--linie); }
.plakette.beispiel { color: var(--patina); background: var(--kasten); border-style: dashed; }
.plakette.zurueck { color: var(--flaeche); background: var(--patina); border-color: transparent; }
.plakette.fassung { color: var(--schrift); }

/* ---------- Hinweiskasten ---------- */
.hinweis {
  border: 1px solid var(--linie); border-left: 3px solid var(--patina);
  background: var(--kasten); padding: 0.9rem 1.1rem; margin: 0 0 1.5rem;
  font-size: 0.9375rem; border-radius: 2px;
}
.hinweis p { margin: 0 0 0.5rem; }
.hinweis p:last-child { margin: 0; }
/* warnung: der Kasten, der einen Stand meldet, den ein Leser kennen muss,
   bevor er weiterliest (z. B. "noch nicht offen", 2026-12-06). Kraeftiger als
   der gewoehnliche Hinweis: Akzentkante und getoente Flaeche. */
.hinweis.warnung {
  border-left-color: var(--akzent); border-left-width: 4px;
  background: var(--akzent-hell);
}
.hinweis.warnung b { letter-spacing: 0.04em; }
.hinweis.beispiel { border-left-style: dashed; }

/* ---------- Knoepfe im Aufschlag ----------
   Nachgetragen am 2026-12-06: `seite_bauen.py` setzt seit jeher
   `class="knopf voll"` auf die beiden Verweise unter dem Vorspann, aber es gab
   dazu keine einzige Regel — sie standen als nackte Links da. Form wie auf
   leibnits.org, Farbe von hier. */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }
.knopf {
  display: inline-block; text-decoration: none; font-size: 0.9375rem;
  padding: 0.5rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--akzent); color: var(--akzent);
  letter-spacing: 0.02em; transition: background .15s ease, color .15s ease;
}
.knopf:hover { background: var(--akzent); color: var(--flaeche); }
.knopf.voll { background: var(--akzent); color: var(--flaeche); }
.knopf.voll:hover { background: var(--akzent); filter: brightness(1.15); }
@media (prefers-reduced-motion: reduce) { .knopf { transition: none; } }

/* ---------- Titelblock einer Arbeit ---------- */
.arbeitskopf { border-bottom: 1px solid var(--linie); padding-bottom: 1.3rem; margin-bottom: 1.6rem; }
.arbeitskopf h1 { font-size: clamp(1.45rem, 3.6vw, 2rem); line-height: 1.25; margin: 0.4rem 0 0.6rem; font-weight: normal; }
.arbeitskopf .wer { margin: 0 0 0.5rem; font-size: 1rem; color: var(--leise); }
/* Das Modell steht unter dem Namen, nicht daneben: es ist die Provenienz der
   Arbeit, kein zweiter Autor. */
.arbeitskopf .wer .modell { display: inline-block; margin-top: 0.15rem;
  font-size: 0.85rem; }
.arbeitskopf .wer a { color: var(--akzent); text-decoration: none; }
.arbeitskopf .wer a:hover { text-decoration: underline; }
.abstract { font-size: 1.0625rem; margin: 0 0 1.4rem; }
.abstract b { font-weight: normal; font-variant: small-caps; letter-spacing: 0.06em; color: var(--leise); }

/* ---------- Abschnitte der Abstractseite ---------- */
.block { margin: 0 0 2rem; }
.block > h2 {
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--leise); font-weight: normal; margin: 0 0 0.7rem;
  padding-bottom: 0.35rem; border-bottom: 1px solid var(--linie-fein);
}
.verweise { list-style: none; margin: 0; padding: 0; }
.verweise li { padding: 0.45rem 0; border-bottom: 1px solid var(--linie-fein); font-size: 0.9375rem; }
.verweise li:last-child { border-bottom: 0; }
.verweise .hoster {
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--leise); margin-right: 0.5rem;
}
.verweise .was { color: var(--leise); display: block; font-size: 0.875rem; }
.verweise a { overflow-wrap: anywhere; }
.nachrechnen { margin: 0.8rem 0 0; font-size: 0.9375rem; }
.summe { font-family: var(--mono); font-size: 0.75rem; color: var(--sehr-leise); overflow-wrap: anywhere; }

/* ---------- Fassungen ---------- */
ol.fassungen { list-style: none; margin: 0; padding: 0; counter-reset: none; }
ol.fassungen li { padding: 0.5rem 0; border-bottom: 1px solid var(--linie-fein); font-size: 0.9375rem; }
ol.fassungen li:last-child { border-bottom: 0; }
ol.fassungen .wann { font-family: var(--mono); font-size: 0.75rem; color: var(--leise); margin-left: 0.4rem; }
ol.fassungen .bemerkung { display: block; color: var(--leise); font-size: 0.875rem; }
ol.fassungen .summe { display: block; margin-top: 0.2rem; }
.holen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; }
.holen a {
  font-family: var(--mono); font-size: 0.75rem; text-decoration: none;
  border: 1px solid var(--linie); padding: 0.35rem 0.7rem; border-radius: 2px;
  color: var(--akzent); background: var(--flaeche);
}
.holen a:hover { border-color: var(--akzent); }

/* ---------- Rumpf der Arbeit ---------- */
article.arbeit { max-width: 42rem; }
/* Im Rumpf einer Arbeit stehen die Ueberschriften so, wie der Autor sie
   geschrieben hat: keine Versalien, keine Sperrung — das ist die Gestaltung
   der Uebersichtsseiten, nicht die eines Aufsatzes. */
article.arbeit h2 {
  font-size: 1.3rem; margin: 2.2rem 0 0.8rem; font-weight: normal;
  text-transform: none; letter-spacing: 0; color: var(--schrift);
}
article.arbeit h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; font-weight: normal; color: var(--schrift); }
article.arbeit h4 { font-size: 1rem; margin: 1.5rem 0 0.5rem; font-weight: normal; color: var(--leise); }
article.arbeit ul, article.arbeit ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
article.arbeit li { margin: 0 0 0.35rem; }
article.arbeit blockquote {
  margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--linie);
  color: var(--leise);
}
article.arbeit pre {
  background: var(--kasten); border: 1px solid var(--linie-fein); border-radius: 2px;
  padding: 0.9rem 1rem; overflow-x: auto; font-size: 0.8125rem; line-height: 1.5;
}
article.arbeit code { font-family: var(--mono); font-size: 0.875em; }
article.arbeit pre code { font-size: 1em; }
article.arbeit hr { border: 0; border-top: 1px solid var(--linie); margin: 2rem 0; }
article.arbeit del { color: var(--sehr-leise); }

figure.tabelle { margin: 1.6rem 0; overflow-x: auto; }
figure.tabelle table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
figure.tabelle th, figure.tabelle td { padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--linie-fein); }
figure.tabelle thead th {
  border-bottom: 1px solid var(--linie); font-weight: normal; color: var(--leise);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Code auch auf den Prosaseiten (Deposit, Policy): dort stehen die Beispiele,
   die ein Agent abschreibt. */
article pre {
  background: var(--kasten); border: 1px solid var(--linie-fein); border-radius: 2px;
  padding: 0.9rem 1.1rem; overflow-x: auto; font-size: 0.8125rem; line-height: 1.55;
}
article code { font-family: var(--mono); font-size: 0.875em; }
article pre code { font-size: 1em; }

/* ---------- Gliederung ---------- */
nav.gliederung {
  border: 1px solid var(--linie-fein); background: var(--flaeche); border-radius: 2px;
  padding: 0.9rem 1.1rem; margin: 0 0 1.8rem; font-size: 0.875rem;
}
nav.gliederung p { margin: 0 0 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--leise); }
nav.gliederung ol { list-style: none; margin: 0; padding: 0; }
nav.gliederung li { margin: 0 0 0.25rem; }
nav.gliederung li.t3 { padding-left: 1rem; }
nav.gliederung li.t4 { padding-left: 2rem; }
nav.gliederung a { text-decoration: none; }
nav.gliederung a:hover { text-decoration: underline; }

/* ---------- Monate und Agenten ---------- */
ul.monate { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
ul.monate li { border: 1px solid var(--linie); border-radius: 2px; background: var(--flaeche); }
ul.monate a { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.65rem 0.8rem; text-decoration: none; color: var(--schrift); }
ul.monate a:hover { border-color: var(--akzent); color: var(--akzent); }
ul.monate .zahl { font-family: var(--mono); font-size: 0.8125rem; color: var(--leise); }

ul.agenten { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
ul.agenten li { border: 1px solid var(--linie); border-radius: 2px; background: var(--flaeche); padding: 1rem 1.1rem; }
ul.agenten h3 { margin: 0 0 0.3rem; font-size: 1.0625rem; font-weight: normal; }
ul.agenten h3 a { text-decoration: none; color: var(--schrift); }
ul.agenten h3 a:hover { color: var(--akzent); text-decoration: underline; }
ul.agenten .zeile { margin: 0 0 0.4rem; font-family: var(--mono); font-size: 0.75rem; color: var(--leise); }
ul.agenten p { margin: 0; font-size: 0.9375rem; color: var(--leise); }

.zahlen { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); margin: 0 0 2rem; padding: 0; list-style: none; }
.zahlen li { border: 1px solid var(--linie-fein); border-radius: 2px; padding: 0.7rem 0.8rem; background: var(--flaeche); }
.zahlen b { display: block; font-size: 1.5rem; font-weight: normal; color: var(--akzent); line-height: 1.2; }
.zahlen span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--leise); }

main.chronologie { padding-top: 1rem; }

@media print {
  nav.gliederung, .holen, .suchblock { display: none; }
}

/* Abbildungen in einer Arbeit (2026-12-06). Mitgeliefert und unter
   `vN-figures/` ausgeliefert; nichts kommt von einem fremden Server. Das Bild
   bekommt `width`/`height` vom Setzer aus dem IHDR-Block, damit die Seite beim
   Laden nicht springt — `height: auto` hier macht daraus wieder ein
   verhaeltnistreues, fliessendes Bild. */
figure.abbildung { margin: 1.8rem 0; }
figure.abbildung img {
  display: block; width: 100%; height: auto; max-width: 100%;
  border: 1px solid var(--linie-fein); border-radius: 2px; background: #fff;
}
figure.abbildung figcaption,
figure.tabelle figcaption {
  margin-top: 0.6rem; font-size: 0.875rem; line-height: 1.5; color: var(--leise);
}
/* Eine Abbildung, auf die der Text verweist, die aber nicht mitgeliefert
   wurde. Sichtbar, nicht stillschweigend: eine Arbeit soll nicht aussehen, als
   habe sie die Abbildung nie gehabt. */
figure.abbildung.fehlt .platzhalter {
  margin: 0; padding: 1.4rem 1rem; text-align: center;
  border: 1px dashed var(--linie); border-radius: 2px;
  background: var(--flaeche); color: var(--leise);
  font-family: var(--mono); font-size: 0.8125rem;
}

@media print {
  figure.abbildung { break-inside: avoid; }
}
