:root {
  --grund: #faedde; --flaeche: #fffaf4; --text: #22262b; --leise: #5c5f66; --linie: #e3d3c0;
  --akzent: #1f5fa8; --akzent-hell: #e8f0fa; --warn: #8a5a00; --warn-hell: #fdf3dc;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #15181c; --flaeche: #1d2126; --text: #e7e9ec; --leise: #a3acb7; --linie: #343a42;
          --akzent: #7fb2ee; --akzent-hell: #1e2c3d; --warn: #f0c36a; --warn-hell: #33290f; }
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); line-height: 1.6;
       font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; }
h1, h2, h3, nav, .kopf, .fuss, .knopf, button, th, .marke, .karte span, summary, .klein, .hinweis, time, [class^="marke-"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 0.4rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.5rem; padding-top: 0.2rem; }
h3 { font-size: 1rem; margin: 0 0 0.3rem; }
a { color: var(--akzent); }
.unter { font-size: 1.15rem; color: var(--leise); margin: 0 0 1rem; font-style: italic; }
.klein { font-size: 0.85rem; color: var(--leise); }
.gross { font-size: 1.3rem; }
.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem;
        padding: 0.7rem 1rem; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.marke { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.marke img { border-radius: 10px; }
.marke strong { display: block; font-size: 1.05rem; }
.marke small { color: var(--leise); font-size: 0.78rem; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 0.2rem 0.3rem; }
.kopf nav a { padding: 0.35rem 0.7rem; border-radius: 6px; text-decoration: none; color: var(--text); font-size: 0.92rem; }
.kopf nav a:hover { background: var(--akzent-hell); }
.kopf nav a[aria-current] { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.buehne { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin: 1rem 0 2rem; }
.buehne img { border-radius: 28px; flex: none; }
.buehne div { flex: 1 1 18rem; }
.umschlag { float: right; width: min(40%, 230px); margin: 0.3rem 0 1rem 1.5rem; }
.umschlag img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
section:has(> .umschlag)::after { content: ""; display: block; clear: both; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.karte { display: flex; flex-direction: column; padding: 1.1rem; background: var(--flaeche); border: 1px solid var(--linie);
         border-radius: 10px; text-decoration: none; color: var(--text); }
.karte:hover { border-color: var(--akzent); }
.karte h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.karte p { margin: 0 0 0.8rem; font-size: 0.93rem; flex: 1; }
.karte span { color: var(--akzent); font-weight: 600; font-size: 0.9rem; }
.hinweis { background: var(--warn-hell); color: var(--text); border-left: 4px solid var(--warn); padding: 0.6rem 0.9rem;
           border-radius: 4px; font-size: 0.9rem; }
.offen { background: var(--warn-hell); color: var(--warn); padding: 0 0.25rem; border-radius: 3px; }
.kapitel h2 { font-size: 1.05rem; margin: 1.2rem 0 0.2rem; }
.kapitel.leer p { margin: 0; color: var(--leise); font-size: 0.9rem; }
.eintraege, .verweise { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.eintraege li, .verweise li { padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.verweise a { overflow-wrap: anywhere; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 0.92rem; }
[class^="marke-"] { font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px; }
.marke-aktualisierung { background: var(--akzent-hell); color: var(--akzent); }
.marke-berichtigung { background: var(--warn-hell); color: var(--warn); }
time { font-size: 0.82rem; color: var(--leise); margin-left: 0.3rem; }
.laden { margin: 1.5rem 0; padding: 1.3rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; text-align: center; }
.knopf, button { display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 8px; padding: 0.7rem 1.4rem;
                 font-size: 1.05rem; font-weight: 600; text-decoration: none; cursor: pointer; }
@media (prefers-color-scheme: dark) { .knopf, button { color: #10151b; } }
button.zweit { background: transparent; color: var(--text); border: 1px solid var(--linie); }
.pruef { overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; }
.schritte li { margin-bottom: 0.6rem; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.88em; background: var(--akzent-hell); padding: 0.05rem 0.3rem; border-radius: 4px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; }
.raster div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 0.9rem; }
.raster p { margin: 0; font-size: 0.92rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--linie); }
th { font-size: 0.82rem; color: var(--leise); }
details { border-bottom: 1px solid var(--linie); padding: 0.6rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.5rem 0 0.2rem; }
.fuss { border-top: 1px solid var(--linie); padding: 1.2rem 1rem 2rem; text-align: center; font-size: 0.82rem; color: var(--leise); }
.fuss p { margin: 0.3rem 0; }
.zustimmung { position: fixed; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; max-width: 40rem; margin: 0 auto; background: var(--flaeche);
              border: 1px solid var(--linie); border-radius: 12px; padding: 0.9rem 1.1rem; box-shadow: 0 6px 24px rgba(0,0,0,0.18);
              font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 0.88rem; }
.zustimmung p { margin: 0.3rem 0; }
.zustimmung button { font-size: 0.9rem; padding: 0.45rem 1rem; }
.sprachen a { font-size: 0.8rem !important; padding: 0.25rem 0.5rem !important; color: var(--leise) !important; }
.sprachen a[aria-current] { color: var(--akzent) !important; }
@media print { .kopf nav, .zustimmung, .laden .knopf { display: none; } body { background: #fff; } }
