/* =====================================================================
   KliniQ BMS v2 – Design-System
   Ohne externe Fonts/Bilder. Markenfarbe kommt aus /theme.css (--brand).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #1d4f91;
  --brand-600: var(--brand);
  --brand-500: color-mix(in srgb, var(--brand) 88%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 18%, #fff);
  --brand-50: color-mix(in srgb, var(--brand) 8%, #fff);
  --on-brand: #fff;

  --bg: #f4f6fb; --surface: #fff; --surface-2: #eef1f8; --surface-3: #e4e8f2;
  --border: #dfe3ee; --border-strong: #c9cfe0;
  --text: #131826; --text-2: #4f5871; --text-3: #6f7891;

  --free: #0b7d55;     --free-bg: #e2f5ec;
  --occ: #2a55d8;      --occ-bg: #e6edff;
  --res: #7443d1;      --res-bg: #eee7fb;
  --blocked: #566078;  --blocked-bg: #e7eaf1;
  --clean: #a0600a;    --clean-bg: #fdf0da;
  --crit: #c2372a;     --crit-bg: #fcebe8;
  --warn: #9a5a00;     --warn-bg: #fff1da;
  --ok: #0b7d55;       --ok-bg: #e2f5ec;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(19, 24, 38, .06);
  --sh-2: 0 6px 18px rgba(19, 24, 38, .10);
  --sh-3: 0 22px 60px rgba(19, 24, 38, .22);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 38%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
[data-theme="dark"] {
  --brand-600: color-mix(in srgb, var(--brand) 58%, #fff);
  --brand-500: color-mix(in srgb, var(--brand) 70%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 32%, #10131c);
  --brand-50: color-mix(in srgb, var(--brand) 20%, #10131c);
  --on-brand: #0b0d14;
  --bg: #0a0c13; --surface: #12151f; --surface-2: #1a1e2b; --surface-3: #242938;
  --border: #252a39; --border-strong: #363d52;
  --text: #eceef6; --text-2: #a7aec5; --text-3: #8189a3;
  --free: #4fd6a0;  --free-bg: #0e2b22;
  --occ: #8aaaff;   --occ-bg: #18244f;
  --res: #bb98ff;   --res-bg: #271b4b;
  --blocked: #a7aec5; --blocked-bg: #202533;
  --clean: #ffc36b; --clean-bg: #33250d;
  --crit: #ff8f80;  --crit-bg: #361b18;
  --warn: #ffc36b;  --warn-bg: #33250d;
  --ok: #4fd6a0;    --ok-bg: #0e2b22;
  --sh-1: none; --sh-2: 0 6px 18px rgba(0, 0, 0, .45); --sh-3: 0 22px 60px rgba(0, 0, 0, .65);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font: 14px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-600); }
h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.25; }
h2 { font-size: 16px; } h3 { font-size: 14px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 14px; height: 14px; }
svg.i.lg { width: 22px; height: 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--text-3); } .small { font-size: 12px; } .mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; }
.spacer { flex: 1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand-600); color: var(--on-brand); padding: 8px 14px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- App-Shell ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; font-weight: 700; font-size: 16px; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); display: grid; place-items: center; color: var(--on-brand); font-weight: 800; }
.brand small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; margin-top: -2px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav h6 { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 12px 10px 4px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); color: var(--text-2); text-decoration: none; font-weight: 500; transition: background .15s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-600); font-weight: 650; }
.nav .cnt { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--crit); color: #fff; border-radius: 99px; padding: 1px 7px; }
[data-theme="dark"] .nav .cnt { color: #1a0b09; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-md); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.me b { display: block; font-size: 13px; line-height: 1.2; } .me span { font-size: 12px; color: var(--text-3); }
.me .who { min-width: 0; flex: 1; } .me .who * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.search { position: relative; flex: 1; max-width: 480px; }
.search label { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 7px 12px; color: var(--text-3); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.search label:focus-within { box-shadow: var(--focus); border-color: var(--brand-500); }
.search kbd { font: 600 11px var(--font); border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px; color: var(--text-3); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-2); padding: 6px; z-index: 20; max-height: 60vh; overflow: auto; }
.results button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: var(--r-sm); }
.results button:hover, .results button:focus-visible { background: var(--surface-2); }
.live { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--free); background: var(--free-bg); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.live.off { color: var(--crit); background: var(--crit-bg); } .live.off::before { animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.menu-btn { display: none; }
.page { padding: 24px 28px 56px; max-width: 1560px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sub { color: var(--text-2); margin-top: 2px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); font-weight: 600; margin-bottom: 16px; flex-wrap: wrap; }
.banner.danger { background: var(--crit-bg); color: var(--crit); }
.banner.info { background: var(--brand-50); color: var(--brand-600); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; text-decoration: none; color: var(--text); transition: transform .12s var(--ease), background .15s; line-height: 1.2; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-brand); } .btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--crit); border-color: var(--crit); color: #fff; } [data-theme="dark"] .btn.danger { color: #1a0b09; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Karten, KPIs ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card > .body { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-1); }
.kpi .l { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.kpi .v { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 2px; line-height: 1.1; }
.kpi .v small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.kpi .d { font-size: 12px; color: var(--text-3); }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--text-3)); flex: none; display: inline-block; }
.bar { height: 6px; background: var(--surface-3); border-radius: 9px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand-500); border-radius: 9px; }
.bar.crit > i { background: var(--crit); } .bar.warn > i { background: var(--clean); }

/* ---------- Badges / Pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.free, .badge.ok { background: var(--free-bg); color: var(--free); }
.badge.occupied, .badge.info { background: var(--occ-bg); color: var(--occ); }
.badge.reserved { background: var(--res-bg); color: var(--res); }
.badge.blocked { background: var(--blocked-bg); color: var(--blocked); }
.badge.cleaning, .badge.warn { background: var(--clean-bg); color: var(--clean); }
.badge.crit { background: var(--crit-bg); color: var(--crit); }
.badge.iso { background: var(--warn-bg); color: var(--warn); }

/* ---------- Filter / Tabs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--text-2); }
.chip[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-600); }
.legend { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand-600); border-bottom-color: var(--brand-600); }

/* ---------- Bettenlage ---------- */
.layout-2 { display: grid; grid-template-columns: 1fr 350px; gap: 18px; align-items: start; }
.stations { display: grid; gap: 14px; }
.station { padding: 14px 16px 16px; }
.st-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.st-h h3 { font-size: 15px; } .st-h .meta { color: var(--text-3); font-size: 12px; }
.st-h .occ { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 13px; }
.st-h .bar { width: 120px; }
.beds { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bed { position: relative; text-align: left; padding: 9px 10px 9px 13px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 2px; overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s; min-height: 68px; }
.bed::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.bed:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.bed .no { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.bed .no svg { width: 14px; height: 14px; color: var(--c); }
.bed .who { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bed .st { font-size: 11px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .03em; }
.bed .tags { position: absolute; right: 6px; top: 6px; display: flex; gap: 3px; }
.bed .tag { font-size: 10px; font-weight: 800; border-radius: 4px; padding: 0 5px; background: var(--warn-bg); color: var(--warn); }
.bed .tag.out { background: var(--brand-50); color: var(--brand-600); }
.bed.free { --c: var(--free); background: var(--free-bg); border-color: transparent; }
.bed.occupied { --c: var(--occ); }
.bed.reserved { --c: var(--res); background: var(--res-bg); border-color: transparent; }
.bed.blocked { --c: var(--blocked); background: repeating-linear-gradient(135deg, var(--blocked-bg) 0 6px, transparent 6px 12px); }
.bed.cleaning { --c: var(--clean); background: var(--clean-bg); border-color: transparent; }
.incoming { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-strong); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-2); }

/* ---------- Listen / Warteschlange ---------- */
.list { list-style: none; padding: 6px; margin: 0; }
.list > li { display: flex; gap: 10px; padding: 10px; border-radius: var(--r-md); align-items: flex-start; }
.list > li:hover { background: var(--surface-2); }
.prio { width: 6px; align-self: stretch; border-radius: 9px; background: var(--c, var(--brand-500)); flex: none; }
.list .t { font-weight: 600; } .list .m { font-size: 12px; color: var(--text-2); }
.list .w { margin-left: auto; text-align: right; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.list .w b { display: block; color: var(--text); font-size: 13px; }
.list .acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.side-stack { display: grid; gap: 18px; }
.steps { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.steps i { width: 22px; height: 4px; border-radius: 9px; background: var(--surface-3); }
.steps i.on { background: var(--brand-500); }

/* ---------- Tabellen ---------- */
.tbl-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; }
td .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.empty { text-align: center; padding: 36px 16px; color: var(--text-2); }
.empty svg { width: 34px; height: 34px; color: var(--text-3); margin-bottom: 8px; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sh 1.4s linear infinite; border-radius: var(--r-md); min-height: 20px; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field .lbl { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.field .err { font-size: 12px; color: var(--crit); margin-top: 4px; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.input:focus { outline: none; box-shadow: var(--focus); border-color: var(--brand-500); }
.input[aria-invalid="true"] { border-color: var(--crit); }
textarea.input { min-height: 84px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand-600); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; max-height: 220px; overflow: auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-md); }
.perm-group { margin-bottom: 14px; } .perm-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 6px; }

/* ---------- Modal / Drawer / Toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(9, 11, 19, .5); z-index: 30; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-3); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .2s var(--ease); }
.modal.wide { width: min(820px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal > .body { padding: 20px; overflow: auto; }
.modal > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.drawer-scrim { justify-items: end; padding: 0; place-items: stretch end; }
.drawer { background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--sh-3); width: min(440px, 100vw); height: 100%; display: flex; flex-direction: column; animation: slide .25s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer > header { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer > .body { padding: 20px; display: grid; gap: 16px; overflow: auto; align-content: start; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; }
.dl dt { color: var(--text-3); } .dl dd { font-weight: 500; overflow-wrap: anywhere; }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(440px, calc(100vw - 24px)); }
.toast { background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: var(--r-md); box-shadow: var(--sh-3); font-weight: 600; animation: pop .2s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--crit); color: #fff; } [data-theme="dark"] .toast.err { color: #1a0b09; }
.secret { font-family: var(--mono); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 12px; letter-spacing: .06em; word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: var(--mono); }
.codes span { background: var(--surface-2); padding: 6px 10px; border-radius: var(--r-sm); user-select: all; }

/* ---------- Diagramme ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { stroke: var(--border-strong); }
.chart .bar-a { fill: var(--brand-500); } .chart .bar-b { fill: var(--free); }
.chart .line-a { fill: none; stroke: var(--brand-500); stroke-width: 2.4; stroke-linejoin: round; }
.chart .line-b { fill: none; stroke: var(--free); stroke-width: 2.4; stroke-linejoin: round; }
.chart .area-a { fill: color-mix(in srgb, var(--brand-500) 16%, transparent); }
.chart .pt-a { fill: var(--brand-500); } .chart .pt-b { fill: var(--free); }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-top: 8px; flex-wrap: wrap; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }

/* ---------- Sonstiges ---------- */
.timeline { list-style: none; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); margin-top: 5px; }
.timeline li.done::before { background: var(--brand-500); }
.status-list { display: grid; gap: 8px; }
.status-list > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.status-list .ok { color: var(--ok); } .status-list .bad { color: var(--crit); }
pre.log { font: 12px/1.5 var(--mono); background: var(--surface-2); padding: 12px; border-radius: var(--r-md); overflow: auto; max-height: 50vh; white-space: pre-wrap; }
.qbox { display: flex; gap: 6px; align-items: center; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(360px, 520px); }
.login .hero { background: linear-gradient(150deg, var(--brand-600), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login .hero .brand { font-size: 20px; } .login .hero .logo { background: rgba(255, 255, 255, .18); color: #fff; }
.login .hero h1 { font-size: 34px; line-height: 1.15; max-width: 16ch; }
.login .hero ul { list-style: none; padding: 0; display: grid; gap: 10px; opacity: .92; }
.login .hero li { display: flex; gap: 10px; align-items: center; }
.login .panel { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.login .box { width: min(400px, 100%); }
.login .box h2 { font-size: 22px; margin-bottom: 4px; }
.login .box .form { margin-top: 22px; }
.login .btn.primary { width: 100%; padding: 11px 14px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) { .layout-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s var(--ease); box-shadow: var(--sh-3); }
  body.nav-open .side { transform: none; }
  .menu-btn { display: inline-grid; }
  .top, .page { padding-left: 16px; padding-right: 16px; }
  .login { grid-template-columns: 1fr; } .login .hero { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .side, .top, .toasts { display: none; } .app { display: block; } }

.mt { margin-top: 18px; } .mt-s { margin-top: 8px; }
.main-wrap { min-width: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---------- Logo (Hell/Dunkel-Varianten) ---------- */
[data-theme="dark"] .for-light { display: none !important; }
:root:not([data-theme="dark"]) .for-dark { display: none !important; }
.brand img { height: 36px; width: auto; display: block; }
.brand .brand-name { line-height: 1.15; }
.login .hero { background: linear-gradient(155deg, #0c2140 0%, #123a6b 62%, color-mix(in srgb, var(--brand) 80%, #0c2140) 100%); }
.login .hero .hero-logo { width: min(250px, 60%); height: auto; }
.login .hero li svg { color: #72d4ae; }
.login-logo { display: none; height: 92px; width: auto; margin: 0 0 18px; }
@media (max-width: 900px) { .login-logo { display: block; } }
.me a.who { text-decoration: none; color: inherit; }

/* ---------- Dialoge & Formulare (verfeinert) ---------- */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
.modal { border-radius: 20px; overflow: hidden; }
.modal.wide { width: min(780px, 100%); }
.modal > header { justify-content: flex-start; gap: 14px; padding: 20px 24px; background: linear-gradient(180deg, var(--brand-50), var(--surface)); border-bottom: 1px solid var(--border); }
.modal > header .m-title { flex: 1; min-width: 0; }
.modal > header h2 { font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.m-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-600); color: var(--on-brand); box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 32%, transparent); flex: none; }
.modal > .body { padding: 22px 24px; }
.modal > footer { background: var(--surface-2); padding: 14px 24px; }
.modal .intro { margin-bottom: 16px; }
.grid-2 { gap: 16px 18px; }
.span-2 { grid-column: 1 / -1; }
.form-sec { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-top: 6px; }
.form-sec:first-child { margin-top: 0; }
.field > label:not(.toggle), .field .lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label.check { display: flex; margin: 0; font-weight: 500; font-size: 14px; }
.req { color: var(--crit); }
.input { min-height: 42px; }
.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 96px; line-height: 1.45; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7891' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
input[type="date"].input { padding-right: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.seg label { position: relative; flex: 1; display: block; margin: 0 !important; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 8px 10px; border-radius: 9px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--brand-600); box-shadow: var(--sh-2); }
.seg input:focus-visible + span { box-shadow: var(--focus); }
.toggle { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; background: var(--surface); margin: 0 !important; font-weight: 400; transition: background .15s, border-color .15s; }
.toggle:hover { background: var(--surface-2); }
.toggle:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer; transition: background .2s; margin: 1px 0 0; }
.toggle input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.toggle input:checked { background: var(--brand-600); border-color: var(--brand-600); }
.toggle input:checked::after { transform: translateX(16px); }
.toggle input:focus-visible { box-shadow: var(--focus); }
.toggle-text { display: grid; gap: 2px; }
.toggle-text b { font-size: 14px; }
.toggle-text .hint { font-size: 12px; color: var(--text-3); margin: 0; }
@media (max-width: 900px) { .modal > header, .modal > .body, .modal > footer { padding-left: 16px; padding-right: 16px; } }
.field label.toggle { display: flex; margin: 0; font-size: 14px; }

/* ---------- Seitenleiste (Aufnahme-Details) ---------- */
.drawer { width: min(480px, 100vw); border-radius: 20px 0 0 20px; overflow: hidden; }
.drawer > header { align-items: flex-start; gap: 12px; padding: 22px 24px 18px; background: linear-gradient(180deg, var(--brand-50), var(--surface)); }
.drawer > .body { flex: 1; min-height: 0; padding: 20px 24px; }
.d-head { display: flex; gap: 14px; min-width: 0; flex: 1; }
.d-avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-600); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.d-title { min-width: 0; }
.d-title h2 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.d-badges { margin-top: 10px; gap: 6px; }
.d-stack { display: grid; gap: 16px; }
.stepper { list-style: none; padding: 4px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; font-size: 11px; color: var(--text-3); font-weight: 600; }
.stepper li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--surface-3); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--brand-500); }
.stepper .sd { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 12px; font-weight: 700; }
.stepper li.done .sd { background: var(--brand-500); color: var(--on-brand); }
.stepper li.now .sd { background: var(--brand-600); color: var(--on-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.stepper li.now { color: var(--brand-600); } .stepper li.done { color: var(--text-2); }
.d-sec { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.d-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 26px; }
.d-sec-h h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.kv { display: grid; gap: 2px; min-width: 0; }
.kv .k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.kv .v { font-weight: 600; overflow-wrap: anywhere; }
.note { border-left: 3px solid var(--brand-500); background: var(--brand-50); border-radius: 0 12px 12px 0; padding: 12px 14px; }
.note b { font-size: 12px; color: var(--brand-600); }
.note p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl { list-style: none; padding: 0; }
.tl li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; position: relative; padding-bottom: 14px; }
.tl li.last { padding-bottom: 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-500); margin-top: 4px; position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--surface-2); }
.tl li:not(.last)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: -4px; width: 2px; background: var(--border-strong); }
.drawer > footer { border-top: 1px solid var(--border); padding: 14px 24px 18px; background: var(--surface); box-shadow: 0 -10px 24px rgba(19, 24, 38, .06); }
.d-actions { display: grid; gap: 10px; }
.d-main { display: grid; gap: 8px; } .d-main .btn { width: 100%; padding: 11px 14px; }
.d-rest { display: flex; gap: 8px; flex-wrap: wrap; } .d-rest .btn { flex: 1 1 auto; }
@media (max-width: 900px) { .drawer { border-radius: 0; } .drawer > header, .drawer > .body, .drawer > footer { padding-left: 16px; padding-right: 16px; } }

