/* DDoSGuard Panel v2 – Ergänzungen für das lauffähige Panel (Bausteine, die die Muster nur beschreiben).
   Farben ausschließlich über Token aus tokens.css. Signalrot nur für Angriff/Under Attack Mode. */

/* ---------- weitere Zeichen ---------- */
.ic-download { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.ic-grip { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01'/%3E%3C/svg%3E"); }
.ic-up { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }

/* ---------- Grundlage ---------- */
h1[tabindex="-1"]:focus { outline: none; }
#app { min-height: 100dvh; }
.noscript { max-width: 40rem; margin: 64px auto; padding: 0 16px; font-size: var(--fs-16); }
.lead { color: var(--text-2); max-width: 46rem; margin-bottom: var(--s-3); }
.lead-kopf { margin-top: calc(var(--s-3) * -1); margin-bottom: var(--s-5); }
.unter { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.abschnitt-aktion { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.form-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.sechead.erst { margin-top: var(--s-2); }
.abschnitt > .hinweis, .abschnitt > .leer { margin-bottom: var(--s-3); }
.hinweise { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.hinweise:empty { display: none; }
.liste-schlicht { display: grid; gap: 2px; }
code { font-family: var(--mono); font-size: .92em; }
.stufe small.dim, .zeile .feld small.dim { color: var(--text-3); }
.leer-zeile { color: var(--text-2); padding: var(--s-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.balken-leer { color: var(--text-2); }
.fehlerseite { max-width: 40rem; display: grid; gap: var(--s-3); padding-top: var(--s-5); }
.fehlerseite h1 { font-size: var(--fs-26); line-height: var(--lh-26); font-weight: 600; letter-spacing: -.02em; }
.fehlerseite p { color: var(--text-2); }
.fehlerseite .actions { display: flex; gap: var(--s-2); margin-top: var(--s-2); }

/* Aktualität */
.stand-inline { white-space: nowrap; }
.stand.is-fehler, .stand-inline.is-fehler { color: var(--warn-text); font-weight: 500; }

/* Offline-Leiste (klebt oben) */
.offline { position: sticky; top: 0; z-index: var(--z-bar); display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-5); background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--warn-text); font-weight: 500; }
@media (max-width: 899px) { .offline { top: 56px; } }

/* ---------- Zugang ---------- */
.zugang { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: var(--s-5) 40px; background: var(--bg); }
.zugang-kopf { padding-bottom: var(--s-7); }
.zugang-main { max-width: 400px; width: 100%; padding-top: 8vh; display: grid; align-content: start; gap: var(--s-4); }
.zugang-main h1 { font-size: var(--fs-26); line-height: var(--lh-26); font-weight: 600; letter-spacing: -.02em; }
.zugang-form { gap: var(--s-4); }
.zugang-form .btn-lg { width: 100%; }
.zugang-domain { color: var(--text-2); }
.zugang-lead { color: var(--text-2); }
.zugang-meldung:empty { display: none; }
.zugang-links { display: grid; gap: var(--s-2); color: var(--text-2); }
.zugang-fuss { padding-top: var(--s-6); color: var(--text-3); font-size: var(--fs-12); }
.zugang-fuss a { color: var(--text-3); }
.pw-reihe { position: relative; display: block; }
.pw-reihe .input { padding-right: 96px; }
.pw-zeigen { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.pw-zaehler { min-height: var(--lh-13); }

/* ---------- Rahmen ---------- */
.navscrim { position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1); background: var(--scrim); }
@media (min-width: 900px) { .navscrim { display: none; } }
.nav .seg > a { text-decoration: none; }
.navgroup ul { display: grid; gap: 2px; }
.navlink .lz + .lz, .navlink .count + .lz { margin-left: var(--s-1); }
.navfoot .row .linkbtn { font-size: var(--fs-13); }
.sitepick { color: var(--text); }
.sitepick-pop { margin-top: var(--s-1); padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-1); display: grid; gap: var(--s-2); max-height: 50vh; overflow: auto; }
.sitepick-liste { display: grid; gap: 2px; }
.sitepick-opt { display: flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-2); border-radius: var(--r-1); cursor: pointer; font-size: var(--fs-13); }
.sitepick-opt .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitepick-opt:hover, .sitepick-opt:focus-visible { background: var(--surface-hover); }
.sitepick-opt[aria-selected="true"] { background: var(--selected); font-weight: 600; }
.topbar .ort span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mit-aktionsleiste .page { padding-bottom: 120px; }

/* Seitenkopf der Website */
.kopfbereich { margin-bottom: var(--s-1); }
.adminzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--s-3); color: var(--text-2); font-size: var(--fs-13); }
.adminzeile .ic { color: var(--text-3); }
.h1-site { display: grid; gap: 2px; }
.h1-site .ansicht { font: 500 var(--fs-13)/var(--lh-13) var(--font); letter-spacing: 0; color: var(--text-3); }
.h1-site .domain { font-family: var(--mono); letter-spacing: -.03em; overflow-wrap: anywhere; }
.kopfbereich > .hinweis { margin-bottom: var(--s-5); }
.uam-aktiv { gap: var(--s-2); }
@media (max-width: 639px) { .pagehead .uam-kopf { display: none; } }

/* ---------- Lage ---------- */
.lage-wrap { margin-bottom: var(--s-2); }
.lage-wrap:empty { display: none; }
.geschuetzt-seit { display: flex; align-items: center; gap: var(--s-2); color: var(--text-2); }
.lage .btn[disabled] { opacity: .7; }

/* ---------- Kennzahlen, Eckdaten ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; margin-bottom: var(--s-2); }
.kennzahlen > div { padding: var(--s-3) var(--s-4); border-left: 1px solid var(--line); margin-left: -1px; }
.kennzahlen dt { color: var(--text-2); font-size: var(--fs-13); }
.kennzahlen dd { margin-top: 2px; }
.kennzahlen .kz-wert { display: block; font: 600 var(--fs-20)/var(--lh-20) var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kennzahlen small { display: block; color: var(--text-3); font-size: var(--fs-12); line-height: var(--lh-12); margin-top: 2px; }
.kennzahlen .is-warn { background: var(--warn-soft); }
.kennzahlen .is-warn .kz-wert { color: var(--warn-text); }
.eckdaten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-5); margin-bottom: var(--s-4); }
.eckdaten > div { display: contents; }
.eckdaten dt { color: var(--text-3); font-size: var(--fs-13); padding-top: 2px; }
.eckdaten dd { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Skelett ---------- */
.skel-gruppe { display: grid; gap: 14px; padding: var(--s-3) 0; }
.skel-flaeche { height: 220px; border-radius: var(--r-2); }

/* ---------- Diagramm ---------- */
.chart-wrap { margin-top: var(--s-1); }
.chart-fehler:empty { display: none; }
.chart-fehler { margin-bottom: var(--s-3); }
.chart .plot { outline-offset: 4px; }
.chart .plot:focus-visible { outline: 2px solid var(--focus); }
.chart-ebene { position: absolute; inset: 0; pointer-events: none; }
.chart .marke { z-index: 2; }
.chart .marke-ende { border-left-width: 1px; }
.chart .marke-flaeche { position: absolute; top: 0; bottom: 0; background: var(--signal-soft); opacity: .55; }
.chart svg { position: relative; z-index: 1; }
.chart-kreuz { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--text-2); z-index: 3; pointer-events: none; }
.chart-tip { position: absolute; top: 8px; z-index: 4; transform: translateX(12px); display: grid; gap: 2px; min-width: 190px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-1); font-size: var(--fs-12); line-height: var(--lh-12); pointer-events: none; }
.chart-tip.is-links { transform: translateX(calc(-100% - 12px)); }
.chart-tip b { font-weight: 600; margin-bottom: 2px; }
.chart-tip > span { display: flex; align-items: center; gap: 6px; }
.chart-tip .mono { margin-left: auto; }
.chart-tip .sw { width: 8px; height: 8px; }
.chart-leer { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-2); z-index: 2; }
.chart-laden { position: absolute; inset: 0; height: auto; z-index: 2; }
.chart-tabelle { margin-top: var(--s-3); max-height: 360px; overflow: auto; }
.chartfoot .linkbtn { font-size: inherit; }

