/* Einsatzbörse – Gestaltung auf Basis des Bechtle Digital UI-Guide (brand.bechtle.com)
   Webfarben, Spacing auf 4-px-Basis, Zeilenabstand 130 % / 110 % für Überschriften,
   Breakpoints S 360–767, M 768–1023, L ab 1024 px. Alle Text-Hintergrund-Paare
   erreichen mindestens 4,5:1.

   Gestaltungsidee: Ein grünes Band (Kopf + Begrüßung) ist das einzige laute
   Element. Darunter ruhige weiße Bögen mit feinen Linien. Schatten nur für
   Dinge, die schweben: Dialoge, Hinweise, die Aktionsleiste.

   Aufbau: 1) Bechtle-Farben  2) Rollen hell/dunkel  3) Grundlagen  4) Bausteine */

/* ================================================================== 1 Farben und Maße */
:root {
  --experience-green: #075033;
  --conversion-green: #187e4b;
  --conversion-green-hover: #13643c;
  --conversion-green-light: #eafbf2;
  --progressive-green: #23a96a;
  --my-account-green: #e6eeeb;
  --accent-blue: #244ca7;
  --accent-blue-hover: #1e4190;
  --accent-blue-light: #eaeffa;
  --warning-orange: #da6f1e;
  --warning-orange-light: #fcf1e9;
  --error-red: #da1e28;
  --error-red-hover: #bf1a23;
  --error-red-light: #fce9ea;
  --black: #000000;
  --white: #ffffff;
  --bright-gray: #f3f3f3;
  --light-gray: #e1e1e1;
  --mid-gray: #d5d5d5;
  --dark-gray: #b0b0b0;
  --accessible-gray: #5a5a5a;

  /* Radius: --rundung 1 = rund (Hackathon-Design), 0 = streng nach Guide (1 px / 3 px) */
  --rundung: 1;
  --radius-min: 0;
  --radius-xs: calc(1px + 7px * var(--rundung));   /* Buttons, Felder, Auswahlkarten */
  --radius-m: calc(3px + 11px * var(--rundung));   /* Bögen, Kacheln */
  --radius-l: calc(3px + 17px * var(--rundung));   /* Dialoge */
  --radius-max: 999px;

  --s-xxs: 4px; --s-xs: 8px; --s-s: 12px; --s-m: 16px; --s-l: 24px; --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px;

  --schrift: "Bechtle Web", "Bechtle Pro", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
             "Helvetica Neue", Roboto, Arial, sans-serif;
  --page-margin: var(--s-m);
  --inhalt-breite: 720px;
  --leiste-hoehe: 64px;
  --bewegung: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 1024px) { :root { --page-margin: var(--s-l); } }

/* ================================================================== 2 Rollen */
:root {
  color-scheme: light;
  --bg: var(--bright-gray);
  --surface: var(--white);
  --surface-2: #f6f7f6;
  --surface-3: var(--my-account-green);   /* grün getönte Flächen, z. B. Symbol-Kacheln */
  --text: var(--black);
  --text-2: var(--accessible-gray);
  --heading: var(--experience-green);
  --border: var(--light-gray);
  --border-strong: var(--mid-gray);
  --border-input: var(--accessible-gray);
  --link: var(--accent-blue);
  --link-hover: var(--accent-blue-hover);
  --auswahl-bg: var(--accent-blue-light);
  --auswahl-rand: var(--accent-blue);
  --symbol: var(--experience-green);
  --ok-bg: var(--conversion-green-light);
  --ok-text: var(--conversion-green);
  --info-bg: var(--accent-blue-light);
  --info-text: var(--accent-blue);
  --warn-bg: var(--warning-orange-light);
  --warn-text: #8a3f05;                   /* dunkles Orange, 6,9:1 auf Warning Orange Light */
  --fehler-bg: var(--error-red-light);
  --fehler-text: var(--error-red-hover);
  --band: var(--experience-green);
  --schatten-schwebend: 0 12px 32px rgba(7, 32, 21, 0.16), 0 2px 6px rgba(7, 32, 21, 0.08);
  --schatten-leicht: 0 1px 2px rgba(7, 32, 21, 0.06);
}
:root[data-thema="dunkel"] {
  color-scheme: dark;
  --bg: #0f1311;
  --surface: #181d1b;
  --surface-2: #1f2522;
  --surface-3: #1d2a24;
  --text: var(--white);
  --text-2: var(--dark-gray);
  --heading: #5cc794;
  --border: #29302d;
  --border-strong: #3c4541;
  --border-input: #7a817e;
  --link: #9db4ec;
  --link-hover: var(--accent-blue-light);
  --auswahl-bg: rgba(36, 76, 167, 0.28);
  --auswahl-rand: #9db4ec;
  --symbol: #5cc794;
  --ok-bg: rgba(24, 126, 75, 0.25);
  --ok-text: #7fd3a8;
  --info-bg: rgba(36, 76, 167, 0.28);
  --info-text: #9db4ec;
  --warn-bg: rgba(218, 111, 30, 0.2);
  --warn-text: #f2a66a;
  --fehler-bg: rgba(218, 30, 40, 0.2);
  --fehler-text: #f08c93;
  --band: #063e28;
  --schatten-schwebend: 0 12px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --schatten-leicht: none;
}