/* ---------- Zeilenaktionen & Menü ---------- */
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.list .acts .row-actions { justify-content: flex-start; }
th.act-col, td.act-col { text-align: right; width: 1%; white-space: nowrap; }
.icon-btn.slim { width: 32px; height: 32px; border-radius: 9px; }
tr.clickable { cursor: pointer; }
.menu { position: fixed; z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; animation: pop .12s var(--ease); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 9px; text-align: left; font-weight: 600; color: var(--text); }
.menu-item svg { color: var(--text-3); }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; box-shadow: none; }
.menu-item.danger, .menu-item.danger svg { color: var(--crit); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* Login: Logo und Leitspruch mittig */
.login .hero { justify-content: center; align-items: center; text-align: center; gap: 56px; }
.login .hero .hero-logo { width: min(280px, 55%); }
.login .hero h1 { max-width: none; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; }

/* ---------- Bettenlage nach Zimmern ---------- */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.room { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.room.full { border-color: color-mix(in srgb, var(--occ) 45%, var(--border)); }
.room-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.room-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-t b { font-size: 14px; }
.room-c { display: flex; align-items: center; gap: 9px; }
.dots { display: flex; gap: 4px; }
.dot-b { display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface-2); }
.room-n { font-weight: 700; font-size: 13px; min-width: 2.2em; text-align: right; }
.room.vacant .room-n { color: var(--free); }
.room-beds { display: grid; gap: 6px; padding: 8px; }
.bedrow { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 10px 8px 14px; text-align: left; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s; }
.bedrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.bedrow:not([disabled]):hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.br-ico { color: var(--c); display: grid; }
.br-main { display: grid; min-width: 0; flex: 1; }
.br-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.br-top b { font-size: 13px; }
.br-state { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c); }
.br-who { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bedrow .tags { display: flex; gap: 3px; }
.bedrow .tag { font-size: 10px; font-weight: 800; border-radius: 4px; padding: 0 5px; background: var(--warn-bg); color: var(--warn); }
.bedrow .tag.out { background: var(--brand-50); color: var(--brand-600); }
.bedrow.free { --c: var(--free); background: var(--free-bg); border-color: transparent; }
.bedrow.occupied { --c: var(--occ); }
.bedrow.reserved { --c: var(--res); background: var(--res-bg); border-color: transparent; }
.bedrow.blocked { --c: var(--blocked); background: repeating-linear-gradient(135deg, var(--blocked-bg) 0 6px, transparent 6px 12px); }
.bedrow.cleaning { --c: var(--clean); background: var(--clean-bg); border-color: transparent; }
.room-t b { white-space: nowrap; }
.room-h { flex-wrap: wrap; }

/* ---------- Zwei-Faktor-Einrichtung ---------- */
.modal > .body { overflow-x: hidden; }
.mfa { display: grid; gap: 16px; }
.mfa-steps { padding-left: 20px; display: grid; gap: 6px; }
.qr-card { justify-self: center; padding: 14px; background: #fff; border-radius: 16px; border: 1px solid var(--border-strong); box-shadow: var(--sh-2); }
.qr-card svg { display: block; width: 220px; height: 220px; }
details.manual { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); }
details.manual summary { cursor: pointer; font-weight: 600; }
details.manual[open] summary { margin-bottom: 10px; }
.secret { font-size: 15px; letter-spacing: .08em; }
.code-input { font-size: 24px; letter-spacing: .4em; text-align: center; min-height: 52px; }
.codes.big { grid-template-columns: 1fr 1fr; gap: 8px; }
.codes.big span { padding: 10px 14px; font-size: 15px; font-weight: 600; letter-spacing: .04em; text-align: center; border: 1px dashed var(--border-strong); }
.print-only { display: none; }
@media print {
  body.print-codes #app, body.print-codes .toasts { display: none !important; }
  body.print-codes .scrim { position: static; display: block; background: none; padding: 0; }
  body.print-codes .modal { box-shadow: none; border: 0; width: 100%; max-height: none; }
  body.print-codes .modal > header .icon-btn, body.print-codes .modal > footer, body.print-codes .modal .row, body.print-codes .modal label.check { display: none !important; }
  body.print-codes .print-only { display: block; }
}

/* ---------- Version & Updates ---------- */
.brand-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; }
.brand-sub small { margin: 0; max-width: 140px; }
.ver { display: inline-flex; align-items: center; gap: 5px; font: 700 11px var(--font); padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); cursor: pointer; line-height: 1.4; }
.ver:hover { background: var(--surface-3); color: var(--text); }
.ver.new { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-500); }
.ver svg.i { width: 11px; height: 11px; }
.dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); animation: pulse 1.8s infinite; }
.rel { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.rel-h { display: flex; align-items: center; justify-content: space-between; }
.rel h3 { font-size: 15px; line-height: 1.35; }
.rel-sec h4 { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 8px 0 4px; }
.rel-sec ul { padding-left: 18px; display: grid; gap: 4px; }
.rel-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.hist { padding-left: 18px; display: grid; gap: 4px; }

/* Reiter mit ungespeicherten Änderungen */
.tabs button.dirty::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--clean); margin-left: 7px; vertical-align: middle; }

