/* Backoffice und Kundenportal der Webwerkstatt Stocker.
   Design: Claude Design (docs/design/Admin*.dc.html, Portal*.dc.html, Design-System.dc.html).
   Farben, Schriften, Abstände und Radien kommen aus tokens.css (unverändert aus docs/design/).
   Keine externen Quellen. Hell und dunkel über die Tokens (prefers-color-scheme oder data-theme).
   Abweichung zum Entwurf: Rahmen von Eingabefeldern in --field statt --line (Kontrast 3:1, WCAG 1.4.11). */

/* ── Grundlagen ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.portal, body.anmeldung { font-size: 16px; line-height: 1.55; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: var(--track-h3); line-height: 1.1; margin: 0; }
h1 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.04em; line-height: 1; }
h2 { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
p { margin: 0 0 .75em; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }
.sr, .sr-fokus:not(:focus) { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
[hidden] { display: none !important; }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.sprung:focus { top: 12px; color: var(--bg); }
.klein { font-size: 13.5px; color: var(--ink-2); }
.gedaempft { color: var(--ink-2); }
.umbruch { word-break: break-all; }
.rechts { text-align: right; }
.nowrap { white-space: nowrap; }
.kicker { margin: 0; font: 600 12px var(--font-mono); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--ink-2); }
.kicker.akzent { color: var(--accent-ink); }

/* ── Logo (Wortmarke) ───────────────────────────────────────────────────── */
.logo { display: inline-grid; font-family: var(--font-display); line-height: .86; letter-spacing: -0.045em; color: var(--ink); }
.logo.hell { color: #F3F2EE; }
.logo-oben { font-weight: 400; font-size: 13.8px; padding-left: .04em; }
.logo-unten { display: flex; align-items: flex-end; gap: .06em; font-weight: 800; font-size: 26px; letter-spacing: -0.055em; }
.logo-block { display: block; width: .3em; height: .66em; background: var(--accent); border-radius: .04em; margin-bottom: .08em; }
.logo-link { text-decoration: none; color: inherit; border-radius: 8px; flex: none; }

/* ── Knöpfe ─────────────────────────────────────────────────────────────── */
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font: 700 15px var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .knopf:hover { background: var(--accent); border-color: var(--accent); color: #0E0E10; }
button.zweit, .knopf.zweit { background: transparent; color: var(--ink); border-color: var(--ink); font-weight: 600; }
button.zweit:hover, .knopf.zweit:hover { background: var(--sun); border-color: var(--ink); color: #0E0E10; }
button.akzent, .knopf.akzent { background: var(--accent); border-color: var(--accent); color: #0E0E10; }
button.akzent:hover, .knopf.akzent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
button.gut, .knopf.gut { background: var(--ok); border-color: var(--ok); color: var(--surface); }
button.gut:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
button.gefahr, .knopf.gefahr { background: transparent; color: var(--err); border: 1px solid var(--line); font-weight: 600; }
button.gefahr:hover, .knopf.gefahr:hover { border-color: var(--err); background: var(--err-bg); color: var(--err); }
button.fehlerknopf { background: var(--err); border-color: var(--err); color: var(--surface); }
button.klein, .knopf.klein { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
button.link, .linkknopf { min-height: 0; padding: 0; text-align: left; display: inline; border: 0; background: none; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: normal; }
button.link:hover { background: none; color: var(--ink); }
.voll { width: 100%; }
button:disabled, button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
button[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.symbolknopf { display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 16px; text-decoration: none; flex: none; }
.symbolknopf:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink); }
.symbolknopf.dunkel { background: transparent; border-color: #3A3A40; color: #F3F2EE; width: 36px; height: 36px; min-height: 36px; }
.symbolknopf.dunkel:hover { background: #1F1F23; border-color: #F3F2EE; color: #F3F2EE; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.knoepfe.zwischen { justify-content: space-between; }
form.inline-knopf { display: inline; margin: 0; }

/* ── Formulare ──────────────────────────────────────────────────────────── */
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
label.option { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 8px 0; }
input, select, textarea { font: 400 16px var(--font-text); width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--field); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--ok); flex: none; }
input[type=file] { padding: 10px; min-height: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
::placeholder { color: var(--ink-2); opacity: .8; }
fieldset { border: 0; margin: 14px 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 14px; }
.felder.breit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.felder > label, .felder > div > label { margin-top: 14px; }
.hilfe { display: block; font-size: 13.5px; color: var(--ink-2); margin: -2px 0 6px; font-weight: 400; }
.pflicht { color: var(--accent-ink); font-weight: 700; }
form.zeile { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
form.zeile > label, form.zeile > div { margin: 0; flex: 1 1 160px; }
form.zeile > label input, form.zeile > label select { margin-top: 6px; }
form.zeile > label.option { flex: 0 0 auto; align-self: center; margin: 0; }
form.zeile > button { flex: none; }
.js .js-ausblenden { display: none; }
.geheim code { font-size: 20px; letter-spacing: .06em; font-weight: 600; }
/* Auswahl als Pillen (Fragebogen): echte Radio/Checkbox, nur anders gezeigt */
.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pille { position: relative; margin: 0; }
.pille input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pille span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: var(--r-pill); background: var(--surface); font-weight: 600; font-size: 15px; }
.pille input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pille input:checked + span::before { content: "✓"; }
.pille input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pille input:disabled + span { opacity: .6; }
.pille:hover span { border-color: var(--ink); }

/* ── Meldungen ──────────────────────────────────────────────────────────── */
.meldung { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; margin: 0 0 16px; font-weight: 600; border: 1.5px solid transparent; }
.meldung-symbol { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.meldung.ok { background: var(--ok-bg); color: var(--ok); }
.meldung.ok .meldung-symbol { background: var(--ok); color: var(--surface); }
.meldung.fehler { background: var(--err-bg); color: var(--ink); border-color: var(--err); }
.meldung.fehler .meldung-symbol { background: var(--err); color: var(--surface); }
.meldung.hinweis { background: var(--warn-bg); color: var(--ink); }
.meldung.hinweis .meldung-symbol { background: var(--accent); color: #0E0E10; }
.alarm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px 14px 18px; border-radius: 14px; background: var(--err-bg); border: 1.5px solid var(--err); }
.alarm-symbol { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; background: var(--err); color: var(--surface); font-weight: 800; }
.alarm-text { flex: 1; min-width: 220px; display: grid; line-height: 1.35; }
.alarm-text span { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.alarm form { margin: 0; }
.alarm.hinweis { background: var(--warn-bg); border-color: var(--line); }
.alarm.hinweis .alarm-symbol { background: var(--accent); color: #0E0E10; }

/* ── Etiketten, Zähler, Chips, Reiter ───────────────────────────────────── */
.etikett { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1.4 var(--font-mono); letter-spacing: .04em; padding: 3px 9px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink); white-space: nowrap; vertical-align: middle; }
.etikett.ok { background: var(--ok-bg); color: var(--ok); }
.etikett.ok::before { content: "✓"; }
.etikett.fehler { background: var(--err-bg); color: var(--err); }
.etikett.fehler::before { content: "⚠"; }
.etikett.akzent { background: var(--accent); color: #0E0E10; }
.etikett.info { background: var(--lake-bg); color: var(--lake); }
.etikett.warn { background: var(--warn-bg); color: var(--accent-ink); }
.etikett.dunkel { background: var(--ink); color: var(--bg); }
.etikett.sonne { background: var(--sun); color: #0E0E10; }
.etikett.grau { background: var(--bg-2); color: var(--ink-2); }
.etikett.eckig { border-radius: 6px; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; }
.zaehler { font: 700 12px var(--font-mono); padding: 3px 9px; border-radius: 99px; background: var(--accent); color: #0E0E10; }
.zaehler.info { background: var(--lake-bg); color: var(--lake); }
.zaehler.grau { background: var(--bg-2); color: var(--ink); }
.chips ul, .reiter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips { margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-zahl { font: 600 11.5px var(--font-mono); opacity: .75; }
.reiter { margin: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.reiter ul { flex-wrap: nowrap; gap: 2px; }
.reiter a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
.reiter a:hover { color: var(--accent-ink); }
.reiter a[aria-current] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.reiter-zahl { font: 700 11px var(--font-mono); padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #0E0E10; }

/* ── Karten, Panels, Kennzahlen ─────────────────────────────────────────── */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin: 0 0 16px; min-width: 0; }
.karte > h2:first-child, .karte > h3:first-child { margin-bottom: 8px; }
.karte.schmal { max-width: 640px; }
.karte.hervor { border: 1.5px solid var(--ink); }
.karte.dunkel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.karte.dunkel .klein, .karte.dunkel label, .karte.dunkel .kicker { color: var(--bg); }
.karte.dunkel select, .karte.dunkel input { background: color-mix(in oklab, var(--bg) 14%, var(--ink)); color: var(--bg); border-color: var(--field); }
.karte.dunkel select { background-image: linear-gradient(45deg, transparent 50%, var(--bg) 50%), linear-gradient(135deg, var(--bg) 50%, transparent 50%); }
.karte.dunkel button { background: var(--accent); border-color: var(--accent); color: #0E0E10; }
.karte.grau { background: var(--bg-2); border-color: var(--bg-2); }
.karte.gestrichelt { border: 2px dashed var(--field); background: transparent; text-align: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0 0 16px; min-width: 0; }
.panel-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-kopf h2 { font-size: 19px; }
.panel > .tabelle { border: 0; border-radius: 0; margin: 0; }
.panel > .leer { border: 0; margin: 0; border-radius: 0; }
.panel-innen { padding: 16px 18px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.raster > * { margin-bottom: 0; }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.zwei-eins { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.liste-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stapel { display: grid; gap: 16px; }
.stapel > * { margin: 0; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 0 0 20px; }
.kennzahl { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; }
a.kennzahl:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.kennzahl-titel { font: 600 11.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.kennzahl-wert { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.kennzahl-wert.mittel { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.kennzahl-unter { font-size: 13px; color: var(--ink-2); }
.kennzahl.akzent { background: var(--accent); border-color: var(--accent); color: #0E0E10; }
.kennzahl.akzent .kennzahl-titel, .kennzahl.akzent .kennzahl-unter { color: #0E0E10; }
.kennzahl.dunkel { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.kennzahl.dunkel .kennzahl-titel, .kennzahl.dunkel .kennzahl-unter { color: var(--bg); opacity: .85; }
.kennzahl .etikett { justify-self: start; }
.etikett.fliess { font-family: var(--font-text); font-size: 12.5px; font-weight: 700; letter-spacing: 0; white-space: normal; }
.kennzahl-wert .kennzahl-unter { font-family: var(--font-text); font-weight: 400; font-size: 15px; letter-spacing: 0; }
.balken { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.kennzahl.dunkel .balken { background: #2E2E33; }
.balken > span { display: block; height: 100%; border-radius: 8px; background: var(--ok); }
.kennzahl.dunkel .balken > span { background: var(--sun); }
.balken.warn > span { background: var(--accent); }
.balken.fehler > span { background: var(--err); }
.mini-balken { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.mini-balken span { flex: 1; border-radius: 2px; background: var(--line); min-height: 2px; }
.mini-balken span.jetzt { background: var(--accent); }
/* Breiten in 5-%-Schritten (keine Inline-Styles erlaubt) */
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.h0 { height: 2px; } .h5 { height: 5%; } .h10 { height: 10%; } .h15 { height: 15%; } .h20 { height: 20%; } .h25 { height: 25%; } .h30 { height: 30%; } .h35 { height: 35%; } .h40 { height: 40%; } .h45 { height: 45%; } .h50 { height: 50%; } .h55 { height: 55%; } .h60 { height: 60%; } .h65 { height: 65%; } .h70 { height: 70%; } .h75 { height: 75%; } .h80 { height: 80%; } .h85 { height: 85%; } .h90 { height: 90%; } .h95 { height: 95%; } .h100 { height: 100%; }

/* ── Listen in Panels ───────────────────────────────────────────────────── */
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.zeilen > li:last-child { border-bottom: 0; }
.zeilen > li.ohne-marke { grid-template-columns: minmax(0, 1fr) auto; }
.zeilen a.zeile-link { color: var(--ink); text-decoration: none; }
.zeilen a.zeile-link:hover .zeile-titel { text-decoration: underline; }
.zeile-text { display: grid; line-height: 1.3; min-width: 0; }
.zeile-titel { font-weight: 600; overflow-wrap: anywhere; }
.zeile-unter { font-size: 13px; color: var(--ink-2); }
.zeile-zeit { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; text-align: right; }
.zeile-zeit.fehler { color: var(--err); font-weight: 700; }
.zeilen form { margin: 0; }
.termine { list-style: none; margin: 0; padding: 6px 0; }
.termine li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 18px; }
.termin-datum { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.termine .etikett { justify-self: start; margin-bottom: 3px; }
.datumsblock { display: grid; place-items: center; width: 72px; height: 54px; border-radius: 12px; background: var(--bg-2); line-height: 1; flex: none; }
.datumsblock strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.datumsblock span { font: 700 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.datumsblock.akzent { background: var(--accent); color: #0E0E10; }
.datumsblock.info { background: var(--lake-bg); color: var(--lake); }
.datumsblock.sonne { background: var(--sun); color: #0E0E10; }
.datumsblock.dunkel { background: var(--ink); color: var(--bg); }
dl.daten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0 0 12px; }
dl.daten dt { color: var(--ink-2); font-size: 14px; }
dl.daten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
dl.antworten { margin: 0; }
dl.antworten > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.antworten dt { color: var(--ink-2); font-size: 14px; }
dl.antworten dd { margin: 0; font-weight: 600; white-space: pre-wrap; }
.zitat { margin: 0 0 16px; padding: 16px; border-radius: 14px; background: var(--bg); font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.text { white-space: pre-wrap; font-family: var(--font-text); margin: 0; padding: 16px; border-radius: 14px; background: var(--bg); overflow-wrap: anywhere; }
.verlauf { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.verlauf li { position: relative; font-size: 14px; }
.verlauf li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 10px; background: var(--lilac); }
.verlauf time { font: 500 12.5px var(--font-mono); color: var(--ink-2); margin-right: 8px; }

/* ── Tabellen (auf dem Handy Karten) ────────────────────────────────────── */
.tabelle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0 0 16px; }
.tabelle table { width: 100%; border-collapse: collapse; }
.tabelle th { padding: 14px 18px 10px; text-align: left; font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.tabelle td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; hyphens: auto; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: color-mix(in oklab, var(--bg) 60%, transparent); }
.tabelle tr.aktiv td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.tabelle .rechts { text-align: right; }
.tabelle td .aktionen { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tabelle td .aktionen form { margin: 0; }
.tabelle td strong.titel, .tabelle td a.titel { font-weight: 700; display: block; }
.tabelle td .unter { display: block; font-size: 13px; color: var(--ink-2); }
.tabelle td a.titel { color: var(--ink); text-decoration: none; }
.tabelle td a.titel:hover { text-decoration: underline; }
.betrag { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nummer { font: 600 14px var(--font-mono); white-space: nowrap; }

/* ── Leer-, Lade- und Fehlerzustände ────────────────────────────────────── */
.leer { display: grid; justify-items: center; gap: 6px; padding: 28px 18px; margin: 0 0 16px; border: 1.5px dashed var(--field); border-radius: var(--r-md); color: var(--ink-2); text-align: center; }
.leer p { margin: 0; }
.leer-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); font-size: 18px; }
.zustand-symbol { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--lake-bg); color: var(--lake); font-size: 28px; font-weight: 800; }
.zustand-symbol.fehler { background: var(--err-bg); color: var(--err); }
.zustand-symbol.warn { background: var(--warn-bg); color: var(--accent-ink); }
.zustand-symbol.ok { background: var(--ok-bg); color: var(--ok); }
.fehler-code { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .9; letter-spacing: -0.05em; color: var(--accent-ink); }
.fehler-text { font-size: 17px; }
.laedt { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.laedt::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent); border-right-color: transparent; animation: drehen .8s linear infinite; }

/* ── Seitenkopf ─────────────────────────────────────────────────────────── */
.seitenkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin: 0 0 20px; }
.seitenkopf-text { display: grid; gap: 6px; min-width: 0; }
.seitenkopf h1 { overflow-wrap: anywhere; }
.seitenkopf-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seitenkopf-aktionen .klein { margin: 0; }
.seitenkopf-unter { margin: -8px 0 20px; color: var(--ink-2); max-width: 70ch; }
.zurueck-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ink-2); font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.zurueck-link:hover { color: var(--ink); }

/* ── Admin: Rahmen, Seitenleiste, Kopfleiste ────────────────────────────── */
.rahmen { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.seitenleiste { background: #0E0E10; color: #F3F2EE; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1; }
.seitenleiste-kopf { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; }
.seitenleiste .logo-unten { font-size: 25.7px; }
.seitenleiste .logo-oben { font-size: 13.6px; }
.seitenleiste .logo-block { background: #FF5A26; }
.seitenleiste a:focus-visible, .seitenleiste button:focus-visible { outline-color: #8FB0FF; }
.menue-zu { display: none; background: #1F1F23; border-color: #1F1F23; color: #F3F2EE; font-size: 22px; }
.hauptmenue { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-liste a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: #E4E2DC; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav-liste a:hover { background: #1F1F23; color: #FFFFFF; }
.nav-liste a[aria-current] { background: #F3F2EE; color: #0E0E10; font-weight: 700; }
.nav-symbol { width: 18px; text-align: center; font: 600 13px var(--font-mono); opacity: .8; }
.nav-text { flex: 1; }
.nav-zahl { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #FF5A26; color: #0E0E10; font: 700 11.5px/22px var(--font-mono); text-align: center; }
.nav-zahl.fehler { background: #FF8A80; }
.nav-trenner { height: 1px; background: #2E2E33; margin: 8px 10px; }
.benutzerblock { display: flex; align-items: center; gap: 10px; padding: 16px 16px 16px 20px; border-top: 1px solid #2E2E33; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #FF5A26; flex: none; }
.avatar.gross { width: 52px; height: 52px; box-shadow: 0 0 0 3px #0E0E10; }
.avatar.initialen { display: grid; place-items: center; background: var(--lilac); color: #0E0E10; font: 700 12px var(--font-mono); box-shadow: none; }
.benutzer-name { display: grid; line-height: 1.25; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #F3F2EE; font-weight: 600; text-decoration: none; }
.benutzer-name:hover { color: #FFFFFF; text-decoration: underline; }
.benutzer-rolle { overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: #B4B2AB; font-weight: 400; }
.abmelden { margin: 0; }
.schleier { display: none; }
.arbeitsflaeche { min-width: 0; display: flex; flex-direction: column; }
.kopfleiste { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px clamp(12px, 3vw, 28px); background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); min-height: 69px; }
.menue-auf { display: none; }
.suche { position: relative; flex: 1; max-width: 520px; min-width: 0; margin: 0; }
.suche input { min-height: 44px; padding: 0 70px 0 40px; border: 1px solid var(--field); font-size: 15px; }
.suche-symbol { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.suche-taste { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; pointer-events: none; }
.suche .sr-fokus:focus { position: absolute; right: 4px; top: 4px; min-height: 36px; }
.kopfleiste-platz { flex: 1; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.stoppuhr { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 5px 0 14px; border-radius: 99px; background: #0E0E10; color: #F3F2EE; }
.stoppuhr-punkt { width: 9px; height: 9px; border-radius: 9px; background: #5BD08A; box-shadow: 0 0 0 4px rgba(91, 208, 138, .25); flex: none; }
.stoppuhr-text { display: grid; line-height: 1.1; min-width: 0; }
.stoppuhr-zeit { font: 600 15px var(--font-mono); font-variant-numeric: tabular-nums; }
.stoppuhr-projekt { font-size: 11.5px; opacity: .8; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stoppuhr-stopp { width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 99px; background: #FF5A26; color: #0E0E10; font-size: 12px; }
.stoppuhr-stopp:hover { background: #F3F2EE; color: #0E0E10; }
.stoppuhr-stopp:focus-visible { outline-color: #8FB0FF; }
.stoppuhr-start { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px dashed var(--field); border-radius: 99px; color: var(--ink); font-weight: 600; text-decoration: none; }
.stoppuhr-start:hover { border-color: var(--ink); color: var(--ink); border-style: solid; }
main { display: block; }
.admin main { flex: 1; width: 100%; max-width: 1464px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) clamp(12px, 3vw, 32px) 64px; min-width: 0; }
main:focus { outline: none; }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.alarme { display: grid; gap: 12px; margin: 0 0 20px; }

/* ── Projekte ───────────────────────────────────────────────────────────── */
.projektliste { display: grid; gap: 10px; }
.projektkarte { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; }
a.projektkarte:hover { border-color: var(--ink); color: var(--ink); }
.projektkarte-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.projektkarte-titel { display: grid; line-height: 1.25; }
.projektkarte-titel strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.projektkarte-titel span { font-size: 13.5px; color: var(--ink-2); }
ol.phasen { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
ol.phasen li { display: grid; gap: 6px; min-width: 0; }
.phase-balken { height: 8px; border-radius: 4px; background: var(--bg-2); }
ol.phasen.klein .phase-balken { height: 6px; border-radius: 3px; }
ol.phasen li.erledigt .phase-balken { background: var(--ink); }
ol.phasen li.aktuell .phase-balken { background: var(--accent); }
.phase-name { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.phasen li.erledigt .phase-name { color: var(--ink); }
ol.phasen li.aktuell .phase-name { color: var(--ink); font-weight: 700; }
.projektkopf { display: grid; gap: 18px; }
.projektkopf-oben { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.projektkopf-oben .kunde-link { font-weight: 600; text-decoration: none; }
.projektkopf-oben h1 { font-size: clamp(26px, 3vw, 36px); margin-top: 4px; }
.vorschau-rahmen { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); margin: 0 0 16px; }
.vorschau-leiste { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); min-width: 0; }
.vorschau-leiste .punkt { width: 9px; height: 9px; border-radius: 9px; background: var(--accent); flex: none; }
.vorschau-leiste .punkt.b { background: var(--sun); }
.vorschau-leiste .punkt.c { background: var(--lilac); }
.vorschau-leiste a, .vorschau-leiste span.adresse { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vorschau-flaeche { min-height: 220px; display: grid; place-items: center; gap: 12px; padding: 24px; background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, var(--bg) 10px 20px); color: var(--ink-2); font: 500 13px var(--font-mono); text-align: center; }
.kommentar { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; margin: 0 0 10px; }
.kommentar-blase { padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.kommentar-kopf { font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.kommentar-kopf strong { color: var(--ink); }
.kommentar-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.kommentar .avatar { width: 36px; height: 36px; box-shadow: none; }
.kommentar.erledigt .kommentar-blase { border-left: 3px solid var(--ok); }
.kommentar-aktion { margin: 6px 0 0; }
/* Offerten-Generator: Summe rechtsbündig */
dl.daten.summe { max-width: 420px; margin-left: auto; }
dl.daten.summe dd { text-align: right; }

/* ── Kanban ─────────────────────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kanban.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spalte { background: var(--bg-2); border-radius: 18px; padding: 12px; min-height: 120px; }
.spalte.ziel { outline: 3px dashed var(--accent); outline-offset: -3px; }
.spalte-kopf { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.spalte-kopf h2, .spalte-kopf h3 { font-size: 16px; flex: 1; font-family: var(--font-text); font-weight: 700; letter-spacing: 0; }
.spalte-kopf .zahl { font: 600 12px var(--font-mono); color: var(--ink-2); }
.spalte-punkt { width: 9px; height: 9px; border-radius: 9px; background: var(--ink-2); flex: none; }
.spalte.in_arbeit .spalte-punkt { background: var(--accent); }
.spalte.wartet_kunde .spalte-punkt { background: var(--lilac); }
.spalte.erledigt .spalte-punkt { background: var(--ok); }
.spalte-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-height: 40px; }
.aufgabe { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.aufgabe[draggable="true"] { cursor: grab; }
.aufgabe.zieht { opacity: .5; }
.aufgabe-titel { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.aufgabe-projekt { font-size: 13px; color: var(--ink-2); }
.aufgabe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--ink-2); }
.aufgabe-meta .person { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.aufgabe-meta .fehler { color: var(--err); font-weight: 700; }
.mini-avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 22px; background: var(--accent); color: #0E0E10; font: 700 9.5px var(--font-mono); }
.mini-avatar.k { background: var(--lilac); }
.mini-avatar.f { background: var(--sun); }
.aufgabe form { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 4px 0 0; }
.aufgabe form .aufklapp { flex-basis: 100%; margin: 0; font-size: 13px; }
.aufgabe form .aufklapp select { width: 100%; margin-top: 4px; }
.aufgabe form label { margin: 0; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.aufgabe select { min-height: 36px; padding: 4px 34px 4px 10px; font-size: 14px; flex: 1; width: auto; min-width: 0; }
.aufgabe .knopf, .aufgabe button { min-height: 34px; }
.aufgabe.kunde { border-left: 4px solid var(--lilac); }
.aufgabe.jan { border-left: 4px solid var(--accent); }
.aufgabe.fertig .aufgabe-titel { text-decoration: line-through; color: var(--ink-2); }
.kanban-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 0; }
.kanban-filter label { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink-2); }
.kanban-filter select { width: auto; min-width: 180px; min-height: 42px; }

/* ── Zeit ───────────────────────────────────────────────────────────────── */
.wochen-diagramm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: end; height: 160px; margin: 12px 0 0; padding: 0; list-style: none; }
.wochen-diagramm li { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; font-size: 13px; color: var(--ink-2); }
.wochen-saeule { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.wochen-saeule span.wert { font: 600 11.5px var(--font-mono); color: var(--ink); margin-bottom: 4px; }
.wochen-saeule span.saeule { width: min(56px, 100%); border-radius: 6px 6px 2px 2px; background: var(--accent); min-height: 4px; }
.wochen-saeule span.saeule.null { background: var(--line); }
.summenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.summenliste li { display: grid; gap: 6px; }
.summenliste .zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summenliste .zeile strong { white-space: nowrap; }
.summenliste .balken { height: 5px; }
.summenliste .balken > span { background: var(--accent); }

/* ── Uploads ────────────────────────────────────────────────────────────── */
.ablage { display: grid; gap: 10px; justify-items: center; padding: 28px 18px; border: 2px dashed var(--field); border-radius: 16px; text-align: center; color: var(--ink-2); background: transparent; }
.ablage.ziel { border-color: var(--accent); background: var(--warn-bg); }
.ablage strong { color: var(--ink); font-size: 17px; }
.ablage input[type=file] { max-width: 420px; background: var(--surface); }
.dateityp { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sun); color: #0E0E10; font: 700 10px var(--font-mono); text-transform: uppercase; flex: none; }
.dateityp.pdf { background: var(--accent); }
.dateityp.bild { background: var(--lilac); }

/* ── Portal ─────────────────────────────────────────────────────────────── */
.portal-kopf { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.portal-kopf-innen { max-width: 1200px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); min-height: 72px; display: flex; align-items: center; gap: 20px; }
.portal-nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.portal-nav ul { list-style: none; margin: 0; padding: 2px; display: flex; gap: 2px; }
.portal-nav a { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 99px; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.portal-nav a:hover { background: var(--bg-2); color: var(--ink); }
.portal-nav a[aria-current] { background: var(--ink); color: var(--bg); font-weight: 700; }
.portal-nav .nav-zahl, .mehr-menue .nav-zahl { min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; line-height: 20px; background: var(--accent); color: #0E0E10; }
.portal-person { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.portal-person-text { text-align: right; line-height: 1.2; font-size: 13px; display: grid; }
.portal-person-text strong { font-size: 14px; }
.portal-person-text span { color: var(--ink-2); }
.portal-inhalt { max-width: 1200px; margin: 0 auto; padding: clamp(18px, 3vw, 36px) clamp(14px, 3vw, 32px) 120px; }
.portal-inhalt.schmal { max-width: 964px; }
.portal h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.045em; }
.tableiste, .mehr-menue { display: none; }
.begruessung { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 0 0 20px; }
.begruessung h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: .95; letter-spacing: -0.05em; margin: 8px 0 12px; }
.begruessung .lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin: 0; }
.kontaktkarte { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-radius: 24px; background: #0E0E10; color: #F3F2EE; }
.kontaktkarte img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #FF5A26; flex: none; }
.kontaktkarte strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.kontaktkarte p { margin: 4px 0 10px; font-size: 14px; color: #D6D4CC; }
.kontaktkarte .knoepfe { margin: 0; }
.kontaktkarte .knopf { min-height: 38px; background: #FF5A26; border-color: #FF5A26; color: #0E0E10; }
.kontaktkarte .knopf.zweit { background: transparent; border-color: #77757F; color: #F3F2EE; }
.kontaktkarte .knopf:hover { background: #F3F2EE; border-color: #F3F2EE; color: #0E0E10; }
.kontaktkarte a:focus-visible { outline-color: #8FB0FF; }
.stand { display: grid; gap: 16px; }
.stand-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.stand-kopf h2 { font-size: 24px; }
.jetzt-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.jetzt-box p { margin: 0; }
.aufgabenliste { list-style: none; margin: 0; padding: 0; }
.aufgabenliste > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.aufgabenliste > li:last-child { border-bottom: 0; }
.aufgabenliste .symbolfeld { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sun); color: #0E0E10; font-size: 17px; }
.aufgabenliste .symbolfeld.info { background: var(--lilac); }
.aufgabenliste .symbolfeld.akzent { background: var(--accent); }
.aufgabenliste .symbolfeld.grau { background: var(--bg-2); color: var(--ink-2); }
.aufgabenliste h3 { font-family: var(--font-text); font-size: 16.5px; letter-spacing: 0; }
.aufgabenliste p { margin: 2px 0 10px; font-size: 14px; color: var(--ink-2); }
.aufgabenliste .knopf { min-height: 40px; }
.aufgabenliste li.fertig h3, .aufgabenliste li.fertig p { color: var(--ink-2); }
.panel.hervor { border: 2px solid var(--ink); }
.fristen { list-style: none; margin: 0; padding: 6px 0; }
.fristen li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
.fristen .zeile-text strong { font-size: 16px; }
.fortschritt { display: grid; gap: 8px; margin: 0 0 18px; }
.fortschritt-text { display: flex; justify-content: space-between; font-size: 14px; }
.fortschritt .balken { height: 10px; }
.fortschritt .balken > span { background: var(--accent); }
.schritte { list-style: none; margin: 0 0 18px; padding: 2px; display: flex; gap: 8px; overflow-x: auto; }
.schritte a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.schritte a:hover { border-color: var(--ink); color: var(--ink); }
.schritte .nr { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 28px; background: var(--bg-2); font: 700 12px var(--font-mono); }
.schritte li.fertig .nr { background: var(--ok-bg); color: var(--ok); }
.schritte a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.schritte a[aria-current] .nr { background: var(--accent); color: #0E0E10; }
.fragebogen-abschnitt { scroll-margin-top: 90px; }
.fragebogen-abschnitt .kicker { color: var(--accent-ink); }
.fragebogen-abschnitt h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 6px; }
.frage { padding: 20px 0; border-top: 1px solid var(--line); }
.frage:first-of-type { margin-top: 12px; }
.frage > label, .frage > fieldset > legend { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.frage-nr { font: 600 12px var(--font-mono); color: var(--ink-2); margin-right: 6px; }
.frage input:not([type=checkbox]):not([type=radio]), .frage textarea, .frage select { background: var(--bg); }
.js .fragebogen.schrittweise .fragebogen-abschnitt:not(.sichtbar) { display: none; }
/* Ohne JavaScript: «Speichern und weiter» speichert und springt zum nächsten Abschnitt; «Zurück» nur mit JavaScript */
.schritt-knoepfe { display: flex; margin-top: 16px; }
.schritt-knoepfe [data-schritt-zurueck] { visibility: hidden; }
.js .fragebogen.schrittweise .schritt-knoepfe [data-schritt-zurueck] { visibility: visible; }
.sticky-leiste { position: static; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 99px; background: color-mix(in oklab, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-card); margin-top: 16px; }
.sticky-leiste .knoepfe { margin: 0; }
.dokument-vorschau { display: grid; place-items: center; padding: 28px; border-radius: var(--r-md); background: var(--bg-2); min-height: 360px; }
.dokument-blatt { width: min(100%, 420px); aspect-ratio: 210 / 297; background: #FFFFFF; color: #0E0E10; box-shadow: var(--shadow-card); padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.dokument-blatt .logo { color: #0E0E10; }
.dokument-blatt .klein { color: #4A4A52; }
.dokument-blatt .logo-oben { font-size: 8px; }
.dokument-blatt .logo-unten { font-size: 15px; }
.dokument-blatt strong { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; line-height: 1; }
.dokument-blatt .linien { display: grid; gap: 6px; margin-top: 10px; }
.dokument-blatt .linien span { height: 5px; border-radius: 3px; background: #E9E7E0; }
.dokument-blatt .total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid #0E0E10; padding-top: 10px; font-size: 11px; }
.dokument-blatt .total b { font-size: 16px; }
.dokumentliste { list-style: none; margin: 0; padding: 0; }
.dokumentliste > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dokumentliste > li:last-child { border-bottom: 0; }
.dokumentliste .knopf { min-height: 38px; }

/* ── Anmeldung (geteilte Fläche) ────────────────────────────────────────── */
.anmelde-rahmen { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.buehne { background: var(--accent); color: #0E0E10; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.buehne .logo { color: #0E0E10; }
.buehne .logo-oben { font-size: 21px; }
.buehne .logo-unten { font-size: 40px; }
.portal .buehne .logo-block, .buehne .logo-block { background: #0E0E10; }
.anmelde-rahmen.admin .buehne { background: #0E0E10; color: #F3F2EE; }
.anmelde-rahmen.admin .buehne .logo-block { background: #FF5A26; }
.anmelde-rahmen.admin .avatar.gross { box-shadow: 0 0 0 3px #FF5A26; }
.buehne-text { display: grid; gap: 20px; }
.buehne-titel { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.5vw, 80px); line-height: .92; letter-spacing: -0.05em; }
.buehne-lead { margin: 0; font-size: clamp(17px, 1.4vw, 20px); max-width: 40ch; }
.buehne-person { display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.anmelde-feld { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.anmelde-innen { width: 100%; max-width: 420px; display: grid; gap: 18px; }
.anmelde-innen h1 { font-size: 36px; }
.anmelde-innen form { display: grid; gap: 4px; margin: 0; }
.anmelde-innen label { margin-top: 8px; }
.anmelde-innen input { min-height: 52px; font-size: 17px; }
.anmelde-innen button, .anmelde-innen .knopf { min-height: 52px; font-size: 16px; margin-top: 10px; }
.anmelde-innen .meldung { margin: 0; }
.anmelde-innen p { margin: 0; }
.oder { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; }
.oder::before, .oder::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.passkey-meldung { min-height: 1.5em; font-size: 14px; color: var(--ink-2); }
.fehler-inhalt { display: grid; gap: 12px; }

/* ── Suche ──────────────────────────────────────────────────────────────── */
.treffer-typ { font: 600 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); width: 72px; }

/* ── Ergänzungen: Aufklapper, Kundenkarten, Listenzeilen ────────────────── */
.aufklapp { margin: 12px 0 0; }
.aufklapp > summary { cursor: pointer; list-style: none; font-weight: 700; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp:not(.karte) > summary:not(.knopf) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.aufklapp.karte > summary { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 19px; }
.aufklapp.karte > summary::after { content: "+"; font-size: 22px; }
.aufklapp.karte[open] > summary::after { content: "–"; }
.aufklapp[open] > summary { margin-bottom: 12px; }
.aufklapp > form { margin-top: 4px; }
h2.gross { font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; }
.abstand { margin-top: 20px; margin-bottom: 10px; }
.abstand-unten { margin-bottom: 12px; font-size: 17px; }
.text-fehler { color: var(--err); font-weight: 700; }
.text-ok { color: var(--ok); font-weight: 700; }
.filterleiste { margin: 0 0 18px; }
.filterleiste label { max-width: 320px; }
.kundenraster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.kundenkarte { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); position: relative; }
.kundenkarte:hover { border-color: var(--ink); }
.kundenkarte h2 { font-size: 21px; }
.kundenkarte h2 a { color: var(--ink); text-decoration: none; }
.kundenkarte h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.kundenkarte h2 a:focus-visible { outline: none; }
.kundenkarte:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.kundenkarte p { margin: 0; }
.kundenkarte-oben { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kundenkarte-unten { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 14px; }
.kundenkarte-unten .text-fehler { color: var(--accent-ink); }
.zeilen > li.aktiv { box-shadow: inset 4px 0 0 var(--accent); background: color-mix(in oklab, var(--bg) 50%, transparent); }
.zeilen.kasten { border-radius: 14px; overflow: hidden; margin: 0 0 12px; }
.zeilen.kasten > li { background: var(--bg); border-bottom: 2px solid var(--surface); }
.zeile-aktionen, .zeile-rechts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.zeile-rechts form { margin: 0; }
.kasten-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; margin-top: 16px; border-radius: 14px; background: var(--bg); }
.zeile-form { margin-top: 6px; }
.zeile-form input { max-width: 360px; }
.mittel-wert { font-size: 30px; letter-spacing: -0.03em; }
.tage-feld { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.tage-feld input { width: 76px; min-height: 40px; text-align: right; }
.zeilen > li > label.zeile-titel { margin: 0; font-size: 15px; font-weight: 500; }
.mailvorschau { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 12px 0; }
.mailvorschau-kopf { display: grid; gap: 2px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.mailvorschau pre.text { border-radius: 0; background: var(--surface); max-height: 420px; overflow: auto; }
.aboliste, .dokwahl, .meilensteinliste { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.abokarte { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.abokarte .betrag { font-size: 16px; }
.dokwahl a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; }
.dokwahl a:hover, .dokwahl a.aktiv { border: 1.5px solid var(--ink); }
.dokwahl .nummer { font-size: 13px; font-weight: 500; }
.meilensteinliste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.meilensteinliste li.hervor { border: 1.5px solid var(--ink); }
.kennzahlen.zwei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.reiter-inhalt { display: block; }
.zeilen > li.drei { grid-template-columns: minmax(0, 1fr) auto; }
.zeilen .nummer { font-size: 13px; }
@media (max-width: 720px) { .nur-breit { display: none; } .tage-feld input { width: 64px; } }

/* ── Mittlere Breite ────────────────────────────────────────────────────── */
@media (max-width: 1280px) { .portal-person-text { display: none; } }
@media (max-width: 1100px) {
  .liste-detail, .zwei-eins { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .begruessung { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .rahmen { grid-template-columns: minmax(0, 1fr); }
  .seitenleiste { position: fixed; left: 0; top: 0; width: min(86vw, 300px); z-index: 80; box-shadow: 20px 0 60px rgba(0, 0, 0, .35); transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .seitenleiste:target, .seitenleiste.offen { transform: none; visibility: visible; }
  .seitenleiste:target ~ .schleier, .seitenleiste.offen ~ .schleier { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(10, 10, 14, .5); }
  .menue-zu, .menue-auf { display: inline-grid; }
  .menue-auf { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
  .suche-taste { display: none; }
  .suche input { padding-right: 14px; }
  .stoppuhr-projekt { display: none; }
  .stoppuhr-start-text { display: none; }
  .portal-nav { display: none; }
  .portal-person-text { display: none; }
  .tableiste { display: block; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; padding: 6px; background: #0E0E10; border-radius: 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
  .tableiste ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .tableiste a { position: relative; display: grid; place-items: center; min-height: 54px; padding: 4px 0; border-radius: 16px; color: #F3F2EE; font: 600 11px var(--font-text); text-decoration: none; text-align: center; }
  .tableiste a[aria-current] { background: #F3F2EE; color: #0E0E10; }
  .tableiste a:focus-visible { outline-color: #8FB0FF; }
  .tab-symbol { font-size: 18px; line-height: 1; }
  .tab-punkt { position: absolute; top: 6px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 8px; background: #FF5A26; }
  .mehr-menue { position: fixed; inset: 0; z-index: 65; display: none; }
  .mehr-menue:target, .mehr-menue.offen { display: block; }
  .mehr-menue .schleier { display: block; position: absolute; inset: 0; background: rgba(10, 10, 14, .45); }
  .mehr-flaeche { position: absolute; left: 10px; right: 10px; bottom: 84px; background: var(--surface); border-radius: 22px; padding: 8px; display: grid; gap: 6px; }
  .mehr-flaeche ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .mehr-flaeche ul a { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 14px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 20px; text-decoration: none; }
  .mehr-flaeche ul a[aria-current] { background: var(--bg-2); }
}

/* ── Handy ──────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .kanban, .kanban.drei { grid-template-columns: minmax(0, 1fr); }
  .tabelle { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .panel > .tabelle { padding: 10px; }
  table.karten, table.karten tbody, table.karten tr, table.karten td { display: block; width: 100%; }
  table.karten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.karten tr { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin: 0 0 10px; }
  table.karten td { border: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 10px; text-align: left; }
  table.karten td.rechts { text-align: left; }
  table.karten td::before { content: attr(data-label); font: 600 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
  table.karten td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  table.karten td[data-label=""]::before { display: none; }
  table.karten td.leer-zelle { display: none; }
  .tabelle tbody tr:hover { background: var(--surface); }
  .tabelle tr.aktiv td:first-child { box-shadow: none; }
  .tabelle tr.aktiv { border: 2px solid var(--accent); }
  .zeilen > li { grid-template-columns: minmax(0, 1fr) auto; }
  .zeilen > li > .etikett:first-child { grid-column: 1 / -1; justify-self: start; }
  .kontaktkarte { flex-direction: row; align-items: flex-start; }
  .kontaktkarte img { width: 72px; height: 72px; }
  .kennzahl-wert { font-size: 36px; }
  .phase-name { display: none; }
  ol.phasen li.aktuell .phase-name { display: block; position: static; }
  .sticky-leiste { border-radius: 22px; }
  .dokumentliste > li { grid-template-columns: auto minmax(0, 1fr); }
  .dokumentliste > li > :last-child { grid-column: 1 / -1; justify-self: start; }
  .fehler-code { font-size: 72px; }
  .anmelde-rahmen .buehne { min-height: 0; gap: 20px; }
  .buehne-person { display: none; }
  dl.daten { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dl.daten dd { margin-bottom: 8px; }
}

/* Weniger Bewegung, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  a.kennzahl:hover { transform: none; }
}

/* Druck: ohne Navigation */
@media print {
  .seitenleiste, .kopfleiste, .portal-kopf, .tableiste, .mehr-menue, .sprung { display: none !important; }
  .rahmen { display: block; }
  body { background: #fff; }
}

/* Feinschliff nach Sichtprüfung */
.zaehler { white-space: nowrap; }
.stoppuhr { border: 1px solid #2E2E33; }
ol.phasen li.aktuell .phase-name { overflow: visible; }
.benutzerblock { gap: 8px; padding-left: 16px; }
.benutzer-name { font-size: 13.5px; }
