/* Literata (SIL Open Font License, see /fonts/OFL.txt) */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/literata-latin-wght-normal.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: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/literata-latin-wght-italic.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: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/literata-latin-ext-wght-normal.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;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/literata-latin-ext-wght-italic.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;
}

/* Farben aus Goethes Farbkreis (1809): Papier, Blau als Akzent (blaue Blume),
   die Status-Labels in Grün, Blau, Gelbrot und Blaurot; dunkel als Nachtblau */
:root {
  color-scheme: light;
  --bg: #f5ede0;
  --surface: #ece2d0;
  --text: #2a2420;
  --muted: #6b6155;
  --rule: #dccdb4;
  --accent: #34566e;
  --highlight: rgb(240 200 116 / 0.55);

  --ok-bg: #e1e5da;    --ok-fg: #45583c;
  --info-bg: #dfe6ea;  --info-fg: #35525f;
  --warn-bg: #f3dfcf;  --warn-fg: #8a4a22;
  --weak-bg: #e6dfe5;  --weak-fg: #5b4c5b;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #131a24;
    --surface: #1b2431;
    --text: #e6e0d4;
    --muted: #9ba3ad;
    --rule: #2d3847;
    --accent: #9dbad0;
    --highlight: rgb(240 200 116 / 0.3);

    --ok-bg: #2a3326;    --ok-fg: #c3cdb5;
    --info-bg: #233441;  --info-fg: #b4c8d4;
    --warn-bg: #3d2a1d;  --warn-fg: #e8b896;
    --weak-bg: #2f2834;  --weak-fg: #cdbfcc;
  }
}

/* Grundlayout und Schrift */
body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
p, li, td, dd { hyphens: auto; -webkit-hyphens: auto; }
p { text-wrap: pretty; }

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
  hyphens: manual;
}
h1 { font-size: 2.1rem; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--highlight); }

strong { font-weight: 650; }
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
img { max-width: 100%; height: auto; }
/* Bilder im Beitrag: höchstens 70 % der Fensterhöhe bzw. 36rem, Seitenverhältnis bleibt */
article img {
  display: block;
  width: auto;
  max-height: min(70vh, 36rem);
  margin: 2.5rem auto 0.5rem;
}

/* Kopf und Fuß */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
.site-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
footer {
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

/* Startseite, Listen, Beitrag */
.intro { color: var(--muted); font-style: italic; margin: 0 0 2rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 0.75rem; }
.post-list time {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin-right: 0.75rem;
}
.post-list .count { color: var(--muted); font-size: 0.9rem; margin-left: 0.5rem; }
article > time { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.personen {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tabellen (Quellen) */
.table-wrap { margin: 1.5rem 0 2.5rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.9rem 0.65rem 0;
}
th:last-child, td:last-child { padding-right: 0; }
th {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--rule);
}
td { border-bottom: 1px solid var(--rule); }
td[data-label="Anmerkung"] { color: var(--muted); font-size: 0.82rem; }
td[data-label="Status"] { white-space: nowrap; }

.status {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--weak-bg);
  color: var(--weak-fg);
}
.status-ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.status-info { background: var(--info-bg); color: var(--info-fg); }
.status-warn { background: var(--warn-bg); color: var(--warn-fg); }

/* Auf schmalen Bildschirmen wird jede Tabellenzeile zu einer Karte */
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.75rem; }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td { display: block; width: 100%; }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-wrap tr { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .table-wrap tr:first-child { border-top: 2px solid var(--rule); }
  .table-wrap td { border: 0; padding: 0.2rem 0; white-space: normal; }
  .table-wrap td:empty { display: none; }
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .table-wrap td:first-child { font-weight: 600; font-size: 0.95rem; }
  .table-wrap td:first-child::before,
  .table-wrap td[data-label="Status"]::before { display: none; }
}
