/* Partner-Portal – Gestaltung */

:root {
  color-scheme: light;
  --seite: #f4f4f1;
  --flaeche: #ffffff;
  --flaeche-2: #f8f8f6;
  --flaeche-hover: #f2f2ef;
  --tinte: #121316;
  --tinte-2: #52514e;
  --gedaempft: #85837d;
  --raster: #e8e7e1;
  --achse: #c3c2b7;
  --rand: rgba(11, 11, 11, 0.09);
  --rand-stark: rgba(11, 11, 11, 0.16);

  --akzent: #1c5cab;
  --akzent-hover: #184f95;
  --akzent-zart: #e8f0fb;
  --reihe-1: #2a78d6;
  --reihe-1-zart: #b7d3f6;
  --reihe-1-dunkel: #184f95;
  --plan: #eb6834;

  --gut: #0ca30c;
  --gut-text: #006300;
  --gut-zart: #e6f5e6;
  --meldung-link: #8fc1ff;
  --warn: #fab219;
  --warn-text: #7a5000;
  --warn-zart: #fef4dc;
  --kritisch: #d03b3b;
  --kritisch-text: #b02a2a;
  --kritisch-zart: #fbe9e9;

  --seitenleiste: #111317;
  --seitenleiste-text: #c9cbd1;
  --seitenleiste-aktiv: #1f232b;

  --radius: 14px;
  --radius-klein: 9px;
  --schatten: 0 1px 2px rgba(16, 18, 22, 0.04), 0 4px 16px rgba(16, 18, 22, 0.04);
  --schatten-hoch: 0 12px 40px rgba(16, 18, 22, 0.18);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --seite: #0e0f11;
    --flaeche: #18191b;
    --flaeche-2: #1d1e21;
    --flaeche-hover: #222327;
    --tinte: #f4f4f2;
    --tinte-2: #c3c2b7;
    --gedaempft: #8d8b85;
    --raster: #2a2b2d;
    --achse: #3a3b3d;
    --rand: rgba(255, 255, 255, 0.08);
    --rand-stark: rgba(255, 255, 255, 0.16);
    --akzent: #3987e5;
    --akzent-hover: #5598e7;
    --akzent-zart: #182a42;
    --reihe-1: #3987e5;
    --reihe-1-zart: #1f3b60;
    --reihe-1-dunkel: #86b6ef;
    --plan: #d95926;
    --gut-text: #3cc13c;
    --gut-zart: #13291a;
    --meldung-link: #1c5cab;
    --warn-text: #fab219;
    --warn-zart: #2e2611;
    --kritisch-text: #ef7a7a;
    --kritisch-zart: #321919;
    --seitenleiste: #0a0b0d;
    --seitenleiste-aktiv: #1a1c21;
    --schatten: none;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--seite);
  color: var(--tinte);
  font: 15px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
