/* 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;
  --gelb: #c98a00;  --gelb-soft: #fff4dc;
  --rot: #c93a2f;   --rot-soft: #fde9e6;
  /* Diagramme (E132): feste Farbfolge, geprüft auf Farbschwäche; Liegezeit = eine Farbe, hell → dunkel */
  --serie-1: #2a78d6; --serie-2: #eb6834; --serie-3: #1baf7a; --serie-4: #eda100; --serie-grau: #b9bec7;
  --lz-1: #86b6ef; --lz-2: #5598e7; --lz-3: #256abf; --lz-4: #104281; --db-gitter: #e6e9ee; --db-spur: #eef1f5; --db-gut: #0b7a0b; --db-warn: #a8551f; --lang-rot: #b3261e;
}
@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;
    --gelb: #f0c050; --gelb-soft: #302812; --rot: #f08b84; --rot-soft: #3a1f1d;
    --serie-1: #3987e5; --serie-2: #d95926; --serie-3: #199e70; --serie-4: #c98500; --serie-grau: #5d636d;
    --lz-1: #184f95; --lz-2: #256abf; --lz-3: #3987e5; --lz-4: #86b6ef; --db-gitter: #2b313b; --db-spur: #252b34; --db-gut: #5fd3a6; --db-warn: #ec835a; --lang-rot: #f08b84;
  }
}
: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;
  --gelb: #f0c050; --gelb-soft: #302812; --rot: #f08b84; --rot-soft: #3a1f1d;
  --serie-1: #3987e5; --serie-2: #d95926; --serie-3: #199e70; --serie-4: #c98500; --serie-grau: #5d636d;
  --lz-1: #184f95; --lz-2: #256abf; --lz-3: #3987e5; --lz-4: #86b6ef; --db-gitter: #2b313b; --db-spur: #252b34; --db-gut: #5fd3a6; --db-warn: #ec835a; --lang-rot: #f08b84;
}

* { 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; }
}
/* Ohne Anmeldung ragte „Anmelden“ auf dem iPhone 67 px über den Rand (2026-10-05): kleiner, Hilfe steht in der Fußzeile */
.nav .nav-anmelden .icon { display: none; }
@media (max-width: 430px) {
  .topbar-inner, .nav { gap: 8px; }
  .brand-name { font-size: 16.5px; }
  .nav .nav-hilfe { display: none; }
  .nav .btn-outline { padding: 4px 8px; font-size: 12.5px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 14.5px; }
  .brand { gap: 6px; }
  .topbar-inner, .nav { gap: 6px; }
  .nav .nav-anmelden .anmelden-text { display: none; }
  .nav .nav-anmelden .icon { display: block; width: 20px; height: 20px; }
}
.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; }
/* Foto statt Landschaft (E145): Handy oben, Bildschirm über die ganze Breite mit hellem Verlauf links */
.hero-foto { max-width: 1440px; }
.hero-foto .hero-bild { display: block; height: 240px; }
.hero-foto .hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; 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-foto { min-height: clamp(440px, 38vw, 560px); }
  .hero-foto .hero-bild { width: 100%; height: auto; }
  .hero-foto .hero-bild img { object-position: right center; }
  .hero-band.hero-foto::after { background: linear-gradient(90deg, rgba(246,248,251,.93) 0%, rgba(246,248,251,.82) 34%, rgba(246,248,251,0) 55%); }
  .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%);
  }
  :root:not([data-theme="light"]) .hero-band.hero-foto::after {
    background: linear-gradient(90deg, rgba(20,23,29,.92) 0%, rgba(20,23,29,.8) 34%, rgba(20,23,29,0) 55%);
  }
}
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; }

.rund { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rund .icon { width: 24px; height: 24px; }
.rund-gruen { background: var(--gruen-soft); color: var(--gruen); }

.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: 4px 0 6px; font-size: 18px; color: var(--brand); } /* Schritt 4, erste Zeile unter der Überschrift (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-pilot { margin: 0 0 12px; } /* Schritt 3, Pilotphase (E130) */
.pilot-feldhinweis { margin: 4px 0 0; font-size: 13px; color: var(--accent); }
.kontakt-block input[readonly] { cursor: not-allowed; }
.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: var(--lang-rot); 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: min(560px, 70vh); 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 a { color: #1d3b6e; }
.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; }

