/* Hausschrift Lato (SIL Open Font License, siehe schriften/OFL.txt) */
@font-face { font-family: "Lato"; src: url("schriften/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("schriften/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* Lead-Radar. Fließtext schwarz, Farbe nur für Überschriften und Akzente, Schrift Lato/Arial. */
:root {
  --text: #000000;
  --grund: #f2f5f9;
  --karte: #ffffff;
  --flaeche: #e9eff6;
  --hover: #f1f6fc;
  --akzent: #0b4f8a;
  --auf-akzent: #ffffff;
  --rand: #5b6b7f;
  --linie: #cfd8e3;
  --fehler: #a11a1a;
  --ok: #1d6b2f;
  --laeuft: #b45309;
  --schatten: 0 1px 2px rgba(10, 30, 60, 0.06), 0 6px 18px rgba(10, 30, 60, 0.07);
  --schatten-gross: 0 2px 6px rgba(10, 30, 60, 0.1), 0 14px 34px rgba(10, 30, 60, 0.16);
  --s-neu: #0b4f8a;
  --s-kontaktiert: #b45309;
  --s-interesse: #1d6b2f;
  --s-partner: #5b2a86;
  --s-kein: #5b6b7f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f5;
    --grund: #0e1521;
    --karte: #172130;
    --flaeche: #1f2b3d;
    --hover: #223046;
    --akzent: #8cc4ff;
    --auf-akzent: #0e1521;
    --rand: #9aa7b8;
    --linie: #364459;
    --fehler: #ffb4b4;
    --ok: #9be7ac;
    --laeuft: #b45309;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
    --schatten-gross: 0 2px 6px rgba(0, 0, 0, 0.5), 0 14px 34px rgba(0, 0, 0, 0.5);
    --s-neu: #8cc4ff;
    --s-kontaktiert: #fbbf24;
    --s-interesse: #86efac;
    --s-partner: #d8b4fe;
    --s-kein: #9aa7b8;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 14px; color: var(--akzent); }
h2 { font-size: 19px; line-height: 1.3; margin: 28px 0 10px; color: var(--akzent); }
h3 { font-size: 16px; line-height: 1.35; margin: 0 0 8px; color: var(--akzent); }
p { margin: 0 0 10px; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}
.zeichen { flex: none; vertical-align: -3px; }
.einleitung { font-size: 16px; margin-bottom: 18px; }

/* Kopfzeile */
.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 10px 28px 8px;
  background: linear-gradient(90deg, #08294a, #0b4f8a);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(8, 41, 74, 0.28);
}
/* Die Kopfzeile bleibt beim Scrollen oben stehen. Auf kleinen Bildschirmen nicht: Dort bricht das Menü in mehrere
   Zeilen um und nähme zu viel Platz weg. --kopf-hoehe setzt app.js auf die tatsächliche Höhe. */
@media (min-width: 900px) and (min-height: 420px) {
  .kopf { position: sticky; top: 0; z-index: 40; }
  html { scroll-padding-top: calc(var(--kopf-hoehe, 0px) + 14px); }
}
.kopf a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #ffffff; text-decoration: none; padding: 7px 12px; border-radius: 999px;
  transition: background-color 0.15s;
}
.kopf nav a:hover, .kopf .konto a:hover, .kopf .bereiche a:hover { background: rgba(255, 255, 255, 0.16); }
.kopf nav a.aktiv { background: #ffffff; color: #000000; font-weight: bold; }
.kopf .konto a.aktiv { background: rgba(255, 255, 255, 0.22); font-weight: bold; }
/* Eigene Bereiche oben rechts vor dem Konto, durch Striche getrennt */
.kopf .bereiche { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }
.kopf .bereiche a.aktiv { background: #ffffff; color: #000000; font-weight: bold; }
.kopf .bereiche + .konto { margin-left: 0; }
.kopf .marke-name { font-size: 20px; font-weight: bold; padding-left: 0; margin-right: 6px; }
.kopf .marke-name .zeichen { width: 26px; height: 26px; }
/* Das Menü steht als eigene Zeile unter Name und Konto, damit alle Einträge nebeneinander passen */
.kopf nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; order: 3; flex: 0 0 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 8px; margin-left: -12px;
}
.kopf .trenner { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.35); margin: 0 6px; }
.kopf .konto { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; }
.kopf .konto button {
  font: inherit; color: #ffffff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.kopf .konto button:hover { background: #ffffff; color: #000000; }

/* „läuft“: Marke mit pulsierendem Punkt */
.laeuft {
  display: inline-flex; align-items: center; gap: 6px; background: var(--laeuft); color: #ffffff;
  font-size: 12px; font-weight: bold; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.laeuft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffffff; animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: 0.25; transform: scale(0.7); } }

main { padding: 24px 28px 56px; }

/* Meldungen */
.hinweis {
  background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--akzent); border-radius: 10px;
  padding: 12px 16px; margin: 0 0 16px;
}
.hinweis.fehler { border-left-color: var(--fehler); }
.hinweis.ok { border-left-color: var(--ok); }
.hinweis ul { margin: 6px 0 0; padding-left: 20px; }
.liste-knapp { margin: 12px 0 0; padding-left: 20px; color: var(--text); }
.liste-knapp li { margin: 0 0 6px; line-height: 1.45; }
.hinweis p:last-child, .hinweis details:last-child { margin-bottom: 0; }
/* Kurze Rückmeldungen oben in der Mitte, unter der Kopfzeile; sie verschwinden von selbst */
#rueckmeldungen {
  position: fixed; top: calc(var(--kopf-hoehe, 90px) + 14px); left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 10px;
  width: min(460px, calc(100vw - 40px));
}
#rueckmeldungen .hinweis { margin: 0; box-shadow: var(--schatten-gross); animation: herein 0.25s ease-out; }
#meldungen .hinweis.ok { transition: opacity 0.35s; }
#meldungen .hinweis.ok.geht { opacity: 0; }
#rueckmeldungen .hinweis.geht { opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s; }
@keyframes herein { from { opacity: 0; transform: translateY(-10px); } }
/* Bestätigung direkt neben dem Knopf, der gespeichert hat: grüne Pille mit gezeichnetem Haken, Text schwarz */
.bestaetigung {
  display: inline-flex; align-items: center; gap: 9px; margin-left: 12px; padding: 6px 16px 6px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 13%, var(--karte)); border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--karte));
  font-weight: bold; color: var(--text); vertical-align: middle; animation: bestaetigt 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
  transition: opacity 0.4s, transform 0.4s;
}
.bestaetigung.geht { opacity: 0; transform: translateX(6px); }
.bestaetigung .haken-zeichen { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); }
.bestaetigung .haken-zeichen::before {
  content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid var(--karte); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
@keyframes bestaetigt { from { opacity: 0; transform: scale(0.85); } }
.seiten .bestaetigung, .aktionen .bestaetigung, .zeile .bestaetigung, .leiste .bestaetigung { margin-left: 0; }
.bestaetigung .haken-zeichen { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); }
.bestaetigung .haken-zeichen::before {
  content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid var(--karte); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Formulare */
label { display: block; font-weight: bold; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--karte);
  border: 1px solid var(--rand); border-radius: 8px; padding: 7px 10px; max-width: 100%;
}
textarea { width: 100%; min-height: 110px; }
.knopf {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: bold; text-decoration: none; cursor: pointer;
  color: var(--auf-akzent); background: var(--akzent); border: 1px solid var(--akzent); border-radius: 8px; padding: 7px 16px;
  transition: filter 0.15s, transform 0.05s, box-shadow 0.15s;
}
.knopf.zweit { color: var(--text); background: var(--karte); }
.knopf.klein { padding: 4px 11px; font-size: 14px; }
.knopf.klein .zeichen { width: 15px; height: 15px; }
.knopf.gross { padding: 10px 20px; font-size: 16px; }
.knopf:hover { filter: brightness(1.12); box-shadow: var(--schatten); }
.knopf.zweit:hover { filter: none; background: var(--hover); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; filter: none; }

