* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
a { color: var(--coral-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grundaufbau */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 14px 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
/* Bei wenig Höhe scrollt die Navigation, die Leiste mit Konto, Sprache und Abmelden bleibt unten sichtbar. */
.side > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-logo { width: 30px; height: 38px; background: var(--logo-url) center / contain no-repeat; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.1; }
.brand-sub { font-size: 11.5px; color: var(--soft); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--soft); text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.nav-link:hover { background: var(--peach-soft); color: var(--ink); }
.nav-link.on { background: var(--peach); color: var(--ink); border-color: var(--coral); }
.nav-link svg { width: 18px; height: 18px; flex: none; }
.nav-group { margin-top: 14px; padding: 0 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.side-foot { margin-top: auto; padding: 12px 8px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--soft); display: flex; flex-direction: column; gap: 6px; position: sticky; bottom: 0; background: var(--panel); }
.side-user { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sprache-wahl { display: inline-flex; align-self: flex-start; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.sprache-knopf { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); cursor: pointer; }
.sprache-knopf:hover { color: var(--ink); }
.sprache-knopf.on { background: var(--peach); color: var(--ink); }
.auth-sprache { display: flex; justify-content: center; margin-top: 18px; }
.main { padding: 28px 32px 48px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--soft); margin-top: 4px; }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; padding: 10px 12px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 8px 0 0; }
  .brand-sub, .nav-group { display: none; }
  .nav-link { padding: 8px 10px; }
  .nav-link span { display: none; }
  .side { overflow: visible; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; position: static; background: none; }
  .side-user { display: none; }
  .main { padding: 18px 16px 40px; }
}

/* Karten und Tabellen */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
.table td.wrap { overflow-wrap: anywhere; }
.table td.folder-name { overflow-wrap: anywhere; }
.table td.folder-level-1 { padding-left: 34px; }
.table td.folder-level-2 { padding-left: 58px; }
/* Schmale Fenster: Namen nicht Buchstabe für Buchstabe umbrechen, die Tabelle scrollt stattdessen in ihrer Karte. */
.table.breit { min-width: 40rem; }
.muted { color: var(--soft); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.empty { padding: 32px 16px; text-align: center; color: var(--soft); }

/* Formulare */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--soft); margin-top: 5px; }
/* Ein Hinweistext direkt vor einem Feld (Auslöser-Formulare, KI-Einstellungen, Rückmeldung): Abstand zum Titel des Feldes. */
:is(p, div).muted + .field, .hint + .field { margin-top: var(--abstand-hinweis); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--cream); font-size: 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--coral); background: var(--panel); box-shadow: var(--focus-ring); outline: none; }
textarea { min-height: 90px; resize: vertical; }
textarea.code, input.code { font-family: var(--mono); font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.field > label.check { display: flex; text-transform: none; letter-spacing: 0; color: var(--ink); }
.field > label.check:not(.small) { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
/* Zwei Zahlenfelder nebeneinander: gleich breit, damit der Platzhalter („Standard: 15“) lesbar bleibt. */
.row.zahlenzeile > .field { flex: 1 1 8rem; min-width: 0; }
/* Ein Eingabefeld mit Knopf daneben: das Feld nimmt den Platz, der Knopf sitzt auf seiner Unterkante. */
.row.fragezeile { align-items: flex-end; }
.row.fragezeile > .field { flex: 1 1 16rem; min-width: 0; margin-bottom: 0; }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-weight: 600; }

.pair-row { display: grid; grid-template-columns: 1fr minmax(140px, 200px); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pair-row:last-child { border-bottom: 0; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--coral); color: var(--coral-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--on-accent); }
.btn.primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: var(--on-accent); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: transparent; }

/* Kennzeichen */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px; font-family: var(--sans); font-size: 12px; font-weight: 700; background: var(--soft-soft); color: var(--soft); }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.ok { background: var(--g-soft); color: var(--g); }
.tag.warn { background: var(--y-soft); color: var(--ink); }
.tag.warn::before { background: var(--y); }
.tag.info { background: var(--b-soft); color: var(--b); }
.tag.bad { background: var(--danger-soft); color: var(--danger); }
.tag.plain::before { display: none; }

