/* fitbymarc Verwaltung – dieselben Farben und Schriften wie die Website */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2");
}

:root {
  /* Hellblau führt (klickbar, gewählt), Grün belebt (Erfolg, Weg) – wie die Website. */
  --grund: #EBF5FC;
  --flaeche: #FFFFFF;
  --sanft: #F3F8FC;
  --tinte: #12263A;
  --tinte-2: #47596B;
  --primaer: #1D6CA5;
  --primaer-tief: #134B7C;
  --wahl: #ADD7F5;
  --wahl-hell: #DCECF9;
  --erfolg: #5A8C12;
  --erfolg-tinte: #456E0C;
  --erfolg-hell: #E5F4D2;
  --linie: #D1DFEA;
  --linie-stark: #728BA1;
  --warn: #FFF4D6;
  --warn-linie: #E8C96A;
  --rot: #A03030;
  --rot-hell: #FBECEA;
  --anzeige: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--anzeige); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--primaer); text-underline-offset: 2px; }
a:hover { color: var(--primaer-tief); }
code, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95em; }
kbd { background: var(--sanft); border: 1px solid var(--linie); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--primaer); outline-offset: 2px; border-radius: 6px; }

.gedimmt { color: var(--tinte-2); }
.klein { font-size: .88rem; }
.leer { color: var(--tinte-2); padding: 12px 0; margin: 0; }
.keinumbruch { white-space: nowrap; }
.text-block { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.nur-vorleser {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 12px; top: 12px; z-index: 10; background: var(--flaeche); padding: 8px 12px; }

/* ---------- Kopf und Navigation ---------- */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-innen {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.marke {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--anzeige); font-weight: 800; font-size: 1.15rem;
  color: var(--primaer); text-decoration: none;
}
.marke small {
  display: block; font-family: var(--text); font-weight: 600; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--erfolg-tinte);
}
.marke-zeichen { width: 32px; height: 32px; flex: none; object-fit: contain; }
.marke-gross { margin-bottom: 22px; }
.abmelden { display: flex; align-items: center; gap: 10px; margin: 0; }
.konto-link { font-weight: 600; text-decoration: none; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.navigation {
  max-width: 1100px; margin: 0 auto; padding: 0 8px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.navigation::-webkit-scrollbar { display: none; }
.navigation a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 10px 12px; font-weight: 600; color: var(--tinte-2); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.navigation a:hover { color: var(--tinte); }
.navigation a.active { color: var(--primaer-tief); border-bottom-color: var(--primaer); }
.zaehler {
  background: var(--primaer); color: #fff; border-radius: 999px;
  font-size: .75rem; font-weight: 700; padding: 0 7px; line-height: 1.5;
}

.inhalt { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem var(--text); line-height: 1.2; text-decoration: none; text-align: center;
  padding: 10px 18px; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--tinte);
}
.knopf:hover { border-color: var(--primaer); color: var(--tinte); }
.knopf-primaer { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.knopf-primaer:hover { background: var(--primaer-tief); border-color: var(--primaer-tief); color: #fff; }
.knopf-gefahr { color: var(--rot); }
.knopf-gefahr:hover { border-color: var(--rot); color: var(--rot); }
.knopf-klein { min-height: 36px; padding: 6px 14px; font-size: .86rem; border-radius: 999px; }
.knopf-breit { width: 100%; }
.knopf-text {
  background: none; border: 0; padding: 4px 6px; margin-left: auto; cursor: pointer;
  font: 600 .85rem var(--text); color: var(--rot);
}
.knopf-text:hover { text-decoration: underline; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.knopf-reihe form { margin: 0; }

/* ---------- Bausteine ---------- */
.seitenkopf {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.seitenkopf h1 { margin-bottom: 6px; }
.zurueck { margin: 0 0 10px; font-size: .92rem; }
.zurueck a { text-decoration: none; font-weight: 600; }

.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.karte > :last-child { margin-bottom: 0; }
.karte-hervor { border-color: var(--wahl); box-shadow: 0 0 0 3px var(--wahl-hell); }
.gefahr-zone { border-color: #EBC9C4; }
.raster-2 { display: grid; gap: 0 16px; }
@media (min-width: 860px) { .raster-2 { grid-template-columns: 1fr 1fr; } }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kachel {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--tinte);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px;
}
.kachel b { font-family: var(--anzeige); font-size: 2rem; line-height: 1; }
.kachel span { color: var(--tinte-2); font-weight: 600; }
.kachel:hover { border-color: var(--primaer); color: var(--tinte); }
.kachel-hervor { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.kachel-hervor span { color: #fff; }
.kachel-hervor:hover { background: var(--primaer-tief); border-color: var(--primaer-tief); color: #fff; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste > li + li { border-top: 1px solid var(--linie); }
.karte .liste { margin: 0 -18px -18px; }
.zeile {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  padding: 12px 18px; color: var(--tinte); text-decoration: none;
}
a.zeile:hover { background: var(--sanft); color: var(--tinte); }
.liste:not(.karte .liste) { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.zeile-haupt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.zeile-haupt b { font-weight: 700; }
.zeile-neben { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .9rem; }
.zeile-statisch select { min-height: 36px; padding: 4px 8px; width: auto; }
.ziele { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status, .typ {
  display: inline-block; border-radius: 999px; padding: 1px 10px;
  font-size: .78rem; font-weight: 700; line-height: 1.6; white-space: nowrap;
  background: var(--sanft); color: var(--tinte-2); text-decoration: none;
}
.status[data-s="Anfrage"] { background: #E4EEF8; color: #1F4A73; }
.status[data-s="Aktiv"], .status[data-t="Aktiv"] { background: var(--erfolg-hell); color: var(--erfolg-tinte); }
.status[data-s="Pausiert"], .status[data-t="ZweiFaktorFehlt"], .status[data-t="EinladungOffen"] { background: var(--warn); color: #6B5310; }
.status[data-s="Abgeschlossen"] { background: #ECEEEA; color: #5A625C; }
.status[data-t="Gesperrt"], .status[data-t="VoruebergehendGesperrt"] { background: var(--rot-hell); color: var(--rot); }
.typ[data-typ="Termin"] { background: #EFE6FA; color: #4B2E73; }
.typ[data-typ="Kontakt"] { background: #E4EEF8; color: #1F4A73; }

.felder { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.felder dt { color: var(--tinte-2); font-weight: 600; }
.felder dd { margin: 0; overflow-wrap: anywhere; }

.filter, .zahlen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filter a, .zahlen a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--tinte);
  text-decoration: none; font-weight: 600; font-size: .9rem;
}
.filter a.aktiv, .zahlen a.aktiv { border-color: var(--primaer); background: var(--primaer); color: #fff; }
.zahlen a.aktiv .status { background: rgba(255, 255, 255, .85); }

.suche { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.suche input { flex: 1 1 220px; }
.suche select { flex: 0 1 180px; }

.notiz { padding: 12px 0; border-top: 1px solid var(--linie); }
.notiz:first-of-type { border-top: 0; padding-top: 0; }
.notiz-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }

.loesch-bereich { margin-top: 8px; }

.tabelle-rahmen { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th, .tabelle td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 700; color: var(--tinte-2); background: var(--sanft); }
.tabelle tr:last-child td { border-bottom: 0; }

/* ---------- Formulare ---------- */
.feld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; min-width: 0; }
.feld label, .feld legend { font-weight: 600; font-size: .92rem; }
fieldset.feld { border: 0; padding: 0; }
fieldset.feld legend { margin-bottom: 6px; padding: 0; }
.feld-raster { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .feld-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; font: 400 1rem var(--text); color: var(--tinte);
  background: var(--flaeche); border: 1.5px solid var(--linie); border-radius: 10px;
  padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--primaer); outline: none; box-shadow: 0 0 0 3px var(--wahl-hell); }
input:disabled { background: var(--sanft); color: var(--tinte-2); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primaer); flex: none; margin: 0; }
.code-feld { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem !important; letter-spacing: .2em; max-width: 14ch; }

.kaestchen { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kaestchen-eintrag { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; margin: 0 0 14px; }
.kaestchen .kaestchen-eintrag {
  margin: 0; padding: 9px 12px; border: 1.5px solid var(--linie); border-radius: 10px; background: var(--flaeche);
}
.kaestchen .kaestchen-eintrag:has(input:checked) { border-color: var(--primaer); background: var(--sanft); }

.validation-message { color: var(--rot); font-size: .88rem; font-weight: 600; }
.validation-errors { color: var(--rot); padding-left: 18px; }
.invalid { border-color: var(--rot) !important; }

.link-box { display: flex; gap: 8px; flex-wrap: wrap; }
.link-box input { flex: 1 1 260px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* ---------- Hinweise ---------- */
.hinweis { border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--linie); background: var(--sanft); }
.hinweis > :last-child { margin-bottom: 0; }
.hinweis p { margin: 0 0 .4em; }
.hinweis-ok { background: var(--erfolg-hell); border-color: #BFDDB0; }
.hinweis-warn { background: var(--warn); border-color: var(--warn-linie); }
.hinweis-fehler { background: var(--rot-hell); border-color: #E7B9B2; color: #6E1F1F; }

/* ---------- Konto & Anmeldung ---------- */
.konto-seite { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.konto-karte {
  width: 100%; max-width: 440px; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 18px; padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(18, 38, 58, .07);
}
.konto-karte h1 { font-size: 1.6rem; }
.unter-formular { margin: 16px 0 0; text-align: center; font-size: .93rem; }

.konto-raster { display: grid; gap: 16px; align-items: start; }
@media (min-width: 800px) { .konto-raster { grid-template-columns: 220px 1fr; } }
.unter-navigation { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 800px) { .unter-navigation { flex-direction: column; } }
.unter-navigation a {
  padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--tinte-2);
  background: var(--flaeche); border: 1px solid var(--linie);
}
.unter-navigation a.active { color: #fff; background: var(--primaer); border-color: var(--primaer); }

.schritte { padding-left: 20px; }
.schritte > li { margin-bottom: 16px; }
.qr { display: block; width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--linie); border-radius: 12px; margin: 6px 0 10px; }
.code-liste {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.code-liste code {
  display: block; text-align: center; padding: 8px; border-radius: 8px;
  background: var(--sanft); border: 1px solid var(--linie); letter-spacing: .05em;
}

@media print {
  .kopf, .knopf, form button { display: none !important; }
  body { background: #fff; }
}

/* Bewertungen */
.status[data-s="Neu"] { background: var(--warn); color: #6B5310; }
.status[data-s="Freigegeben"] { background: var(--erfolg-hell); color: var(--erfolg-tinte); }
.status[data-s="Abgelehnt"] { background: #ECEEEA; color: #5A625C; }
.sterne { color: #B8860B; letter-spacing: 2px; margin: 6px 0 4px; font-size: 1.05rem; }

/* Kunden-Fragebogen (Onboarding) */
.ob-seite { background: var(--grund); min-height: 100vh; padding: 28px 16px 60px; }
.ob-innen { max-width: 760px; margin: 0 auto; }
.ob-innen .marke-gross { justify-content: center; margin-bottom: 22px; }
.ob-sprachen { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 10px; }
.ob-sprachen a { padding: 5px 11px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .82rem; color: var(--tinte-2); border: 1px solid var(--linie); background: #fff; }
.ob-sprachen a.aktiv { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.ob-begruessung { margin-bottom: 20px; }
.ob-abschnitt h2 { display: flex; align-items: center; gap: 10px; }
.ob-nummer { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sanft); color: var(--primaer); display: grid; place-items: center; font-size: .9rem; }
.ob-feld { margin-top: 16px; }
.ob-feld > label, .ob-feld legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.ob-feld fieldset { border: 0; padding: 0; margin: 0; }
.ob-wahl { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ob-wahl label { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; font-size: .95rem; }
.ob-skala { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-skala label { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: .85rem; }
.ob-einwilligung { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; line-height: 1.5; margin-bottom: 16px; }
.ob-einwilligung input { margin-top: 3px; flex: none; }
.ob-danke { text-align: center; }
.ob-schluss { font-weight: 600; color: var(--primaer); margin-top: 14px; }
.ob-link { word-break: break-all; background: var(--sanft); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.ob-anzeige-titel { margin-top: 18px; font-size: 1rem; }

/* Listenzeile mit eigenem Knopf am Rand (z. B. Anfrage löschen) */
.zeile-mit-knopf { display: flex; align-items: center; }
.zeile-mit-knopf .zeile { flex: 1; min-width: 0; }
/* Lange Adressen umbrechen lassen, sonst schieben sie sich unter den Knopf. */
.zeile-mit-knopf .zeile-haupt > * { min-width: 0; overflow-wrap: anywhere; }
.zeilen-knopf { flex: none; margin: 0 10px 0 0; padding: 8px 10px; border-radius: 8px; }
.zeilen-knopf:hover { background: var(--sanft); text-decoration: none; }

/* Teamzeile: Name und E-Mail direkt bearbeitbar */
.mitglied-daten { gap: 8px; }
.mitglied-daten input { min-height: 36px; padding: 5px 9px; font-size: .92rem; width: auto; min-width: 150px; }
.mitglied-daten input[type="email"] { min-width: 220px; }

/* Ziele einer Anfrage untereinander: eine Zeile mit Kommas liest sich schlecht. */
.ziel-liste { margin: 0; padding-left: 18px; }
.ziel-liste li { margin: 0 0 2px; }

/* Baustein von der Website, aus dem eine Anfrage kam */
.angebot-marke { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #E6F0FA; color: #1D4E7A; font-weight: 600; font-size: .86rem; line-height: 1.5; }

/* ---------- Kunde: Reiter und Entwicklung ---------- */
.reiter { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.reiter a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--tinte-2); text-decoration: none; }
.reiter a:hover { background: var(--flaeche); color: var(--tinte); }
.reiter a.aktiv { background: var(--wahl-hell); color: var(--primaer-tief); }

.karte-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.karte-kopf h2 { margin: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--tinte); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.wahl a:hover { border-color: var(--primaer); color: var(--tinte); }
.wahl a.aktiv { background: var(--primaer); border-color: var(--primaer); color: #fff; }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kennzahlen > div { background: var(--grund); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.kennzahlen span { color: var(--tinte-2); font-size: .85rem; font-weight: 600; }
.kennzahlen b { font-family: var(--anzeige); font-size: 1.45rem; line-height: 1.2; }
.kennzahlen .kennzahl-hervor { background: var(--erfolg-hell); }
.kennzahlen .kennzahl-hervor span, .kennzahlen .kennzahl-hervor b { color: var(--erfolg-tinte); }

/* Am Handy nicht winzig schrumpfen, sondern seitlich schieben lassen. */
.kurve-rahmen { overflow-x: auto; margin: 0 0 12px; }
/* Farben je Messgröße kommen als --farbe/--hell/--dunkel vom style-Attribut der Kurve. */
.kurve { --farbe: var(--primaer); --hell: var(--wahl-hell); --dunkel: var(--primaer-tief); width: 100%; min-width: 520px; height: auto; display: block; font-family: var(--text); overflow: visible; }
.kurve-achsentitel { fill: var(--tinte-2); font-size: 13px; font-weight: 700; }
.kurve-skala { fill: var(--tinte-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kurve-raster { stroke: var(--linie); stroke-width: 1; opacity: .6; }
.kurve-achse { stroke: var(--linie); stroke-width: 1.5; }
.kurve-flaeche { fill: var(--hell); opacity: 0; animation: kurve-ein .8s ease-out 1s forwards; }
.kurve-ziel-gruppe { opacity: 0; animation: kurve-ein .6s ease-out 1.3s forwards; }
.kurve-ziel { stroke: var(--erfolg); stroke-width: 2; stroke-dasharray: 6 6; }
.kurve-ziel-text { fill: var(--erfolg-tinte); font-size: 13px; font-weight: 700; }
.kurve-linie { fill: none; stroke: var(--farbe); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: kurve-zeichnen 1.4s ease-out .1s forwards; }
.kurve-puls { fill: none; stroke: var(--farbe); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: kurve-puls 2.2s ease-out 1.8s infinite; pointer-events: none; }
.kurve-pkt { cursor: pointer; opacity: 0; transform-box: fill-box; transform-origin: center; animation: kurve-auf .45s cubic-bezier(.3, 1.6, .6, 1) forwards; }
.kurve-treffer { fill: #fff; fill-opacity: 0; }
.kurve-punkt { fill: #fff; stroke: var(--farbe); stroke-width: 3; transition: fill .15s; }
.kurve-pkt:hover .kurve-punkt, .kurve-pkt.an .kurve-punkt { fill: var(--farbe); }
.kurve-wert { fill: var(--dunkel); font-size: 13px; font-weight: 700; }
.kurve-datum { fill: var(--tinte-2); font-size: 12.5px; }
.kurve-tipp { opacity: 0; pointer-events: none; transition: opacity .15s; }
.kurve-tipp.an { opacity: 1; }
.kurve-tipp rect { fill: var(--dunkel); }
.kurve-tipp-linie { stroke: var(--farbe); stroke-width: 1; stroke-dasharray: 3 4; }
.kurve-tipp-datum { fill: #E8EEF4; font-size: 12.5px; }
.kurve-tipp-wert { fill: #fff; font-family: var(--anzeige); font-size: 19px; font-weight: 800; }
.kurve-tipp-schritt { fill: #fff; font-size: 12.5px; font-weight: 700; }
/* Zwischenbericht: Auswahl in der Verwaltung und Ansicht des Kunden */
.bericht-wahl { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.bericht-wahl label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); cursor: pointer; }
.bericht-wahl input, .bericht-zeigen input { width: 20px; height: 20px; accent-color: var(--primaer); margin: 0; }
.bericht-wahl-veraenderung { color: var(--erfolg-tinte); font-weight: 700; }
/* Haken „gesendet“ / „geöffnet“ */
.haken-reihe { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.haken { display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.haken .zeichen { flex: none; }
.haken-ja { color: var(--erfolg-tinte); }
.haken-offen { color: var(--tinte-2); }
.haken-warn { color: #8A5A00; }
.haken-aus { color: var(--tinte-2); font-weight: 600; }
.bericht-haken-gross { margin: 0 0 12px; }
.bericht-haken-gross .haken { font-size: 1rem; }
.bericht-zeitraum-felder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.bericht-zeitraum-felder .feld { margin: 0; flex: 0 1 180px; }
.bericht-zeigen { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.bericht-zeigen legend { font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.bericht-zeigen label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.bericht-schritte { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.bericht-seite { min-width: 0; overflow-wrap: anywhere; }
.bericht-kopf h1 { margin-bottom: 0; }
.bericht-zeitraum { color: var(--tinte-2); font-weight: 600; margin-top: 2px; }
.bericht-nachricht { background: var(--sanft); border: 1px solid var(--wahl); border-radius: 14px; padding: 12px 14px; }
.bericht-nachricht b { display: block; color: var(--primaer-tief); font-size: .85rem; }
/* Zwischenbericht nach Vorlage 04.11.2026: Gesamt seit Start, Tabelle, Balken und Hantel */
.bericht-gesamt { background: var(--erfolg-hell); border-radius: 14px; padding: 12px 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.bericht-gesamt b { font-family: var(--anzeige); font-size: 1.45rem; color: var(--erfolg-tinte); line-height: 1.2; }
.bericht-gesamt span { color: var(--erfolg-tinte); font-size: .9rem; }
.tabelle-rahmen { overflow-x: auto; margin: 0 0 8px; }
.bericht-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
/* 10.11.2026: Tabellenkopf in Markenblau, Zeilen abwechselnd hinterlegt – wie im Mockup des Betreibers */
.bericht-tabelle th { text-align: right; font-size: .82rem; font-weight: 600; color: #fff; background: var(--primaer); padding: 9px 10px; }
.bericht-tabelle td { text-align: right; padding: 9px 10px; border-top: 1px solid var(--linie); white-space: nowrap; }
.bericht-tabelle tbody tr:nth-child(odd) td { background: var(--sanft); }
.bericht-tabelle th:first-child, .bericht-tabelle td:first-child { text-align: left; white-space: normal; }
.bericht-tabelle .bericht-weniger { color: var(--erfolg-tinte); font-weight: 700; }
.bericht-fehlt { color: #8A99A8; font-weight: 400; }
/* Tabellen 2 und 3: zwei Paare je Zeile (Bezeichnung | Ergebnis | Bezeichnung | Ergebnis), alles linksbündig */
.bericht-paare th, .bericht-paare td { text-align: left; white-space: normal; vertical-align: top; }
.bericht-paare td:nth-child(odd) { color: var(--tinte-2); width: 28%; }
.bericht-paare td small { display: block; }
.bericht-paare td:nth-child(even) { overflow-wrap: anywhere; width: 22%; }
.bericht-paare td:nth-child(2) { border-right: 1px solid var(--linie); }
.bericht-blick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .bericht-blick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kennzahlen .kennzahl-breit { grid-column: 1 / -1; }
.kennzahlen small { font-size: .82rem; margin-top: 2px; }
.kennzahlen .bericht-weniger { color: var(--erfolg-tinte); }
.kennzahlen .bericht-fehlt { color: #8A99A8; }
.pflicht-liste { list-style: none; margin: 0 0 12px; padding: 0; }
.pflicht-liste li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.pflicht-liste li:last-child { border-bottom: 0; }
.pflicht-nr { width: 20px; height: 20px; border-radius: 50%; background: var(--wahl-hell); color: var(--primaer-tief); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.pflicht-titel small { display: block; color: var(--tinte-2); font-size: .8rem; margin-top: 2px; }
.pflicht-stand { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pflicht-da .pflicht-stand { color: var(--erfolg-tinte); }
.pflicht-fehlt .pflicht-stand { color: #A25B00; }
/* Am Handy sind vier Spalten zu eng: jedes Paar bekommt eine eigene Zeile, der Kopf nennt nur das erste Paar. */
@media (max-width: 560px) {
  .bericht-paare tr { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .bericht-paare th:nth-child(n+3) { display: none; }
  .bericht-paare td:nth-child(2) { border-right: 0; }
  .bericht-paare td:nth-child(odd), .bericht-paare td:nth-child(even) { width: auto; }
  .bericht-paare tbody tr:nth-child(odd) td { background: none; }
  .bericht-paare tbody tr td:nth-child(-n+2) { background: var(--sanft); }
}
.bericht-diagramm-titel { font-size: 1rem; margin: 18px 0 2px; }
.kennzahlen .kennzahl-text { font-family: inherit; font-size: 1.05rem; overflow-wrap: anywhere; }
.balken-bild, .hantel-bild { width: 100%; min-width: 520px; height: auto; display: block; font-family: var(--text); overflow: visible; }
.schritt-balken { fill: var(--primaer); }
.schritt-balken-unter { fill: #85B7EB; }
.schritt-balken:hover { fill: var(--primaer-tief); }
@media (max-width: 520px) { .bericht-tabelle { font-size: .9rem; } .bericht-tabelle th, .bericht-tabelle td { padding-left: 4px; padding-right: 4px; } .bericht-tabelle th { white-space: normal; } }
.hantel-titel { fill: var(--tinte); font-size: 14px; font-weight: 600; }
.hantel-strecke { stroke: #85B7EB; stroke-width: 4; stroke-linecap: round; }
.hantel-vorher { fill: #8A99A8; stroke: var(--flaeche); stroke-width: 2; }
.hantel-jetzt { fill: var(--primaer); stroke: var(--flaeche); stroke-width: 2; }
.legende-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.legende-vorher { background: #8A99A8; }
.legende-jetzt { background: var(--primaer); margin-left: 8px; }
.alltag-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 14px; }
.alltag-felder .feld { margin: 0 0 10px; }
.checkin-stand { background: var(--sanft); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.bericht-nachricht p { margin: 4px 0 0; }
.bericht-liste { margin: 0 0 10px; padding-left: 20px; }
.bericht-fuss { margin: 18px 0 8px; }
.bericht-vorschau-hinweis { background: var(--warn); border-color: var(--warn-linie); }

/* Kasten „Startwerte aus dem Fragebogen übernehmen?“ */
.startwerte { border-width: 2px; border-color: var(--primaer); }
.startwerte h2 { margin-bottom: 4px; }
.startwerte-haken { width: 22px; height: 22px; accent-color: var(--primaer); margin: 0; }
.startwerte-hinweis { display: block; color: var(--tinte-2); font-size: .85rem; }
.startwerte-fuss { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-top: 14px; }
.startwerte-fuss .feld { margin: 0; flex: 0 1 220px; }
@keyframes kurve-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes kurve-ein { to { opacity: 1; } }
@keyframes kurve-auf { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes kurve-puls { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
@media (prefers-reduced-motion: reduce) {
  .kurve-flaeche, .kurve-ziel-gruppe, .kurve-linie, .kurve-pkt { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .kurve-puls { display: none; }
}

.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.inline-form label { font-weight: 600; font-size: .92rem; }
.inline-form input { width: 150px; min-height: 36px; padding: 6px 10px; }

.raster-breit { display: grid; gap: 0 16px; align-items: start; }
.raster-breit > *, .raster-2 > * { min-width: 0; }
@media (min-width: 900px) { .raster-breit { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.feld-raster-fest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tabelle td.rechts { text-align: right; white-space: nowrap; }
.tabelle td.zeile-bearbeiten { background: var(--wahl-hell); }
.mit-einheit { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tabelle input.eng { min-height: 36px; padding: 5px 8px; width: 120px; display: inline-block; }
.tabelle input.eng[type=date] { width: 150px; }
.abstand-oben { margin-top: 10px; }
.aufklapper { margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 12px; }
.aufklapper summary { cursor: pointer; font-weight: 600; color: var(--primaer); margin-bottom: 10px; }
.knopf-text-ok { color: var(--erfolg-tinte); margin-left: 0; }

.zeitstrahl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.zeitstrahl li { border-top: 4px solid var(--primaer); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.zeitstrahl li.erreicht { border-top-color: var(--erfolg); }
.zeitstrahl li.erreicht b { color: var(--erfolg-tinte); }
.zeitstrahl li.offen { border-top-style: dashed; border-top-color: var(--linie-stark); }
.zeitstrahl li span { font-size: .9rem; }
.zeitstrahl-knoepfe { display: flex; gap: 4px; }
.zeitstrahl-knoepfe .knopf-text { margin-left: 0; padding-left: 0; font-size: .82rem; }

/* ---------- Übersicht ---------- */
.seitenkopf-gruss { align-items: baseline; }
.fett { font-weight: 600; }
.karte-warn { background: var(--warn); border-color: var(--warn-linie); }
.karte-warn h2, .karte-warn > p { color: #5C4710; }
.karte-warn .liste { margin: 0 -18px; background: var(--flaeche); border-top: 1px solid var(--warn-linie); border-bottom: 1px solid var(--warn-linie); }
.aufgaben { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.aufgabe { background: var(--sanft); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.aufgabe .gedimmt { font-size: .92rem; }
.aufgabe-namen { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 600; }
.tabelle td b { white-space: nowrap; }
@media (max-width: 520px) {
  .tabelle th, .tabelle td { padding: 8px 8px; }
  .tabelle td.zeile-bearbeiten .inline-form { gap: 8px; }
}
.karte form + h3 { margin-top: 22px; }

/* ---------- Termine ---------- */
.termine-raster { display: grid; gap: 16px; align-items: start; }
.termine-raster > .karte { max-width: 760px; }
.termine-raster > * { min-width: 0; }
.wochen-titel { min-width: 200px; text-align: center; }
.woche-rahmen { overflow-x: auto; }
.woche { display: grid; grid-template-columns: repeat(var(--tage, 6), minmax(118px, 1fr)); gap: 8px; min-width: calc(var(--tage, 6) * 126px); }
.tag { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 280px; }
.tag h3 { margin: 0; font: 700 .92rem var(--text); color: var(--tinte-2); text-transform: capitalize; }
.tag-heute { border-color: var(--primaer); box-shadow: 0 0 0 3px var(--wahl-hell); }
.tag-heute h3 { color: var(--primaer-tief); }
.termin { display: flex; flex-direction: column; gap: 2px; border-radius: 10px; padding: 8px 10px; font-size: .84rem; line-height: 1.35; text-decoration: none; color: var(--tinte); border-left: 4px solid transparent; }
.termin span { overflow-wrap: anywhere; }
.termin:hover { color: var(--tinte); filter: brightness(.97); }
.termin[data-art="Erstgespraech"], .termin-marke[data-art="Erstgespraech"], .farbe[data-art="Erstgespraech"] { background: var(--wahl-hell); border-color: var(--primaer); color: var(--primaer-tief); }
.termin[data-art="Training"], .termin-marke[data-art="Training"], .farbe[data-art="Training"] { background: var(--erfolg-hell); border-color: var(--erfolg); color: var(--erfolg-tinte); }
.termin[data-art="Ernaehrung"], .termin-marke[data-art="Ernaehrung"], .farbe[data-art="Ernaehrung"] { background: #FDEBDD; border-color: #C26A2B; color: #7A3E12; }
.termin[data-art="Folgegespraech"], .termin-marke[data-art="Folgegespraech"], .farbe[data-art="Folgegespraech"] { background: #EDE7FE; border-color: #7C3AED; color: #4C1D95; }
.termin[data-art="Beratung"], .termin-marke[data-art="Beratung"], .farbe[data-art="Beratung"] { background: #DDF3F0; border-color: #0F766E; color: #134E4A; }
.termin[data-art="Abschlussgespraech"], .termin-marke[data-art="Abschlussgespraech"], .farbe[data-art="Abschlussgespraech"] { background: #FCE7F3; border-color: #BE185D; color: #831843; }
.termin[data-abgesagt] { opacity: .55; text-decoration: line-through; }
.termin-marke, .farbe { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .78rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.farbe { margin-right: 4px; }
.zahl { font-variant-numeric: tabular-nums; }
.liste-rahmen { border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.karte .liste.liste-rahmen { margin: 0; }

/* ---------- Pläne ---------- */
.plan-zeile { align-items: center; flex-wrap: wrap; }
.plan-symbol { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; background: var(--wahl-hell); color: var(--primaer-tief); }
.plan-symbol[data-art="Ernaehrungsplan"] { background: var(--erfolg-hell); color: var(--erfolg-tinte); }
.plan-symbol[data-art="Sonstiges"] { background: var(--sanft); color: var(--tinte-2); }
.plan-text { flex: 1 1 240px; flex-direction: column; align-items: flex-start; gap: 2px; }

/* ---------- Bewertungsseite für Kunden ---------- */
.ob-vorspann { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--erfolg-tinte); }
.sterne-wahl { display: inline-flex; flex-direction: row-reverse; gap: 2px; align-self: flex-start; }
.sterne-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sterne-wahl label { font-size: 2.3rem; line-height: 1; color: var(--linie-stark); cursor: pointer; padding: 2px; min-width: 44px; text-align: center; }
.sterne-wahl input:checked ~ label, .sterne-wahl label:hover, .sterne-wahl label:hover ~ label { color: #B6830C; }
.sterne-wahl input:focus-visible + label { outline: 3px solid var(--primaer); border-radius: 8px; }

/* ---------- Besucher ---------- */
.balken { fill: var(--primaer); }
.balken:hover { fill: var(--primaer-tief); }
.balkenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.balkenliste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: baseline; }
.balken-name { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.balken-zahl { color: var(--tinte-2); font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balken-spur { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--sanft); overflow: hidden; }
.balken-spur > span { display: block; height: 100%; border-radius: 999px; background: var(--primaer); }

/* ---------- Verträge (10.11.2026, nach Mockup) ---------- */
.raster-vertraege { display: grid; gap: 0 16px; align-items: start; }
.raster-vertraege > * { min-width: 0; }
@media (min-width: 900px) { .raster-vertraege { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.vertrag-leistungen { display: grid; gap: 4px; }
.vertrag-leistungen .kaestchen-eintrag { margin: 0; font-weight: 400; font-size: .95rem; }
.vertrag-warten { border: 2px solid var(--warn-linie); }
.vertrag-status { white-space: nowrap; }
.vertrag-status[data-v="warten"] { background: var(--warn); color: #6B5310; }
.vertrag-status[data-v="kunde"] { background: var(--wahl-hell); color: var(--primaer-tief); }
.vertrag-status[data-v="gilt"] { background: var(--erfolg-hell); color: var(--erfolg-tinte); }
.vertrag-status[data-v="verlaengert"] { background: #DCECF9; color: #134B7C; }
.vertrag-status[data-v="ende"] { background: var(--rot-hell); color: var(--rot); }
.vertrag-status[data-v="aus"] { background: #ECEEEA; color: #5A625C; }
.vertrag-dringend { color: #A25B00; font-weight: 700; }
.vertrag-daten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0 0 12px; font-size: .95rem; }
.vertrag-daten dt { color: var(--tinte-2); }
.vertrag-daten dd { margin: 0; overflow-wrap: anywhere; }
.vertrag-abdruck { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; word-break: break-all; }
.vertrag-fortschritt { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vertrag-fortschritt li { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.vertrag-fortschritt li::before { content: ""; position: absolute; top: 11px; left: 24px; right: 0; height: 3px; background: var(--linie); }
.vertrag-fortschritt li.fertig::before { background: var(--erfolg); }
.vertrag-fortschritt li:last-child::before { display: none; }
.vertrag-punkt {
  position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--linie-stark); background: var(--flaeche); font-size: .8rem; font-weight: 700;
}
.vertrag-fortschritt li.fertig .vertrag-punkt { background: var(--erfolg); border-color: var(--erfolg); color: #fff; }
.vertrag-schritt-name { font-weight: 600; }
.vertrag-papier summary { cursor: pointer; font-weight: 600; color: var(--primaer); }
.vertrag-papier { border-style: dashed; }

/* Vertragstext (Kunde und Verwaltung) – wie das PDF, Titel grün wie im Original */
.vertrag-text { font-size: .95rem; line-height: 1.55; }
.vertrag-text p { margin: 0 0 .55em; }
.vertrag-kopf { font-family: var(--anzeige); font-weight: 700; font-size: 1.05rem; text-align: center; margin-bottom: 14px !important; }
.vertrag-abschnitt { margin: 0 0 16px; }
.vertrag-abschnitt h3, .vertrag-text h3 { color: var(--erfolg-tinte); font-size: 1rem; margin: 0 0 6px; }
.vertrag-kaestchen { display: flex; gap: 9px; align-items: flex-start; }
.vertrag-box {
  flex: none; width: 17px; height: 17px; margin-top: 3px; border: 1.5px solid var(--tinte); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700;
}
.vertrag-box.an { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.vertrag-zeile { overflow-wrap: anywhere; }
.vertrag-unterschrift { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin: 8px 0; }
.vertrag-unterschrift > span:first-child { min-width: 170px; }
.unterschrift-bild { width: 210px; max-width: 100%; height: 70px; color: var(--tinte); border-bottom: 1px solid var(--linie-stark); }
.unterschrift-leer { display: inline-block; width: 210px; max-width: 100%; border-bottom: 1px solid var(--linie-stark); color: var(--tinte-2); font-size: .85rem; padding-top: 40px; }
.vertrag-inhalt-liste { font-size: .85rem; color: var(--tinte-2); }

/* Unterschriftsseite des Kunden */
.vertrag-schritte { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; counter-reset: schritt; flex-wrap: wrap; }
.vertrag-schritte li { counter-increment: schritt; padding: 5px 12px; border-radius: 999px; background: var(--sanft); color: var(--tinte-2); font-size: .88rem; font-weight: 600; }
.vertrag-schritte li::before { content: counter(schritt) ". "; }
.vertrag-schritte li.an { background: var(--primaer); color: #fff; }
.vertrag-schritte li.fertig { background: var(--erfolg-hell); color: var(--erfolg-tinte); }
fieldset.vertrag-formeln { min-width: 0; }
.vertrag-formeln legend { padding: 0; }
.vertrag-formeln legend h2 { margin: 0; }
.vertrag-formeln.invalid { border-color: var(--rot) !important; }
.vertrag-formel {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 10px 0 0; cursor: pointer;
  border: 1.5px solid var(--linie-stark); border-radius: 10px; background: var(--flaeche);
}
.vertrag-formel:has(input:checked) { border: 2px solid var(--primaer); background: var(--wahl-hell); }
.vertrag-formel input { margin-top: 4px; flex: none; }
.vertrag-formel > span { display: flex; flex-direction: column; gap: 2px; }
.vertrag-zusammenfassung { background: var(--erfolg-hell); border-color: #BFDDB0; }
.vertrag-zusammenfassung p { margin: 0 0 4px; color: var(--erfolg-tinte); }
.unterschrift-feld { max-width: 640px; }
.unterschrift-flaeche {
  display: block; width: 100%; aspect-ratio: 3 / 1; height: auto; touch-action: none; cursor: crosshair;
  background: #fff; border: 2px dashed var(--linie-stark); border-radius: 10px;
}
.unterschrift-feld.gezeichnet .unterschrift-flaeche { border-style: solid; border-color: var(--primaer); }
.unterschrift-leiste { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.vertrag-meta { overflow-wrap: anywhere; }
.vertrag-formeln legend { float: left; width: 100%; margin-bottom: 6px; }
.vertrag-formeln legend + * { clear: both; }
.vertrag-schritte li { padding: 4px 10px; font-size: .82rem; }
