/* Brogli Backup – Oberfläche im Brogli-Informatik-CI (Design-System
   «Brogli Informatik GmbH CICD»): brand-blue #2f5376, nur Overpass, eckig,
   kühle Neutrale, Karten ohne Schatten, Modale mit shadow-3. Keine
   Inline-Styles (CSP). */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/overpass-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/overpass-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand-blue: #2f5376; --brand-blue-800: #1d3449; --brand-blue-700: #264462; --brand-blue-500: #3d6a95;
  --brand-blue-300: #7fa0bf; --brand-blue-100: #dae4ef; --brand-blue-050: #eef3f8;
  --neutral-050: #f6f7f9; --neutral-100: #eceef2; --neutral-200: #dde1e7; --neutral-300: #c1c7d0;
  --neutral-400: #8d96a3; --neutral-500: #636c78; --neutral-600: #454c57; --neutral-700: #2c323a;
  --neutral-900: #0f1216;
  --success: #2f7a4d; --success-bg: #e4f1ea; --warning: #b67a19; --warning-bg: #fbefd6; --warning-fg: #8d5a12;
  --danger: #b03a2e; --danger-bg: #f7e2df; --danger-fg: #8a2c23;
  --fg-1: var(--neutral-900); --fg-2: var(--neutral-700); --fg-3: var(--neutral-500); --fg-4: var(--neutral-400);
  --bg-1: #fff; --bg-2: var(--neutral-050); --bg-3: var(--neutral-100);
  --border-1: var(--neutral-200); --border-2: var(--neutral-300);
  --shadow-2: 0 4px 10px rgba(15, 18, 22, .08), 0 1px 2px rgba(15, 18, 22, .06);
  --shadow-3: 0 12px 28px rgba(15, 18, 22, .12), 0 2px 4px rgba(15, 18, 22, .06);
  --focus-ring: 0 0 0 3px rgba(47, 83, 118, .28);
  --font: "Overpass", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, 0, .2, 1);
  --sidebar: 264px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--fg-2); background: var(--bg-2); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--fg-1); margin: 0; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-blue); text-underline-offset: 3px; }
a:hover { color: var(--brand-blue-700); }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--bg-3); padding: 1px 6px; border-radius: 2px; overflow-wrap: anywhere; }
pre.cmd { white-space: pre; overflow-x: auto; line-height: 1.6; }
td.wrap { overflow-wrap: anywhere; min-width: 140px; max-width: 380px; }
pre { font-family: var(--mono); font-size: 13px; background: var(--bg-3); padding: 12px 16px; overflow-x: auto; margin: 0; white-space: pre-wrap; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; vertical-align: middle; }
.logo { display: block; fill: currentColor; height: auto; }