/* ---------- Hinweise einklappen ---------- */
.banner.collapsed { padding-top: 6px; padding-bottom: 6px; font-weight: 500; opacity: .9; }
.banner.collapsed .banner-body, .banner:not(.collapsed) .banner-label { display: none; }
.banner-body { flex: 1; min-width: 0; }
.banner-toggle { margin-left: auto; background: transparent; border: 0; color: inherit; font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 2px 4px; border-radius: var(--r-sm, 6px); }
.banner-toggle:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Seitenleiste: einklappbar, schmaleres Benutzerfeld ---------- */
.brand .side-toggle { margin-left: auto; flex: none; }
.me { padding: 6px 8px; gap: 8px; }
.me .avatar { width: 28px; height: 28px; font-size: 11px; }
.me b { font-size: 12px; } .me span { font-size: 11px; }
.me .icon-btn { width: 30px; height: 30px; }
.nav a .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app { transition: grid-template-columns .2s var(--ease); }
@media (min-width: 901px) {
  body.side-collapsed .app { grid-template-columns: 68px 1fr; }
  body.side-collapsed .side { padding-left: 8px; padding-right: 8px; overflow-x: hidden; }
  body.side-collapsed .brand { flex-direction: column; padding: 4px 0; }
  body.side-collapsed .brand img, body.side-collapsed .brand .brand-name { display: none; }
  body.side-collapsed .brand .side-toggle { margin-left: 0; }
  body.side-collapsed .nav h6 { font-size: 0; padding: 6px 0 2px; border-top: 1px solid var(--border); margin-top: 6px; }
  body.side-collapsed .nav h6:first-child { border-top: 0; margin-top: 0; }
  body.side-collapsed .nav a { justify-content: center; padding: 9px 0; position: relative; }
  body.side-collapsed .nav a .lbl { display: none; }
  body.side-collapsed .nav .cnt { position: absolute; top: 2px; right: 6px; margin: 0; padding: 0 5px; font-size: 10px; }
  body.side-collapsed .me { flex-direction: column; padding: 6px 0; border: 0; }
  body.side-collapsed .me .who { display: none; }
}
@media (max-width: 900px) { .side-toggle { display: none; } }

