/* Standardtemplate. Bewusst schlicht und ohne fremde Quellen: keine Schriften
   von aussen, kein Skript, nichts, was den Besucher irgendwohin meldet. */

:root {
  --papier: #ffffff;
  --grund: #f7f8fa;
  --tinte: #16202a;
  --tinte-2: #47586a;
  --leise: #7b8a99;
  --linie: #dde3e9;
  --ton: #1d4ed8;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #161b22;
    --grund: #0d1117;
    --tinte: #e6edf3;
    --tinte-2: #b0bac4;
    --leise: #8b949e;
    --linie: #2b3440;
    --ton: #6ea8fe;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinte-2);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

.innen { max-width: 760px; margin: 0 auto; padding: 0 20px; }

a { color: var(--ton); }
a:hover { text-decoration: none; }

h1, h2, h3 { color: var(--tinte); line-height: 1.22; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 18px; }
h2 { font-size: 1.25rem; margin-bottom: 10px; }

p { margin-bottom: 14px; }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 8px; top: 8px; background: var(--ton); color: #fff; padding: 10px 14px; border-radius: 6px; }

.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); padding: 16px 0; margin-bottom: 36px; }
.marke { font-weight: 700; font-size: 1.15rem; color: var(--tinte); text-decoration: none; }

main { padding-bottom: 60px; }

.fuehrung { color: var(--leise); margin-bottom: 26px; }
.klein { font-size: .88rem; color: var(--leise); }
.leer { color: var(--leise); font-style: italic; }
.anriss { color: var(--tinte-2); }
.zeile { margin-bottom: 6px; }

.bereich { margin-bottom: 38px; }
.anzahl {
  font-size: .8rem; color: var(--leise); background: var(--papier);
  border: 1px solid var(--linie); border-radius: 999px; padding: 1px 9px; vertical-align: middle;
}

.liste { list-style: none; }
.liste li { margin-bottom: 10px; }
.liste.gross li {
  background: var(--papier); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px;
}
.liste.gross h2 { margin-bottom: 6px; }

.beitrag { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.beitrag img { max-width: 100%; height: auto; border-radius: 8px; }
.beitrag figure { margin: 20px 0; }
.beitrag figcaption { font-size: .82rem; color: var(--leise); margin-top: 6px; }
.beitrag ul, .beitrag ol { margin: 0 0 14px 22px; }
.beitrag blockquote {
  border-left: 3px solid var(--linie); padding-left: 14px; margin: 0 0 14px; color: var(--tinte-2);
}
.beitrag code { background: var(--grund); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

.termin { background: var(--grund); border-radius: 8px; padding: 10px 14px; }
.absage { background: #fef2f2; color: #b91c1c; border: 1px solid currentColor; border-radius: 8px; padding: 10px 14px; }

.marke-kat {
  display: inline-block; font-size: .76rem; color: var(--leise);
  border: 1px solid var(--linie); border-radius: 999px; padding: 2px 10px; margin: 4px 4px 0 0;
}

.knopf {
  display: inline-block; background: var(--ton); color: #fff; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; font-weight: 600;
}

.galerie-bild { display: inline-block; width: calc(50% - 8px); margin: 6px 3px; vertical-align: top; }

.fuss { border-top: 1px solid var(--linie); padding: 24px 0 40px; color: var(--leise); font-size: .88rem; }
.fuss p { margin: 0; }

[hidden] { display: none !important; }

/* ——— Formulare ———
   Schlicht, weil die Vorlagen später ohnehin neu kommen. Wichtig ist nur,
   dass jedes Feld eine sichtbare Beschriftung hat und der Fokus zu sehen ist. */
.formular { display: grid; gap: 14px; max-width: 560px; margin: 24px 0; }
.formular-feld { display: grid; gap: 6px; }
.formular label { font-weight: 600; }
.formular-feld label:has(input[type="checkbox"]) { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.formular input:not([type="checkbox"]), .formular textarea, .formular select {
  font: inherit; padding: 9px 12px; border: 1px solid var(--linie); border-radius: 8px; width: 100%; background: var(--papier); color: var(--tinte);
}
.formular input:focus-visible, .formular textarea:focus-visible, .formular select:focus-visible, .formular button:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
.formular small { color: var(--tinte-2); }
.formular button { justify-self: start; font: inherit; font-weight: 600; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--tinte); color: var(--papier); cursor: pointer; }
.formular-muster, .formular-an, .formular-erklaerung, .formular-fussnote { margin: 0; }
.formular-aus { padding: 12px 16px; background: var(--grund); border-radius: 8px; }

.md-bild { margin: 1.4em 0; }
.md-bild img { display: block; width: 100%; height: auto; border-radius: 8px; }
.md-bild figcaption { margin-top: .4em; font-size: .9em; opacity: .75; }
.md-tabelle { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.md-tabelle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.md-tabelle table { min-width: 100%; border-collapse: collapse; font-size: .95em; }
.md-tabelle th, .md-tabelle td { padding: .55em .8em; border-bottom: 1px solid rgba(127, 127, 127, .3); text-align: left; vertical-align: top; white-space: nowrap; }
.md-tabelle td { white-space: normal; min-width: 8em; }
