/* ISA-Erfassung – Comdat-Design (Vorgabe „Comdat Design – interne Web-Apps“, Stand 10/2026)
   Komponenten verwenden nur die Variablen unten, keine festen Farbwerte. */
:root {
  /* Marke */
  --brand: #0f6baf; --brand-600: #0c5a94; --brand-700: #0a4a7a; --brand-50: #eef5fc; --brand-100: #d7e8f7;
  /* Flächen */
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f9fafb; --surface-3: #eef1f5; --input-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, .92); --row-hover: #fafbfd; --unread-bg: #f5f9fe;
  /* Rahmen und Text */
  --border: #e4e8ee; --border-strong: #cdd5df; --text: #101828; --text-2: #344054; --muted: #667085;
  /* Zustände */
  --ok: #067647;    --ok-bg: #ecfdf3;    --ok-border: #abefc6;    --ok-text: #085d3a;
  --warn: #b54708;  --warn-bg: #fffaeb;  --warn-border: #fedf89;  --warn-text: #93370d;
  --error: #c0362c; --error-bg: #fef3f2; --error-border: #fecdca; --error-text: #912018;
  --info-bg: #eff8ff; --info-border: #b2ddff; --info-text: #194185; --info-strong: #175cd3;
  --purple: #6941c6; --purple-bg: #f4f3ff;
  --series-1: #2a78d6; --series-2: #eb6834; --chart-grid: #e4e8ee;
  /* Ampel der ISA (fachliche Farben, wie im ISA-Buch) */
  --rot: #d93025; --gelb: #f2b300; --gruen: #1e8e3e;
  /* Form */
  --radius: 10px; --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .22), 0 4px 8px -4px rgba(16, 24, 40, .08);
  --focus: 0 0 0 3px rgba(15, 107, 175, .22);
  --backdrop: rgba(16, 24, 40, .45);
  --on-brand: #ffffff;
  --sidebar-w: 264px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --brand: #3b8fd6; --brand-600: #2f7fc4; --brand-700: #9ccaf2;
  --brand-50: rgba(59, 143, 214, .14); --brand-100: rgba(59, 143, 214, .3);
  --bg: #0e1318; --surface: #161c23; --surface-2: #1c232b; --surface-3: #242c36;
  --input-bg: #11171d; --topbar-bg: rgba(22, 28, 35, .9); --row-hover: #1a2129;
  --unread-bg: rgba(59, 143, 214, .08);
  --border: #29323d; --border-strong: #3a4553;
  --text: #e6edf3; --text-2: #c2ccd6; --muted: #8d99a7;
  --ok: #47cd89;    --ok-bg: rgba(23, 178, 106, .14);  --ok-border: rgba(23, 178, 106, .35);  --ok-text: #a6f4c5;
  --warn: #fdb022;  --warn-bg: rgba(247, 144, 9, .14); --warn-border: rgba(247, 144, 9, .35); --warn-text: #fedf89;
  --error: #f97066; --error-bg: rgba(240, 68, 56, .14); --error-border: rgba(240, 68, 56, .4); --error-text: #fecdca;
  --info-bg: rgba(46, 144, 250, .14); --info-border: rgba(46, 144, 250, .35); --info-text: #b2ddff; --info-strong: #84caff;
  --purple: #bda6f9; --purple-bg: rgba(122, 90, 248, .16);
  --series-1: #3987e5; --series-2: #d95926; --chart-grid: #29323d;
  --rot: #f0645a; --gelb: #f5c02e; --gruen: #3fb868;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, .65);
  --focus: 0 0 0 3px rgba(59, 143, 214, .35);
  --backdrop: rgba(0, 0, 0, .6);
  --on-brand: #ffffff;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --brand: #3b8fd6; --brand-600: #2f7fc4; --brand-700: #9ccaf2;
    --brand-50: rgba(59, 143, 214, .14); --brand-100: rgba(59, 143, 214, .3);
    --bg: #0e1318; --surface: #161c23; --surface-2: #1c232b; --surface-3: #242c36;
    --input-bg: #11171d; --topbar-bg: rgba(22, 28, 35, .9); --row-hover: #1a2129;
    --unread-bg: rgba(59, 143, 214, .08);
    --border: #29323d; --border-strong: #3a4553;
    --text: #e6edf3; --text-2: #c2ccd6; --muted: #8d99a7;
    --ok: #47cd89;    --ok-bg: rgba(23, 178, 106, .14);  --ok-border: rgba(23, 178, 106, .35);  --ok-text: #a6f4c5;
    --warn: #fdb022;  --warn-bg: rgba(247, 144, 9, .14); --warn-border: rgba(247, 144, 9, .35); --warn-text: #fedf89;
    --error: #f97066; --error-bg: rgba(240, 68, 56, .14); --error-border: rgba(240, 68, 56, .4); --error-text: #fecdca;
    --info-bg: rgba(46, 144, 250, .14); --info-border: rgba(46, 144, 250, .35); --info-text: #b2ddff; --info-strong: #84caff;
    --purple: #bda6f9; --purple-bg: rgba(122, 90, 248, .16);
    --series-1: #3987e5; --series-2: #d95926; --chart-grid: #29323d;
    --rot: #f0645a; --gelb: #f5c02e; --gruen: #3fb868;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, .65);
    --focus: 0 0 0 3px rgba(59, 143, 214, .35);
    --backdrop: rgba(0, 0, 0, .6);
    --on-brand: #ffffff;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------ Grundlagen */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; margin: .1rem 0 .9rem; line-height: 1.25; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 1.4rem 0 .6rem; }