.zahl, td.zahl, th.zahl { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.gedaempft { color: var(--gedaempft); }
.klein { font-size: 13px; }
.mini { font-size: 12px; }
.fett { font-weight: 600; }
.versteckt { display: none !important; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Grundgerüst ------------------------------------------------------- */

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.leiste {
  background: var(--seitenleiste); color: var(--seitenleiste-text);
  display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh;
}
.marke { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: #fff; }
.marke-zeichen {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3987e5, #1c5cab); color: #fff; flex: none;
}
.marke-name { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.marke-rolle { font-size: 12px; color: #8b8f99; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  color: var(--seitenleiste-text); font-size: 14.5px; text-decoration: none;
}
.nav a:hover { background: var(--seitenleiste-aktiv); color: #fff; }
.nav a.aktiv { background: var(--seitenleiste-aktiv); color: #fff; box-shadow: inset 3px 0 0 #3987e5; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav-trenner { height: 1px; background: rgba(255, 255, 255, 0.07); margin: 12px 8px; }
.leiste-fuss { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.leiste-fuss .wer { color: #fff; font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste-fuss .firma { font-size: 12.5px; color: #8b8f99; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste-fuss button {
  margin-top: 10px; background: none; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--seitenleiste-text);
  border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.leiste-fuss button svg { width: 16px; height: 16px; }
.leiste-fuss button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }

.inhalt { padding: 28px 32px 60px; max-width: 1480px; width: 100%; }
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.kopf-text p { margin: 4px 0 0; color: var(--tinte-2); }
.kopf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gedaempft); margin-bottom: 6px; }

/* --- Karten und Raster ------------------------------------------------- */

.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 20px 22px; min-width: 0;
}
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.karte-kopf p { margin: 2px 0 0; color: var(--gedaempft); font-size: 13px; }
.karte.flach { box-shadow: none; }
.raster { display: grid; gap: 16px; margin-bottom: 16px; }
.raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster-ziel { grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px; margin-bottom: 16px; }

.kachel { padding: 18px 20px; }
.kachel-label { font-size: 13px; color: var(--tinte-2); }
.kachel-wert { font-size: 26px; font-weight: 650; letter-spacing: -0.015em; margin: 6px 0 4px; white-space: nowrap; }
.kachel-zusatz { font-size: 12.5px; color: var(--gedaempft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.hoch { color: var(--gut-text); }
.delta.runter { color: var(--kritisch-text); }
.delta.gleich { color: var(--gedaempft); }

/* --- Ziel ---------------------------------------------------------------- */

.held-zahl { font-size: 52px; font-weight: 680; letter-spacing: -0.03em; line-height: 1; }
.held-unter { color: var(--tinte-2); margin-top: 8px; }
.meter { position: relative; height: 12px; border-radius: 99px; background: var(--reihe-1-zart); margin: 18px 0 8px; }
.meter-fuellung { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--reihe-1); max-width: 100%; }
.meter-hochrechnung { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--reihe-1); opacity: 0.35; max-width: 100%; }
.meter-plan { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--tinte); border-radius: 2px; }
.meter-skala { display: flex; justify-content: space-between; font-size: 12px; color: var(--gedaempft); }
.ziel-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 18px; }
.fakt-label { font-size: 12.5px; color: var(--gedaempft); }
.fakt-wert { font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ziel-mini { padding: 14px 0; border-top: 1px solid var(--raster); }
.ziel-mini:first-child { border-top: 0; padding-top: 0; }
.ziel-mini .meter { height: 8px; margin: 10px 0 6px; }

/* --- Abzeichen ----------------------------------------------------------- */

.abzeichen {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--flaeche-2); color: var(--tinte-2);
  border: 1px solid var(--rand);
}
.abzeichen .punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.abzeichen.akut, .abzeichen.nicht_auf_kurs, .abzeichen.verfehlt { background: var(--kritisch-zart); color: var(--kritisch-text); border-color: transparent; }
.abzeichen.akut .punkt, .abzeichen.nicht_auf_kurs .punkt, .abzeichen.verfehlt .punkt { background: var(--kritisch); }
.abzeichen.beobachten, .abzeichen.knapp { background: var(--warn-zart); color: var(--warn-text); border-color: transparent; }
.abzeichen.beobachten .punkt, .abzeichen.knapp .punkt { background: var(--warn); }
.abzeichen.ok, .abzeichen.auf_kurs, .abzeichen.erreicht { background: var(--gut-zart); color: var(--gut-text); border-color: transparent; }
.abzeichen.ok .punkt, .abzeichen.auf_kurs .punkt, .abzeichen.erreicht .punkt { background: var(--gut); }
.abzeichen.inaktiv, .abzeichen.offen { color: var(--gedaempft); }
.abzeichen.inaktiv .punkt { background: var(--achse); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.status .punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status.aktiv .punkt { background: var(--gut); }
.status.teilweise .punkt { background: var(--warn); }
.status.pausiert .punkt { background: var(--achse); }
.status.ausgeschieden { color: var(--gedaempft); }
.status.ausgeschieden .punkt { background: transparent; border: 1.5px solid var(--achse); }
.aktivitaet-stufe { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 6px; }
.aktivitaet-stufe i { width: 4px; height: 12px; border-radius: 2px; background: var(--raster); display: block; }
.aktivitaet-stufe.mittel i:nth-child(-n+2), .aktivitaet-stufe.hoch i { background: var(--reihe-1); }
.aktivitaet-stufe.keine i:first-child { background: var(--achse); }

.hinweis {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px;
  background: var(--warn-zart); color: var(--tinte);
}
.hinweis.akut { background: var(--kritisch-zart); }
.hinweis svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.hinweis.akut svg { color: var(--kritisch); }
.hinweis.beobachten svg { color: var(--warn-text); }
.hinweis ul { margin: 4px 0 0; padding-left: 18px; }

/* --- Schalter, Knöpfe, Formulare ---------------------------------------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; border: 1px solid var(--rand-stark); background: var(--flaeche); color: var(--tinte);
  font-weight: 550; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.knopf:hover { background: var(--flaeche-hover); text-decoration: none; }
.knopf svg { width: 16px; height: 16px; }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.primaer:hover { background: var(--akzent-hover); }
.knopf.gefahr { color: var(--kritisch-text); }
.knopf.klein { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.knopf.symbol { width: 32px; height: 32px; padding: 0; border-color: transparent; background: transparent; color: var(--gedaempft); }
.knopf.symbol:hover { background: var(--flaeche-hover); color: var(--tinte); }
.knopf:disabled { opacity: 0.55; cursor: default; }

.segment { display: inline-flex; background: var(--flaeche-2); border: 1px solid var(--rand); border-radius: 10px; padding: 3px; gap: 2px; }
.segment button {
  border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 550;
  color: var(--tinte-2); cursor: pointer; white-space: nowrap;
}
.segment button:hover { color: var(--tinte); }
.segment button.an { background: var(--flaeche); color: var(--tinte); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.filterleiste { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }

.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.feld label { font-size: 13px; font-weight: 550; color: var(--tinte-2); }
.feld .hilfe { font-size: 12.5px; color: var(--gedaempft); }
.eingabe, select.eingabe, textarea.eingabe {
  height: 40px; border: 1px solid var(--rand-stark); border-radius: 10px; padding: 0 12px;
  background: var(--flaeche); width: 100%; min-width: 0;
}
textarea.eingabe { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.eingabe:focus { outline: 2px solid var(--akzent); outline-offset: -1px; border-color: transparent; }
.filterleiste .eingabe { width: auto; height: 36px; }
.felder-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.betrag-feld { position: relative; }
.betrag-feld .eingabe { padding-right: 34px; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; height: 46px; }
.betrag-feld span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gedaempft); }
.provision-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.provision-zeile .segment button { padding: 8px 12px; }
.vorschau-provision {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px;
  background: var(--akzent-zart); margin-bottom: 14px; font-size: 14px;
}
.vorschau-provision strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.fehlertext { color: var(--kritisch-text); font-size: 13.5px; min-height: 20px; margin-bottom: 4px; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checkbox input { margin-top: 4px; }

/* --- Tabellen ------------------------------------------------------------ */

.tabelle-huelle { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--gedaempft); text-transform: none;
  padding: 8px 10px; border-bottom: 1px solid var(--raster); white-space: nowrap; user-select: none;
}
.tabelle th.sortierbar { cursor: pointer; }
.tabelle th.sortierbar:hover { color: var(--tinte); }
.tabelle th .pfeil { font-size: 10px; margin-left: 3px; }
.tabelle td.spalte-name { min-width: 172px; }
.tabelle td { padding: 11px 9px; border-bottom: 1px solid var(--raster); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr.klickbar { cursor: pointer; }
.tabelle tbody tr:hover td { background: var(--flaeche-2); }
.tabelle td:first-child, .tabelle th:first-child { padding-left: 0; }
.tabelle td:last-child, .tabelle th:last-child { padding-right: 0; }
.tabelle .aktionen { text-align: right; white-space: nowrap; width: 1%; }
.tabelle tfoot td { font-weight: 650; border-top: 1px solid var(--achse); border-bottom: 0; }
.zelle-titel { font-weight: 560; }
.zelle-unter { font-size: 12.5px; color: var(--gedaempft); }
.zelle-unter.geprueft { display: flex; justify-content: flex-end; gap: 3px; align-items: center; color: var(--gut-text); }
.zelle-unter.geprueft svg { width: 11px; height: 11px; }
.leer { text-align: center; padding: 36px 12px; color: var(--gedaempft); }

/* --- Ranglisten ---------------------------------------------------------- */

.rangliste { list-style: none; margin: 0; padding: 0; }
.rangliste li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--raster); align-items: center; }
.rangliste li:first-child { border-top: 0; }
.rangliste .platz { font-size: 13px; font-weight: 650; color: var(--gedaempft); font-variant-numeric: tabular-nums; }
.rangliste .name { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rangliste .name a { color: var(--tinte); }
.rangliste .wert { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rangliste .unter { grid-column: 2 / 4; font-size: 12.5px; color: var(--gedaempft); display: flex; justify-content: space-between; gap: 8px; }
.rangliste .balken { grid-column: 2 / 4; height: 4px; border-radius: 4px; background: var(--raster); overflow: hidden; }
.rangliste .balken i { display: block; height: 100%; background: var(--reihe-1); border-radius: 4px; }
.mehr-knopf { margin-top: 8px; background: none; border: 0; color: var(--akzent); cursor: pointer; padding: 4px 0; font-size: 13.5px; font-weight: 550; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--raster); font-size: 14px; }
.feed li:first-child { border-top: 0; }
.feed .zeit { color: var(--gedaempft); font-size: 12.5px; white-space: nowrap; min-width: 92px; }

/* --- Diagramme ------------------------------------------------------------ */

.diagramm { position: relative; width: 100%; }
.diagramm svg { display: block; width: 100%; overflow: visible; }
.diagramm .gitter { stroke: var(--raster); stroke-width: 1; }
.diagramm .achse { stroke: var(--achse); stroke-width: 1; }
.diagramm .achsentext { fill: var(--gedaempft); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.diagramm .balken { fill: var(--reihe-1); transition: fill 0.12s; }
.diagramm .balken.laufend { fill: var(--reihe-1-zart); }
.diagramm .balken.wochenende { fill: var(--reihe-1); opacity: 0.55; }
.diagramm .treffer { fill: transparent; cursor: default; outline: none; }
.diagramm .treffer.klickbar { cursor: zoom-in; }
.diagramm g.aktiv .balken { fill: var(--reihe-1-dunkel); }
.diagramm g.aktiv .treffer { fill: var(--flaeche-hover); opacity: 0.6; }
.diagramm .wertetext { fill: var(--tinte-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.diagramm .planlinie { fill: none; stroke: var(--plan); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; }
.diagramm .planpunkt { fill: var(--plan); stroke: var(--flaeche); stroke-width: 2; }
.diagramm .ziellinie { stroke: var(--tinte); stroke-width: 1; }
.diagramm .zieltext { fill: var(--tinte); font-size: 11.5px; font-weight: 650; }
.diagramm .hochrechnung { fill: none; stroke: var(--reihe-1); stroke-width: 1.5; stroke-dasharray: 3 3; }

.tooltip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--rand-stark); border-radius: 10px; box-shadow: var(--schatten-hoch); padding: 10px 12px;
  font-size: 13px; min-width: 170px; opacity: 0; transition: opacity 0.1s; white-space: nowrap;
}
.tooltip.sichtbar { opacity: 1; }
.tooltip .tt-titel { font-size: 12px; color: var(--gedaempft); margin-bottom: 4px; }
.tooltip .tt-wert { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tooltip .tt-zeile { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; color: var(--tinte-2); }
.tooltip .tt-zeile b { color: var(--tinte); font-weight: 600; }
.tooltip .tt-schluessel { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; }
.tooltip .tt-hinweis { margin-top: 6px; font-size: 11.5px; color: var(--akzent); }

.brotkrumen { display: flex; align-items: center; gap: 6px; font-size: 13.5px; flex-wrap: wrap; }
.brotkrumen button { background: none; border: 0; padding: 0; color: var(--akzent); cursor: pointer; font-weight: 550; }
.brotkrumen span.trenner { color: var(--achse); }
.brotkrumen .jetzt { font-weight: 600; color: var(--tinte); }
.legende { display: flex; gap: 16px; font-size: 12.5px; color: var(--tinte-2); flex-wrap: wrap; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.legende i.linie { height: 0; border-top: 2px dashed var(--plan); border-radius: 0; width: 16px; }
.legende i.ziel { height: 0; border-top: 1px solid var(--tinte); border-radius: 0; width: 16px; }
.diagramm-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.funke { vertical-align: middle; }
.funke polyline { fill: none; stroke: var(--reihe-1); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.funke circle { fill: var(--reihe-1); }

/* --- Dialog, Meldung ------------------------------------------------------ */

.dialog-hinter {
  position: fixed; inset: 0; background: rgba(10, 11, 13, 0.45); display: grid; place-items: center;
  z-index: 50; padding: 16px; animation: einblenden 0.12s ease-out;
}
.dialog {
  background: var(--flaeche); border-radius: 16px; box-shadow: var(--schatten-hoch); width: min(560px, 100%);
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px;
}
.dialog.breit { width: min(720px, 100%); }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dialog-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dialog-fuss .links { margin-right: auto; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

.meldungen { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.meldung {
  background: var(--tinte); color: var(--flaeche); padding: 11px 16px; border-radius: 10px; font-size: 14px;
  box-shadow: var(--schatten-hoch); max-width: 380px; animation: einblenden 0.15s ease-out;
}
.meldung.fehler { background: var(--kritisch); color: #fff; }

.link-box { display: flex; gap: 8px; margin: 10px 0 6px; }
.link-box input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* --- Anmeldung ------------------------------------------------------------ */

.anmelde-seite { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.anmelde-karte { width: min(420px, 100%); padding: 32px; }
.anmelde-karte .marke { color: var(--tinte); padding: 0 0 24px; }
.anmelde-karte h1 { font-size: 22px; margin-bottom: 6px; }
.anmelde-karte p.unter { margin: 0 0 22px; color: var(--tinte-2); }
.anmelde-karte .knopf { width: 100%; height: 44px; }

.demo-box {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px;
  background: var(--akzent-zart); margin-bottom: 22px; font-size: 14px;
}
.demo-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.anmelde-karte .demo-knoepfe .knopf { height: 40px; font-size: 13.5px; }

.ablage {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 2px dashed var(--rand-stark); border-radius: 14px; padding: 34px 16px; cursor: pointer; background: var(--flaeche-2);
  transition: border-color 0.12s, background 0.12s;
}
.ablage:hover, .ablage.drueber, .ablage:focus { border-color: var(--akzent); background: var(--akzent-zart); outline: none; }
.ablage svg { width: 32px; height: 32px; color: var(--akzent); }
.ablage b { font-size: 16px; }
.ablage u { color: var(--akzent); }
.tipps { margin-top: 14px; font-size: 13.5px; color: var(--tinte-2); }
.zuordnung { margin-top: 4px; }
.zuordnung summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--akzent); padding: 4px 0; }
.zuordnung-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.zuordnung-raster label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 550; color: var(--tinte-2); }
.import-optionen { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.recht-links { display: flex; gap: 14px; margin-top: 14px; font-size: 12px; }
.recht-links a { color: inherit; opacity: 0.75; }
.leiste .recht-links a { color: #8b8f99; }
.rechtstext { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; }

.laden { padding: 60px 0; text-align: center; color: var(--gedaempft); }
.wird-geladen { opacity: 0.55; transition: opacity 0.15s; }

/* --- Schmale Bildschirme ------------------------------------------------- */

@media (max-width: 1180px) {
  .raster-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster-ziel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .leiste { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; }
  .marke { padding: 0; }
  .marke-text { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .nav a { padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
  .nav a.aktiv { box-shadow: inset 0 -2px 0 #3987e5; }
  .nav-trenner { display: none; }
  .leiste-fuss { margin: 0 0 0 auto; padding: 0; border: 0; }
  .leiste-fuss .wer, .leiste-fuss .firma { display: none; }
  .leiste-fuss button { margin: 0; }
  .leiste-fuss button span { display: none; }
  .leiste .recht-links { display: none; }
  .inhalt { padding: 20px 16px 48px; }
  .raster-2, .raster-3 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 22px; }
  .held-zahl { font-size: 44px; }
  .felder-2 { grid-template-columns: 1fr; }
  .tabelle-huelle { margin: 0 -16px; padding: 0 16px; }
  .karte { padding: 16px; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kachel { padding: 14px; }
  .kachel-wert { font-size: 21px; }
}
@media (max-width: 420px) {
  .kachel-wert { font-size: 19px; }
  .kachel-label, .kachel-zusatz { font-size: 12px; }
  .kopf-aktionen .knopf.primaer { width: 100%; }
  .kopf-aktionen { width: 100%; }
}

/* --- Erweiterungen: Marke, Menü-Zähler, Handy-Knopf ------------------------------------- */

.marke-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.nav a { position: relative; }
.nav-zahl {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e5484d; color: #fff;
  font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center;
}
.fab { display: none; }
@media (max-width: 900px) {
  .fab {
    display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
    width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--akzent); color: #fff; box-shadow: var(--schatten-hoch); cursor: pointer;
  }
  .fab svg { width: 26px; height: 26px; }
  .nav-zahl { margin-left: 4px; }
}
.kachel-von { font-size: 15px; font-weight: 500; color: var(--gedaempft); }
.demo-knoepfe { grid-template-columns: repeat(3, 1fr); }

/* --- Bausteine ------------------------------------------------------------------------- */

.knopf-reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.beleg-zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--flaeche-2); border: 1px dashed var(--rand-stark); }
.beleg-zeile .knopf { cursor: pointer; }
.monat-wahl { display: inline-flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 17px; }
.monat-wahl b { min-width: 150px; text-align: center; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; margin: 2px 2px 2px 0; border-radius: 99px;
  font-size: 12px; background: var(--flaeche-2); border: 1px solid var(--rand); white-space: nowrap;
}
.chip .punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--gut); }
.chip.teilweise .punkt { background: var(--warn); }
.chip.pausiert .punkt { background: var(--achse); }
.chip.ausgeschieden { color: var(--gedaempft); text-decoration: line-through; }
.chip.ausgeschieden .punkt { background: transparent; border: 1px solid var(--achse); }
.einsatz-liste { list-style: none; margin: 0 0 10px; padding: 0; }
.einsatz-liste li { display: grid; grid-template-columns: minmax(0, 1fr) 180px 32px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--raster); }
.einsatz-liste li:first-child { border-top: 0; }
.einsatz-liste .eingabe { height: 34px; }
.einsatz-neu { display: flex; gap: 8px; margin-bottom: 10px; }
.zwei-faktor svg { width: 14px; height: 14px; color: var(--gut-text); vertical-align: -2px; }
.qr { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--rand); margin: 6px 0 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.code-eingabe { font-size: 22px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; text-align: center; height: 50px; }
.vorschau-text { white-space: pre-wrap; font: 13.5px/1.55 var(--schrift); background: var(--flaeche-2); padding: 14px; border-radius: 10px; margin: 0; }
.inline-zahl { width: 56px !important; height: 30px !important; display: inline-block; text-align: center; padding: 0 6px; margin: 0 4px; }
.logo-wahl { display: flex; gap: 10px; align-items: center; }
.logo-wahl img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; border: 1px solid var(--rand); background: #fff; }
.einstellungen-form h2 { margin-bottom: 6px; }
.einstellungen-form .checkbox { margin: 8px 0; }

/* --- Pipeline ---------------------------------------------------------------------------- */

.pipeline-brett { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pipeline-spalte { background: var(--flaeche-2); border: 1px solid var(--rand); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.pipeline-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 2px 4px 4px; }
.pipeline-leer { padding: 10px 4px; }
.chance-karte {
  display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--schatten);
}
.chance-karte:hover { border-color: var(--akzent); }
.chance-betrag { font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .pipeline-brett { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pipeline-brett { grid-template-columns: minmax(0, 1fr); } .einsatz-liste li { grid-template-columns: minmax(0, 1fr) 130px 32px; } }
.kacheln.acht { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .kacheln.acht { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zelle-unter.ungeprueft { color: var(--warn-text); }
.zelle-unter.nachtraeglich { color: var(--warn-text); font-weight: 600; }
.pruef-leiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--warn-zart); font-size: 13.5px; }
.pruef-leiste svg { width: 18px; height: 18px; color: var(--warn-text); flex: none; }
.pruef-leiste .knopf { margin-left: auto; }
.push-arten { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; }
.produkt-chip { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--akzent-zart); color: var(--akzent); font-size: 11.5px; font-weight: 600; line-height: 18px; }
.regel-liste { display: flex; flex-direction: column; gap: 6px; }
.regel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rand); }
.regel-zeile:last-child { border-bottom: 0; }
.betrag-feld.klein-feld { width: 110px; flex: none; }
.hinweis.ok-hinweis { background: var(--gut-zart); }
.hinweis.ok-hinweis svg { color: var(--gut-text); }
.bestaetigung-karte { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
  border-left: 4px solid var(--akzent); }
.bestaetigung-karte h2 { margin: 0 0 4px; }
.bestaetigung-karte p { margin: 0 0 4px; }
.bestaetigung-text { flex: 1 1 320px; }
.abschluss-karte { margin-bottom: 16px; }
.schritte { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.schritt { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--rand); border-radius: 12px; }
.schritt p { margin: 4px 0 8px; font-size: 13.5px; color: var(--tinte-2, inherit); }
.schritt .knopf-reihe { margin: 0; }
.schritt-nr { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--akzent-zart); color: var(--akzent); }
.schritt.fertig { background: var(--gut-zart); border-color: transparent; }
.schritt.fertig .schritt-nr { background: var(--gut-text); color: #fff; }
.schritt-nr svg { width: 15px; height: 15px; }
.knopf.symbol.erledigt { color: var(--gut-text); }
@media (max-width: 900px) { .schritte { grid-template-columns: 1fr; } }

/* --- Rückgängig, Heute zu tun, Suche ------------------------------------- */
.meldung.mit-aktion { display: flex; align-items: center; gap: 14px; }
.meldung-knopf { background: none; border: 0; color: var(--meldung-link, #8fc1ff); font: inherit; font-weight: 650; cursor: pointer; padding: 0; white-space: nowrap; }
.meldung-knopf:hover { text-decoration: underline; }
.heute-karte { margin-bottom: 16px; }
.heute-liste { list-style: none; margin: 0; padding: 0; }
.heute-punkt { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rand); }
.heute-punkt:first-child { border-top: 0; padding-top: 2px; }
.heute-punkt-marke { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--akzent); }
.heute-punkt.akut .heute-punkt-marke { background: var(--kritisch); }
.heute-punkt.info .heute-punkt-marke { background: var(--achse); }
.heute-punkt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.heute-punkt-text span { font-size: 13px; color: var(--tinte-2); }
.heute-partner { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.heute-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--rand); border-radius: 999px; font-size: 13px; }
.heute-chip .knopf { padding: 2px 8px; }
.such-knopf { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 8px 10px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: #b4b8c2; font: inherit; font-size: 13.5px; cursor: pointer; }
.such-knopf:hover { color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.such-knopf svg { width: 16px; height: 16px; flex: none; }
.such-knopf kbd { margin-left: auto; font-family: inherit; font-size: 11px; color: #8b8f99; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 5px; padding: 0 5px; }
.suche-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 16, 0.42); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.suche-fenster { width: min(620px, 100%); background: var(--flaeche); border-radius: 14px; box-shadow: var(--schatten-hoch); overflow: hidden; border: 1px solid var(--rand); }
.suche-feld { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rand); }
.suche-feld svg { width: 18px; height: 18px; color: var(--tinte-2); flex: none; }
.suche-feld input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--tinte); }
.suche-feld kbd { font-family: inherit; font-size: 11px; color: var(--tinte-2); border: 1px solid var(--rand-stark); border-radius: 5px; padding: 0 5px; }
.suche-ergebnis { max-height: 55vh; overflow-y: auto; padding: 6px; }
.suche-gruppe { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tinte-2); padding: 10px 10px 4px; }
.suche-treffer { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; color: var(--tinte); text-decoration: none; }
.suche-treffer span { font-size: 12.5px; color: var(--tinte-2); }
.suche-treffer.aktiv { background: var(--akzent-zart); }
.suche-leer { padding: 18px 12px; color: var(--tinte-2); font-size: 14px; text-align: center; }
@media (max-width: 900px) {
  .such-knopf { width: auto; margin: 0; padding: 7px; border: 0; background: none; }
  .such-knopf span, .such-knopf kbd { display: none; }
}