/* ================================================================== 3 Grundlagen */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--schrift); font-size: 16px; line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--leiste-hoehe) + var(--s-l) + env(safe-area-inset-bottom));
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 26px; font-weight: 700; color: var(--heading); }
h2 { font-size: 18px; font-weight: 700; color: var(--text); }
p { margin: var(--s-xs) 0; }
small { font-size: 14px; }
code { font-family: inherit; background: var(--surface-2); padding: 1px var(--s-xxs); border-radius: var(--radius-xs); }
.icon { width: 22px; height: 22px; flex: none; }
.icon.gross { width: 32px; height: 32px; }
.betrag { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.leise { color: var(--text-2); font-size: 14px; margin: var(--s-xxs) 0 var(--s-s); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: var(--radius-xs); }
[tabindex="-1"]:focus { outline: none; }

/* ================================================================== 4 Bausteine */

/* ---------------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-s);
  min-height: 60px;
  padding: calc(var(--s-xs) + env(safe-area-inset-top)) var(--page-margin) var(--s-xs);
  background: var(--band); color: var(--white);
}
.marke { display: flex; align-items: center; gap: var(--s-s); color: var(--white); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.marke:hover { color: var(--white); }
.marke img { height: 32px; width: auto; display: block; }
/* Platzhalter-Zeichen, bis das offizielle Logo abgelegt ist: zwei versetzte Balken */
.marke-zeichen { position: relative; width: 28px; height: 28px; border-radius: var(--radius-xs); background: var(--white); }
.marke-zeichen::before, .marke-zeichen::after { content: ""; position: absolute; left: 6px; height: 4px; border-radius: 2px; background: var(--experience-green); }
.marke-zeichen::before { top: 9px; width: 16px; }
.marke-zeichen::after { top: 15px; width: 10px; background: var(--progressive-green); }
.kopf-rechts { display: flex; align-items: center; gap: var(--s-xs); }
.wer { display: flex; align-items: center; gap: var(--s-xs); }
.wer-text span { white-space: nowrap; }
.wer-text { text-align: right; line-height: 1.15; }
.wer-text span { display: block; font-size: 15px; font-weight: 600; }
.wer-text small { display: block; font-size: 14px; opacity: 0.85; }
@media (max-width: 400px) { .wer-text { display: none; } }

.avatar {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-max);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  background: var(--surface-3); color: var(--symbol);
}
.avatar.klein { width: 36px; height: 36px; font-size: 14px; background: rgba(255, 255, 255, 0.16); color: var(--white); }

.thema-knopf {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-max);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--white); cursor: pointer;
}
.thema-knopf:hover { background: rgba(255, 255, 255, 0.12); }
.thema-knopf svg { width: 20px; height: 20px; }
.thema-knopf .mond { display: none; }
:root[data-thema="dunkel"] .thema-knopf .sonne { display: none; }
:root[data-thema="dunkel"] .thema-knopf .mond { display: block; }

/* ---------------------------------------------------------------- Band (Begrüßung, nur Startseite) */
.band { background: var(--band); color: var(--white); padding: var(--s-xs) var(--page-margin) var(--s-3xl); }
.band-innen { max-width: var(--inhalt-breite); margin: 0 auto; }
.band-gruss { margin: 0 0 var(--s-xs); font-size: 15px; opacity: 0.85; }
.band h1 { color: var(--white); font-size: 28px; }
.band-text { opacity: 0.9; max-width: 44ch; margin: var(--s-xs) 0 var(--s-m); }
.band + .inhalt { margin-top: calc(-1 * var(--s-2xl)); }

.kapazitaet {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-m);
  margin-top: var(--s-xs);
}
.kapazitaet p { margin: var(--s-xs) 0 0; opacity: 0.9; font-size: 15px; max-width: 40ch; }

/* ---------------------------------------------------------------- Inhalt und Abschnitte */
.inhalt { position: relative; max-width: calc(var(--inhalt-breite) + 2 * var(--page-margin)); margin: 0 auto; padding: var(--s-m) var(--page-margin); }
.abschnitt { margin: 0 0 var(--s-xl); }
.abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--s-s); margin: 0 0 var(--s-s); }
.abschnitt-kopf h2 { margin-right: auto; }
.zahl {
  min-width: 26px; height: 26px; padding: 0 var(--s-xs); border-radius: var(--radius-max);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--experience-green); color: var(--white); font-size: 14px; font-weight: 700;
}
:root[data-thema="dunkel"] .zahl { background: var(--progressive-green); color: var(--black); }

/* Bögen: weiße Flächen mit feiner Linie, ohne Schatten */
.liste, .tafel, .auftrag, .hinweise, .empfaenger, .pruefung, .karte, .uebersicht {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
}
.karte, .tafel { padding: var(--s-m); margin-bottom: var(--s-m); }
@media (min-width: 768px) { .karte, .tafel { padding: var(--s-l); } }

/* ---------------------------------------------------------------- Meldungen */
.meldung {
  display: flex; gap: var(--s-s); align-items: flex-start;
  background: var(--surface); color: var(--text); box-shadow: var(--schatten-leicht);
  border: 1px solid var(--border); border-left: 4px solid var(--conversion-green); border-radius: var(--radius-xs);
  padding: var(--s-s) var(--s-m); margin-bottom: var(--s-m);
}
.meldung.fehler { border-left-color: var(--error-red); background: var(--fehler-bg); }