.filter {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px;
}
.filter label span { display: block; font-size: 13px; }
.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.leiste .rechts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 18px; }
.formular label input, .formular label select { display: block; width: 100%; margin-top: 3px; }
.formular .ganz { grid-column: 1 / -1; }
.schmal { max-width: 440px; margin-bottom: 16px; }
.schmal label { margin-bottom: 12px; }
.schmal label input, .schmal label select { display: block; width: 100%; margin-top: 3px; }

/* Reiter als Umschalter */
.reiter {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 4px; list-style: none;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px;
}
.reiter a { display: block; padding: 7px 16px; border-radius: 9px; text-decoration: none; transition: background-color 0.15s; }
.reiter a:hover { background: var(--karte); }
.reiter a.aktiv { background: var(--akzent); color: var(--auf-akzent); font-weight: bold; }

/* Tabellen */
.rollen { overflow-x: auto; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); }
.karte .rollen { box-shadow: none; }
table { border-collapse: collapse; width: 100%; background: var(--karte); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linie); }
thead th {
  background: var(--flaeche); color: var(--text); white-space: nowrap; font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; border-bottom: 2px solid var(--akzent);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.12s; }
tbody tr:hover { background: var(--hover); }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
td.fest { white-space: nowrap; }
td small { display: block; font-size: 13px; }
tr:target { outline: 3px solid var(--akzent); outline-offset: -3px; }
td.status { border-left: 5px solid var(--s-neu); }
td.status select { border: 2px solid var(--s-neu); border-radius: 999px; padding: 4px 10px; font-weight: bold; cursor: pointer; }
tr.s-kontaktiert td.status, tr.s-kontaktiert td.status select { border-color: var(--s-kontaktiert); }
tr.s-interesse td.status, tr.s-interesse td.status select { border-color: var(--s-interesse); }
tr.s-partner td.status, tr.s-partner td.status select { border-color: var(--s-partner); }
tr.s-kein td.status, tr.s-kein td.status select { border-color: var(--s-kein); }
td.status { border-bottom-color: var(--linie); }
.zeilenform { display: flex; gap: 8px; align-items: center; margin: 0; }
/* Haken nach dem Speichern: mit Rahmen gezeichnet, kein Schriftzeichen */
.zeilenform.gespeichert::after {
  content: ""; width: 7px; height: 13px; margin: -3px 4px 0 2px; border: solid var(--ok); border-width: 0 3px 3px 0;
  transform: rotate(45deg); animation: herein 0.2s ease-out;
}
.zeilenform.speichert select { opacity: 0.6; }
.js .nur-ohne-js { display: none; }
.nur-mit-js { display: none; }
.js .nur-mit-js { display: inline-flex; }
table.eingabe td { padding: 4px 6px; }
table.eingabe input:not([type="checkbox"]) { width: 100%; min-width: 180px; }
table.eingabe select { width: 100%; min-width: 90px; }
label.haken { display: flex; align-items: center; gap: 8px; font-weight: normal; }
/* Häkchen bleiben klein und stehen direkt vor ihrem Text, auch in schmalen Formularen */
.schmal label.haken input, .formular label.haken input { display: inline-block; width: 18px; flex: none; margin: 0; }
details > summary { color: var(--akzent); margin: 18px 0 8px; }
td details, td details > summary { margin: 0; }
td details[open] > summary { margin-bottom: 8px; }
table.eingabe td.breit { min-width: 320px; width: 55%; }
table.eingabe td.haken { text-align: center; vertical-align: middle; }
input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--akzent); }

/* Überschrift einer Recherche innerhalb der Adressliste */
tr.gruppe th {
  background: var(--akzent); color: var(--auf-akzent); padding: 11px 14px; font-size: 15px; font-weight: normal;
  border-bottom: 0;
}
tr.gruppe:hover { background: none; }
tr.gruppe .gruppe-titel { font-weight: bold; margin-right: 14px; }
tr.gruppe a { float: right; color: var(--auf-akzent); font-weight: bold; display: inline-flex; align-items: center; gap: 6px; }

.marke {
  display: inline-block; background: var(--akzent); color: var(--auf-akzent);
  font-size: 12px; font-weight: bold; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.marke.grau { background: #4b5563; color: #ffffff; }
/* Größe des Unternehmens: Groß, Mittel, Klein, Kleinst */
.marke.g-gross { background: #5b2a86; color: #ffffff; }
.marke.g-mittel { background: #0b4f8a; color: #ffffff; }
.marke.g-klein { background: #1d6b2f; color: #ffffff; }
.marke.g-kleinst { background: #7a4b00; color: #ffffff; }
td.groesse { min-width: 185px; }
td.groesse .marke { margin: 0 2px 3px 0; }
/* Ketten in der Adressliste: eine Zeile für das Unternehmen, die Standorte darunter eingerückt und aufklappbar */
table.adressen tr.kette > td { background: color-mix(in srgb, var(--akzent) 9%, var(--karte)); border-top: 2px solid var(--akzent); }
table.adressen tr.filiale > td:nth-child(2) { padding-left: 30px; box-shadow: inset 4px 0 0 var(--akzent); }
.kette-knopf { white-space: nowrap; }
/* Winkel aus zwei Linien gezeichnet (kein Schriftzeichen): zeigt nach unten, aufgeklappt nach oben */
.kette-knopf .winkel {
  display: inline-block; width: 8px; height: 8px; margin: 0 8px 3px 2px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s;
}
.kette-knopf[aria-expanded="true"] .winkel { transform: rotate(-135deg); margin-bottom: -2px; }
/* Zweite Person in der Adressliste: die mit persönlicher E-Mail-Adresse */
.person-mit-mail { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--linie); }

/* Ergebnisse: links die Recherchen, rechts ihre Adressen */
.ergebnisse { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.laufliste {
  display: grid; gap: 10px; align-content: start; position: sticky; top: calc(var(--kopf-hoehe, 0px) + 14px);
  max-height: calc(100vh - var(--kopf-hoehe, 0px) - 28px); overflow-y: auto; padding: 2px 6px 6px 2px;
}
.laufliste h2 { margin: 0 0 2px; }
.lauf {
  display: grid; gap: 4px; background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--linie);
  border-radius: 12px; padding: 12px 14px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.lauf:hover { border-left-color: var(--akzent); box-shadow: var(--schatten); transform: translateY(-1px); }
.lauf.aktiv { border-color: var(--akzent); border-left-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent), var(--schatten); }
.lauf-zeit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.lauf-titel { font-size: 16px; line-height: 1.3; color: var(--akzent); }
.lauf progress { margin-top: 4px; }
.ergebnis .laufkopf h2 { margin-top: 0; font-size: 22px; }
.laufkopf { margin-bottom: 16px; }
@media (max-width: 1150px) {
  .ergebnisse { grid-template-columns: 1fr; }
  .laufliste { position: static; max-height: 330px; }
}

/* Kennzahlen */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 0; }
.kachel {
  display: block; background: var(--karte); border: 1px solid var(--linie); border-top: 4px solid var(--akzent);
  border-radius: 12px; padding: 12px 14px; text-decoration: none; box-shadow: var(--schatten);
  transition: transform 0.1s, box-shadow 0.15s;
}
.kachel strong { display: block; font-size: 28px; line-height: 1.15; }
a.kachel:hover { transform: translateY(-2px); box-shadow: var(--schatten-gross); }
.kachel.gesperrt { border-top-color: var(--fehler); }
.kachel.aktiv { border-color: var(--fehler); box-shadow: 0 0 0 1px var(--fehler), var(--schatten); }
td .zeilenform { margin-top: 6px; }
td.status .zeilenform { margin-top: 0; }

/* Fortschrittsbalken */
progress {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px;
  background: var(--linie); overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--linie); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--akzent); border-radius: 999px; transition: width 0.4s; }
progress::-moz-progress-bar { background: var(--akzent); border-radius: 999px; }

/* Auswahl auf der Sperr-Seite: ein Kästchen je Möglichkeit */
.wahlliste { display: grid; gap: 8px; margin: 0 0 16px; }
label.wahl {
  display: flex; align-items: flex-start; gap: 10px; font-weight: normal; background: var(--karte);
  border: 1px solid var(--linie); border-left: 5px solid var(--linie); border-radius: 10px; padding: 11px 14px; cursor: pointer;
  transition: border-color 0.15s;
}
label.wahl:hover { border-left-color: var(--akzent); }
label.wahl:has(input:checked) { border-color: var(--akzent); border-left-color: var(--akzent); }
label.wahl input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--akzent); }
label.wahl small { display: block; font-size: 14px; margin-top: 2px; }

