:root {
  /* Icon „extern“ aus icons.py (python3 Website/werkzeug/icons.py --css), Linie in einem Strich, Farbe vom Text */
  --icon-extern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 3.25h-3.25v9.5h9.5V9.5M9 3.25h3.75V7M12.75 3.25 7 9' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --papier: #f8f5ee;
  --karte: #fffdf7;
  --tinte: #1a1714;
  --tinte-2: #5f584d;
  --linie: #ddd5c4;
  --link-linie: #c9bea8;
  --gelb: #f5c518;
  --gelb-text: #7a5f00;
  --marker: rgba(245, 197, 24, .5);
  --slug: #1a1714;
  --rot: #c41e1e;
  --buehne: #0c0c0d;
  --buehne-fg: #ece8e0;
  --buehne-2: #a7a297;
  --kasten: #121110;
  --kasten-fg: #ece8e0;
  --kasten-2: #a7a297;
  --kasten-linie: rgba(236, 232, 224, .16);
  --schatten: 0 1px 0 rgba(26, 23, 20, .05), 0 12px 32px -12px rgba(26, 23, 20, .28);
  --f-titel: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-text: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-karte: "Courier Prime", "Courier New", Courier, monospace;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #131211; --karte: #1b1a18; --tinte: #ece8e0; --tinte-2: #a8a296; --linie: #2f2c28; --link-linie: #57524a;
    --gelb-text: #f5c518; --marker: transparent; --slug: #f5c518; --rot: #e4443a;
    --buehne: #080808; --kasten: #1d1b18; --kasten-linie: rgba(236, 232, 224, .12);
    --schatten: 0 12px 32px -12px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #131211; --karte: #1b1a18; --tinte: #ece8e0; --tinte-2: #a8a296; --linie: #2f2c28; --link-linie: #57524a;
  --gelb-text: #f5c518; --marker: transparent; --slug: #f5c518; --rot: #e4443a;
  --buehne: #080808; --kasten: #1d1b18; --kasten-linie: rgba(236, 232, 224, .12);
  --schatten: 0 12px 32px -12px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

body { background: var(--papier); color: var(--tinte); }
.seite {
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.65;
  font-optical-sizing: auto; -webkit-text-size-adjust: 100%;
}
@media (min-width: 760px) { .seite { font-size: 1.125rem; } }

/* Außenabstand einmal pro Band */
.band {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.innen { max-width: 1120px; margin-inline: auto; }

a { color: inherit; }
/* Links „ruhig lesen“ (Seitenkanon 4, Michael 25.10.2026): intern eine feine Linie, Gelb erst beim Zeigen;
   extern ohne Linie mit eigenem Icon „extern“ (icons.py), in neuem Tab */
.lauftext a, .autor a {
  text-decoration: underline 1px var(--link-linie); text-underline-offset: .25em;
  transition: background-color .12s;
}
.lauftext a:hover, .autor a:hover { background: var(--gelb); color: #111; text-decoration-color: transparent; }
.lauftext a[target="_blank"], .autor a[target="_blank"] { text-decoration: none; }
.lauftext a[target="_blank"]:hover, .autor a[target="_blank"]:hover { background: none; color: inherit; text-decoration: underline 1px var(--tinte-2); }
/* Jeder Link, der einen neuen Tab öffnet, trägt das eigene Icon „extern“ (Michael, 8.11.2026): Quadrat mit Pfeil nach
   oben, eine Linie, keine Clipart und kein Emoji. Wo es stört, nimmt die Klasse .ohne-icon es weg. */
.seite a[target="_blank"]::after {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .25em; vertical-align: -.06em;
  background: currentColor; opacity: .8;
  -webkit-mask: var(--icon-extern) center / contain no-repeat; mask: var(--icon-extern) center / contain no-repeat;
}
.seite a[target="_blank"]:hover::after { opacity: 1; }
.seite a.ohne-icon::after { content: none; }
@media (prefers-reduced-motion: reduce) { .lauftext a, .autor a { transition: none; } }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

.sprung {
  position: absolute; left: -999px; top: 0; background: var(--gelb); color: #111;
  font-family: var(--f-karte); padding: .5rem 1rem; z-index: 5;
}
.sprung:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* ── Kopf ─────────────────────────────────────── */
.kopf { background: var(--buehne); color: var(--buehne-fg); }
.kopf .innen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-block: .9rem;
  border-bottom: 1px solid rgba(236, 232, 224, .12);
}
.marke { display: block; width: 128px; line-height: 0; }
.marke img { width: 100%; height: auto; }
.navi ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.navi a {
  font-family: var(--f-karte); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--buehne-2); padding-block: .4rem; display: inline-block;
}
.navi a:hover, .navi a[aria-current] { color: var(--buehne-fg); box-shadow: inset 0 -2px var(--gelb); }

/* Telefon: Menü in einer Zeile halten */
@media (max-width: 420px) {
  .navi ul { gap: .25rem .9rem; }
  .navi a { letter-spacing: .04em; }
}