/* ---------------------------------------------------------------- Zeilen (Anfragen in Listen) */
.zeile {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-s); align-items: center;
  padding: var(--s-s) var(--s-m); color: inherit; text-decoration: none;
  border-top: 1px solid var(--border);
}
.liste > .zeile:first-child { border-top: 0; }
.zeile:hover { background: var(--surface-2); }
.liste > .zeile:first-child:hover { border-radius: var(--radius-m) var(--radius-m) 0 0; }
.liste > .zeile:last-child:hover { border-radius: 0 0 var(--radius-m) var(--radius-m); }
.zeile:hover strong { color: var(--link); }
.zeile-symbol {
  width: 40px; height: 40px; border-radius: var(--radius-xs); display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--symbol);
}
.zeile-text { min-width: 0; }
.zeile-text strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.zeile-oben { display: block; margin-bottom: var(--s-xxs); }
.zeile-meta { display: flex; flex-wrap: wrap; gap: 2px var(--s-s); margin-top: 2px; color: var(--text-2); font-size: 14px; }
.zeile-ende { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.zeile-ende .betrag { font-size: 17px; }
.zeile-ende small { color: var(--text-2); font-size: 14px; }
/* Eilige Anfragen: farbige Kante am Zeilenrand */
.zeile.eilig-kritisch::before, .zeile.eilig-dringend::before {
  content: ""; position: absolute; left: 0; top: var(--s-s); bottom: var(--s-s); width: 3px; border-radius: 0 3px 3px 0;
  background: var(--error-red);
}
.zeile.eilig-dringend::before { background: var(--warning-orange); }

/* ---------------------------------------------------------------- Status (Satzschreibung, Farbpunkt) */
.status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 5px 10px 5px 8px; border-radius: var(--radius-max);
  background: var(--info-bg); color: var(--info-text);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status .icon { width: 14px; height: 14px; margin-right: -2px; }
.status:has(.icon)::before { display: none; }
.s-angenommen { background: var(--warn-bg); color: var(--warn-text); }
.s-festgemacht, .s-abgeschlossen { background: var(--ok-bg); color: var(--ok-text); }
.s-zurueckgezogen, .s-abgelaufen, .s-nein { background: var(--surface-2); color: var(--text-2); }
.d-dringend { background: var(--warn-bg); color: var(--warn-text); }
.d-kritisch { background: var(--error-red); color: var(--white); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-bottom: var(--s-xs); }

/* ---------------------------------------------------------------- Buttons */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs);
  min-height: 48px; padding: var(--s-s) var(--s-l);
  border: 1px solid var(--accent-blue); border-radius: var(--radius-xs);
  background: var(--accent-blue); color: var(--white);
  font: inherit; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.knopf .icon { width: 20px; height: 20px; }
.knopf:hover { background: var(--accent-blue-hover); border-color: var(--accent-blue-hover); color: var(--white); }
.knopf:active:not(:disabled) { transform: scale(0.97); }
.knopf:disabled { background: var(--border); border-color: var(--border); color: var(--text-2); cursor: not-allowed; }
.knopf.conversion { background: var(--conversion-green); border-color: var(--conversion-green); }
.knopf.conversion:hover { background: var(--conversion-green-hover); border-color: var(--conversion-green-hover); }
.knopf.zweit { background: var(--surface); color: var(--link); border-color: var(--border-strong); }
.knopf.zweit:hover { border-color: var(--link); background: var(--surface); color: var(--link-hover); }
.knopf.gefahr { background: var(--error-red); border-color: var(--error-red); }
.knopf.gefahr:hover { background: var(--error-red-hover); border-color: var(--error-red-hover); }
.knopf.text-gefahr { background: transparent; border-color: transparent; color: var(--fehler-text); padding-inline: var(--s-s); }
.knopf.text-gefahr:hover { background: var(--fehler-bg); }
.knopf.hell { background: var(--white); border-color: var(--white); color: var(--experience-green); }
.knopf.hell:hover { background: var(--my-account-green); color: var(--experience-green); }
.knopf.klein { min-height: 44px; padding: var(--s-xs) var(--s-m); font-size: 14px; }
.knopf.klein .icon { width: 18px; height: 18px; }
.knopf.gross { min-height: 56px; padding: var(--s-m) var(--s-xl); font-size: 17px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: var(--s-s); margin-top: var(--s-m); }
.knoepfe form { margin: 0; }
.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* ---------------------------------------------------------------- Schalter "Kapazität frei" */
.schalter {
  display: inline-flex; align-items: center; gap: var(--s-s); white-space: nowrap;
  min-height: 48px; padding: var(--s-xs) var(--s-m) var(--s-xs) var(--s-xs);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-max);
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  font: inherit; font-weight: 700; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.schalter:hover { background: rgba(255, 255, 255, 0.14); }
.schalter-bahn { position: relative; flex: none; width: 52px; height: 30px; border-radius: var(--radius-max); background: rgba(255, 255, 255, 0.28); transition: background-color 0.2s; }
.schalter-bahn span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.22s var(--bewegung); }
.schalter.an { border-color: var(--progressive-green); }
.schalter.an .schalter-bahn { background: var(--progressive-green); }
.schalter.an .schalter-bahn span { transform: translateX(22px); }

/* ---------------------------------------------------------------- Push-Hinweis (schwebt über dem Band) */
.push-hinweis {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-s);
  background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--schatten-schwebend);
  padding: var(--s-s) var(--s-m); margin-bottom: var(--s-xl);
}
.push-hinweis .icon { color: var(--symbol); }
.push-hinweis p { flex: 1 1 180px; margin: 0; font-size: 15px; }

/* ---------------------------------------------------------------- Leere Zustände, Hinweislisten */
.leer {
  display: flex; gap: var(--s-m); align-items: flex-start;
  padding: var(--s-l) var(--s-m); border: 1px dashed var(--border-strong); border-radius: var(--radius-m); color: var(--text-2);
}
.leer .icon { color: var(--symbol); }
.leer p { margin: 0; }
.leer strong { display: block; color: var(--text); margin-bottom: 2px; }

