/* Bürgerportal – barrierearm (WCAG 2.1 AA): Kontraste ≥ 4,5:1, sichtbarer Fokus, skalierbar bis 400 %. */
:root {
  --text: #1b1f24; --leise: #4a5360; --flaeche: #ffffff; --grund: #f4f5f7; --linie: #d5d9df;
  --marke: #1d3b6a; --marke-hell: #e8eef7; --link: #154a9c; --fokus: #c2410c;
  --warnung: #8a4b00; --warnung-hell: #fff4e0; --mark: #fff1a8;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #e8eaed; --leise: #b4bcc6; --flaeche: #1b1f24; --grund: #121418; --linie: #3a414b;
          --marke: #9dbbe8; --marke-hell: #22324a; --link: #9cc3ff; --fokus: #ffb36b;
          --warnung: #ffcf8a; --warnung-hell: #3a2a10; --mark: #5a4a00; }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; line-height: 1.55;
       color: var(--text); background: var(--grund); }
.breite { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
main:focus { outline: none; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.5rem 0 1rem; color: var(--marke); }
h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprungmarke { position: absolute; left: -999px; top: 0; background: var(--flaeche); padding: .75rem 1rem; z-index: 10; }
.sprungmarke:focus { left: 1rem; }
.leise { color: var(--leise); }
.klein { font-size: .9rem; }
.einleitung { font-size: 1.1rem; max-width: 48rem; }
code { background: var(--marke-hell); padding: .1rem .35rem; border-radius: 4px; word-break: break-all; }

.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; }
.marke { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--text); }
.marke strong { display: block; font-size: 1.15rem; color: var(--marke); }
.marke small { display: block; color: var(--leise); }
.kopfsuche { display: flex; gap: .4rem; }
.kopfsuche input { width: 14rem; max-width: 50vw; }
.hauptnav { background: var(--marke); }
@media (prefers-color-scheme: dark) { .hauptnav { background: #16243a; } }
.hauptnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 auto; }
.hauptnav a { display: block; padding: .7rem .9rem; color: #fff; text-decoration: none; font-weight: 600; }
.hauptnav a:hover, .hauptnav a[aria-current="page"] { background: rgba(255,255,255,.16); text-decoration: underline; }
.hauptnav a:focus-visible { outline-color: #ffd28a; }

input, select, button { font: inherit; padding: .5rem .65rem; border: 1px solid #6b7480; border-radius: 6px; background: var(--flaeche); color: var(--text); min-height: 2.75rem; }
button { background: var(--marke); color: #fff; border-color: var(--marke); font-weight: 600; cursor: pointer; }
@media (prefers-color-scheme: dark) { button { color: #0d1626; } }
label { font-weight: 600; display: block; margin-bottom: .25rem; }
.filter { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; background: var(--flaeche); padding: 1rem; border: 1px solid var(--linie); border-radius: 8px; }
.grosssuche { background: var(--flaeche); padding: 1.25rem; border: 1px solid var(--linie); border-radius: 8px; margin: 1rem 0 2rem; }
.suchzeile { display: flex; flex-wrap: wrap; gap: .5rem; }
.suchzeile input { flex: 1 1 16rem; }

.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 0 2.5rem; }
.sitzungsliste, .liste, .treffer, .kartenliste, .kachelliste, .dateiliste { list-style: none; padding: 0; margin: 0; }
.sitzung-zeile { display: flex; gap: 1rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--linie); }
.sitzung-zeile p { margin: .15rem 0 0; }
.sitzung-zeile.abgesagt a { text-decoration: line-through; }
.datum-block { flex: 0 0 4.2rem; text-align: center; background: var(--marke-hell); border-radius: 8px; padding: .35rem 0; }
.datum-block .tag { display: block; font-size: 1.4rem; font-weight: 700; color: var(--marke); line-height: 1.1; }
.datum-block .monat { display: block; font-size: .8rem; color: var(--leise); }
.liste li, .treffer li { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.liste p, .treffer p { margin: .15rem 0 0; }
.kartenliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.kartenliste li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 1rem; }
.kartenliste h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.kachelliste { display: flex; flex-wrap: wrap; gap: .5rem; }
.kachelliste a { display: block; padding: .55rem .9rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; }
.auszug { color: var(--leise); }
mark { background: var(--mark); color: inherit; padding: 0 .1em; }

.brotkrumen { margin-top: 1rem; font-size: .9rem; }
.eckdaten { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 1rem 1.25rem; }
.eckdaten dt { font-weight: 600; }
.eckdaten dd { margin: 0; }
@media (max-width: 34rem) { .eckdaten { grid-template-columns: 1fr; } .eckdaten dd { margin-bottom: .5rem; } }
.tagesordnung { list-style: none; padding: 0; margin: 0; }
.tagesordnung > li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.tagesordnung > li.ebene-1 { margin-left: 2rem; }
.tagesordnung > li.ebene-2 { margin-left: 4rem; }
.top-nr { flex: 0 0 3rem; font-weight: 700; color: var(--marke); }
.top-inhalt p { margin: .3rem 0; }
.tagesordnung.nichtoeffentlich { color: var(--leise); }
.dateiliste li { padding: .2rem 0; }
.datei::before { content: "📄 "; }
.beschluss-kurz { background: var(--marke-hell); border-left: 4px solid var(--marke); padding: .5rem .9rem; margin-top: .6rem; border-radius: 0 6px 6px 0; }
.hinweis { padding: .75rem 1rem; border-radius: 6px; border-left: 4px solid; }
.hinweis.warnung, .etikett.warnung { background: var(--warnung-hell); color: var(--warnung); }
.etikett.warnung { padding: 0 .4rem; border-radius: 4px; }
.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); }
.tabelle th, .tabelle td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle thead th { background: var(--marke-hell); }
.tabelle tbody th { font-weight: 600; }
.text { max-width: 48rem; }
.blaettern { display: flex; gap: 1.5rem; align-items: center; margin: 1.5rem 0; flex-wrap: wrap; }
.abstand { margin-top: 1rem; }

.fuss { margin-top: 3rem; background: var(--flaeche); border-top: 1px solid var(--linie); padding: 1.5rem 0; font-size: .95rem; }
.fuss ul { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media print { .kopf, .hauptnav, .fuss, .filter, .kopfsuche { display: none; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.filter > div { flex: 1 1 12rem; min-width: 0; }
.filter select, .filter input { width: 100%; max-width: 100%; }
.kopfsuche input { min-width: 0; }
