/* Entbürokratisierung — Startseite.
   Keine Inline-Styles: die Content-Security-Policy erlaubt nur 'self' (E13, gleiche Origin wie HA). */

:root {
  --bg: #f6f8fb;
  --fg: #1a2233;
  --muted: #5a6475;
  --line: #dfe4ec;
  --card: #ffffff;
  --brand: #1d3b6e;       /* Dunkelblau, Wortmarke und Überschriften */
  --accent: #245aa3;
  --accent-soft: #e7eef8;
  --go: #13a07a;          /* Handlungsknopf */
  --go-dark: #0e8a69;
  --blau: #2f6fd6;  --blau-soft: #e4edfb;
  --gruen: #139a6b; --gruen-soft: #def4ea;
  --lila: #6a4fd3;  --lila-soft: #ece7fb;
  --tuerkis: #129184; --tuerkis-soft: #dcf3f0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171d; --fg: #e9ecf1; --muted: #a3abb8; --line: #2b313b; --card: #1c2129;
    --brand: #cfdcf2; --accent: #86b1ea; --accent-soft: #1b2738;
    --blau-soft: #1c2940; --gruen-soft: #16302a; --lila-soft: #262040; --tuerkis-soft: #142f2d;
    --blau: #86b1ea; --gruen: #5fd3a6; --lila: #b3a3f2; --tuerkis: #5fcfc2;
  }
}
:root[data-theme="dark"] {
  --bg: #14171d; --fg: #e9ecf1; --muted: #a3abb8; --line: #2b313b; --card: #1c2129;
  --brand: #cfdcf2; --accent: #86b1ea; --accent-soft: #1b2738;
  --blau-soft: #1c2940; --gruen-soft: #16302a; --lila-soft: #262040; --tuerkis-soft: #142f2d;
  --blau: #86b1ea; --gruen: #5fd3a6; --lila: #b3a3f2; --tuerkis: #5fcfc2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.icon { width: 22px; height: 22px; display: block; flex: none; }

/* Kopfzeile */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand-mark { width: 30px; height: 36px; display: block; }
.brand-name { font-weight: 800; font-size: 28px; letter-spacing: -.015em; line-height: 1; white-space: nowrap; }
.brand-zahl { color: var(--go); }
.brand-claim { font-size: 13px; line-height: 1.35; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
@media (max-width: 560px) { .brand-claim { display: none; } .brand-name { font-size: 19px; } .brand { gap: 8px; } .brand-mark { width: 24px; height: 29px; } }
.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-size: 14px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav .icon { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .topbar-inner { flex-wrap: nowrap; gap: 10px; }
  .nav { gap: 10px; flex-wrap: nowrap; }   /* mit dem Menü „Überblick" (▾) sonst zu breit für 390 px */
  .nav .nav-text, .nav .caret { display: none; }
  .nav .icon { width: 22px; height: 22px; }
  .nav .nav-start { display: none; }   /* das Logo führt schon zur Startseite */
  .nav .btn-outline { padding: 5px 10px; font-size: 13px; }
}
.btn-outline { border: 1.5px solid var(--brand); border-radius: 10px; padding: 7px 18px; }
.btn-outline:hover { background: var(--accent-soft); }

/* Einstieg mit Landschaft */
.hero-band { position: relative; overflow: hidden; background: var(--bg); max-width: 1120px; margin-left: auto; margin-right: auto; }
.hero-bild { height: 220px; }
.landschaft { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; padding-top: 28px; padding-bottom: 36px; }
@media (min-width: 860px) {
  .hero-band { min-height: 420px; display: flex; align-items: center; }
  .hero-bild { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; height: auto; }
  .hero-band::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 32%, rgba(246,248,251,.85) 44%, rgba(246,248,251,0) 66%);
  }
  .hero-inner { z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 48px; }
  .hero-text { max-width: 520px; }
}
@media (min-width: 860px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-band::after {
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 32%, rgba(20,23,29,.85) 44%, rgba(20,23,29,0) 66%);
  }
}
h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 750; line-height: 1.15; margin: 0 0 18px; letter-spacing: -.02em; color: var(--brand); }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--fg); margin: 0 0 24px; max-width: 52ch; }
.btn-go {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px;
  background: linear-gradient(180deg, var(--go), var(--go-dark)); color: #fff; font-weight: 600;
  text-decoration: none; box-shadow: 0 6px 16px rgba(19,160,122,.28);
}
.btn-go:hover { filter: brightness(1.06); }
.btn-go .icon { width: 18px; height: 18px; }
.hero-hinweis { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Vier Nutzenkarten */
.nutzen { display: grid; gap: 16px; margin: 28px 0 56px; }
@media (min-width: 600px) { .nutzen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .nutzen { grid-template-columns: repeat(4, 1fr); } }
.nutzen-karte { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px; text-align: center; box-shadow: 0 2px 10px rgba(29,59,110,.05); }
.nutzen-karte h3 { color: var(--brand); font-weight: 700; margin: 14px 0 6px; }
.nutzen-karte p { color: var(--muted); font-size: 15px; margin: 0; }
.rund { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rund .icon { width: 24px; height: 24px; }
.rund-blau { background: var(--blau-soft); color: var(--blau); }
.rund-gruen { background: var(--gruen-soft); color: var(--gruen); }
.rund-lila { background: var(--lila-soft); color: var(--lila); }
.rund-tuerkis { background: var(--tuerkis-soft); color: var(--tuerkis); }

.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; max-width: 70ch; }

section { margin: 0 0 48px; }
h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 700; margin: 0 0 16px; letter-spacing: -.01em; color: var(--brand); }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 12px; }

