/* Netzwerkverwaltung – Designsystem
   Grundsätze: rem-basierte Größen (Grundschrift 16–18 px je nach Bildschirmbreite), ein Abstandsraster,
   Karten in CSS-Grids mit min-width:0 (nichts kann überlaufen oder überlappen), Hell- und Dunkelmodus über Variablen. */
:root {
  --bg: #f3f5fa; --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #eef1f7; --border: #dfe4ee; --border-strong: #c7cfdd;
  --text: #1b2333; --text-2: #4c586c; --text-3: #6f7b90;
  --accent: #4257d6; --accent-hover: #3446b8; --accent-soft: #e8ecfd; --accent-text: #3346c0; --on-accent: #ffffff;
  --ok: #18794e; --ok-soft: #e2f5ea; --warn: #9a5b00; --warn-soft: #fdf1d8; --bad: #c2293a; --bad-soft: #fde8ea; --info: #1c63b8; --info-soft: #e3effc; --mute-soft: #eceff5;
  --side-bg: #171d2e; --side-text: #c5cce0; --side-text-2: #8791ad; --side-active: #2a3350; --side-border: #262e45;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 2px 8px rgba(20, 30, 60, .05); --shadow-lg: 0 12px 40px rgba(15, 22, 45, .28);
  --radius: .75rem; --radius-sm: .5rem; --gap: 1.25rem; --side-w: 17.5rem; --top-h: 4rem; --uh: 1.75rem;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f131d; --surface: #181d2a; --surface-2: #1d2332; --surface-3: #242b3d; --border: #2b3347; --border-strong: #3a4460;
  --text: #e7ebf5; --text-2: #b1bace; --text-3: #8a94ab;
  --accent: #7186f5; --accent-hover: #8a9cf8; --accent-soft: #232c52; --accent-text: #a5b3fa; --on-accent: #0d1224;
  --ok: #5fd39a; --ok-soft: #153526; --warn: #f0b955; --warn-soft: #3a2c10; --bad: #ff8590; --bad-soft: #42181d; --info: #7cb6f5; --info-soft: #152c47; --mute-soft: #252c3d;
  --side-bg: #0b0e16; --side-text: #c5cce0; --side-text-2: #7d87a2; --side-active: #1e2540; --side-border: #1b2133;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
html { font-size: 16px; }
@media (min-width: 2200px) { html { font-size: 17px; } }
@media (min-width: 3000px) { html { font-size: 18px; } }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 650; }
p { margin: 0 0 .75rem; } p:last-child { margin-bottom: 0; }
a { color: var(--accent-text); text-decoration: none; } a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-3); padding: .1em .38em; border-radius: .3rem; overflow-wrap: anywhere; }
code.big { font-size: 1rem; font-weight: 600; } code.wrap { white-space: pre-wrap; }
small { font-size: .875rem; color: var(--text-3); }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
kbd { font-family: var(--mono); font-size: .85em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: .3rem; padding: 0 .35em; background: var(--surface); }
[hidden] { display: none !important; }
.muted { color: var(--text-3); } .small { font-size: .875rem; } .pad { padding: 1rem 1.25rem; } .mt { margin-top: 1.25rem; } .center { text-align: center; }
.txt-bad { color: var(--bad); } .txt-warn { color: var(--warn); }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: .3rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; z-index: 999; } .skip-link:focus { left: .5rem; top: .5rem; }
::-webkit-scrollbar { width: 12px; height: 12px; } ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- Rahmen ---------- */
#app { height: 100%; display: flex; flex-direction: column; }
.top-banner { background: var(--warn-soft); color: var(--warn); padding: .5rem 1rem; font-size: .9375rem; text-align: center; flex: none; }
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.sidebar { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--side-border); }
.side-brand { height: var(--top-h); display: flex; align-items: center; padding: 0 1.25rem; flex: none; border-bottom: 1px solid var(--side-border); }
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: linear-gradient(135deg, #5b6ff0, #29b6a8); color: #fff; display: grid; place-items: center; flex: none; } .brand-mark .ic { width: 1.35rem; height: 1.35rem; }
.brand-mark.big { width: 3.5rem; height: 3.5rem; border-radius: 1rem; } .brand-mark.big .ic { width: 2rem; height: 2rem; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; } .brand-text strong { font-size: 1.0625rem; color: #fff; } .brand-text small { color: var(--side-text-2); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bare .brand-text strong { color: var(--text); } .bare .brand-text small { color: var(--text-3); }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem .75rem 1.5rem; }
.side-context { background: linear-gradient(160deg, #26305a, #1f2947); border: 1px solid #36416c; border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1.25rem; }
.side-context.admin { background: linear-gradient(160deg, #4a2a35, #33202b); border-color: #6b3a48; }
.ctx-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #9aa6cf; font-weight: 600; }
.side-context strong { color: #fff; font-size: 1.125rem; line-height: 1.3; overflow-wrap: anywhere; } .side-context small { color: #aab4d6; }
.btn-side { margin-top: .75rem; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); justify-content: center; } .btn-side:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.nav-group { margin-bottom: 1.1rem; } .nav-title { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--side-text-2); font-weight: 600; padding: 0 .75rem .4rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: .55rem; color: var(--side-text); font-size: 1rem; line-height: 1.3; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--side-active); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #7186f5; }
.nav-item .ic { width: 1.25rem; height: 1.25rem; opacity: .9; } .nav-item span:first-of-type { flex: 1; min-width: 0; }
.nav-count { background: #d64550; color: #fff; font-size: .75rem; font-weight: 700; border-radius: 1rem; padding: .05rem .5rem; }
.side-foot { flex: none; padding: .75rem; border-top: 1px solid var(--side-border); display: flex; flex-direction: column; gap: .35rem; } .side-note { font-size: .8125rem; color: var(--side-text-2); padding: 0 .75rem; }
.side-backdrop { display: none; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); min-width: 0; }
.nav-toggle { display: none; } .top-title { font-weight: 650; font-size: 1.125rem; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex: none; }
.site-switch { display: flex; align-items: center; gap: .5rem; background: var(--accent-soft); color: var(--accent-text); border-radius: .6rem; padding: .3rem .4rem .3rem .75rem; font-weight: 600; flex: none; min-width: 0; }
.site-switch select { border: 0; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; padding: .4rem 2rem .4rem .7rem; border-radius: .45rem; min-width: 11rem; max-width: 22rem; height: 2.4rem; }
.search-box { position: relative; display: flex; align-items: center; min-width: 0; } .search-box .ic { position: absolute; left: .75rem; color: var(--text-3); pointer-events: none; }
.search-box input { padding-left: 2.5rem; width: 100%; min-width: 14rem; } .top-search { flex: 1; max-width: 34rem; }
.user-chip { display: flex; align-items: center; gap: .65rem; background: none; border: 1px solid transparent; border-radius: .6rem; padding: .3rem .6rem .3rem .3rem; cursor: pointer; color: inherit; font: inherit; text-align: left; } .user-chip:hover { background: var(--surface-3); }
.avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.user-text { display: flex; flex-direction: column; line-height: 1.2; } .user-text small { font-size: .8125rem; }
.main-scroll { flex: 1; min-height: 0; overflow: auto; scroll-behavior: smooth; }
.page { padding: 1.75rem 2rem 4rem; max-width: 92rem; margin: 0 auto; } .page-wide { max-width: 150rem; } .page-full { max-width: none; }
.bare { flex: 1; min-height: 0; display: flex; flex-direction: column; } .bare-top { height: var(--top-h); flex: none; display: flex; align-items: center; padding: 0 2rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.bare-center { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; } .bare-text { max-width: 36rem; color: var(--text-2); font-size: 1.0625rem; }

/* ---------- Schaltflächen und Eingaben ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.6rem; padding: .5rem 1rem; border: 1px solid var(--border-strong); border-radius: .55rem; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9688rem; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-3); text-decoration: none; } .btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; } .btn.is-busy { cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; } :root[data-theme="dark"] .btn-danger { color: #1a0507; } .btn-danger:hover { filter: brightness(.92); background: var(--bad); }
.btn-ghost { border-color: transparent; background: transparent; } .btn-ghost-danger { border-color: transparent; background: transparent; color: var(--bad); } .btn-ghost-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 2.15rem; padding: .3rem .7rem; font-size: .9063rem; } .btn-icon { padding: 0; width: 2.6rem; } .btn-icon.btn-sm { width: 2.15rem; } .btn-block { width: 100%; margin-top: 1rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; text-align: left; } .linklike:hover { text-decoration: underline; } .linklike.striked { text-decoration: line-through; color: var(--text-3); }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=password], input[type=email], input[type=url], input[type=tel], select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: .55rem; padding: .55rem .8rem; min-height: 2.75rem; width: 100%; max-width: 100%; }
textarea { resize: vertical; line-height: 1.45; min-height: 5rem; } input[type=color] { width: 4rem; height: 2.75rem; padding: .2rem; border: 1px solid var(--border-strong); border-radius: .55rem; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; margin: 0; }
select.filter { width: auto; min-width: 11rem; }

/* ---------- Formulare: großzügige, einheitliche Abstände ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem 1.75rem; align-items: start; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); } .form-grid.tight { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 1.25rem; }
.form-grid + .form-grid { margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .5rem; min-width: 0; } .field.full, .form-section { grid-column: 1 / -1; } .field.field-bool { justify-content: flex-end; padding-top: 1.9rem; } .form-grid.one .field.field-bool { padding-top: 0; }
.field-label { font-weight: 600; font-size: .9375rem; color: var(--text-2); } .req { color: var(--bad); }
.field-help { font-size: .875rem; color: var(--text-3); margin: 0; } .field-error { font-size: .875rem; color: var(--bad); font-weight: 600; margin: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.form-section { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: .25rem; } .form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h4 { font-size: 1.0625rem; } .form-section p { margin: .3rem 0 0; color: var(--text-3); font-size: .9063rem; }
.form-intro { color: var(--text-2); margin-bottom: 1.25rem; }
.form-general-error { background: var(--bad-soft); color: var(--bad); border-radius: .55rem; padding: .75rem 1rem; margin-bottom: 1.25rem; font-weight: 600; display: grid; gap: .25rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; line-height: 1.35; } .check input { margin-top: .12rem; } .check-solo { font-weight: 600; } .check.inline { display: inline-flex; font-size: .9375rem; }
.checklist { border: 1px solid var(--border-strong); border-radius: .55rem; padding: .75rem 1rem; max-height: 13rem; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem 1.25rem; background: var(--surface); }
.input-affix { display: flex; align-items: stretch; } .input-affix input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-affix > span, .affix-btn { display: grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--border-strong); border-left: 0; background: var(--surface-3); color: var(--text-2); font: inherit; } .input-affix > :last-child { border-radius: 0 .55rem .55rem 0; } .affix-btn { cursor: pointer; } .affix-btn:hover { background: var(--border); }
.upload-btn { position: relative; overflow: hidden; } .upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ---------- Seitenkopf, Karten, Kennzahlen ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-title { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 24rem; } .page-title-text { min-width: 0; }
.page-title h1 { font-size: 1.75rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; overflow-wrap: anywhere; } .page-title p { margin: .3rem 0 0; color: var(--text-2); font-size: 1.0625rem; overflow-wrap: anywhere; }
.page-ic { --c: var(--accent); width: 3rem; height: 3rem; border-radius: .8rem; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); display: grid; place-items: center; flex: none; } .page-ic .ic { width: 1.6rem; height: 1.6rem; }
.back { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); flex: none; } .back:hover { background: var(--surface-3); }
.page-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; min-height: 3.75rem; }
.card-head h3 { font-size: 1.125rem; display: flex; align-items: center; gap: .6rem; min-width: 0; flex-wrap: wrap; } .card-head h3 > .ic { color: var(--accent-text); }
.card-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .card-link { font-size: .9375rem; font-weight: 600; }
.card-body { padding: 1.25rem; min-width: 0; flex: 1; } .card-body.flush { padding: 0; }
.count { background: var(--mute-soft); color: var(--text-2); font-size: .8125rem; font-weight: 700; border-radius: 1rem; padding: .1rem .55rem; }
.badge { display: inline-flex; align-items: center; font-size: .8125rem; font-weight: 650; padding: .15rem .6rem; border-radius: 1rem; background: var(--mute-soft); color: var(--text-2); white-space: nowrap; vertical-align: middle; line-height: 1.5; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-info { background: var(--info-soft); color: var(--info); } .badge-warn { background: var(--warn-soft); color: var(--warn); } .badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-doc { background: transparent; border: 1px solid var(--info); color: var(--info); margin-left: .5rem; font-weight: 600; } .badge-demo { background: transparent; border: 1px dashed var(--text-3); color: var(--text-3); margin-left: .5rem; font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; margin-bottom: var(--gap); }
.stat { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); color: inherit; min-width: 0; } a.stat:hover { border-color: var(--accent); text-decoration: none; }
.stat-ic { --c: var(--accent); width: 3rem; height: 3rem; border-radius: .8rem; background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: var(--c); display: grid; place-items: center; flex: none; } .stat-ic .ic { width: 1.5rem; height: 1.5rem; }
.stat-main { display: flex; flex-direction: column; min-width: 0; } .stat-val { font-size: 1.625rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; } .stat-label { color: var(--text-2); font-weight: 600; font-size: .9688rem; } .stat-sub { color: var(--text-3); font-size: .875rem; }
.dash-grid, .detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--gap); align-items: start; }
.span-all { grid-column: 1 / -1; } @media (min-width: 1250px) { .span-2 { grid-column: span 2; } }
.stack { display: grid; gap: var(--gap); min-width: 0; } .tab-body { margin-top: var(--gap); }
.kv { margin: 0; display: grid; gap: 0; } .kv-row { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: .5rem 1.25rem; padding: .6rem 0; border-bottom: 1px solid var(--border); } .kv-row:last-child { border-bottom: 0; padding-bottom: 0; } .kv-row:first-child { padding-top: 0; }
.kv dt { color: var(--text-3); font-size: .9375rem; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv-2 { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); column-gap: 2.5rem; } .kv-2 .kv-row { border-bottom: 1px solid var(--border); padding: .6rem 0; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 2.5rem 1.5rem; color: var(--text-3); } .empty > .ic { width: 2.75rem; height: 2.75rem; opacity: .55; } .empty strong { color: var(--text); font-size: 1.125rem; } .empty p { max-width: 34rem; margin: 0; } .empty .btn { margin-top: .5rem; }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: .6rem; margin-bottom: var(--gap); font-size: .9688rem; } .notice > .ic { margin-top: .12rem; } .notice > div { min-width: 0; } .card-body .notice:last-child, .modal-body .notice:last-child { margin-bottom: 0; } .card-body .notice { margin-top: 1rem; }
.notice-info { background: var(--info-soft); color: var(--info); } .notice-warn { background: var(--warn-soft); color: var(--warn); } .notice-error { background: var(--bad-soft); color: var(--bad); } .notice a { color: inherit; text-decoration: underline; }
.issue-list { margin: .4rem 0 0; padding-left: 1.2rem; } .issue-list li { margin: .15rem 0; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1rem; color: var(--text-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; } .tab:hover { color: var(--text); text-decoration: none; background: var(--surface-3); border-radius: .5rem .5rem 0 0; } .tab.active { color: var(--accent-text); border-bottom-color: var(--accent); }
.date.warn { color: var(--warn); font-weight: 650; } .date.bad { color: var(--bad); font-weight: 650; } .date-rel { display: block; font-size: .8125rem; color: var(--text-3); white-space: nowrap; }
.rowlist { list-style: none; margin: -.25rem 0; padding: 0; } .rowlist li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); } .rowlist li:last-child { border-bottom: 0; }
.rl-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; } .rl-main small { margin-top: .1rem; } .rl-side { text-align: right; flex: none; }
.prose { overflow-wrap: anywhere; } .prose h2 { font-size: 1.375rem; margin: 1.5rem 0 .6rem; } .prose h3 { font-size: 1.1875rem; margin: 1.25rem 0 .5rem; } .prose h4, .prose h5 { font-size: 1.0625rem; margin: 1rem 0 .4rem; } .prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 .75rem; padding-left: 1.4rem; } .prose li { margin: .2rem 0; } .prose pre { background: var(--surface-3); padding: .9rem 1rem; border-radius: .55rem; overflow: auto; } .prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 0 0 .75rem; padding: .5rem 1rem; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 .5rem .5rem 0; } .prose-lg { font-size: 1.0625rem; line-height: 1.65; max-width: 60rem; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.tbl th { text-align: left; font-size: .8438rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 650; padding: .8rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: .8rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; } .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.clickable { cursor: pointer; } .tbl tbody tr:hover td { background: var(--surface-2); }
.tbl-compact th, .tbl-compact td { padding: .6rem 1.25rem; } .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .tbl .col-actions { width: 1%; white-space: nowrap; text-align: right; } .tbl .col-sel, .tbl .col-check { width: 1%; }
.tbl th.sortable { cursor: pointer; user-select: none; } .tbl th.sortable:hover, .tbl th.sorted { color: var(--text); } .sort-ind { margin-left: .35rem; font-size: .7em; }
.tbl .sub { display: block; color: var(--text-3); font-size: .8438rem; } .tbl-none { text-align: center; color: var(--text-3); padding: 2rem !important; }
.tbl-tools { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); } .tbl-tools .search-box { flex: 1 1 18rem; max-width: 30rem; } .tbl-tools-right { margin-left: auto; display: flex; gap: .5rem; }
.tbl-foot { padding: .7rem 1.25rem; font-size: .875rem; color: var(--text-3); border-top: 1px solid var(--border); }
.row-actions { display: inline-flex; gap: .25rem; align-items: center; justify-content: flex-end; }
.tbl.calc tr.total td { background: var(--surface-2); border-top: 2px solid var(--border-strong); } .sum-line { text-align: right; border-top: 1px solid var(--border); }
.tbl.matrix th { text-transform: none; font-size: .9375rem; letter-spacing: 0; text-align: center; } .tbl.matrix th:first-child { text-align: left; }
.dev-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 600; min-width: 0; vertical-align: middle; } .dev-link:hover { color: var(--accent-text); text-decoration: none; }
.dev-ic { --c: #888; width: 2rem; height: 2rem; border-radius: .5rem; background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--c); display: inline-grid; place-items: center; flex: none; } .dev-ic.big { width: 3rem; height: 3rem; border-radius: .8rem; } .dev-ic.big .ic { width: 1.6rem; height: 1.6rem; }
.dev-names { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; } .dev-names small { font-weight: 400; font-family: var(--mono); font-size: .8125rem; }
.vlan-tag { --c: #888; display: inline-block; min-width: 2.4rem; text-align: center; font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; padding: .1rem .5rem; border-radius: .4rem; background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--text)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.chip-list { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; } .chip-list.col { flex-direction: column; } .arrow { color: var(--text-3); margin: 0 .35rem; }
.usage { display: flex; flex-direction: column; gap: .3rem; min-width: 10rem; } .usage-track { display: block; height: .5rem; background: var(--surface-3); border-radius: 1rem; overflow: hidden; } .usage-track.wide { min-width: 8rem; } .usage-fill { display: block; height: 100%; background: var(--accent); border-radius: 1rem; } .usage-fill.warn { background: #d9922b; } .usage-fill.bad { background: var(--bad); } .usage-text { font-size: .8438rem; color: var(--text-3); white-space: nowrap; }

/* ---------- Diagramme (reines CSS, kann nicht überlaufen) ---------- */
.barlist { display: grid; gap: .75rem; } .barlist-row { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(3rem, 1fr) auto; gap: 1rem; align-items: center; } .barlist-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist-track { height: .65rem; background: var(--surface-3); border-radius: 1rem; overflow: hidden; } .barlist-fill { display: block; height: 100%; background: var(--accent); border-radius: 1rem; } .barlist-fill.warn { background: #d9922b; } .barlist-fill.bad { background: var(--bad); } .barlist-val { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 2.5rem; text-align: right; }
.cols { --h: 200px; min-width: 0; } .cols-plot { position: relative; height: var(--h); display: flex; align-items: flex-end; gap: 3px; border-bottom: 2px solid var(--border-strong); padding-top: 1.5rem; }
.col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; } .col-bar { display: block; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 0; } .col:hover .col-bar { filter: brightness(1.15); }
.col-bar.extra, .dot-extra { background: #d9822b; } .col-bar.kind-discount, .dot.kind-discount { background: #2aa876; } .col-bar.kind-normal, .dot.kind-normal { background: var(--accent); } .col-bar.kind-increase, .dot.kind-increase { background: #d64550; } .col-bar.kind-none { background: transparent; } .col-bar.after { opacity: .45; }
.cols-line { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--text); height: 0; pointer-events: none; z-index: 1; } .cols-line em { position: absolute; right: 0; bottom: 2px; font-style: normal; font-size: .8125rem; font-weight: 700; background: var(--surface); padding: 0 .35rem; border-radius: .25rem; }
.cols-axis { display: flex; gap: 3px; margin-top: .4rem; } .cols-axis span { flex: 1 1 0; min-width: 0; text-align: center; font-size: .75rem; color: var(--text-3); white-space: nowrap; overflow: visible; }
.chart-note { margin-top: .9rem; font-size: .875rem; color: var(--text-3); line-height: 1.9; } .dot { display: inline-block; width: .8rem; height: .8rem; border-radius: .2rem; margin: 0 .35rem 0 .6rem; vertical-align: -.08em; } .dot:first-child { margin-left: 0; } .dot-accent { background: var(--accent); } .dot-line { background: none; border-top: 2px dashed var(--text); height: 0; width: 1.2rem; vertical-align: .25em; border-radius: 0; }

/* ---------- Anmeldung und Kundenauswahl ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 2rem; background: radial-gradient(1200px 600px at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent), var(--bg); }
.login-card { width: min(100%, 34rem); background: var(--surface); border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.5rem; box-shadow: var(--shadow-lg); } .login-brand { text-align: center; margin-bottom: 1.75rem; display: grid; justify-items: center; gap: .6rem; } .login-brand h1 { font-size: 1.75rem; } .login-brand p { color: var(--text-2); } .login-card h2 { font-size: 1.0625rem; margin: 1.5rem 0 .75rem; color: var(--text-2); }
.pick-list { display: grid; gap: .6rem; } .pick { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border: 1px solid var(--border-strong); border-radius: .7rem; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; } .pick:hover, .pick.active { border-color: var(--accent); background: var(--accent-soft); } .pick > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; } .pick > .ic { color: var(--text-3); }
.cust-page { padding: 2.5rem clamp(1rem, 4vw, 4rem) 4rem; max-width: 150rem; margin: 0 auto; }
.cust-grid, .site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr)); gap: 1.5rem; }
.cust-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow); min-width: 0; transition: transform .12s, border-color .12s, box-shadow .12s; } .cust-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cust-main { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; color: inherit; height: 100%; } .cust-main:hover { text-decoration: none; }
.cust-head { display: flex; align-items: center; gap: 1rem; min-width: 0; } .cust-avatar { width: 3.25rem; height: 3.25rem; border-radius: .9rem; background: linear-gradient(135deg, #5b6ff0, #29b6a8); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; flex: none; }
.cust-name { min-width: 0; flex: 1; } .cust-name h2 { font-size: 1.3125rem; overflow-wrap: anywhere; } .cust-name p { margin: .15rem 0 0; color: var(--text-3); }
.cc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; } .cc-stat { background: var(--surface-2); border-radius: .7rem; padding: .75rem .5rem; text-align: center; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cc-num { font-size: 1.375rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; justify-content: center; } .cc-num .ic { color: var(--accent-text); width: 1.1rem; height: 1.1rem; } .cc-lab { font-size: .8438rem; color: var(--text-3); }
.cc-foot { display: flex; flex-wrap: wrap; gap: .5rem; } .cc-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; padding: .3rem .7rem; border-radius: 1rem; background: var(--mute-soft); color: var(--text-2); } .cc-chip.warn { background: var(--warn-soft); color: var(--warn); } .cc-chip.bad { background: var(--bad-soft); color: var(--bad); }
.cust-open { margin-top: auto; font-weight: 650; color: var(--accent-text); display: flex; align-items: center; gap: .3rem; } .cust-none { padding: 2rem; text-align: center; }
.site-card.current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .site-addr { color: var(--text-2); } .site-up { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0; color: var(--text-2); } .site-card .cc-stats { margin: 1rem 0; } .site-card-foot { display: flex; justify-content: flex-end; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; } .mini-card { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: .7rem; color: inherit; background: var(--surface-2); } .mini-card:hover { border-color: var(--accent); text-decoration: none; }
.uplink + .uplink { border-top: 1px solid var(--border); margin-top: 1.25rem; padding-top: 1.25rem; } .uplink-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .75rem; font-size: 1.0625rem; } .uplink-head .row-actions { margin-left: auto; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; } .tree ul { padding-left: 1.6rem; border-left: 2px solid var(--border); margin-left: .6rem; } .tree-row { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; flex-wrap: wrap; } .tree-row .row-actions { margin-left: auto; } .tree-loose { margin-top: .75rem; color: var(--text-2); }

/* ---------- Geräte, Hardware, Fotos ---------- */
.res-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; } .res-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: .7rem; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; } .res-tile .ic { color: var(--accent-text); } .res-tile strong { font-size: 1.375rem; } .res-tile span { color: var(--text-3); font-size: .875rem; }
.hw-sum { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: var(--gap); } .hw-sum h4 { margin-bottom: .9rem; font-size: 1.0625rem; }
.quick-add { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text-3); font-size: .9375rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; } .photo { margin: 0; border: 1px solid var(--border); border-radius: .7rem; overflow: hidden; background: var(--surface-2); min-width: 0; } .photo.main { border-color: var(--ok); }
.photo-thumb, .photo-main { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-3); cursor: zoom-in; } .photo-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; } .photo-main img { width: 100%; max-height: 22rem; object-fit: contain; display: block; border-radius: .5rem; }
.photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .75rem; } .photo-desc { min-width: 0; overflow-wrap: anywhere; font-size: .9375rem; } .lightbox { display: grid; place-items: center; background: var(--surface-3); border-radius: .6rem; margin-bottom: .75rem; } .lightbox img { max-width: 100%; max-height: 70vh; display: block; }