h3 { font-size: .95rem; font-weight: 650; margin: 0 0 .5rem; }
.leise { color: var(--muted); font-size: .85rem; }
.klein { font-size: .82rem; }
.mono, code, kbd { font-family: var(--mono); }
.wachsen { flex: 1; min-width: 0; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
kbd { font-size: .78rem; padding: .05rem .4rem; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
::selection { background: var(--brand-100); }

/* ------------------------------------------------------------ Seitenleiste */
.nav-schalter { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); padding: 1.1rem .9rem .9rem; overflow-y: auto; }
.sidebar .marke { display: block; padding: .1rem .45rem; }
.sidebar .marke img { height: 30px; width: auto; display: block; }
.logo-dunkel { display: none !important; }
html[data-theme="dark"] .logo-hell { display: none !important; }
html[data-theme="dark"] .logo-dunkel { display: block !important; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .logo-hell { display: none !important; }
  html[data-theme="system"] .logo-dunkel { display: block !important; }
}
.app-name { font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .55rem .45rem 1rem; }
.neu-knopf { width: 100%; margin-bottom: 1rem; }
#nav { display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.nav-gruppe { font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1rem .75rem .35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-eintrag { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: 8px; color: var(--text-2); font-weight: 550; font-size: .92rem; text-decoration: none; min-height: 40px; }
.nav-eintrag .icon { width: 1.2rem; height: 1.2rem; color: var(--muted); }
.nav-eintrag:hover { background: var(--surface-2); text-decoration: none; }
.nav-eintrag.aktiv { background: var(--brand-50); color: var(--brand-700); }
.nav-eintrag.aktiv .icon { color: var(--brand); }
.nav-eintrag .zaehler { margin-left: auto; font-size: .72rem; font-weight: 650; padding: .05rem .5rem; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.nav-eintrag .zaehler.warn { background: var(--warn-bg); color: var(--warn); }
.nav-unter { margin-left: 1.35rem; padding-left: .55rem; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: .1rem; }
.nav-unter .nav-eintrag { min-height: 36px; padding: .4rem .65rem; font-size: .88rem; }
.sidebar-fuss { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: .9rem; }
.nutzer-zeile { display: flex; align-items: center; gap: .65rem; padding: 0 .45rem .55rem; }
.nutzer-zeile .name { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.nutzer-zeile .rolle-text { color: var(--muted); font-size: .8rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: .85rem; flex: none; background: var(--brand); }
.avatar.f1 { background: #7a5af8; } .avatar.f2 { background: #0e9384; } .avatar.f3 { background: #dd6b20; } .avatar.f4 { background: #d92d7a; } .avatar.f5 { background: #4e5ba6; }
.nav-hintergrund { display: none; }

/* ------------------------------------------------------------ Kopfzeile */
.hauptbereich { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; height: 60px; padding: 0 1.5rem 0 2rem;
  background: var(--topbar-bg); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.suchfeld { display: flex; align-items: center; gap: .5rem; height: 38px; width: 100%; max-width: 34rem; padding: 0 .7rem 0 .85rem; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--input-bg); color: var(--muted); box-shadow: var(--shadow-sm); cursor: text; }
.suchfeld:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.suchfeld input { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 0; height: 100%; outline: none; }
.suchfeld input:focus { box-shadow: none; }
#sync { font-size: .8rem; color: var(--muted); white-space: nowrap; }
#sync.fehler { color: var(--error); font-weight: 600; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); cursor: pointer; box-shadow: none; flex: none; }
.icon-button:hover { background: var(--surface-3); border: 0; }
.icon-button .icon { width: 1.25rem; height: 1.25rem; }
.nur-schmal { display: none; }
body.ohne-login .sidebar, body.ohne-login .topbar, body.ohne-login .nav-hintergrund { display: none; }
body.ohne-login .hauptbereich { margin-left: 0; }

/* ------------------------------------------------------------ Inhalt */
.page { max-width: 1240px; margin: 0 auto; padding: 1.75rem 2rem 3rem; }
.page.narrow { max-width: 760px; }
.laden { color: var(--muted); text-align: center; padding: 3rem 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head h1 { margin: 0; }
.page-head .untertitel { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.page-head .aktionen { display: flex; gap: .5rem; flex-wrap: wrap; }
.brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); margin: 0 0 .35rem; }
.brotkrumen a { color: var(--muted); }
.brotkrumen a:hover { color: var(--brand); }
.brotkrumen .icon { width: .9rem; height: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }

/* Karten & Listen */
.karte, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.karte.flush { padding: 0; overflow: hidden; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.karte-kopf h2, .karte-kopf h3 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.karte-kopf h2 .icon, .karte-kopf h3 .icon { color: var(--muted); }
.karte > h3:first-child { font-size: 1.05rem; }
.zeile { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.zeile > .wachsen { flex: 1; min-width: 0; }
.liste { display: flex; flex-direction: column; gap: .5rem; }
.eintrag { display: flex; align-items: center; gap: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .12s, box-shadow .12s; font: inherit; text-align: left; width: 100%; min-height: 0; }
.eintrag:hover { border-color: var(--brand-100); box-shadow: var(--shadow); text-decoration: none; }
.eintrag:hover .titel { color: var(--brand); }
.eintrag .wachsen { flex: 1; min-width: 0; }
.eintrag .titel { font-weight: 650; color: var(--text); }
.eintrag .nr { width: 2rem; height: 2rem; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font: 600 .84rem var(--mono); flex-shrink: 0; }
.eintrag-rechts { text-align: right; display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.gruppe-titel { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.4rem 0 .5rem; font-weight: 650; }

/* Fortschritt */
.balken { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: .45rem; }
.balken.dick { height: 8px; margin-top: .8rem; }
.balken > div { height: 100%; background: var(--brand); border-radius: 3px; }

/* Abzeichen, Status */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .14rem .55rem; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.brand, .badge.art { background: var(--brand-50); color: var(--brand-700); }
.badge.info { background: var(--info-bg); color: var(--info-strong); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.fehler { background: var(--error-bg); color: var(--error); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.lila { background: var(--purple-bg); color: var(--purple); }
.badge.art-din { background: var(--info-bg); color: var(--info-strong); }
.badge.art-express { background: var(--warn-bg); color: var(--warn); }
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--info-bg); color: var(--info-strong); white-space: nowrap; }
.status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.status.abgeschlossen { background: var(--ok-bg); color: var(--ok); }
.status.archiviert { background: var(--surface-3); color: var(--muted); }
.ampel { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.ampel i { width: .85rem; height: .85rem; border-radius: 50%; display: inline-block; border: 1px solid var(--border-strong); }
.ampel.vorschlag { opacity: .85; font-style: italic; }
.a-rot i { background: var(--rot); } .a-rotgelb i { background: linear-gradient(90deg, var(--rot) 50%, var(--gelb) 50%); }
.a-gelb i { background: var(--gelb); } .a-gelbgruen i { background: linear-gradient(90deg, var(--gelb) 50%, var(--gruen) 50%); }
.a-gruen i { background: var(--gruen); } .a-leer i { background: var(--surface-3); }
.number, .nummer { font: 600 .84rem var(--mono); color: var(--brand-700); background: var(--brand-50); border-radius: 6px; padding: .05rem .4rem; }

/* ------------------------------------------------------------ Buttons
   .primaer = Hauptaktion (blau), Standard = sekundär (weiß mit Rahmen), .ghost, .gefahr, .klein */
button, .knopf { font: 600 .92rem var(--font); cursor: pointer; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  padding: 0 1rem; min-height: 38px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
button:hover, .knopf:hover { background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; color: var(--text); }
button.primaer, .knopf.primaer { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
button.primaer:hover, .knopf.primaer:hover { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-brand); }
button.ghost, .knopf.ghost { background: transparent; border-color: transparent; box-shadow: none; }
button.ghost:hover, .knopf.ghost:hover { background: var(--surface-3); }
button.gefahr, .knopf.gefahr { color: var(--error); border-color: var(--error-border); background: var(--surface); }
button.gefahr:hover, .knopf.gefahr:hover { background: var(--error-bg); color: var(--error); border-color: var(--error); }
button.klein, .knopf.klein { min-height: 32px; padding: 0 .7rem; font-size: .84rem; }
button.link { background: none; border: 0; box-shadow: none; color: var(--brand); padding: 0; min-height: 0; font-weight: 600; }
button:disabled, .knopf[aria-disabled="true"] { opacity: .55; cursor: default; }
button .icon, .knopf .icon { width: 1.05rem; height: 1.05rem; }
.knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; align-items: center; }
.knoepfe button.an { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }

/* ------------------------------------------------------------ Formulare */
input, select, textarea { font: inherit; font-size: .95rem; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: .5rem .75rem; width: 100%; min-height: 40px; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; box-shadow: none; accent-color: var(--brand); }
input[type="file"] { border-style: dashed; background: var(--surface-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
button:focus-visible, .knopf:focus-visible, a:focus-visible, .eintrag:focus-visible, .icon-button:focus-visible, label[role="button"]:focus-visible { outline: none; box-shadow: var(--focus); }
label.feld, div.feld { display: block; margin-bottom: .9rem; }
label.feld > span, div.feld > span { display: block; font-size: .88rem; font-weight: 600; color: var(--text-2); margin-bottom: .3rem; }
.feld-hilfe { font-size: .85rem; color: var(--muted); margin: -.55rem 0 .9rem; }
.check-zeile { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--text); }

/* Chips (Auswahl) */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { min-height: 36px; padding: 0 .8rem; border-radius: 999px; font-size: .88rem; font-weight: 500; border: 1px solid var(--border-strong); background: var(--input-bg); color: var(--text-2); box-shadow: none; }
.chip:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.chip.an { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip.q { font-size: .78rem; min-height: 30px; padding: 0 .6rem; }
.chip.auto { cursor: default; font-style: italic; }

/* ------------------------------------------------------------ Prüfpunkt */
.punkt { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm); }
.punkt.fertig { border-left-color: var(--ok); }
.punkt.pflicht-offen { border-left-color: var(--error); }
.punkt.klaerung { border-left-color: var(--warn); }
.punkt.entfaellt { opacity: .65; }
.punkt .kopf { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .55rem; }
.punkt .kopf .label { flex: 1; font-weight: 650; }
.punkt .stern { color: var(--error); margin-left: .15rem; }
.punkt .hilfe { font-size: .85rem; color: var(--muted); margin: -.25rem 0 .55rem; }
.punkt .meta { margin-top: .65rem; display: flex; flex-direction: column; gap: .45rem; }
.punkt .meta .zeile { gap: .4rem; }
.punkt .meta select { width: auto; min-height: 34px; padding: .2rem .5rem; font-size: .85rem; }
.rolle { font-size: .7rem; font-weight: 700; border-radius: 5px; padding: .05rem .38rem; background: var(--brand-50); color: var(--brand-700); }
.einheit { display: flex; align-items: center; gap: .4rem; } .einheit span { color: var(--muted); }

/* Listen-Einträge in Prüfpunkten */
.item { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .85rem; margin-bottom: .5rem; background: var(--surface-2); }
.item-kopf { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.item-kopf .wachsen { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .1rem .8rem; margin-top: .65rem; }
.item-felder label.feld.breit { grid-column: 1 / -1; }
.pw { display: flex; gap: .35rem; align-items: center; }
.pw input { flex: 1; }
.pw .gesetzt { flex: 1; font-family: var(--mono); color: var(--ok); }

/* Fotos */
.thumbs { display: flex; flex-wrap: wrap; gap: .4rem; }
.thumb { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; font-size: .75rem; color: var(--muted); text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb b { position: absolute; left: 2px; top: 2px; background: rgba(16, 24, 40, .7); color: #fff; font-size: .65rem; padding: 0 .25rem; border-radius: 4px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.galerie .karte { margin: 0; padding: .65rem; }
.galerie img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: block; }
.galerie .pdf { height: 170px; display: grid; place-items: center; background: var(--surface-2); border-radius: 8px; font-weight: 700; color: var(--muted); text-decoration: none; }
.galerie label.feld { margin: .45rem 0 0; }

/* Ampel-Box */
.ampelbox { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.2rem; background: var(--surface); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.ampelbox ul { margin: .3rem 0 .6rem 1.1rem; padding: 0; font-size: .9rem; }
.stufen { display: flex; gap: .3rem; flex-wrap: wrap; margin: .4rem 0 .6rem; }
.stufen button { min-height: 36px; font-size: .82rem; padding: 0 .65rem; }
.stufen button.an { border-color: var(--brand); box-shadow: var(--focus); color: var(--brand-700); }

/* Hinweise (dauerhaft in der Seite) */
.hinweis { border-radius: var(--radius); padding: .7rem .9rem; font-size: .9rem; margin-bottom: .6rem; background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); }
.hinweis.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.hinweis.fehler { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.hinweis.ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.hinweis a { font-weight: 600; color: inherit; text-decoration: underline; }
.hinweis .leise { color: inherit; opacity: .8; }

/* ------------------------------------------------------------ Tabellen */
.tabelle { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); color: var(--muted); font-weight: 650; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
tbody tr:hover, table tr:hover > td { background: var(--row-hover); }
tr:last-child > td { border-bottom: 0; }
td.mono { font-family: var(--mono); font-size: .85rem; word-break: break-all; }
td .sub, .sub { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }

/* Segmentierte Steuerung */
.segment { display: inline-flex; gap: .2rem; padding: .25rem; background: var(--surface-3); border-radius: var(--radius); flex-wrap: wrap; }
.segment button { border: 0; box-shadow: none; background: transparent; min-height: 32px; padding: 0 .8rem; font-size: .86rem; color: var(--text-2); border-radius: 7px; }
.segment button:hover { background: transparent; color: var(--text); }
.segment button.an { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.navfuss { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.4rem; }
.navfuss button { flex: 1; min-width: 0; font-size: .88rem; }
.navfuss button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ Meldungen */
.meldungen { position: fixed; top: 70px; left: calc(var(--sidebar-w) + 2rem); right: 2rem; z-index: 35; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; }
body.ohne-login .meldungen { left: 1rem; right: 1rem; }
.meldung { pointer-events: auto; display: flex; align-items: flex-start; gap: .6rem; width: 100%; max-width: 640px; padding: .7rem .6rem .7rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--info-border); background: var(--info-bg); color: var(--info-text); box-shadow: var(--shadow-lg); font-size: .92rem; animation: einblenden .15s ease-out; }
.meldung.ok { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-text); }
.meldung.fehler { border-color: var(--error-border); background: var(--error-bg); color: var(--error-text); }
.meldung > span { flex: 1; padding-top: .05rem; }
.meldung button { min-height: 26px; width: 26px; padding: 0; border: 0; background: transparent; box-shadow: none; color: inherit; }
.meldung button:hover { background: rgba(127, 127, 127, .15); color: inherit; }
html[data-theme="dark"] .meldung { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .meldung { background: var(--surface-2); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ Anmeldung, Dialoge */
body.ohne-login { background: radial-gradient(60rem 30rem at 15% -10%, rgba(15, 107, 175, .08), transparent 60%), radial-gradient(50rem 30rem at 110% 110%, rgba(15, 107, 175, .06), transparent 60%), var(--bg); background-attachment: fixed; }
html[data-theme="dark"] body.ohne-login { background: var(--bg); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] body.ohne-login { background: var(--bg); } }
.login { max-width: 440px; margin: 9vh auto 0; }
.login.karte { border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2rem 2rem 1.6rem; }
.login h1 { font-size: 1.35rem; text-align: center; margin-bottom: 1.2rem; }
.login-logo { display: block; height: 42px; width: auto; margin: 0 auto 1.2rem; }
.voll { width: 100%; }
.qr { background: #fff; padding: .5rem; border-radius: 8px; display: inline-block; }
dialog { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); max-width: min(640px, calc(100% - 2rem)); width: 100%; padding: 1.4rem 1.5rem; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: var(--backdrop); }
dialog h3 { font-size: 1.1rem; }
dialog.breit { max-width: min(720px, calc(100% - 2rem)); }
pre.mail { white-space: pre-wrap; font: inherit; }
pre.roh { white-space: pre-wrap; word-break: break-word; font: .8rem/1.45 var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; max-height: 70vh; overflow: auto; margin: .6rem 0 0; }
details > summary { cursor: pointer; font-weight: 600; color: var(--text-2); padding: .3rem 0; }
details > summary:hover { color: var(--brand); }

/* ------------------------------------------------------------ Folge-ISA, Domain-Check, Quellen */
.vorher { margin: .4rem 0 .55rem; padding: .5rem .7rem; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 6px; font-size: .9rem; }
.vorher.gleich { opacity: .75; }
.vorher button { margin-top: .35rem; }
.dc-tab { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .3rem; }
.dc-tab th { text-align: left; font-weight: 600; padding: .3rem .7rem .3rem 0; white-space: nowrap; vertical-align: top; width: 1%; background: none; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--muted); }
.dc-tab td { padding: .3rem .4rem .3rem 0; vertical-align: top; word-break: break-word; }
.dc-tab tr + tr { border-top: 1px solid var(--border); }
.dc-tab th, .dc-tab td { border-bottom: 0; }

/* ------------------------------------------------------------ Kunden, Erhebungsarten, CyberRisiko-Check */
.art-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; margin-bottom: .7rem; }
.art-karte { display: flex; align-items: flex-start; gap: .75rem; text-align: left; padding: .75rem .85rem; min-height: 0; font-weight: 400; color: var(--text); }
.art-karte .art-kuerzel { width: 46px; height: 46px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font: 700 .78rem var(--mono); }
.art-karte .art-titel { font-weight: 650; margin-bottom: .1rem; }
.art-karte:hover { border-color: var(--brand); background: var(--surface); }
.art-karte.an { border-color: var(--brand); box-shadow: var(--focus); background: var(--brand-50); }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.stufen-zeile { display: grid; grid-template-columns: 1fr 2fr auto; gap: .6rem; align-items: end; }
.din-gesamt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.din-gesamt .din-name { color: var(--on-brand); opacity: .85; }
.din-name { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); line-height: 1.3; font-weight: 650; }
.din-stufe { font-weight: 700; font-size: .95rem; margin-top: .15rem; }
.din-wert { font-size: 1.8rem; font-weight: 800; white-space: nowrap; }
.din-wert small { font-size: 1rem; font-weight: 400; opacity: .8; }
.din-kacheln { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-bottom: .7rem; }
.din-kachel { min-width: 0; overflow-wrap: anywhere; hyphens: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .5rem; text-align: center; background: var(--surface-2); }
.din-kachel .din-name { min-height: 2.6em; }
.din-wert-k { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.din-nr { display: inline-block; font: 600 .72rem var(--mono); padding: .05rem .4rem; margin-right: .4rem; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); vertical-align: .1em; }
.din-nr.top { background: var(--error-bg); color: var(--error); }
.leitfrage { font-size: .88rem; margin: .1rem 0 .4rem; font-style: italic; color: var(--muted); }
.express-banner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); margin-bottom: .6rem; background: var(--info-bg); border: 1px solid var(--info-border); }
.express-banner.bad { background: var(--error-bg); border-color: var(--error-border); }
.express-banner.good { background: var(--ok-bg); border-color: var(--ok-border); }
.express-banner .num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.express-banner.bad .num { color: var(--error); }
.express-banner.good .num { color: var(--ok); }
.express-banner .txt { font-weight: 700; }
.express-liste { list-style: none; padding: 0; margin: .5rem 0; }
.express-liste li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }

/* Kennzahlen-Kacheln */
.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kennzahl { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
a.kennzahl:hover { border-color: var(--brand-100); box-shadow: var(--shadow); text-decoration: none; }
.kennzahl .k-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.kennzahl .k-icon .icon { width: 1.35rem; height: 1.35rem; }
.kennzahl.tone-amber .k-icon { background: var(--warn-bg); color: var(--warn); }
.kennzahl.tone-red .k-icon { background: var(--error-bg); color: var(--error); }
.kennzahl.tone-green .k-icon { background: var(--ok-bg); color: var(--ok); }
.kennzahl .k-wert { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.kennzahl .k-label { color: var(--muted); font-size: .85rem; }

/* Netzwerkdaten */
.verbrauch { display: flex; flex-direction: column; gap: .2rem; min-width: 10rem; }
.verbrauch .v-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 2.6rem; gap: .4rem; align-items: center; font-size: .8rem; }
.verbrauch .balken { margin: 0; height: 6px; }
.verbrauch .balken.niedrig > div { background: var(--error); }
.verbrauch .balken.mittel > div { background: var(--warn); }
.kv { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: .3rem 1rem; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.quelle { font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------ ISA: Übersicht nach Ablauf, Bereiche, Menü, Handy-Leiste */
.nav-teil { font-size: .66rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .75rem .65rem .15rem; }
.ueb-kopf { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; }
.ring { width: 84px; height: 84px; flex: none; }
.ring circle { fill: none; stroke-width: 9; }
.ring .spur { stroke: var(--surface-3); }
.ring .wert { stroke: var(--brand); stroke-linecap: round; }
.ring text { fill: var(--text); font: 700 17px var(--font); }
.phasen { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.phasen li { border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .8rem; }
.phasen li.aktiv { border-color: var(--info-border); background: var(--info-bg); }
.phasen .p-titel { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.phasen li.aktiv .p-titel { color: var(--info-strong); }
.phasen .p-wert { font-weight: 600; font-size: .92rem; margin-top: .1rem; }
.phasen .p-sub { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.phasen .balken { margin-top: .4rem; }
.karte-titel { font-size: 1.05rem; margin: 0 0 .5rem; }
.ueb-zwei { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; margin-bottom: 1rem; }
.ueb-zwei > .karte { margin-bottom: 0; }
.naechste { list-style: none; margin: 0; padding: 0; }
.naechste li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.naechste .n-zahl { width: 2.1rem; height: 2.1rem; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .88rem; flex: none; background: var(--brand-50); color: var(--brand-700); }
.naechste .n-zahl.warn { background: var(--warn-bg); color: var(--warn); }
.hinweise-karte { display: flex; flex-direction: column; }
.hinweise-karte .hinweis { margin-bottom: .5rem; }
.vorort { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.kachel-inventar { flex: 2 1 420px; border: 2px solid var(--brand); margin-bottom: 0; }
.kachel-icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.kachel-icon .icon { width: 1.35rem; height: 1.35rem; }
.inv-zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.inv-zahl { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .75rem; color: var(--text); text-decoration: none; }
.inv-zahl:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.inv-zahl b { display: block; font-size: 1.45rem; line-height: 1.15; }
.inv-zahl span { font-size: .82rem; color: var(--text-2); }
.vorort-klein { flex: 1 1 300px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.kachel { display: flex; flex-direction: column; gap: .35rem; color: var(--text); text-decoration: none; margin-bottom: 0; padding: 1rem 1.1rem; }
.kachel:hover, .kat:hover { border-color: var(--border-strong); text-decoration: none; }
.kat-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.kat { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; margin: 0; color: var(--text); text-decoration: none; }
.kat .nr { width: 2rem; height: 2rem; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font: 600 .84rem var(--mono); flex: none; }
.kat .titel { font-weight: 600; font-size: .92rem; line-height: 1.3; margin-bottom: .35rem; }
.kat-ampel { display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 3.8rem; flex: none; font-size: .7rem; color: var(--text-2); text-align: center; }
.kat-ampel i { width: 1rem; height: 1rem; border-radius: 50%; display: block; position: relative; border: 1px solid var(--border-strong); }
.kat-ampel.vorschlag i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); }
.kat-ampel.leer i { background: transparent; border: 2px dashed var(--border-strong); }
.bereich-abschnitt { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: 1.15rem; margin: 1.8rem 0 .8rem; padding-top: .9rem; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.bereich-abschnitt:first-of-type { border-top: 0; padding-top: 0; }
.menue { position: relative; }
.menue > button { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; }
.menue > button .icon { width: 1.25rem; height: 1.25rem; }
.menue-panel { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 30; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .35rem; display: flex; flex-direction: column; gap: .1rem; }
.menue-panel[hidden] { display: none; }
.menue-panel button { justify-content: flex-start; text-align: left; width: 100%; border: 0; background: transparent; box-shadow: none; font-weight: 550; padding: .5rem .7rem; min-height: 40px; }
.menue-panel button:hover { background: var(--surface-2); }
.menue-panel button.gefahr { color: var(--error); }
.menue-panel .m-titel { font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .35rem .7rem .1rem; }
.menue-panel .m-trenner { border-top: 1px solid var(--border); margin: .3rem 0; }
.reiter { display: flex; flex-wrap: wrap; gap: .25rem; background: var(--surface-3); padding: .25rem; border-radius: 12px; margin-bottom: 1rem; }
.reiter button { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .85rem; border: 1px solid transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.reiter button:hover { background: var(--surface-2); border-color: transparent; }
.reiter button.an { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.reiter .n { font-size: .72rem; font-weight: 650; padding: .05rem .5rem; border-radius: 999px; background: var(--surface); color: var(--text-2); }
.reiter button.an .n { background: var(--brand); color: var(--on-brand); }
.schnell { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .75rem .9rem; margin-bottom: 1rem; }
.schnell-titel { font-weight: 650; font-size: .88rem; color: var(--text-2); margin-right: .2rem; }
.schnell label { flex: 1 1 150px; }
.schnell input, .schnell select { width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scan-liste { display: flex; flex-direction: column; }
.scan-zeile { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--border); }
.scan-zeile select { width: auto; min-width: 190px; }
.inv-scan { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius); padding: .5rem .7rem; margin-bottom: .7rem; text-decoration: none; }
.inv-scan:hover { color: var(--text); text-decoration: none; }
.tabbar { display: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1250px) { .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .nav-schalter:checked ~ .sidebar { transform: none; }
  .nav-schalter:checked ~ .nav-hintergrund { display: block; position: fixed; inset: 0; z-index: 39; background: var(--backdrop); }
  .hauptbereich { margin-left: 0; }
  .nur-schmal { display: inline-grid; }
  .topbar { padding: 0 1rem; gap: .4rem; }
  .page { padding: 1.25rem 1rem 3rem; }
  .meldungen { left: 1rem; right: 1rem; top: 68px; }
  .din-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  h1 { font-size: 1.35rem; }
  .nur-breit { display: none; }
  .karte, .punkt { padding: 1rem; }
  .item-felder, .raster2, .stufen-zeile { grid-template-columns: 1fr; }
  .navfuss { position: sticky; bottom: 0; background: var(--bg); padding: .5rem 0; margin-bottom: -1rem; }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .kennzahl { padding: .8rem; gap: .6rem; }
  .kennzahl .k-wert { font-size: 1.35rem; }
  .eintrag { flex-wrap: wrap; }
  .eintrag-rechts { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; width: 100%; }
  .page-head .aktionen { width: 100%; }
  #sync { display: none; }
  .kv { grid-template-columns: 1fr; gap: 0 1rem; }
  .kv dd { margin-bottom: .4rem; }
  table.karten thead { display: none; }
  table.karten, table.karten tbody, table.karten tr, table.karten td { display: block; width: 100%; }
  table.karten tr { border-bottom: 1px solid var(--border); padding: .4rem 0; }
  table.karten td { border: 0; padding: .2rem .85rem; }
  table.karten td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 960px) {
  body.mit-tabbar .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  body.mit-tabbar .page { padding-bottom: 6.5rem; }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 58px; padding: 0; font-size: .7rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; }
  .tabbar .aktiv { color: var(--brand); }
  .tabbar .icon { width: 1.35rem; height: 1.35rem; }
}
@media (max-width: 700px) {
  body.mit-tabbar .navfuss { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .hinweise-karte .nur-breit-block { display: none; }
  .ring { width: 64px; height: 64px; }
  .kachel-inventar .zeile .knopf { display: none; }
  .phasen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .naechste li { flex-wrap: wrap; }
  .naechste li > .wachsen { flex-basis: calc(100% - 3rem); }
  .naechste li .knopf { margin-left: 2.9rem; }
  .kat-raster { grid-template-columns: 1fr; }
  .reiter { flex-wrap: nowrap; overflow-x: auto; }
  .reiter button { flex: none; }
  .schnell-titel { flex-basis: 100%; }
}
body.ohne-login .tabbar { display: none; }
@media (max-width: 460px) { .din-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (pointer: coarse) {
  button, .knopf, input, select, .segment button, .nav-eintrag { min-height: 44px; }
  button.klein, .knopf.klein, .chip.q { min-height: 40px; }
  .icon-button { width: 44px; height: 44px; }
  input[type="checkbox"], input[type="radio"] { min-height: 0; width: 1.2rem; height: 1.2rem; }
}
@media print {
  .sidebar, .topbar, .meldungen, .knoepfe, .navfuss, button { display: none !important; }
  .hauptbereich { margin: 0; }
  body { background: #fff; color: #000; } .karte { box-shadow: none; }
}

/* Leere Zustände */
.karte.leer { text-align: center; padding: 2.5rem 1.5rem; }
.leer-icon { color: var(--border-strong); margin-bottom: .6rem; }
.leer-icon .icon { width: 2.6rem; height: 2.6rem; stroke-width: 1.5; }
.leer-titel { font-weight: 650; color: var(--text-2); margin-bottom: .25rem; }
.karte.leer .knoepfe { justify-content: center; }
details.karte > summary { margin: -.2rem 0; }
td.mono.ip { white-space: nowrap; word-break: normal; }
.badge.art-vorort { background: var(--purple-bg); color: var(--purple); }
/* Drag & Drop von Fotos: Feld unter dem Mauszeiger */
.ablage-aktiv { outline: 2px dashed var(--brand); outline-offset: 3px; border-radius: var(--radius); background-color: var(--brand-50); }
/* Schwärzen-Werkzeug (Export für Claude) */
dialog.schwaerzen-dialog { max-width: min(1160px, calc(100% - 1rem)); width: auto; }
.schwaerzen-flaeche { display: flex; justify-content: center; background: var(--surface-3); border-radius: var(--radius); padding: .5rem; }
canvas.schwaerzen { touch-action: none; cursor: crosshair; max-width: 100%; height: auto; border-radius: 4px; }

/* Maßnahmenplan zum M365-Sicherheitscheck */
.mp-massnahme { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .9rem; margin-bottom: .6rem; background: var(--surface-2); }
.mp-massnahme.aus { opacity: .62; }
.mp-massnahme .mp-titel { font-weight: 650; gap: .5rem; flex-wrap: nowrap; flex: 1 1 15rem; }
.mp-kopf { flex-wrap: wrap; }
.mp-kopf > span { margin-left: auto; }
.mp-massnahme .mp-summe { font-weight: 600; color: var(--text-2); }
.mp-massnahme .mp-befund { margin: .2rem 0 .5rem; }
.mp-massnahme select.mp-prio { width: auto; max-width: 100%; }
.mp-massnahme input.mp-menge { width: 6rem; }
.mp-massnahme .mp-mengenzeile { flex-wrap: nowrap; gap: .4rem; }
.mp-massnahme .mp-mengenzeile button { white-space: nowrap; }
.mp-massnahme .mp-zahl { text-align: right; white-space: nowrap; }
.mp-massnahme .mp-bem { display: block; margin-top: .6rem; }
.mp-massnahme .mp-bem textarea { margin-top: .25rem; min-height: 56px; }
.mp-massnahme details { margin-top: .4rem; }
@media (max-width: 700px) { .mp-massnahme .mp-zahl { text-align: left; } }