/* Sperr-Seite: die Wörter des Namens zum Anklicken, darunter Vorschläge zum Anhaken */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.chip {
  display: grid; gap: 1px; padding: 9px 16px; background: var(--karte); border: 2px solid var(--rand); border-radius: 12px;
  text-decoration: none; transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.chip strong { font-size: 17px; }
.chip span { font-size: 13px; }
.chip:hover { border-color: var(--akzent); transform: translateY(-1px); box-shadow: var(--schatten); }
.chip.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.chip.blass { border-style: dashed; }
form.zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0; }
form.zeile label span { display: block; font-size: 13px; }
form.karte h3 { margin-top: 20px; }
.nochnicht { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; }
.nochnicht > span { flex: 0 0 100%; }
.nochnicht > span .knopf { margin-left: 10px; vertical-align: middle; }
label.haken.klein {
  gap: 6px; padding: 5px 12px; background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; cursor: pointer;
}
label.haken.klein:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }

/* Anschreiben: Felder untereinander in voller Breite, Schritte als nummerierte Liste */
.brief label { margin-bottom: 14px; }
.brief label input, .brief label textarea { display: block; width: 100%; margin-top: 4px; font-weight: normal; }
.brief textarea { line-height: 1.5; min-height: 0; }
.karte > p.aktionen { margin: 0 0 12px; }
.schritte { margin: 0 0 14px; padding-left: 22px; }
.schritte li { margin-bottom: 8px; }
.schritte li::marker { font-weight: bold; color: var(--akzent); }
td.aktion .knopf { display: flex; justify-content: center; margin-bottom: 6px; }
td.aktion .knopf:last-child { margin-bottom: 0; }

/* Fortschritt einer laufenden Recherche */
.fortschritt {
  background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--laeuft); border-radius: 14px;
  padding: 16px 20px; margin: 0 0 18px; box-shadow: var(--schatten);
}
.fortschritt h2 { margin-top: 0; }
.fortschritt .f-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 6px; }
.fortschritt .f-prozent { margin-left: auto; font-size: 20px; }
.fortschritt progress { height: 16px; margin: 0 0 10px; }
.fortschritt p:last-child { margin-bottom: 0; }