/* ---------- Reiter ---------- */
.reiter { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); overflow-x: auto; scrollbar-width: thin; }
.reiter a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); color: var(--text-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter a:hover { color: var(--text); }
.reiter a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- Regellisten ---------- */
.regelname { font-weight: 600; color: var(--text); text-decoration: none; }
.regelname:hover { text-decoration: underline; color: var(--accent); }
.bed-text { color: var(--text-2); max-width: 28rem; }
td.anfrage { overflow-wrap: anywhere; word-break: break-word; }
.pos { display: inline-flex; align-items: center; gap: var(--s-1); }
.griff { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--text-3); cursor: grab; touch-action: none; }
.griff:hover { background: var(--surface-hover); color: var(--text); }
.griff[disabled] { cursor: not-allowed; opacity: .5; }
.tbl tr.is-gezogen td { background: var(--selected); }
.tbl tr.ziel-oben td { box-shadow: inset 0 2px 0 var(--accent); }
.tbl tr.ziel-unten td { box-shadow: inset 0 -2px 0 var(--accent); }
.tbl tr.is-neu td { background: var(--accent-soft); transition: background 600ms var(--ease); }
.zeilenhinweis { margin-top: var(--s-1); font-size: var(--fs-12); color: var(--text-2); }
.tbl .is-aus .regelname { color: var(--text-2); }

