:root {
  --papier: #faf9f6; --tinte: #16191d; --leise: #646a72; --linie: #dcd9d1;
  --akzent: #1c4f3c; --feld: #e9efe9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --papier: #121416; --tinte: #e6e4de; --leise: #9aa0a6; --linie: #2c3034; --akzent: #8fc7a8; --feld: #1c2a23; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration-color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent); }

header.kopf {
  position: sticky; top: 0; z-index: 1; background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
header.kopf div {
  max-width: 46rem; margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; gap: 1.5rem; align-items: baseline; overflow-x: auto; white-space: nowrap;
}
header.kopf a { text-decoration: none; color: var(--leise); font-size: .9rem; }
header.kopf a:hover { color: var(--tinte); }
header.kopf a.marke { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.15rem; color: var(--tinte); margin-right: auto; }

main { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 6rem; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 .6rem; }
h2 { font-size: 1.7rem; margin: 4rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); }
p { margin: 0 0 1rem; }
.vorspann { font-size: 1.15rem; color: var(--leise); max-width: 36rem; }
.klein { font-size: .9rem; color: var(--leise); }
strong { font-weight: 600; }

/* Kennzahlen: eine Zeile, durch Linien getrennt */
dl.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2.5rem 0 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
dl.zahlen div { padding: 1rem 1rem 1rem 0; }
dl.zahlen div + div { padding-left: 1rem; border-left: 1px solid var(--linie); }
dl.zahlen dt { font-size: .85rem; color: var(--leise); }
dl.zahlen dd { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.9rem; line-height: 1.2; }
@media (max-width: 560px) {
  dl.zahlen { grid-template-columns: 1fr 1fr; }
  dl.zahlen div:nth-child(3) { padding-left: 0; border-left: 0; }
  dl.zahlen div:nth-child(n+3) { border-top: 1px solid var(--linie); }
}

.rolle { overflow-x: auto; margin: 1.2rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .8rem .5rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { font-weight: 400; font-size: .85rem; color: var(--leise); }
td.z, th.z { text-align: center; padding-right: .4rem; padding-left: .4rem; white-space: nowrap; }
td.immer { color: var(--akzent); font-weight: 600; }
td.nie { color: var(--linie); }
tbody th { font-weight: 400; }
tr.gruppe th { padding-top: 2rem; font-weight: 600; font-size: 1.05rem; border-bottom-color: var(--tinte); }
tr.gruppe th span { font-weight: 400; font-size: .85rem; color: var(--leise); margin-left: .5rem; }
tr.fest th, tr.fest td { background: var(--feld); }
tr.fest th { padding-left: .6rem; }

/* Balken: Breite = Anzahl von 20 */
td.balken { width: 50%; }
td.balken i { display: block; height: .7rem; margin-top: .45rem; background: var(--akzent); width: calc(var(--n) * 5%); min-width: 1px; }

ul { padding-left: 1.1rem; margin: 0 0 1rem; }
li { margin-bottom: .4rem; }

/* Startseite */
ul.faecher { list-style: none; padding: 0; margin: 3rem 0 0; border-top: 1px solid var(--linie); }
ul.faecher li { margin: 0; border-bottom: 1px solid var(--linie); }
ul.faecher a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.2rem 0; text-decoration: none; }
ul.faecher b { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 400; font-size: 1.5rem; }
ul.faecher span { color: var(--leise); font-size: .9rem; text-align: right; }
