/* Desk-Manager Herstellerverwaltung – Gestaltung (Stand 17.11.2026).
   Schrift „Figtree“ lokal eingebunden (SIL Open Font License, siehe assets/fonts/LICENSE-figtree.txt),
   keine Verbindung zu Google oder anderen Diensten. */
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/figtree-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/figtree-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/figtree-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/figtree-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/figtree-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/figtree-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/figtree-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/figtree-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #e4e8f0;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-50: #eff4ff;
  --primary-text: #ffffff;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #16a34a;
  --info: #0284c7;
  --sidebar: #0b1220;
  --sidebar-2: #121b31;
  --sidebar-text: #dbe3f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --font-scale: 1.08;
  /* für ältere Seiten der Hotelsoftware-Bausteine */
  --tile-bg: #2563eb; --tile-fg: #fff; --tile-h: 130px;
}
* { box-sizing: border-box; }
html { font-size: calc(16px * var(--font-scale)); }
body { margin: 0; font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-600); }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .8rem; }
h1 + h2 { margin-top: 0; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.muted { color: var(--muted); }
small.muted { display: block; font-weight: normal; margin-top: 2px; }

/* ---------- Grundgerüst ---------- */
.shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 28px 32px 40px; max-width: 1360px; width: 100%; }

/* ---------- Seitenleiste ---------- */
.sidebar { width: 280px; flex-shrink: 0; background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%); color: var(--sidebar-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #14b8a6 100%); box-shadow: 0 6px 16px rgba(59,130,246,.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { font-size: .82rem; color: var(--sidebar-text); }
.nav-scroll { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.nav-group { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: #9db4d8; padding: 20px 12px 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; color: var(--sidebar-text); text-decoration: none; padding: 10px 13px; border-radius: 11px; font-size: 1.02rem; font-weight: 600; margin: 2px 0; transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease; }
.nav-link svg { width: 21px; height: 21px; flex-shrink: 0; opacity: .95; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.nav-link:hover { background: rgba(147, 197, 253, .16); color: #fff; transform: translateX(5px); box-shadow: inset 3px 0 0 #60a5fa; }
.nav-link:hover svg { transform: scale(1.15) rotate(-4deg); }
.nav-link:hover:not(.active) { animation: nav-wabbern .6s ease; }
@keyframes nav-wabbern { 0% { transform: translateX(0); } 40% { transform: translateX(7px) scale(1.02); } 70% { transform: translateX(4px); } 100% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .nav-link, .nav-link svg { transition: none; } .nav-link:hover { transform: none; animation: none; } }
.nav-link.active { background: linear-gradient(90deg, rgba(59,130,246,.95), rgba(99,102,241,.9)); color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,.3); }
.nav-link.active svg { opacity: 1; }
.nav-link.soon { opacity: .72; }
.nav-link em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 999px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.15); }
.side-user-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.side-user-text strong { color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text small { font-size: .8rem; color: var(--sidebar-text); }
.side-logout { color: var(--sidebar-text); padding: 7px; border-radius: 8px; display: grid; place-items: center; }
.side-logout:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-logout svg { width: 19px; height: 19px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #3b82f6); }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }

/* ---------- Kopfleiste ---------- */
.topbar { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.crumb { display: flex; flex-direction: column; line-height: 1.2; }
.crumb span { font-size: .82rem; color: var(--muted); }
.crumb strong { font-size: 1.05rem; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none; border: 1px solid; }
.pill svg { width: 16px; height: 16px; }
.pill-ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.pill-danger { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.pill:hover { filter: brightness(.97); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { border-color: #cbd5e1; }
.um-text { display: flex; flex-direction: column; line-height: 1.15; }
.um-text strong { font-size: .9rem; }
.um-text small { font-size: .74rem; color: var(--muted); }
.chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.usermenu[open] .chev { transform: rotate(180deg); }
.um-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.um-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; flex-direction: column; }
.um-head small { color: var(--muted); }
.um-panel a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.um-panel a:hover { background: var(--surface-2); }
.um-panel a.um-logout { color: var(--danger); }
.btn.menu-toggle { display: none; }

@media (max-width: 960px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; display: none; }
  .sidebar.open { display: flex; }
  .btn.menu-toggle { display: inline-block; }
  .topbar { padding: 10px 14px; }
  .content { padding: 16px 14px 30px; }
  .um-text, .crumb span { display: none; }
}

/* ---------- Karten, Tabellen, Formulare ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.narrow { max-width: 540px; margin: 40px auto; }
.card h2:first-child { margin-top: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: #334155; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbfd; }
.table-wrap { overflow-x: auto; }
.table a { text-decoration: none; font-weight: 600; }
.table a:hover { text-decoration: underline; }
.dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; font-size: .95rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 6px; } }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; color: #1e293b; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #d3dae6; border-radius: 10px; font: inherit; font-weight: normal; background: #fff; color: var(--text); transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin: 0 7px 0 0; accent-color: var(--primary); }
input[type=color] { height: 42px; padding: 3px; }
label.check { font-weight: normal; display: flex; align-items: center; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.span2 { grid-column: span 2; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid #d3dae6; background: #fff; color: var(--text); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; font-size: .93rem; transition: background .12s, border-color .12s, filter .12s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); border-color: #c3ccdb; color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #3b82f6, var(--primary)); border-color: var(--primary-600); color: var(--primary-text); box-shadow: 0 2px 8px rgba(37,99,235,.25); }
.btn-primary:hover { background: linear-gradient(180deg, #3b82f6, var(--primary)); filter: brightness(1.06); color: #fff; border-color: var(--primary-600); }
.btn-danger { background: var(--danger); border-color: #b91c1c; color: #fff; }
.btn-danger:hover { background: var(--danger); filter: brightness(1.08); color: #fff; border-color: #b91c1c; }
.btn-sm { padding: 5px 11px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 1.02rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.actions.end { justify-content: flex-end; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
form.inline { display: inline; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; font-size: .94rem; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #eef1f6; color: #475569; white-space: nowrap; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Kennzahlen (auch von anderen Seiten genutzt) */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.stat .num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .88rem; }

/* ---------- Dashboard ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero h1 { margin: 0 0 4px; font-size: 1.85rem; }
.hero p { margin: 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--k-soft); opacity: .7; }
.kpi .k-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--k); background: var(--k-soft); position: relative; z-index: 1; }
.kpi .k-ico svg { width: 22px; height: 22px; }
.kpi .k-num { font-size: 1.8rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.kpi .k-lbl { color: var(--muted); font-size: .84rem; margin-top: 4px; line-height: 1.3; }
.k-blue   { --k: #2563eb; --k-soft: #e0eaff; }
.k-indigo { --k: #4f46e5; --k-soft: #e6e5ff; }
.k-green  { --k: #16a34a; --k-soft: #dcfce7; }
.k-teal   { --k: #0d9488; --k-soft: #d5f5f1; }
.k-amber  { --k: #d97706; --k-soft: #fef3c7; }
.k-orange { --k: #ea580c; --k-soft: #ffedd5; }
.k-red    { --k: #dc2626; --k-soft: #fee2e2; }
.kpi.alarm { border-color: #fecaca; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.panel-head h2 svg { width: 19px; height: 19px; color: var(--primary); }
.panel-head a { font-size: .86rem; font-weight: 600; text-decoration: none; }
.panel-body { padding: 8px 20px 16px; }
.count { font-size: .76rem; font-weight: 700; background: var(--primary-50); color: var(--primary); padding: 2px 9px; border-radius: 999px; }

.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.status-list li:last-child { border-bottom: 0; }
.s-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.s-dot svg { width: 17px; height: 17px; }
.s-ok .s-dot { background: #dcfce7; color: #16a34a; }
.s-info .s-dot { background: #e0f2fe; color: #0284c7; }
.s-warn .s-dot { background: #fef3c7; color: #d97706; }
.s-danger .s-dot { background: #fee2e2; color: #dc2626; }
.s-text { flex: 1; min-width: 0; }
.s-text strong { display: block; font-size: .94rem; }
.s-text span { color: var(--muted); font-size: .88rem; }
.s-go { align-self: center; font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.status-summary { display: flex; gap: 8px; flex-wrap: wrap; }

.sess-list { list-style: none; margin: 0; padding: 0; }
.sess-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sess-list li:last-child { border-bottom: 0; }
.sess-av { position: relative; }
.sess-av .dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #94a3b8; }
.sess-av .dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.sess-text { flex: 1; min-width: 0; line-height: 1.3; }
.sess-text strong { font-size: .93rem; }
.sess-text .you { font-size: .7rem; font-weight: 700; background: var(--primary-50); color: var(--primary); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.sess-text small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-meta { text-align: right; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.sess-meta .on-txt { color: #16a34a; font-weight: 600; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .ml-main { min-width: 0; }
.mini-list .ml-main a { font-weight: 600; text-decoration: none; color: var(--text); }
.mini-list .ml-main a:hover { color: var(--primary); }
.mini-list small { display: block; color: var(--muted); font-size: .8rem; }
.act-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; color: var(--muted); }
.act-ico svg { width: 15px; height: 15px; }
.act-row { display: flex; gap: 11px; align-items: center; min-width: 0; }
.empty { color: var(--muted); padding: 14px 0; font-size: .92rem; }

/* ---------- Anmeldung / einfache Seiten ---------- */
body.plain { display: block; min-height: 100vh; background:
  radial-gradient(1000px 500px at 10% -10%, rgba(59,130,246,.18), transparent 60%),
  radial-gradient(800px 500px at 110% 10%, rgba(20,184,166,.14), transparent 60%), var(--bg); }
main.center { max-width: 440px; margin: 8vh auto; padding: 0 14px; }
main.install { max-width: 860px; margin: 30px auto; padding: 0 14px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px 30px; box-shadow: var(--shadow-lg); }
.login-card h1 { text-align: center; font-size: 1.45rem; }
.login-card .logo { text-align: center; margin-bottom: 10px; }
.login-card .logo img { max-height: 70px; max-width: 220px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; text-decoration: none; color: var(--text); }
.login-brand .brand-text small { color: var(--muted); }
.plainlist { padding-left: 18px; }
.plainlist li { margin-bottom: 6px; }
.token { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; word-break: break-all; background: var(--surface-2); border: 1px solid var(--border); padding: 10px; border-radius: 8px; }
.perm-group { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.perm-group h3 { font-size: .95rem; margin: 0 0 6px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; border: 1px solid #0002; }
.supportbar { background: #7c2d12; color: #fff; padding: 8px 22px; font-size: .9rem; text-align: center; }

@media print {
  .sidebar, .topbar, .btn, .alert-warning { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
}

/* Wartefenster mit Drehsymbol (z. B. „Wird beim Hotelier auf bezahlt gesetzt …“) */
.warte-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 1000; }
.warte-box { background: var(--surface, #fff); border-radius: 14px; padding: 28px 32px; min-width: 300px; max-width: 460px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.warte-box p { margin: 14px 0; font-size: 1.02rem; }
.warte-dreh { width: 46px; height: 46px; margin: 4px auto 0; border: 5px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%; animation: warte-dreh .8s linear infinite; }
@keyframes warte-dreh { to { transform: rotate(360deg); } }
.warte-symbol { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; }
.warte-symbol.ok { background: #16a34a; } .warte-symbol.warn { background: #d97706; } .warte-symbol.fehler { background: #b91c1c; }
@media print { .sidebar, .topbar, .no-print { display: none !important; } }

/* Verbindungs-Ampel */
.ampel { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; vertical-align: middle; }
.ampel-gruen { background: #16a34a; } .ampel-rot { background: #dc2626; }
.ampel-gross { width: 44px; height: 44px; font-size: 22px; }
.verbindung-alarm { animation: verbindung-puls 1.6s ease-in-out infinite; }
@keyframes verbindung-puls { 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .18); } }

/* Nächster Schritt mit „Lichtschlange“ um den Knopf (z. B. „Jetzt verbinden“) */
.naechster-schritt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius, 12px); padding: 14px 18px; margin: 0 0 18px; }
@property --leuchten-winkel { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn-leuchten { position: relative; isolation: isolate; border-color: transparent !important; }
.btn-leuchten::before { content: ''; position: absolute; inset: -3px; border-radius: 13px; z-index: -2;
  background: conic-gradient(from var(--leuchten-winkel), transparent 0 55%, #38bdf8 70%, #22c55e 85%, #fde047 95%, transparent 100%);
  animation: leuchten-dreh 1.8s linear infinite; }
.btn-leuchten::after { content: ''; position: absolute; inset: 0; border-radius: 10px; z-index: -1; background: inherit; }
@keyframes leuchten-dreh { to { --leuchten-winkel: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn-leuchten::before { animation: none; background: #38bdf8; } }
