@charset "UTF-8";
/* CMS der Website Naturpark Kyffhäuser.
   Aufbau: dunkelgrüne Seitenleiste mit der Navigation, daneben die Arbeitsfläche mit weißen Karten auf hellem Grund.
   Farben aus der Palette der Nationalen Naturlandschaften (Dunkel-Grüngelb als Bedienfarbe). Keine fremden Schriften,
   keine Inline-Stile (Content-Security-Policy). Bedienbar mit Maus, Tastatur und am Tablet; Zielflächen mindestens 40 px. */
:root {
  --text: #1c211a;
  --leise: #5a6156;
  --linie: #dfe3d9;
  --linie-fest: #8b9084;
  --grund: #f3f5ef;
  --flaeche: #f6f7f3;
  --karte: #fff;
  --bedien: #446428;
  --bedien-dunkel: #34501d;
  --bedien-hell: #edf3e5;
  --leiste: #263d17;
  --leiste-text: #dfe8d3;
  --warn: #8a5a00;
  --warn-flaeche: #fff4d6;
  --fehler: #9b1c2e;
  --fehler-flaeche: #fde8eb;
  --gut: #2d6a2d;
  --gut-flaeche: #e7f3e2;
  --blau: #205b7d;
  --radius: 12px;
  --radius-klein: 8px;
  --schatten: 0 1px 2px rgba(28, 33, 26, 0.06), 0 2px 8px rgba(28, 33, 26, 0.05);
  --schatten-hoch: 0 4px 16px rgba(28, 33, 26, 0.12);
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
a { color: var(--bedien-dunkel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
small, .klein { color: var(--leise); font-size: 0.875rem; }
.nobr { white-space: nowrap; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 12px; top: 12px; z-index: 30; padding: 10px 14px; border-radius: var(--radius-klein); background: #fff; box-shadow: var(--schatten-hoch); }
.symbol { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
code { padding: 2px 6px; border-radius: 6px; background: var(--flaeche); border: 1px solid var(--linie); font-family: ui-monospace, Consolas, "Liberation Mono", monospace; font-size: 0.88em; overflow-wrap: anywhere; }

/* ---------- Rahmen: Seitenleiste und Arbeitsfläche ---------- */
.rahmen { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.seitenleiste {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100vh;
  padding: 18px 14px 16px;
  overflow-y: auto;
  background: var(--leiste);
  color: var(--leiste-text);
}
.seitenleiste a { color: inherit; text-decoration: none; }
.marke { display: flex; flex-direction: column; gap: 2px; padding: 2px 6px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.marke img { display: block; width: 100%; max-width: 212px; height: auto; }
.marke small { color: #b9c9a6; font-size: 0.78rem; letter-spacing: 0.02em; }
.seitenleiste nav { flex: 1 1 auto; }
.nav-titel { margin: 16px 10px 6px; color: #a9bb95; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.seitenleiste ul { margin: 0; padding: 0; list-style: none; }
.seitenleiste nav a, .konto > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.97rem;
}
.seitenleiste nav a:hover, .konto > a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.seitenleiste [aria-current="page"] { background: #fff; color: var(--leiste); font-weight: 700; box-shadow: var(--schatten); }
.seitenleiste nav [aria-current="page"]:hover, .konto > [aria-current="page"]:hover { background: #fff; color: var(--leiste); }
.konto { display: flex; flex-direction: column; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.konto span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.konto small { color: #b9c9a6; font-size: 0.78rem; }
.konto [aria-current="page"] small { color: var(--leise); }
.konto form { margin: 8px 0 0; }
.konto .knopf.schlicht { width: 100%; justify-content: center; min-height: 40px; border-color: rgba(255, 255, 255, 0.45); background: transparent; color: #fff; box-shadow: none; }
.konto .knopf.schlicht:hover { border-color: #fff; background: #fff; color: var(--leiste); }
.buehne { min-width: 0; }
main { max-width: 1180px; margin: 0 auto; padding: 32px 36px 96px; }

/* Anmeldeseite (ohne Seitenleiste) */
body.gast { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 8vh 16px 40px; background: linear-gradient(180deg, var(--leiste) 0, var(--leiste) 300px, var(--grund) 300px); }
.gastkopf { width: 100%; max-width: 27rem; margin: 0 0 20px; }
.gastkopf .marke { padding: 0; border: 0; color: #fff; text-decoration: none; }
.gastkopf .marke img { max-width: 250px; }
body.gast main { width: 100%; max-width: 27rem; margin: 0; padding: 28px 28px 24px; border-radius: 16px; background: var(--karte); box-shadow: var(--schatten-hoch); }
body.gast h1 { font-size: 1.45rem; }
body.gast .formular { padding: 0; border: 0; box-shadow: none; }
body.gast .knopf { width: 100%; justify-content: center; }

/* ---------- Überschriften, Text ---------- */
h1 { margin: 0 0 20px; font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
section { margin: 0 0 28px; }
.einleitung { max-width: 62rem; margin: -6px 0 22px; color: var(--leise); font-size: 1.02rem; }
.einleitung strong { color: var(--text); }
.pfad { margin: -12px 0 20px; color: var(--leise); font-size: 0.88rem; }
.pfad a { color: var(--leise); }
.pfad a:hover { color: var(--bedien-dunkel); }

/* ---------- Meldungen ---------- */
.meldung { display: block; max-width: 62rem; margin: 0 0 20px; padding: 13px 16px 13px 18px; border: 1px solid; border-left-width: 5px; border-radius: var(--radius-klein); background: var(--karte); box-shadow: var(--schatten); }
.meldung.erfolg { border-color: #b9d8ae; border-left-color: var(--gut); background: var(--gut-flaeche); }
.meldung.hinweis { border-color: #ecd797; border-left-color: #c98f00; background: var(--warn-flaeche); }
.meldung.fehler { border-color: #f1bcc4; border-left-color: var(--fehler); background: var(--fehler-flaeche); }
.meldung form { margin-top: 10px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--bedien-dunkel);
  border-radius: 10px;
  background: var(--bedien);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(28, 33, 26, 0.12);
  transition: background-color 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.knopf:hover { border-color: #263d17; background: var(--bedien-dunkel); box-shadow: 0 2px 6px rgba(28, 33, 26, 0.2); }
.knopf:active { box-shadow: none; }
.knopf.schlicht { border-color: #c5cbbb; background: var(--karte); color: var(--bedien-dunkel); box-shadow: 0 1px 1px rgba(28, 33, 26, 0.05); }
.knopf.schlicht:hover { border-color: var(--bedien); background: var(--bedien-hell); }
.knopf[disabled] { opacity: 0.65; cursor: default; }
.klein-knopf { min-width: 40px; min-height: 40px; padding: 4px 10px; border: 1px solid #c5cbbb; border-radius: var(--radius-klein); background: var(--karte); color: var(--text); font: inherit; font-size: 0.875rem; cursor: pointer; transition: background-color 0.12s, border-color 0.12s; }
.klein-knopf:hover { border-color: var(--bedien); background: var(--bedien-hell); }
.klein-knopf[disabled] { border-color: var(--linie); background: transparent; color: #b5b9ae; cursor: default; }

/* ---------- Karten, Listen, Kacheln ---------- */
.kasten { padding: 20px 22px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.kasten > h2:first-child { margin-bottom: 14px; }
.kasten > :last-child { margin-bottom: 0; }
.kasten.gesperrt { background: var(--flaeche); box-shadow: none; }
details.kasten { margin: 24px 0 0; }
summary { cursor: pointer; font-weight: 600; }
summary:hover { color: var(--bedien-dunkel); }
.liste { margin: 0; padding: 0; list-style: none; }
.liste li { padding: 10px 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
main > .liste { padding: 4px 22px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.liste.gross li { padding: 14px 0; }
.liste.gross small { display: inline-block; max-width: 60rem; margin-top: 2px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kachel { padding: 18px 20px 12px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.kachel h3 { margin: 0 0 8px; padding-bottom: 10px; border-bottom: 2px solid var(--bedien-hell); color: var(--bedien-dunkel); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.kachel ul { margin: 0; padding: 0; list-style: none; }
.kachel li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 7px 0; border-top: 1px solid var(--linie); }
.kachel li:first-child { border-top: 0; }
.kachel li a { flex: 1 1 auto; font-weight: 600; text-decoration: none; }
.kachel li a:hover { text-decoration: underline; }
.zahl { min-width: 2.2em; padding: 1px 8px; border-radius: 999px; background: var(--flaeche); color: var(--leise); font-size: 0.82rem; font-variant-numeric: tabular-nums; text-align: center; }
.marke-klein { display: inline-block; padding: 2px 9px; border: 1px solid var(--linie); border-radius: 999px; background: var(--flaeche); color: var(--leise); font-size: 0.76rem; font-weight: 600; line-height: 1.4; white-space: nowrap; vertical-align: 1px; }
.marke-klein.warn, .marke-klein.entwurf { border-color: #ecd797; background: var(--warn-flaeche); color: var(--warn); }
.marke-klein.sichtbar { border-color: #b9d8ae; background: var(--gut-flaeche); color: var(--gut); }
.marke-klein.archiv { background: var(--flaeche); }

/* ---------- Schnittstellen ---------- */
.ampeln { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.ampel { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 14px 44px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.ampel::before { content: ""; position: absolute; left: 16px; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: #9aa091; box-shadow: 0 0 0 4px rgba(154, 160, 145, 0.2); }
.ampel.gruen::before { background: var(--gut); box-shadow: 0 0 0 4px rgba(45, 106, 45, 0.16); }
.ampel.gelb::before { background: #d9a400; box-shadow: 0 0 0 4px rgba(217, 164, 0, 0.2); }
.ampel.rot::before { background: var(--fehler); box-shadow: 0 0 0 4px rgba(155, 28, 46, 0.16); }
.ampel span { font-size: 0.92rem; }
.punkt { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: #9aa091; box-shadow: 0 0 0 4px rgba(154, 160, 145, 0.2); }
.punkt.gruen { background: var(--gut); box-shadow: 0 0 0 4px rgba(45, 106, 45, 0.16); }
.punkt.gelb { background: #d9a400; box-shadow: 0 0 0 4px rgba(217, 164, 0, 0.2); }
.punkt.rot { background: var(--fehler); box-shadow: 0 0 0 4px rgba(155, 28, 46, 0.16); }
.zustand { margin: 0 0 10px; }
.zustand.gruen { color: var(--gut); }
.zustand.rot { color: var(--fehler); }
.zustand.gelb { color: var(--warn); }
.angaben { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-klein); background: var(--flaeche); }
.angaben div { min-width: 0; }
.angaben dt { color: var(--leise); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.angaben dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.schnittstelle { margin-bottom: 18px; }
.schnittstelle details { margin: 0 0 12px; overflow-x: auto; }
.schnittstelle details .tabelle { margin-top: 10px; box-shadow: none; font-size: 0.9rem; }
.schnittstelle .zeile form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }

/* ---------- Tabellen ---------- */
.tabelle { width: 100%; border: 1px solid var(--linie); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; background: var(--karte); box-shadow: var(--schatten); }
.tabelle th, .tabelle td { padding: 11px 14px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.tabelle th { background: var(--flaeche); color: var(--leise); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tabelle thead th:first-child { border-top-left-radius: var(--radius); }
.tabelle thead th:last-child { border-top-right-radius: var(--radius); }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover td { background: #fafbf8; }
.tabelle td a { text-decoration: none; }
.tabelle td a:hover { text-decoration: underline; }
.tabelle tr.stand-archiv td { color: var(--leise); }
.tabelle tr[hidden] { display: none; }
.kasten .tabelle { box-shadow: none; }
.leiste { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 0 0 18px; }
.suche { display: flex; flex-direction: column; gap: 3px; color: var(--leise); font-size: 0.8rem; font-weight: 600; }
.reiter { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 4px; border-radius: 12px; background: #e6eadf; }
.reiter a { min-height: 36px; padding: 6px 16px; border-radius: 9px; color: var(--text); font-size: 0.93rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.reiter a:hover { background: rgba(255, 255, 255, 0.6); }
.reiter [aria-current="page"], .reiter [aria-current="page"]:hover { background: var(--karte); color: var(--bedien-dunkel); box-shadow: var(--schatten); }
.blaettern a { min-width: 40px; text-align: center; }

/* ---------- Formulare ---------- */
.formular { max-width: 62rem; }
main > .formular { padding: 24px 26px 0; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
main > .formular.schmal, .formular.schmal { max-width: 28rem; }
main > .formular.schmal { padding-bottom: 22px; }
.feld { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.feld.kurz { max-width: 20rem; }
.feld > label, .feld > .label, .feld > legend { display: block; margin: 0 0 5px; padding: 0; font-size: 0.93rem; font-weight: 600; }
.hinweis { display: block; margin: -2px 0 6px; color: var(--leise); font-size: 0.85rem; }
input[type="text"], input[type="url"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--linie-fest);
  border-radius: var(--radius-klein);
  background: var(--karte);
  color: var(--text);
  font: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:hover, select:hover, textarea:hover { border-color: #5f6659; }
input[type="text"]:focus, input[type="url"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="datetime-local"]:focus, input[type="search"]:focus, select:focus, textarea:focus {
  border-color: var(--bedien);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(68, 100, 40, 0.28);
}
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--bedien); vertical-align: -3px; }
input[type="file"] { max-width: 100%; padding: 8px; border: 1px dashed var(--linie-fest); border-radius: var(--radius-klein); background: var(--flaeche); font: inherit; font-size: 0.9rem; }
::placeholder { color: #8b9084; }
textarea { line-height: 1.5; resize: vertical; }
textarea.html { font-family: ui-monospace, Consolas, "Liberation Mono", monospace; font-size: 0.9rem; }
input[readonly], textarea[readonly] { border-color: var(--linie); background: var(--flaeche); color: var(--leise); }
input[readonly]:hover, textarea[readonly]:hover { border-color: var(--linie); }
.werkzeug { display: flex; flex-wrap: wrap; gap: 0; width: fit-content; max-width: 100%; margin: 0 0 -1px; border: 1px solid var(--linie-fest); border-radius: var(--radius-klein) var(--radius-klein) 0 0; background: var(--flaeche); overflow: hidden; }
.werkzeug button { min-height: 36px; padding: 4px 12px; border: 0; border-right: 1px solid var(--linie); background: transparent; color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.werkzeug button:hover { background: var(--bedien-hell); color: var(--bedien-dunkel); }
.werkzeug + textarea { border-top-left-radius: 0; }
.mit-vorschau { display: flex; align-items: flex-start; gap: 12px; }
.mit-vorschau .breit { flex: 1 1 auto; min-width: 0; }
.vorschau { flex: none; width: 96px; height: 64px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); object-fit: cover; }
.vorschau.leer { display: block; border-style: dashed; }
.bilder { padding: 14px 16px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); }
.bildzeile { display: grid; grid-template-columns: 4.5rem 96px 2fr 2fr 1.5fr; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px solid var(--linie); }
.bildzeile:first-of-type { border-top: 0; }
.bildzeile label { color: var(--leise); font-size: 0.8rem; font-weight: 600; }
.bildzeile .nr { align-self: center; font-weight: 700; }
.aktionen { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 28px 0 0; padding: 14px 0; border-top: 1px solid var(--linie); background: var(--karte); }
main > .formular > .aktionen { margin: 28px -26px 0; padding: 14px 26px; border-radius: 0 0 var(--radius) var(--radius); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); box-shadow: 0 -6px 12px -8px rgba(28, 33, 26, 0.18); }
.standzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; }
.zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 10px 0 0; }
.zeile label { display: flex; flex-direction: column; gap: 3px; color: var(--leise); font-size: 0.8rem; font-weight: 600; }
.zeile input, .zeile select { min-width: 12rem; }
.zeile label.haken { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-size: 0.93rem; font-weight: 400; }
.zeile label.haken input { min-width: 0; }
.zeile.paar label { flex: 1 1 18rem; }
.zeile.paar input { width: 100%; }
.zeile > a { align-self: center; }
input.schmal { width: 5rem; min-height: 40px; padding: 4px 8px; }
.tabelle input[type="text"] { min-height: 40px; padding: 4px 10px; }
.randoben { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--linie); }

/* ---------- Bausteine einer Seite ---------- */
.abschnitt-block { margin: 0; padding: 16px 18px 18px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.abschnitt-block > h2 { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: var(--bedien-hell); color: var(--bedien-dunkel); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.baustein { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--linie); border-left: 4px solid #c5cbbb; border-radius: var(--radius-klein); background: var(--flaeche); scroll-margin-top: 16px; }
.baustein.art-text { border-left-color: var(--bedien); }
.baustein.art-bild, .baustein.art-bilder { border-left-color: #b58a2a; }
.baustein.art-film, .baustein.art-ton { border-left-color: #8c4a7a; }
.baustein.art-bildband { border-left-color: var(--blau); background: #eef4f7; }
.baustein.art-kacheln, .baustein.art-liste { border-left-color: #a06039; }
.baustein.neu { margin: 14px 0; padding: 18px 20px; border: 2px solid var(--bedien); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten-hoch); }
.baustein.neu.neuer-abschnitt { border-style: dashed; }
.baustein.neu h3 { color: var(--bedien-dunkel); }
.bs-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bs-kurz { flex: 1 1 16rem; min-width: 0; overflow: hidden; color: var(--leise); font-size: 0.93rem; text-overflow: ellipsis; white-space: nowrap; }
.bs-knoepfe { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.baustein details { margin-top: 8px; }
.baustein summary { width: fit-content; color: var(--bedien-dunkel); font-size: 0.9rem; }
.baustein details[open] { margin-top: 12px; padding: 16px 16px 14px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--karte); }
.baustein details form { margin-top: 12px; }
.hinzu { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--linie); }
.hinzu select { min-width: 14rem; }
/* „+ Neuer Abschnitt“: eine Linie zwischen den Abschnitten mit der Auswahl in der Mitte */
.abschnitt-neu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 10px 0; padding: 6px 0; }
.abschnitt-neu .an-linie { flex: 1 1 24px; height: 0; border-top: 2px dashed #c5cbbb; }
.abschnitt-neu label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--bedien-dunkel); font-size: 0.9rem; font-weight: 600; }
.abschnitt-neu .an-plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bedien); color: #fff; font-size: 1.1rem; line-height: 1; }
.abschnitt-neu select { width: auto; min-width: 11rem; min-height: 40px; padding: 4px 10px; }
.abschnitt-neu .knopf { min-height: 40px; padding: 6px 14px; }
.abschnitt-neu:hover .an-linie, .abschnitt-neu:focus-within .an-linie { border-color: var(--bedien); }

/* ---------- Medien ---------- */
.medienraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 0 0 22px; padding: 0; list-style: none; }
.medienraster li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 8px 10px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); transition: box-shadow 0.12s, border-color 0.12s; }
.medienraster li:hover, .medienraster li:focus-within { border-color: var(--bedien); box-shadow: var(--schatten-hoch); }
.medienraster a { display: block; text-decoration: none; }
.medienraster img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-klein); background: var(--flaeche); }
.mr-name { display: block; margin-top: 8px; overflow: hidden; font-size: 0.85rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mr-angaben { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--leise); font-size: 0.76rem; }
.pfadfeld { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--leise); font-size: 0.8rem; font-weight: 600; }
.pfadfeld input { width: 22rem; max-width: 100%; min-height: 40px; padding: 4px 10px; border-color: var(--linie); background: var(--flaeche); color: var(--text); font-family: ui-monospace, Consolas, "Liberation Mono", monospace; font-size: 0.85rem; font-weight: 400; }
.fokus { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; margin: 8px 0; }
.fokus-bild { position: relative; line-height: 0; }
.fokus-bild img { display: block; width: 100%; height: auto; border: 1px solid var(--linie); border-radius: var(--radius-klein); }
.fokus[data-bereit] .fokus-bild { cursor: crosshair; }
.fokus-punkt { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid #fff; border-radius: 50%; background: rgba(155, 28, 46, 0.75); box-shadow: 0 0 0 2px #1a1a1a; pointer-events: none; }
.fokus-probe { position: relative; overflow: hidden; width: 100%; margin: 0 0 10px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); line-height: 0; }
.fokus-probe.schmal { width: 45%; }
.fokus-probe img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fokus-probe span { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.75rem; line-height: 1.5; }
.fokus-seite .zeile { margin: 0 0 12px; }
.fokus-seite .zeile input { min-width: 0; width: 6rem; }
.formular.medium audio { width: 100%; max-width: 32rem; }

/* Tabellen der Tondateien und Dokumente: lange Dateinamen umbrechen statt die Tabelle aus dem Fenster zu schieben */
.medientabelle { table-layout: fixed; }
.medientabelle th:nth-child(1) { width: 44%; }
.medientabelle th:nth-child(3) { width: 7rem; }
.medientabelle th:nth-child(4) { width: 10rem; }
.medientabelle td { overflow-wrap: anywhere; }
.suche input[type="search"] { min-width: 17rem; }
/* Einzelansicht: Abstand zwischen den Karten, Bild nie höher als das Fenster */
main > .formular, main > .kasten, main > section.kasten { margin-bottom: 20px; }
.fokus-bild { width: fit-content; max-width: 100%; }
.fokus-bild img { width: auto; max-width: 100%; max-height: 62vh; }
main > .formular.medium { max-width: none; }
.austausch { border-left: 4px solid var(--bedien); }
.austausch .zeile { margin-top: 0; }
.austausch input[type="file"] { min-width: 20rem; }
/* frühere Fassungen und Archiv */
.fassungen { margin: 0; padding: 0; list-style: none; }
.fassungen.kasten { padding: 6px 22px; }
.fassungen li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 0; border-top: 1px solid var(--linie); }
.fassungen li:first-child { border-top: 0; }
.fassungen img, .fassung-art { flex: none; display: block; width: 132px; height: 88px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); object-fit: cover; }
.fassung-art { display: grid; place-items: center; color: var(--leise); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; }
.fassung-text { flex: 1 1 16rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.fassung-text audio { width: 100%; max-width: 26rem; margin-top: 4px; }
.fassung-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fassung-knoepfe form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.fassung-knoepfe .knopf { min-height: 40px; padding: 6px 14px; }
.reiter .zahl { margin-left: 4px; background: #d5dbcb; }

/* ---------- Zugriffsstatistik ----------
   Reihenfarben aus der NNL-Palette, auf Unterscheidbarkeit geprüft: A = Punkt Blau, B = Punkt Dunkelgrün. Text trägt nie die Reihenfarbe. */
:root { --reihe-a: #23538a; --reihe-b: #009553; }
.zeitraum { align-items: flex-end; }
.zeitraum .reiter { margin: 0; }
.zeitraum input[type="date"] { min-height: 44px; padding: 6px 10px; border: 1px solid var(--linie-fest); border-radius: var(--radius-klein); background: var(--karte); font: inherit; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 16px 0 20px; padding: 0; list-style: none; }
.kennzahlen li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.kz-name { color: var(--leise); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.kz-wert { font-size: 1.9rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kz-neben { color: var(--leise); font-size: 0.82rem; }
.trend { width: fit-content; font-size: 0.82rem; font-weight: 600; }
.trend.auf { color: var(--gut); }
.trend.ab { color: var(--fehler); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 6px; padding: 0; list-style: none; color: var(--leise); font-size: 0.88rem; }
.legende li { display: flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.swatch.reihe-a { background: var(--reihe-a); }
.swatch.reihe-b { background: var(--reihe-b); }
svg.verlauf, svg.saeulen { display: block; width: 100%; height: auto; overflow: visible; }
svg.saeulen { max-width: 34rem; }
.gitter { stroke: var(--linie); stroke-width: 1; }
.achse { fill: var(--leise); font-size: 11px; font-variant-numeric: tabular-nums; }
.endwert { fill: var(--text); font-size: 12px; font-weight: 600; }
.linie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.linie.reihe-a, .punkt.reihe-a { stroke: var(--reihe-a); }
.linie.reihe-b, .punkt.reihe-b { stroke: var(--reihe-b); }
.punkt { stroke: var(--karte); stroke-width: 2; }
.punkt.reihe-a { fill: var(--reihe-a); stroke: var(--karte); }
.punkt.reihe-b { fill: var(--reihe-b); stroke: var(--karte); }
.treffer { fill: transparent; }
.lot { stroke: #8b9084; stroke-width: 1; opacity: 0; }
.spalte .punkt { opacity: 0; }
.spalte:hover .lot, .spalte:focus .lot, .spalte:hover .punkt, .spalte:focus .punkt { opacity: 1; }
.spalte:focus { outline: none; }
.saeule { fill: var(--reihe-a); }
.spalte:hover .saeule, .spalte:focus .saeule { fill: #17395f; }
.stat-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 20px; margin: 20px 0; align-items: start; }
.stat-raster .kasten { margin: 0; min-width: 0; }
.stat-raster h3 { margin: 18px 0 6px; color: var(--leise); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.balkenliste { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.balkenliste th { width: 46%; padding: 5px 10px 5px 0; font-weight: 400; text-align: left; overflow-wrap: anywhere; }
.balkenliste th a { text-decoration: none; }
.balkenliste th a:hover { text-decoration: underline; }
.balkenliste td { padding: 5px 0; vertical-align: middle; }
.bl-balken svg { display: block; width: 100%; height: 10px; border-radius: 3px; }
.bl-spur { fill: var(--flaeche); }
.bl-wert { fill: var(--reihe-a); }
.bl-zahl { width: 4.6rem; padding-left: 10px !important; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bl-anteil { width: 3.2rem; padding-left: 8px !important; color: var(--leise); font-size: 0.82rem; font-variant-numeric: tabular-nums; text-align: right; }
.tabelle.schmal { max-width: 34rem; margin-top: 10px; box-shadow: none; font-size: 0.9rem; }
.tabelle .rechts { text-align: right; font-variant-numeric: tabular-nums; }
.datenschutz ul { margin: 0; padding-left: 1.2rem; }
.datenschutz li { margin: 0 0 6px; }
/* Wert unter dem Zeiger (js/cms.js) */
.tipp { position: fixed; z-index: 40; max-width: 20rem; padding: 6px 10px; border-radius: var(--radius-klein); background: #1c211a; color: #fff; font-size: 0.85rem; line-height: 1.35; pointer-events: none; box-shadow: var(--schatten-hoch); }
.tipp[hidden] { display: none; }

/* ---------- Dashboard der Übersicht ---------- */
.dashboard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; margin: 0 0 28px; align-items: start; }
.dashboard > .kasten { margin: 0; }
.dashboard > .kasten:only-child { grid-column: 1 / -1; }
.dashboard h3 { margin: 16px 0 6px; color: var(--leise); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.kennzahlen.klein-kz { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 12px; }
.kennzahlen.klein-kz li { padding: 12px 14px; box-shadow: none; background: var(--flaeche); }
svg.funke { display: block; width: 100%; height: auto; overflow: visible; }
.flaeche { fill: var(--reihe-b); opacity: 0.1; }
.dash-seiten { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: platz; }
.dash-seiten li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linie); font-size: 0.93rem; counter-increment: platz; }
.dash-seiten li:first-child { border-top: 0; }
.dash-seiten li::before { content: counter(platz) "."; flex: none; width: 1.4em; color: var(--leise); font-variant-numeric: tabular-nums; }
.dash-seiten li span:first-of-type { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dash-stand { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.stand { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.stand.gut { background: var(--gut-flaeche); color: var(--gut); }
.stand.hinweis { background: var(--warn-flaeche); color: var(--warn); }
.stand.warnung { background: var(--fehler-flaeche); color: var(--fehler); }
.pruefliste { margin: 0; padding: 0; list-style: none; }
.pruef { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); }
.pruef:first-child { border-top: 0; }
.pruef-zeichen { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; font-size: 0.82rem; font-weight: 700; line-height: 1; }
.pruef.gut .pruef-zeichen { background: var(--gut-flaeche); color: var(--gut); }
.pruef.hinweis .pruef-zeichen { background: var(--warn-flaeche); color: var(--warn); }
.pruef.warnung .pruef-zeichen { background: var(--fehler); color: #fff; }
.pruef strong a { color: var(--text); text-decoration: none; }
.pruef strong a:hover { color: var(--bedien-dunkel); text-decoration: underline; }
.pruef-text { display: block; color: var(--leise); font-size: 0.88rem; overflow-wrap: anywhere; }
.pruef.gut .pruef-text { font-size: 0.84rem; }
@media (max-width: 1150px) { .dashboard { grid-template-columns: 1fr; } }

/* ---------- Menü der Website ---------- */
.menue-liste, .menue-liste ol { margin: 0; padding: 0; list-style: none; }
.menue-liste { margin: 22px 0; max-width: 62rem; }
.menue-liste > li { margin: 0 0 10px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.menue-liste ol { margin: 0 12px 10px 30px; border-left: 3px solid var(--bedien-hell); }
.menue-liste ol > li { border-top: 1px solid var(--linie); }
.menue-liste ol > li:first-child { border-top: 0; }
.menue-zeile { padding: 9px 14px; }
.menue-liste ol .menue-zeile { padding: 6px 12px; }
.menue-zeile.aus .menue-kopf strong { color: var(--leise); text-decoration: line-through; }
.menue-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.menue-kopf .klein { overflow-wrap: anywhere; }
.menue-knoepfe { display: flex; gap: 6px; margin-left: auto; }
.menue-zeile details { margin-top: 2px; }
.menue-zeile summary { width: fit-content; color: var(--bedien-dunkel); font-size: 0.85rem; }
.menue-zeile details[open] { margin: 8px 0 6px; padding: 12px 14px; border-radius: var(--radius-klein); background: var(--flaeche); }
.menue-zeile details .zeile { margin: 8px 0 0; }

/* ---------- Bericht eines Abrufs (abruf.php) ---------- */
body.abruf main { max-width: 64rem; margin: 32px auto; padding: 28px 32px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
body.abruf h2 { margin-top: 1.6em; padding-bottom: 0.3em; border-bottom: 2px solid var(--bedien-hell); }
body.abruf h2:first-child { margin-top: 0; }
body.abruf .ok { color: var(--gut); }
body.abruf .warn { color: var(--warn); }
body.abruf .err { color: var(--fehler); font-weight: 700; }
body.abruf .ev { margin: 0.7em 0; padding: 0.3em 0 0.3em 0.8em; border-left: 3px solid var(--linie); font-size: 0.9rem; }
body.abruf .meta { color: var(--leise); font-size: 0.8rem; }
body.abruf table.sum { border-collapse: collapse; margin: 0 0 16px; }
body.abruf table.sum td { padding: 5px 14px; border: 1px solid var(--linie); }
body.abruf table.sum td:first-child { background: var(--flaeche); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 980px) {
  .rahmen { display: block; }
  .seitenleiste { position: static; height: auto; padding: 12px 14px; }
  .marke { padding-bottom: 8px; }
  .marke img { max-width: 170px; }
  .nav-titel { display: none; }
  .seitenleiste nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
  .seitenleiste nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
  .seitenleiste nav a { min-height: 40px; padding: 6px 10px; }
  .konto { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; padding-top: 8px; }
  .konto span { flex-direction: row; gap: 6px; align-items: baseline; }
  .konto form { margin: 0 0 0 auto; }
  .konto .knopf.schlicht { width: auto; }
  main { padding: 22px 16px 80px; }
  main > .formular { padding: 18px 16px 0; }
  main > .formular > .aktionen { margin: 24px -16px 0; padding: 12px 16px; }
}
@media (max-width: 760px) {
  .bildzeile { grid-template-columns: 1fr; }
  .fokus { grid-template-columns: 1fr; }
  .tabelle th:nth-child(3), .tabelle td:nth-child(3) { display: none; }
  h1 { font-size: 1.45rem; }
  .kasten { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