.hinweise { list-style: none; margin: 0; padding: 0; }
.hinweise li { display: flex; justify-content: space-between; gap: var(--s-s); padding: var(--s-s) var(--s-m); border-top: 1px solid var(--border); }
.hinweise li:first-child { border-top: 0; }
.hinweise a { color: inherit; text-decoration: none; min-width: 0; }
.hinweise a strong { display: block; font-size: 15px; }
.hinweise a span { display: block; color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hinweise small { color: var(--text-2); white-space: nowrap; font-size: 14px; }

/* ---------------------------------------------------------------- Anfrage im Detail */
.zurueck-link { display: inline-flex; align-items: center; gap: var(--s-xxs); margin: 0 0 var(--s-m) calc(-1 * var(--s-xxs)); color: var(--text-2); text-decoration: none; font-size: 15px; }
.zurueck-link .icon { width: 18px; height: 18px; }
.auftrag { padding: var(--s-l) var(--s-m); margin-bottom: var(--s-l); }
@media (min-width: 768px) { .auftrag { padding: var(--s-l); } }
.auftrag-kopf { display: grid; grid-template-columns: auto 1fr; gap: var(--s-m); align-items: start; }
.auftrag-symbol { width: 52px; height: 52px; border-radius: var(--radius-m); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--symbol); }
.auftrag-symbol .icon { width: 28px; height: 28px; }
.auftrag h1 { font-size: 24px; color: var(--text); }
.auftrag-kopf .leise { margin-bottom: 0; }

.grund-hinweis { display: flex; gap: var(--s-xs); align-items: flex-start; margin: var(--s-m) 0 0; padding: var(--s-s) var(--s-m); border-radius: var(--radius-xs); background: var(--warn-bg); color: var(--text); }
.grund-hinweis.kritisch { background: var(--fehler-bg); }
.grund-hinweis .icon { color: var(--warning-orange); width: 20px; height: 20px; }
.grund-hinweis.kritisch .icon { color: var(--error-red); }

.preis-zeile { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 var(--s-m); margin: var(--s-l) 0 0; padding: var(--s-m) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.preis-label { color: var(--text-2); font-size: 15px; }
.preis-betrag { grid-row: span 2; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.preis-rechnung { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }

.fakten { display: grid; grid-template-columns: 1fr; gap: var(--s-m); margin: var(--s-l) 0; }
@media (min-width: 560px) { .fakten { grid-template-columns: 1fr 1fr; } }
.fakten dt { display: flex; align-items: center; gap: var(--s-xs); color: var(--text-2); font-size: 14px; margin-bottom: var(--s-xxs); }
.fakten dt .icon { width: 18px; height: 18px; color: var(--symbol); }
.fakten dd { margin: 0 0 0 26px; font-weight: 600; }
.fakten dd small { display: block; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.beschreibung { white-space: pre-wrap; line-height: 1.45; max-width: 68ch; }
.anhang { display: inline-flex; align-items: center; gap: var(--s-xs); margin-top: var(--s-m); padding: var(--s-xs) var(--s-s); border: 1px solid var(--border-strong); border-radius: var(--radius-xs); text-decoration: none; font-weight: 600; font-size: 15px; }
.anhang .icon { width: 18px; height: 18px; }

/* Fortschritt: echte Abfolge */
.ablauf { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 var(--s-xl); padding: 0; counter-reset: schritt; }
.ablauf li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-xs); font-weight: 600; font-size: 15px; padding-right: var(--s-xs); }
.ablauf li small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.ablauf li::after { content: ""; position: absolute; top: 15px; left: 38px; right: 6px; height: 2px; background: var(--border-strong); border-radius: 1px; }
.ablauf li:last-child::after { display: none; }
.ablauf li.fertig::after { background: var(--progressive-green); }
.ablauf-punkt { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text-2); }
.ablauf li.fertig .ablauf-punkt { background: var(--progressive-green); border-color: var(--progressive-green); color: var(--white); }
.ablauf li.jetzt .ablauf-punkt { border-color: var(--progressive-green); color: var(--ok-text); box-shadow: 0 0 0 4px var(--ok-bg); }

/* Feste Aktionsleiste unten (Annehmen) */
.aktionsleiste {
  position: fixed; left: 0; right: 0; bottom: calc(var(--leiste-hoehe) + env(safe-area-inset-bottom)); z-index: 5;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--schatten-schwebend);
  padding: var(--s-s) var(--page-margin);
}
.aktionsleiste-innen { max-width: var(--inhalt-breite); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-s) var(--s-l); }
.aktionsleiste p { flex: 1 1 260px; margin: 0; font-size: 14px; color: var(--text-2); }
.aktionsleiste-knoepfe { display: flex; gap: var(--s-s); flex: 1 1 260px; }
.aktionsleiste-knoepfe form { margin: 0; }
.aktionsleiste-knoepfe form:last-child { flex: 1; }
.aktionsleiste-knoepfe form:last-child .knopf { width: 100%; }
body.mit-aktionsleiste { padding-bottom: calc(var(--leiste-hoehe) + 150px + env(safe-area-inset-bottom)); }

.hinweis-box { display: flex; gap: var(--s-s); align-items: center; padding: var(--s-m); border-radius: var(--radius-m); background: var(--surface-2); margin-bottom: var(--s-l); }
.hinweis-box.ok { background: var(--ok-bg); }
.hinweis-box.ok .icon { color: var(--ok-text); }
.hinweis-box p { margin: 0; }

.empfaenger, .pruefung { list-style: none; margin: 0; padding: 0; }
.empfaenger li, .pruefung li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-s); padding: var(--s-s) var(--s-m); border-top: 1px solid var(--border); }
.empfaenger li:first-child, .pruefung li:first-child { border-top: 0; }
.empfaenger small, .pruefung small { display: block; color: var(--text-2); }
.pruefung li > span:nth-child(2) { flex: 1; min-width: 0; }
.pruef-symbol { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); font-weight: 700; }
.pruef-symbol .icon { width: 16px; height: 16px; }
.pruefung li.passt .pruef-symbol { background: var(--ok-bg); color: var(--ok-text); }
.pruefung li.nein strong { color: var(--text-2); font-weight: 600; }
.grund { color: var(--fehler-text) !important; }
.pruefung li.angebot .pruef-symbol { background: var(--warn-bg); color: var(--warn-text); }

