/* WaitGo – Basis-Styles (ohne Build-Schritt) */
/* Farben aus dem WaitGo-Logo: Navy, Blau, Grün */
:root {
  color-scheme: light;
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F6;
  --text: #11223F;
  --muted: #5B6880;
  --border: #E1E6EE;
  --brand: #0B8F5E;
  --brand-strong: #087A50;
  --brand-soft: #E2F6EC;
  --on-brand: #FFFFFF;
  --accent: #1557F0;
  --accent-soft: #E7EEFE;
  --grad: linear-gradient(110deg, #1557F0 0%, #0AA6C9 55%, #13C27A 100%);
  --grad-deep: linear-gradient(110deg, #1E40AF 0%, #046C6E 55%, #047857 100%);
  --warn: #B45309;
  --warn-soft: #FEF3E2;
  --danger: #C2341F;
  --danger-soft: #FDECEA;
  --info: #1D4ED8;
  --info-soft: #E7EEFE;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 34, 63, .05), 0 8px 24px -12px rgba(17, 34, 63, .18);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1426; --surface: #121D33; --surface-2: #1A2742; --text: #E8EDF6; --muted: #98A6BF; --border: #24324F;
    --brand: #2BD08C; --brand-strong: #4BE0A2; --brand-soft: #10302A; --on-brand: #04261A;
    --accent: #6C98FF; --accent-soft: #17264A;
    --warn: #F0A24A; --warn-soft: #3A2A14; --danger: #F07563; --danger-soft: #3D1C17; --info: #8DB0FF; --info-soft: #17264A;
    --shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px -18px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1426; --surface: #121D33; --surface-2: #1A2742; --text: #E8EDF6; --muted: #98A6BF; --border: #24324F;
  --brand: #2BD08C; --brand-strong: #4BE0A2; --brand-soft: #10302A; --on-brand: #04261A;
  --accent: #6C98FF; --accent-soft: #17264A;
  --warn: #F0A24A; --warn-soft: #3A2A14; --danger: #F07563; --danger-soft: #3D1C17; --info: #8DB0FF; --info-soft: #17264A;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px -18px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin: 0 0 .75rem; }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--brand); }
.biz-name { color: var(--muted); font-size: .9rem; }
.nav { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { padding: .5rem .8rem; border-radius: 10px; color: var(--text); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--surface-2); }
.nav a.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.container { max-width: 1400px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.narrow { max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 42px; transition: background .15s, opacity .15s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 36px; padding: .4rem .7rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Formulare */
.card-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .92rem; }
.field small { display: block; color: var(--muted); margin-top: .25rem; font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], select, textarea {
  width: 100%; padding: .65rem .75rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; min-height: 44px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; border-color: var(--brand); }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.errors { background: var(--danger-soft); color: var(--danger); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.errors ul { margin: 0; padding-left: 1.1rem; }
.flash { background: var(--brand-soft); color: var(--brand-strong); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }

/* Auth-Seiten */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card .logo { display: block; text-align: center; font-size: 1.8rem; margin-bottom: 1rem; }

/* Dashboard */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.toolbar-stats { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.stat { font-size: .95rem; color: var(--muted); }
.stat b { font-size: 1.5rem; color: var(--text); margin-right: .2rem; }
.toolbar-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.field-inline { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .9rem; }
.field-inline select { width: auto; min-width: 140px; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge-open { background: var(--brand-soft); color: var(--brand-strong); }
.badge-paused { background: var(--warn-soft); color: var(--warn); }
.badge-soon { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .columns { grid-template-columns: 1fr 1fr; } .col-wide { grid-column: 1 / -1; order: -1; } }
@media (max-width: 700px) { .columns { grid-template-columns: 1fr; } }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); min-width: 0; }
.col h2 { display: flex; align-items: center; gap: .5rem; }
.count { font-size: .8rem; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: .1rem .5rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.item { border: 1px solid var(--border); border-radius: 12px; padding: .75rem; display: flex; flex-direction: column; gap: .6rem; background: var(--surface); }
.item-pending { border-color: var(--info); background: var(--info-soft); }
.item-soon { border-left: 4px solid var(--warn); }
.item-called { border-left: 4px solid var(--brand); }
.item-main { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.pos { width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--muted); flex: none; font-size: .9rem; }
.code { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.vcode { font-size: 1.6rem; font-weight: 800; letter-spacing: .15em; color: var(--info); font-variant-numeric: tabular-nums; }
.who { min-width: 0; }
.who .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .meta { color: var(--muted); font-size: .82rem; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.room { margin-left: auto; font-weight: 800; color: var(--brand-strong); background: var(--brand-soft); padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; }
.item-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.empty { color: var(--muted); text-align: center; padding: 1.5rem .5rem; font-size: .92rem; }

dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(440px, 92vw); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(10, 14, 20, .5); }
dialog form { padding: 1.25rem; }
.dialog-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .5rem; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); padding: .8rem 1.2rem; border-radius: 12px; font-weight: 600; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 92vw; }
.toast-ok { background: var(--brand); color: var(--on-brand); }
.toast-err { background: var(--danger); color: #fff; }
.offline { background: var(--warn-soft); color: var(--warn); padding: .5rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }

/* Einstellungen */
.cp-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.cp-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 10px; }
.cp-list li.inactive { opacity: .55; }
.cp-list .label { font-weight: 600; flex: 1; }
.inline-form { display: inline; }
.add-row { display: flex; gap: .5rem; }
.add-row input { flex: 1; }
.danger-zone { border-color: var(--danger); }
.danger-zone h2 { color: var(--danger); }

/* QR-Seite */
.qr-page { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.qr-sheet { background: #fff; color: #111; width: 100%; max-width: 560px; border-radius: 20px; padding: 2rem; text-align: center; border: 1px solid var(--border); }
.qr-sheet h1 { font-size: 2rem; margin: .25rem 0 .5rem; color: #111; }
.qr-biz { font-weight: 700; color: #0b7d5c; letter-spacing: .02em; }
.qr-code svg { width: 100%; height: auto; max-width: 380px; }
.qr-steps { font-size: 1.05rem; font-weight: 600; margin: .75rem 0 0; }
.qr-foot { margin-top: 1.25rem; font-size: .8rem; color: #666; }
.qr-url { font-size: .85rem; word-break: break-all; }
@media print {
  .topbar, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  .container { padding: 0; }
  .qr-sheet { border: 0; max-width: none; padding: 1cm; }
}

/* Startseite */
.hero { text-align: center; padding: 4rem 1rem 2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.5rem; }
.hero .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.features .card-box h3 { font-size: 1.05rem; }

/* Teil 3: Zuweisung */
select.assign { min-height: 38px; padding: .35rem .6rem; font-size: .9rem; border-radius: 9px; }
.field-inline input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin-bottom: .5rem; }
.room-grid .room-btn:last-child { grid-column: 1 / -1; }
.room-btn.chosen { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.dlg-group { font-weight: 700; margin: .8rem 0 .4rem; }

/* Einstellungen mit Seitenmenü */
.settings-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; max-width: 1100px; }
.settings-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: .2rem; }
.settings-nav-title { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 .5rem .8rem; }
.settings-nav a { padding: .6rem .8rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.settings-nav a:hover { background: var(--surface-2); }
.settings-nav a.active { background: var(--brand-soft); color: var(--brand-strong); }
.settings-main h1 { margin-bottom: 1rem; }
.settings-main h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.notice { background: var(--warn-soft); color: var(--warn); padding: .75rem .9rem; border-radius: 10px; font-size: .92rem; margin: 0 0 1rem; }
.select-sm { width: auto; min-height: 36px; padding: .3rem .5rem; font-size: .9rem; }
@media (max-width: 820px) {
  .settings-shell { grid-template-columns: 1fr; gap: 1rem; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: .4rem; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
  .settings-nav-title { display: none; }
  .settings-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--border); }
}
.display-card { display: flex; gap: 1.5rem; align-items: flex-start; }
.display-qr { width: 150px; flex: none; background: #fff; padding: 8px; border-radius: 12px; }
.display-qr svg { width: 100%; height: auto; display: block; }
.display-info { flex: 1; min-width: 0; }
@media (max-width: 600px) { .display-card { flex-direction: column; } }

/* Abo */
.plan-now { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.usage { min-width: 200px; }
.usage b { font-size: 1.8rem; }
.usage span { display: block; color: var(--muted); font-size: .88rem; }
.usage-bar { height: 8px; background: var(--surface-2); border-radius: 4px; margin-top: .4rem; overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--brand); }
.interval-switch { display: flex; gap: 1.2rem; margin: 1.5rem 0 1rem; font-weight: 600; flex-wrap: wrap; }
.interval-switch input { accent-color: var(--brand); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.plan-card.current { border: 2px solid var(--brand); }
.plan-card h3 { margin: 0; font-size: 1.1rem; }
.plan-card .price b { font-size: 1.6rem; }
.plan-card .price span { color: var(--muted); }
.plan-card ul { margin: 0 0 .5rem; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; flex: 1; }
.plan-card em { font-style: normal; font-size: .8rem; color: var(--warn); }

/* Admin */
.admin-tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-tabs a { padding: .55rem .9rem; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; border: 1px solid var(--border); background: var(--surface); }
.admin-tabs a.active { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.admin-stats .card-box b { display: block; font-size: 1.8rem; }
.admin-stats .card-box span { color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { font-size: .8rem; color: var(--muted); font-weight: 700; }
.muted-row { opacity: .55; }
.admin-inline { display: flex; gap: .4rem; flex-wrap: wrap; }
.copy-code { background: var(--surface-2); padding: .35rem .55rem; border-radius: 8px; word-break: break-all; }
.pager { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; }
.mini-details summary { cursor: pointer; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.mini-details form { margin-top: .4rem; }

/* Statistik */
.stats-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.seg { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--surface-2); border-radius: 12px; flex-wrap: wrap; }
.seg a { padding: .45rem .8rem; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; }
.seg a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.kpi span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi b { font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1.1; }
.kpi b small { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.kpi em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--muted); }
.kpi em.up { color: var(--brand-strong); }
.kpi em.down { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-bottom: 1.3rem; }
.bars .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.bars .bar span { display: block; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bars .bar:hover span { opacity: 1; }
.bars .bar span.peak { background: var(--warn); }
.bars .bar i { position: absolute; bottom: -1.3rem; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hbars li { display: grid; grid-template-columns: 2rem 1fr 3rem; gap: .6rem; align-items: center; }
.hbars li div { background: var(--surface-2); border-radius: 6px; height: 14px; overflow: hidden; }
.hbars li i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hbars li b { text-align: right; font-size: .9rem; }
.locked { text-align: center; }
.locked-preview { filter: blur(5px); opacity: .6; pointer-events: none; margin-bottom: 1rem; }

/* Benutzermenü */
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; padding: .5rem .8rem; border-radius: 10px; font-weight: 600; border: 1px solid var(--border); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary::after { content: " ▾"; color: var(--muted); }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + .4rem); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); min-width: 190px; padding: .35rem; z-index: 30; display: flex; flex-direction: column; }
.usermenu-panel a, .usermenu-panel button { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--surface-2); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo .logo-mark { width: auto; height: 28px; }
.wordmark { font-weight: 850; letter-spacing: -0.035em; }
.wordmark b { font-weight: 850; background: linear-gradient(90deg, #00A6E0, #16C784); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-card .logo { display: flex; justify-content: center; }
.auth-card .logo .logo-mark { height: 40px; }
.qr-foot img { display: inline-block; vertical-align: middle; height: 18px; width: auto; }
.qr-logo { display: block; max-height: 90px; max-width: 70%; margin: 0 auto .5rem; }
.loc-switch select { width: auto; min-height: 38px; padding: .35rem 2rem .35rem .7rem; font-weight: 700; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scope-note { margin: -.4rem 0 1rem; padding: .5rem .8rem; border-radius: 10px; background: var(--info-soft); color: var(--info); font-size: .92rem; display: inline-block; }
.brand-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 980px) { .brand-layout { grid-template-columns: 1fr; } }
.logo-current { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 18px 18px; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: .8rem; display: flex; justify-content: center; }
.logo-current img { max-height: 90px; max-width: 100%; }
.color-row { display: flex; gap: .6rem; align-items: center; }
.color-row input[type=color] { width: 52px; height: 44px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.brand-preview { background: #F3F6FA; border-radius: 18px; padding: 1rem; color: #11223F; }
.pv-top { min-height: 40px; display: flex; align-items: center; margin-bottom: .8rem; }
.pv-top img { max-height: 40px; max-width: 70%; }
.pv-card { background: #fff; border-radius: 16px; padding: 1rem; box-shadow: 0 10px 24px -16px rgba(17,34,63,.4); }
.pv-card small { color: #7C8AA3; }
.pv-card b { display: block; font-size: 2.6rem; letter-spacing: -0.04em; }
.pv-card hr { border: 0; border-top: 2px dashed #D8E0EA; margin: .6rem 0; }
.pv-card p { margin: 0; font-weight: 700; }
.pv-btn { display: block; margin-top: .8rem; text-align: center; padding: .8rem; border-radius: 12px; font-weight: 800; background: var(--pv); color: #fff; }
.user-edit { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; align-items: flex-start; }
.loc-checks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.loc-checks label { display: inline-flex; gap: .35rem; align-items: center; font-size: .92rem; }
.loc-checks input { accent-color: var(--brand); width: 17px; height: 17px; }
.inline-bar { display: flex; align-items: center; gap: .5rem; }
.inline-bar i { display: block; height: 10px; background: var(--brand); border-radius: 5px; min-width: 2px; }
.inline-bar span { font-weight: 700; font-size: .9rem; }


/* ═════════════ Design-Auffrischung Dashboard ═════════════ */
.topbar { box-shadow: 0 1px 0 var(--border); border-bottom: 0; }
.topbar::before { content: ""; display: block; height: 3px; background: var(--grad); }
.nav a { font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.card-box, .col, .kpi { box-shadow: var(--shadow); border-color: var(--border); }
.btn-primary { background: var(--brand); }
.btn-lg.btn-primary, #btn-call-next { background: var(--grad-deep); color: #fff; border: 0; box-shadow: 0 10px 22px -12px rgba(4, 108, 110, .8); }
.btn-lg.btn-primary:hover:not(:disabled), #btn-call-next:hover:not(:disabled) { filter: brightness(1.08); }
:root[data-theme="dark"] #btn-call-next { box-shadow: none; }
.btn { transition: transform .12s, filter .12s, background .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }

/* Seitenkopf */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head h1 { font-size: 1.9rem; letter-spacing: -0.03em; margin: 0; }
.page-head-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.eyebrow-line { margin: 0 0 .2rem; font-size: .85rem; font-weight: 700; color: var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.card-head h2 { margin: 0; }
.card-head .hint { margin: 0; }

/* Warteliste */
.toolbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.stat { display: inline-flex; align-items: baseline; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--surface-2); }
.stat b { font-size: 1.35rem; letter-spacing: -0.02em; }
.col { padding: 1.1rem; border-radius: var(--radius); position: relative; overflow: hidden; }
.col::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.columns > .col:nth-child(1)::before { background: var(--accent); }
.columns > .col:nth-child(2)::before { background: var(--warn); }
.columns > .col:nth-child(3)::before { background: var(--brand); }
.item { border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.item:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.code { font-size: 1.55rem; letter-spacing: -0.02em; }
.item-called { background: linear-gradient(90deg, var(--brand-soft), var(--surface) 60%); }
.room { background: var(--grad-deep); color: #fff; }
.pos { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 2rem .5rem; border: 2px dashed var(--border); border-radius: 14px; }

/* Statistik */
.kpi { border-radius: var(--radius); }
.kpi-hero { background: var(--grad-deep); color: #fff; border: 0; }
.kpi-hero span, .kpi-hero em, .kpi-hero em.up, .kpi-hero em.down { color: rgba(255,255,255,.85); }
.bars .bar span, .hbars li i, .inline-bar i { background: linear-gradient(180deg, #13C27A, #0AA6C9); }
.hbars li i, .inline-bar i { background: var(--grad); }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.insight { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow); }
.insight h3 { margin: 0 0 .3rem; font-size: 1rem; }
.insight p { margin: 0; color: var(--muted); font-size: .92rem; }
.insight-peak { border-left-color: var(--warn); }
.insight-quiet { border-left-color: #0AA6C9; }
.insight-up { border-left-color: var(--brand); }
.insight-down, .insight-warn { border-left-color: var(--danger); }
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 4px; font-size: .78rem; }
.heat th { color: var(--muted); font-weight: 700; padding: 0 .2rem; }
.heat tbody th { text-align: left; padding-right: .5rem; }
.heat td { width: 34px; min-width: 26px; height: 30px; border-radius: 7px; background: var(--surface-2); }
.heat .l1, .heat-legend .l1 { background: #D7F3E6; }
.heat .l2, .heat-legend .l2 { background: #9EE3C4; }
.heat .l3, .heat-legend .l3 { background: #4CC79B; }
.heat .l4, .heat-legend .l4 { background: #F2B243; }
.heat .l5, .heat-legend .l5 { background: #E0663A; }
.heat-legend { display: flex; align-items: center; gap: .3rem; margin-top: .7rem; font-size: .8rem; color: var(--muted); }
.heat-legend i { width: 22px; height: 12px; border-radius: 4px; display: inline-block; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5rem; align-items: end; }
.month { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.month b { font-size: .8rem; min-height: 1em; }
.mbar { width: 100%; max-width: 38px; height: 140px; background: var(--surface-2); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.mbar i { display: block; width: 100%; background: var(--grad); border-radius: 8px 8px 0 0; }
.month small { font-weight: 700; color: var(--muted); }
.month em { font-style: normal; font-size: .75rem; color: var(--muted); min-height: 1em; }
@media (max-width: 640px) { .months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Darstellung umschalten */
.theme-switch { display: flex; gap: .25rem; padding: .35rem .5rem .5rem; }
.theme-switch button { flex: 1; font: inherit; font-size: .82rem; font-weight: 700; padding: .4rem .3rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.usermenu-label { font-size: .75rem; font-weight: 700; color: var(--muted); padding: .5rem .7rem 0; }
:root[data-theme="dark"] .heat td:not([class*="l"]) { background: var(--surface-2); }
.logo, .logo .wordmark { color: var(--text); text-decoration: none; }
