:root {
  --bg: #f5f5f7; --karte: #fff; --text: #1d1d1f; --leise: #6e6e73; --linie: #e2e2e7;
  --akzent: #0a5bd8; --akzent-hell: #e6efff; --gut: #1a7f37; --gut-hell: #e3f5e8;
  --warn: #9a6700; --warn-hell: #fff4d6; --schlecht: #c62828; --schlecht-hell: #fde8e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e; --karte: #2a2a2d; --text: #f2f2f4; --leise: #a1a1a8; --linie: #3d3d42;
    --akzent: #6ea8ff; --akzent-hell: #1e2f4d; --gut: #5fd07d; --gut-hell: #1d3a26;
    --warn: #f0c04a; --warn-hell: #3d3315; --schlecht: #ff8a80; --schlecht-hell: #40201f;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100vh; }
.seite { background: #16181d; color: #d7dae0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 16px 10px; }
.marke { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 0 6px; color: #fff; }
.marke small { font-weight: 400; color: #8b90a0; }
.logo { background: #fff; color: #000; border-radius: 6px; padding: 2px 7px; font-size: 12px; letter-spacing: .08em; }
button { font: inherit; color: inherit; cursor: pointer; }
nav.haupt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
nav.haupt button { background: none; border: 0; padding: 8px 10px; border-radius: 8px; color: #b4b9c6; text-align: left; display: flex; gap: 10px; align-items: center; }
nav.haupt button i { font-style: normal; width: 16px; text-align: center; opacity: .8; }
nav.haupt button em { font-style: normal; font-size: 11px; margin-left: auto; opacity: .7; }
nav.haupt button:hover:not(:disabled) { background: #23262e; color: #fff; }
nav.haupt button.aktiv { background: #2c5fd6; color: #fff; font-weight: 600; }
nav.haupt button:disabled { opacity: .45; cursor: not-allowed; }
nav.haupt .nav-gruppe { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #767c8a; padding: 12px 10px 3px; }
nav.haupt .nav-gruppe:first-child { padding-top: 0; }
.seite #backup { background: #23262e; border-color: #343845; color: #d7dae0; }
main { max-width: 1320px; width: 100%; margin: 0 auto; padding: 20px 24px 60px; }
h1 { font-size: 20px; margin: 4px 0 4px; }
h2 { font-size: 15px; margin: 22px 0 8px; }
.lead { color: var(--leise); margin: 0 0 14px; max-width: 900px; }
.unternav { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.unternav button { background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; padding: 5px 12px; }
.unternav button.aktiv { border-color: var(--akzent); color: var(--akzent); background: var(--akzent-hell); font-weight: 600; }
.zahl { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--linie); color: var(--leise); font-size: 12px; text-align: center; }
.aktiv .zahl { background: var(--akzent); color: #fff; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; }
.kachel b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.kachel span { color: var(--leise); font-size: 12.5px; }
.kachel.warn { border-color: var(--warn); }
.hinweis { background: var(--warn-hell); color: var(--warn); border-radius: 10px; padding: 9px 12px; margin: 10px 0; }
.hinweis.gut { background: var(--gut-hell); color: var(--gut); }
.werkzeug { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
input[type=search], input[type=text], select { font: inherit; color: inherit; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 6px 9px; }
input[type=search] { min-width: 260px; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.zaehler { color: var(--leise); margin-left: auto; }
table { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: 12px; color: var(--leise); font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.zahl-spalte { text-align: right; font-variant-numeric: tabular-nums; }
.bsp { color: var(--leise); font-size: 12.5px; }
.bsp div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
button.klein, button.b { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 4px 10px; }
button.b:hover, button.klein:hover { border-color: var(--akzent); }
button.b.ja { background: var(--gut-hell); color: var(--gut); border-color: var(--gut); font-weight: 600; }
button.b.nein { background: var(--schlecht-hell); color: var(--schlecht); border-color: var(--schlecht); font-weight: 600; }
button.b.primaer { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.pille { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 12px; background: var(--linie); color: var(--leise); }
.pille.warn { background: var(--warn-hell); color: var(--warn); }
.pille.gut { background: var(--gut-hell); color: var(--gut); }
.pille.schlecht { background: var(--schlecht-hell); color: var(--schlecht); }
.karten { display: grid; gap: 10px; }
.gruppe { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; }
.gruppe h3 { margin: 0 0 4px; font-size: 15px; }
.gruppe dl { display: grid; grid-template-columns: 110px 1fr; gap: 2px 10px; margin: 6px 0; font-size: 13px; }
.gruppe dt { color: var(--leise); }
.gruppe dd { margin: 0; }
.entscheidung { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.entscheidung .frage { font-size: 12.5px; color: var(--leise); }
.mehr { margin: 14px auto; display: block; }
.leer { color: var(--leise); padding: 24px; text-align: center; background: var(--karte); border: 1px dashed var(--linie); border-radius: 12px; }
.monate { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding: 8px 10px; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; }
.monate div { flex: 1; background: var(--akzent); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.monate div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
@media (max-width: 800px) { .gruppe { grid-template-columns: 1fr; } body { grid-template-columns: 1fr; } .seite { position: static; height: auto; } nav.haupt { flex-direction: row; flex-wrap: wrap; } nav.haupt .nav-gruppe { display: none; } }

.aktionen { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 150px; }
.stapel { display: flex; flex-direction: column; gap: 4px; }
a { color: var(--akzent); }
a.knopf { display: inline-block; text-decoration: none; color: inherit; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 5px 10px; }
a.knopf:hover { border-color: var(--akzent); }
td { max-width: 380px; overflow-wrap: anywhere; }
td.bsp:nth-child(3) { white-space: nowrap; }

.nowrap { white-space: nowrap; }
tr.klick { cursor: pointer; }
tr.klick:hover td { background: var(--akzent-hell); }
tr.storniert td { opacity: .55; text-decoration: line-through; }
tr.storniert td:last-child, tr.storniert td .pille { text-decoration: none; }
/* Aufgabe 21: Status-Farben in der Fahrtenliste, ganze Zeile leicht eingefärbt */
.fahrten tbody tr.status-anfrage td { background: #f4f2fd; }
.fahrten tbody tr.status-bestaetigt td { background: var(--akzent-hell); }
.fahrten tbody tr.status-durchgefuehrt td { background: var(--gut-hell); }
.fahrten tbody tr.status-storniert td { background: var(--schlecht-hell); }
@media (prefers-color-scheme: dark) { .fahrten tbody tr.status-anfrage td { background: #241f3d; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.filter .feld { flex-direction: column; gap: 1px; }
.filter .feld span { font-size: 11px; }
.haken { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.haken-liste { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.haken.warn { color: var(--warn); font-weight: 600; }
.feld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feld > span { font-size: 12px; color: var(--leise); }
.feld input, .feld select, .feld textarea { width: 100%; }
textarea { font: inherit; color: inherit; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 6px 9px; resize: vertical; }
input[type=date], input[type=time], input[type=number] { font: inherit; color: inherit; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 5px 8px; }
.raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.raster .breit { grid-column: span 2; }
@media (max-width: 800px) { .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0; }
.liste { margin: 4px 0 8px; padding-left: 18px; }
dialog.dlg { width: min(900px, 94vw); max-height: 90vh; border: 1px solid var(--linie); border-radius: 14px; background: var(--bg); color: var(--text); padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.dlg::backdrop { background: rgba(0,0,0,.45); }
.dlg-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--linie); background: var(--karte); position: sticky; top: 0; z-index: 2; }
.dlg-kopf h2 { margin: 0; font-size: 16px; }
.dlg-inhalt { padding: 16px 18px; overflow: auto; max-height: calc(90vh - 130px); }
.dlg-fuss { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--linie); background: var(--karte); position: sticky; bottom: 0; }
.kw { position: relative; }
.kw input { width: 100%; }
.kw-liste { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-height: 260px; overflow: auto; }
.kw-eintrag { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 10px; }
.kw-eintrag:hover { background: var(--akzent-hell); }
.balken { height: 10px; background: var(--akzent); border-radius: 3px; min-width: 2px; }
.filter > input[type=search] { min-width: 220px; }

dialog.dlg.breit { width: min(1180px, 96vw); }
table.editor td { padding: 4px 6px; }
table.editor input[type=text], table.editor input[type=date], table.editor textarea, table.editor select { width: 100%; min-width: 70px; padding: 4px 6px; }
table.editor td:nth-last-child(3) input, table.editor td:nth-last-child(2) input { min-width: 60px; text-align: right; }
.summen { min-width: 300px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); padding: 8px 12px; }
.summen div { display: flex; justify-content: space-between; gap: 30px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.summen .brutto { border-top: 1px solid var(--text); margin-top: 4px; padding-top: 4px; font-size: 15px; }
tr.tagkopf td { background: var(--akzent-hell); }

/* Statusfarben wie in LimouWEB */
.pille.st-anfrage { background: #e8e4fb; color: #5b45b8; }
.pille.st-bestaetigt { background: var(--akzent-hell); color: var(--akzent); }
.pille.st-durchgefuehrt { background: var(--gut-hell); color: var(--gut); }
.pille.st-storniert { background: var(--schlecht-hell); color: var(--schlecht); }
@media (prefers-color-scheme: dark) { .pille.st-anfrage { background: #2e2850; color: #b9a8ff; } }
/* Dashboard */
.zweispaltig { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .zweispaltig { grid-template-columns: 1fr; } }
.tag-block { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.tag-block > header { display: flex; justify-content: space-between; padding: 7px 12px; background: var(--akzent-hell); font-weight: 600; }
.tag-block.heute > header { background: var(--akzent); color: #fff; }
.tag-zeile { display: grid; grid-template-columns: 48px minmax(0, 1fr) 150px 70px; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--linie); cursor: pointer; align-items: baseline; }
.tag-zeile:hover { background: var(--akzent-hell); }
.tag-zeile .bsp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-leer { padding: 8px 12px; color: var(--leise); }
.saeulen { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 12px; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; }
.saeule { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.saeule .s-gruppe { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 100%; justify-content: center; }
.saeule .s-balken { flex: 1; max-width: 22px; background: var(--akzent); border-radius: 4px 4px 0 0; min-height: 2px; }
.saeule .s-balken.vorjahr { background: var(--linie); }
.saeule b { font-size: 12px; font-variant-numeric: tabular-nums; }
.saeule small { font-size: 10.5px; color: var(--leise); }
.saeule span { font-size: 11.5px; color: var(--leise); }
.umsatz-legende { display: flex; gap: 16px; font-size: 12px; color: var(--leise); margin: 6px 0 0; }
.umsatz-legende b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.umsatz-legende b.gestrichelt { height: 0; border-top: 2px dashed var(--leise); border-radius: 0; width: 14px; }
/* Umsatz-Liniendiagramm im Dashboard (23.09.) */
.umsatz-diagramm { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; }
.umsatz-flaeche { width: 100%; height: 255px; }
.umsatz-flaeche svg { display: block; }
.umsatz-flaeche .u-gitter { stroke: var(--linie); stroke-width: 1; }
.umsatz-flaeche .u-achse { fill: var(--leise); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.umsatz-flaeche .u-wert { fill: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--karte); stroke-width: 4px; stroke-linejoin: round; }
.umsatz-flaeche .u-linie { fill: none; stroke: var(--akzent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.umsatz-flaeche .u-linie.vorjahr { stroke: var(--leise); stroke-width: 2; stroke-dasharray: 5 4; }
.umsatz-flaeche .u-punkt { fill: var(--akzent); stroke: var(--karte); stroke-width: 2; }
.umsatz-flaeche .u-punkt.vorjahr { fill: var(--leise); }
.umsatz-flaeche .u-kreuz { stroke: var(--leise); stroke-width: 1; }
.umsatz-tipp { position: absolute; top: 8px; width: 240px; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 12.5px; pointer-events: none; }
a.kachel { text-decoration: none; color: inherit; cursor: pointer; display: block; }
a.kachel:hover { border-color: var(--akzent); }
/* Auftragsformular */
.abschnitt { border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); padding: 10px 14px 14px; margin-bottom: 12px; }
.abschnitt > h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); }
.raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wagenzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; margin-bottom: 6px; align-items: center; }
.wagenzeile select, .wagenzeile input { width: 100%; }
.pille.alt { background: transparent; color: var(--leise); border: 1px dashed var(--linie); }
.scroll { overflow-x: auto; }
table.fahrten { min-width: 1000px; }
table.fahrten td { overflow-wrap: normal; word-break: normal; }
table.fahrten td:nth-child(6), table.fahrten td:nth-child(7) { min-width: 110px; }
table.fahrten td:nth-child(8), table.fahrten td:nth-child(10) { white-space: nowrap; }
table.preisliste { min-width: 880px; }
table.preisliste td { overflow-wrap: normal; word-break: normal; }
table.preisliste td:nth-child(1), table.preisliste td:nth-child(2), table.preisliste td:nth-child(3),
table.preisliste td:nth-child(4), table.preisliste td:nth-child(5), table.preisliste td:nth-child(7) { white-space: nowrap; }
.tagesplan { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.plan-spalte { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.plan-spalte > header { padding: 8px 12px; background: var(--akzent-hell); }
.plan-spalte > header small { display: block; color: var(--leise); }
.plan-spalte.ohne > header { background: var(--warn-hell); }
.plan-spalte.heute > header { background: var(--akzent); color: #fff; }
.plan-spalte.heute > header small { color: #fff; }
.plan-fahrt { padding: 6px 12px; border-top: 1px solid var(--linie); cursor: pointer; }
.plan-fahrt:hover { background: var(--akzent-hell); }
[hidden] { display: none !important; }
.ampel { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--linie); margin-right: 6px; }
.ampel.gruen { background: var(--gut); } .ampel.gelb { background: var(--warn); } .ampel.rot { background: var(--schlecht); }

/* Dubletten in der Kundenkartei */
.gruppe-dublette { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.gruppe-dublette .gd-kopf { margin-bottom: 6px; }
.gruppe-dublette table { margin-bottom: 4px; }

/* Reiter Rechnungen: Liste und PDF-Vorschau nebeneinander */
.zweispalten { display: flex; gap: 16px; align-items: flex-start; }
.spalte-liste { flex: 1; min-width: 0; }
.spalte-vorschau { width: 420px; flex-shrink: 0; position: sticky; top: 16px; }
.vorschau-inhalt { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 10px; min-height: 200px; }
.vorschau-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.vorschau-pdf { width: 100%; height: 75vh; border: 1px solid var(--linie); border-radius: 8px; }
tr.klick.aktiv td { background: var(--akzent-hell); }
@media (max-width: 1000px) { .zweispalten { flex-direction: column; } .spalte-vorschau { width: 100%; position: static; } .vorschau-pdf { height: 60vh; } }

/* Upload-Feld (Kalenderarchiv, SumUp-Bericht, Rechnungs-PDF) */
.upload-feld { margin-bottom: 20px; }
.upload-zone { border: 2px dashed var(--linie); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer; background: var(--karte); }
.upload-zone.ueber { border-color: var(--akzent); background: var(--akzent-hell); }
.upload-text span { display: block; color: var(--leise); font-size: 13px; margin-top: 2px; }
.upload-liste { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.upload-eintrag { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.upload-eintrag.upload-fehler { border-color: var(--schlecht); color: var(--schlecht); }

/* Schnellzuweisung: Klick auf die Pille „kein Fahrer“ (Aufgabe 8) */
.schnellwahl { position: absolute; z-index: 30; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.schnellwahl select { width: 100%; }
.pille.klick { cursor: pointer; border: 0; }

/* Fahrtenfenster zweispaltig auf breitem Bildschirm (Aufgabe 9) */
.formular-zweispaltig { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 760px) { .formular-zweispaltig { grid-template-columns: 1fr; } }
.formular-zweispaltig > .spalte { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Sprungleiste Fahrtenliste (Aufgabe 7) */
.sprungleiste { margin-bottom: 8px; }
.abr-gruppe > summary { cursor: pointer; padding: 2px 0; }
.abr-gruppe[open] > summary { margin-bottom: 8px; }
.abr-gruppe table { margin-top: 4px; }
.spalte-liste td.zahl-spalte, .spalte-liste td .pille { white-space: nowrap; }
.seite { overflow-y: auto; }
.zusatz-zeile { margin: 4px 0; align-items: center; flex-wrap: nowrap; }
.zusatz-zeile input[type=text]:not([size]) { flex: 1; min-width: 0; }

/* Sortieren per Klick auf den Spaltenkopf (sortieren.js) */
thead th { cursor: pointer; user-select: none; }
thead th:empty { cursor: default; }
thead th[data-sort="auf"]::after { content: " ▲"; font-size: 10px; }
thead th[data-sort="ab"]::after { content: " ▼"; font-size: 10px; }

/* Fahrerabrechnung Berechnen: Zeilen ohne Preis/Zahlart */
tr.markiert td { background: var(--warn-hell); }

/* ---------- Anmeldung und Portalseiten (Block 2) ---------- */
body.einzel { display: block; }
input[type=password], input[type=email], input[type=tel] { font: inherit; color: inherit; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; width: 100%; }
.anmelde-karte { max-width: 380px; margin: 12vh auto 40px; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 26px 24px; }
.anmelde-karte .marke { color: var(--text); padding: 0 0 14px; }
.anmelde-karte .logo { background: #16181d; color: #fff; }
.anmelde-karte form { display: flex; flex-direction: column; gap: 12px; }
.anmelde-karte input[type=text] { width: 100%; padding: 8px 10px; }
.anmelde-karte button.b.primaer { padding: 9px; font-weight: 600; }
.anmelde-karte input[type=email], .anmelde-karte input[type=tel], .anmelde-karte input[type=password], .anmelde-karte select { width: 100%; padding: 8px 10px; }
.anmelde-karte .zweier { display: flex; gap: 8px; }
.anmelde-karte .zweier > :first-child { flex: 0 0 110px; }
.anmelde-karte .haken.klein { white-space: normal; font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.anmelde-karte .neu-hier { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linie); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
@media (max-width: 480px) { .anmelde-karte { margin: 16px auto; width: calc(100% - 32px); } }
.anmelde-karte .leise-link { background: none; border: 0; color: var(--akzent); padding: 0; text-align: left; font-size: 13px; }
.seite .wer { font-size: 12px; color: #8b90a0; padding: 0 6px; display: flex; flex-direction: column; gap: 6px; }
.seite .wer button { background: #23262e; border: 1px solid #343845; color: #d7dae0; border-radius: 8px; padding: 4px 10px; }
.portal { max-width: 720px; margin: 0 auto; padding: 16px 16px 60px; }
.portal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.portal-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.portal-karte .zeit { font-weight: 650; font-size: 16px; }
.portal-karte .strecke { margin: 4px 0; }
.portal-karte .klein-grau { color: var(--leise); font-size: 13px; }
.portal-karte .kassieren { font-weight: 650; color: var(--gut); }
.link-box { word-break: break-all; background: var(--bg); border: 1px dashed var(--linie); border-radius: 8px; padding: 8px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
/* Assistent (26.09.2026) */
.assistent-verlauf { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.assistent-frage { align-self: flex-end; max-width: 75%; background: var(--akzent); color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 12px; white-space: pre-wrap; }
.assistent-antwort { align-self: flex-start; max-width: 100%; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px 14px 14px 4px; padding: 8px 14px; }
.assistent-antwort table { margin: 8px 0; }
/* Rechtstexte (26.09.2026) */
.rechtstext { line-height: 1.6; }
.rechtstext h1 { font-size: 22px; margin-top: 12px; }
.rechtstext h2 { font-size: 16px; margin-top: 22px; }
.rechtstext ol, .rechtstext ul { padding-left: 22px; }
.rechtstext li { margin: 4px 0; }