/* Gegenangebote: Liste für die Anfragenden */
.angebote { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); }
.angebote li { display: grid; grid-template-columns: 1fr; gap: var(--s-s) var(--s-m); align-items: center; padding: var(--s-m); border-top: 1px solid var(--border); }
.angebote li:first-child { border-top: 0; }
.angebote form { grid-column: 1 / -1; margin: 0; }
.angebote form .knopf { width: 100%; }
@media (min-width: 560px) {
  .angebote li { grid-template-columns: 1fr auto auto; }
  .angebote form { grid-column: auto; }
  .angebote form .knopf { width: auto; }
}
.angebot-text { min-width: 0; }
.angebot-text strong, .angebot-text small { display: block; }
.angebot-text small { color: var(--text-2); margin-top: 2px; }
.angebot-nachricht { display: block; margin-top: var(--s-xs); font-size: 15px; }
.angebot-preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-s); }
.angebot-preis .betrag { font-size: 20px; }
.angebot-preis small { color: var(--text-2); }
@media (min-width: 560px) {
  .angebot-preis { display: block; text-align: right; }
  .angebot-preis .betrag, .angebot-preis small { display: block; }
}
.tafel .hinweis-box { margin-bottom: var(--s-m); }
.tafel .formular + form { margin-top: var(--s-xs); }

/* ---------------------------------------------------------------- Formulare */
.formular label { display: block; font-weight: 600; margin-bottom: var(--s-m); }
.formular input:not([type=checkbox]):not([type=radio]):not([type=range]), .formular select, .formular textarea {
  display: block; width: 100%; min-height: 52px; margin-top: var(--s-xs); padding: var(--s-s) var(--s-m);
  font: inherit; font-weight: 400; color: var(--text); line-height: 1.3;
  border: 1px solid var(--border-input); border-radius: var(--radius-xs); background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.formular input[type=file] { min-height: 0; padding: var(--s-s); }
.formular input:hover, .formular select:hover, .formular textarea:hover { border-color: var(--text); }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-color: var(--auswahl-rand); box-shadow: 0 0 0 3px var(--auswahl-bg); }
.formular textarea { resize: vertical; line-height: 1.45; }
.formular fieldset { border: 1px solid var(--border); border-radius: var(--radius-xs); margin: 0 0 var(--s-m); padding: var(--s-s) var(--s-m); }
.formular legend { font-weight: 700; padding: 0 var(--s-xxs); }
.haken { font-weight: 400 !important; display: flex !important; gap: var(--s-s); align-items: center; }
.zwei { display: grid; gap: 0 var(--s-s); }
@media (min-width: 560px) { .zwei { grid-template-columns: 1fr 1fr; } }
.hilfe { display: block; font-weight: 400; font-size: 14px; color: var(--text-2); margin-top: var(--s-xs); }
.skills { display: flex; flex-wrap: wrap; gap: var(--s-xs); }
.chip { font-weight: 400 !important; display: inline-flex !important; gap: var(--s-xs); align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-max); padding: var(--s-xs) var(--s-s); margin: 0 !important; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--auswahl-rand); background: var(--auswahl-bg); }

/* Eigene Auswahlkreise und Kästchen (statt Browser-Standard) */
.formular input[type=radio], .formular input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 22px; height: 22px; border: 2px solid var(--border-input); border-radius: 50%; background: var(--surface);
  display: inline-grid; place-content: center; transition: border-color 0.15s;
}
.formular input[type=checkbox] { border-radius: calc(2px + 3px * var(--rundung)); }
.formular input[type=radio]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--auswahl-rand); transform: scale(0); transition: transform 0.18s var(--bewegung); }
.formular input[type=checkbox]::before { content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform 0.18s var(--bewegung); background: var(--white); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 24%, 86% 10%, 38% 72%); }
.formular input[type=radio]:checked { border-color: var(--auswahl-rand); }
.formular input[type=radio]:checked::before { transform: scale(1); }
.formular input[type=checkbox]:checked { border-color: var(--auswahl-rand); background: var(--auswahl-rand); }
.formular input[type=checkbox]:checked::before { transform: scale(1); }

/* ---------------------------------------------------------------- Assistent im Vollbild (wie Buchungsstrecken) */
body.vollbild { padding-bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--surface); }
body.vollbild .kopf, body.vollbild .leiste { display: none; }
body.vollbild .inhalt { max-width: calc(640px + 2 * var(--page-margin)); }

.assistent-kopf {
  position: sticky; top: 0; z-index: 4; align-items: center; gap: var(--s-m);
  background: var(--surface); border-bottom: 1px solid var(--border);
  margin: calc(-1 * var(--s-m)) calc(-1 * var(--page-margin)) var(--s-xl);
  padding: calc(var(--s-s) + env(safe-area-inset-top)) var(--page-margin) var(--s-s);
}
.assistent-kopf-innen { flex: 1; min-width: 0; }
.assistent-titel { display: flex; justify-content: space-between; align-items: center; gap: var(--s-s); font-size: 14px; color: var(--text-2); margin-bottom: var(--s-xs); }
.assistent-titel strong { color: var(--text); }
.assistent-wo { display: flex; gap: var(--s-xs); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balken { height: 6px; background: var(--border); border-radius: var(--radius-max); overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; border-radius: var(--radius-max); background: var(--progressive-green); transition: width 0.5s var(--bewegung); }
.treffer {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px; border-radius: var(--radius-max); font-size: 14px; font-weight: 600;
  background: var(--ok-bg); color: var(--ok-text);
}
.treffer::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.treffer.null { background: var(--warn-bg); color: var(--warn-text); }
#treffer-zahl { font-variant-numeric: tabular-nums; }
.schliessen { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-max); color: var(--text); }
.schliessen:hover { background: var(--surface-2); color: var(--text); }
.schliessen svg { width: 24px; height: 24px; }

