/* Eine Datei, keine Abhängigkeiten. Keine Web-Fonts, kein CDN, keine Skripte:
   die Seite lädt aus keiner fremden Quelle nach. Das ist nicht nur schlank,
   es hält auch die Datenschutzerklärung kurz: es gibt keinen Drittanbieter,
   an den ein Browser beim Aufruf eine IP-Adresse schickt. */

:root {
  color-scheme: light dark;
  --bg: #fdfdfb;
  --fg: #1f2124;
  --muted: #5d6167;
  --rule: #e2e2dd;
  --accent: #6d4c2f;
  --code-bg: #f2f1ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --fg: #e6e4df;
    --muted: #a0a4aa;
    --rule: #2c2f33;
    --accent: #cfa971;
    --code-bg: #212427;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
}

header.site a.brand {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

nav.site {
  margin-top: 0.5rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.1rem;
}

nav.site a:hover, nav.site a:focus { color: var(--accent); text-decoration: underline; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

p, ul, ol, dl { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

a { color: var(--accent); }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

code { background: var(--code-bg); padding: 0.12em 0.35em; border-radius: 3px; }

pre {
  background: var(--code-bg);
  padding: 0.9rem 1rem;
  border-radius: 5px;
  overflow-x: auto;
  line-height: 1.5;
}

pre code { background: none; padding: 0; }

/* Breite Inhalte scrollen in sich, nie die Seite. */
.scroll { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

.note {
  border-left: 3px solid var(--accent);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

address { font-style: normal; }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site a { color: var(--muted); }