/* ---------- App-Gerüst: Navigation links ---------- */
body.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; background: var(--bg-1); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-1); border-right: 1px solid var(--border-1); display: flex; flex-direction: column; padding: 28px 16px 16px; z-index: 30; }
.sidebar-top { display: flex; align-items: flex-start; justify-content: space-between; }
.sidebar-logo { display: flex; align-items: flex-end; gap: 10px; color: var(--brand-blue); text-decoration: none; padding: 0 12px 28px; }
.sidebar .nav-close { display: none; }
.sidebar-logo .logo { width: 120px; }
.sidebar-logo .product { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); padding-bottom: 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); padding: 20px 12px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a, .nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: var(--fg-2); font-size: 14px; font-weight: 500; text-decoration: none; border: 0; background: none; width: 100%; font-family: inherit; text-align: left; cursor: pointer; border-radius: 2px; transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.nav a .icon, .nav-item .icon { color: var(--fg-3); }
.nav a:hover, .nav-item:hover { background: var(--bg-2); color: var(--fg-1); }
.nav a.active, .nav-item.active { background: var(--brand-blue-050); color: var(--brand-blue); font-weight: 600; }
.nav a.active .icon, .nav-item.active .icon { color: var(--brand-blue); }
.sidebar-foot { border-top: 1px solid var(--border-1); padding-top: 12px; margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot form { margin: 0; }
.count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--brand-blue); color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.shell { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg-2); border-left: 1px solid var(--border-1); margin-left: -1px; }
.topbar { display: none; }
.main { flex: 1; width: 100%; max-width: 1280px; padding: 40px 48px 64px; }
.footer { padding: 20px 48px 28px; font-size: 12px; color: var(--fg-3); border-top: 1px solid var(--border-1); }
.acting { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 48px; background: var(--warning-bg); color: var(--warning-fg); font-size: 14px; border-bottom: 1px solid #efd9a8; }
.acting form { margin: 0 0 0 auto; }
.scrim { display: none; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head .titles { min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 8px; }
.page-head h1 { font-size: 34px; font-weight: 300; line-height: 1.15; }
.page-head .lead { margin: 8px 0 0; color: var(--fg-3); max-width: 70ch; }
.page-head .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-3); text-decoration: none; margin-bottom: 12px; }
.back .icon { width: 16px; height: 16px; }
.back:hover { color: var(--brand-blue); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.section-title h2 { font-size: 22px; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; padding: 10px 18px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-700); color: #fff; }
.btn-primary:active { background: var(--brand-blue-800); }
.btn-secondary { background: var(--bg-1); color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-secondary:hover { background: var(--brand-blue-050); color: var(--brand-blue-700); }
.btn-ghost { background: transparent; color: var(--fg-2); padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { color: var(--brand-blue); background: var(--bg-2); }
.btn-danger { background: var(--bg-1); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger-fg); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: transparent; color: var(--fg-3); cursor: pointer; border-radius: 2px; flex: none; }
.btn-icon:hover { background: var(--bg-2); color: var(--fg-1); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--brand-blue); cursor: pointer; font-weight: 500; }
.link-btn:hover { color: var(--brand-blue-700); text-decoration: underline; }
form.inline { display: inline; margin: 0; }

/* ---------- Flächen ---------- */
.panel { background: var(--bg-1); border: 1px solid var(--border-1); margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--border-1); }
.panel-head h2 { font-size: 18px; font-weight: 600; }
.panel-head p { margin: 4px 0 0; font-size: 14px; color: var(--fg-3); }
.panel-body { padding: 24px; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-accent { border-top: 3px solid var(--brand-blue); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 24px; }
.grid-2 > .panel { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border-1); border: 1px solid var(--border-1); margin-bottom: 32px; }
.stat { background: var(--bg-1); padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.stat-label .icon { width: 16px; height: 16px; color: var(--brand-blue); }
.stat-value { font-size: 32px; font-weight: 300; line-height: 1.1; color: var(--fg-1); }
.stat-value small { font-size: 15px; color: var(--fg-3); font-weight: 400; }
.stat-note { font-size: 13px; color: var(--fg-3); }
.stat-note.danger { color: var(--danger); }

.meter { height: 6px; background: var(--neutral-100); overflow: hidden; margin: 6px 0 2px; }
.meter > span { display: block; height: 100%; background: var(--brand-blue); }
.meter.warn > span { background: var(--warning); }
.meter.danger > span { background: var(--danger); }
.w0 > span { width: 0 } .w5 > span { width: 5% } .w10 > span { width: 10% } .w15 > span { width: 15% } .w20 > span { width: 20% }
.w25 > span { width: 25% } .w30 > span { width: 30% } .w35 > span { width: 35% } .w40 > span { width: 40% } .w45 > span { width: 45% }
.w50 > span { width: 50% } .w55 > span { width: 55% } .w60 > span { width: 60% } .w65 > span { width: 65% } .w70 > span { width: 70% }
.w75 > span { width: 75% } .w80 > span { width: 80% } .w85 > span { width: 85% } .w90 > span { width: 90% } .w95 > span { width: 95% } .w100 > span { width: 100% }

.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 24px; margin: 0; font-size: 14px; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; color: var(--fg-1); min-width: 0; overflow-wrap: anywhere; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding: 12px 16px; border-bottom: 1px solid var(--border-1); white-space: nowrap; background: var(--bg-1); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border-1); vertical-align: middle; color: var(--fg-2); }
tr:last-child > td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
tbody tr { transition: background-color 120ms var(--ease); }
tr.row-link { cursor: pointer; }
tr.row-link:hover, tbody tr:hover { background: var(--brand-blue-050); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions-cell { text-align: right; white-space: nowrap; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-main .icon { color: var(--brand-blue); }
.cell-title { color: var(--fg-1); font-weight: 600; text-decoration: none; }
a.cell-title:hover { color: var(--brand-blue); text-decoration: underline; }
.cell-sub { font-size: 13px; color: var(--fg-3); }
.muted { color: var(--fg-3); }
.small { font-size: 13px; }
.err-text { color: var(--danger); font-size: 13px; }

/* ---------- Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 4px; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge-danger { background: var(--danger-bg); color: var(--danger-fg); }
.badge-info { background: var(--brand-blue-050); color: var(--brand-blue-700); }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-600); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .85; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border: 1px solid var(--border-2); color: var(--fg-2); border-radius: 2px; }

/* ---------- Meldungen ---------- */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 24px; border: 1px solid transparent; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger-fg); }
.alert-warning { background: var(--warning-bg); color: var(--warning-fg); }
.alert-info { background: var(--brand-blue-050); color: var(--brand-blue-700); }
.alert b { font-weight: 600; }
.modal-body .alert { margin-bottom: 20px; }