.schritt { margin-bottom: var(--s-xl); }
.ist-assistent .schritt { display: none; margin: 0; }
.ist-assistent .schritt.aktiv { display: block; }
.nur-assistent-schritt { display: none; }
.schritt-nummer { display: block; font-size: 14px; color: var(--text-2); margin-bottom: var(--s-xs); min-height: 1em; }
.ist-assistent .schritt h1 { font-size: 28px; color: var(--text); margin-bottom: var(--s-l); max-width: 22ch; }
.ist-assistent .schritt h1 + .leise { margin-top: calc(-1 * var(--s-s)); margin-bottom: var(--s-l); }
.nachfrage { margin-top: var(--s-l); }
.beispiel { margin-top: var(--s-l); }

/* Skill-Kacheln */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-s); }
@media (min-width: 560px) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kachel {
  position: relative; display: flex !important; flex-direction: column; gap: var(--s-s); margin: 0 !important;
  min-height: 104px; padding: var(--s-m); cursor: pointer; font-weight: 600 !important; line-height: 1.2;
  border: 1px solid var(--border-strong); border-radius: var(--radius-m); background: var(--surface);
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.kachel .icon { width: 28px; height: 28px; color: var(--symbol); }
.kachel:hover { border-color: var(--text); }
.kachel:active { transform: scale(0.98); }
.kachel input[type=radio] { position: absolute; top: var(--s-s); right: var(--s-s); width: 20px; height: 20px; opacity: 0; }
.kachel:has(input:checked) { border-color: var(--auswahl-rand); background: var(--auswahl-bg); box-shadow: inset 0 0 0 1px var(--auswahl-rand); }
.kachel::after {
  content: ""; position: absolute; top: var(--s-s); right: var(--s-s); width: 22px; height: 22px; border-radius: 50%;
  background: var(--auswahl-rand); transform: scale(0); transition: transform 0.2s var(--bewegung);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 15.6L5.8 12l1.4-1.4 3.2 3.2 6.4-6.4 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 15.6L5.8 12l1.4-1.4 3.2 3.2 6.4-6.4 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kachel:has(input:checked)::after { transform: scale(1); }
.kachel:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }

/* Auswahlkarten */
.optionen { display: grid; gap: var(--s-s); margin-bottom: var(--s-m); }
@media (min-width: 560px) { .optionen.raster { grid-template-columns: 1fr 1fr; } }
.option {
  display: flex !important; justify-content: space-between; align-items: center; gap: var(--s-m);
  min-height: 64px; margin: 0 !important; padding: var(--s-s) var(--s-m); cursor: pointer; font-weight: 600 !important;
  border: 1px solid var(--border-strong); border-radius: var(--radius-xs); background: var(--surface);
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.option:hover { border-color: var(--text); }
.option:active { transform: scale(0.99); }
.option small { display: block; color: var(--text-2); font-size: 14px; font-weight: 400; margin-top: 3px; }
.option:has(input:checked) { border-color: var(--auswahl-rand); background: var(--auswahl-bg); box-shadow: inset 0 0 0 1px var(--auswahl-rand); }
.option:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }

/* Budget-Regler mit einer Markierung je Team */
.budget-regler { margin-top: var(--s-l); }
.budget-regler input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: var(--s-l) 0 0; border-radius: var(--radius-max);
  background: linear-gradient(90deg, var(--progressive-green) var(--fuellung, 0%), var(--border) var(--fuellung, 0%));
  cursor: pointer;
}
.budget-regler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 3px solid var(--progressive-green); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.budget-regler input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--progressive-green); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.regler-marken { position: relative; height: 18px; margin: 4px 14px 0; }
.regler-marken .marke { position: absolute; top: 0; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--border-input); }
.regler-marken .marke.drin { background: var(--progressive-green); }
.budget-ergebnis { font-weight: 600; margin: var(--s-xs) 0 var(--s-s); }
.budget-teams { list-style: none; margin: 0 0 var(--s-m); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-m); }
.budget-teams li { display: flex; justify-content: space-between; gap: var(--s-s); padding: var(--s-s) var(--s-m); border-top: 1px solid var(--border); color: var(--text-2); cursor: pointer; }
.budget-teams li:first-child { border-top: 0; }
.budget-teams li::before { content: "–"; width: 20px; flex: none; font-weight: 700; }
.budget-teams li span:first-child { flex: 1; }
.budget-teams li.drin { color: var(--text); }
.budget-teams li.drin::before { content: "✓"; color: var(--ok-text); }
.budget-teams li:hover { background: var(--surface-2); }