/* Dashboard Fortschrittskontrolle (E132) — Entwurf entwuerfe/2026-10-01_dashboard-fortschrittskontrolle.png */
.db { max-width: 1240px; }
.db-kopf { display: grid; gap: 10px; margin-bottom: 16px; }
.db-kopf h1 { margin: 4px 0 2px; }
.db-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.db-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.db-chips a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.db-chips a[aria-current] { background: var(--brand); color: var(--bg); border-color: var(--brand); font-weight: 600; }
.db .db-auswahl { margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.db-kacheln { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.db-k { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.db-k span { display: block; color: var(--muted); font-size: 13px; }
.db-k strong { display: block; font-size: 30px; line-height: 1.15; margin: 4px 0 2px; color: var(--fg); font-variant-numeric: tabular-nums; }
.db-k small { color: var(--muted); font-size: 12.5px; }
.db-gut { color: var(--db-gut); } .db-warn { color: var(--db-warn); }
.db-raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.db-raster > * { margin: 0; }
.db-karte { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.db-karte h2 { font-size: 15.5px; margin: 0 0 2px; color: var(--brand); }
.db-sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.db-c12 { grid-column: span 12; } .db-c8 { grid-column: span 8; } .db-c4 { grid-column: span 4; } .db-c5 { grid-column: span 5; } .db-c7 { grid-column: span 7; } .db-c6 { grid-column: span 6; }
.db-svg { display: block; width: 100%; height: auto; }
.db-svg .db-gitter { stroke: var(--db-gitter); }
.db-svg .db-achse { font-size: 11.5px; fill: var(--muted); }
.db-svg .db-wert { font-size: 12px; fill: var(--fg); font-weight: 600; }
.db-svg .db-linie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.db-linie.s1 { stroke: var(--serie-1); } .db-linie.s2 { stroke: var(--serie-2); }
.db-svg .db-lfd { stroke-dasharray: 4 4; }
.db-fuss { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.db-punkt { stroke: var(--card); stroke-width: 2; }
.s1 { fill: var(--serie-1); } .s2 { fill: var(--serie-2); } .s3 { fill: var(--serie-3); } .s4 { fill: var(--serie-4); } .s-grau { fill: var(--serie-grau); }
.db-lz1 { fill: var(--lz-1); } .db-lz2 { fill: var(--lz-2); } .db-lz3 { fill: var(--lz-3); } .db-lz4 { fill: var(--lz-4); }
.db-stapel { display: block; width: 100%; height: 22px; margin: 6px 0 14px; }
.db-legende { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.db-legende li { display: grid; grid-template-columns: 12px 1fr auto 44px; align-items: center; gap: 9px; font-size: 13.5px; }
.db-legende i { width: 12px; height: 12px; border-radius: 3px; }
.db-legende i.s1 { background: var(--serie-1); } .db-legende i.s2 { background: var(--serie-2); } .db-legende i.s3 { background: var(--serie-3); }
.db-legende i.s4 { background: var(--serie-4); } .db-legende i.s-grau { background: var(--serie-grau); }
.db-legende b { font-variant-numeric: tabular-nums; } .db-legende small { color: var(--muted); text-align: right; }
.db-woche { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.db-woche span { display: block; font-size: 12px; color: var(--muted); } .db-woche b { font-size: 20px; font-variant-numeric: tabular-nums; }
.db-bz { display: grid; grid-template-columns: minmax(140px, 260px) 1fr 52px 96px; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px; }
/* Lange Namen umbrechen statt abschneiden (Helmut, 2026-10-03: „können … nicht gelesen werden“) */
.db-bn { overflow-wrap: anywhere; line-height: 1.3; }
.db-bb { display: block; width: 100%; height: 12px; }
.db-bb-grund { fill: var(--db-spur); }
.db-bv { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-bzus { color: var(--muted); font-size: 12px; white-space: nowrap; }
.db-nurbearb { grid-column: span 12; display: flex; align-items: center; gap: 8px; margin: 8px 0 -4px; color: var(--muted); font-size: 13px; }
.db-nurbearb::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.db-nurbearb .icon { width: 16px; height: 16px; }
.db-tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.db-tabelle th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 6px 4px; }
.db-tabelle td { padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.db-tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.db .dashboard-hinweis { display: inline-block; margin-top: 8px; }
@media (max-width: 900px) {
  .db-kacheln { grid-template-columns: repeat(2, 1fr); }
  .db-c8, .db-c4, .db-c5, .db-c7, .db-c6 { grid-column: span 12; }
  .db-rs-kopf, .db-rs-zeile summary { grid-template-columns: minmax(0, 1fr) 44px 48px 48px 60px; }
  .db-rs-kopf span:nth-child(2), .db-rs-zeile summary .db-bb, .db-rs-kopf span:nth-child(7), .db-rs-zeile summary > span:last-child { display: none; }
  .db .db-auswahl { justify-content: flex-start; }
}
@media (max-width: 560px) { .db-bz { grid-template-columns: minmax(90px, 1fr) 1fr 40px; } .db-bzus { display: none; } }

/* Offene Punkte je zuständiger Stelle (E133) */
.db-legende-zeile { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.db-legende-zeile li { display: flex; gap: 8px; }
.db-legende i.db-lz2 { background: var(--lz-2); } .db-legende i.db-lz4 { background: var(--lz-4); }
.db-ebenen { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.db-ebenen li { display: flex; gap: 8px; align-items: baseline; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.db-ebenen b { color: var(--fg); font-variant-numeric: tabular-nums; }
.db-rs-kopf, .db-rs-zeile summary { display: grid; grid-template-columns: minmax(200px, 360px) 1fr 52px 60px 64px 64px 80px; gap: 12px; align-items: center; }
.db-rs-kopf { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 8px 4px; }
.db-rs-kopf .zahl, .db-rs-zeile .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-rs-zeile { border-top: 1px solid var(--line); }
.db-rs-zeile summary { list-style: none; cursor: pointer; padding: 9px 8px; font-size: 13.5px; border-radius: 8px; }
.db-rs-zeile summary::-webkit-details-marker { display: none; }
.db-rs-zeile summary:hover { background: var(--accent-soft); }
.db-rs-zeile[open] summary { background: var(--accent-soft); }
.db-rs-name { display: grid; min-width: 0; } .db-rs-name b, .db-rs-name small { overflow-wrap: anywhere; line-height: 1.3; }
.db-rs-name b::before { content: "▸ "; color: var(--muted); } .db-rs-zeile[open] .db-rs-name b::before { content: "▾ "; }
.db-rs-name small { color: var(--muted); font-size: 12px; font-weight: 400; }
.db-rs-liste { margin: 4px 0 10px; }
.db-rs-liste .zust-stand { margin-left: 4px; }

/* Zuständige Stellen in der Verwaltung (E134) */
.zustaendig { margin-top: 16px; }
.zust-liste { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 8px; }
.zust-eintrag { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.zust-kopf { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.zust-stand { margin-left: auto; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--brand); }
.zust-erledigt { background: var(--gruen-soft); color: var(--gruen); } .zust-nicht_zustaendig { background: var(--db-spur); color: var(--muted); }
.zust-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.zust-form select, .zust-form input { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }
.zust-form input[type="text"] { flex: 1 1 180px; min-width: 0; }
.zust-nennung { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.zust-nennung form { margin: 0; }
.zust-neu summary { cursor: pointer; color: var(--accent); font-weight: 600; margin: 6px 0; }
.verlauf-kommentar { margin: 0 0 10px; }
.filterleiste .haken { margin: 0; white-space: nowrap; align-items: center; } /* Register: „auch inaktive“ (E134) */
.tabelle th.zahl, .tabelle td.zahl { text-align: right; font-variant-numeric: tabular-nums; }

/* Vorschlagsliste unter Suchfeldern für Stellen (E135, E136) */
.vorschlag-feld { position: relative; }
/* Karten mit overflow:hidden (runde Ecken) würden die Liste abschneiden — solange sie offen ist, nicht */
.nennungen:has(.vorschlaege:not([hidden])), .schritt-karte:has(.vorschlaege:not([hidden])), .schritt-karte:has(.auswahl-liste:not([hidden])), .schritt-karte:has(.ksuche-liste:not([hidden])) { overflow: visible; }
.vorschlaege { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; list-style: none; margin: 4px 0 0; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: min(420px, 60vh); overflow-y: auto; }
.vorschlaege li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.vorschlaege li strong { font-weight: 600; color: var(--fg); }
.vorschlaege li small { color: var(--muted); font-size: 12px; }
.vorschlaege li:hover, .vorschlaege li.aktiv { background: var(--accent-soft); }
.vorschlaege li.vorschlag-mehr { cursor: default; color: var(--muted); font-size: 12.5px; font-style: italic; }
.vorschlaege li.vorschlag-mehr:hover { background: none; }
.vorschlag-feld.mit-pfeil input { padding-right: 40px; }
.vorschlag-pfeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.vorschlag-pfeil:hover { background: var(--accent-soft); color: var(--brand); }

/* Experten-Prädikat (E137) */
.regeln { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.experten-liste { display: grid; gap: 12px; }
.experte-daten { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 14px; }
.experte-daten dt { color: var(--muted); } .experte-daten dd { margin: 0; }
.experte-lauft-bald-ab, .experte-abgelaufen { background: #fff1d6; color: #8a5a00; }
.experte-aktiv { background: var(--gruen-soft); color: var(--gruen); }
.experte-bearbeiten { margin: 10px 0 0; } .experte-bearbeiten a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.logo-feld { display: flex; gap: 14px; align-items: center; margin: 4px 0 10px; }
.experte-logo { max-width: 140px; max-height: 70px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }
.experte-logo.klein { max-width: 72px; max-height: 32px; padding: 2px; margin-right: 6px; }

/* Öffentliches Expertenregister (E142) */
.er { max-width: 1180px; }
.er-kopf { background: linear-gradient(135deg, var(--accent-soft), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 28px 28px 22px; margin: 8px 0 14px; }
.er-marke { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.er-kopf h1 { margin: 6px 0 8px; font-size: clamp(24px, 4vw, 34px); color: var(--brand); }
.er-lead { margin: 0 0 18px; max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.er-suche { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; max-width: 720px; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.er-suche .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.er-suche input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--fg); padding: 8px 4px; outline: none; }
.er-faecher { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.er-faecher a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--fg); text-decoration: none; }
.er-faecher a span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.er-faecher a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.er-faecher a[aria-current] span { color: inherit; opacity: .8; }
.er-zahl { margin: 4px 2px 12px; }
.er-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.er-karte { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; transition: box-shadow .15s, transform .15s; }
.er-karte:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.er-karte-kopf { display: flex; gap: 14px; align-items: center; }
.er-karte-kopf h2 { margin: 0; font-size: 18px; color: var(--brand); }
.er-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; flex: none; }
.er-initialen { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 22px; }
.er-firma { margin: 2px 0 0; font-weight: 600; color: var(--fg); }
.er-ort { margin: 2px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.er-ort .icon { width: 14px; height: 14px; }
.er-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.er-tags a { display: inline-block; background: var(--accent-soft); color: var(--brand); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; text-decoration: none; }
.er-text { margin: 0; color: var(--fg); font-size: 14px; line-height: 1.55; }
.er-text summary { cursor: pointer; list-style: none; } .er-text summary::-webkit-details-marker { display: none; }
.er-text[open] summary { display: none; }
.er-mehr { color: var(--accent); font-weight: 600; }
.er-kontakt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.er-kontakt .btn-sekundaer { padding: 7px 14px; font-size: 14px; }
.er-leer { margin-top: 8px; }
.er-werden { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 20px 22px; border-radius: 16px; border: 1px dashed var(--line); background: var(--card); }
.er-werden h2 { margin: 0 0 4px; font-size: 18px; color: var(--brand); } .er-werden p { margin: 0; color: var(--muted); max-width: 640px; }
@media (max-width: 560px) { .er-kopf { padding: 20px 16px 16px; } .er-raster { grid-template-columns: 1fr; } }
.abstand-oben { margin-top: 22px; } /* Benutzerverwaltung: Abstand vor „Neues Passwort erzeugen“ (Helmut, 2026-10-03) */
/* Ø Tage bis Abschluss je Stelle, aufklappbar (Helmut, 2026-10-03) */
.db-abschluss .db-rs-kopf, .db-abschluss .db-rs-zeile summary { grid-template-columns: minmax(200px, 360px) 1fr 64px 80px 72px; }
.db-grund { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.db-grund b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .db-abschluss .db-rs-kopf, .db-abschluss .db-rs-zeile summary { grid-template-columns: minmax(0, 1fr) 56px 56px 56px; } .db-abschluss .db-rs-kopf span:nth-child(2), .db-abschluss .db-rs-zeile summary .db-bb { display: none; } }
.db-zust { font-size: 13px; overflow-wrap: anywhere; } .db-zust small { display: block; font-size: 11.5px; } /* Längste Liegezeiten: zuständig */

/* Expertenregister: große Visitenkarten, zwei nebeneinander, Logo oben (Helmut, 2026-10-03) */
.er-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.er-karte { padding: 0; overflow: hidden; gap: 0; }
.er-logo-flaeche { display: grid; place-items: center; height: 150px; background: linear-gradient(135deg, var(--accent-soft), var(--card)); border-bottom: 1px solid var(--line); padding: 16px; }
.er-logo-flaeche .er-logo { width: auto; height: 118px; max-width: 80%; object-fit: contain; border: 0; border-radius: 10px; padding: 8px; background: #fff; image-rendering: auto; }
.er-logo-flaeche .er-initialen { width: 96px; height: 96px; border-radius: 50%; font-size: 34px; background: var(--card); border: 1px solid var(--line); }
.er-karte-inhalt { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.er-karte-inhalt h2 { margin: 0; font-size: 21px; color: var(--brand); }
.er-karte-inhalt .er-firma { margin: 4px 0 0; font-size: 16px; }
.er-karte-inhalt .er-text { font-size: 15px; }
.er-daten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.er-daten dt { color: var(--muted); } .er-daten dd { margin: 0; overflow-wrap: anywhere; }
.er-karte-inhalt .er-kontakt { padding-top: 6px; }
.er-karte-inhalt .er-kontakt a { padding: 8px 16px; font-size: 14px; line-height: 1.3; }
@media (max-width: 760px) { .er-raster { grid-template-columns: 1fr; } }
.expertendaten[hidden] { display: none; } /* Konto anlegen: nur bei Rolle Experte */

/* Kategorie in Schritt 1 als eigene Liste (Helmut, 2026-10-04): ganze Liste sichtbar, Scrollbalken deutlich */
.auswahl { position: relative; }
.auswahl-knopf { width: 100%; text-align: left; font: inherit; padding: 11px 40px 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); cursor: pointer; position: relative; }
.auswahl-knopf::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--brand); }
.auswahl-knopf.leer { color: var(--muted); }
.auswahl-knopf:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.auswahl-liste { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.auswahl-liste[hidden] { display: none; }
.auswahl-liste li { padding: 6px 12px; line-height: 1.35; border-radius: 8px; cursor: pointer; }
.auswahl-liste li.aktiv, .auswahl-liste li:hover { background: var(--accent-soft); }
.auswahl-liste li[aria-selected="true"] { font-weight: 600; }
/* Scrollbalken in allen eigenen Listen immer sichtbar und breit genug zum Sehen */
.auswahl-liste, .ksuche-liste, .vorschlaege { scrollbar-width: auto; scrollbar-color: var(--brand) var(--accent-soft); scrollbar-gutter: stable; }
.auswahl-liste::-webkit-scrollbar, .ksuche-liste::-webkit-scrollbar, .vorschlaege::-webkit-scrollbar { width: 12px; }
.auswahl-liste::-webkit-scrollbar-track, .ksuche-liste::-webkit-scrollbar-track, .vorschlaege::-webkit-scrollbar-track { background: var(--accent-soft); border-radius: 8px; }
.auswahl-liste::-webkit-scrollbar-thumb, .ksuche-liste::-webkit-scrollbar-thumb, .vorschlaege::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 8px; border: 2px solid var(--accent-soft); }
.werkzeug-karten { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 14px; }
.werkzeug-karte { padding: 16px 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; }
.werkzeug-karte h2 { margin: 0 0 6px; font-size: 1.1rem; }
.werkzeug-karte p { margin: 0 0 8px; }

/* Werkstatt → Rechtsrecherche (E157) */
.rr { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 14px; align-items: start; }
@media (max-width: 860px) { .rr { grid-template-columns: 1fr; } }
.rr-chat, .rr-quellen { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.rr-quellen { background: var(--blau-soft); border-color: var(--accent); color: var(--fg); }
.rr-quellen h2 { margin: 0 0 10px; font-size: 1.05rem; }
.rr-verlauf { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; margin-bottom: 14px; }
.rr-blase { padding: 10px 14px; border-radius: 12px; max-width: 92%; }
.rr-blase p { margin: 0 0 6px; }
.rr-blase p:last-child { margin-bottom: 0; }
.rr-frage { align-self: flex-end; background: var(--accent-soft); }
.rr-antwort { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.rr-warten { opacity: .75; }
.rr-beispiel { margin-left: 6px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--brand); font: inherit; cursor: pointer; }
.rr-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rr-knopf { padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); font: inherit; font-size: .9rem; cursor: pointer; }
.rr-knopf:disabled { opacity: .6; cursor: default; }
.rr-quelle { padding: 10px 0; border-top: 1px solid var(--line); }
.rr-quelle:first-of-type { border-top: 0; }
.rr-quelle h3 { margin: 0 0 4px; font-size: 1rem; }
.rr-ueber { margin: 0 0 4px; font-weight: 600; }
.rr-ki { margin: 0 0 4px; color: var(--brand); }
.rr-auszug { margin: 0 0 4px; font-size: .95rem; }
.rr-fuss, .rr-ki-hinweis, .rr-hinweis { margin: 4px 0 0; font-size: .85rem; }
.rr-gemeldet { margin-top: 22px; }
/* Gemeldete KI-Fehler (E179) */
.kf-filter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 0 0 14px; }
.kf-filter label { display: grid; gap: 4px; font-size: 14px; }
.kf-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kf-eintrag { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow-wrap: anywhere; }
.kf-eintrag p { margin: 0 0 6px; }
.kf-aus { opacity: .7; }
.kf-rueckfrage { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--rot); background: var(--rot-soft); border-radius: 6px; }
.kf-bearbeiten form { display: grid; gap: 6px; margin-top: 6px; }
.dialog-d365 { border: 0; padding: 0; border-radius: 16px; background: var(--card); color: var(--fg); width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dialog-d365::backdrop { background: rgba(20, 30, 50, .55); backdrop-filter: blur(2px); }
.dialog-karte { padding: 22px 24px; display: grid; gap: 10px; }
.dialog-karte h3 { margin: 0; font-size: 1.15rem; }
.dialog-karte textarea { width: 100%; box-sizing: border-box; }
.rr-quelle h3, .rr-ueber, .rr-auszug { color: var(--fg); }
.rr-quelle a, .rr-quellen a { color: var(--accent); }

/* Startseite: Potenzial (EcoAustria), „keinen Tag verlieren“, vier Grundsätze, Aufruf — nach Helmuts Vorlage (E157) */
.pot { display: grid; gap: 24px; align-items: center; margin: 40px 0 28px; }
@media (min-width: 860px) { .pot { grid-template-columns: 1.25fr 1fr; gap: 40px; } }
.pot-dach { margin: 0 0 8px; color: var(--go-dark); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pot h2 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; color: var(--brand); }
.pot h2 .gruen { color: var(--go); }
.pot p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.55; max-width: 56ch; }
.pot p strong { color: var(--brand); }
.pot .quelle { font-size: 13px; color: var(--muted); }
.pot-zahl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--gruen-soft), var(--card)); border: 1px solid var(--line); }
.pot-grafik { width: 140px; height: auto; display: block; }
.pot-grafik .muenze { fill: var(--card); stroke: var(--go-dark); stroke-width: 3; }
.pot-grafik .pfeil { fill: none; stroke: var(--go); stroke-width: 6; stroke-linecap: round; }
.pot-grafik .spitze { fill: var(--go); }
.pot-gross { font-size: clamp(36px, 4vw, 50px); font-weight: 800; line-height: 1; color: var(--brand); }
.pot-gross small { display: block; font-size: 21px; font-weight: 750; margin-top: 6px; }
.pot-zahl .unter { display: block; margin-top: 6px; line-height: 1.35; color: var(--muted); font-size: 15px; font-weight: 400; }
.pot-tag { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.pot-tag svg { width: 32px; height: 32px; flex: none; }
.pot-tag svg rect, .pot-tag svg path { fill: none; stroke: var(--go-dark); stroke-width: 2; stroke-linecap: round; }
.pot .pot-tag strong { color: var(--go-dark); }
.tag-box { display: grid; gap: 18px; align-items: center; margin: 0 0 44px; padding: 26px; border-radius: 18px; background: var(--gruen-soft); }
@media (min-width: 700px) { .tag-box { grid-template-columns: auto 1fr; gap: 30px; } .tag-box .kal { padding-right: 30px; border-right: 2px solid var(--go); } }
.tag-box .kal svg { width: 96px; height: auto; display: block; }
.tag-box .kal rect, .tag-box .kal path { fill: none; stroke: var(--go-dark); stroke-width: 4; stroke-linecap: round; }
.tag-box .kal text { fill: var(--go-dark); font-weight: 800; font-size: 26px; }
.tag-box h2 { margin: 0 0 10px; font-size: clamp(22px, 2.8vw, 30px); color: var(--brand); }
.tag-box p { margin: 0 0 8px; line-height: 1.55; }
.tag-box strong { color: var(--go-dark); }
.grundsaetze h2 { font-size: clamp(26px, 3.2vw, 34px); color: var(--brand); margin: 0 0 16px; }
.grundsatz-raster { display: grid; gap: 16px; }
@media (min-width: 600px) { .grundsatz-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grundsatz-raster { grid-template-columns: repeat(4, 1fr); } }
.grundsatz { padding: 22px 20px; border-radius: 16px; border: 1px solid var(--line); }
.grundsatz .kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.grundsatz .nr { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; flex: none; }
.grundsatz .kopf .icon { width: 40px; height: 40px; }
.grundsatz h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; color: var(--brand); }
.grundsatz p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.g-1 { background: var(--gruen-soft); } .g-1 .nr { background: #0e8a69; } .g-1 .kopf .icon { color: var(--gruen); }
.g-2 { background: var(--blau-soft); } .g-2 .nr { background: #2f6fd6; } .g-2 .kopf .icon { color: var(--blau); }
.g-3 { background: var(--gelb-soft); } .g-3 .nr { background: #b77d00; } .g-3 .kopf .icon { color: var(--gelb); }
.g-4 { background: var(--rot-soft); } .g-4 .nr { background: #c93a2f; } .g-4 .kopf .icon { color: var(--rot); }
.aufruf { margin: 44px 0 56px; padding: 34px 22px 30px; border-radius: 20px; text-align: center; background: linear-gradient(180deg, var(--gruen-soft), var(--card)); border: 1px solid var(--line); }
.aufruf h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); color: var(--brand); }
.aufruf p { margin: 0 0 20px; color: var(--muted); }
.aufruf .zeile { margin: 18px 0 0; font-weight: 700; color: var(--go-dark); }
@media (max-width: 560px) { .pot-grafik { width: 110px; } }
/* Regelprüfung (Werkstatt, E159) */
.rp-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; }
.rp-beispiele { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.rp-beispiel { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--brand); font: inherit; cursor: pointer; }
.rp-beispiel.rp-positiv { border-color: var(--gruen); } .rp-beispiel.rp-negativ { border-color: var(--rot); }
.rp-ergebnis { margin-top: 22px; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); }
.rp-ergebnis.rp-ok { background: var(--gruen-soft); } .rp-ergebnis.rp-hinweis { background: var(--gelb-soft, #fff7df); } .rp-ergebnis.rp-pruefen { background: var(--rot-soft); }
.rp-fazit { font-size: 1.1rem; margin: 0 0 6px; }
.rp-tabelle { width: 100%; margin-top: 10px; } .rp-tabelle td { vertical-align: top; } .rp-tabelle p { margin: 0 0 4px; }
.rp-marke { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rp-marke.rp-ok { background: var(--gruen-soft); color: var(--gruen); } .rp-marke.rp-hinweis { background: var(--gelb-soft, #fff7df); color: var(--gelb, #8a5a00); } .rp-marke.rp-pruefen { background: var(--rot-soft); color: var(--rot); }
.rp-regeln { margin-top: 22px; }
.rp-melden { margin-top: 14px; } .rp-melden summary { display: inline-block; cursor: pointer; list-style: none; }
.rp-melden summary::-webkit-details-marker { display: none; }
.rp-melden-form { display: grid; gap: 6px; margin-top: 10px; max-width: 640px; }
.rp-melden-form textarea, .rp-melden-form select { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; }
.rp-danke { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--gruen-soft); color: var(--gruen); font-weight: 600; }
.rp-schritt { margin: 4px 0; } .rp-uhr { color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-aktiv::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: rp-dreh .8s linear infinite; }
@keyframes rp-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rp-aktiv::before { animation: none; } }
.api-beispiel { margin: 8px 0 0; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--bg, rgba(0,0,0,.04)); border: 1px solid var(--line); }
/* Live-Anzeige je Prüfpunkt (E166): wartet · wird geprüft (dreht) · kein Fund · Fund */
.rp-punkte { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.rp-punkte:empty { display: none; }
.rp-punkt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); transition: background-color .3s, color .3s; }
.rp-punkt.rp-aktiv { color: inherit; border-color: var(--brand); }
.rp-punkt-ok { color: inherit; background: var(--gruen-soft); } .rp-punkt-ok .rp-punkt-status { color: var(--gruen); font-weight: 600; }
.rp-punkt-fund { color: inherit; background: var(--gelb-soft); border-color: var(--gelb); } .rp-punkt-fund .rp-punkt-status { font-weight: 600; }
.rp-punkt-status { font-size: 14px; }
.rp-beschaeftigt .rp-beispiel, .rp-beschaeftigt .btn-primaer { opacity: .6; pointer-events: none; }
.rp-fall { margin-bottom: 10px; } .rp-marke.rp-vorrang { background: var(--blau-soft); color: var(--blau); }
.rp-fall-widerspruch { opacity: .8; } .rp-praezedenz { margin: 0 0 6px; padding: 6px 10px; border-left: 3px solid var(--blau); background: var(--blau-soft); border-radius: 6px; }
/* Reifegrad je Werkstatt-Werkzeug (E161) */
.reifegrad { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--gelb-soft); border: 1.5px solid var(--gelb); color: var(--fg, inherit); font-size: 14px; }
.rp-melden-form input { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; }

/* Startseite unterhalb der neuen Abschnitte im selben Stil (Helmut, 2026-10-07, E157): große Überschriften,
   getönte Kacheln, Symbole in vollen Farbkreisen */
.start-abschnitt { margin: 44px 0 0; }
.start-h2, .grundsaetze h2 { font-size: clamp(26px, 3.2vw, 34px); color: var(--brand); margin: 0 0 16px; letter-spacing: -.01em; }
.start-zielgruppen .card, .start-prinzipien .card { border-radius: 18px; padding: 24px 22px; }
.start-zielgruppen .card h3, .start-prinzipien .card h3 { font-size: 19px; color: var(--brand); margin: 0 0 6px; }
.start-zielgruppen .card-icon, .start-prinzipien .card-icon { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 14px; }
.start-zielgruppen .card-icon .icon, .start-prinzipien .card-icon .icon { color: #fff; width: 24px; height: 24px; }
.start-zielgruppen .sub { color: var(--go-dark); font-size: 15px; font-weight: 700; }
.start-zielgruppen .card:nth-child(1) { background: var(--gruen-soft); border-color: transparent; } .start-zielgruppen .card:nth-child(1) .card-icon { background: #0e8a69; }
.start-zielgruppen .card:nth-child(2) { background: var(--blau-soft); border-color: transparent; } .start-zielgruppen .card:nth-child(2) .card-icon { background: #2f6fd6; }
.start-zielgruppen .card:nth-child(3) { background: var(--gelb-soft); border-color: transparent; } .start-zielgruppen .card:nth-child(3) .card-icon { background: #b77d00; }
.start-zielgruppen .card:nth-child(2) .sub { color: var(--blau); } .start-zielgruppen .card:nth-child(3) .sub { color: var(--gelb); }
.start-zielgruppen ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.start-zielgruppen li { position: relative; padding-left: 26px; line-height: 1.45; }
.start-zielgruppen li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--card); color: var(--go-dark); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }
.start-prinzipien .card { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: start; }
.start-prinzipien .card-icon { grid-row: span 2; margin: 0; background: var(--brand); }
.start-prinzipien .card p { color: var(--muted); margin: 0; line-height: 1.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .start-prinzipien .card-icon { background: #2f6fd6; } }
:root[data-theme="dark"] .start-prinzipien .card-icon { background: #2f6fd6; }
.rp-fehler { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--rot-soft); color: var(--rot); font-weight: 600; }
.api-schluessel { display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--card); border: 1.5px solid var(--line); word-break: break-all; user-select: all; font-size: 15px; }

/* Zwei-Faktor (E174): QR-Code und Einmal-Codes */
.qr-code { background: #fff; padding: 8px; border-radius: 6px; max-width: 100%; height: auto; }
.einmal-codes { columns: 2; list-style: none; padding: 0; margin: 1em 0; }
.einmal-codes li { margin: .25em 0; }

/* EU-AT-Vergleich (E186) */
.ev-schaetzung { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.ev-protokoll { white-space: pre-wrap; font-size: 12px; max-height: 260px; overflow: auto; }
.ev-befund { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.ev-befund.ev-at_strenger { border-left-color: #c2410c; }
.ev-befund.ev-eu_strenger { border-left-color: #1d4ed8; }
.ev-befund blockquote { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--line); font-size: 15px; }
.ev-kopf { margin: 0 0 8px; }
.ev-notiz { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ev-notiz input { flex: 1 1 180px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.ez-zuordnung { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.ez-zuordnung.ez-bestaetigt { border-left: 3px solid #15803d; padding-left: 10px; }
.ez-zuordnung.ez-entfernt { opacity: .55; }
.hinweis[hidden] { display: none; }  /* „nur mit Konto“ in Schritt 3 (E197) */

/* Schritt 5 ohne Konto: Vorteile eines Kontos (E197) */
.konto-vorteile { margin: 18px 0 8px; padding: 20px 22px; border-radius: 16px; background: var(--gruen-soft); }
.konto-vorteile h3 { margin: 0 0 10px; color: var(--brand); font-size: 18px; }
.konto-vorteile ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.konto-vorteile p { margin: 0 0 12px; }
.konto-vorteile .knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.konto-vorteile p.leise { margin: 0; }
/* Regelprüfung beim Melden (E196): Ergebnis deutlich über dem Formular */
.regel-ergebnis { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--gelb); background: var(--gelb-soft); border-radius: 8px; }
.regel-ergebnis.regel-pruefen { border-left-color: var(--rot); background: var(--rot-soft); }
.regel-ergebnis h3 { margin: 0 0 6px; }
.regel-ergebnis:focus { outline: 2px solid var(--rot); outline-offset: 2px; }
.regel-befunde { margin: 8px 0; padding-left: 18px; }
.regel-befunde li { margin-bottom: 8px; }
.regel-befunde blockquote { margin: 4px 0 0; padding-left: 10px; border-left: 2px solid currentColor; font-style: italic; }
/* Prüf-Fenster in Schritt 1 (E196) */
.pruef-fenster { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; background: rgba(0, 0, 0, .45); overflow-y: auto; }
.pruef-fenster[hidden] { display: none; }
.pruef-karte { background: var(--bg, #fff); color: inherit; border-radius: 12px; padding: 20px 22px; max-width: 640px; width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.pruef-karte h2 { margin: 0 0 6px; font-size: 1.25rem; }
.pruef-zeilen { list-style: none; margin: 12px 0; padding: 0; }
.pruef-zeile { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0;
  border-bottom: 1px solid rgba(127, 127, 127, .2); }
.pz-zeichen { font-weight: 700; text-align: center; }
.pz-stand { font-size: .9em; opacity: .8; white-space: nowrap; }
.pz-ok .pz-zeichen { color: var(--gruen, #2e7d32); }
.pz-hinweis .pz-zeichen, .pz-fund .pz-zeichen { color: var(--gelb, #b26a00); }
.pz-pruefen .pz-zeichen { color: var(--rot, #c62828); }
.pz-laeuft .pz-zeichen { animation: pz-puls 1.2s ease-in-out infinite; }
@keyframes pz-puls { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pz-laeuft .pz-zeichen { animation: none; } }
.regel-befund + .regel-befund { margin-top: 6px; }

/* Beta-Melden (E198) */
.beta-band { background: var(--gelb-soft); color: inherit; border-bottom: 2px solid var(--gelb); padding: .4rem 1rem; text-align: center; font-weight: 600; }
.testversion { background: var(--gelb-soft); border: 2px solid var(--gelb); border-radius: 8px; padding: .8rem 1rem; margin: 0 0 1.2rem; }
.testversion-kopf { margin: 0 0 .6rem; }
.vorschlag-liste { list-style: none; margin: 0; padding: 0; }
.vorschlag-liste li { border-top: 1px solid var(--gelb); padding: .5rem 0; }
.vorschlag-liste p { margin: .2rem 0; }
.vorschlag-fuss { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.hinweis-konto { margin: 6px 0 12px; }
.hinweis-konto.aufmerksam { animation: d365-aufmerksam 1.2s ease-out; }
@keyframes d365-aufmerksam { 0% { box-shadow: 0 0 0 0 rgba(36,90,163,.6); } 100% { box-shadow: 0 0 0 10px rgba(36,90,163,0); } }
@media (prefers-reduced-motion: reduce) { .hinweis-konto.aufmerksam { animation: none; outline: 2px solid var(--accent); } }
