/* Vionest Extranet */
:root {
  --bg: var(--vn-bg);
  --surface: var(--vn-surface);
  --surface-2: var(--vn-surface-2);
  --surface-3: #f1f0f7;
  --line: var(--vn-line);
  --line-strong: var(--vn-line-strong);
  --text: var(--vn-ink);
  --text-2: var(--vn-ink-2);
  --text-3: var(--vn-ink-3);
  --accent: var(--vn-violet-600);
  --accent-strong: var(--vn-violet-700);
  --accent-soft: var(--vn-violet-50);
  --accent-soft-2: var(--vn-violet-100);
  --mint: var(--vn-mint-600);
  --mint-soft: var(--vn-mint-50);
  --danger: var(--vn-coral);
  --danger-soft: var(--vn-coral-50);
  --warn: var(--vn-amber);
  --warn-soft: var(--vn-amber-50);
  --info: var(--vn-sky);
  --info-soft: var(--vn-sky-50);
  --side-bg: #16142c;
  --side-bg-2: #211e3d;
  --side-text: #c9c6e4;
  --side-text-strong: #ffffff;
  --weekend: #f6f4fd;
  --today: #fff6e0;
  --dirty: #efeaff;
  --series-1: #6e5cf6;
  --chart-grid: #ecebf3;
  --focus: 0 0 0 3px rgba(110, 92, 246, .28);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0f0e1d;
  --surface: #17152c;
  --surface-2: #1c1a33;
  --surface-3: #23213e;
  --line: #2c2a48;
  --line-strong: #3a3760;
  --text: #ecebf7;
  --text-2: #b9b6d3;
  --text-3: #8784a6;
  --accent: #8f7ffb;
  --accent-strong: #a597ff;
  --accent-soft: #241f4a;
  --accent-soft-2: #2e2860;
  --mint: #34d3ac;
  --mint-soft: #123a31;
  --danger: #f07a66;
  --danger-soft: #3a1f1d;
  --warn: #f0b04a;
  --warn-soft: #3a2c12;
  --info: #6aaef0;
  --info-soft: #14283d;
  --side-bg: #0b0a17;
  --side-bg-2: #19172f;
  --weekend: #1d1a36;
  --today: #3a3014;
  --dirty: #2c2560;
  --series-1: #8f7ffb;
  --chart-grid: #26244a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.45 var(--vn-font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
small, .muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--vn-mono); font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 22px; height: 22px; }

