/* AI-Writer: Gestaltung nach masdemas-Standard fuer interne Werkzeuge
   (dunkelblaue Seitenleiste #0f172a, beige Seite, weisse Karten, Orange #f59e0b),
   Farbwerte aus Tools/37_podcast-engine/web/stil.css. Schrift Inter, lokal. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('inter-latin.woff2') format('woff2');
}

:root {
  --seite: #f2e9de;
  --leiste: #0f172a;
  --karte: #ffffff;
  --karte-2: #faf6f0;
  --linie: #e6ddd0;
  --linie-2: #d8cdbb;
  --text: #000;
  --akzent: #f59e0b;
  --akzent-hell: rgba(245, 158, 11, 0.16);
  --rot: #c7402b;
  --gruen: #1f8a4c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--seite); color: var(--text); line-height: 1.55; min-height: 100vh;
}
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--karte); padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 8px; z-index: 10; }

/* Knoepfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.btn-primaer { background: var(--akzent); color: #000; }
.btn-primaer:hover { background: #f8bb4c; }
.btn-leise { background: transparent; border-color: var(--linie-2); color: #000; }
.btn-leise:hover { background: var(--karte-2); }
.btn-dunkel { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; width: 100%; }
.btn-dunkel:hover { background: rgba(255,255,255,0.08); }
.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--akzent); outline-offset: 2px;
}
/* Eingabefelder: dünner Ring direkt am Feld statt dickem Rahmen mit Abstand. Der alte Rahmen
   ragte 5 px über das Feld hinaus und verdeckte den Hinweistext darüber (User 09.11.2026). */
input:focus, select:focus, textarea:focus { outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: #000; box-shadow: 0 0 0 2px var(--akzent);
}