/* Schalter ohne Text, klein in Tabellen */
.schalter-nackt { display: inline-flex; }
.schalter-klein { align-items: center; gap: var(--s-2); font-size: var(--fs-13); white-space: nowrap; }
.schalter .err { margin-top: var(--s-1); }
.schalter input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.schalter input[disabled] { opacity: .5; cursor: not-allowed; }

/* Kontrollkästchen */
.kasten { display: flex; align-items: flex-start; gap: var(--s-2); cursor: pointer; }
.kasten input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.kasten input:checked { background: var(--accent); border-color: var(--accent); }
.kasten input:checked::after { content: ""; width: 10px; height: 10px; background: var(--on-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.kasten input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kasten input[disabled] { opacity: .5; cursor: not-allowed; }
.kasten small { display: block; color: var(--text-3); font-size: var(--fs-13); }
.kaesten { display: grid; gap: var(--s-2); }

/* Auswahlzeilen gedimmt / gesperrt */
.wahl label.is-aus { cursor: not-allowed; color: var(--text-3); }
.wahl input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wahl input[disabled] { cursor: not-allowed; opacity: .6; }
.wahl-wrap { display: grid; gap: 6px; }
.stufenwahl { display: grid; gap: var(--s-3); max-width: var(--form-max); }
.stufenwahl.is-gedimmt .wahl { opacity: .55; }

/* ---------- Formulare ---------- */
.textarea { min-height: auto; padding: var(--s-2) var(--s-3); line-height: var(--lh-14); resize: vertical; }
.textarea.mono { font-family: var(--mono); font-size: var(--fs-13); }
.textarea[aria-invalid="true"] { border-color: var(--warn-text); box-shadow: inset 0 0 0 1px var(--warn-text); background: var(--warn-soft); }
.textarea:disabled { background: var(--surface-sunk); color: var(--text-3); }
.feldreihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.mehr { border: 1px solid var(--line); border-radius: var(--r-2); }
.mehr > summary { min-height: var(--h); display: flex; align-items: center; padding: 0 var(--s-3); cursor: pointer; font-weight: 500; }
.mehr > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.mehr[open] > summary { border-bottom: 1px solid var(--line); }
.mehr > .fs, .mehr > div { padding: var(--s-4) var(--s-3); }
.inline-anlegen { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3) var(--s-4); padding: var(--s-4); margin-bottom: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-sunk); }
.inline-anlegen > .field { flex: 1 1 200px; min-width: 0; }
.inline-anlegen > .kasten { align-self: center; }
.inline-anlegen > .err { flex-basis: 100%; }
.inline-knopf { align-self: flex-start; padding-top: 26px; }
.inline-add { display: flex; gap: var(--s-2); }
.inline-add .input { flex: 1; }
.liste-eingabe { display: grid; }
.liste-eingabe li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 6px 0 6px var(--s-2); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.liste-eingabe:empty { display: none; }
.savebar .savebar-text { font-weight: 500; }
.savebar[hidden] { display: none !important; }
.datei-reihe { display: flex; align-items: center; gap: var(--s-2); }
.domain-vorschau:empty { display: none; }
.inline-form { gap: var(--s-3); }
.select-klein select { min-height: var(--h-sm); font-size: var(--fs-13); }

/* Bedingungs-Editor */
.bed-editor { display: grid; gap: var(--s-3); }
.bed-editor > .seg { justify-self: start; }
.bed-wert { display: grid; gap: var(--s-2); }
.bed-add { display: flex; align-items: center; gap: var(--s-2); }
.hop-gruppe { display: grid; gap: var(--s-2); }
.hop-gruppe > legend { font-weight: 500; margin-bottom: var(--s-2); }
.hops { display: grid; gap: var(--s-2); }
.hop-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.4fr) var(--h); gap: var(--s-2); align-items: start; }
.hop-zeile .err { grid-column: 1 / -1; }
.merk .satz b { font-weight: 600; }