/* Zielgruppen in eigener Farbe: Personaldienstleister, Stellenabbau, Transfer, Sozialverbände */
.marke.z2 { background: #0b4f8a; color: #ffffff; }
.marke.z3 { background: #a11a1a; color: #ffffff; }
.marke.z4 { background: #5b2a86; color: #ffffff; }
.marke.z5 { background: #1d6b2f; color: #ffffff; }
/* Ebene des Ansprechpartners: 1 Inhaber und Geschäftsführung, 2 Leitung, 3 Teamleitung, 4 Verantwortlich */
.marke.rang1 { background: #7a4b00; color: #ffffff; }
.marke.rang2 { background: #0b4f8a; color: #ffffff; }
.marke.rang3 { background: #1d6b2f; color: #ffffff; }
.marke.rang4 { background: #4b5563; color: #ffffff; }
h1 .marke { font-size: 13px; vertical-align: middle; margin-left: 8px; }
h2 + .reiter, .reiter + h2 { margin-top: 14px; }

/* Karten und Spalten */
.karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 18px 20px; margin: 0 0 18px;
  box-shadow: var(--schatten);
}
.karte > h2:first-child, .karte > h3:first-child, form.karte > h2:first-of-type { margin-top: 0; }
.karte > :last-child { margin-bottom: 0; }
.karte table { margin: 8px 0 12px; }
.karte .aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.hinweis .aktionen, .fortschritt .aktionen { margin: 12px 0 8px; }
.spalten { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .spalten { grid-template-columns: 1fr; } }
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.verlauf li:last-child { border-bottom: 0; }
.seiten { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 0; }
.seiten .knopf { white-space: nowrap; }
details { margin: 0 0 8px; }
summary { cursor: pointer; font-weight: bold; }
pre {
  font-family: Consolas, "Courier New", monospace; font-size: 13px; white-space: pre-wrap; background: var(--flaeche);
  border-radius: 8px; padding: 10px 12px; margin: 8px 0; color: var(--text);
}
.anmeldung {
  max-width: 480px; margin: 6vh auto 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 16px;
  padding: 26px 28px; box-shadow: var(--schatten-gross);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Partnerbereich (Dashboard) ---------- */
.spalten.gleich { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.leiste h2 { margin: 0; }
.kacheln + .karte { margin-top: 18px; }
table.angaben { width: 100%; }
table.angaben th { text-align: left; vertical-align: top; width: 34%; padding-right: 14px; font-weight: bold; }
.mehrzeilig { white-space: pre-line; }
input[type="file"] { font: inherit; color: var(--text); max-width: 100%; }

/* ---------- Dokumentvorlagen: Editor links, Blatt rechts ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr); } }
.editor label { margin-bottom: 12px; }
.editor label > input:not([type="checkbox"]), .editor label > select { display: block; width: 100%; margin-top: 3px; }
.editor .werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
textarea.vorlagentext { display: block; width: 100%; min-height: 520px; margin-top: 3px; line-height: 1.5; font-weight: normal; resize: vertical; }
/* Die Vorschau zeigt je PDF-Seite ein Blatt im Format A4. Alle Maße hängen an der Breite des Blatts (cqw),
   damit Schrift und Ränder im selben Verhältnis stehen wie im PDF. Papier bleibt weiß, auch im Dunkelmodus. */
.blaetter { display: grid; gap: 20px; }
.blatt { container-type: inline-size; background: #ffffff; border: 1px solid #c9d2de; border-radius: 3px; box-shadow: var(--schatten); }
.blatt-innen {
  display: flex; flex-direction: column; min-height: 141.4cqw; padding: 5.2cqw 9.5cqw 2.6cqw 11.9cqw;
  color: #000000; font-size: 1.77cqw; line-height: 1.43; overflow-wrap: anywhere;
}
.blatt-kopf { display: flex; justify-content: center; align-items: center; gap: 6.7cqw; margin-bottom: 9cqw; }
.blatt-kopf img { height: 3.8cqw; width: auto; }
.blatt-text { flex: 1; }
.blatt .seitenzahl { margin: 3cqw 0 0.4cqw; text-align: right; font-size: 1.43cqw; }
.blatt-fuss { border-top: 0.2cqw solid #00197c; padding-top: 1.2cqw; text-align: center; font-size: 1.43cqw; line-height: 1.3; }
.blatt .blatt-fuss p { margin: 0; }
/* Die Logos haben dunkle Schrift und brauchen hellen Grund, auch im Dunkelmodus */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 40px; background: #ffffff; border: 1px solid #c9d2de; border-radius: 8px; padding: 14px 18px; }
.logos img { height: 30px; width: auto; max-width: 44%; }
textarea.fusstext { display: block; width: 100%; margin-top: 3px; font-weight: normal; line-height: 1.5; }
/* Registrierung im Partnerportal: breitere Karte, PLZ neben Ort, Anrede neben Name */
.anmeldung.breit { max-width: 640px; margin-top: 3vh; }
.anmeldung.breit form.schmal { max-width: none; }
.registrierung h2 { margin: 22px 0 10px; font-size: 18px; }
.registrierung .zweispaltig { display: grid; grid-template-columns: 130px 1fr; gap: 0 14px; }
.registrierung .zweispaltig.schmal-breit { grid-template-columns: 170px 1fr; }
.registrierung label.haken { align-items: flex-start; margin: 18px 0 16px; line-height: 1.45; }
.registrierung label.haken input { margin-top: 3px; }
@media (max-width: 520px) { .registrierung .zweispaltig, .registrierung .zweispaltig.schmal-breit { grid-template-columns: 1fr; } }
.blatt h2 { color: #0b4f8a; font-size: 2.86cqw; line-height: 1.3; margin: 0.7cqw 0 2cqw; }
.blatt h3 { color: #0b4f8a; font-size: 2.1cqw; line-height: 1.35; margin: 1.7cqw 0 1cqw; }
.blatt p, .blatt ul { margin: 0 0 1.35cqw; color: #000000; }
.blatt ul { padding-left: 3.4cqw; }
.blatt .mittig { text-align: center; }
.blatt .rechts { text-align: right; }
.blatt .umbruch { border-top: 2px dashed #5b6b7f; margin: 22px 0; padding-top: 4px; font-size: 12px; font-weight: bold; }
.blatt .unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 7.6cqw; margin-top: 12cqw; }
.blatt .unterschriften p { border-top: 1px solid #000000; padding-top: 0.7cqw; font-size: 1.6cqw; }
.blatt .unterschriften .schriftbild { display: flex; align-items: flex-end; height: 9cqw; }
.blatt .unterschriften .schriftbild img { max-height: 8.6cqw; max-width: 100%; }
.blatt .unterschriften { margin-top: 3cqw; }

/* ---------- Unterschrift zeichnen ---------- */
/* Das Feld bleibt weiß mit schwarzem Strich, auch im Dunkelmodus; die Linie zeigt, wo man unterschreibt. */
.unterschrift-rahmen { position: relative; max-width: 620px; margin: 0 0 8px; display: none; }
.js .unterschrift-rahmen.nur-mit-js-block { display: block; }
.unterschrift-rahmen::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 26%; border-top: 1px solid #5b6b7f; pointer-events: none; }
canvas.unterschriftfeld {
  display: block; width: 100%; height: 190px; background: #ffffff; border: 2px solid var(--akzent); border-radius: 10px;
  touch-action: none; cursor: crosshair;
}
.logos.schrift { justify-content: flex-start; }
.logos.schrift img { height: 64px; max-width: 100%; }
.pruefsumme { font-size: 12px; overflow-wrap: anywhere; }

/* ---------- Zurück-Link: Knopf mit gezeichnetem Pfeil ---------- */
p.zurueck { margin: 0 0 10px; }
p.zurueck a {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 12px; border-radius: 999px; text-decoration: none;
  font-weight: bold; color: var(--text); background: var(--karte); border: 1px solid var(--linie); transition: background-color 0.15s, border-color 0.15s;
}
p.zurueck a::before {
  content: ""; width: 7px; height: 7px; margin-left: 3px; border: solid var(--akzent); border-width: 0 0 2.5px 2.5px; transform: rotate(45deg);
  transition: transform 0.15s;
}
p.zurueck a:hover { background: var(--hover); border-color: var(--akzent); }
p.zurueck a:hover::before { transform: translateX(-3px) rotate(45deg); }

/* ---------- Partnerportal: heller Kopf mit Logos, Begrüßung, nächste Schritte ---------- */
/* Die Logos haben dunkle Schrift: Der Kopf bleibt weiß, auch im Dunkelmodus. */
.kopf.portal { background: #ffffff; color: #000000; padding: 16px 32px; gap: 10px 18px; box-shadow: 0 1px 0 #e3e8ef, 0 8px 24px rgba(10, 30, 60, 0.08); }
.kopf.portal a { color: #000000; }
.kopf.portal .marke-name { padding: 0; margin-right: 10px; border-radius: 6px; }
.kopf.portal .marke-name img { display: block; height: 46px; width: auto; }
.kopf.portal .bereiche a:hover, .kopf.portal .konto a:hover { background: #e8eef7; }
.kopf.portal .bereiche a.aktiv { background: #00197c; color: #ffffff; }
.kopf.portal .konto a.aktiv { background: #e8eef7; }
.kopf.portal .trenner { background: #b9c3d0; }
.kopf.portal .konto button { color: #000000; border-color: #00197c; }
.kopf.portal .konto button:hover { background: #00197c; color: #ffffff; }
@media (max-width: 760px) { .kopf.portal { padding: 12px 16px; } .kopf.portal .marke-name img { height: 32px; } }

.held {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin: 4px 0 18px;
  padding: 30px 34px; border-radius: 18px; color: #ffffff; background: linear-gradient(120deg, #00197c, #0b4f8a 70%, #1a6fb5);
  box-shadow: var(--schatten-gross);
}
.held > div { flex: 1 1 420px; }
.held h1 { color: #ffffff; margin: 0 0 8px; font-size: 30px; }
.held p { color: #ffffff; margin: 0; font-size: 16px; }
.held .held-klein { font-weight: bold; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; margin-bottom: 6px; }
.knopf.hell { background: #ffffff; color: #000000; border-color: #ffffff; white-space: nowrap; }
.knopf.hell:hover { filter: none; background: #e8eef7; }

.wegweiser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 26px; }
.wegweiser li { display: flex; gap: 12px; align-items: flex-start; }
.wegweiser .punkt { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--akzent); margin-top: 1px; }
.wegweiser .erledigt .punkt { background: var(--ok); border-color: var(--ok); }
.wegweiser .erledigt .punkt::before {
  content: ""; width: 6px; height: 12px; margin-top: -2px; border: solid var(--karte); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.wegweiser .offen .punkt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.leerstand { text-align: center; padding: 26px 16px; border: 2px dashed var(--linie); border-radius: 14px; }
.leerstand p { margin: 0 0 4px; }
.kachel strong { color: var(--akzent); }
a.kachel { color: var(--text); }
a.kachel.gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent), var(--schatten); }
.sprungziel { scroll-margin-top: 20px; }
p.auswahl a { font-weight: bold; }

/* Grüner Knopf für „Bewerber einreichen“: weiße Schrift auf #1d6b2f (Kontrast 6,6 : 1), auch im Dunkelmodus */
.knopf.gruen { background: #1d6b2f; border-color: #1d6b2f; color: #ffffff; white-space: nowrap; }
.knopf.gruen:hover { filter: none; background: #175826; border-color: #175826; }
.held .knopf.gruen { border-color: #ffffff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }

/* ---------- Formulare im Partnerbereich: Raster, nummerierte Abschnitte, Ablageflächen für Dateien ---------- */
.schmalseite { max-width: 1040px; margin: 0 auto; }
body.portal main { max-width: 1320px; margin: 0 auto; }
.abschnitt { padding: 24px 28px 26px; margin-bottom: 18px; }
.nummeriert { counter-reset: abschnitt; }
.nummeriert .abschnitt > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 20px; }
.nummeriert .abschnitt > h2::before {
  counter-increment: abschnitt; content: counter(abschnitt); display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border-radius: 50%; background: var(--akzent); color: var(--auf-akzent); font-size: 15px; line-height: 1;
}
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 18px; }
.raster .s2 { grid-column: span 2; } .raster .s4 { grid-column: span 4; } .raster .s5 { grid-column: span 5; }
.raster .s6 { grid-column: span 6; } .raster .s12 { grid-column: 1 / -1; }
@media (max-width: 760px) { .raster > * { grid-column: 1 / -1 !important; } }
.raster label input, .raster label select, .raster label textarea { display: block; width: 100%; margin-top: 5px; font-weight: normal; }
/* Eingabefelder im Partnerbereich: größer, runder, mit deutlichem Fokus */
.schmalseite input:not([type="checkbox"]):not([type="file"]), .schmalseite select, .schmalseite textarea,
body.portal main input:not([type="checkbox"]):not([type="file"]), body.portal main select, body.portal main textarea {
  padding: 10px 13px; border-radius: 10px; transition: border-color 0.15s, box-shadow 0.15s;
}
.schmalseite input:not([type="checkbox"]):hover, .schmalseite select:hover, .schmalseite textarea:hover,
body.portal main input:not([type="checkbox"]):hover, body.portal main select:hover, body.portal main textarea:hover { border-color: var(--akzent); }
.schmalseite input:not([type="checkbox"]):focus, .schmalseite select:focus, .schmalseite textarea:focus,
body.portal main input:not([type="checkbox"]):focus, body.portal main select:focus, body.portal main textarea:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 28%, transparent);
}
body.portal main .formular { gap: 16px 18px; }
body.portal main .karte { border-radius: 16px; }
.feldhinweis { margin: 14px 0 0; }
.haken.gross { font-weight: normal; font-size: 16px; }

.ablagen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ablage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 22px 14px 18px;
  border: 2px dashed var(--rand); border-radius: 14px; background: var(--grund); transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.ablage.klein { padding: 14px 10px 12px; }
.ablage .ablage-zeichen { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--karte); color: var(--akzent); box-shadow: var(--schatten); }
.ablage .ablage-zeichen .zeichen { width: 22px; height: 22px; }
.ablage .ablage-text { font-weight: normal; overflow-wrap: anywhere; }
/* Mit Skript liegt das Dateifeld unsichtbar über der ganzen Fläche: klicken oder Dateien darauf ziehen */
.js .ablage { cursor: pointer; }
.js .ablage input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.js .ablage:hover, .js .ablage.zieht { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 8%, var(--karte)); }
.js .ablage.zieht { transform: scale(1.02); }
.js .ablage:focus-within { outline: 3px solid color-mix(in srgb, var(--akzent) 45%, transparent); outline-offset: 2px; }
.ablage.gewaehlt { border-style: solid; border-color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, var(--karte)); }
.ablage.gewaehlt .ablage-zeichen { background: var(--ok); color: var(--karte); }
html:not(.js) .ablage .ablage-text, html:not(.js) .ablage .ablage-zeichen { display: none; }

/* ---------- Ladeanzeige beim Absenden: drehendes Rad über der Seite ---------- */
.ladeanzeige {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: color-mix(in srgb, var(--grund) 78%, transparent);
  backdrop-filter: blur(3px); animation: einblenden 0.2s ease-out;
}
.ladeanzeige > div {
  display: grid; justify-items: center; gap: 18px; padding: 34px 44px; border-radius: 20px; background: var(--karte); box-shadow: var(--schatten-gross);
}
.ladeanzeige p { margin: 0; font-size: 17px; font-weight: bold; color: var(--text); }
/* Das Rad: ein Ring mit Farbverlauf, der sich dreht; in der Mitte pulsiert ein Punkt */
.ladeanzeige .rad {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 18%, #1a6fb5 45%, #00197c 100%); animation: drehen 0.9s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes einblenden { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ladeanzeige .rad { animation-duration: 2.4s; } }

/* ---------- Übersicht der Einreichung: Erfolg mit Haken und „Schließen“ ---------- */
.erfolg {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin: 0 0 18px; padding: 22px 26px; border-radius: 16px;
  background: color-mix(in srgb, var(--ok) 10%, var(--karte)); border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--karte)); box-shadow: var(--schatten);
}
.erfolg > div { flex: 1 1 380px; }
.erfolg h2 { margin: 0 0 4px; color: var(--text); font-size: 20px; }
.erfolg p { margin: 0; }
.erfolg-zeichen { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ok); animation: bestaetigt 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
.erfolg-zeichen::before { content: ""; width: 11px; height: 22px; margin-top: -4px; border: solid var(--karte); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.erfolg-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- Partner-Übersicht: Phasen, Termine, Provision, Einreichungen ---------- */
.ueberblick-satz { font-size: 17px; line-height: 1.55; margin: 0 0 18px; }
.ueberblick .leiste .rechts { font-size: 14px; }
.phasen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.phasen li { position: relative; display: flex; }
/* Pfeil zwischen den Phasen, gezeichnet statt als Schriftzeichen */
.phasen li:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; z-index: 1;
  border: solid var(--rand); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg);
}
.phase-kachel {
  flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--karte); border: 1px solid var(--linie); border-top: 5px solid var(--phase, var(--akzent)); box-shadow: var(--schatten);
  transition: transform 0.12s, box-shadow 0.15s;
}
a.phase-kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-gross); }
a.phase-kachel.gewaehlt { box-shadow: 0 0 0 2px var(--phase, var(--akzent)), var(--schatten-gross); }
.phase-kachel.leer { background: var(--grund); box-shadow: none; }
.phase-kopf { display: flex; align-items: center; gap: 8px; font-weight: bold; }
.phase-nr { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--phase, var(--akzent)); color: #ffffff; font-size: 13px; line-height: 1; flex: none; }
.phase-zahl { font-size: 34px; line-height: 1.1; color: var(--phase, var(--akzent)); }
.phase-text { font-size: 13.5px; line-height: 1.4; }
.phasen li:nth-child(1) { --phase: #3d4b5c; }
.phasen li:nth-child(2) { --phase: #0b4f8a; }
.phasen li:nth-child(3) { --phase: #a14808; }
.phasen li:nth-child(4) { --phase: #5b2a86; }
.phasen li:nth-child(5) { --phase: #1d6b2f; }
@media (prefers-color-scheme: dark) {
  .phase-zahl { color: var(--text); }
}
.nebenstaende { margin: 16px 0 0; }
.nebenstaende a { color: var(--text); }
.nebenstaende a.gewaehlt { background: var(--flaeche); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 980px) {
  .phasen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phasen li::after { display: none; }
}

.marke.phase-eingereicht { background: #3d4b5c; color: #ffffff; }
.marke.phase-beratung { background: #0b4f8a; color: #ffffff; }
.marke.phase-antrag { background: #a14808; color: #ffffff; }
.marke.phase-zusage { background: #5b2a86; color: #ffffff; }
.marke.phase-kurs { background: #1d6b2f; color: #ffffff; }

/* Phasenspur je Bewerber */
.spur { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.spur li { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.spur li::before { content: ""; display: block; height: 8px; border-radius: 4px; background: var(--linie); }
.spur li.erledigt::before { background: var(--ok); }
.spur li.aktuell::before { background: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 25%, transparent); }
.spur li.aktuell span { font-weight: bold; }
.spur.ruhend li::before { background: repeating-linear-gradient(45deg, var(--linie) 0 6px, transparent 6px 10px); }
.spur.gross li::before { height: 12px; border-radius: 6px; }
.spur.gross li { font-size: 14px; }

.einreichungen { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.einreichung { border: 1px solid var(--linie); border-left: 5px solid var(--akzent); border-radius: 12px; padding: 14px 18px; background: var(--karte); transition: box-shadow 0.15s; }
.einreichung:hover { box-shadow: var(--schatten); }
.einreichung-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.einreichung-kopf a { font-size: 17px; color: var(--text); }
.einreichung-kopf .rechts { margin-left: auto; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 18px; margin: 0; }
.eckdaten div { min-width: 0; }
.eckdaten dt { font-size: 12.5px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.eckdaten dd { margin: 2px 0 0; }

.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.termine li { display: flex; gap: 14px; align-items: center; }
.termin-tag {
  display: grid; place-items: center; align-content: center; flex: none; width: 54px; height: 58px; border-radius: 12px;
  background: #0b4f8a; color: #ffffff; font-size: 13px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em;
}
.termin-tag strong { font-size: 22px; letter-spacing: 0; }

.provision { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.provision div { background: var(--grund); border-radius: 12px; padding: 12px 14px; }
.provision dt { font-weight: bold; }
.provision dd { margin: 4px 0 0; font-size: 22px; font-weight: bold; color: var(--akzent); }
.provision .bezahlt dd { color: var(--ok); }

/* Kasten „Termin und Förderung“ und Cobra-Hinweis auf der Bewerberseite */
.planung .raster { margin-bottom: 10px; }
.cobra-box { border: 2px dashed var(--linie); border-radius: 12px; padding: 12px 16px; margin-top: 14px; }
.cobra-box p { margin: 0 0 8px; }
.eckdaten.gross dd { font-size: 16px; }

/* ---------- Partner-Übersicht, schlicht: Filterleiste, Punkte je Phase, drei Spalten unten ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.filter a, .filter span {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--linie); background: var(--karte); color: var(--text); text-decoration: none;
}
.filter a:hover { border-color: var(--akzent); background: var(--hover); }
.filter a.gewaehlt { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.filter span { border-style: dashed; background: transparent; }
.historie-filter { margin-top: 16px; }
.punkte { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 8px; }
.punkte i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--akzent); }
.punkte i.voll { background: var(--akzent); }
.punkte.ruhend i { border-color: var(--rand); }
.punkte-text { white-space: nowrap; }
td small { display: block; }
.spalten.drei { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
p.klein { font-size: 14px; }

/* ---------- E-Mail-Versand ---------- */
:root { --c-blau: #0b4f8a; --c-gruen: #1d6b2f; --c-lila: #5b2a86; --c-orange: #a14808; }
@media (prefers-color-scheme: dark) { :root { --c-blau: #8cc4ff; --c-gruen: #86efac; --c-lila: #d8b4fe; --c-orange: #fdba74; } }
.mail-held {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin: 4px 0 18px;
  padding: 30px 34px; border-radius: 18px; color: #ffffff; background: linear-gradient(120deg, #00197c, #0b4f8a 65%, #1a6fb5);
  box-shadow: var(--schatten-gross);
}
.mail-held > div:first-child { flex: 1 1 460px; }
.mail-held h1 { color: #ffffff; margin: 0 0 8px; font-size: 28px; }
.mail-held p { color: #ffffff; margin: 0; font-size: 16px; }
.mail-held .held-klein { font-weight: bold; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin-bottom: 6px; }
.mail-held-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.mail-held .knopf.gruen { border-color: #ffffff; }
.seitenkopf { margin-bottom: 4px; }
.seitenkopf h1 { margin: 0; }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 18px; }
.kennzahl {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; box-shadow: var(--schatten);
}
.kennzahl-zeichen { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--flaeche); color: var(--akzent); }
.kennzahl-zeichen .zeichen { width: 22px; height: 22px; }
.kennzahl strong { font-size: 24px; line-height: 1.15; color: var(--akzent); }
.kennzahl span:last-child { font-size: 14px; }

.quote { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.quote-balken { width: 90px; height: 8px; flex: none; }
.quote-grund { fill: var(--flaeche); }
.quote-wert { fill: var(--c-blau); }
.gruen .quote-wert { fill: var(--c-gruen); }
.quote-zahl { font-weight: bold; white-space: nowrap; }

.bereit { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.bereit li { display: flex; gap: 12px; align-items: flex-start; }
.bereit-zeichen { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px; }
.bereit .ok .bereit-zeichen { background: var(--ok); }
.bereit .ok .bereit-zeichen::before { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--karte); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bereit .offen .bereit-zeichen { border: 2px solid var(--c-orange); }
.bereit .offen .bereit-zeichen::before { content: ""; width: 10px; height: 2.5px; border-radius: 2px; background: var(--c-orange); }

/* Ringe für Quoten */
.ringe { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin: 6px 0 22px; }
.ring { position: relative; display: grid; justify-items: center; text-align: center; }
.ring svg { display: block; }
.ring-grund { stroke: var(--flaeche); }
.ring-wert { stroke: var(--c-blau); transition: stroke-dasharray 0.6s ease; }
.ring.gruen .ring-wert { stroke: var(--c-gruen); }
.ring.lila .ring-wert { stroke: var(--c-lila); }
.ring.orange .ring-wert { stroke: var(--c-orange); }
.ring-text { position: absolute; top: 0; left: 0; right: 0; height: 112px; display: grid; place-items: center; }
.ring-text strong { font-size: 22px; }
.ring-titel { margin: 8px 0 0; font-size: 14px; }

/* Trichter */
.trichter { display: grid; gap: 10px; margin: 0 0 14px; }
.trichter-zeile { display: grid; grid-template-columns: 110px 1fr 140px; gap: 14px; align-items: center; }
.trichter-balken { width: 100%; height: 14px; }
.trichter-balken.stufe1 .quote-wert { fill: #3d4b5c; }
.trichter-balken.stufe2 .quote-wert { fill: var(--c-blau); }
.trichter-balken.stufe3 .quote-wert { fill: var(--c-lila); }
.trichter-balken.stufe4 .quote-wert { fill: var(--c-gruen); }
@media (prefers-color-scheme: dark) { .trichter-balken.stufe1 .quote-wert { fill: #9aa7b8; } }

/* Verlauf */
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: 14px; }
.punkt-blau, .punkt-gruen { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.punkt-blau { background: var(--c-blau); }
.punkt-gruen { background: var(--c-gruen); margin-left: 8px; }
.diagramm { display: block; width: 100%; height: 180px; }
.saeule-blau { fill: var(--c-blau); }
.saeule-gruen { fill: var(--c-gruen); }
.achse { stroke: var(--linie); stroke-width: 1; }
.achsen-text { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 13px; }

.verteilung { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.verteilung h3 { margin: 0 0 8px; font-size: 15px; }
.verteilung-zeile { display: grid; grid-template-columns: 100px auto 30px; gap: 10px; align-items: center; margin-bottom: 6px; }
.nr-kreis { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--akzent); color: var(--auf-akzent); font-weight: bold; font-size: 13px; line-height: 1; }
.link-tabelle small { word-break: break-all; }

.erinnerung { border-left: 5px solid var(--c-gruen); }
.erinnerung-ergebnis { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 14px 0 6px; padding: 12px 16px; border-radius: 12px; background: var(--flaeche); }
.erinnerung-ergebnis p { margin: 0; }
.empfaenger-zahl strong { font-size: 22px; color: var(--akzent); }

/* Ablauf in vier Schritten */
.schritte { list-style: none; margin: 6px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.schritte li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--karte); border: 1px solid var(--linie); font-weight: bold; }
.schritte li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--akzent); color: var(--text); font-size: 13px; line-height: 1; }
.schritte li.aktuell { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.schritte li.aktuell span { background: var(--akzent); color: var(--auf-akzent); }
.schritte li.erledigt span { background: var(--ok); border-color: var(--ok); color: var(--karte); }
.schritt-nr { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--akzent); color: var(--auf-akzent); font-size: 14px; line-height: 1; vertical-align: 2px; }
.auswahl-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.auswahl-raster fieldset { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px 12px; margin: 0; }
.auswahl-raster legend { font-weight: bold; padding: 0 6px; }
.auswahl-raster label:not(.haken) { margin-bottom: 10px; }
.auswahl-raster label:not(.haken) input { display: block; width: 100%; margin-top: 4px; }
.auswahl-zahlen { margin: 14px 0; padding: 10px 14px; border-radius: 10px; background: var(--flaeche); }
/* Auswahl nach Recherchen: über die ganze Breite, lange Listen rollen */
.auswahl-raster fieldset.breit { grid-column: 1 / -1; }
.recherche-wahl { display: grid; gap: 2px; max-height: 190px; overflow-y: auto; }
.auswahl-zahlen.laedt { opacity: 0.55; }
.versand-balken svg { display: block; width: 100%; height: 12px; margin: 6px 0 10px; }

/* Vorlagen */
.vorlagen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
/* Fußzeile der Mails unter den Vorlagen */
.karte.mail-fuss { margin-top: 26px; scroll-margin-top: 20px; }
.karte.mail-fuss .aktionen { margin: 10px 0 14px; }
.karte.mail-fuss label { display: block; margin-bottom: 12px; }
.karte.mail-fuss label > input { display: block; width: 100%; margin-top: 3px; font-weight: normal; }
.karte.mail-fuss .hinweis { margin: 0 0 14px; }
.vorlagen-karte { position: relative; background: var(--karte); border: 1px solid var(--linie); border-top: 4px solid var(--akzent); border-radius: 14px; padding: 18px 18px 16px; box-shadow: var(--schatten); }
.vorlagen-karte h2 { margin: 0 0 8px; font-size: 18px; padding-right: 44px; }
.vorlagen-karte h2 a { color: var(--akzent); }
.vorlagen-karte p { margin: 0 0 6px; }
.vorlagen-zeichen { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--flaeche); color: var(--akzent); }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.aktionen form { margin: 0; }

/* Editor mit Vorschau */
.mail-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .mail-editor { grid-template-columns: 1fr; } }
.mail-felder label { margin-bottom: 12px; }
.mail-felder input { width: 100%; }
.mail-text { min-height: 420px; font-family: Consolas, "Cascadia Mono", monospace; font-size: 14px; line-height: 1.55; }
.feldhinweis-inline { font-weight: normal; font-size: 13px; }
.werkzeug { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.platzhalter-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.platzhalter-zeile .chip { cursor: pointer; font: inherit; font-size: 13px; }
.hilfe summary { cursor: pointer; font-weight: bold; }
.hilfe ul { margin: 8px 0 0; padding-left: 20px; }
.mail-vorschau { min-width: 0; }
.vorschau-leiste { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.umschalter { display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; overflow: hidden; }
.umschalter button { font: inherit; font-size: 13px; border: 0; padding: 5px 12px; background: var(--karte); color: var(--text); cursor: pointer; }
.umschalter button.aktiv { background: var(--akzent); color: var(--auf-akzent); font-weight: bold; }
.posteingang { display: flex; gap: 12px; align-items: center; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.posteingang-bild { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #00197c; color: #ffffff; font-weight: bold; }
.posteingang-betreff { font-weight: bold; }
.geraet { margin: 0 auto; transition: width 0.25s ease; }
.geraet iframe { display: block; width: 100%; height: 640px; border: 0; border-radius: 14px; background: #eef2f7; overflow: hidden; }
.geraet.mobil { width: 375px; max-width: 100%; padding: 12px 10px; border-radius: 34px; background: #1f2937; }
.geraet.mobil iframe { border-radius: 22px; }
.link-liste { margin-top: 12px; }
.link-liste ol { margin: 6px 0 0; padding-left: 22px; }
.link-liste li { word-break: break-all; }

/* Öffentliche Abmeldeseite */
body.oeffentlich main { max-width: 640px; margin: 40px auto; }
.abmelde-karte { text-align: left; }
.abmelde-karte .erfolg-zeichen { margin-bottom: 10px; }

/* Mailaktion: Schritte als Reiter */
.schritt[hidden] { display: none; }
.schritte.reiter li { padding: 0; }
.schritte.reiter a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 12px; color: var(--text); text-decoration: none; }
.schritte.reiter a:hover { background: var(--hover); }
.schritte.reiter li.aktuell a:hover { background: transparent; }
.schritte.reiter li.erledigt { border-color: var(--ok); }
.schritt-fuss { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--linie); }

/* Partnerportal: eigenes Logo oder Firmenname oben links */
.kopf.portal .portal-name { display: inline-block; padding: 8px 0; font-size: 20px; font-weight: bold; color: #000000; }
.logo-vorschau { padding: 14px; border: 1px solid var(--linie); border-radius: 12px; background: #ffffff; text-align: center; }
.logo-vorschau img { max-width: 100%; max-height: 90px; }

/* Vorschau „In die Cobra übertragen“ */
.uebertragung { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--flaeche); }
.uebertragung h3 { margin: 0 0 8px; }
.uebertragung .angaben th { width: 34%; }

/* ---------- Adress-Recherche ---------- */
.recherche-held .knopf.hell { white-space: nowrap; }
a.kennzahl { text-decoration: none; color: var(--text); transition: transform 0.12s, box-shadow 0.15s; }
a.kennzahl:hover { transform: translateY(-2px); box-shadow: var(--schatten-gross); }
.recherche-start .leiste .rechts { font-size: 14px; max-width: 520px; }
.recherche-schritt { padding: 16px 0 18px; border-bottom: 1px solid var(--linie); }
.recherche-schritt:last-of-type { border-bottom: 0; }
.recherche-schritt h3 { display: flex; align-items: center; margin: 0 0 12px; font-size: 17px; color: var(--akzent); }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wahl label { position: relative; font-weight: normal; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span { display: inline-block; padding: 8px 16px; border: 1px solid var(--linie); border-radius: 999px; background: var(--karte); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.wahl label:hover span { border-color: var(--akzent); background: var(--hover); }
.wahl input:checked + span { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); font-weight: bold; }
.wahl input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.gebiet-feld[hidden] { display: none; }
.gebiet-feld { padding: 14px 16px; border-radius: 14px; background: var(--grund); border: 1px solid var(--linie); }
.gebiet-feld > p:first-child { margin-top: 0; }
.leitzonen { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; margin-bottom: 14px; align-items: start; }
.leitzone { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; }
.leitzone.mit-auswahl { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.leitzone summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.leitzone summary::-webkit-details-marker { display: none; }
.zone-nr { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--akzent); color: var(--auf-akzent); font-weight: bold; line-height: 1; }
.zone-name { flex: 1; font-size: 14px; }
.zone-zahl { font-size: 13px; font-weight: bold; color: var(--akzent); white-space: nowrap; }
.zone-inhalt { padding: 0 12px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-wahl { position: relative; font-weight: normal; }
.chip-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.chip-wahl span { display: inline-block; padding: 4px 10px; border: 1px solid var(--linie); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--karte); }
.chip-wahl:hover span { border-color: var(--akzent); }
.chip-wahl input:checked + span { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.chip-wahl input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.plz-eingaben { align-items: end; }
.auswahl-anzeige { margin: 12px 0; padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--linie); }
.auswahl-anzeige.gewaehlt { border-style: solid; border-color: var(--akzent); background: var(--karte); font-weight: bold; }
.nachholen { padding: 0; }
.nachholen summary { padding: 18px 22px; cursor: pointer; }
.nachholen > p, .nachholen > form { padding: 0 22px; }
.nachholen > form { padding-bottom: 18px; }

/* ---------- Dashboard der Mitarbeiter: Partnerfirmen als Karten ---------- */
.firmen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.firmen-karte { border: 1px solid var(--linie); border-radius: 14px; padding: 16px 18px; background: var(--karte); transition: box-shadow 0.15s; }
.firmen-karte:hover { box-shadow: var(--schatten); }
.firmen-kopf { display: flex; gap: 12px; align-items: center; }
.firmen-kopf h3 { margin: 0; font-size: 17px; }
.firmen-kopf h3 a { color: var(--akzent); }
.firmen-kopf p { margin: 2px 0 0; font-size: 14px; }
.firmen-zeichen { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--akzent); color: var(--auf-akzent); font-size: 20px; font-weight: bold; line-height: 1; overflow: hidden; }
.firmen-zeichen img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.firmen-zahlen { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 12px 0 4px; }

/* Mehrfachauswahl als Pillen (z. B. Einstufungen der Bewilligungsquote) */
.wahl .chip-mehrfach input:checked + span { background: var(--c-gruen); border-color: var(--c-gruen); color: #ffffff; }
@media (prefers-color-scheme: dark) { .wahl .chip-mehrfach input:checked + span { color: #0e1521; } }

/* ---------- Rückfrage im eigenen Fenster ---------- */
dialog.rueckfrage {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--text); background: var(--karte);
  box-shadow: 0 24px 60px rgba(10, 30, 60, 0.35);
}
dialog.rueckfrage[open] { animation: rueckfrage-auf 0.18s ease-out; }
dialog.rueckfrage::backdrop { background: rgba(10, 25, 50, 0.45); backdrop-filter: blur(3px); }
@keyframes rueckfrage-auf { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
dialog.rueckfrage form { padding: 26px 26px 22px; text-align: center; }
dialog.rueckfrage h2 { margin: 12px 0 6px; font-size: 20px; color: var(--akzent); }
.rueckfrage-text { margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.rueckfrage-knoepfe { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.rueckfrage-knoepfe .knopf { min-width: 130px; justify-content: center; padding: 9px 18px; }
/* Zeichen: Haken (bestätigen) oder Ausrufezeichen (Vorsicht), gezeichnet statt Schrift */
.rueckfrage-zeichen { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--c-gruen); }
.rueckfrage-zeichen::before { content: ""; width: 10px; height: 20px; margin-top: -4px; border: solid #ffffff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); }
.gefaehrlich .rueckfrage-zeichen { background: var(--fehler); }
.gefaehrlich .rueckfrage-zeichen::before { width: 4px; height: 18px; margin: -8px 0 0; border: 0; border-radius: 2px; background: #ffffff; transform: none; }
.gefaehrlich .rueckfrage-zeichen::after { content: ""; position: absolute; left: 50%; top: 34px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ffffff; }
.knopf.gefahr { background: #a11a1a; border-color: #a11a1a; color: #ffffff; }
.knopf.gefahr:hover { filter: none; background: #861313; }
@media (prefers-color-scheme: dark) {
  .rueckfrage-zeichen::before, .gefaehrlich .rueckfrage-zeichen::before, .gefaehrlich .rueckfrage-zeichen::after { border-color: #0e1521; }
  .gefaehrlich .rueckfrage-zeichen::before, .gefaehrlich .rueckfrage-zeichen::after { background: #0e1521; }
}

/* ---------- Laufende Recherche: großes drehendes Rad mit Prozent in der Mitte ---------- */
.fortschritt.laeuft-jetzt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 26px; border-left-color: #1a6fb5; }
.lauf-rad { position: relative; display: grid; place-items: center; width: 116px; height: 116px; }
.lauf-rad .rad {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 15%, #8cc4ff 40%, #1a6fb5 70%, #00197c 100%); animation: drehen 1.1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
}
/* ein zweiter, langsamer Ring gegenläufig: wirkt wie ein Radar */
.lauf-rad .rad-puls {
  position: absolute; inset: 16px; border-radius: 50%; border: 2px dashed color-mix(in srgb, #1a6fb5 55%, transparent);
  animation: drehen 6s linear infinite reverse;
}
.lauf-rad strong { position: relative; font-size: 22px; color: var(--akzent); }
.lauf-inhalt h2 { margin: 0 0 6px; }
@media (max-width: 640px) { .fortschritt.laeuft-jetzt { grid-template-columns: 1fr; justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .lauf-rad .rad { animation-duration: 3s; } .lauf-rad .rad-puls { animation: none; } }
/* „läuft“ im Menü mit kleinem Rad */
.laeuft { display: inline-flex; align-items: center; gap: 5px; }
.laeuft::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; background: transparent;
  animation: drehen 0.8s linear infinite;
}

/* nur für Vorleseprogramme sichtbar */
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Laufende Recherche: Ergebnisse links, „Recherche abbrechen“ rechts; Knöpfe brechen nie um */
.lauf-inhalt .aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lauf-inhalt .aktionen form[data-abbruch] { margin-left: auto; }
.lauf-inhalt .aktionen .knopf { flex: none; white-space: nowrap; }