/* Formulare */
label { display: block; font-size: 0.9rem; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: #000;
  background: var(--karte); border: 1px solid var(--linie-2); border-radius: 8px; padding: 9px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.hinweis { font-size: 0.9rem; margin-top: 4px; margin-bottom: 8px; }
.meldung { margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; }
.meldung.fehler { color: var(--rot); }
.meldung.ok { color: var(--gruen); }

/* Anmeldung: Gestaltung kommt komplett aus overlay-hell.css (Standard-Maske).
   Hier nur der kleine Zurueck-Link, den die Vorlage nicht hat, in der Art des Team-Tools. */
.pw-link { background: transparent; border: none; color: #000; opacity: .6; font-size: .82rem; cursor: pointer;
           font-family: inherit; text-decoration: underline; padding: .3rem; margin-top: .75rem; }
.pw-link:hover { opacity: .9; }

/* Werkzeug-Aufbau */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.seitenleiste {
  background: var(--leiste); color: #fff; padding: 24px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.seitenleiste-logo { height: 25px; width: auto; align-self: flex-start; }
.seitenleiste-titel { font-weight: 800; font-size: 1.05rem; margin: 6px 0 14px; }
.seitenleiste-label { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.seitenleiste select { margin-bottom: 18px; }
.navigation { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.navigation button {
  width: 100%; text-align: left; background: transparent; border: 0; color: #fff;
  font: inherit; font-size: 0.95rem; padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.navigation button:hover { background: rgba(255,255,255,0.08); }
/* Aktiver Bereich ruhig: helle Fläche, fette Schrift, kleiner oranger Punkt (User 09.11.2026) */
.navigation button[aria-current="page"] { background: rgba(255,255,255,0.12); color: #fff; font-weight: 700; }
.navigation button[aria-current="page"]::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
                                                 background: var(--akzent); margin-left: 10px; vertical-align: 2px; }
.seitenleiste-fuss { margin-top: auto; padding-top: 20px; }
.angemeldet { font-size: 0.85rem; margin-bottom: 10px; word-break: break-all; }

.inhalt { padding: 28px 32px 60px; max-width: 1100px; }
.inhalt:focus { outline: none; }
.kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
        padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--linie); }
.kopf h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.kopf p { font-size: 0.95rem; margin-top: 4px; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; }
.karte h2 { font-size: 1.1rem; font-weight: 700; }
.karte h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 4px; }
.karte p { white-space: pre-wrap; }
.karte-aktionen { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.leer { background: var(--karte-2); border: 1px dashed var(--linie-2); border-radius: 12px; padding: 20px; }

.tabelle { width: 100%; border-collapse: collapse; background: var(--karte); border-radius: 12px; overflow: hidden; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linie); font-size: 0.95rem; }
.tabelle th { background: var(--karte-2); font-weight: 700; }

/* Dargestelltes Markdown (Marken, Rollen, Suchtreffer) */
.md { font-size: 0.95rem; }
.md p { margin: 0 0 10px; white-space: normal; }
.md .md-ue { font-weight: 700; margin: 14px 0 6px; }
.md .md-ue1 { font-size: 1.1rem; }
.md .md-ue2 { font-size: 1.02rem; }
.md .md-ue3 { font-size: 0.95rem; }
.md ul, .md ol { margin: 0 0 10px 22px; }
.md li { margin-bottom: 3px; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--karte-2); padding: 1px 4px; border-radius: 4px; }
.md pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; background: var(--karte-2); border: 1px solid var(--linie); border-radius: 8px; padding: 12px; overflow-x: auto; margin: 0 0 10px; white-space: pre-wrap; }
.md blockquote { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 8px 0; margin: 0 0 10px; font-style: italic; }
.md hr { border: 0; border-top: 1px solid var(--linie); margin: 12px 0; }
.md-tabelle-rahmen { overflow-x: auto; margin: 0 0 12px; }
.md-tabelle { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.md-tabelle th, .md-tabelle td { border: 1px solid var(--linie); padding: 6px 9px; text-align: left; vertical-align: top; }
.md-tabelle th { background: var(--karte-2); }

.tabelle small { font-size: 0.8rem; }
/* Abgeschaltetes Wissen: Flaeche grau statt Deckkraft (Hausregel) */
.tabelle tr.aus td { background: #ebe6de; }
.treffer { border-top: 1px solid var(--linie); padding-top: 12px; margin-top: 12px; }
.treffer h3 { text-transform: none; letter-spacing: 0; font-size: 0.95rem; margin: 0 0 4px; }
input[type=file] { background: var(--karte-2); }
.btn:disabled { opacity: .5; cursor: default; }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kennzahl { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 16px 18px; }
.kennzahl strong { display: block; font-size: 1.6rem; font-weight: 800; }

/* Beiträge
   Bedeutungsfarben nur als Fläche, Schrift bleibt schwarz (Kontrast über 10:1):
   gelb = steht nicht in den Unterlagen, hellrot = Widerspruch, hellblau = Regel,
   hellgrün = fertig/freigegeben, hellgrau = noch offen. Farbe nie allein: immer mit Text oder Nummer.
   Hervorhebung über Flächen, Rahmen nur 1px (Hausregel). */
:root {
  --gelb: #fde7b0;
  --hellrot: #f8d3cb;
  --hellblau: #d5e5f6;
  --hellgruen: #cdeedb;
  --helllila: #e4dcf4;
  --hellgrau: #ebe6de;
}

/* Wegleiste: wo stehe ich, was kommt */
/* Ruhig: Schritte als Text mit Nummer, nur die Nummer des aktuellen Schritts ist orange (User 09.11.2026) */
.wegleiste { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 18px; }
.wegleiste li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.92rem; }
.weg-nr { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
          background: var(--hellgrau); font-weight: 700; font-size: 0.8rem; }
.wegleiste .weg-offen .weg-nr { background: var(--karte); border: 1px solid var(--linie-2); }
.wegleiste .weg-aktiv { font-weight: 700; }
.wegleiste .weg-aktiv .weg-nr { background: var(--akzent); }
.wegleiste .weg-fertig .weg-nr { background: var(--hellgruen); }

/* Etiketten für den Stand */
.etikett { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.etikett-offen { background: var(--hellgrau); }
.etikett-hinweise { background: var(--gelb); }
.etikett-bereit, .etikett-frei { background: var(--hellgruen); }
/* Textansicht ruhig (User 09.11.2026): Rücklink über dem Titel, Schritte und Erklärung in einer weißen Karte */
.zurueck-link { background: none; border: 0; font: inherit; font-size: 0.9rem; font-weight: 600; color: #000; cursor: pointer;
                padding: 4px 0; margin-bottom: 4px; }
.zurueck-link:hover { text-decoration: underline; }
.zurueck-link:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
/* Kompakt: Schritte in einer Zeile, darunter Erklärung links und Knöpfe rechts daneben */
.schrittkarte { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px;
                background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 18px; margin-bottom: 16px; }
.schrittkarte .wegleiste { margin: 0; grid-column: 1 / -1; grid-row: 1; }
.schritt-text { font-size: 0.92rem; grid-column: 1; grid-row: 2; }
.schrittkarte .karte-aktionen { margin-top: 0; grid-column: 2; grid-row: 2; justify-content: flex-end; flex-wrap: nowrap; }
.schrittkarte .btn { padding: 8px 14px; }
.schrittkarte + .meldung:empty { margin: 0; min-height: 0; }
.artikel-text .md > :first-child { margin-top: 0; }

/* Hauptaktion: ein Satz, was jetzt zu tun ist, und der eine Hauptknopf */
.aktionsleiste { background: var(--akzent-hell); border: 1px solid var(--akzent); border-radius: 12px; padding: 16px 20px; margin-bottom: 8px; }
.aktionsleiste p { font-size: 1rem; }
.aktionsleiste .karte-aktionen { margin-top: 12px; }
.aktionsleiste .btn-leise { background: var(--karte); }

/* Reiter je Website */
.reiter { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.reiter-knopf { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
                border: 1px solid var(--linie-2); background: var(--karte-2); font: inherit; font-weight: 600; cursor: pointer; color: #000; }
.reiter-knopf[aria-selected="true"] { background: var(--karte); border-color: #000; }
.reiter-knopf:hover { background: var(--karte); }

/* Arbeitsfläche: Text links, Faktencheck rechts */
.arbeitsflaeche { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.textspalte .artikel-text { max-width: 70ch; }
.artikel-text .md { font-size: 1rem; line-height: 1.65; }
/* Keine eigene Scrollleiste in der Spalte (User 11.11.2026: „wie 90er“): Die Spalte läuft mit der
   Seite und ist so hoch wie der Text daneben (align-self: stretch). Nur die Klärkarte mit
   „Passt so“ bleibt beim Scrollen stehen. */
/* Stand 11.11.2026, zweite Fassung: Während geklärt wird, steht die ganze Spalte fest und enthält
   nur Überschrift, Zähler und Klärkarte (passt in den Bildschirm, also keine Scrollleiste). Alles
   Weitere steht dann in .hinweis-uebersicht unter dem Text, damit nichts übereinanderläuft. Ohne
   offenen Hinweis läuft die Spalte normal mit der Seite. Fest nur bei genug Bildschirmhöhe. */
.hinweisspalte { padding-bottom: 20px; }
@media (min-height: 700px) and (min-width: 761px) {
  .hinweisspalte.spalte-fest { position: sticky; top: 16px; }
}
.spalte-verweis { margin: 2px 0 0; font-size: 0.88rem; }
.hinweis-uebersicht { margin-top: 16px; }
.hinweis-uebersicht > h2 + .einklappen { border-top: 0; padding-top: 0; margin-top: 8px; }
.hinweis-uebersicht > .legende { margin-top: 16px; border-top: 1px solid var(--linie); padding-top: 12px; }
/* Modellvergleich als ruhige Zeile unter der Schrittkarte, aufklappbar */
.vergleich-box { padding: 14px 22px; }
.vergleich-box > summary { cursor: pointer; }
.vergleich-box[open] > summary { margin-bottom: 10px; }
.hinweisspalte h2 { margin-bottom: 6px; }
.legende { font-size: 0.9rem; }
.spalte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.spalte-kopf h2 { margin: 0; }
.spalte-zaehler { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.hinweisspalte > .legende { margin-top: 16px; border-top: 1px solid var(--linie); padding-top: 12px; }
.zaehler-gross { font-weight: 800; font-size: 1.05rem; margin-top: 10px; }
.hinweise { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.hinweis-karte { border: 1px solid var(--linie); border-radius: 10px; padding: 12px; background: var(--karte); font-size: 0.92rem; }
.hinweis-karte.ist-geklaert { background: var(--hellgrau); }
.hinweis-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
/* Aktueller offener Hinweis oben in der Spalte (Nutzertest 07.11.2026): ein Hinweis, eine Entscheidung */
.klaerkarte { margin-top: 12px; border: 1px solid transparent; border-radius: 12px; padding: 14px; background: var(--akzent-hell); font-size: 0.95rem; }
.klaerkarte q { display: block; font-style: italic; margin-bottom: 6px; }
.klaerkarte .karte-aktionen { margin-top: 12px; }
.klaer-zaehler { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.klaer-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.klaer-kopfzeile .klaer-zaehler { margin-bottom: 0; }
.klaer-pfeile { display: flex; gap: 6px; }
.klaer-pfeile .btn-klein { min-width: 40px; min-height: 36px; font-size: 1.1rem; line-height: 1; }
.klaer-pfeile .btn-klein:disabled { opacity: 0.4; cursor: default; }
.klaerkarte-fertig { border-color: var(--gruen); background: var(--karte); }
.klaerkarte-fertig .klaer-zaehler { color: var(--gruen); font-size: 0.95rem; text-transform: none; letter-spacing: 0; }
.entscheidung { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--karte); font-size: 0.88rem; }
.entscheidung dt { font-weight: 700; }
.entscheidung dd { margin: 0 0 6px; }
.entscheidung dd:last-child { margin-bottom: 0; }
.alle-hinweise summary { font-size: 0.92rem; }
.hinweis-karte q { display: block; font-style: italic; margin-bottom: 6px; }
.hinweis-karte p { white-space: normal; }
.hinweis-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.btn-klein { padding: 7px 12px; font-size: 0.85rem; background: var(--karte); border-color: var(--linie-2); color: #000; min-height: 36px; }
.btn-klein:hover { background: var(--karte-2); }

/* Markierte Stellen: Fläche nach Art, Nummer wie in der Liste */
mark.stelle { color: #000; padding: 1px 3px; border-radius: 4px; scroll-margin: 120px; }
.stelle-nicht_belegt { background: var(--gelb); }
.stelle-widerspruch { background: var(--hellrot); }
.stelle-regel { background: var(--hellblau); }
.stelle-kritik { background: var(--helllila); }
/* Lernkurve: breite Tabelle darf am Handy waagerecht scrollen, die Seite selbst nicht */
.tabelle-rahmen { overflow-x: auto; }
.lernkurve th[scope="row"] { background: var(--karte); white-space: nowrap; }
.start-hinweis { margin-bottom: 16px; }
.liste-eingerueckt { padding-left: 20px; margin: 8px 0; }
.liste-eingerueckt li { margin-bottom: 6px; }
.pruefpunkt { font-size: 0.82rem; font-weight: 700; margin: 2px 0 4px; }
.kritik-urteil .staerken { margin: 4px 0 0 18px; }
.kritik-urteil h3 { font-size: 0.95rem; margin-top: 10px; }
mark.stelle-geklaert { background: transparent; }
.stelle-nr { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
             border-radius: 999px; font-size: 0.72rem; font-weight: 800; font-style: normal; margin-right: 4px; vertical-align: 1px;
             border: 1px solid rgba(0,0,0,0.35); }
mark .stelle-nr { background: #fff; }
/* Nummer im Text als Knopf: zeigt den Hinweis in der Klärkarte (User 11.11.2026) */
button.stelle-nr { font-family: inherit; line-height: 1; color: #000; cursor: pointer; }
button.stelle-nr:hover { background: var(--akzent-hell); border-color: #000; }
button.stelle-nr:focus-visible { outline: 3px solid var(--akzent); outline-offset: 1px; }
span.stelle-nr.stelle-geklaert { background: var(--hellgrau); }
.blinkt { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* Geführtes Anlegen */
.karte-aktiv { border-color: var(--linie); }
.zusammenfassung { margin-bottom: 8px; }
.abstand-oben { margin-top: 20px; }
.auswahl { display: grid; gap: 8px; margin-top: 8px; }
.auswahl-karte { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 0; padding: 12px 14px;
                 border: 1px solid var(--linie-2); border-radius: 10px; cursor: pointer; background: var(--karte); }
.auswahl-karte:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.auswahl-karte input { width: auto; margin-top: 4px; }
.auswahl-fest { padding: 12px 14px; border-radius: 10px; background: var(--karte-2); margin-top: 8px; }
/* Briefing: fünf Fragen untereinander, Auswahl in zwei Spalten (am Handy eine) */
.auswahl-zwei { grid-template-columns: 1fr 1fr; }
.auswahl-drei { grid-template-columns: 1fr 1fr 1fr; }
.frage { font-size: 1.05rem; margin: 0 0 4px; }
.frage.abstand-oben { margin-top: 24px; }
.briefing-kurz { margin: 0 0 4px; }
.meldung-frage { margin: 4px 0 0; }
.meldung-frage:empty { display: none; }
.fortschritt { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.fortschritt li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--karte-2); }
.fortschritt .f-fertig { background: var(--hellgruen); }
.fortschritt .f-laeuft { background: var(--akzent-hell); font-weight: 700; }
.fortschritt .f-frage, .fortschritt .f-fehler { background: var(--gelb); }
.f-zeichen { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
             border: 1px solid var(--linie-2); background: #fff; flex: none; }
.f-laeuft .f-zeichen { border-color: var(--akzent); background: conic-gradient(var(--akzent) 0 30%, #fff 30% 100%); animation: drehen 0.9s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .f-laeuft .f-zeichen { animation: none; } }
.hinweis-kasten { background: var(--akzent-hell); border: 1px solid var(--akzent); border-radius: 12px; padding: 16px 18px; margin-top: 14px; }
.hinweis-kasten.hinweis-fehler { background: var(--hellrot); border-color: var(--rot); }
.karte .hinweis-kasten h3, .hinweis-kasten h3 { font-size: 1rem; margin: 0 0 4px; text-transform: none; letter-spacing: 0; }

/* Eingeklappte Bereiche, Eingabe, Zähler */
.einklappen { margin-top: 16px; border-top: 1px solid var(--linie); padding-top: 12px; }
.einklappen summary { cursor: pointer; font-weight: 700; }
.einklappen .md, .einklappen p, .einklappen ul { margin-top: 8px; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 0.92rem; }
.meta dt { font-weight: 700; }
.zaehler { font-size: 0.8rem; padding: 1px 8px; border-radius: 999px; }
.zaehler.ok { background: var(--hellgruen); }
.zaehler.zu-lang { background: var(--gelb); }
textarea.gross { min-height: 560px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; line-height: 1.55; }
textarea.klein { min-height: 70px; }
.verlauf { list-style: none; }
.btn-link { background: none; border: 0; padding: 3px 0; font: inherit; color: #000; text-decoration: underline; cursor: pointer; text-align: left; }
.btn-link-stark { font-weight: 700; }

/* Rückmeldung geben und Anleitung: seit 11.11.2026 als Menügruppe „Hilfe“ statt schwebendem
   Knopf, der Inhalte verdeckte. Gleicher Stil wie die Menüpunkte. */
.hilfe { margin-top: 2px; }
.seitenleiste .hilfe .navigation-gruppe { padding-top: 6px; }  /* mit Abständen der Leiste gleich viel Luft wie über „Einrichten“ */
.nav-knopf { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: #fff;
             font: inherit; font-size: 0.95rem; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.nav-knopf:hover { background: rgba(255,255,255,0.08); }
.nav-knopf[hidden] { display: none; }
.nav-knopf:focus-visible, .navigation button:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.fenster { margin: auto; width: min(560px, calc(100vw - 32px)); border: 1px solid var(--linie); border-radius: 14px;
           padding: 22px 24px; background: var(--karte); color: #000; }
.fenster::backdrop { background: rgba(15, 23, 42, 0.45); }
.fenster h2 { font-size: 1.2rem; margin-bottom: 6px; }
.haken-zeile { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.haken-zeile input { width: auto; }
.rueckmeldung p { white-space: pre-wrap; }
.rueckmeldung-kopf { font-size: 0.9rem; }
.inhalt { padding-bottom: 40px; }  /* früher Platz für den schwebenden Rückmeldung-Knopf, seit 11.11.2026 in der Seitenleiste */

/* Verbrauch oben rechts auf dem Start */
.verbrauch { display: flex; flex-direction: column; gap: 6px; min-width: 240px; background: var(--karte); border: 1px solid var(--linie);
             border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; }
.verbrauch-text strong { font-size: 1.1rem; }
.verbrauch progress { width: 100%; height: 10px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--hellgrau); overflow: hidden; }
.verbrauch progress::-webkit-progress-bar { background: var(--hellgrau); border-radius: 999px; }
.verbrauch progress::-webkit-progress-value { background: var(--gruen); border-radius: 999px; }
.verbrauch progress::-moz-progress-bar { background: var(--gruen); border-radius: 999px; }
.verbrauch-knapp { background: var(--gelb); border-color: var(--akzent); }
.verbrauch-knapp progress::-webkit-progress-value { background: var(--akzent); }
.verbrauch-knapp progress::-moz-progress-bar { background: var(--akzent); }
.verbrauch-voll { background: var(--hellrot); border-color: var(--rot); }
.verbrauch-voll progress::-webkit-progress-value { background: var(--rot); }
.verbrauch-voll progress::-moz-progress-bar { background: var(--rot); }

/* Websites und Expertinnen: kompakte Übersicht, Bereiche zum Aufklappen */
.zeilen-karte.zeilen-karte-zwei { grid-template-columns: 1fr auto; }
.zeilen-titel { font-size: 1.05rem; font-weight: 700; }
.abstand-unten { margin-bottom: 8px; }
/* Gruppenfarben als Fläche, Schrift bleibt schwarz */
.farbe-gruen { background: var(--hellgruen); }
.farbe-rot { background: var(--hellrot); }
.farbe-blau { background: var(--hellblau); }
.farbe-gelb { background: var(--gelb); }
.farbpunkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.3); }
.reiter-zahl { font-size: 0.78rem; font-weight: 700; background: var(--hellgrau); border-radius: 999px; padding: 1px 8px; }

/* Eine Gruppe: farbiger Kopf, darunter die Abschnitte als Zeilen */
.gruppe { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
.gruppe-kopf { padding: 18px 22px; }
.gruppe-kopf h2 { font-size: 1.25rem; font-weight: 800; }
.gruppe-kopf p { margin-top: 4px; }
.gruppe-zahl { font-size: 0.85rem; font-weight: 600; }
.gruppe-inhalt { padding: 4px 22px 18px; }
.gruppe-leer { padding: 16px 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.abschnitt-zeile { border-bottom: 1px solid var(--linie); }
.abschnitt-zeile:last-child { border-bottom: 0; }
.abschnitt-zeile > summary { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; cursor: pointer; list-style: none; }
.abschnitt-zeile > summary::-webkit-details-marker { display: none; }
.abschnitt-zeile > summary:hover .bereich-titel { text-decoration: underline; }
.bereich-titel { font-weight: 700; }
.bereich-titel::before { content: "▸ "; }
.abschnitt-zeile[open] .bereich-titel::before { content: "▾ "; }
.bereich-vorschau { font-size: 0.88rem; padding-left: 16px; }
.abschnitt-zeile[open] .bereich-vorschau { display: none; }
/* Unterlagen in Blöcken je Expertin */
.unterlagen-block { border-bottom: 1px solid var(--linie); }
.unterlagen-block > summary { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; cursor: pointer; list-style: none; }
.unterlagen-block > summary::-webkit-details-marker { display: none; }
.unterlagen-block > summary:hover .bereich-titel { text-decoration: underline; }
.unterlagen-block[open] .bereich-titel::before { content: "▾ "; }
.unterlagen-block > .liste-karten, .unterlagen-block > .gruppe-leer { margin-bottom: 16px; }
.abschnitt-inhalt { padding: 0 0 16px 16px; }
.abschnitt-direkt { padding-top: 14px; }
.abschnitt-direkt h3 { font-size: 1rem; margin-bottom: 6px; }
.abschnitt-form { padding: 14px 0; }
textarea.mittel { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; line-height: 1.55; }

/* Lange Dateinamen ohne Leerzeichen dürfen die Seite nicht verbreitern (Handy) */
.inhalt { min-width: 0; }
.tabelle td { overflow-wrap: anywhere; }

/* Ablagefläche für Dateien */
.unsichtbar { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.feld-titel { font-size: 0.9rem; font-weight: 600; margin: 14px 0 6px; }
.ablage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
          margin: 0; padding: 26px 20px; border: 1px dashed var(--linie-2); border-radius: 12px; background: var(--karte-2);
          font-weight: 400; cursor: pointer; transition: background-color .15s, border-color .15s; }
.ablage:hover, .ablage-aktiv { background: var(--akzent-hell); border-color: var(--akzent); }
.ablage:focus-within { outline: 3px solid var(--akzent); outline-offset: 2px; }
.ablage-gewaehlt { background: var(--hellgruen); border-style: solid; border-color: var(--gruen); }
.ablage-link { text-decoration: underline; font-weight: 600; }
.ablage-info { font-size: 0.82rem; }
@media (prefers-reduced-motion: reduce) { .ablage { transition: none; } }

/* Unterlagen: Schutz, Vorprüfung, Freigabe */
.schutz-kasten { background: var(--hellblau); border: 1px solid var(--linie); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.schutz-kasten h2 { font-size: 1.05rem; margin-bottom: 6px; }
.schutz-kasten ol { margin-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.seite { border: 1px solid var(--linie); border-radius: 10px; margin-top: 10px; background: var(--karte); }
.seite > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; flex-wrap: wrap; }
.seite-aus { background: var(--hellgrau); }
.seite-aus .seite-text { text-decoration: line-through; }
.seite-info { font-size: 0.85rem; }
.seite-text { white-space: pre-wrap; padding: 0 14px 14px; font-size: 0.92rem; line-height: 1.6; max-height: 420px; overflow-y: auto; overflow-wrap: anywhere; }
.fund { display: inline; font: inherit; color: #000; border: 1px solid rgba(0,0,0,0.25); border-radius: 4px; padding: 0 3px; cursor: pointer; }
.fund-person { background: var(--hellrot); }
.fund-kennzahl { background: var(--gelb); }
.fund-vertraulich { background: var(--hellblau); }
.fund-weg { text-decoration: line-through; }
.legende-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; font-size: 0.88rem; }
.legende-zeile .fund { cursor: default; }
.fenster-breit { width: min(820px, calc(100vw - 32px)); }
.fenster-text { max-height: 60vh; overflow-y: auto; border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: var(--karte-2); }
.aufbau { white-space: pre-wrap; font-family: inherit; font-size: 0.9rem; margin: 0; }
.unterlage { grid-template-columns: 1fr auto auto; }
.unterlage-aus { background: var(--hellgrau); }
.unterlage-stand { display: flex; gap: 6px; flex-wrap: wrap; }
.unterlage-aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.btn-hervor { background: var(--akzent-hell); border-color: var(--akzent); }

/* Menü in Gruppen */
.navigation-gruppe { color: #fff; opacity: .75; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 12px 4px; }
.navigation-gruppe:first-child { padding-top: 0; }

/* Start */
.start-aktion { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 24px; }
.start-aktion h2 { font-size: 1.2rem; margin-bottom: 4px; }
.btn-gross { padding: 14px 22px; font-size: 1rem; }
.checkliste { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.checkliste li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--karte-2); }
.checkliste li.erledigt { background: var(--hellgrau); }
.checkliste .weg-nr { background: #fff; border: 1px solid var(--linie-2); }
.abschnitt { font-size: 1.1rem; font-weight: 700; margin: 8px 0 10px; }
.liste-karten { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.zeilen-karte { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; background: var(--karte);
                border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; }
.zeilen-karte small { font-size: 0.82rem; }
.kosten-zeile { font-size: 0.85rem; margin-top: 8px; }

/* Start, ruhig (User 09.11.2026): eine Frage, ein Feld, ein Knopf. Darunter eine schlichte Liste,
   die Kosten am Ende. Hierarchie über Größe und Gewicht, Schrift bleibt schwarz. */
/* Eine Spalte, eine Breite: Überschrift, Feld, Liste und Kosten enden an derselben Kante */
.start { max-width: 760px; }
.start-kopf { margin: 8px 0 18px; }
.start-kunde { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.start-kopf h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.start-kopf p:last-child:not(.start-kunde) { font-size: 1rem; margin-top: 8px; }
.start-schreiben { margin-bottom: 30px; }
.start-feld { display: flex; gap: 8px; align-items: center; background: var(--karte); border: 1px solid var(--linie);
              border-radius: 14px; padding: 8px; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07); }
.start-feld input { border: 0; background: transparent; font-size: 1.05rem; padding: 12px 14px; flex: 1; min-width: 0; }
.start-feld input:focus-visible { box-shadow: none; }
.start-feld:focus-within { border-color: #000; box-shadow: 0 0 0 2px var(--akzent), 0 6px 24px rgba(15, 23, 42, 0.07); }
.start-feld .btn { flex: none; border-radius: 12px; }
.start-hilfe { font-size: 0.9rem; margin-top: 12px; }
.start-hilfe + .start-hilfe { margin-top: 6px; }
.start-hilfe a { color: #000; font-weight: 700; }
.start-liste { list-style: none; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.start-liste li + li { border-top: 1px solid var(--linie); }
.start-zeile { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; width: 100%;
               padding: 12px 18px; background: transparent; border: 0; font: inherit; color: #000; text-align: left; cursor: pointer; }
.start-zeile:hover { background: var(--karte-2); }
.start-zeile:focus-visible { outline: 3px solid var(--akzent); outline-offset: -3px; }
.start-zeile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.start-zeile-text strong { font-weight: 600; overflow-wrap: anywhere; }
.start-zeile-text small { font-size: 0.82rem; }
.start-stand { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; white-space: nowrap; }
.punkt { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.punkt-offen { background: var(--linie-2); }
.punkt-hinweise { background: var(--akzent); }
.punkt-bereit, .punkt-frei { background: var(--gruen); }
.start-pfeil { font-size: 1.4rem; line-height: 1; }
.start-fuss { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--linie); }
/* Kosten in einer Zeile: Text links, Balken rechts an derselben Kante wie die Liste */
.start-fuss .verbrauch { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
                         background: transparent; border: 0; padding: 0; min-width: 0; width: 100%; }
.start-fuss .verbrauch progress { width: 200px; }
.start > .verbrauch { margin-bottom: 18px; }

/* Neuer Text: freiwillige Angaben eingeklappt */
.feld-gross { font-size: 1rem; font-weight: 700; margin-top: 0; }
.zusatz { margin-top: 18px; border-top: 1px solid var(--linie); padding-top: 14px; }
.zusatz > summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.zusatz-inhalt { padding-top: 4px; }
.zusatz-inhalt .meldung:empty { min-height: 0; margin-top: 4px; }

@media (max-width: 760px) {
  .auswahl-zwei, .auswahl-drei { grid-template-columns: 1fr; }
  .zeilen-karte { grid-template-columns: 1fr; gap: 8px; }
  .start-kopf h1 { font-size: 1.6rem; }
  .schrittkarte { grid-template-columns: 1fr; }
  .schrittkarte .karte-aktionen { grid-column: 1; grid-row: 3; justify-content: flex-start; flex-wrap: wrap; }
  .start-feld { flex-direction: column; align-items: stretch; }
  .start-zeile { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .start-fuss .verbrauch progress { width: 100%; }
  .start-stand { grid-column: 1; grid-row: 2; }
  .start-pfeil { grid-row: 1 / span 2; grid-column: 2; }
  .tabelle { display: block; overflow-x: auto; }
  .checkliste li { grid-template-columns: auto 1fr; }
  .checkliste li .btn { grid-column: 1 / -1; }
  .arbeitsflaeche { grid-template-columns: 1fr; }
  .hinweisspalte { order: -1; }
  .app { grid-template-columns: 1fr; }
  .seitenleiste { padding: 16px; }
  .inhalt { padding: 20px 16px 40px; }
}
