/* Nexa-Doku – Designsprache von Nexa-Pay (dunkel, hoher Kontrast, Seitenleiste links), eigene Akzentfarbe Blau,
   damit die Oberfläche nie mit Nexa-Pay (Orange) oder Nexa-Heim (Grün) verwechselt wird. Kein Build, kein Framework. */

/* ── Design-Tokens ───────────────────────────────────────────────────────── */
:root {
	--bg: #0b1220; --bg-2: #111a2e; --bg-3: #172238;
	--surface: #131c30; --surface-hover: #1b2740; --surface-active: #223052;
	--border: #22304d; --border-strong: #33456b;
	--text: #eef2ff; --text-2: #aab4cf; --text-3: #8592b0;
	--accent: #3b82f6; --accent-2: #60a5fa; --accent-soft: rgba(59, 130, 246, .18); --accent-text: #93c5fd;
	--ok: #22c55e; --ok-soft: rgba(34, 197, 94, .16); --ok-text: #86efac;
	--warn: #eab308; --warn-soft: rgba(234, 179, 8, .16); --warn-text: #fde047;
	--bad: #ef4444; --bad-soft: rgba(239, 68, 68, .16); --bad-text: #fca5a5;
	--info: #38bdf8; --info-soft: rgba(56, 189, 248, .16); --info-text: #7dd3fc;
	--btn-primary-bg: #2563eb; --btn-primary-hover: #1d4ed8; --btn-primary-fg: #fff;
	--radius: 12px; --radius-sm: 8px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	color-scheme: dark;
}
/* Hellmodus (draußen/Sonne): <html data-theme="hell">, umschaltbar über Sonne/Mond in der Seitenleiste */
:root[data-theme="hell"] {
	--bg: #f4f6fa; --bg-2: #eceff5; --bg-3: #e3e8f0;
	--surface: #fff; --surface-hover: #f1f4f9; --surface-active: #e3e9f2;
	--border: #d3dae6; --border-strong: #aab6ca;
	--text: #0b1220; --text-2: #36425c; --text-3: #556079;
	--accent: #2563eb; --accent-2: #3b82f6; --accent-soft: rgba(37, 99, 235, .10); --accent-text: #1d4ed8;
	--ok: #16a34a; --ok-soft: rgba(22, 163, 74, .12); --ok-text: #15803d;
	--warn: #ca8a04; --warn-soft: rgba(202, 138, 4, .14); --warn-text: #92400e;
	--bad: #dc2626; --bad-soft: rgba(220, 38, 38, .10); --bad-text: #b91c1c;
	--info: #0284c7; --info-soft: rgba(2, 132, 199, .10); --info-text: #0369a1;
	--shadow: 0 10px 30px rgba(15, 23, 42, .12);
	color-scheme: light;
}

/* ── Grundlagen ──────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }
svg.icon { flex: none; vertical-align: -.2em; }

/* ── Rahmen: Seitenleiste links, Inhalt rechts ───────────────────────────── */
#shell { display: flex; height: 100vh; height: 100dvh; }
#side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 16rem; max-width: 86vw; display: flex; flex-direction: column;
	background: var(--bg-2); border-right: 1px solid var(--border); transform: translateX(-100%); transition: transform .18s ease;
	padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
#shell.menu #side { transform: none; box-shadow: var(--shadow); }
#backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .5); }
#brand { display: flex; align-items: center; gap: .75rem; height: 4rem; padding: 0 1rem; border-bottom: 1px solid var(--border); flex: none; }
.logo { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; background: var(--btn-primary-bg); letter-spacing: .02em; }
.brand-name { font-weight: 600; }
#suche { padding: .75rem .75rem .25rem; flex: none; }
#suche input { min-height: 38px; padding: .45rem .7rem; }
#nav { flex: 1; overflow-y: auto; padding: .25rem .75rem .75rem; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: .9rem .75rem .3rem; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; font-size: .92rem; text-decoration: none; }
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item.on { background: var(--accent-soft); color: var(--accent-text); }
.nav-item .zahl { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: var(--surface-active); color: var(--text-2); }
.nav-item .zahl.rot { background: var(--bad-soft); color: var(--bad-text); }
#side-foot { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--border); flex: none; }
#side-foot a { text-decoration: none; }
#side-foot a:hover .wer { text-decoration: underline; }
.wer { font-size: .875rem; font-weight: 500; }

#main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
#top { display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: env(safe-area-inset-top) 1rem 0; border-bottom: 1px solid var(--border); background: var(--bg-2); flex: none; }
#top h1 { margin: 0; font-size: 1.05rem; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#net { font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn-text); border: 1px solid rgba(234, 179, 8, .3); white-space: nowrap; }
#view { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
#view > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
#bottom { display: flex; flex: none; border-top: 1px solid var(--border); background: var(--bg-2); padding-bottom: env(safe-area-inset-bottom); }
#bottom a, #bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .1rem .45rem; font-size: .68rem; font-weight: 500; color: var(--text-3);
	text-decoration: none; background: none; border: 0; border-radius: 0; min-height: 0; }