/* Knopfleiste des Assistenten: fest am unteren Rand */
.assistent-knoepfe {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; gap: var(--s-s); justify-content: center;
  padding: var(--s-s) var(--page-margin) calc(var(--s-s) + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
}
.assistent-knoepfe .knopf { flex: 1; max-width: 300px; }
.assistent-knoepfe #zurueck { flex: 0 1 140px; }
.nur-assistent { display: none !important; }
.ist-assistent .nur-assistent { display: flex !important; }
.ist-assistent .ohne-assistent { display: none !important; }
.ist-assistent .budget-regler.nur-assistent { display: block !important; }
.ist-assistent .budget-regler[hidden] { display: none !important; }

/* Übersicht auf der letzten Folie */
.uebersicht { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s-m); align-items: baseline; margin: 0 0 var(--s-m); padding: var(--s-xs) var(--s-m) var(--s-m); }
.uebersicht dt { grid-column: 1 / -1; color: var(--text-2); font-size: 14px; margin-top: var(--s-s); }
.uebersicht dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
@media (min-width: 768px) {
  .uebersicht { grid-template-columns: 9rem 1fr auto; gap: var(--s-s) var(--s-m); padding: var(--s-m) var(--s-l); }
  .uebersicht dt { grid-column: auto; font-size: 15px; margin-top: 0; }
}
.uebersicht button { font-size: 14px; color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.vorschau { padding: var(--s-m); border-radius: var(--radius-m); background: var(--ok-bg); margin-bottom: var(--s-m); }
.vorschau.leer { background: var(--warn-bg); border: 0; display: block; color: var(--text); }
.vorschau strong { display: block; }
.vorschau ul { margin: var(--s-xs) 0 0; padding-left: var(--s-l); }
.vorschau p { margin: var(--s-xs) 0 0; font-size: 15px; }

/* ---------------------------------------------------------------- Dialoge (statt Browser-Pop-ups) */
.dialog {
  width: min(460px, calc(100vw - 2 * var(--s-m))); padding: var(--s-l); border: 0;
  border-radius: var(--radius-l); background: var(--surface); color: var(--text); box-shadow: var(--schatten-schwebend);
}
.dialog::backdrop { background: rgba(4, 20, 13, 0.5); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-rein 0.24s var(--bewegung); }
.dialog[open]::backdrop { animation: abdunkeln 0.24s ease; }
@keyframes dialog-rein { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes abdunkeln { from { opacity: 0; } to { opacity: 1; } }
.dialog h2 { font-size: 22px; margin: 0 0 var(--s-xs); }
.dialog-symbol { width: 48px; height: 48px; border-radius: var(--radius-max); display: flex; align-items: center; justify-content: center; background: var(--fehler-bg); color: var(--fehler-text); margin-bottom: var(--s-m); }
.dialog-symbol svg { width: 24px; height: 24px; }
.dialog-knoepfe { display: grid; gap: var(--s-s); margin-top: var(--s-l); }
.dialog-knoepfe form { margin: 0; }
.dialog-knoepfe .knopf { width: 100%; }
.dialog-tipp { background: var(--surface-2); border-radius: var(--radius-xs); padding: var(--s-s) var(--s-m); font-size: 14px; color: var(--text-2); }

/* ---------------------------------------------------------------- Anmeldung */
.willkommen { margin: var(--s-l) 0 var(--s-l); }
.willkommen h1 { font-size: 30px; color: var(--text); max-width: 18ch; }
.willkommen .leise { font-size: 15px; max-width: 52ch; }
.gruppe { margin: var(--s-l) 0 var(--s-s); font-size: 15px; color: var(--text-2); font-weight: 600; }
.leiter { display: grid; gap: var(--s-s); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.leiter-karte {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-s); align-items: start; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface);
  padding: var(--s-m); font: inherit; color: var(--text); cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.leiter-karte:hover { border-color: var(--auswahl-rand); }
.leiter-karte:active { transform: scale(0.99); }
.leiter-karte strong { display: block; font-size: 16px; }
.leiter-karte small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.leiter-skills { display: flex; flex-wrap: wrap; gap: var(--s-xxs); margin-top: var(--s-s); }
.leiter-skills span { font-size: 14px; padding: 3px var(--s-xs); border-radius: var(--radius-max); background: var(--surface-2); color: var(--text-2); }
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--dark-gray); vertical-align: 1px; }
.punkt.frei { background: var(--progressive-green); }
.weitere { margin-top: var(--s-xl); }
.weitere summary { cursor: pointer; font-weight: 600; color: var(--link); padding: var(--s-xs) 0; }
.personen { display: grid; gap: var(--s-xs); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: var(--s-s); }
.person { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-xs); padding: var(--s-s) var(--s-m); font: inherit; color: var(--text); cursor: pointer; min-height: 52px; }
.person:hover { border-color: var(--auswahl-rand); }
.person strong { display: block; font-weight: 600; }
.person small { display: block; color: var(--text-2); font-size: 14px; }
.abstand-oben { margin-top: var(--s-2xl); }