.empty { text-align: center; padding: 48px 24px; }
.empty .icon { width: 36px; height: 36px; color: var(--brand-blue-300); margin-bottom: 12px; }
.empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.empty p { color: var(--fg-3); max-width: 46ch; margin: 0 auto 20px; }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; align-content: start; }
.field label, .field .label { font-size: 13px; font-weight: 500; color: var(--fg-1); }
.field .hint, .hint { font-size: 13px; color: var(--fg-3); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=search], select, textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--fg-1); padding: 10px 12px; border: 1px solid var(--border-2);
  background: var(--bg-1); border-radius: 2px; outline: none; transition: border-color 120ms, box-shadow 120ms; }
input::placeholder, textarea::placeholder { color: var(--fg-4); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-blue); box-shadow: var(--focus-ring); }
textarea { min-height: 88px; resize: vertical; line-height: 1.5; font-family: var(--mono); font-size: 13px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636c78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-2); margin-bottom: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand-blue); flex: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-blue); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px 24px; border-bottom: 1px solid var(--border-1); }
.filters .field { margin: 0; min-width: 180px; }
.searchbar { display: flex; gap: 8px; flex: 1 1 360px; max-width: 560px; }
.searchbar input { flex: 1; }

/* ---------- Dialoge ---------- */
dialog.modal { border: 0; padding: 0; margin: auto; width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--bg-1); color: var(--fg-2); box-shadow: var(--shadow-3); border-radius: 0; overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in 320ms var(--ease); }
dialog.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1; margin: 0; }
dialog.modal-sm { width: min(460px, calc(100vw - 32px)); }
dialog.modal-lg { width: min(880px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(15, 18, 22, .5); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--border-1); }
.modal-head h2 { font-size: 20px; font-weight: 600; }
.modal-sub { margin: 4px 0 0; font-size: 14px; color: var(--fg-3); }
.modal-body { padding: 24px; overflow-y: auto; min-height: 0; flex: 1; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--border-1); background: var(--bg-2); }
.modal-foot .left { margin-right: auto; }
.modal-section { margin-top: 24px; }
.modal-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.modal-section > .hint { margin-bottom: 12px; }