#bottom a.on { color: var(--accent-text); }
/* Anmeldung und Unterschrift (Kunde hat das Gerät in der Hand): ohne Menü */
#shell.auth #side, #shell.auth #top, #shell.auth #bottom, #shell.voll #side, #shell.voll #bottom, #shell.voll #menu-btn { display: none; }
#shell.auth #view { display: grid; place-items: center; }
#shell.auth #view > * { width: 100%; max-width: 26rem; }

@media (min-width: 1024px) {
	#side { position: static; transform: none; max-width: none; }
	#menu-btn, #menu-close, #bottom, #backdrop { display: none !important; }
	#view { padding: 1.5rem; }
	#top { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── Bausteine ───────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.125rem; margin-bottom: .875rem; }
a.card { display: block; text-decoration: none; transition: background .1s ease; }
a.card:hover { background: var(--surface-hover); }
.row { display: flex; align-items: center; justify-content: space-between; gap: .625rem; }
.grow { flex: 1; min-width: 0; }
.cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mute, .hint { color: var(--text-2); font-size: .85rem; }
.hint { color: var(--text-3); font-size: .8rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.big { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.total { font-size: 1.25rem; font-weight: 700; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 600; margin: 1.5rem .25rem .5rem; }
h2:first-child { margin-top: .25rem; }
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin-bottom: .875rem; }
.kopf .grow { min-width: 10rem; }

/* Listen: eine Karte, Zeilen mit Trennlinie (auf dem Handy luftig, am Rechner dicht) */
.liste { padding: 0; overflow: hidden; }
.zeile { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); text-decoration: none; min-height: 3rem; }
.zeile:last-child { border-bottom: 0; }
a.zeile:hover, label.zeile:hover { background: var(--surface-hover); }
.zeile .ic { width: 2.1rem; height: 2.1rem; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; background: var(--surface-active); color: var(--text-2); }
.zeile .t1 { font-weight: 600; }
.zeile .t2 { color: var(--text-2); font-size: .85rem; }
.zeile .rechts { text-align: right; flex: none; }
.leer { padding: 1.5rem 1rem; text-align: center; color: var(--text-3); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; margin-bottom: .875rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; display: block; }
a.stat:hover { background: var(--surface-hover); }
.stat-label { font-size: .72rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .8rem; color: var(--text-3); }
.stat.warn { border-color: rgba(234, 179, 8, .45); } .stat.bad { border-color: rgba(239, 68, 68, .5); }
.grid2 { display: grid; gap: .875rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.grid2 > * > .card:last-child { margin-bottom: 0; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
	background: var(--surface-active); color: var(--text-2); border: 1px solid var(--border); }
.badge.ok, .badge.unterschrieben, .badge.geliefert, .badge.erledigt, .badge.aktiv { background: var(--ok-soft); color: var(--ok-text); border-color: rgba(34, 197, 94, .3); }
.badge.warn, .badge.offen, .badge.wartet, .badge.bestellt { background: var(--warn-soft); color: var(--warn-text); border-color: rgba(234, 179, 8, .3); }
.badge.bad, .badge.laeuft, .badge.zu_bestellen, .badge.hoch, .badge.ueberfaellig { background: var(--bad-soft); color: var(--bad-text); border-color: rgba(239, 68, 68, .3); }
.badge.info, .badge.abgeschlossen, .badge.in_arbeit, .badge.mitarbeiter { background: var(--info-soft); color: var(--info-text); border-color: rgba(56, 189, 248, .3); }
.badge.accent, .badge.admin { background: var(--accent-soft); color: var(--accent-text); border-color: rgba(59, 130, 246, .35); }

/* Formulare */
label { display: block; font-size: .8rem; color: var(--text-2); margin: .75rem 0 .35rem; font-weight: 500; letter-spacing: .01em; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; font: inherit; color: var(--text); padding: .6rem .8rem; min-height: 44px;
	background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); outline: none; transition: border-color .12s ease, box-shadow .12s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:disabled { opacity: .6; }
textarea { min-height: 6.5rem; resize: vertical; line-height: 1.45; }
input[type=checkbox] { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; flex: none; accent-color: var(--accent); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0 .75rem; }
.check { display: flex; align-items: center; gap: .625rem; margin: .75rem 0; font-size: .925rem; font-weight: 400; color: var(--text); cursor: pointer; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .925rem; line-height: 1.2; cursor: pointer;
	padding: .6rem 1rem; min-height: 44px; border-radius: var(--radius-sm); background: var(--surface-active); color: var(--text); border: 1px solid var(--border-strong);
	text-decoration: none; text-align: center; user-select: none; transition: background .12s ease, border-color .12s ease, transform .05s ease; }
button:hover:not(:disabled), .btn:hover { background: var(--surface-hover); }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .55; }
button.primary, .btn.primary { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); }
button.danger, .btn.danger { background: var(--bad-soft); border-color: rgba(239, 68, 68, .4); color: var(--bad-text); }
button.ghost, .btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
button.ghost:hover:not(:disabled), .btn.ghost:hover { background: var(--surface-hover); color: var(--text); }
button.sm, .btn.sm { padding: .4rem .7rem; font-size: .85rem; min-height: 40px; min-width: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: .625rem; margin: 1rem 0; }
.actions > * { flex: 1 1 9.5rem; }
.actions.links > * { flex: 0 1 auto; }