/* Karten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card-icon .icon, .steps .icon { width: 26px; height: 26px; color: var(--accent); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps .icon { margin-bottom: 8px; }
.sub { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.grid3, .grid2 { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: repeat(2, 1fr); }
}
ul { margin: 0; padding-left: 20px; }
li { margin-bottom: 6px; }
li:last-child { margin-bottom: 0; }

/* Ablauf in Schritten */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 18px 60px; position: relative; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Regelungskette */
.chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 16px; }
.chain span { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.chain span:not(:last-child)::after { content: "→"; margin-left: 12px; color: var(--muted); }

/* Projektstand */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .roadmap { grid-template-columns: repeat(4, 1fr); } }
.roadmap li { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; background: var(--card); }
.roadmap strong { display: block; margin-bottom: 4px; }
.roadmap span { color: var(--muted); font-size: 14px; }
.roadmap li.done { border-color: var(--accent); }
.roadmap li.done strong::after { content: " ✓"; color: var(--accent); }
.roadmap li.now { border: 2px solid var(--accent); background: var(--accent-soft); }
.roadmap li.now strong::after { content: " — aktuell"; color: var(--accent); font-weight: 600; font-size: 13px; }

a { color: var(--accent); text-underline-offset: 3px; }

.footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; padding-bottom: 48px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Konto: Anmelden, Meine Meldungen, Passwort */
button.btn-outline { background: none; color: var(--brand); font: inherit; font-weight: 500; cursor: pointer; }
button.btn-go { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.konto { padding-top: 40px; padding-bottom: 64px; }
.konto h1 { font-size: clamp(26px, 4vw, 34px); }
.konto-karte { max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.konto-karte-breit { max-width: 640px; } /* Expertenprofil (E116) */
.formular { display: grid; gap: 6px; margin-top: 8px; }
/* „Eigene Kategorie" nur bei „Sonstiges" (E71) */
.kategorie-frei { display: grid; gap: 6px; }
.kategorie-frei[hidden] { display: none; }
.formular label { font-weight: 600; font-size: 14px; margin-top: 10px; }
.formular input { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
.formular input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.formular .btn-go { margin-top: 18px; justify-content: center; }
.fehler { color: #b3261e; font-size: 14px; margin: 4px 0; }
.konto-info { margin-bottom: 20px; }
.konto .leer { margin-bottom: 20px; }
.konto-links { font-size: 14px; }

/* Kontomenü (Mockup 4) — ohne Skript über <details> */
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--brand); padding: 4px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary .icon { width: 24px; height: 24px; }
.caret { font-size: 12px; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20,30,50,.14); padding: 8px; z-index: 20; display: grid; }
.usermenu-panel a, .usermenu-panel button { display: block; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; width: 100%; }
.usermenu-panel a.neu-fett { font-weight: 700; }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--accent-soft); }
.usermenu-panel form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.usermenu-gruppe { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.usermenu-name { font-weight: 700; font-size: 14px; padding: 6px 10px 8px; margin: 0; color: var(--brand); }

/* Meldungsmaske (Mockups 2, 1, 5, 6) */
.melden { padding-top: 28px; padding-bottom: 64px; max-width: 860px; }
.melden h1 { font-size: clamp(26px, 4vw, 34px); color: var(--brand); font-weight: 750; margin: 26px 0 4px; }
.melden-lead { color: var(--muted); margin: 0 0 20px; }
.schritte { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; }
.schritte li { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--muted); font-size: 14px; margin: 0; }
.schritte li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.schritt-nr { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; background: var(--card); }
.schritte li.aktuell { color: var(--brand); font-weight: 700; }
.schritte li.aktuell .schritt-nr { background: var(--brand); border-color: var(--brand); color: #fff; }
.schritte li.erledigt .schritt-nr { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.schritte li.erledigt::after { background: var(--accent); }
.schritte li > a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; border-radius: 8px; }
.schritte li > a:hover .schritt-name, .schritte li > a:focus-visible .schritt-name { text-decoration: underline; }
.schritte li > a:hover .schritt-nr { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .schritte .schritt-name { display: none; } .schritte li.aktuell .schritt-name { display: inline; } }
.schritt-karte { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 2px 12px rgba(29,59,110,.05); }
@media (min-width: 700px) { .schritt-karte { padding: 28px 32px; } }
.schritt-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.schritt-kopf h2 { margin: 0; font-size: 21px; }
.schritt-kopf p { margin: 0; color: var(--muted); font-size: 15px; }
.schritt-kreis { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.formular textarea, .formular select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
.formular textarea { resize: vertical; min-height: 130px; }
.formular textarea:focus, .formular select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pflicht { color: #c62828; }
.leise { color: var(--muted); font-weight: 400; font-size: 14px; }
.zaehler { text-align: right; font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.hinweis { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 18px; color: var(--brand); font-size: 14px; }
.hinweis p { margin: 0; }
.hinweis .icon { color: var(--accent); width: 22px; height: 22px; }
.knopfreihe { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.knopfreihe-links { justify-content: space-between; align-items: center; }
.knopfreihe-mitte { justify-content: center; }
.knopfreihe form { margin: 0; }
.btn-primaer, .btn-sekundaer { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primaer { background: #2166d4; color: #fff; border: 0; }
.btn-primaer:hover { background: #1b57b6; }
.btn-sekundaer { background: var(--card); color: var(--brand); border: 1.5px solid var(--line); }
.btn-sekundaer:hover { border-color: var(--accent); }
.btn-primaer .icon, .btn-sekundaer .icon { width: 18px; height: 18px; }
.btn-leise { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.wahl { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.wahl legend { font-weight: 700; margin-bottom: 8px; color: var(--brand); }
/* „Ihre Funktion" (E76): vier Knöpfe, auf breiten Bildschirmen zwei je Zeile */
.wahl-funktion { margin-bottom: 18px; }
.funktion-raster { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wahl-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.wahl-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wahl-option input { width: 20px !important; height: 20px; margin-top: 2px; accent-color: #2166d4; flex: none; }
.wahl-option strong { display: block; color: var(--brand); font-size: 15px; }
.wahl-option small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.wahl-option.gesperrt { opacity: .55; cursor: not-allowed; } /* „Als Experte melden" ohne Rolle (E116) */
.wahl-option.gesperrt input { cursor: not-allowed; }
.feld-titel { font-weight: 700; margin: 20px 0 0; color: var(--brand); }
.zwei-spalten { display: grid; gap: 8px 16px; }
.zwei-spalten > div { display: grid; gap: 6px; }
/* Schritt 4 „Regelwerke und Stellen" (E78): Karten mit Kopfband über die ganze Breite */
.nennungen-ueberschrift { margin: 28px 0 6px; font-size: 18px; color: var(--brand); } /* Schritt 4, nach dem Hinweis (Helmut) */
.nennungen-einleitung { margin: 0 0 6px; font-size: 15.5px; line-height: 1.6; }
.nennungen { margin: 16px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.nennungen-kopf { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; font-size: 16.5px; color: #fff; background: linear-gradient(90deg, #1d3b6e, #245aa3); }
.nennungen-kopf .icon { width: 22px; height: 22px; color: #fff; flex: none; }
.nennungen-zahl { margin-left: auto; min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.2); }
.nennungen-inhalt { padding: 14px 18px 18px; display: grid; gap: 10px; }
.nennungen-inhalt .feld-titel { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.nennung-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.nennung-liste li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--accent-soft); border-left: 4px solid var(--go); border-radius: 8px; padding: 9px 12px; }
.nennung-zusatz { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.nennung-liste li > span > .nennung-zusatz:first-child { margin: 0 6px 0 0; }
.nennung-leer { margin: 0; font-style: italic; }
.nennung-neu { display: grid; gap: 10px; justify-items: start; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--bg); }
.nennung-felder { display: grid; gap: 8px 16px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.nennung-felder > div { display: grid; gap: 6px; }
.nennung-neu input, .nennung-neu select { background: var(--card); }
.btn-hinzu { padding: 8px 16px; font-size: 14.5px; }
@media (min-width: 600px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } }
.haken { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; margin-top: 16px !important; cursor: pointer; }
.haken input { width: 20px !important; height: 20px; flex: none; accent-color: #2166d4; margin-top: 1px; }
.hinweis-sicher { background: var(--blau-soft); } /* Variable statt festem Hellblau: im Darkmode sonst helle Schrift auf hellem Grund (Helmut, 2026-10-01) */
/* Ähnliche Meldungen (E65) */
.hinweis-aehnlich { margin: 0 0 18px; }
.aehnlich-liste { margin: 8px 0 0; padding-left: 18px; }
.aehnlich-liste li { margin-bottom: 4px; font-size: 14px; }
/* Seite 2 „Prüfung": Treffer zum Aufklappen (E67) */
.aehnlich-eintraege { display: grid; gap: 8px; margin: 0 0 16px; }
.aehnlich-eintrag { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.aehnlich-eintrag summary { cursor: pointer; display: grid; gap: 4px; }
.aehnlich-kopf { font-size: 13px; }
.aehnlich-titel { color: var(--brand); font-size: 15px; }
.aehnlich-fuss { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.aehnlich-eintrag details[open] summary { margin-bottom: 8px; }
.aehnlich-mehr { color: var(--accent); text-decoration: underline; }
.aehnlich-eintrag details[open] .aehnlich-mehr { display: none; }
/* „Unterstützen" sichtbar am Eintrag (E80) */
.aehnlich-aktion { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; }
.aehnlich-aktion form { margin: 0; }
.btn-unterstuetzen { padding: 8px 16px; font: inherit; font-size: 14.5px; font-weight: 600; border: 0; cursor: pointer; }
.btn-unterstuetzen .icon { width: 18px; height: 18px; }
.aehnlich-eintrag p { margin: 0 0 10px; font-size: 14px; }
.unterstuetzt { display: flex; gap: 6px; align-items: center; color: var(--gruen); font-weight: 600; }
.unterstuetzt .icon { width: 18px; height: 18px; }
.zusammenfassung { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.zusammenfassung h3 { color: var(--brand); margin: 0 0 10px; }
.zusammenfassung dl { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; gap: 10px 16px; margin: 0 0 10px; }
.zusammenfassung dt { font-weight: 700; color: var(--brand); font-size: 14px; }
.zusammenfassung dd { margin: 0; font-size: 15px; }
.umbruch { white-space: pre-line; }
.absenden { margin: 22px 0 0; }
.btn-absenden { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 22px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #22a45a, #178a47); color: #fff; font: inherit; font-weight: 700; font-size: 19px; cursor: pointer; box-shadow: 0 6px 16px rgba(23,138,71,.25); }
.btn-absenden .icon { width: 24px; height: 24px; stroke-width: 3; }
.fertig { text-align: center; padding: 10px 0; }
.rund.gross { width: 72px; height: 72px; margin-bottom: 8px; }
.rund.gross .icon { width: 36px; height: 36px; }
.nr-gross { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: .02em; }

/* Meine Meldungen (Mockup 4) */
.titelzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.titelzeile h1 { margin: 0 0 4px; color: var(--brand); font-weight: 750; }
.titelzeile .melden-lead { margin: 0; }
/* Umbrechen statt waagrecht scrollen: overflow-x + margin -1px machte die Leiste auf dem Handy zur Scrollfläche in
   beide Richtungen, Tipps wurden als Wischen gelesen (Meldung 2026-09-29). */
.reiter { display: flex; flex-wrap: wrap; gap: 4px 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.reiter a { touch-action: manipulation; padding: 10px 18px; color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.reiter a[aria-current] { color: var(--brand); font-weight: 700; border-bottom-color: var(--go); }
.tabelle-rahmen { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tabelle td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle td strong { display: block; color: var(--fg); font-weight: 600; }
.tabelle td small { color: var(--muted); font-size: 13px; }
/* Meine Meldungen: „Von mir unterstützt" (E75) */
.abschnitt { margin-top: 36px; }
/* Meine Meldungen: angefangene Meldungen (E84) */
.entwuerfe { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--go); border-radius: 12px; background: var(--card); }
.abschnitt-klein { font-size: 18px; margin: 0 0 4px; }
.entwuerfe .nennung-liste { margin-top: 10px; }
.entwurf-knoepfe { display: flex; gap: 10px; align-items: center; flex: none; }
.entwuerfe li form { display: none; }
.entwuerfe-alle { margin-top: 10px; }
.aufklappen summary { cursor: pointer; }
.aufklappen summary strong { display: inline; }
.aufklappen p { margin: 6px 0; font-size: 14px; color: var(--fg); }
.aufklappen + small { display: block; }
.nr { display: inline-block; background: var(--accent-soft); color: var(--brand); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-entwurf { background: #eef0f3; color: #5a6475; }
.pill-eingereicht { background: #e6f1f4; color: #1f7a8c; }
.pill-in_pruefung { background: #e4edfb; color: #2166d4; }
.pill-in_bearbeitung { background: #fdf0dc; color: #b86a00; }
.pill-abgeschlossen { background: #def4ea; color: #138a55; }
.pill-storniert { background: #f7e3e3; color: #a33a3a; }
.aktion { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.aktion .icon { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tabelle tr:last-child { border-bottom: 0; }
  .tabelle td { border: 0; padding: 4px 0; }
  .tabelle td[data-titel="Eingereicht"]::before { content: "Eingereicht: "; color: var(--muted); font-size: 13px; }
}
.haken.gesperrt { opacity: .45; cursor: not-allowed; }
.haken.gesperrt input { cursor: not-allowed; }
.kontakt-block.gesperrt { opacity: .45; }
.kontakt-block.gesperrt input { cursor: not-allowed; }

/* Verwaltung (E24) */
.verwaltung { max-width: 1120px; }
.meldung-ok { background: #def4ea; color: #0f6e45; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.kennzahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 700px) { .kennzahlen { grid-template-columns: repeat(6, 1fr); } }
.kz { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--fg); border-top: 4px solid var(--line); }
.kz strong { display: block; font-size: 26px; line-height: 1.1; color: var(--brand); }
.kz span { font-size: 13px; color: var(--muted); }
.kz.aktiv { outline: 2px solid var(--accent); }
.kz-alle { border-top-color: var(--brand); } .kz-eingereicht { border-top-color: #1f7a8c; } .kz-in_pruefung { border-top-color: #2166d4; } .kz-in_bearbeitung { border-top-color: #e39a1c; }
.kz-abgeschlossen { border-top-color: #22a45a; } .kz-storniert { border-top-color: #c25454; } .kz-entwurf { border-top-color: #9aa3b0; }
.filterleiste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filterleiste input, .filterleiste select { font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg); }
.filterleiste input { flex: 1 1 240px; min-width: 0; }
.filterleiste select { flex: 0 1 220px; min-width: 0; }
.filterleiste .btn-primaer { padding: 9px 18px; }
.status-schnell { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.status-schnell select { border: 0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 5px 10px; }
.status-schnell select::before { content: none; }
.btn-mini { font: inherit; font-size: 12px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.blaettern { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 16px 0; font-size: 14px; }
.verwaltung-raster { display: grid; gap: 20px; }
@media (min-width: 900px) { .verwaltung-raster { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.verwaltung-raster .schritt-karte h3, .verlauf h3 { color: var(--brand); margin: 0 0 8px; }
.formular select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
.verlauf { margin-top: 20px; }
.verlauf ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.verlauf li { padding: 6px 0 10px 14px; position: relative; font-size: 14px; }
.verlauf li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tabelle-rahmen { margin-bottom: 16px; }
.nav-user { font-size: 14px; font-weight: 600; margin-left: 4px; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .nav-user { display: none; } }
.usermenu-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.konto-wechsel { margin: 18px 0 0; font-size: 14px; text-align: center; }
.feldhilfe { margin: 0; font-size: 12.5px; }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Testmeldungen (E28) */
.test-marke { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a5a00; background: #fff1d6; border: 1px solid #f0d49a; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.test-marke.gross { font-size: 13px; padding: 2px 8px; }
.test-schalter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }

/* Hilfe */
.hilfe { max-width: 860px; }
.hilfe-fragen { display: grid; gap: 8px; margin-bottom: 36px; }
.hilfe-fragen details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.hilfe-fragen summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.hilfe-fragen p { margin: 10px 0 2px; }

/* Datenschutz, Impressum, Fußzeile */
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { color: var(--muted); }
/* Fußzeile „Info" (E125): klappt nach oben auf, ohne Skript */
.footer-info { position: relative; }
.footer-info summary { cursor: pointer; list-style: none; text-decoration: underline; }
.footer-info summary::-webkit-details-marker { display: none; }
.footer-info-panel { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 40; margin: 0; min-width: 240px; max-width: calc(100vw - 24px); padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.12); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; color: var(--fg); }
.footer-info-panel dt { font-weight: 600; }
.footer-info-panel dd { margin: 0; }
.recht { max-width: 860px; }
.recht h2 { font-size: 20px; margin: 28px 0 8px; color: var(--brand); }
.recht h3 { font-size: 16px; margin: 18px 0 6px; }
.recht li { margin-bottom: 4px; }
.hinweis-vorlaeufig { display: inline-block; font-size: 13px; color: #8a5a00; background: #fff1d6; border: 1px solid #f0d49a; border-radius: 6px; padding: 3px 10px; }
.recht-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
.recht-tabelle th, .recht-tabelle td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }

/* Hilfe-Chat (E50, Feature-Test) — Aussehen wie der Chat im IBF Manager (Deep Chat), Knopf wie übliche Chat-Starter */
.chat { --c-rand: #ccd6e8; --c-leiste: #f4f7fb; --c-blau: #1a4e8a; --c-ich: #0084ff; --c-ki: #e4e6eb; position: fixed; right: 20px; bottom: 20px; z-index: 50; font-size: 15px; }
.chat-knopf { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #3d7ab8; color: #fff; box-shadow: 0 4px 14px rgba(20, 50, 90, .35); cursor: pointer; display: grid; place-items: center; transition: transform .15s ease, background .15s ease; }
.chat-knopf:hover { background: var(--c-blau); transform: scale(1.05); }
.chat-knopf:focus-visible { outline: 3px solid #9fc2ec; outline-offset: 3px; }
.chat-knopf svg { width: 32px; height: 32px; }
.chat.offen .chat-knopf { display: none; }
.chat-fenster { position: fixed; right: 20px; bottom: 20px; margin: 0; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px)); height: min(600px, calc(100dvh - 40px)); background: #fff; color: #1a2233; border: 1px solid var(--c-rand); border-radius: 6px; box-shadow: 0 10px 32px rgba(20, 50, 90, .22); display: flex; flex-direction: column; overflow: hidden; }
.chat-fenster[hidden] { display: none; }
.chat-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--c-leiste); border-bottom: 1px solid var(--c-rand); color: var(--c-blau); }
.chat-kopf strong { font-size: 15px; color: #123a6b; }
.chat-kopf p { margin: 2px 0 0; font-size: 12px; color: #5a6475; }
.chat-zu { background: none; border: 0; color: var(--c-blau); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.chat-verlauf { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; }
.chat-zeile { display: flex; flex-direction: column; margin-bottom: 10px; }
.chat-zeile.ich { align-items: flex-end; }
.chat-blase { max-width: 88%; padding: 8px 12px; border-radius: 10px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-blase p { margin: 0 0 6px; } .chat-blase p:last-child { margin-bottom: 0; }
.chat-blase ul, .chat-blase ol { margin: 4px 0 6px; padding-left: 20px; }
.ich .chat-blase { background: var(--c-ich); color: #fff; }
.ki .chat-blase { background: var(--c-ki); color: #1a1a1a; }
.chat-werkzeuge { display: flex; gap: 6px; margin-top: 3px; font-size: .8em; }
.chat-werkzeuge button, .chat-beispiel { border: 1px solid var(--c-rand); background: var(--c-leiste); color: var(--c-blau); border-radius: 10px; padding: 2px 9px; cursor: pointer; font: inherit; }
.chat-werkzeuge button:hover, .chat-beispiel:hover { background: #e7eef8; }
.chat-beispiele[hidden] { display: none; }
.chat-beispiele { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.chat-beispiel { font-size: .85em; border-radius: 12px; padding: 3px 10px; }
.chat-punkte { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat-punkte i { width: 7px; height: 7px; border-radius: 50%; background: #8a94a6; animation: chat-punkt 1.2s infinite ease-in-out; }
.chat-punkte i:nth-child(2) { animation-delay: .15s; } .chat-punkte i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-punkt { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-eingabe { display: flex; align-items: flex-end; gap: 6px; margin: 6px 10px 8px; padding: 4px 4px 4px 10px; border: 1px solid #c6cbd4; border-radius: 5px; background: #fff; }
.chat-eingabe:focus-within { border-color: var(--c-blau); }
.chat-eingabe textarea { flex: 1; resize: none; border: 0; outline: 0; font: inherit; font-size: .95rem; padding: 6px 0; max-height: 120px; background: transparent; color: #1a2233; }
.chat-senden { border: 0; background: none; color: #9aa3b2; cursor: pointer; padding: 5px; border-radius: 4px; display: grid; place-items: center; }
.chat-senden svg { width: 22px; height: 22px; }
.chat-eingabe:focus-within .chat-senden, .chat-senden:hover { color: var(--c-ich); }
.chat-senden:disabled { color: #c6cbd4; cursor: default; }
.chat-fuss { margin: 0; padding: 0 12px 8px; font-size: 11.5px; color: #6b7384; }
.chat-fuss a { color: var(--c-blau); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .reiter a { padding: 8px 12px; font-size: 14px; } .footer { padding-bottom: 88px; } .chat { right: 12px; bottom: 12px; } .chat-knopf { width: 54px; height: 54px; } .chat-fenster { right: 12px; bottom: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); } }
@media (prefers-reduced-motion: reduce) { .chat-punkte i { animation: none; } .chat-knopf { transition: none; } }

/* Verwaltung: Dashboard „Bearbeitung & Liegezeiten" (E87) — Balken als SVG, Farbe über Klassen (CSP: kein Inline-Stil) */
.dashboard .nennungen-kopf { font-size: 16.5px; }
.balken-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.balken-tabelle th, .balken-tabelle td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle.balken-tabelle th, .tabelle.balken-tabelle td { padding: 10px 14px; }
.balken-tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balken-zelle { width: 55%; }
.balken { display: block; width: 100%; height: 14px; }
.balken rect { fill: var(--accent); }
.balken-klein { height: 6px; margin-top: 5px; max-width: 260px; }
.balken-tabelle tr.lang th { color: #b3261e; }
.balken-tabelle tr.lang .balken rect { fill: #c25454; }
.lang-zahl { color: #b3261e; font-weight: 700; }
.dashboard-hinweis { margin: 0; font-size: 14px; font-weight: 600; color: #8a5a00; background: #fff1d6; border: 1px solid #f0d49a; border-radius: 8px; padding: 6px 10px; }
.navmenu .usermenu-panel { left: 0; right: auto; min-width: 240px; }
/* Handy: das Überblick-Menü sitzt mittig in der Kopfzeile und ragte rechts hinaus (Helmut, 2026-09-29) —
   auf schmalen Bildschirmen fest unter der Kopfzeile, volle Breite mit Rand */
@media (max-width: 560px) { .navmenu .usermenu-panel { position: fixed; top: 62px; left: 12px; right: 12px; min-width: 0; z-index: 60; } }
.usermenu-panel { max-width: calc(100vw - 24px); }

/* Verwaltung → Benutzer (E90) */
.rollen-wahl { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 14px 0 4px; }
.rollen-wahl legend { font-weight: 600; padding: 0 6px; }
.rollen-wahl .haken { margin: 6px 0; }
.gefahr { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.gefahr input { max-width: 260px; }
.zugang-titel { margin: 18px 0 6px; font-size: 1.05rem; }
.zugangstext { white-space: pre-wrap; word-break: break-word; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .95rem; user-select: all; }
.passwort-einmal { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15em; letter-spacing: .04em; user-select: all; }

/* Nachrichten (E97) */
.nur-admins { display: inline-block; margin: 6px 0 0; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 600; }
.postfach-kopf th { width: 110px; text-align: left; color: var(--muted); font-weight: 500; }
.postfach-text { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 15px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 18px; max-width: 100%; overflow-x: auto; }

/* Kategorie-Suche (E128, Versuchsfassung von Meldeschritt 1) */
.versuchsfassung { margin: 0 0 14px; padding: 8px 12px; border: 1.5px dashed var(--line); border-radius: 10px; }
.ksuche-zeile { position: relative; display: flex; gap: 6px; }
.ksuche-eingabe { flex: 1; min-width: 0; }
.ksuche-eingabe.gewaehlt { font-weight: 600; border-color: var(--accent); }
.ksuche-pfeil { flex: none; width: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--brand); font: inherit; cursor: pointer; }
.ksuche-liste { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 320px; overflow: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.ksuche-liste[hidden] { display: none; }
.ksuche-liste li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.ksuche-liste li small { color: var(--muted); }
.ksuche-liste li.aktiv, .ksuche-liste li:hover { background: var(--accent-soft); }
.ksuche-liste li.leer { cursor: default; color: var(--muted); }
.ksuche-hinweis { margin: 6px 0 0; }
.frage-helmut { margin-top: 22px; padding: 16px 18px; background: #fff8d6; border: 1.5px solid #e6c84a; border-radius: 12px; color: #1b1b1b; }
.frage-helmut h3 { margin: 0 0 6px; font-size: 1.05rem; }
.frage-helmut p { margin: 0 0 12px; }
.frage-helmut .leise { color: #5b5320; }
.frage-helmut .knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }
.frage-helmut form { margin: 0; }
.btn-gelb { padding: 11px 20px; border: 2px solid #c9a200; border-radius: 10px; background: #ffd83a; color: #1b1b1b; font: inherit; font-weight: 700; cursor: pointer; }
.btn-gelb:hover { background: #ffe066; }
.btn-gelb.gewaehlt { outline: 3px solid #1b1b1b; outline-offset: 2px; }
.frage-helmut .antworten { margin: 12px 0 0; padding-left: 18px; }