/* ---------- Dialoge (native <dialog>) ---------- */
dialog.dlg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: var(--text); }
dialog.dlg[open] { display: grid; }
dialog.dlg::backdrop { background: transparent; }
.dlg-box { position: relative; }
.dlg-box h2:focus { outline: none; }
.dlg-box .field label .mono { font-weight: 600; }
.dlg-fehler { margin: 0; }
.geheim { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-sunk); font-size: var(--fs-14); overflow-wrap: anywhere; word-break: break-all; color: var(--text); user-select: all; }
.geheim-codes { list-style: decimal inside; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px var(--s-4); user-select: text; }
.geheim-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 639px) { .geheim-codes { grid-template-columns: 1fr; } }

/* ---------- Menü ---------- */
.menu { position: absolute; z-index: var(--z-toast); min-width: 200px; padding: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-1); display: grid; }
.menu-item { display: flex; align-items: center; min-height: 36px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-1); background: none; color: var(--text); text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-hover); outline: none; }
.menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.menu-item[disabled] { color: var(--text-3); cursor: not-allowed; }
.menu-trenner { height: 1px; margin: var(--s-1) 0; background: var(--line); }

/* ---------- Toast ---------- */
.toast-text { flex: 1; }
.toast-aktion { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.toast-zu { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-1); background: none; color: inherit; opacity: .75; cursor: pointer; }
.toast-zu:hover { opacity: 1; }
.toast-warn .ic { color: var(--warn) !important; }
.toast :focus-visible { outline-color: var(--mint); }
.toasts:empty { display: none; }

/* ---------- Kopierwerte, Code ---------- */
.copy-wert { overflow-wrap: anywhere; }
.copy button.is-ok { color: var(--accent); }
.kopierliste { display: grid; gap: var(--s-2); justify-items: start; }
.codewrap { position: relative; display: grid; gap: var(--s-2); justify-items: start; }
.codeblock { margin: 0; width: 100%; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-sunk); font: 400 var(--fs-13)/var(--lh-14) var(--mono); overflow-x: auto; white-space: pre; }
.beispiel { margin-top: var(--s-2); }

/* ---------- Filter, Tabellenränder ---------- */
.filterleiste { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-3); }
.filterleiste > .field { flex: 1 1 180px; min-width: 0; }
.filter-knopf { flex: 0 0 auto !important; padding-top: 26px; }
.filterchips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.filterchips:empty { display: none; }
.chip-filter { height: auto; min-height: 26px; padding-right: 2px; }
.chip-filter button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--r-full); background: none; color: inherit; cursor: pointer; }
.chip-filter button:hover { background: var(--line); }
.chip-filter .ic { width: 12px; height: 12px; }
.tabellen-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); color: var(--text-3); font-size: var(--fs-13); }
.tabellen-fuss { margin-top: var(--s-3); }
.mehr-laden { margin-top: var(--s-3); }
.mehr-laden:empty { display: none; }
.ereignis-details td { background: var(--surface-sunk); }
.ereignis-details .eckdaten { margin: 0; }
.tbl caption { text-align: left; }
.tbl tr.is-angriff td { background: var(--signal-soft); }
.werkzeugzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }

/* Export */
.export { display: grid; gap: var(--s-2); }
.export-felder { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3) var(--s-4); }
.export-felder > .field { flex: 0 1 200px; }
.export-knopf { padding-top: 26px; }

/* ---------- Schrittfolge (Einrichtung, Rollout) ---------- */
.schritte { display: grid; gap: 0; counter-reset: none; }
.schritt { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-6); }
.schritt:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.schritt-nr { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); color: var(--text-2); font: 600 var(--fs-14)/1 var(--mono); }
.schritt.is-aktuell .schritt-nr { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.schritt.is-erledigt .schritt-nr { border-color: var(--accent); color: var(--accent); }
.schritt.is-erledigt::before { background: var(--accent-line); }
.schritt.is-offen > div { color: var(--text-2); }
.schritt-titel, .schritt h3 { font-size: var(--fs-16); line-height: 32px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.schritt-inhalt { display: grid; gap: var(--s-3); margin-top: var(--s-2); max-width: 52rem; }
.schritte-rollout .schritt { padding-bottom: var(--s-4); }
.schritte-rollout .schritt.is-aktuell > div { padding: 0 var(--s-3) var(--s-2); margin-left: calc(var(--s-3) * -1); border-radius: var(--r-2); background: var(--accent-soft); }
.fertig { display: grid; gap: var(--s-4); max-width: 46rem; }
.fertig-satz { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-26); line-height: var(--lh-26); font-weight: 600; letter-spacing: -.02em; }
.fertig-satz .lz { width: 14px; height: 14px; }
.ns-vergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-3); }
.ns-vergleich h3 { font-size: var(--fs-13); font-weight: 600; color: var(--text-2); margin-bottom: var(--s-1); }
.ns-status .fakten { margin-bottom: 0; }