.chips, .tabs { display: flex; gap: .5rem; margin-bottom: .875rem; overflow-x: auto; scrollbar-width: none; }
.chips button { min-height: 36px; padding: .35rem .9rem; border-radius: 999px; font-weight: 500; white-space: nowrap; background: var(--surface); border-color: var(--border); color: var(--text-2); }
.chips button.on { background: var(--accent-soft); border-color: rgba(59, 130, 246, .45); color: var(--accent-text); }
.tabs { gap: 0; border-bottom: 1px solid var(--border); }
.tabs a { padding: .6rem .9rem; font-size: .9rem; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent-text); border-bottom-color: var(--accent); }
.tabs a .zahl { font-size: .72rem; color: var(--text-3); margin-left: .3rem; }

table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-weight: 600; color: var(--text-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .6rem .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; }
.scroll { overflow-x: auto; padding: 0; }

canvas.sign { display: block; width: 100%; height: 220px; background: #fff; border: 2px dashed var(--border-strong); border-radius: var(--radius); touch-action: none; }
.fotos { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .625rem; }
.foto { position: relative; }
.foto img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-3); }
.foto .x { position: absolute; top: 2px; right: 2px; min-height: 0; min-width: 0; width: 26px; height: 26px; padding: 0; border-radius: 999px; background: rgba(11, 18, 32, .8); color: #fff; border: 0; }
label.btn { margin: 0; color: var(--text); font-size: .925rem; }
.geheim { display: flex; gap: .5rem; align-items: center; }
.geheim input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(4rem, 1fr) minmax(4rem, 1fr) minmax(5rem, 1fr) auto; gap: .5rem; align-items: center; margin-bottom: .5rem; }
@media (max-width: 640px) { .pos { grid-template-columns: 1fr 1fr 1fr auto; } .pos > :first-child { grid-column: 1 / -1; } }

#toast { position: fixed; left: 1rem; right: 1rem; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 60; max-width: 30rem; margin: 0 auto; padding: .75rem 1rem;
	background: var(--surface-active); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