/* ---------- Mobil: kein seitliches Überlaufen ---------- */
html, body { max-width: 100%; overflow-x: clip; }
.stack > *, .side-stack > *, .layout-2 > *, .kpis > * { min-width: 0; }
.stack, .side-stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1180px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .top { gap: 8px; }
  .search { min-width: 0; max-width: none; }
  .search kbd { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { flex-direction: column; align-items: stretch; }
}

/* ---------- Frühere Versionen mit Patchnote ---------- */
.hist-item { border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 12px; background: var(--surface); }
.hist-item summary { cursor: pointer; }
.hist-item .rel { margin-top: 10px; }

/* ---------- Rollen-Kurzzeichen ---------- */
.rtag { --c: var(--text-2); display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; line-height: 1.4; padding: 1px 8px; border-radius: 99px; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 75%, var(--text)); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.rt-admin { --c: #7c3aed; } .rt-bm { --c: #1d4f91; } .rt-zna { --c: #d97706; } .rt-station { --c: #0f9d7a; }
.rt-arzt { --c: #0891b2; } .rt-lead { --c: #be185d; } .rt-sys { --c: #64748b; } .rt-other { --c: #475569; }
.me .rtag { display: inline-flex; font-size: 10px; padding: 0 7px; margin-top: 2px; color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.me .who .rtag { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Fortschrittsbalken ---------- */
.progress { height: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); transition: width .4s var(--ease); }

/* ---------- Bettenwahl (Zimmer + Bett) ---------- */
.bedrow.picked { outline: 2px solid var(--brand-500); box-shadow: var(--focus); }
.bedrow.picked .br-ico { color: var(--brand-600); }