/* 2FA */
.qr-reihe { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: flex-start; margin-top: var(--s-3); }
.qr { width: 180px; height: 180px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-2); background: #fff; }

/* Rollout-Reihenfolge */
.rollout-reihe { display: grid; border: 1px solid var(--line); border-radius: var(--r-2); }
.rollout-node { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-top: 1px solid var(--line); }
.rollout-node:first-child { border-top: 0; }
.rollout-node.is-aus { color: var(--text-3); }
.rollout-node small { display: block; color: var(--text-3); font-size: var(--fs-12); }
.reihe-knoepfe { display: flex; gap: var(--s-1); }
.satz-gross { font-size: var(--fs-16); line-height: var(--lh-16); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-sunk); }

/* Standortwahl / Karte */
.standort { display: grid; gap: var(--s-3); }
.koord { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-3); }
.karte { display: grid; gap: var(--s-2); }
.karte svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-sunk); cursor: crosshair; }
.karte svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.karte-land { fill: var(--line); stroke: var(--surface-sunk); stroke-width: 6; }
.karte-ort { fill: var(--text-3); cursor: pointer; }
.karte-ort:hover { fill: var(--accent); }
.karte-punkt { fill: var(--accent); stroke: var(--bg); stroke-width: 24; }
.quelle-klein { color: var(--text-3); font-size: var(--fs-12); }

/* Healthcheck-Origins */
.origins { display: grid; gap: var(--s-2); margin: var(--s-3) 0 var(--s-5); }
.origin { border: 1px solid var(--line); border-radius: var(--r-2); }
.origin > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-height: var(--h); padding: var(--s-2) var(--s-3); cursor: pointer; }
.origin > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.origin[open] > summary { border-bottom: 1px solid var(--line); }
.origin .tblwrap { border: 0; border-radius: 0; }

/* Liste mit Schaltern */
.schalterliste { display: grid; }
.schalterliste li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.schalterliste li:last-child { border-bottom: 1px solid var(--line); }

/* Admin */
.zeilen-kompakt .zeile-kompakt { grid-template-columns: 14px minmax(0, 1fr) auto; padding: 10px var(--s-2); }
.spalten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-6); }

/* ============ Breakpoints ============ */
@media (max-width: 1099px) {
  .spalten-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .zugang { padding: var(--s-4) var(--s-5); }
}
@media (max-width: 639px) {
  .zugang { padding: var(--s-4); }
  .zugang-main { padding-top: 2vh; }
  .feldreihe, .koord, .ns-vergleich { grid-template-columns: minmax(0, 1fr); }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kennzahlen > div { border-top: 1px solid var(--line); margin-top: -1px; }
  .eckdaten { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .eckdaten dd { margin-bottom: var(--s-2); }
  .inline-anlegen, .filterleiste, .export-felder { flex-direction: column; align-items: stretch; }
  .inline-anlegen > .field, .filterleiste > .field, .export-felder > .field { flex: none; }
  .inline-knopf, .filter-knopf, .export-knopf { padding-top: 0; }
  .inline-knopf .btn, .filter-knopf .btn, .export-knopf .btn { width: 100%; }
  .hop-zeile { grid-template-columns: minmax(0, 1fr) var(--h); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); }
  .hop-zeile > * { grid-column: 1; }
  .hop-zeile > .btn-icon { grid-column: 2; grid-row: 1; }
  .copy button { width: 36px; height: 36px; }
  .griff { width: 36px; height: 36px; }
  .menu-item { min-height: 44px; }
  .sitepick-opt { min-height: 44px; }
  .reiter a { min-height: 44px; }
  .zeilen-kompakt .zeile-kompakt .feld { grid-column: 2; }
  .tbl td .aktionen { flex-wrap: wrap; }
  .chart-tip { min-width: 160px; }
  .fertig-satz { font-size: var(--fs-20); line-height: var(--lh-20); }
  .schritt { grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); }
  .schritt-nr { width: 28px; height: 28px; }
  .schritt:not(:last-child)::before { left: 13px; top: 32px; }
  .schritte-rollout .schritt.is-aktuell > div { margin-left: 0; }
  .werkzeugzeile .seg { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .sechead .tools .seg { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; width: 100%; }
  .sechead .tools { width: 100%; }
  .lagesatz p + p { font-size: var(--fs-14); }
  .pw-reihe .input { padding-right: 104px; }
  .chip-filter button { width: 32px; height: 32px; }
}

/* reduzierte Bewegung: Welle, Skelett-Lauf und Übergänge aus */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .tbl tr.is-neu td { transition: none; }
}