#toast.bad { background: #7f1d1d; border-color: #b91c1c; color: #fff; }
@media (min-width: 1024px) { #toast { left: auto; right: 1.5rem; bottom: 1.5rem; margin: 0; } }

@media print {
	#side, #top, #bottom, #toast, .actions, .no-print { display: none !important; }
	body { background: #fff; color: #000; }
	#shell, #main, #view { height: auto; overflow: visible; display: block; }
	.card, .stat { background: #fff; border-color: #bbb; break-inside: avoid; }
}

/* Favoriten-Stern: gefüllt, wenn gesetzt */
.stern { color: var(--text-3); }
.stern.on { color: var(--warn); }
.stern.on svg.icon, a.btn svg.icon.voll { fill: currentColor; }
.chips a.btn { border-radius: 999px; white-space: nowrap; background: var(--surface); border-color: var(--border); color: var(--text-2); font-weight: 500; min-height: 36px; }
.chips a.btn svg.icon { color: var(--warn); fill: currentColor; }

/* Vertragsbaukasten */
details.card > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: .5rem; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "anzeigen"; margin-left: auto; font-size: .8rem; font-weight: 500; color: var(--text-3); }
details.card[open] > summary::after { content: "verbergen"; }
.leistung { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem .625rem; align-items: start; padding: .625rem 0; border-bottom: 1px solid var(--border); }
.leistung:last-of-type { border-bottom: 0; }
.leistung input[type=checkbox] { margin-top: .7rem; }
.leistung textarea { min-height: 3.6rem; margin-top: .4rem; }
.leistung.aus { opacity: .55; }
/* Vertragstext zum Lesen vor der Unterschrift: wie Papier, in beiden Farbschemata gut lesbar */
.vertragstext { background: #fff; color: #111827; border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem; max-height: 55vh; overflow-y: auto; border: 1px solid var(--border-strong); font-size: .92rem; line-height: 1.55; }
.vertragstext h3 { font-size: 1.15rem; margin: 0 0 .75rem; }
.vertragstext h4 { font-size: .95rem; margin: 1.1rem 0 .35rem; }
.vertragstext p { margin: 0 0 .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.vertragstext .partei { margin-bottom: .6rem; }
.sign2 { display: grid; gap: .875rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sign2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
table.t td.fehler { color: var(--bad-text); }
table.t tr.aus td { opacity: .55; }

.logo-vorschau { background: #fff; border-radius: var(--radius-sm); padding: .75rem; display: inline-block; max-width: 100%; }
.logo-vorschau img { display: block; max-height: 80px; max-width: 100%; }

/* ── Unterschrift per Link (öffentliche Seite unterschrift.html, immer hell) ── */
.extern { max-width: 880px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.ext-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.ext-logo { max-height: 56px; max-width: 220px; }
.ext-firma { font-weight: 600; color: var(--text-2); }
.extern h1 { font-size: 1.5rem; margin: 0 0 .35rem; line-height: 1.25; }
.ext-scroll { overflow-x: auto; }
.ext-pos small { display: block; color: var(--text-3); white-space: pre-wrap; margin-top: .15rem; }
table.t tr.ext-summe td { font-weight: 700; border-top: 2px solid var(--border-strong); }
.ext-text { white-space: pre-wrap; }
.ext-fertig { text-align: center; padding: 2rem 1rem; }
.ext-fertig svg { color: var(--ok); }
.extern .t1 { font-weight: 600; }

/* ── Mobil im Einsatz: „＋“-Schnellmenü, laufender Einsatz als Leiste, Abhaken, Fotos ohne Netz ── */
#bottom button.neu { flex: 0 0 3.6rem; padding: .3rem 0; }
#bottom button.neu span { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: 0 4px 14px rgba(37, 99, 235, .45); }
#neu-btn, #timer-btn { display: none; }
#sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.sheet { position: absolute; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 26rem; box-shadow: var(--shadow); padding: .25rem 0; max-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom)); overflow-y: auto; }
#laeuft { display: flex; align-items: center; gap: .75rem; flex: none; padding: .45rem .75rem .45rem 1rem; background: var(--accent-soft); border-top: 1px solid rgba(59, 130, 246, .45); font-weight: 600; }
#laeuft[hidden] { display: none; }
#laeuft a { text-decoration: none; padding: .35rem 0; }
#laeuft .punkt { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--bad); margin-right: .5rem; animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { #laeuft .punkt { animation: none; } }
#shell.auth #such-btn, #shell.voll #such-btn { display: none; }
#such-btn { min-width: 40px; padding: 0; }
.sheet-bg.dunkel { background: rgba(0, 0, 0, .55); }
.sheet.suche { top: calc(.75rem + env(safe-area-inset-top)); bottom: auto; max-width: 36rem; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.such-zeile { display: flex; align-items: center; gap: .6rem; padding: .35rem .9rem; border-bottom: 1px solid var(--border); color: var(--text-3); }
.such-zeile input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: .6rem 0; font-size: 1.05rem; outline: none; }
.such-treffer { overflow-y: auto; }
.such-treffer .zeile.aktiv { background: var(--surface-active); }
.vorschau .vz { display: flex; gap: .75rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--border); }
.vorschau .vz .rechts { text-align: right; flex: none; }
.zeile input.klein { width: 100%; max-width: 22rem; min-height: 34px; padding: .25rem .5rem; margin-top: .2rem; font-size: .88rem; }
.zeile.wischbar { touch-action: pan-y; transition: transform .15s ease-out; }
.zeile.wischt { transition: none; background: var(--surface-hover); }
.zeile.wisch-ok { background: var(--ok-soft); }
.wisch-tipp { display: none; }
@media (hover: none) { .wisch-tipp { display: block; } }
.sheet.kompakt .zeile { min-height: 0; padding-top: .4rem; padding-bottom: .4rem; }
button.zeile { width: 100%; text-align: left; border-width: 0 0 1px; border-radius: 0; background: transparent; font-weight: inherit; }
.such-kopf, .such-fuss { padding: .5rem .9rem; font-size: .78rem; color: var(--text-3); }
.such-fuss { display: none; border-top: 1px solid var(--border); }
.steckbrief { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .85rem; margin: 0 0 .9rem; border-radius: var(--radius-sm); background: var(--warn-soft); border: 1px solid rgba(234, 179, 8, .35); color: var(--text); }
.steckbrief svg { flex: none; color: var(--warn-text); margin-top: .1rem; }
.card > .steckbrief { margin: .6rem 0; }
#shell.auth #laeuft, #shell.auth #neu-btn, #shell.voll #neu-btn, #shell.auth #timer-btn, #shell.voll #timer-btn { display: none; }
.zeile[role=button] { cursor: pointer; }
.zeile[role=button]:hover { background: var(--surface-hover); }
.zeile button.haken { flex: none; min-width: 44px; min-height: 44px; padding: 0; margin: -.3rem -.35rem -.3rem -.5rem; color: var(--text-3); border-radius: 50%; }
.zeile button.haken:hover { color: var(--ok); }
.zeile .haken.fertig { color: var(--ok); display: grid; place-items: center; min-width: 44px; margin: 0 -.35rem 0 -.5rem; }
.foto.lokal img { opacity: .7; }
.foto .wartet { position: absolute; left: .3rem; bottom: .3rem; display: flex; align-items: center; gap: .25rem; padding: .1rem .4rem; border-radius: 999px; font-size: .68rem; font-weight: 600; background: rgba(0, 0, 0, .7); color: #fff; }
.bausteine { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-top: .5rem; padding-bottom: .1rem; }
.bausteine button { flex: none; min-height: 34px; padding: .25rem .7rem; border-radius: 999px; font-weight: 500; font-size: .82rem; white-space: nowrap; color: var(--text-2); }
@media (min-width: 1024px) {
	#neu-btn, #timer-btn:not([hidden]) { display: inline-flex; }
	.sheet { left: auto; right: 1.5rem; top: 3.75rem; bottom: auto; width: 22rem; margin: 0; }
	.sheet-bg { background: transparent; }
	.sheet-bg.dunkel { background: rgba(0, 0, 0, .55); }
	.sheet.suche { left: 0; right: 0; top: 12vh; width: auto; margin: 0 auto; max-height: 70vh; }
	.such-fuss { display: block; }
	#laeuft { padding-left: 1.5rem; padding-right: 1.5rem; }
}
#toast { bottom: calc(8.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { #toast { bottom: 4.5rem; } }

/* ── Zwei-Faktor-Anmeldung ── */
canvas.qr { display: block; width: 220px; max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); image-rendering: pixelated; margin: .5rem 0; }
.schluessel { font-size: 1.05rem; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.notfall { white-space: pre; font-size: 1.05rem; line-height: 1.7; columns: 2; max-width: 22rem; user-select: all; }

/* ── Tickets ── */
.neu-punkt { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: .1em; }
.verlauf { display: flex; flex-direction: column; gap: .625rem; margin-bottom: .875rem; }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; max-width: 52rem; }
.post.antwort { align-self: flex-end; background: var(--accent-soft); border-color: rgba(59, 130, 246, .35); }
.post.notiz { background: var(--warn-soft); border-color: rgba(234, 179, 8, .35); }
.post.system { align-self: center; background: transparent; border: 0; padding: 0; text-align: center; }
.post-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .35rem; font-size: .88rem; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-anh { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.card.zuordnen { border-color: rgba(234, 179, 8, .5); }
body:has(> .extern) #toast { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }

/* ── Feinschliff fürs Handy ── */
.stapel { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.feld-knopf { display: flex; gap: .5rem; }
.feld-knopf select { flex: 1; }
.feld-knopf .btn { flex: none; min-width: 44px; padding-left: .6rem; padding-right: .6rem; }
@media (max-width: 700px) {
	/* Kopfzeile: Filter über die ganze Breite (wischbar, laufen sichtbar aus dem Rand), Knöpfe darunter in EINER Zeile */
	.kopf .grow:has(> .chips) { flex: 1 0 100%; min-width: 0; margin: 0 -1rem; }
	.kopf .grow > .chips { margin-bottom: 0; padding: 0 1rem; scroll-padding: 1rem; }
	.kopf > .btn, .kopf > button { flex: 1 1 auto; }
	.kopf > button.ghost.sm { flex: 0 0 auto; }
	.zeile { padding-left: .875rem; padding-right: .875rem; gap: .625rem; }
	.zeile .t2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.post { padding: .65rem .8rem; }
	.post.antwort, .post.eingang { max-width: 94%; }
	.post.antwort { margin-left: 6%; }
	.total { overflow-wrap: anywhere; }
}
.cols > div:has(> .feld-knopf) { grid-column: 1 / -1; }
@media (max-width: 700px) { .actions.links.tk-aktionen > * { flex: 1 1 auto; } }

/* ── Laufender Einsatz: große Uhr oben im Einsatz ── */
.uhr-karte { display: flex; align-items: center; gap: 1rem; background: var(--accent-soft); border-color: rgba(59, 130, 246, .45); }
.uhr { font-size: clamp(2.4rem, 13vw, 3.6rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.01em; margin: .15rem 0; }
.uhr-karte button { flex: none; min-height: 64px; padding: .75rem 1.25rem; font-size: 1.05rem; }
.uhr-karte .grow { min-width: 0; }
@media (max-width: 700px) {
	.uhr-karte { flex-direction: column; align-items: stretch; gap: .75rem; text-align: center; }
	.uhr-karte button { width: 100%; }
}

/* ── iPhone: Datums-/Zeitfelder halten sich sonst nicht an die Spaltenbreite (eigene Mindestbreite, zentrierter Text, andere Höhe) ── */
input[type=date], input[type=time], input[type=month] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 1.45; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value, input[type=month]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.45em; }
.cols > * { min-width: 0; }
input.schmal { width: 6.5rem; min-height: 38px; padding: .35rem .5rem; text-align: right; }

select.versand-wahl { width: auto; flex: 0 1 auto; min-height: 44px; }

.vergleich { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .35rem; }
input.schmal2 { width: 11rem; min-height: 36px; padding: .3rem .5rem; font-size: .85rem; }

/* ── Wartungs-Checkliste ── */
.wpunkt { position: relative; padding-right: 3rem; }
.wpunkt .chips { margin: .5rem 0 .35rem; flex-wrap: wrap; overflow: visible; }
.wpunkt .chips button.on.ok { background: var(--ok-soft); border-color: rgba(34, 197, 94, .45); color: var(--ok-text); }
.wpunkt .chips button.on.auffaellig { background: var(--bad-soft); border-color: rgba(239, 68, 68, .45); color: var(--bad-text); }
.wpunkt.ok { border-color: rgba(34, 197, 94, .35); } .wpunkt.auffaellig { border-color: rgba(239, 68, 68, .5); }
.wpunkt .weg { position: absolute; top: .5rem; right: .5rem; }

/* ── Auftragskette im Angebot ── */
.schritt { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.schritt .nr { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--surface-active); color: var(--text-2); }
.schritt.fertig .nr { background: var(--ok-soft); color: var(--ok-text); }
.schritt .liste, .schritt .actions { margin: .4rem 0 0; }

/* ── Timer-Fenster (bleibt im Vordergrund; eigenes kleines Fenster mit demselben Stylesheet) ── */
body.timer-fenster { box-sizing: border-box; min-height: 100vh; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .55rem; overflow: hidden; }
.timer-fenster .big { font-size: 2.5rem; line-height: 1.05; }
.timer-fenster .actions { margin: 0; gap: .5rem; }
.timer-fenster .actions > * { flex: 1 1 5rem; }
.timer-fenster .t-kopf { display: flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 600; }
.timer-fenster .punkt { width: .6rem; height: .6rem; border-radius: 50%; background: var(--bad); flex: none; animation: puls 1.6s ease-in-out infinite; }

/* ── Kundenportal ── */
.p-tabs { margin: 1rem 0; }
.p-tabs a { display: inline-flex; align-items: center; gap: .3rem; }
.p-rechts, .rechts-knoepfe { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .4rem; }
.p-kuendigen { border-top: 1px solid var(--border); margin-top: .75rem; padding-top: .25rem; }
.extern .zeile { flex-wrap: wrap; }

/* Termine: Monatskalender */
.kal { padding: .75rem; }
.kal-kopf { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.kal-wt { text-align: center; font-size: .75rem; font-weight: 600; color: var(--text-3); padding: .15rem 0; }
.kal-tag { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; min-height: 3rem; padding: .25rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--surface-active); color: var(--text); text-align: left; font-weight: 400; overflow: hidden; }
.kal-tag.leer { background: none; }
.kal-tag.heute { border-color: var(--accent); }
.kal-tag.on { background: var(--accent-soft); border-color: var(--accent); }
.kal-nr { font-size: .8125rem; font-weight: 600; }
.kal-t { display: none; font-size: .6875rem; line-height: 1.25; padding: 0 .25rem; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); }
.kal-t.ok { background: var(--ok-soft); color: var(--ok-text); }
.kal-t.mehr { background: none; color: var(--text-3); }
.kal-tag.hat .kal-nr::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
@media (min-width: 720px) { .kal-tag { min-height: 5.25rem; } .kal-t { display: block; } .kal-tag.hat .kal-nr::after { display: none; } }
.anruf-treffer { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: -.25rem 0 .75rem; }

/* Projekte: Fortschritt des Budgets */
.balken { display: flex; flex-direction: column; gap: .35rem; }
.balken progress { width: 100%; height: .6rem; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-active); accent-color: var(--accent); }
.balken progress::-webkit-progress-bar { background: var(--surface-active); }
.balken progress::-webkit-progress-value { background: var(--accent); }
.balken progress::-moz-progress-bar { background: var(--accent); }
.balken.warn progress::-webkit-progress-value { background: var(--warn); } .balken.warn progress::-moz-progress-bar { background: var(--warn); }
.balken.bad progress::-webkit-progress-value { background: var(--bad); } .balken.bad progress::-moz-progress-bar { background: var(--bad); }

/* Tickets: Bewertung durch den Kunden */
.sterne { display: flex; gap: .25rem; margin: .5rem 0 .75rem; }
.sterne button { min-width: 2.75rem; min-height: 2.75rem; padding: 0; font-size: 1.75rem; line-height: 1; background: none; border-color: transparent; color: var(--text-3); }
.sterne button.on, .sterne-klein { color: var(--warn); }
.sterne-klein { letter-spacing: 1px; white-space: nowrap; }

/* Geräte-Etiketten mit QR-Code: am Bildschirm als Vorschau, im Druck ohne Rahmen der App */
.etiketten { display: grid; gap: 0; justify-content: start; }
.etiketten.bogen { grid-template-columns: repeat(3, 70mm); }
.etiketten.rolle { grid-template-columns: 62mm; gap: 2mm; }
.etikett { box-sizing: border-box; display: flex; align-items: center; gap: 2.5mm; padding: 2.5mm 3mm; background: #fff; color: #000; overflow: hidden; outline: 1px dashed #bbb; outline-offset: -1px; }
.bogen .etikett { width: 70mm; height: 37mm; }
.rolle .etikett { width: 62mm; height: 29mm; }
canvas.qr-etikett { width: 24mm; height: 24mm; flex: none; image-rendering: pixelated; }
.rolle canvas.qr-etikett { width: 21mm; height: 21mm; }
.etikett-text { display: flex; flex-direction: column; min-width: 0; font-size: 8pt; line-height: 1.25; }
.etikett-text strong { font-size: 10pt; overflow-wrap: anywhere; }
.etikett-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etikett-firma { margin-top: 1mm; color: #555; font-size: 7pt; }
@page etikett-rolle { size: 62mm 29mm; margin: 0; }
@page etikett-bogen { size: A4; margin: 0; }
@media print {
	body:has(.etiketten) #laeuft, body:has(.etiketten) #sheet { display: none !important; }
	body:has(.etiketten) #view { padding: 0; margin: 0; max-width: none; }
	.etiketten.bogen { page: etikett-bogen; }
	.etikett { outline: none; break-inside: avoid; }
	.etiketten.rolle { gap: 0; }
	.etiketten.rolle .etikett { page: etikett-rolle; break-after: page; }
}

/* Einstellungen: Schnittstelle */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; }
.api-anleitung { border-top: 1px solid var(--border); margin-top: .75rem; padding-top: .75rem; }
.schritte { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .75rem; }
.schritte textarea { margin-top: .5rem; white-space: pre; overflow-x: auto; }
.schritte code { background: var(--surface-active); padding: .05rem .3rem; border-radius: 4px; font-size: .85em; overflow-wrap: anywhere; }
.feld-knopf input { flex: 1; min-width: 0; } .feld-knopf button { flex: none; }

.row.passkey { border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .5rem; }
#passkey-login { width: 100%; justify-content: center; }

.ki-hilfe { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.35rem 0 .75rem; }

.zeile-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.bereiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .1rem .75rem; }

/* Bedienung: einzeilige Textzeile in Listen, eingeklappte Zusatzfelder, feste Knopfleiste am Handy, Auswahl statt Reiterleiste */
.zeile-text { font-size: .8125rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
details.mehr { margin-top: .5rem; }
details.mehr > summary { cursor: pointer; color: var(--accent-text); font-size: .875rem; font-weight: 500; padding: .35rem 0; }
details.mehr[open] > summary { margin-bottom: .5rem; }
.naechster { gap: .75rem; flex-wrap: wrap; border-color: rgba(59, 130, 246, .45); }
.akte-wahl { display: none; }
@media (max-width: 719px) {
	.akte-tabs { display: none; }
	.akte-wahl { display: block; width: 100%; margin-bottom: .875rem; font-weight: 600; }
	.actions.kleben { position: sticky; bottom: -1rem; z-index: 5; margin: 1rem -1rem 0; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom) * 0); background: var(--bg); border-top: 1px solid var(--border); }
}
.artikel-suche { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--border); }
.kal-t.outlook { background: var(--info-soft); color: var(--info-text); }

/* Inbetriebnahme-Check */
.check-liste .zeile { align-items: flex-start; }
.check-liste .zeile .t1, .check-liste .zeile .hint { white-space: normal; }
.check-text { font-size: .88rem; margin-top: .2rem; color: var(--text-2); overflow-wrap: anywhere; }
.check-text.bad { color: var(--bad-text, #fca5a5); }
.check-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.check-rechts button.klein { min-height: 32px; padding: .2rem .65rem; font-size: .85rem; }
.check-rechts label.check { font-size: .85rem; margin: 0; }
@media (max-width: 560px) { .check-liste .zeile { flex-wrap: wrap; } .check-liste .zeile .rechts { width: 100%; } .check-rechts { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Monatsbericht */
.bericht-monat { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-2); } .bericht-monat input { width: 11rem; }

/* Tätigkeitsnachweis per Link */
.zeile input.wahl { width: 22px; height: 22px; flex: none; margin: 0 .25rem 0 0; }
.ext-einsatz .ext-text { margin: .5rem 0 0; }

/* Rentabilität der Wartungsverträge: Säulen je Monat (Höhe in Zehnteln, CSP erlaubt keine Inline-Styles) */
.rendite .row { margin-bottom: .6rem; }
.rendite-balken { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin-bottom: .7rem; border-bottom: 1px solid var(--border); }
.rendite-balken .saeule { flex: 1; max-width: 22px; min-width: 4px; border-radius: 3px 3px 0 0; background: var(--accent); height: 0; }
.rendite-balken .saeule.ueber { background: var(--warn); }
.rendite-balken .saeule[data-h="1"] { height: 10%; }
.rendite-balken .saeule[data-h="2"] { height: 20%; }
.rendite-balken .saeule[data-h="3"] { height: 30%; }
.rendite-balken .saeule[data-h="4"] { height: 40%; }
.rendite-balken .saeule[data-h="5"] { height: 50%; }
.rendite-balken .saeule[data-h="6"] { height: 60%; }
.rendite-balken .saeule[data-h="7"] { height: 70%; }
.rendite-balken .saeule[data-h="8"] { height: 80%; }
.rendite-balken .saeule[data-h="9"] { height: 90%; }
.rendite-balken .saeule[data-h="10"] { height: 100%; }
.rendite strong.minus { color: var(--bad-text, #fca5a5); }

/* Zeitvorschläge in „Mein Tag“ */
.vorschlag-weg { background: none; border: 0; padding: .35rem; color: var(--text-2); border-radius: 8px; min-height: 0; }
.vorschlag-weg:hover { color: var(--text); background: var(--accent-soft); }
.vorschlag-weg svg { width: 18px; height: 18px; }

/* Doku-Seiten (doku.js): Markdown-Anzeige, Editor, Doku-Stand */
.md { line-height: 1.55; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md .md-h { margin: 1.1rem 0 .45rem; line-height: 1.3; }
.md h3.md-h { font-size: 1.15rem; } .md h4.md-h { font-size: 1.02rem; } .md h5.md-h { font-size: .95rem; color: var(--text-2); }
.md p { margin: .45rem 0; }
.md ul.md-liste, .md ol.md-liste { margin: .35rem 0 .6rem; padding-left: 1.4rem; }
.md li { margin: .15rem 0; }
.md li.md-check { list-style: none; margin-left: -1.4rem; display: flex; gap: .45rem; align-items: flex-start; }
.md li.md-check svg { flex: none; margin-top: .2rem; color: var(--text-2); }
.md li.md-check.an svg { color: var(--ok, #22c55e); }
.md li.md-check.an span { color: var(--text-2); }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--accent-soft); padding: .05rem .3rem; border-radius: 5px; }
.md pre { background: var(--bg, #0b1220); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .85rem; overflow-x: auto; margin: .6rem 0; }
.md pre code { background: none; padding: 0; white-space: pre; }
.md blockquote { margin: .6rem 0; padding: .45rem .8rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.md blockquote p { margin: .2rem 0; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.md .md-tab { overflow-x: auto; margin: .5rem 0 .8rem; }
.md .md-tab table { min-width: 100%; }
.md .md-tab th { text-align: left; white-space: nowrap; }
.md .md-tab tbody th { color: var(--text-2); font-weight: 500; width: 1%; padding-right: 1.2rem; }
.md a.md-neu { text-decoration-style: dashed; color: var(--warn-text); }
.md-hilfe { font-size: .88rem; }
textarea.md-feld { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.5; tab-size: 4; min-height: 22rem; }
.doku-pw[hidden] { display: none; }
.doku-meta .badge { vertical-align: middle; }
.doku-stand .row { display: flex; align-items: center; gap: .8rem; }
.doku-balken { height: 8px; border-radius: 4px; background: var(--border); margin: .7rem 0 .8rem; overflow: hidden; }
.doku-balken span { display: block; height: 100%; width: 0; background: var(--ok, #22c55e); border-radius: 4px; }
.doku-balken.warn span { background: var(--warn); } .doku-balken.bad span { background: var(--bad); }
.doku-balken span[data-w="1"] { width: 10%; }
.doku-balken span[data-w="2"] { width: 20%; }
.doku-balken span[data-w="3"] { width: 30%; }
.doku-balken span[data-w="4"] { width: 40%; }
.doku-balken span[data-w="5"] { width: 50%; }
.doku-balken span[data-w="6"] { width: 60%; }
.doku-balken span[data-w="7"] { width: 70%; }
.doku-balken span[data-w="8"] { width: 80%; }
.doku-balken span[data-w="9"] { width: 90%; }
.doku-balken span[data-w="10"] { width: 100%; }
.doku-punkte { display: flex; flex-wrap: wrap; gap: .4rem; }
.doku-punkt { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; font-size: .86rem; border: 1px dashed var(--border-strong); color: var(--text); text-decoration: none; }
.doku-punkt small { color: var(--text-2); margin-left: .2rem; }
a.doku-punkt:hover { border-color: var(--accent); background: var(--accent-soft); }
.doku-punkt.ok { border-style: solid; border-color: transparent; background: var(--ok-soft, rgba(34, 197, 94, .14)); color: var(--ok-text, #86efac); }
.doku-fassung summary { display: flex; gap: .6rem; align-items: center; cursor: pointer; flex-wrap: wrap; }
.doku-fassung .md { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); }
table.netzplan td.mono, .card.netz strong.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; white-space: nowrap; }
.card.netz .row { display: flex; align-items: flex-start; gap: .8rem; }
table.netzplan td .badge { margin-right: .25rem; }
.domain-pruefung .zeile { align-items: flex-start; }
.domain-pruefung .hint.wrap { overflow-wrap: anywhere; white-space: normal; }
