/* Gemeinsame Gestaltung der Review-Seiten (classics und naturalphilosophy).
   Die Akzentfarben kommen aus der Marke (#1d4e5f 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: #1d4e5f;
  --akzent-hell: #e6eef0;
  --patina: #7a6434;
  --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: #7fc2d4;
    --akzent-hell: #18292f;
    --patina: #c9ab6b;
    --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; }

/* ------------------------------------------------------------------ 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: Classics Review ---------- */
/* Eigenes der Chronologie-Seite: Prioritaetsleiste und Namensregister. */
figure.prioritaet {
  margin: 1.8rem 0; padding: 1.1rem 1.2rem; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 0.5rem; overflow-x: auto;
}
figure.prioritaet figcaption {
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--akzent); margin-bottom: 0.8rem;
}
figure.prioritaet ol { list-style: none; margin: 0; padding: 0; }
figure.prioritaet li {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.8rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--linie-fein); font-size: 0.875rem;
}
figure.prioritaet li:last-child { border-bottom: 0; }
figure.prioritaet li:last-child .was { color: var(--schrift); }
figure.prioritaet .wann { font-family: var(--mono); font-size: 0.75rem; color: var(--patina); }
figure.prioritaet .was { color: var(--leise); }
figure.prioritaet li { grid-template-columns: 1fr; gap: 0.1rem; }
figure.prioritaet { border: 1pt solid #999; }
ul.namen {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 2.5rem; font-size: 0.9375rem;
}
ul.namen li {
  break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--linie-fein);
  display: flex; gap: 0.5rem; align-items: baseline;
}
ul.namen a { text-decoration: none; }
ul.namen a:hover { text-decoration: underline; }
ul.namen .jahr { color: var(--sehr-leise); font-size: 0.75rem; font-family: var(--mono); }
ul.namen .anzahl {
  margin-left: auto; font-family: var(--mono); font-size: 0.6875rem; color: var(--sehr-leise);
}
ul.namen { columns: 1; }