.code-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: var(--brand-blue-050); border: 1px solid var(--brand-blue-100); margin-bottom: 12px; }
.code { font-family: var(--mono); font-size: 24px; letter-spacing: .06em; color: var(--brand-blue-800); font-weight: 500; }
.code-wrap { font-size: 14px; letter-spacing: 0; word-break: break-all; flex: 1; min-width: 0; }
.steps { margin: 20px 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.steps b { color: var(--fg-1); font-weight: 600; }
details.more { border-top: 1px solid var(--border-1); padding-top: 12px; font-size: 14px; }
details.more summary { cursor: pointer; color: var(--brand-blue); font-weight: 500; }
details.more[open] summary { margin-bottom: 12px; }

/* ---------- Ordnerauswahl ---------- */
.picker { border: 1px solid var(--border-2); background: var(--bg-1); }
.picker-tree { max-height: 320px; overflow-y: auto; padding: 6px 0; }
.picker-tree ul { list-style: none; margin: 0; padding: 0; }
.picker-tree ul ul { padding-left: 22px; }
.node { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 6px; min-height: 36px; }
.node:hover { background: var(--brand-blue-050); }
.node .toggle { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--fg-3); cursor: pointer; flex: none; transition: transform 120ms var(--ease); }
.node .toggle .icon { width: 16px; height: 16px; }
.node .toggle.open { transform: rotate(90deg); }
.node .toggle:disabled { visibility: hidden; }
.node input { width: 16px; height: 16px; margin: 0; flex: none; }
.node .kind { color: var(--brand-blue); width: 18px; height: 18px; }
.node label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 14px; color: var(--fg-1); }
.node.covered label { color: var(--fg-3); }
.tree-msg { padding: 8px 12px 8px 40px; font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.tree-msg.error { color: var(--danger); }
.picker-status { padding: 10px 14px; font-size: 13px; color: var(--fg-3); border-top: 1px solid var(--border-1); background: var(--bg-2); display: flex; align-items: center; gap: 8px; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--brand-blue-100); border-top-color: var(--brand-blue); border-radius: 999px; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 10px; border: 1px solid var(--brand-blue-100); background: var(--brand-blue-050); color: var(--brand-blue-800); font-family: var(--mono); font-size: 13px; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip button { display: inline-flex; border: 0; background: transparent; color: var(--brand-blue-700); cursor: pointer; padding: 2px; }
.chip button .icon { width: 16px; height: 16px; }
.chip button:hover { color: var(--danger); }
.times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.time-item { display: inline-flex; align-items: center; border: 1px solid var(--border-2); background: var(--bg-1); }
.time-item input { border: 0; width: 112px; padding: 8px 4px 8px 10px; }
.time-item input:focus { box-shadow: none; }
.time-item button { border: 0; background: none; color: var(--fg-3); cursor: pointer; padding: 6px 8px; display: inline-flex; }
.time-item button:hover { color: var(--danger); }
.time-item button .icon { width: 16px; height: 16px; }

/* ---------- Backup-Sets ---------- */
.sets { display: grid; gap: 1px; background: var(--border-1); }
.set { background: var(--bg-1); padding: 18px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
.set h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.set h3 .icon { color: var(--brand-blue); }
.set-meta { font-size: 13px; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.set-meta span { display: inline-flex; align-items: center; gap: 6px; }
.set-meta .icon { width: 15px; height: 15px; }
.set-paths { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.path { font-family: var(--mono); font-size: 12.5px; padding: 2px 8px; background: var(--bg-3); color: var(--fg-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-actions { display: flex; gap: 8px; }

/* ---------- Datei-Browser ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; padding: 14px 24px; border-bottom: 1px solid var(--border-1); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--fg-4); }
.crumbs .icon { width: 14px; height: 14px; color: var(--fg-4); }
.toolbar-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--border-1); background: var(--bg-2); position: sticky; bottom: 0; }

/* ---------- Installation ---------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1px; background: var(--border-1); border: 1px solid var(--border-1); margin-bottom: 24px; }
.platform { background: var(--bg-1); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.platform h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.platform h3 .icon { color: var(--brand-blue); width: 24px; height: 24px; }
.platform p { font-size: 14px; color: var(--fg-3); margin: 0; }
.platform .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

/* ---------- Anmeldung ---------- */
body.auth { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: 100vh; background: var(--bg-1); }
.auth-brand { background: var(--brand-blue); color: #fff; display: flex; align-items: center; padding: 64px; }
.auth-brand-inner { max-width: 420px; }
.auth-brand .logo { width: 200px; color: #fff; margin-bottom: 48px; }
.auth-claim { font-size: 28px; font-weight: 300; line-height: 1.3; color: #fff; margin-bottom: 32px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.auth-points li { display: flex; gap: 12px; align-items: center; }
.auth-points .icon { color: var(--brand-blue-100); }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 32px; font-weight: 300; margin-bottom: 8px; }
.auth-box .lead { color: var(--fg-3); margin-bottom: 28px; }
.auth-box .btn-primary { width: 100%; padding: 12px; margin-top: 6px; }
.auth-foot { margin-top: 48px; font-size: 12px; color: var(--fg-3); }
.qr { display: block; width: 200px; height: 200px; border: 1px solid var(--border-1); padding: 8px; background: #fff; margin: 0 0 16px; image-rendering: pixelated; }
.secret { font-family: var(--mono); font-size: 13px; word-break: break-all; background: var(--bg-3); padding: 8px 10px; display: block; margin-bottom: 20px; }
.otp { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 960px) {
  body.app { display: block; }
  .shell { border-left: 0; margin-left: 0; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform 200ms var(--ease); box-shadow: var(--shadow-3); }
  body.nav-open .sidebar { transform: none; }
  .sidebar .nav-close { display: inline-flex; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 18, 22, .4); z-index: 20; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; padding: 10px 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-1); }
  .topbar-logo { color: var(--brand-blue); }
  .topbar-logo .logo { width: 96px; }
  .main { padding: 24px 16px 48px; }
  .footer, .acting { padding-left: 16px; padding-right: 16px; }
  .page-head h1 { font-size: 28px; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  .panel-head, .panel-body, .set, .crumbs, .filters, .toolbar-bar { padding-left: 16px; padding-right: 16px; }
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { padding: 12px 16px; border-bottom: 1px solid var(--border-1); }
  table.responsive td { border: 0; padding: 3px 0 !important; }
  table.responsive td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-top: 6px; }
  table.responsive td.actions-cell { text-align: left; padding-top: 10px !important; }
  body.auth { display: block; }
  .auth-brand { padding: 32px 24px; }
  .auth-brand .logo { width: 150px; margin-bottom: 20px; }
  .auth-claim { font-size: 20px; margin-bottom: 0; }
  .auth-points { display: none; }
  .auth-main { padding: 32px 20px; justify-content: flex-start; }
  .set { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.h-sm { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