/* Fenster und Meldungen */
.scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 100; }
.modal { background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.modal.wide { width: min(860px, 100%); }
.modal-head { padding: 20px 22px 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-body { padding: 4px 22px 18px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: var(--on-accent); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 360px; font-weight: 600; }
.toast.bad { background: var(--danger); }
.secret-box { font-family: var(--mono); background: var(--cream); border: 1px dashed var(--coral); border-radius: var(--radius-sm); padding: 12px; word-break: break-all; user-select: all; }

/* Anmeldung */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: min(420px, 100%); }
.auth-card .brand { padding: 0 0 18px; }
.auth-card > p.muted { margin: 0 0 16px; }

/* Neuigkeiten */
.news-entry + .news-entry { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.news-version { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.news-item { margin: 8px 0 0; }
.news-item strong { display: block; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.editor-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.editor-head h1 { display: flex; align-items: center; gap: 10px; }
.steps { display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; text-align: left; width: 100%; }
.step:hover { border-color: var(--coral); }
.step.on { border-color: var(--coral); background: var(--peach-soft); box-shadow: var(--focus-ring); }
.step .kat { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--peach); color: var(--coral-dark); font-weight: 700; flex: none; font-size: 13px; }
.step .kat.steuerung { background: var(--b-soft); color: var(--b); }
.step .kat.daten { background: var(--y-soft); color: var(--ink); }
.step .kat.auslöser { background: var(--g-soft); color: var(--g); }
/* Die Kategorie „app“ heißt wie die Seitenklasse .app (Raster, volle Höhe): ohne diese Gegenregel wird das Symbol eines App-Schritts so hoch wie das Fenster. */
.step .kat.app { min-height: 0; grid-template-columns: none; grid-template-rows: none; }
/* Ein langes Ergebnis wie „übersprungen nach Fehler“ rutscht auf schmalen Bildschirmen unter den Namen, statt ihn auf drei Buchstaben zu drücken. */
.step .meta { min-width: 0; flex: 1 1 120px; }
.step .tag { margin-left: auto; }
.step .meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step .meta small { color: var(--soft); }
.step .state { font-size: 12px; font-weight: 700; }
.indent { border-left: 2px dashed var(--line); margin-left: 14px; padding-left: 12px; display: flex; flex-direction: column; gap: 6px; }
.route { border: 1px dashed var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.route-head { font-size: 12px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.route.fehler { border-color: var(--danger-soft); }
.add { align-self: flex-start; }
.panel h2 { margin-bottom: 4px; }
.panel .section, .modal-body .section { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.kv-list { display: flex; flex-direction: column; gap: 6px; }
.kv-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; }
.kv-row.pflichtfeld { grid-template-columns: 1.6fr 1fr auto; }
.kv-row.uhrzeit { grid-template-columns: minmax(7rem, 12rem) auto; justify-content: start; }
/* Eingaben eines Auslösers: Name und Entfernen in der ersten Zeile, Beschreibung, Art und Pflicht darunter über die volle Breite. */
.kv-row.eingabe-zeile { grid-template-columns: minmax(0, 1fr) auto; }
.kv-row.eingabe-zeile > .row { grid-column: 1 / -1; order: 2; }
.cond { display: flex; flex-direction: column; gap: 8px; }
.cond-group { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cond-rule { display: flex; flex-direction: column; gap: 6px; }
.cond-rule + .cond-rule { border-top: 1px dashed var(--line); padding-top: 8px; }
.cond-rule-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cond-rule-row select { flex: 0 1 200px; }
.cond-rule-row input[type=text] { flex: 1 1 140px; min-width: 0; }
.cond-rule .cond-and, .cond-or { font-size: 12px; font-weight: 700; color: var(--soft); text-transform: uppercase; }
.check.small { font-size: 12px; font-weight: 500; }
.issues { margin: 0 0 14px; padding-left: 18px; }
.issues li.fehler { color: var(--danger); }
.issues li.warnung { color: var(--ink); }
/* Hinweis über der Liste: sie zeigt noch den Stand vor der letzten Änderung (die Prüfung läuft oder ist nicht gelungen). */
.issues-stand { font-size: 12.5px; margin: 2px 0 8px; }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.picker-item { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); cursor: pointer; }
.picker-item:hover { border-color: var(--coral); background: var(--peach-soft); }
.picker-item small { display: block; color: var(--soft); margin-top: 3px; }
/* Bausteinauswahl: Suchfeld bleibt stehen, nur die Liste scrollt; feste Höhe, damit das Fenster beim Tippen nicht springt. */
.picker-scroll { height: clamp(160px, calc(88vh - 290px), 560px); overflow-y: auto; padding: 0 4px 4px 0; }
.picker-scroll > :first-child { margin-top: 0; }
.picker-status { font-size: 12.5px; margin: -6px 0 8px; }
.picker-status:empty { display: none; }
.picker-bereich { margin: 14px 0 2px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--coral-dark); }
.picker-app { margin: 10px 0 6px; font-size: 13.5px; font-weight: 700; }
.picker-item[aria-selected="true"] { border-color: var(--coral); background: var(--peach-soft); box-shadow: var(--focus-ring); }
.flow-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; color: inherit; }
.flow-card:hover { border-color: var(--coral); }
.flow-list { display: flex; flex-direction: column; gap: 8px; }
.folder-title { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 600; margin: -8px 0 12px; }
.hint + .field-error { margin-top: 4px; }
.add-between { align-self: center; padding: 0 10px; line-height: 1.4; opacity: .55; }
.add-between:hover, .add-between:focus-visible { opacity: 1; }
.btn-bar { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .kv-row { grid-template-columns: 1fr; } .editor-head .btn-bar .btn { flex: 1 1 auto; } }
.editor > * { min-width: 0; }
.panel select, .panel input, .panel textarea { max-width: 100%; }
td .tag + .tag, td .tag { margin-left: 6px; }
.editor.with-helper { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) minmax(260px, 340px); }
@media (max-width: 1300px) { .editor.with-helper { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); } .editor.with-helper .helper { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .editor.with-helper { grid-template-columns: 1fr; } }
@media (min-width: 1301px) { .helper { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.muted.small, p.small { font-size: 12.5px; }
.data-picker { display: flex; flex-direction: column; gap: 8px; }
.picker-tree { display: flex; flex-direction: column; gap: 6px; }
.picker-source summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; margin-top: 4px; background: var(--panel); cursor: pointer; }
.picker-row:hover { border-color: var(--coral); background: var(--peach-soft); }
.picker-path { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.picker-type { font-size: 11px; color: var(--soft); }
.picker-value { grid-column: 1 / -1; font-size: 12px; color: var(--soft); overflow-wrap: anywhere; }
.picker-example { grid-column: 1 / -1; font-size: 11.5px; overflow-wrap: anywhere; }
.json-view { max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: var(--cream); border-radius: var(--radius-sm); padding: 10px; }
.notice { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; background: var(--b-soft); color: var(--ink); }
.notice.warn { background: var(--y-soft); }
.notice.bad { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
/* Entwurf der KI im Editor und Erklärung am Lauf: Erklärung, offene Fragen und Fehler untereinander */
.ki-leiste p { margin: 8px 0 0; }
.ki-leiste-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ki-erklaerung { white-space: pre-wrap; }
.ki-liste { margin: 6px 0 0; padding-left: 18px; }
.ki-fehler li { color: var(--danger); }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.timeline-item.has-error { border-color: var(--danger); }
.timeline-head { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.timeline-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pass { border-left: 2px solid var(--line); padding-left: 10px; }
.pass > summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px 0; }
.attempt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.unterschritte { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid var(--line); min-width: 0; }
.unterschritt > summary { cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.unterschritt[data-status="failed"], .unterschritt[data-status="unclear"] { background: var(--danger-soft); border-radius: var(--radius-sm); padding: 4px 8px; }
.unterschritt > .data-block, .unterschritt > p { margin-top: 6px; }
.werkzeuge, .werkzeuge-liste { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.werkzeug { padding: 12px 14px; }
.werkzeug-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.werkzeug-kopf .btn { margin-left: auto; }
.werkzeug-fest > summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.data-block > summary { cursor: pointer; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.filters .field { margin: 0; min-width: 130px; flex: 1 1 130px; }
.filters .field[role=search] { min-width: 180px; flex: 2 1 200px; }
.export-row { margin: 0 0 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.error-groups { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.errors-card { border-color: var(--danger-soft); }
.nowrap { white-space: nowrap; }
.flow-card .meta { min-width: 0; }
@media (max-width: 600px) { .flow-card { flex-direction: column; align-items: flex-start; } .flow-actions { justify-content: flex-start; width: 100%; } }
.flow-link { text-decoration: none; color: inherit; flex: 1; min-width: 0; display: block; }
.flow-link:hover strong { color: var(--coral-dark); }
.flow-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--g); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus-ring); }
.switch.disabled { cursor: not-allowed; opacity: .55; }
.danger-text { color: var(--danger); }

/* Datenspeicher */
.store-fields { overflow-wrap: anywhere; }
.data-table th { text-transform: none; letter-spacing: 0; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.data-table td.cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table td.cell-key { white-space: nowrap; }
.data-table th.num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover td { background: var(--peach-soft); }
.cell-link { display: block; max-width: 240px; padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 12.5px; color: var(--coral-dark); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-link:hover { text-decoration: underline; }
.table-wrap:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.store-limits { margin-top: 14px; }
.fields-editor { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 170px) auto auto; gap: 8px; align-items: center; }
.fields-editor .field-error { margin: 4px 0 0; }
.field-pflicht { white-space: nowrap; }
.field-actions { flex-wrap: nowrap; gap: 4px; }
@media (max-width: 600px) {
  .field-row { grid-template-columns: minmax(0, 1fr) auto; }
  .field-row > input[type=text] { grid-column: 1 / -1; }
  .field-row > .field-actions { grid-column: 1 / -1; }
}
.record-form .field > label { text-transform: none; letter-spacing: 0; font-size: 13px; }
.import-dialog h3 { margin: 18px 0 8px; }
.import-spalte { font-weight: 600; overflow-wrap: anywhere; }
.import-dialog .pair-row > label { margin: 0; }
.import-dialog .check.disabled { opacity: .55; }
.import-dialog .check { margin-bottom: 6px; }
.import-ergebnis, .import-fehler, .import-warnung { margin-top: 12px; }
.import-warnung:empty, .import-ergebnis:empty, .import-fehler:empty { display: none; }
ul.import-errors { margin: 8px 0 0; padding-left: 18px; font-weight: 500; }
.danger-zone { border-color: var(--danger-soft); margin-top: 16px; }
.danger-zone h2 { margin-bottom: 4px; }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.danger-row:first-of-type { border-top: 0; }

/* Labels, Suche und Papierkorb */
.nav-search { padding: 0 2px 10px; }
.nav-search input { padding: 8px 12px; }
.flow-main { flex: 1; min-width: 0; }
.flow-filter { margin-bottom: 8px; }
.label-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.label-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 10px; border-radius: 100px; border: 1px solid var(--line); background: var(--peach-soft); color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.label-chip:hover { border-color: var(--coral); }
.label-remove { padding: 0; border: 0; background: none; color: var(--soft); font-size: 11px; line-height: 1; cursor: pointer; }
.label-remove:hover { color: var(--danger); }
.label-editor .row { flex-wrap: nowrap; }
.label-editor .row input { flex: 1 1 auto; width: auto; min-width: 0; }
.label-editor .label-list { margin: 0 0 8px; }
.label-editor .label-list:empty { display: none; }
@media (max-width: 820px) { .nav-search { flex: 1 1 140px; padding: 0; } }
.trash-note { margin-top: 12px; }
.preis-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.preis-kopf, .preis-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) minmax(0, 150px) 96px; gap: 8px; align-items: center; }
.preis-kopf { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--soft); }
.preis-feld { display: block; }
.preis-bez { display: none; }
@media (max-width: 600px) {
  .preis-kopf { display: none; }
  .preis-liste { margin-top: 14px; }
  .preis-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .preis-row > .preis-modell, .preis-row > .preis-weg { grid-column: 1 / -1; }
  .preis-bez { display: block; margin-bottom: 4px; font-size: 12px; color: var(--soft); }
}

/* Übersicht */
.overview { display: flex; flex-direction: column; gap: 16px; }
.overview > .card, .overview-cols .card { margin-top: 0; min-width: 0; }
.overview-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.overview-cols > * { min-width: 0; }
.overview-col { display: flex; flex-direction: column; gap: 16px; }
.card-sub { margin: -6px 0 12px; font-size: 12.5px; color: var(--soft); }
.card-foot { margin-top: 12px; font-size: 12.5px; color: var(--soft); }
.chart-readout { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 24px; margin-bottom: 6px; font-size: 13px; }
.chart-key { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--soft); }
.sw-ok { background: var(--g); }
.sw-halt { background: var(--b); }
.sw-unklar { background: var(--y); }
.sw-bad { background: var(--danger); }
.chart-wrap { width: 100%; min-height: 220px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid, .chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-tick, .chart-xlabel { fill: var(--soft); font-family: var(--sans); font-size: 11px; }
.chart-day { cursor: pointer; }
.chart-day:focus { outline: none; }
.chart-hit { fill: transparent; }
.chart-sel { fill: none; stroke: none; }
.chart-day.on .chart-sel { fill: var(--peach-soft); }
.chart-day:focus-visible .chart-sel { stroke: var(--coral); stroke-width: 1.5; }
.seg-ok { fill: var(--g); }
.seg-halt { fill: var(--b); }
.seg-unklar { fill: var(--y); }
.seg-bad { fill: var(--danger); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart-table { margin-top: 14px; }
.chart-table summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--coral-dark); padding: 4px 0; }
.chart-table .table-wrap { margin-top: 8px; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ov-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ov-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.ov-list li:first-child { border-top: 0; padding-top: 0; }
.ov-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ov-meta .tag { margin-left: 0; }
.ov-title { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ov-title:hover { color: var(--coral-dark); text-decoration: underline; }
.ov-text { overflow-wrap: anywhere; }
.ki-table td { vertical-align: top; }
.ki-table td.num { white-space: nowrap; }
.ki-table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 700; }
.ov-note { margin: 12px 0 0; font-size: 12.5px; }

/* Ablauf importieren */
.transfer-dialog > p:first-child { margin-bottom: 14px; }
.transfer-dialog h3 { margin: 18px 0 8px; }
.transfer-dialog .pair-row { grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); }
.transfer-dialog .pair-name label { font-weight: 600; overflow-wrap: anywhere; }
.transfer-dialog .pair-name .field-error { margin: 4px 0 0; }
.transfer-dialog .notice { margin-top: 12px; }
@media (max-width: 600px) { .transfer-dialog .pair-row { grid-template-columns: minmax(0, 1fr); } }

/* Vorlagen-Galerie im Dialog „Neuer Ablauf“ */
.vorlagen-bereich { max-height: min(340px, 40vh); overflow-y: auto; padding: 4px; margin: 0 -4px 6px; }
.vorlagen-bereich h3 { margin: 14px 0 8px; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--soft); }
.vorlagen-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.vorlage-karte { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.vorlage-wahl { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.vorlage-wahl:hover { border-color: var(--coral); }
.vorlage-wahl.on { border-color: var(--coral); background: var(--peach-soft); box-shadow: var(--focus-ring); }
.vorlage-karte > .btn { align-self: flex-start; }
.vorlage-frage { border-radius: var(--radius-sm); padding: 10px 12px; background: var(--danger-soft); }
.vorlage-frage p { margin: 0 0 8px; }
.vorlagen-angaben { margin: 14px 0 10px; }
.vorlage-dialog > p { margin-bottom: 14px; }

/* Bild im Editor: Umschalter, Leiste, Fläche und die Teile des Bilds (Karten, Linien, Schilder, Plus-Knöpfe, Rahmen) */
.btn svg { width: 16px; height: 16px; flex: none; }
.editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn-gruppe, .umschalter { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.btn-gruppe .btn, .umschalter .btn { border: 0; border-radius: 0; background: transparent; }
.btn-gruppe .btn + .btn, .umschalter .btn + .btn { border-left: 1px solid var(--line); }
.btn-gruppe .btn:hover:not(:disabled), .umschalter .btn:hover:not(:disabled) { background: var(--peach-soft); }
.umschalter .btn[aria-pressed="true"] { background: var(--peach); color: var(--coral-dark); }
@media (max-width: 899px) { .nur-breit { display: none; } }

.editor.mit-bild { grid-template-columns: minmax(0, 1fr); }
/* Mit dem Bild soll die Fläche ohne Blättern sichtbar sein: lange Meldungslisten scrollen in ihrer Karte. */
.issues-kompakt .issues { max-height: 5.5em; overflow-y: auto; margin-bottom: 0; }
.issues-kompakt h3 { margin-bottom: 6px; }
.editor.mit-bild .helper { position: static; max-height: none; overflow: visible; }
@media (min-width: 1200px) {
  .editor.mit-bild { grid-template-columns: minmax(0, 1fr) clamp(380px, 26vw, 440px); }
  .editor.mit-bild .bild-flaeche { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 16px; }
  .editor.mit-bild .panel { grid-column: 2; grid-row: 1; }
  .editor.mit-bild .helper { grid-column: 2; grid-row: 2; }
}

.bild-flaeche { display: flex; flex-direction: column; height: max(420px, calc(100vh - 216px)); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.bild-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.bild-hinweis { margin: 0; font-size: 12px; }
.bild-zeichnung { position: relative; flex: 1 1 auto; min-height: 0; }
.bild { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; font-family: var(--sans); }
.bild.zieht { cursor: grabbing; }
.bild-raster-punkt { fill: var(--soft-soft); }

.bild-rahmen { fill: var(--peach-soft); fill-opacity: .7; stroke: var(--coral); stroke-opacity: .4; stroke-width: 1.5; stroke-dasharray: 7 5; }
.bild-rahmen.wenn { fill: var(--b-soft); fill-opacity: .6; stroke: var(--b); stroke-opacity: .45; }

.bild-kante { fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bild-pfeil { fill: var(--soft); stroke: none; }
.bild-linie.fehler .bild-kante { stroke: var(--danger); stroke-dasharray: 6 5; }
.bild-linie.fehler .bild-pfeil { fill: var(--danger); }
.bild-linie.gelaufen .bild-kante { stroke: var(--g); stroke-width: 2.4; }
.bild-linie.gelaufen .bild-pfeil { fill: var(--g); }
.bild-linie.fehler.gelaufen .bild-kante { stroke: var(--danger); }
.bild-linie.fehler.gelaufen .bild-pfeil { fill: var(--danger); }
.bild-stummel { fill: none; stroke: var(--soft); stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; opacity: .7; }

.bild-karte { cursor: pointer; outline: none; --kat-flaeche: var(--peach); --kat-farbe: var(--coral-dark); }
.bild-karte.kat-steuerung { --kat-flaeche: var(--b-soft); --kat-farbe: var(--b); }
.bild-karte.kat-daten { --kat-flaeche: var(--y-soft); --kat-farbe: var(--ink); }
.bild-karte.kat-auslöser { --kat-flaeche: var(--g-soft); --kat-farbe: var(--g); }
.bild-rumpf { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.bild-karte:hover .bild-rumpf { stroke: var(--coral); }
.bild-karte.on .bild-rumpf { fill: var(--peach-soft); stroke: var(--coral); stroke-width: 2; }
.bild-fokus { display: none; fill: none; stroke: var(--coral); stroke-opacity: .3; stroke-width: 4; }
.bild-karte.on .bild-fokus, .bild-karte:focus-visible .bild-fokus { display: inline; }
.bild-karte:focus-visible .bild-fokus { stroke-opacity: .7; }
.bild-zeichenflaeche { fill: var(--kat-flaeche); }
.bild-zeichen { fill: var(--kat-farbe); font-size: 13px; font-weight: 700; pointer-events: none; }
.bild-name { fill: var(--ink); font-size: 13px; font-weight: 700; pointer-events: none; }
.bild-art { fill: var(--soft); font-size: 11.5px; pointer-events: none; }
.bild-punkt { stroke: var(--panel); stroke-width: 2; }
.bild-punkt.bad { fill: var(--danger); }
.bild-punkt.warn { fill: var(--y); }
.bild-notiz path { fill: none; stroke: var(--soft); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bild-karte.lauf-succeeded .bild-rumpf { stroke: var(--g); }
.bild-karte.lauf-failed .bild-rumpf { stroke: var(--danger); }
.bild-karte.lauf-unclear .bild-rumpf, .bild-karte.lauf-error_handled .bild-rumpf, .bild-karte.lauf-skipped .bild-rumpf { stroke: var(--y); }
.bild-karte.lauf-running .bild-rumpf { stroke: var(--b); }
.bild-karte.vergleich-neu .bild-rumpf { stroke: var(--g); stroke-width: 2.6; fill: var(--g-soft); }
.bild-karte.vergleich-geaendert .bild-rumpf { stroke: var(--y); stroke-width: 2.6; fill: var(--y-soft); }

.bild-schild, .bild-weg-entfernen, .bild-plus { cursor: pointer; outline: none; }
.bild-schild-flaeche { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.bild-schild-text { fill: var(--soft); font-size: 11px; font-weight: 600; pointer-events: none; }
.bild-schild:hover .bild-schild-flaeche, .bild-schild:focus-visible .bild-schild-flaeche { stroke: var(--coral); }
.bild-schild.fehler .bild-schild-flaeche { stroke: var(--danger); stroke-opacity: .5; }
.bild-schild.fehler .bild-schild-text { fill: var(--danger); }
.bild-schild.sonst .bild-schild-flaeche { stroke-dasharray: 3 3; }
.bild-filter .bild-schild-flaeche { fill: var(--b-soft); stroke: transparent; }
.bild-filter .bild-schild-text { fill: var(--ink); }
.bild-weg-entfernen-flaeche { fill: transparent; }
.bild-weg-entfernen path { fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; }
.bild-weg-entfernen:hover .bild-weg-entfernen-flaeche, .bild-weg-entfernen:focus-visible .bild-weg-entfernen-flaeche { fill: var(--danger-soft); }
.bild-weg-entfernen:hover path, .bild-weg-entfernen:focus-visible path { stroke: var(--danger); }

.bild-plus-kreis { fill: var(--panel); stroke: var(--soft); stroke-opacity: .6; stroke-width: 1.4; }
.bild-plus path { fill: none; stroke: var(--soft); stroke-width: 1.8; stroke-linecap: round; }
.bild-plus:hover .bild-plus-kreis, .bild-plus:focus-visible .bild-plus-kreis { fill: var(--coral); stroke: var(--coral); stroke-opacity: 1; }
.bild-plus:hover path, .bild-plus:focus-visible path { stroke: var(--on-accent); }

/* Lauf im Bild: die Farben erklärt eine Legende in der Leiste (Editor und Lauf-Detailseite); die Lauf-Detailseite zeigt das Bild
   über der Zeitleiste, unter 900 px entfällt es und die Zeitleiste gilt allein. Die gewählte Karte behält die Farbe ihres Ergebnisses
   (Auswahl: Füllung und Ring), sonst sähe man auf dem Bild nicht mehr, dass der angeklickte Schritt fehlschlug. */
.lauf-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; }
.lauf-legende .tag { padding: 2px 8px; font-size: 11.5px; }
.lauf-bild { margin-bottom: 16px; }
.versionen { display: grid; gap: 16px; }
.versionen-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.versionen-ergebnis h3 { margin: 0 0 8px; font-size: 15px; }
.versionen-aenderungen, .versionen-felder { margin: 0; padding: 0; list-style: none; }
.versionen-aenderungen { display: grid; gap: 8px; margin-bottom: 12px; }
.versionen-aenderung { overflow-wrap: anywhere; }
.versionen-felder { margin: 4px 0 0 18px; color: var(--soft); font-size: 13px; }
.versionen-bild .bild-flaeche { height: clamp(240px, 40vh, 440px); }
.versionen-notiz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.versionen-notiz label { font-size: 13px; font-weight: 700; color: var(--soft); }
.versionen-notiz input { flex: 1 1 320px; max-width: 640px; }
@media (max-width: 899px) { .versionen-bild { display: none; } }
/* Schmal: jede Version als kleine Karte (Kreuz links, Angaben rechts untereinander), damit Notiz und „Wiederherstellen“ ohne Seitwärtswischen erreichbar sind. */
@media (max-width: 600px) {
  .versionen .table thead { display: none; }
  .versionen .table, .versionen .table tbody { display: block; }
  .versionen .table tr.versionen-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .versionen .table tr.versionen-zeile:last-child { border-bottom: 0; }
  .versionen .table tr.versionen-zeile td { display: block; padding: 0; border: 0; }
  .versionen .table tr.versionen-zeile td:first-child { grid-row: 1 / span 5; align-self: start; padding-top: 2px; }
  .versionen .table tr.versionen-zeile td:not(:first-child) { grid-column: 2; }
  .versionen .table tr.versionen-zeile td.actions { text-align: left; white-space: normal; padding-top: 6px; }
}
.lauf-bild .bild-flaeche { height: clamp(280px, 46vh, 480px); }
@media (max-width: 899px) { .lauf-bild { display: none; } }

/* Apps: Übersicht, Seite einer App und Verwaltung. Die Symbole zeigen ein Kürzel in den KRUU-Farben, keine Logos fremder Firmen. */
.app-bereich { margin-top: 22px; }
.app-gruppe { margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.app-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: inherit; text-decoration: none; }
.app-card:hover, .app-card:focus-visible { border-color: var(--coral); }
.app-card-text { display: flex; flex-direction: column; min-width: 0; }
.app-card-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-symbol { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--coral); background: var(--peach); color: var(--coral-dark); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.app-symbol.farbe-1 { border-color: var(--g); background: var(--g-soft); color: var(--ink); }
.app-symbol.farbe-2 { border-color: var(--y); background: var(--y-soft); color: var(--ink); }
.app-symbol.farbe-3 { border-color: var(--b); background: var(--b-soft); color: var(--ink); }
.app-symbol.farbe-4 { border-color: var(--pk); background: var(--peach-soft); color: var(--ink); }
.app-kopf { display: flex; align-items: center; gap: 14px; }
.app-kopf .app-symbol { width: 52px; height: 52px; font-size: 18px; }
.app-kopf h1 { margin-bottom: 4px; }
.app-liste { margin: 6px 0 0; padding-left: 18px; }
.zugang-text { white-space: pre-line; margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.form-ok { color: var(--ink); background: var(--g-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-weight: 600; }
.rm-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.wissen-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; font-size: 13px; }
.wissen-treffer { margin-top: 12px; }

/* Karte der Abhängigkeiten */
.karte-flaeche { width: 100%; min-height: 160px; }
.karte-svg { display: block; width: 100%; height: auto; overflow: visible; }
.karte-titel { fill: var(--soft); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.karte-linie { fill: none; stroke: var(--soft); stroke-width: 1.2; opacity: .55; }
.karte-linie.an { stroke: var(--coral); stroke-width: 2; opacity: 1; }
.karte-linie.dim { opacity: .12; }
.karte-knoten { outline: none; }
.karte-knoten[role="link"] { cursor: pointer; }
.karte-box { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.karte-knoten.an .karte-box, .karte-knoten:focus-visible .karte-box { stroke: var(--coral); stroke-width: 1.5; }
.karte-knoten.dim { opacity: .35; }
.karte-name { fill: var(--ink); font-family: var(--sans); font-size: 13px; }
.karte-plakette { fill: var(--soft); font-family: var(--sans); font-size: 11px; font-weight: 600; }
.karte-balken { fill: var(--soft); }
.karte-balken.art-ablauf { fill: var(--coral); }
.karte-balken.art-verbindung { fill: var(--b); }
.karte-balken.art-app { fill: var(--pk); }
.karte-balken.art-datenspeicher { fill: var(--g); }
.karte-balken.art-global { fill: var(--y); }
.karte-liste section { margin-bottom: 18px; }
.karte-liste h2 { font-size: 15px; margin: 0 0 6px; }
.karte-liste ul { list-style: none; margin: 0; padding: 0; }
.karte-liste li { padding: 8px 0; border-top: 1px solid var(--line); }