/* --- Assistent (Leiste unten) --------------------------------------------- */
.inhalt { padding-bottom: 96px; }
.assistent { position: fixed; left: 232px; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; pointer-events: none; }
.assistent > * { pointer-events: auto; }
.assistent-leiste { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 22px calc(10px + env(safe-area-inset-bottom));
  border: 0; border-top: 1px solid var(--rand-stark); background: var(--flaeche); color: var(--tinte); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 -6px 24px rgba(16, 18, 22, 0.08); }
.assistent-leiste:hover { background: var(--seite); }
.assistent-symbol { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--akzent); color: #fff; }
.assistent-symbol svg { width: 17px; height: 17px; }
.assistent-titel { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.assistent-titel span { font-size: 12.5px; color: var(--tinte-2); white-space: nowrap; }
.assistent-balken { flex: none; width: 120px; height: 6px; border-radius: 3px; background: var(--raster); overflow: hidden; }
.assistent-balken i, .assistent-fortschritt i { display: block; height: 100%; background: var(--gut-text); border-radius: 3px; transition: width 0.3s; }
.assistent-naechstes { flex: 1; min-width: 0; font-size: 13.5px; color: var(--tinte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistent-naechstes b { color: var(--tinte); font-weight: 600; }
.assistent-zahl { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--akzent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.assistent-zahl.rot { background: var(--kritisch); }
.assistent-pfeil { flex: none; color: var(--tinte-2); font-size: 14px; }
.assistent-panel { max-height: min(68vh, 640px); overflow-y: auto; background: var(--flaeche); border-top: 1px solid var(--rand-stark);
  box-shadow: 0 -12px 40px rgba(16, 18, 22, 0.18); padding: 16px 22px 8px; border-radius: 16px 16px 0 0; }
.assistent-eingabe { display: flex; gap: 8px; margin-bottom: 10px; }
.assistent-eingabe [data-feld] { flex: 1; min-width: 0; }
.assistent-eingabe [data-faellig] { width: 150px; flex: none; }
.assistent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { border: 1px solid var(--rand-stark); background: var(--seite); color: var(--tinte); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--akzent); color: var(--akzent); }
.assistent-spalten { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.assistent-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.assistent-kopf h3, .assistent-spalten h4 { margin: 0; font-size: 15px; }
.assistent-spalten h4 { margin-bottom: 6px; }
.assistent-monat { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.knopf.symbol.unsichtbar { visibility: hidden; }
.assistent-fortschritt { height: 6px; border-radius: 3px; background: var(--raster); overflow: hidden; margin-bottom: 6px; }
.check-liste { list-style: none; margin: 0; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.check:last-child { border-bottom: 0; }
.check-kreis { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rand-stark); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.check-kreis:hover { border-color: var(--gut-text); }
.check-kreis svg { width: 13px; height: 13px; }
.check.fertig .check-kreis { background: var(--gut-text); border-color: var(--gut-text); }
.check-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.check-text b { font-weight: 600; font-size: 14px; }
.check-text span { font-size: 12.5px; color: var(--tinte-2); }
.check.fertig .check-text b { color: var(--tinte-2); }
.assistent-details { margin-top: 10px; font-size: 13.5px; }
.assistent-details summary { cursor: pointer; color: var(--tinte-2); }
.verlauf-liste { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.rang-liste { list-style: none; margin: 0 0 10px; padding: 0; }
.rang-liste li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rand); }
.rang-nr { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--akzent-zart); color: var(--akzent); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.meldungen { bottom: 84px; }
@media (max-width: 900px) {
  .assistent { left: 0; }
  .assistent-leiste { padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); gap: 10px; }
  .assistent-naechstes, .assistent-balken { display: none; }
  .assistent-titel { flex: 1; }
  .assistent-panel { max-height: 78vh; padding: 14px 14px 6px; }
  .assistent-spalten { grid-template-columns: minmax(0, 1fr); }
  .assistent-eingabe { flex-wrap: wrap; }
  .assistent-eingabe [data-feld] { flex: 1 1 100%; }
  .assistent-eingabe [data-faellig] { flex: 1; }
  .fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .inhalt { padding-bottom: 150px; }
  .meldungen { right: 12px; left: 12px; bottom: 76px; }
}
.assistent-reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--rand); margin-bottom: 8px; }
.assistent-reiter button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--tinte-2); padding: 6px 10px 9px;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.assistent-reiter button.an { color: var(--tinte); border-bottom-color: var(--akzent); }
.assistent-reiter button span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--akzent-zart); color: var(--akzent); font-size: 11.5px; display: inline-grid; place-items: center; }
.assistent .heute-punkt { padding: 9px 0; }
.assistent .heute-punkt-text b { font-size: 14px; }
.assistent-seite { padding-top: 18px; }
.assistent-seite .assistent-spalten { gap: 32px; }
.empfang.ok { display: inline-block; font-size: 12px; font-weight: 600; color: var(--gut-text); white-space: nowrap; }