/* ---------- Grundlayout ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.shell.collapsed { grid-template-columns: 68px 1fr; }
.side {
  background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin;
}
.side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.side .brand img { height: 30px; }
.side .brand .mark { display: none; height: 32px; }
.shell.collapsed .side .brand .logo { display: none; }
.shell.collapsed .side .brand .mark { display: block; }
.prop-switch {
  margin: 4px 12px 10px; padding: 9px 10px; border-radius: 10px; background: var(--side-bg-2); border: 1px solid #2d2a4d;
  display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--side-text-strong); width: calc(100% - 24px); text-align: left;
}
.prop-switch .dot { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #6e5cf6, #4334c2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.prop-switch .t { flex: 1; min-width: 0; }
.prop-switch .t b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-switch .t span { font-size: 11.5px; color: var(--side-text); }
.shell.collapsed .prop-switch .t, .shell.collapsed .prop-switch > .icon { display: none; }
.nav { padding: 4px 10px 16px; flex: 1; }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7d79a3; padding: 14px 10px 6px; font-weight: 600; }
.shell.collapsed .nav .grp { visibility: hidden; height: 12px; padding: 6px 0; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--side-text);
  font-weight: 500; text-decoration: none; position: relative;
}
.nav a:hover { background: var(--side-bg-2); color: var(--side-text-strong); }
.nav a.on { background: #2a2552; color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--vn-mint-400); }
.nav a .count { margin-left: auto; background: var(--vn-mint-500); color: #0b2e25; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; line-height: 18px; }
.shell.collapsed .nav a span, .shell.collapsed .nav a .count { display: none; }
.shell.collapsed .nav a { justify-content: center; }
.side-foot { padding: 10px 12px 14px; border-top: 1px solid #25223f; display: flex; gap: 6px; }
.side-foot button { background: none; border: 0; color: var(--side-text); padding: 7px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.side-foot button:hover { background: var(--side-bg-2); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 22px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; min-width: 0; }
.crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .spacer { flex: 1; }
.search-btn {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); color: var(--text-3); cursor: pointer; min-width: 240px;
}
.search-btn kbd { margin-left: auto; font: 11px var(--vn-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--text-3); }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text-2); position: relative; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .badge-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--vn-coral); border-radius: 50%; border: 2px solid var(--surface); }
.user-btn { display: flex; align-items: center; gap: 9px; border: 0; background: none; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 10px; }
.user-btn:hover { background: var(--surface-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft-2); color: var(--accent-strong); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.user-btn .t { text-align: left; line-height: 1.2; }
.user-btn .t b { display: block; font-size: 13px; }
.user-btn .t span { font-size: 11.5px; color: var(--text-3); }
.content { padding: 22px 24px 48px; max-width: 1480px; width: 100%; }
.content.wide { max-width: none; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .t { flex: 1; min-width: 220px; }
.page-head p { margin: 4px 0 0; color: var(--text-3); }
.page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 550; cursor: pointer; white-space: nowrap;
  text-decoration: none !important; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12.5px; border-radius: 7px; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
.btn .pill-count { background: rgba(255, 255, 255, .22); border-radius: 10px; padding: 0 7px; font-size: 12px; line-height: 18px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--vn-radius-lg); box-shadow: var(--vn-shadow-sm); }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card > .hd h2, .card > .hd h3 { flex: 1; }
.card > .bd { padding: 16px 18px; }
.card > .bd.flush { padding: 0; }
.card > .ft { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pill .icon { width: 13px; height: 13px; }
.pill.ok { background: var(--mint-soft); color: var(--vn-mint-700); }
.pill.warn { background: var(--warn-soft); color: #9a5c00; }
.pill.bad { background: var(--danger-soft); color: #b43424; }
.pill.info { background: var(--info-soft); color: #1d5f9f; }
.pill.violet { background: var(--accent-soft); color: var(--accent-strong); }
:root[data-theme='dark'] .pill.ok { color: var(--mint); }
:root[data-theme='dark'] .pill.warn { color: var(--warn); }
:root[data-theme='dark'] .pill.bad { color: var(--danger); }
:root[data-theme='dark'] .pill.info { color: var(--info); }
.ch-logo { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--line); padding: 3px; flex: none; }
.ch-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ch-logo.wide { width: auto; min-width: 26px; max-width: 120px; height: 30px; padding: 4px 6px; }
.ch-logo.wide img { width: auto; max-width: 108px; height: 100%; }
:root[data-theme='dark'] .ch-logo { background: #fff; }
.ch-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-size: 11px; font-weight: 700; color: #fff; flex: none; letter-spacing: -.02em; }
.ch-name { display: inline-flex; align-items: center; gap: 8px; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .lbl { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, select.input, textarea.input {
  height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); width: 100%; min-width: 0;
}
textarea.input { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input:disabled { background: var(--surface-3); color: var(--text-3); }
.input.sm { height: 30px; padding: 0 8px; font-size: 13px; }
.input-group { display: flex; }
.input-group .input { border-radius: 8px 0 0 8px; }
.input-group .addon { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 8px 8px 0; background: var(--surface-3); color: var(--text-3); font-size: 13px; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.section-title { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 22px 0 10px; }
.section-title:first-child { margin-top: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .tr { width: 36px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.toggle .tr::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.toggle input:checked + .tr { background: var(--mint); }
.toggle input:checked + .tr::after { transform: translateX(16px); }
.toggle input:focus-visible + .tr { box-shadow: var(--focus); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; height: 34px; padding: 0 13px; cursor: pointer; font-weight: 550; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-soft); color: var(--accent-strong); }
.seg.sm button { height: 28px; padding: 0 10px; font-size: 13px; }
.lang-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.lang-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-3); }
.lang-tabs button.on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-soft-2); }
.lang-tabs button.empty::after { content: ' •'; color: var(--warn); }
.wd-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.wd-chips button { width: 34px; height: 28px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-3); }
.wd-chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; color: var(--text-3); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th .icon { width: 12px; height: 12px; vertical-align: -1px; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl .unseen td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl .unseen .guest { font-weight: 700; }
.tbl tr.cancelled td { color: var(--text-3); }
.tbl tr.cancelled .guest { text-decoration: line-through; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 10px 14px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); }

.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.filters .field { min-width: 140px; }
.filters .field.search { min-width: 240px; flex: 1; max-width: 360px; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .icon { width: 36px; height: 36px; color: var(--line-strong); margin-bottom: 8px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--info-soft); color: var(--text); font-size: 13.5px; align-items: flex-start; }
.note .icon { color: var(--info); margin-top: 1px; }
.note.warn { background: var(--warn-soft); }
.note.warn .icon { color: var(--warn); }
.note.bad { background: var(--danger-soft); }
.note.bad .icon { color: var(--danger); }
.note.ok { background: var(--mint-soft); }
.note.ok .icon { color: var(--mint); }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.loading-box { height: 220px; }

/* Master-Detail */
.md { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.md-list { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.md-list .bd { overflow-y: auto; padding: 8px; }
.md-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.md-item:hover { background: var(--surface-2); }
.md-item.on { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.md-item .t { flex: 1; min-width: 0; }
.md-item .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-item .t span { font-size: 12px; color: var(--text-3); }
.md-item.child { margin-left: 18px; }
.md-item.child::before { content: ''; width: 10px; height: 10px; border-left: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong); border-radius: 0 0 0 4px; margin: -8px 0 0 -12px; flex: none; }
.md-item.inactive .t b { color: var(--text-3); }
.md-group { font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 12px 10px 4px; display: flex; align-items: center; gap: 6px; }
.md-group .btn { margin-left: auto; }
.grip { cursor: grab; color: var(--text-3); display: grid; place-items: center; }
.dragging { opacity: .45; }
.drop-before { box-shadow: 0 -2px 0 var(--accent); }
.drop-after { box-shadow: 0 2px 0 var(--accent); }

/* KPI */
.kpi { padding: 16px 18px; }
.kpi .l { font-size: 12.5px; color: var(--text-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; margin-top: 4px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.kpi .d .up { color: var(--vn-mint-700); font-weight: 650; }
.kpi .d .down { color: #b43424; font-weight: 650; }
:root[data-theme='dark'] .kpi .d .up { color: var(--mint); }
:root[data-theme='dark'] .kpi .d .down { color: var(--danger); }

/* Listen in Karten */
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .t { flex: 1; min-width: 0; }
.list-row .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .t span { font-size: 12.5px; color: var(--text-3); }
a.list-row { color: inherit; text-decoration: none; }
a.list-row:hover { background: var(--surface-2); }
.warn-row { display: flex; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.warn-row:last-child { border-bottom: 0; }
.warn-row .icon { margin-top: 1px; }
.warn-row.error .icon { color: var(--danger); }
.warn-row.warn .icon { color: var(--warn); }
.warn-row.info .icon { color: var(--info); }

/* Diagramme */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--text-3); font-size: 11px; }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .bar { fill: var(--series-1); }
.chart .bar.hl, .chart g.hit:hover .bar { fill: var(--accent-strong); }
.chart .val { fill: var(--text-2); font-size: 11.5px; font-weight: 600; }
.chart .lbl { fill: var(--text-2); font-size: 12px; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 70px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.hbar .track { height: 14px; border-radius: 0 4px 4px 0; position: relative; }
.hbar .fill { height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar:hover .fill { background: var(--accent-strong); }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tip { position: fixed; z-index: 200; pointer-events: none; background: var(--vn-ink); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; box-shadow: var(--vn-shadow-lg); white-space: nowrap; }
.tip b { font-weight: 700; }
:root[data-theme='dark'] .tip { background: #2d2a52; }

/* Modal, Popover, Toast */
.overlay { position: fixed; inset: 0; background: rgba(15, 13, 34, .45); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 16px; box-shadow: var(--vn-shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .14s; }
.modal.lg { width: min(880px, 100%); }
.modal.xl { width: min(1120px, 100%); }
@keyframes pop { from { transform: translateY(6px) scale(.99); opacity: 0; } }
.modal .hd { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .hd h2 { flex: 1; }
.modal .bd { padding: 18px 20px; overflow-y: auto; }
.modal .ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal .ft .left { margin-right: auto; color: var(--text-3); font-size: 13px; }
.pop { position: fixed; z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--vn-shadow-lg); padding: 6px; min-width: 200px; max-height: 70vh; overflow-y: auto; }
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; color: var(--text); }
.pop .mi:hover, .pop .mi.on { background: var(--surface-3); }
.pop .sep { height: 1px; background: var(--line); margin: 5px 0; }
.pop .ph { font-size: 11.5px; color: var(--text-3); padding: 8px 10px 4px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--vn-ink); color: #fff; padding: 11px 14px; border-radius: 10px; box-shadow: var(--vn-shadow-lg); display: flex; gap: 10px; align-items: flex-start; max-width: 420px; animation: pop .15s; font-size: 13.5px; }
.toast.ok .icon { color: var(--vn-mint-400); }
.toast.bad { background: #7a2216; }
.toast.warn .icon { color: #f6c25b; }

/* Befehlspalette */
.palette { position: fixed; inset: 0; background: rgba(15, 13, 34, .45); z-index: 150; display: flex; justify-content: center; padding-top: 12vh; }
.palette .box { width: min(620px, calc(100% - 32px)); background: var(--surface); border-radius: 14px; box-shadow: var(--vn-shadow-lg); overflow: hidden; align-self: flex-start; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; font-size: 16px; background: none; outline: none; }
.palette .res { max-height: 56vh; overflow-y: auto; padding: 6px; }
.palette .it { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.palette .it.on { background: var(--accent-soft); }
.palette .it span { color: var(--text-3); font-size: 12.5px; margin-left: auto; }

/* ---------- Kalender ---------- */
.cal-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cal-tools .date-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cal-tools .date-nav .input { width: 150px; }
.cal-card { overflow: hidden; }
.cal-scroll { overflow: auto; max-height: calc(100vh - 220px); position: relative; }
table.cal { border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.cal th, .cal td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 34px; padding: 0; text-align: center; min-width: 54px; width: 54px; background: var(--surface); }
.cal thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-2); font-weight: 600; height: 46px; line-height: 1.15; }
.cal thead th .wd { display: block; font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; }
.cal thead th .dm { font-size: 13px; }
.cal .lab { position: sticky; left: 0; z-index: 2; text-align: left; min-width: 250px; width: 250px; max-width: 250px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--text-2); }
.cal thead th.lab { z-index: 4; background: var(--surface-2); }
.cal .we { background: var(--weekend); }
.cal thead th.we { background: color-mix(in srgb, var(--weekend) 70%, var(--surface-2)); }
.cal .td { box-shadow: inset 0 2px 0 var(--warn); }
.cal thead th.td { color: #9a5c00; }
:root[data-theme='dark'] .cal thead th.td { color: var(--warn); }
.cal tr.blk td, .cal tr.blk th { background: var(--surface-3); height: 38px; }
.cal tr.blk th.wide { text-align: left; padding: 0; color: var(--text); font-weight: 650; cursor: pointer; }
.cal tr.blk th.wide .stick { position: sticky; left: 0; display: inline-block; padding: 0 12px; white-space: nowrap; }
.cal tr.blk th.wide .icon { vertical-align: -3px; margin-right: 4px; transition: transform .12s; }
.cal tr.blk.closed-blk th.wide .icon { transform: rotate(-90deg); }
.cal tr.blk th.wide small { font-weight: 500; margin-left: 6px; }
.cal tr.rgrp th { background: var(--accent-soft); height: 30px; border-bottom-color: var(--accent-soft-2); text-align: left; padding: 0; color: var(--accent-strong); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.cal tr.rgrp .stick { position: sticky; left: 0; display: inline-block; padding: 0 12px; }
.cal tr.rgrp small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-3); }
.cal tr.rgrp th .icon { vertical-align: -3px; color: var(--accent); }
.cal tr.sum td { font-weight: 700; }
.cal tr.sum td.zero { color: var(--danger); }
.cal td.ed { cursor: cell; position: relative; }
.cal td.ed:hover { background: var(--accent-soft); }
.cal td.ro { color: var(--text-3); }
.cal td.derived { color: var(--text-3); font-style: italic; }
.cal td.zero { color: #b43424; font-weight: 650; }
.cal td.na { color: var(--line-strong); }
.cal td.dirty { background: var(--dirty) !important; font-weight: 700; color: var(--accent-strong); }
.cal td.dirty::after { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal td.sel { background: color-mix(in srgb, var(--accent) 22%, var(--surface)) !important; }
.cal td.cur { box-shadow: inset 0 0 0 2px var(--accent); }
.cal td.bool .bx { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); }
.cal td.bool.on .bx { background: var(--danger); border-color: var(--danger); color: #fff; }
.cal td.bool.on .bx .icon { width: 12px; height: 12px; stroke-width: 3; }
.cal td.bool.lock .bx { opacity: .55; }
.cal td.closed-day { background: repeating-linear-gradient(135deg, var(--danger-soft) 0 6px, var(--surface) 6px 12px); }
.cal td input.cell-in { width: 100%; height: 100%; border: 0; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); outline: none; font: inherit; font-weight: 700; }
.cal .lab .tag { font-size: 11px; color: var(--text-3); margin-left: 6px; font-weight: 500; }
.cal .lab .icon.sm { vertical-align: -3px; color: var(--text-3); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); padding: 10px 16px; border-top: 1px solid var(--line); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; border: 1px solid var(--line); }
.selbar { position: fixed; z-index: 90; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--vn-shadow-lg); padding: 8px; display: flex; gap: 8px; align-items: center; }
.selbar .input { width: 90px; }
.savebar { position: sticky; bottom: 0; z-index: 20; }

/* Reservierung */
.res-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.res-head .t { flex: 1; min-width: 260px; }
.res-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-head .meta { display: flex; gap: 14px; color: var(--text-3); font-size: 13px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.copy { border: 0; background: none; cursor: pointer; color: var(--text-3); padding: 2px; border-radius: 5px; display: inline-grid; place-items: center; vertical-align: -3px; }
.copy:hover { color: var(--accent); background: var(--accent-soft); }
.stay { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.stay .d b { display: block; font-size: 18px; font-weight: 700; }
.stay .d span { color: var(--text-3); font-size: 12.5px; }
.stay .n { color: var(--text-3); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stay .n .line { width: 70px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.kv .total { font-weight: 700; font-size: 15px; border-top: 1px solid var(--line); padding-top: 8px; }
.progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--mint); border-radius: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.timeline .ic .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.timeline .ic.ok { background: var(--mint-soft); color: var(--mint); }
.timeline .ic.bad { background: var(--danger-soft); color: var(--danger); }
.timeline .ic.violet { background: var(--accent-soft); color: var(--accent); }
.timeline b { font-weight: 600; }
.timeline .when { font-size: 12px; color: var(--text-3); }
.timeline .txt { font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: pre-wrap; }
.room-line { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.room-line:last-child { border-bottom: 0; }
.room-line .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

/* Kanäle */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ch-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .12s, box-shadow .12s; color: inherit; text-decoration: none !important; }
.ch-card:hover { border-color: var(--accent-soft-2); box-shadow: var(--vn-shadow); }
.ch-card .top-row { display: flex; gap: 10px; align-items: center; }
.ch-card .top-row b { flex: 1; font-size: 14.5px; }
.ch-card .stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-3); }
.ch-card .stats b { color: var(--text); font-weight: 650; }
.ch-tile { padding: 12px; display: flex; gap: 10px; align-items: center; }
.ch-tile .t { flex: 1; min-width: 0; }
.ch-tile .t b { display: block; font-weight: 600; }
.ch-tile .t span { font-size: 12px; color: var(--text-3); }
.map-tbl td { padding: 8px 10px; vertical-align: top; }
.map-tbl tr.child td:first-child { padding-left: 30px; }
.map-tbl tr.inactive td:first-child { opacity: .6; }
/* Zuordnung: Leiste, zwei Spalten, Ablagefelder, Kanal-Artikel zum Ziehen */
.map-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.map-bar .field.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map-bar .field.inline label { margin: 0; font-weight: 600; font-size: 13px; }
.map-bar .field.inline .hint { font-size: 12px; color: var(--text-3); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .map-grid { grid-template-columns: minmax(0, 1fr); } }
.map-grid .card .hd { flex-wrap: wrap; gap: 8px; }
.map-slots { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.map-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border: 1px solid var(--accent-soft-2); background: var(--accent-soft); color: var(--accent-strong); border-radius: 8px; font-size: 13px; }
.map-chip > span { flex: 1; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 1px; }
.map-chip b { font-weight: 600; }
.map-chip .codes { font-family: var(--vn-mono, monospace); font-size: 11px; opacity: .8; white-space: pre; }
.map-chip .x { display: inline-flex; padding: 2px; border: 0; background: none; color: inherit; border-radius: 6px; cursor: pointer; opacity: .7; }
.map-chip .x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.map-drop { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 1.5px dashed var(--line-strong); background: none; color: var(--text-3); border-radius: 8px; font-size: 12.5px; cursor: pointer; transition: border-color .12s, background .12s; }
.map-drop:hover, .map-drop.over { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.map-tree { display: flex; flex-direction: column; }
.map-room { border-bottom: 1px solid var(--line); padding: 8px 10px 10px; }
.map-room:last-child { border-bottom: 0; }
.map-room-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px; font-size: 13.5px; }
.map-room-h small { margin-left: auto; font-family: var(--vn-mono, monospace); }
.map-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 2px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: grab; font-size: 13px; }
.map-item:hover { border-color: var(--accent-soft-2); }
.map-item.dragging { opacity: .5; }
.map-item.used { cursor: default; opacity: .65; background: var(--surface-2); }
.map-item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.map-item .t > span { font-weight: 600; }
.map-item .owner { color: var(--accent-strong); }
pre.code { font-family: var(--vn-mono, monospace); font-size: 12px; line-height: 1.5; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }

/* Stepper */
.stepper { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.stepper button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--text-3); font-weight: 600; }
.stepper button .n { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; }
.stepper button.on { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.stepper button.on .n { background: var(--accent); color: #fff; }
.stepper button.done .n { background: var(--mint); color: #fff; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.type-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--surface); text-align: left; }
.type-card b { display: block; margin-bottom: 3px; }
.type-card span { font-size: 12.5px; color: var(--text-3); }
.type-card.on { border-color: var(--accent); background: var(--accent-soft); }
.summary dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; }
.summary dt { color: var(--text-3); }
.summary dd { margin: 0; }

/* Rechte-Matrix */
.perm-tbl td, .perm-tbl th { padding: 8px 12px; }
.perm-tbl .grp td { background: var(--surface-2); font-weight: 650; font-size: 12.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.perm-tbl td.c, .perm-tbl th.c { text-align: center; width: 90px; }

/* Module (Abo) */
.mod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mod { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; position: relative; }
.mod.on { border-color: var(--mint); background: var(--mint-soft); }
.mod .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.mod b { display: block; overflow-wrap: anywhere; hyphens: auto; }
.mod span { font-size: 12.5px; color: var(--text-3); }
.mod .state { position: absolute; top: 12px; right: 12px; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
.login .art { background: radial-gradient(1200px 600px at 10% 0%, #2c2470 0%, #16142c 55%, #0e0c1f 100%); color: #d9d6f3; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login .art img { height: 38px; align-self: flex-start; }
.login .art h1 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 460px; margin-top: auto; font-weight: 700; letter-spacing: -.02em; }
.login .art p { max-width: 460px; color: #b9b5dc; font-size: 15px; }
.login .art ul { list-style: none; padding: 0; margin: 24px 0 auto; display: flex; flex-direction: column; gap: 12px; }
.login .art li { display: flex; gap: 10px; align-items: center; }
.login .art li .icon { color: var(--vn-mint-400); }
.login .art .ring { position: absolute; right: -140px; bottom: -140px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(110, 92, 246, .12); }
.login .art .dotm { position: absolute; right: 110px; bottom: 110px; width: 46px; height: 46px; border-radius: 50%; background: var(--vn-mint-400); opacity: .9; }
.login .form { display: grid; place-items: center; padding: 32px; background: var(--surface); }
.login .form .box { width: min(380px, 100%); }
.login .form h2 { font-size: 24px; margin-bottom: 6px; }
.login .form .stack { gap: 14px; margin-top: 22px; }
.login .demo { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.login .demo .row { margin-top: 8px; }

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-btn { min-width: 0; }
  .search-btn .txt, .search-btn kbd { display: none; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 68px 1fr; }
  .shell .side .brand .logo, .shell .prop-switch .t, .shell .prop-switch > .icon, .shell .nav a span, .shell .nav a .count { display: none; }
  .shell .side .brand .mark { display: block; }
  .shell .nav .grp { visibility: hidden; height: 12px; padding: 6px 0; }
  .shell .nav a { justify-content: center; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .md { grid-template-columns: 1fr; }
  .md-list { position: static; max-height: 360px; }
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
  .user-btn .t { display: none; }
}
@media (max-width: 640px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 60; transform: translateX(-100%); transition: transform .18s; }
  .shell.nav-open .side { transform: none; }
  .shell .side .brand .logo, .shell .prop-switch .t, .shell .prop-switch > .icon, .shell .nav a span { display: initial; }
  .shell .side .brand .mark { display: none; }
  .shell .nav .grp { visibility: visible; height: auto; padding: 14px 10px 6px; }
  .shell .nav a { justify-content: flex-start; }
  .content { padding: 16px; }
  .top { padding: 0 12px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .menu-btn { display: grid !important; }
}
.menu-btn { display: none !important; }

@media print {
  .side, .top, .page-head .acts, .no-print, .filters, .pager { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; }
  body { background: #fff; color: #000; }
}
/* Baukasten der Buchungsmaschine: Einstellungen links, Live-Vorschau rechts */
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 46%); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .book-grid { grid-template-columns: minmax(0, 1fr); } .book-preview-wrap { order: -1; } }
.book-preview-wrap { position: sticky; top: 72px; }
.book-preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.img-tile { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.img-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.img-tile figcaption { padding: 6px 8px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.img-tile figcaption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-tile .btn { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .9); }
.img-pick { position: relative; display: inline-block; width: 72px; height: 54px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; }
.img-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.img-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-pick.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
code.mono { font-family: var(--vn-mono, monospace); font-size: 12px; background: var(--surface-2); padding: 3px 6px; border-radius: 6px; word-break: break-all; }

/* hidden-Attribut gewinnt gegen display-Regeln der Klassen */
[hidden] { display: none !important; }
