/* SD-WAN Verwaltung: Oberflaeche. Wird nach Bootstrap und app.css geladen. */
:root {
    --bg: #f3f5f9;
    --surface: #ffffff;
    --ink: #1b2433;
    --muted: #667085;
    --line: #e4e7ec;
    --side: #0f1b2d;
    --side-ink: #c5cede;
    --side-hover: #1a2a43;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --ok: #12805c; --ok-bg: #e3f6ee;
    --warn: #9a6700; --warn-bg: #fdf3d8;
    --bad: #b42318; --bad-bg: #fde8e6;
    --radius: 10px;
}

html, body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
code { color: #344054; background: #eef1f6; padding: .1rem .35rem; border-radius: 5px; font-size: .86em; }

/* ---------- Rahmen ---------- */
.app { display: flex; min-height: 100vh; }

.side {
    width: 15.5rem; flex: none; background: var(--side); color: var(--side-ink);
    display: flex; flex-direction: column; padding: 1.1rem .8rem; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; padding: .25rem .55rem 1.1rem; font-weight: 600; letter-spacing: .01em; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-logo { display: block; height: 2.5rem; width: auto; max-width: 100%; }
.side-body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

.nav-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #6f7e99; padding: 1rem .65rem .35rem; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
    display: block; color: var(--side-ink); padding: .5rem .7rem; border-radius: 8px; border-left: 3px solid transparent;
}
.nav-list a:hover { background: var(--side-hover); color: #fff; text-decoration: none; }
.nav-list a.active { background: var(--side-hover); color: #fff; border-left-color: #60a5fa; font-weight: 600; }

.side-user { margin-top: auto; border-top: 1px solid #22314d; padding: .9rem .55rem 0; }
.side-user .name { color: #fff; font-weight: 600; }
.side-user .role { color: #8190ab; font-size: .8rem; margin-bottom: .6rem; }
.side-user .btn { width: 100%; color: var(--side-ink); border-color: #2b3c5c; background: transparent; }
.side-user .btn:hover { background: var(--side-hover); color: #fff; }
.logout { margin: 0; }

.main { flex: 1; min-width: 0; }
.content { max-width: 74rem; margin: 0 auto; padding: 2rem 2rem 3rem; }

h1 { font-size: 1.65rem; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .35rem; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 0 0 .85rem; }
.lead-text { color: var(--muted); margin-bottom: 1.5rem; max-width: 46rem; }

/* ---------- Flaechen ---------- */
.panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem 1.35rem; margin-bottom: 1.25rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.panel > :last-child { margin-bottom: 0; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush .table { margin: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.35rem .2rem; }
.panel-head h2 { margin: 0; }
.hint { color: var(--muted); font-size: .88rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tile {
    display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.tile:hover { border-color: #b8c4dd; text-decoration: none; color: var(--ink); box-shadow: 0 3px 10px rgba(16, 24, 40, .08); }
.tile b { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.tile span { color: var(--muted); font-size: .88rem; }

/* ---------- Tabellen ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; border-color: var(--line); }
.table > :not(caption) > * > * { padding: .7rem 1rem; border-bottom-color: var(--line); background: transparent; }
.table thead th {
    background: #f8fafc; color: #475467; font-size: .74rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody tr:hover > * { background: #fafbfd; }
.table-wrap { overflow-x: auto; }

.chip {
    display: inline-block; font-family: Consolas, "Cascadia Mono", monospace; font-size: .82rem;
    background: #eef2f9; color: #2f4066; border-radius: 6px; padding: .12rem .45rem; margin: 0 .25rem .25rem 0;
}
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-info { background: #e8effd; color: #2850b4; }
.pill-muted { background: #eef0f4; color: #55627a; }

/* ---------- Formulare ---------- */
.form-label { font-size: .82rem; font-weight: 600; color: #475467; margin-bottom: .3rem; }
.form-control, .form-select {
    border-color: #d0d5dd; border-radius: 8px; padding: .5rem .7rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.form-control:focus, .form-select:focus { border-color: #7aa2f7; box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); }
.form-sep {
    margin-top: .6rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .8rem; font-weight: 600;
    color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}

.btn { border-radius: 8px; font-weight: 600; padding: .5rem 1rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; }

.alert { border-radius: 8px; border: 1px solid transparent; padding: .7rem 1rem; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe6d5; }
.alert-danger { background: var(--bad-bg); color: var(--bad); border-color: #f6c6c1; }
.text-muted { color: var(--muted) !important; }

.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.issue-list li { display: flex; gap: .65rem; align-items: baseline; }

/* ---------- Anmeldung ---------- */
.login-page { background: radial-gradient(1200px 500px at 50% -10%, #dfe8fb, var(--bg)); }
.login-box { border-radius: 14px; border-color: var(--line); box-shadow: 0 10px 30px rgba(16, 24, 40, .1); padding: 2rem; }
.login-title { margin: 0 0 1.4rem; line-height: 0; }
.login-title img { height: 2.8rem; width: auto; }

/* ---------- Fehlerleiste ---------- */
#blazor-error-ui { background: var(--warn-bg); color: var(--warn); border-top: 1px solid #f0d58b; }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 860px) {
    .app { flex-direction: column; }
    .side { width: 100%; height: auto; max-height: 100vh; overflow-y: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .55rem .9rem; }
    .brand { padding: 0; }
    .brand-logo { height: 2rem; }
    .nav-burger { display: flex; flex-direction: column; gap: 5px; padding: .6rem; cursor: pointer; }
    .nav-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
    .side-body { display: none; width: 100%; flex: none; overflow: visible; padding-top: .5rem; }
    .nav-toggle:checked ~ .side .side-body { display: flex; }
    .nav-list a { border-left: 0; padding: .7rem .65rem; }
    .side-user { margin: .75rem 0 .25rem; border-top: 1px solid #22314d; padding: .75rem .55rem 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
    .side-user .role { display: none; }
    .side-user .name { margin: 0; }
    .side-user .btn { width: auto; }
    .content { padding: 1.1rem .9rem 2rem; }
    .kpis { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    /* Tabellen: Breite behalten, im Rahmen seitlich wischen statt zerquetschen */
    .panel, .panel-flush { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { width: max-content; min-width: 100%; }
    .table > :not(caption) > * > * { padding: .6rem .75rem; }
    code, .chip, .pill { white-space: nowrap; }
    .panel { padding: 1rem; margin-bottom: 1rem; }
    .panel-head { flex-wrap: wrap; gap: .4rem; padding: .85rem 1rem .2rem; }
    .panel-title.pad { padding: .85rem 1rem .3rem; }
    h1 { font-size: 1.4rem; }
    .lead-text { margin-bottom: 1rem; }
    .tiles { grid-template-columns: 1fr; gap: .7rem; }
    /* Bedienung mit dem Finger: iOS zoomt bei Eingabefeldern unter 16px */
    .form-control, .form-select { font-size: 16px; min-height: 2.75rem; }
    .btn { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { min-height: 2.4rem; }
    .login-box { padding: 1.4rem; }
}
@media (max-width: 480px) {
    .kpi { padding: .75rem .85rem; }
    .kpi-n { font-size: 1.6rem; }
}

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.04); border-top: 3px solid #93b4f5; }
.kpi:hover { text-decoration: none; color: var(--ink); box-shadow: 0 3px 10px rgba(16,24,40,.08); }
.kpi-n { font-size: 1.9rem; font-weight: 650; line-height: 1.1; }
.kpi-l { color: var(--muted); font-size: .85rem; }
.kpi-ok { border-top-color: #34b58a; } .kpi-warn { border-top-color: #e8b33c; } .kpi-bad { border-top-color: #e5584b; }

.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .85rem; }
.panel-title h2 { margin: 0; }
.panel-title.pad { padding: 1rem 1.35rem .3rem; margin: 0; }
h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin: 0 0 .5rem; }

.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.site { display: block; border: 1px solid var(--line); border-left: 4px solid #34b58a; border-radius: 8px; padding: .8rem .95rem; color: var(--ink); background: #fcfdfe; }
.site:hover { text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(16,24,40,.08); }
.site-warn { border-left-color: #e8b33c; } .site-bad { border-left-color: #e5584b; }
.site-top { display: flex; justify-content: space-between; align-items: center; }
.site-name { color: var(--muted); font-size: .88rem; margin: .1rem 0 .4rem; }
.site-meta { font-size: .82rem; color: #475467; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.25rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }

.bar-row { display: grid; grid-template-columns: 11rem 1fr 2.2rem; gap: .7rem; align-items: center; margin-bottom: .5rem; font-size: .9rem; }
.bar { background: #edf0f6; border-radius: 6px; height: .7rem; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); border-radius: 6px; }
.bar-n { text-align: right; font-weight: 600; }

/* ---------- Bearbeiten ---------- */
.row-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid #f0f2f6; }
.row-item:last-of-type { border-bottom: 0; }
.actions { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
details.edit { display: inline-block; position: relative; }
details.edit > summary { list-style: none; cursor: pointer; display: inline-block; }
details.edit > summary::-webkit-details-marker { display: none; }
details.panel.edit { display: block; }
.edit-form { min-width: 17rem; }
.edit-form.wide { min-width: min(40rem, 86vw); }
/* Dialog: echtes Fenster in der Bildschirmmitte mit abgedunkeltem Hintergrund (wird nicht von Tabellen abgeschnitten). */
.edit-pop, details.edit[open] > .edit-form {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1050;
    width: min(36rem, 92vw); background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 1.4rem; box-shadow: 0 24px 64px rgba(16,24,40,.35); text-align: left; max-height: 88vh; overflow: auto;
}
.edit-pop.wide, .edit-pop:has(.wide) { width: min(46rem, 94vw); }
.edit-pop .edit-form, .edit-pop .edit-form.wide { min-width: 0; }
details.edit:not(.panel)[open]::before { content: ""; position: fixed; inset: 0; background: rgba(15,27,45,.45); z-index: 1040; }
.edit-form .btn + .btn { margin-left: .4rem; }
details.edit:not([open]) > .edit-pop { display: none; }
details.panel.edit > .mt-3 { position: static; }
details.panel.edit .edit-form { position: static; box-shadow: none; border: 0; padding: 0; }
.btn-outline-secondary { color: #475467; border-color: #d0d5dd; background: #fff; }
.btn-outline-secondary:hover { background: #f2f4f7; color: var(--ink); }
.btn-outline-primary { color: var(--accent); border-color: #b9cdf8; background: #fff; }
.btn-outline-danger { color: var(--bad); border-color: #f1b9b3; background: #fff; }
.btn-outline-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
/* ---------- Kennzahlenleiste und Ringdiagramme ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.strip-i { display: flex; flex-direction: column; padding: .85rem 1.05rem; border-right: 1px solid var(--line); color: var(--ink); }
.strip-i:last-child { border-right: 0; }
.strip-i:hover { background: #f8fafd; text-decoration: none; color: var(--ink); }
.strip-t { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.strip-n { font-size: 1.8rem; font-weight: 650; line-height: 1.15; }
.strip-s { font-size: .78rem; color: var(--muted); }
.strip-ok .strip-n { color: var(--ok); } .strip-warn .strip-n { color: var(--warn); } .strip-bad .strip-n { color: var(--bad); }

.split { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.split-main { flex: 1; min-width: 14rem; }
.donut-box { display: flex; flex-direction: column; align-items: center; gap: .7rem; min-width: 9.5rem; }
.donut { width: 8.5rem; height: 8.5rem; border-radius: 50%; display: grid; place-items: center; }
.donut-hole { width: 5.6rem; height: 5.6rem; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.donut-hole b { font-size: 1.6rem; font-weight: 650; }
.donut-hole span { font-size: .72rem; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; font-size: .82rem; color: #475467; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; padding-left: .8rem; }
.row-item.plain { color: var(--ink); }
.row-item.plain:hover { text-decoration: none; background: #fafbfd; }
/* ---------- Werkzeugleiste, Sortierung, Fehlerband ---------- */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .form-control { flex: 1; min-width: 14rem; }
.toolbar .form-select { width: auto; min-width: 10rem; }
.sortlink { color: inherit; white-space: nowrap; }
.sortlink:hover { color: var(--accent); text-decoration: none; }
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: .6rem 1.25rem; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .9rem; top: .5rem; }.hint.pad { padding: 0 1.35rem .6rem; margin: 0; }

/* ---------- IPAM ---------- */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 1.3rem; border-left: 1px solid var(--line); }
.tree li { margin: 0; }
.tree summary { list-style: none; cursor: pointer; }
.tree summary::-webkit-details-marker { display: none; }
.tree-row { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(8rem, 1fr) 6rem 6rem 7rem 9rem; min-width: 52rem; gap: .6rem; align-items: center; padding: .35rem .6rem; border-bottom: 1px solid #f0f2f6; font-size: .9rem; }
.tree-row:hover { background: #fafbfd; }
.tree-row .twisty { color: var(--muted); font-size: .7rem; text-align: center; }
details[open] > summary > .tree-row .twisty { transform: rotate(90deg); }
.bar.warn i { background: linear-gradient(90deg, #f0b94a, #e0952b); }
.bar.crit i { background: linear-gradient(90deg, #ee7a6e, #d8453a); }
.toolbar-links { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: #f0d9a3; }
.facts { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: .35rem 1.2rem; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; font-size: .85rem; }
.facts dd { margin: 0; }
.chip-muted { opacity: .55; }
/* Bestaetigungsfenster (Passwort + Authenticator-Code) */
dialog.reauth { border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .6rem; padding: 1.25rem; width: min(34rem, 94vw); box-shadow: 0 1rem 3rem rgba(15,27,45,.3); }
dialog.reauth::backdrop { background: rgba(15,27,45,.45); }
dialog.reauth h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
dialog.reauth .reauth-actions { margin-top: 1rem; }

/* ---------- Register (Tabs) ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); margin: 0 0 1.25rem; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; margin-bottom: 0; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--ink); text-decoration: none; border-bottom-color: #c9d2e3; }
.tab.active { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.tab-n { font-size: .72rem; font-weight: 600; min-width: 1.35rem; padding: .05rem .4rem; border-radius: 999px; background: #eef0f4; color: #55627a; text-align: center; }
.tab.active .tab-n { background: #e8effd; color: #2850b4; }
.tab-n.tab-warn { background: var(--warn-bg); color: var(--warn); }
.tab-panel > :first-child { margin-top: 0; }

/* ---------- Ruhige Tabellen (table-calm) ---------- */
.table-calm > :not(caption) > * > * { padding: .55rem 1rem; border-bottom-color: #eef0f4; }
.table-calm thead th { background: transparent; border-bottom: 1px solid var(--line); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .8rem; color: var(--muted); }
.table-calm tbody tr:last-child > * { border-bottom: 0; }
.table-calm .num { font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #c3cad6; margin-right: .5rem; vertical-align: .05em; }
.dot-ok { background: #22a06b; box-shadow: 0 0 0 3px #e3f6ee; }
.dot-warn { background: #d9a400; }
.dot-bad { background: #d92d20; }
.muted { color: var(--muted); }
.sub { display: block; color: var(--muted); font-size: .8rem; line-height: 1.25; }
.you { margin-left: .4rem; font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 .45rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-t { color: var(--ink); font-weight: 600; margin-bottom: .25rem; }
.btn-quiet { background: transparent; border: 0; color: var(--muted); font-size: .85rem; padding: .2rem .5rem; }
.btn-quiet:hover { color: var(--bad); background: var(--bad-bg); }

/* IPAM: gemeinsame Navigation oben auf allen IPAM-Seiten */
.ipam-nav { margin-bottom: 1rem; }

/* Importvorlagen */
.tpl-list { display: grid; gap: .6rem; margin-bottom: 1rem; }
.tpl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .6rem; }
.tpl-text { min-width: 0; }
.tpl-actions { display: flex; gap: .4rem; flex-wrap: wrap; flex-shrink: 0; }
.tpl-help summary { cursor: pointer; font-weight: 600; margin-bottom: .5rem; }
@media (max-width: 767.98px) {
    .tpl { flex-direction: column; align-items: stretch; }
    .tpl-actions .btn { flex: 1 1 auto; min-height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; }
}

/* Stammdaten: Kachelübersicht der Auswahllisten */
.tile-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.4rem 0 .6rem; }
.tile-group:first-of-type { margin-top: .4rem; }
.tile b { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tile .tile-n { font-size: .72rem; font-weight: 600; min-width: 1.5rem; padding: .1rem .45rem; border-radius: 999px; background: #e8effd; color: #2850b4; text-align: center; }
.back-link { margin: 0 0 .9rem; }

/* ---------- Server (Register, Schluesselzeile) ---------- */
.crumb { margin: 0 0 .25rem; font-size: .85rem; }
.inline-form { margin: 0; }
.tabs { display: flex; gap: .25rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: .6rem 1rem; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.keyline { background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; white-space: pre-wrap; word-break: break-all; font-size: .82rem; margin: 0 0 .5rem; }
.break { word-break: break-all; }
@media (max-width: 860px) {
    .tab { padding: .75rem .9rem; }
    .facts { grid-template-columns: 1fr; gap: .1rem; }
    .facts dd { margin-bottom: .6rem; }
    .grid2 { grid-template-columns: 1fr; }
}
/* Benutzer-Zuordnung: Standort-Auswahl als umbrechende Reihe mit grossen Tippflaechen */
.assign-sites { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.assign-site { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; cursor: pointer; min-height: 2.4rem; }
.assign-site[hidden] { display: none; }