/* ---------------------------------------------------------------- Tabelle (Abrechnung) */
.tabelle { width: 100%; border-collapse: collapse; margin: var(--s-xs) 0 var(--s-m); font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { text-align: left; padding: var(--s-s) var(--s-xxs); border-bottom: 1px solid var(--border); vertical-align: top; }
.tabelle th { color: var(--text-2); font-weight: 600; width: 40%; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- Navigation unten */
.leiste {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--leiste-hoehe) + env(safe-area-inset-bottom));
  padding: 0 var(--s-xs) env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.leiste form { display: flex; }
@media (min-width: 768px) { .leiste { padding-inline: max(var(--s-xs), calc((100% - var(--inhalt-breite)) / 2)); } }
.leiste a, .leiste .link {
  flex: 1; min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none;
}
.leiste .icon { width: 24px; height: 24px; }
.leiste a[aria-current="page"] { color: var(--heading); }
.leiste a[aria-current="page"] .icon { stroke-width: 2.2; }

/* ---------------------------------------------------------------- Hinweise (Toasts) */
#toasts { position: fixed; top: calc(var(--kopf-hoehe, 60px) + var(--s-xs)); left: 0; right: 0; z-index: 10; display: grid; gap: var(--s-xs); padding: 0 var(--page-margin); pointer-events: none; }
.toast {
  pointer-events: auto; width: 100%; max-width: 520px; margin: 0 auto;
  background: var(--surface); color: var(--text); text-decoration: none;
  border-radius: var(--radius-m); border-left: 4px solid var(--progressive-green);
  padding: var(--s-s) var(--s-m); box-shadow: var(--schatten-schwebend);
  animation: toast-rein 0.3s var(--bewegung) both;
}
@keyframes toast-rein { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.toast:hover { color: var(--text); }
.toast strong, .toast span { display: block; }
.toast span { font-size: 14px; color: var(--text-2); white-space: pre-line; margin-top: 2px; }

/* ---------------------------------------------------------------- Bewegung reduzieren, Druck */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root, :root[data-thema="dunkel"] { color-scheme: light; --bg: #fff; --surface: #fff; --text: #000; --text-2: #5a5a5a; --heading: #075033; --border: #e1e1e1; }
  .kopf, .leiste, .nicht-drucken, #toasts, .band { display: none !important; }
  body { background: #fff; padding: 0; }
  .karte { border: 0; }
}


/* ---------------------------------------------------------------- Menü hinter dem Avatar */
.menue { position: relative; }
.menue > summary { list-style: none; cursor: pointer; min-height: 44px; padding: 4px 4px 4px var(--s-s); border-radius: var(--radius-max); }
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary:hover, .menue[open] > summary { background: rgba(255, 255, 255, 0.12); }
.menue-liste {
  position: absolute; right: 0; top: calc(100% + var(--s-xs)); z-index: 20; min-width: 260px;
  display: grid; padding: var(--s-xs); border-radius: var(--radius-m);
  background: var(--surface); color: var(--text); box-shadow: var(--schatten-schwebend);
  animation: dialog-rein 0.18s var(--bewegung);
}
.menue-wer { margin: 0 0 var(--s-xs); padding: var(--s-xs) var(--s-s) var(--s-s); border-bottom: 1px solid var(--border); }
.menue-wer strong, .menue-wer small { display: block; }
.menue-wer small { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.menue-liste a, .menue-liste button {
  display: flex; align-items: center; gap: var(--s-s); width: 100%; min-height: 44px; padding: var(--s-xs) var(--s-s);
  border: 0; border-radius: var(--radius-xs); background: none; color: var(--text); font: inherit; text-align: left;
  text-decoration: none; cursor: pointer;
}
.menue-liste a:hover, .menue-liste button:hover { background: var(--surface-2); color: var(--text); }
.menue-liste .icon { width: 20px; height: 20px; color: var(--text-2); }
.menue-liste form { margin: 0; }
.menue-liste form button { color: var(--link); }

/* ---------------------------------------------------------------- Mehrere Teams */
.kapazitaeten { display: grid; gap: var(--s-xs); margin-top: var(--s-m); }
@media (min-width: 560px) { .kapazitaeten { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.kapazitaeten form { margin: 0; }
.kapazitaeten .schalter { width: 100%; justify-content: flex-start; border-radius: var(--radius-m); padding: var(--s-s) var(--s-m) var(--s-s) var(--s-s); white-space: normal; text-align: left; }
.schalter-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.schalter-text small { font-size: 14px; font-weight: 400; opacity: 0.85; }
.zeile-meta .fuer { color: var(--text); font-weight: 600; }

.reiter { display: flex; gap: var(--s-xs); margin: 0 0 var(--s-m); overflow-x: auto; padding-bottom: 2px; }
.reiter a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-xs) var(--s-m);
  border: 1px solid var(--border-strong); border-radius: var(--radius-max); background: var(--surface);
  color: var(--text); font-weight: 600; text-decoration: none;
}
.reiter a:hover { border-color: var(--text); color: var(--text); }
.reiter a[aria-current="page"] { background: var(--experience-green); border-color: var(--experience-green); color: var(--white); }
:root[data-thema="dunkel"] .reiter a[aria-current="page"] { background: var(--progressive-green); border-color: var(--progressive-green); color: var(--black); }

.leiter-karte .mehrere { color: var(--ok-text); font-weight: 600; }
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-xxs) var(--s-m); margin-top: var(--s-s); }
.legende .punkt { margin-right: -6px; }
.abstand-oben-klein { margin-top: var(--s-l); }

/* ---------------------------------------------------------------- Mitteilungen */
.seiten-kopf { margin: var(--s-xs) 0 var(--s-l); }
.seiten-kopf h1 { color: var(--text); font-size: 28px; }
.seiten-kopf .leise { font-size: 15px; max-width: 56ch; }
.einstellungen .tafel { padding: var(--s-xs) var(--s-m); }
.segment-feld { border: 0 !important; margin: 0 !important; padding: var(--s-m) 0 !important; border-top: 1px solid var(--border) !important; border-radius: 0 !important; }
.segment-feld:first-child { border-top: 0 !important; }
.segment-feld legend { float: left; width: 100%; padding: 0 !important; margin-bottom: var(--s-s); font-weight: 700; }
.segment-feld .segment { clear: both; }
.segment-feld legend small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); overflow: hidden; }
.formular .segment label { position: relative; margin: 0; font-weight: 600; }
.segment label + label { border-left: 1px solid var(--border-strong); }
.formular .segment input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; border-radius: 0; cursor: pointer; }
.segment span { display: flex; align-items: center; justify-content: center; min-height: 48px; height: 100%; padding: var(--s-xs); text-align: center; font-size: 14px; line-height: 1.2; color: var(--text-2); }
.segment label:hover span { background: var(--surface-2); color: var(--text); }
.segment label:has(input:checked) span { background: var(--auswahl-bg); color: var(--auswahl-rand); box-shadow: inset 0 0 0 2px var(--auswahl-rand); }
.segment label:has(input:focus-visible) span { outline: 2px solid var(--link); outline-offset: -4px; }

.schalterliste { display: grid; }
.formular .umschalter { display: flex; align-items: center; justify-content: space-between; gap: var(--s-m); margin: 0; padding: var(--s-m) 0; border-top: 1px solid var(--border); cursor: pointer; }
.formular .umschalter:first-child { border-top: 0; }
.umschalter strong, .umschalter small { display: block; }
.umschalter small { font-weight: 400; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.formular .umschalter input[type=checkbox] {
  width: 52px; height: 30px; border-radius: var(--radius-max); border: 0; background: var(--border-strong);
  display: inline-block; position: relative; transition: background-color 0.2s;
}
.formular .umschalter input[type=checkbox]::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); clip-path: none; transform: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s var(--bewegung);
}
.formular .umschalter input[type=checkbox]:checked { background: var(--progressive-green); }
.formular .umschalter input[type=checkbox]:checked::before { transform: translateX(22px); }
.einstellungen > .knopf { margin-top: var(--s-xs); }