/* ---------- Switch-Frontansicht ---------- */
.switch-scroll { overflow-x: auto; padding-bottom: .5rem; }
.switch-face { display: inline-flex; align-items: center; gap: 1.5rem; background: linear-gradient(#2c3344, #1e2431); border-radius: .6rem; padding: 1rem 1.5rem; border: 1px solid #0f131c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); min-width: min-content; } .switch-face.patch { background: linear-gradient(#4a4f5a, #383c46); }
.switch-label { display: flex; flex-direction: column; color: #e7ebf5; min-width: 9rem; max-width: 13rem; } .switch-label span { color: #9aa3b8; font-size: .8438rem; }
.switch-ports { display: flex; gap: 1.1rem; align-items: center; } .port-block { display: flex; flex-direction: column; gap: .4rem; } .port-row, .port-block.one-row { display: flex; flex-direction: row; gap: .35rem; } .sfp-block { padding-left: 1.1rem; border-left: 2px solid #4b556b; }
.port { position: relative; width: 2.6rem; height: 2.5rem; border-radius: .3rem; border: 2px solid #5b657a; background: #10141d; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; color: #cdd4e4; font: inherit; overflow: hidden; }
.port:hover { transform: translateY(-2px); border-color: #fff; } .port-num { font-size: .75rem; font-weight: 700; line-height: 1.25; } .port-jack { width: 1.3rem; height: .7rem; background: #05070b; border-radius: .12rem .12rem 0 0; margin-top: .05rem; } .port-sfp .port-jack { width: 1.7rem; height: .55rem; border-radius: .1rem; }
.port-vlan { position: absolute; left: 0; right: 0; bottom: 0; height: .3rem; }
.port-free { border-color: #5b657a; } .port-used { border-color: #3ecf8e; background: #123524; color: #fff; } .port-used .port-jack { background: #3ecf8e; }
.port-disabled { border-color: #4a5060; background: repeating-linear-gradient(45deg, #1a1e28 0 5px, #2a2f3c 5px 10px); color: #7c8598; } .port-error { border-color: #ff5d6c; background: #4a1219; color: #fff; } .port-error .port-jack { background: #ff5d6c; }
.port-trunk::after, .legend-trunk::after { content: "T"; position: absolute; right: 2px; top: 0; font-size: .625rem; font-weight: 800; color: #ffd166; }
.port.mini { width: 1.5rem; height: 1.4rem; cursor: default; pointer-events: none; display: inline-flex; vertical-align: middle; justify-content: center; } .port.mini .port-jack { width: .8rem; height: .45rem; margin-top: .3rem; }
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1rem; font-size: .9375rem; align-items: center; } .legend-item { display: inline-flex; align-items: center; gap: .5rem; } .legend-trunk { position: relative; width: 1.5rem; height: 1.4rem; border: 2px solid #5b657a; background: #10141d; border-radius: .3rem; display: inline-block; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: .6rem; padding: .75rem 1rem; margin-bottom: 1.5rem; } .chain-node { background: var(--surface); border: 1px solid var(--border-strong); border-radius: .5rem; padding: .35rem .7rem; font-weight: 600; display: inline-flex; flex-direction: column; } .chain-node small { font-weight: 400; }

/* ---------- IPAM ---------- */
.ipmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: 4px; }
.ipc { height: 2.2rem; border-radius: .3rem; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); font: inherit; font-size: .8125rem; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; } .ipc:hover:not(:disabled) { outline: 2px solid var(--accent); }
.ipc-used { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; } .ipc-res { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); font-weight: 700; } .ipc-dhcp { background: var(--info-soft); border-color: transparent; color: var(--info); } .ipc-gw { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-weight: 700; }
.ipc-dup { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 700; } .ipc-net { background: var(--surface-3); color: var(--text-3); cursor: default; opacity: .6; } .ipc.mini { width: 1.3rem; height: 1.3rem; display: inline-block; cursor: default; pointer-events: none; }

/* ---------- Netzwerkschränke ---------- */
.rack-help { display: flex; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: .7rem; padding: .85rem 1rem; margin-bottom: var(--gap); color: var(--text-2); font-size: .9688rem; } .rack-help > .ic { color: var(--info); margin-top: .15rem; }
.rack-site { margin-bottom: 2rem; } .rack-site-title { font-size: 1.25rem; display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.rack-row { display: flex; gap: 1.5rem; align-items: flex-start; overflow-x: auto; padding-bottom: 1rem; }
.rack-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); } @media (min-width: 1500px) { .rack-detail { grid-template-columns: minmax(0, auto) minmax(24rem, 1fr); } }
.rack { flex: none; width: 24rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.rack-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); } .rack-title { display: flex; flex-direction: column; min-width: 0; } .rack-title strong { font-size: 1.125rem; } .rack-title span { color: var(--text-3); font-size: .875rem; } .rack-title b { color: var(--ok); }
.rack-frame { background: #1b202c; padding: .6rem .6rem; border-radius: 0 0 var(--radius) var(--radius); } .rack-rear { padding: .6rem 1rem; margin: 0; font-size: .875rem; color: var(--text-3); }
.rack-body { box-sizing: content-box; position: relative; height: calc(var(--u) * var(--uh)); background: #0e1119; border: 2px solid #3a4257; border-radius: .25rem; touch-action: pan-y; }
.rack-slot { height: var(--uh); border-bottom: 1px solid #232a3a; position: relative; } .rack-slot:last-of-type { border-bottom: 0; } .rack-num { position: absolute; left: 0; width: 2.2rem; text-align: center; line-height: var(--uh); font-size: .75rem; color: #7f8aa3; font-variant-numeric: tabular-nums; border-right: 1px solid #232a3a; height: 100%; }
.rack-body.target { border-color: #7186f5; } .rack-slot.ok { background: rgba(62, 207, 142, .13); } .rack-slot.no { background: rgba(255, 93, 108, .07); }
.rack-dev { position: absolute; left: 2.45rem; right: .25rem; bottom: calc(var(--pos) * var(--uh) + 1px); height: calc(var(--h) * var(--uh) - 2px); --c: #888; background: linear-gradient(rgba(255, 255, 255, .14), rgba(0, 0, 0, .2)), var(--c); color: #fff; border-radius: .22rem; border: 1px solid rgba(255, 255, 255, .22); display: flex; align-items: center; gap: .45rem; padding: 0 .35rem 0 .2rem; cursor: grab; user-select: none; touch-action: none; overflow: hidden; font-size: .875rem; z-index: 1; }
.rack-dev:hover, .rack-dev:focus-visible { border-color: #fff; z-index: 2; } .rack-dev.dragging { opacity: .35; cursor: grabbing; } body.rack-dragging { cursor: grabbing; user-select: none; }
.rd-grip { opacity: .6; display: grid; } .rd-grip .ic { width: .9rem; height: .9rem; } .rd-ic { display: grid; } .rd-ic .ic { width: 1.05rem; height: 1.05rem; } .rd-name { flex: 1; min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rd-meta { font-size: .75rem; opacity: .85; white-space: nowrap; }
.rd-actions { display: none; gap: 2px; } .rack-dev:hover .rd-actions, .rack-dev:focus-within .rd-actions { display: inline-flex; } .rack-dev:hover .rd-meta, .rack-dev:focus-within .rd-meta { display: none; }
.rd-actions .btn { min-height: 0; height: 1.45rem; width: 1.45rem; background: rgba(0, 0, 0, .35); border-color: transparent; color: #fff; border-radius: .25rem; } .rd-actions .btn .ic { width: .95rem; height: .95rem; }
.rack-ghost { position: absolute; left: 2.45rem; right: .25rem; bottom: calc(var(--pos) * var(--uh) + 1px); height: calc(var(--h) * var(--uh) - 2px); border-radius: .22rem; border: 2px dashed; display: grid; place-items: center; font-size: .8125rem; font-weight: 700; pointer-events: none; z-index: 5; padding: 0 .4rem; text-align: center; line-height: 1.1; overflow: hidden; }
.rack-ghost.ok { border-color: #3ecf8e; background: rgba(62, 207, 142, .3); color: #d9ffec; } .rack-ghost.no { border-color: #ff5d6c; background: rgba(255, 93, 108, .3); color: #ffe1e4; }
.rack-tray { flex: none; width: 19rem; background: var(--surface); border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 1rem; } .rack-tray.target { border-color: var(--accent); background: var(--accent-soft); } .rack-tray h4 { display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.tray-list { display: grid; gap: .4rem; margin-top: .75rem; } .tray-list .rack-dev { position: relative; left: auto; right: auto; bottom: auto; height: calc(var(--uh) + .25rem); }
.rack-side { align-content: start; }

/* ---------- Netzwerkgraph ---------- */
.graph-bar { display: flex; flex-direction: column; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding: .85rem 1rem; border-bottom: 0; }
.graph-tools, .graph-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .graph-filters { gap: .5rem 1rem; } .tool-sep { width: 1px; height: 1.6rem; background: var(--border-strong); margin: 0 .25rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 1rem; padding: .3rem .8rem; font: inherit; font-size: .9063rem; cursor: pointer; } .chip.off { opacity: .45; text-decoration: line-through; } .chip-dot { width: .7rem; height: .7rem; border-radius: 50%; }
.graph-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; height: calc(100vh - 21rem); min-height: 32rem; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: var(--surface); }
.graph-canvas { position: relative; min-width: 0; background-color: var(--surface-2); background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 28px 28px; }
svg.graph { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; touch-action: none; } svg.graph.panning { cursor: grabbing; }
.gn { cursor: pointer; outline: none; } .gn-label { fill: var(--text); paint-order: stroke; stroke: var(--surface-2); stroke-width: 4px; stroke-linejoin: round; } .gn-sub { fill: var(--text-3); paint-order: stroke; stroke: var(--surface-2); stroke-width: 4px; font-family: var(--mono); }
.gn-dot { stroke: var(--surface); stroke-width: 3px; } .gn-inactive .gn-dot { opacity: .5; stroke-dasharray: 4 3; stroke: var(--text-3); } .gn-halo { stroke: transparent; stroke-width: 4px; }
.gn:hover .gn-halo, .gn:focus-visible .gn-halo { stroke: color-mix(in srgb, var(--accent) 50%, transparent); } .gn.sel .gn-halo { stroke: var(--accent); stroke-width: 5px; } .gn.nb .gn-halo { stroke: color-mix(in srgb, var(--accent) 45%, transparent); }
.gn.hit .gn-halo { stroke: #f0b429; stroke-width: 6px; } svg.searching .gn:not(.hit) { opacity: .3; } .gn.on-path .gn-halo { stroke: #f0812b; stroke-width: 5px; } .gn.path-end .gn-halo { stroke: #f0812b; stroke-width: 7px; }
.ge-label { fill: var(--text-3); paint-order: stroke; stroke: var(--surface-2); stroke-width: 4px; display: none; } .ge.nb .ge-label, .ge.on-path .ge-label, .ge:hover .ge-label { display: block; }
.ge.nb .ge-line { stroke: var(--accent); stroke-width: 3.5px; } .ge.on-path .ge-line { stroke: #f0812b; stroke-width: 5px; } svg.has-path .ge:not(.on-path), svg.has-path .gn:not(.on-path) { opacity: .28; }
svg.zoom-far .gn-sub { display: none; } svg.tracing { cursor: crosshair; } svg.tracing .gn { cursor: crosshair; }
.graph-hint { position: absolute; left: 1rem; bottom: 1rem; font-size: .875rem; color: var(--text-2); background: color-mix(in srgb, var(--surface) 88%, transparent); padding: .25rem .6rem; border-radius: .4rem; } .graph-hint:empty { display: none; }
.graph-zoom { position: absolute; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: .6rem; padding: .3rem; box-shadow: var(--shadow); } #graph-zoom-val { min-width: 3.6rem; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.graph-panel { border-left: 1px solid var(--border); padding: 1.25rem; overflow-y: auto; min-width: 0; background: var(--surface); } .graph-panel h4 { margin: 1.5rem 0 .6rem; font-size: 1rem; display: flex; gap: .5rem; align-items: center; }
.gp-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.1rem; } .gp-head > div { flex: 1; min-width: 0; } .gp-head h3 { font-size: 1.25rem; overflow-wrap: anywhere; } .gp-head p { margin: 0; color: var(--text-3); }
.gp-empty { text-align: center; color: var(--text-2); padding: 2rem .5rem; display: grid; gap: .6rem; justify-items: center; } .gp-empty > .ic { width: 2.5rem; height: 2.5rem; opacity: .5; }
.gp-links { list-style: none; margin: 0; padding: 0; } .gp-links li { display: flex; flex-direction: column; padding: .5rem 0; border-bottom: 1px solid var(--border); } .gp-links li:last-child { border-bottom: 0; }
.gp-trace { display: flex; gap: .5rem; } .gp-trace select { min-width: 0; flex: 1; } .gp-path { background: var(--surface-2); border: 1px solid var(--border); border-radius: .7rem; padding: 1rem; margin-bottom: 1.25rem; } .gp-path h3 { font-size: 1.0625rem; display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.path-list { margin: 0 0 .75rem; padding: 0; list-style: none; } .path-list li { font-weight: 650; padding: .15rem 0; } .path-list li.hop { font-weight: 400; color: var(--text-3); font-size: .875rem; padding-left: 1rem; border-left: 3px solid #f0812b; margin: .15rem 0 .15rem .4rem; }

/* ---------- Tresor ---------- */
.vault { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; } .vault > .ic { width: 1.75rem; height: 1.75rem; flex: none; } .vault > div { flex: 1 1 20rem; min-width: 0; } .vault p { margin: .15rem 0 0; color: var(--text-2); font-size: .9375rem; }
.vault-open { border-color: var(--ok); } .vault-open > .ic { color: var(--ok); } .vault-locked > .ic, .vault-new > .ic { color: var(--warn); } .vault-warn { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); } .vault-warn p { color: inherit; }
.masked { letter-spacing: .15em; color: var(--text-3); } .cf-list { display: grid; gap: .6rem; margin-bottom: .6rem; } .cf-row { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) auto; gap: .6rem; align-items: start; } .cf-row textarea { min-height: 2.75rem; }
.secret-view { display: grid; gap: 1rem; } .sv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: start; } .sv-label { grid-column: 1 / -1; font-weight: 600; color: var(--text-2); font-size: .9375rem; } .sv-value { margin: 0; background: var(--surface-3); border-radius: .5rem; padding: .7rem .9rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; max-height: 12rem; overflow: auto; }

/* ---------- Aufgaben, Wiki, Export ---------- */
.check-btn { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; } .check-btn:hover { border-color: var(--ok); color: var(--ok); } .check-btn.done { background: var(--ok); border-color: var(--ok); color: #fff; } .check-btn .ic { width: 1.1rem; height: 1.1rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--border); } .timeline li { padding: .35rem 0; } .timeline span { color: var(--text-3); font-size: .875rem; margin-right: .6rem; }
.docs-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: var(--gap); align-items: start; } .doc-folders h4 { margin-bottom: .6rem; } .doc-folders ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.folder { display: flex; align-items: center; gap: .6rem; width: 100%; background: none; border: 0; padding: .5rem .6rem; border-radius: .5rem; font: inherit; color: var(--text); cursor: pointer; text-align: left; } .folder span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .folder:hover { background: var(--surface-3); } .folder.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; } @media (min-width: 1300px) { .doc-layout:has(> .card + .card) { grid-template-columns: minmax(0, 1fr) 20rem; } } .doc-body .card-body { padding: 2rem; }
.opt-list { display: grid; gap: .6rem; } .opt { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--border-strong); border-radius: .7rem; cursor: pointer; } .opt.active, .opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); } .opt.disabled { opacity: .5; cursor: not-allowed; } .opt input { margin-top: .2rem; } .opt span { display: flex; flex-direction: column; min-width: 0; }
.count-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; } .count-grid span { background: var(--surface-2); border-radius: .6rem; padding: .6rem .8rem; display: flex; flex-direction: column; font-size: .875rem; color: var(--text-3); min-width: 0; overflow-wrap: anywhere; } .count-grid strong { font-size: 1.25rem; color: var(--text); }
.fmt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1rem; } .fmt { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border); border-radius: .8rem; padding: 1rem 1.25rem; flex-wrap: wrap; background: var(--surface-2); } .fmt > .ic { width: 2rem; height: 2rem; color: var(--accent-text); } .fmt > div:nth-child(2) { flex: 1 1 16rem; min-width: 0; } .fmt p { margin: .15rem 0 0; color: var(--text-2); font-size: .9375rem; } .fmt-inline { display: flex; gap: .5rem; flex-wrap: wrap; } .fmt-inline select { width: auto; min-width: 13rem; }
.doc-frame { width: 100%; height: 68vh; border: 1px solid var(--border); border-radius: .6rem; background: #fff; }
.range-result { margin-top: 1.25rem; }

/* ---------- Dialoge und Meldungen ---------- */
body.has-modal .main-scroll { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 16, 28, .55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1.25rem; z-index: 100; overflow-y: auto; backdrop-filter: blur(2px); }
.modal { background: var(--surface); border-radius: 1rem; box-shadow: var(--shadow-lg); width: 100%; display: flex; flex-direction: column; max-height: 92vh; border: 1px solid var(--border); margin: auto 0; }
.modal-sm { max-width: 32rem; } .modal-md { max-width: 46rem; } .modal-lg { max-width: 64rem; } .modal-xl { max-width: 88rem; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); flex: none; } .modal-head h2 { font-size: 1.3125rem; display: flex; gap: .6rem; align-items: center; min-width: 0; overflow-wrap: anywhere; } .modal-head h2 .ic { color: var(--accent-text); }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; min-height: 0; } .modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); flex: none; flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 1rem 1rem; }
.confirm-text p { font-size: 1.0625rem; }
#toasts { position: fixed; right: 1.5rem; bottom: 1.5rem; display: grid; gap: .6rem; z-index: 200; max-width: min(30rem, calc(100vw - 2rem)); }
.toast { display: flex; gap: .7rem; align-items: flex-start; background: #1d2536; color: #fff; padding: .85rem 1.1rem; border-radius: .7rem; box-shadow: var(--shadow-lg); font-size: .9688rem; border-left: 4px solid #3ecf8e; animation: toast-in .2s ease-out; } .toast-error { border-left-color: #ff5d6c; } .toast-info { border-left-color: #6aa8f0; } .toast.out { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1250px) {
  .graph-wrap { grid-template-columns: minmax(0, 1fr); height: auto; } .graph-canvas { height: 62vh; min-height: 24rem; } .graph-panel { border-left: 0; border-top: 1px solid var(--border); max-height: none; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(var(--side-w), 86vw); z-index: 60; transform: translateX(-100%); transition: transform .2s; } body.nav-open .sidebar { transform: none; }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(12, 16, 28, .5); z-index: 50; }
  .nav-toggle { display: inline-flex; } .topbar { padding: 0 1rem; gap: .6rem; } .page { padding: 1.25rem 1rem 3rem; } .user-text { display: none; } .site-switch-label { display: none; }
}
@media (max-width: 700px) {
  .top-search { display: none; } .site-switch select { min-width: 0; max-width: 11rem; } .page-title h1 { font-size: 1.4375rem; } .kv-row { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .barlist-row { grid-template-columns: minmax(0, 1fr) auto; } .barlist-track { grid-column: 1 / -1; order: 3; }
  .tbl th, .tbl td { padding: .65rem .8rem; } .modal-backdrop { padding: 0; } .modal { max-height: 100vh; min-height: 100vh; border-radius: 0; } .field.field-bool { padding-top: 0; } .rack { width: 20rem; } .cf-row { grid-template-columns: minmax(0, 1fr) auto; } .cf-row .cf-name { grid-column: 1 / -1; }
  .bare-top { padding: 0 1rem; } .bare-top .brand-text small { display: none; }
}
@media print { .sidebar, .topbar, .page-actions, .row-actions, #toasts { display: none !important; } body, .main-scroll { overflow: visible; height: auto; } .layout { display: block; } }

/* ---------- Ergänzungen der Go-Anwendung ---------- */
.top-right form { display: contents; }
.bare-top .brand { min-width: 0; overflow: hidden; }
@media (max-width: 1000px) { .bare-top .top-right .btn span, .bare-top .user-text { display: none; } }
@media (max-width: 480px) { .bare-top .brand-text { display: none; } }