/* --- Akquisiteure ------------------------------------------------------------------------- */

.raten-balken { height: 4px; max-width: 160px; margin-top: 6px; border-radius: 4px; background: var(--raster); overflow: hidden; }
.raten-balken i { display: block; height: 100%; border-radius: 4px; background: var(--reihe-1); }
.partner-zelle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.partner-zelle .chip { margin: 0; }
.chip-weg { border: 0; background: none; padding: 0 0 0 2px; margin: 0; font: inherit; line-height: 1; color: var(--gedaempft); cursor: pointer; }
.chip-weg:hover, .chip-weg:focus-visible { color: var(--kritisch); }
.reihe-liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rand); border-radius: 10px; }
.reihe-liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-top: 1px solid var(--raster); }
.reihe-liste li:first-child { border-top: 0; }
.reihe-liste .checkbox { margin: 0; }
.partner-zelle .knopf.symbol.klein, .reihe-liste .knopf.symbol.klein { width: 30px; height: 30px; padding: 0; }
.abschnitt-titel { font-size: 17px; margin: 0 0 12px; }
.wo-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; align-items: start; }
.wo-block { border: 1px solid var(--rand); border-radius: 12px; padding: 12px 14px 6px; min-width: 0; }
.wo-block.ohne { border-style: dashed; }
.wo-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--raster); }
.wo-kopf b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-kopf .mini { white-space: nowrap; }
.wo-liste { list-style: none; margin: 0; padding: 0; }
.wo-liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--raster); }
.wo-liste li:first-child { border-top: 0; }
.wo-wer { min-width: 0; }
.wo-name { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 550; color: var(--tinte); cursor: pointer; text-align: left; }
.wo-name:hover, .wo-name:focus-visible { color: var(--akzent); text-decoration: underline; }
.wo-zuteilen { border: 0; background: none; padding: 0; font: inherit; color: var(--akzent); font-weight: 600; cursor: pointer; }
.wo-zuteilen:hover, .wo-zuteilen:focus-visible { text-decoration: underline; }
.wo-leer { margin: 10px 0 8px; }
.bescheid-liste { list-style: none; margin: 0; padding: 0; }
.bescheid-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--raster); }
.bescheid-liste li:first-child { border-top: 0; padding-top: 0; }
.bescheid-liste .wo-wer { flex: 1 1 220px; }
.bescheid-stand { display: flex; flex-wrap: wrap; gap: 6px; }
.bescheid-block { border: 1px solid var(--rand); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.bescheid-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bescheid-kopf [data-stand] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bescheid-block textarea { width: 100%; resize: vertical; margin-bottom: 10px; }
.bescheid-block .knopf-reihe { margin: 0; }
.bescheid-kopf .wo-zuteilen { font-size: 12px; }
.frei-karte { display: flex; flex-direction: column; padding-bottom: 12px; }
.frei-text { margin: 10px 0 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.frei-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.schnell-liste { display: flex; flex-direction: column; gap: 8px; }
.schnell-knopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; padding: 10px 14px;
  border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); color: var(--tinte); font: inherit; text-align: left; cursor: pointer; }
.schnell-knopf:hover, .schnell-knopf:focus-visible { background: var(--flaeche-2); border-color: var(--rand-stark); }
.schnell-knopf.empfohlen { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.schnell-knopf:disabled { opacity: .6; cursor: default; }
.schnell-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.schnell-text b { font-size: 15px; font-weight: 600; }
