/* FLUXWERK – Designsystem „Soft“ (seit 02.11.2026, vorher „Flux“). Module nutzen diese Klassen; eigene Styles in
   modules/<key>/style.css sind erlaubt. Helles, einfarbiges Soft-UI: graue Flächen mit weichem Relief (Licht oben links,
   Schatten unten rechts), Eingabefelder eingedrückt, Hauptknöpfe als dunkle Pillen mit warmem Lichtschein darunter.
   Dunkel nur auf Wunsch (Umschalter), dann Graphit mit gleichem warmen Licht. Farben nur über Tokens; Text-/Flächenpaare
   erfüllen WCAG AA (4,5:1).
   Schriften vom eigenen Server: Bricolage Grotesque (Überschriften, Zahlen), Geist (Text). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #dcdfe4;
  --surface: #eceef1;
  --surface-2: #e2e5e9;
  --surface-3: #d5d9df;
  --border: #ccd1d8;
  --border-strong: #bcc2cb;
  --text: #15171c;
  --muted: #4f5561;
  --brand: #26292f;
  --brand-2: #15171b;
  --accent: #26292f; /* AA mit weißer Schrift und auf --accent-soft */
  --accent-soft: #d3d7de;
  --on-accent: #ffffff;
  --glow-c: #e8892b; /* warmes Licht unter dunklen Knöpfen, Fokusring */
  --hi: rgb(255 255 255 / 70%); /* Lichtkante der Flächen */
  --warm: #ea580c;
  --warm-soft: #fff1e6;
  --warm-text: #9a3412;
  --danger: #c81e1e;
  --danger-soft: #fdecec;
  --ok: #157f3c;
  --ok-soft: #e6f6ec;
  --info: #0157a3;
  --info-soft: #dbe6f1;
  --grad: linear-gradient(115deg, #26292f 0%, #6a5646 55%, #e8892b 100%);
  --grad-btn: linear-gradient(180deg, #363940 0%, #17191d 100%);
  --ink: #1b1d22; --ink-2: #26292f; --ink-3: #30343b; --ink-text: #eef0f3; --ink-muted: #a6acb6; --ink-line: rgb(255 255 255 / 9%);
  --glow: 0 14px 26px -10px var(--glow-c), 0 4px 10px -2px rgb(20 22 26 / 30%);
  --radius: 18px;
  --radius-s: 12px;
  --shadow-s: 4px 4px 10px rgb(136 144 158 / 38%), -4px -4px 10px rgb(255 255 255 / 75%);
  --shadow: 8px 8px 20px rgb(136 144 158 / 42%), -8px -8px 18px rgb(255 255 255 / 80%);
  --shadow-l: 0 30px 70px rgb(70 78 92 / 35%);
  --press: inset 3px 3px 7px rgb(136 144 158 / 42%), inset -3px -3px 7px rgb(255 255 255 / 80%);
  --ring: 0 0 0 4px color-mix(in srgb, var(--glow-c) 28%, transparent);
  --tap: 46px;
  --sidebar-w: 264px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1d1f24; --surface: #272a30; --surface-2: #2f3239; --surface-3: #383c44; --border: #3a3e46; --border-strong: #4a4f59;
  --text: #eef0f3; --muted: #a9afb9; --brand: #f3b36b; --brand-2: #e8892b; --accent: #f3b36b; --accent-soft: #3a3029; --on-accent: #1b1d22;
  --hi: rgb(255 255 255 / 6%); --ink: #15171b; --ink-2: #1d1f24;
  --press: inset 3px 3px 7px rgb(0 0 0 / 45%), inset -2px -2px 6px rgb(255 255 255 / 5%);
  --grad: linear-gradient(115deg, #eef0f3 0%, #c9a27c 55%, #e8892b 100%);
  --warm: #fb923c; --warm-soft: #3a2414; --warm-text: #fdba74; --danger: #f87171; --danger-soft: #3a1717; --ok: #4ade80; --ok-soft: #13301d;
  --info: #7aa7ff; --info-soft: #1e2a3a; --shadow-s: 4px 4px 10px rgb(0 0 0 / 40%), -3px -3px 8px rgb(255 255 255 / 4%);
  --shadow: 8px 8px 20px rgb(0 0 0 / 45%), -6px -6px 16px rgb(255 255 255 / 4%); --shadow-l: 0 24px 60px rgb(0 0 0 / 60%);
  --grad-btn: linear-gradient(180deg, #44484f 0%, #24272c 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Kein seitliches Wackeln am Handy (Einblend-Animationen, breite Elemente); clip statt hidden, damit sticky bleibt */
html, body { overflow-x: clip; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-family: var(--display); }
h1 { font-size: 1.85rem; font-weight: 750; letter-spacing: -.035em; } h2 { font-size: 1.25rem; font-weight: 700; } h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--muted); }
small { font-size: .82rem; }
.ic { flex: none; }
::selection { background: color-mix(in srgb, var(--glow-c) 35%, transparent); }
code, kbd, .mono-font { font-family: "Geist Mono", ui-monospace, Consolas, monospace; }

/* Layout-Helfer */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.gap-s { gap: 8px; } .gap { gap: 14px; } .gap-l { gap: 22px; }
.grow { flex: 1; min-width: 0; }
.wrap > .grow { flex: 1 1 200px; }   /* in umbrechenden Zeilen nicht auf 0 schrumpfen (z. B. Eingabefeld zwischen Knöpfen) */
.tel-q { max-width: 240px; }
.between { justify-content: space-between; }
.center { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.full { min-height: 100vh; }
.pad { padding: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hide-mobile { } @media (max-width: 760px) { .hide-mobile { display: none !important; } }
.right { text-align: right; } .nowrap { white-space: nowrap; } .mono { font-variant-numeric: tabular-nums; }

/* ---------- App-Rahmen ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex: none; color: var(--text); position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent; display: flex; flex-direction: column; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, white), var(--surface-2));
  border-right: 1px solid var(--hi); box-shadow: 6px 0 24px rgb(136 144 158 / 25%); z-index: 1; }
.sidebar .brand { padding: 20px 20px 14px; color: var(--text); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: .02em; color: var(--text); font-size: 1.12rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-btn); color: #fff; flex: none;
  box-shadow: var(--glow), inset 0 1px 0 rgb(255 255 255 / 18%); }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Laufender Glanz über Logo und Schriftzug: alle 6 s wandert ein Lichtstreif von links nach rechts. Der Streif im Text ist
   eine Kopie des Schriftzugs (data-text), damit er über FLUX und WERK gleich läuft. */
.brand-mark { position: relative; overflow: hidden; }
.brand-mark::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; background-size: 250% 100%; background-position: 160% 0;
  background-image: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 55%) 50%, transparent 60%); animation: shine 6s ease-in-out 1s infinite; }
.brand-name { position: relative; }
.brand-name::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; color: transparent; white-space: nowrap;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 95%) 50%, transparent 58%) 160% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; animation: shine 6s ease-in-out 1.25s infinite; }
@keyframes shine { 0% { background-position: 160% 0; } 22%, 100% { background-position: -60% 0; } }
.tap-min { display: inline-flex; align-items: center; min-height: 44px; }
.brand.big { font-size: 1.6rem; }
.brand.big .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
.nav-group { padding: 2px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-group-title { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; padding: 14px 10px 4px; }
.sidebar .nav-group-title { color: var(--muted); }
details.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; }
details.nav-group > summary::-webkit-details-marker { display: none; }
details.nav-group > summary::after { content: "›"; font-size: 1rem; letter-spacing: 0; transition: transform .2s; }
details.nav-group[open] > summary::after { transform: rotate(90deg); }
details.nav-group > summary:hover { color: var(--text); }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; color: var(--muted); min-height: 40px;
  background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; text-align: left; transition: background .2s, color .2s, transform .25s var(--ease); }
.sidebar .nav-link { color: var(--muted); border-radius: 999px; }
.sidebar .nav-link:hover { background: var(--surface-2); color: var(--text); box-shadow: var(--press); }
.sidebar .nav-link.active { color: #fff; font-weight: 600; background: var(--grad-btn); box-shadow: var(--glow), inset 0 1px 0 rgb(255 255 255 / 14%); }
.sidebar .nav-link.active .ic { color: #f3b36b; }
.sidebar-foot { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface-2); box-shadow: inset 0 1px 0 var(--hi); }
.sidebar-foot .muted { color: var(--muted); }
.sidebar-foot .icon-btn { color: var(--text); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.me > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; flex: none; }
.sidebar .avatar { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 28px; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; }
.topbar .brand, .topbar .menu-btn { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.search-btn { display: flex; align-items: center; gap: 10px; width: min(460px, 100%); min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--muted); font: inherit; cursor: pointer; box-shadow: var(--press); transition: border-color .2s, box-shadow .3s; }
.search-btn:hover { box-shadow: var(--press), var(--ring); }
.search-btn span { flex: 1; text-align: left; }
.kbd { font-size: .72rem; padding: 2px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); background: var(--surface-2); font-family: inherit; }
.content { flex: 1; }
.content.enter > * { animation: page-in .45s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
.bottombar { display: none; }
.backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-l); }
  .drawer-open .sidebar { transform: none; }
  .drawer-open .backdrop { display: block; position: fixed; inset: 0; background: rgb(40 44 52 / 40%); backdrop-filter: blur(3px); z-index: 30; animation: fade .2s; }
  .topbar { padding: 6px 8px; padding-top: max(6px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--surface) 85%, transparent); border-bottom-color: var(--border); gap: 4px; }
  .topbar .brand, .topbar .menu-btn { display: flex; }
  .topbar .brand { font-size: 1rem; }
  .topbar .brand .brand-mark { width: 30px; height: 30px; }
  .search-btn { width: 42px; padding: 0; justify-content: center; border: 0; box-shadow: none; background: transparent; color: var(--text); margin-left: auto; }
  .search-btn span, .search-btn .kbd { display: none; }
  .topbar-actions { margin-left: 0; }
  .topbar-actions .desk-only { display: none; }
  .content { padding-bottom: 88px; }
  .bottombar { display: flex; position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 20; border-radius: 22px; padding: 4px; margin-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--hi); box-shadow: var(--shadow), 0 16px 40px rgb(70 78 92 / 25%); }
  .bottombar .nav-link { flex: 1; flex-direction: column; gap: 3px; font-size: .68rem; padding: 6px 2px; color: var(--muted); border-radius: 16px; justify-content: center; min-height: 54px; }
  .bottombar .nav-link.active { color: var(--text); font-weight: 650; }
  .bottombar .nav-link.active .ic { background: var(--grad-btn); color: #fff; border-radius: 999px; padding: 3px 10px; width: 46px; height: 28px; box-shadow: var(--glow); }
}

/* ---------- Seiten ---------- */
.page { padding: 10px 28px 36px; max-width: 1320px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.page-head h1 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
.page-head p { margin: 4px 0 0; }
@media (max-width: 760px) { .page { padding: 14px 14px 24px; gap: 14px; } h1 { font-size: 1.5rem; } }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 -4px; }
.section-title h2 { font-size: 1.05rem; }

/* Karten: Lichtkegel folgt dem Zeiger (--mx/--my aus app.js) */
.card { --mx: 50%; --my: 50%; position: relative; isolation: isolate; background: var(--surface); border: 1px solid var(--hi); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--glow-c) 8%, transparent), transparent 65%); }
.card:hover::before { opacity: 1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-head h3 { font-size: 1rem; }
/* Kopf-Links der Kacheln („Öffnen“, „Alle“) als ausreichend große Tap-Fläche (Handschuh) */
.card-head .row > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: -10px -6px; font-weight: 500; }
.card.flat { box-shadow: var(--shadow-s); }
.card.clickable { cursor: pointer; } .card.clickable:hover { box-shadow: var(--shadow), 0 14px 30px -18px var(--glow-c); transform: translateY(-2px); }

.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--hi); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-s); }
.stat strong { font: 750 1.7rem/1.15 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; animation: num-in .6s var(--ease); }
@keyframes num-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.stat-warn { border-color: color-mix(in srgb, var(--warm) 45%, var(--border)); background: var(--warm-soft); }
.stat-danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: var(--danger-soft); }
.stat-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: var(--ok-soft); }

/* Buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: filter .2s, background .2s, border-color .2s, box-shadow .3s, transform .2s var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgb(255 255 255 / 14%); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 14%) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 18px 30px -10px var(--glow-c), 0 4px 10px -2px rgb(20 22 26 / 30%), inset 0 1px 0 rgb(255 255 255 / 14%); }
.btn-primary:hover:not(:disabled)::after { transform: translateX(120%); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--hi); box-shadow: var(--shadow-s); } .btn-secondary:hover:not(:disabled) { box-shadow: var(--press); }
.btn-ghost { background: transparent; color: var(--accent); } .btn-ghost:hover:not(:disabled) { background: var(--surface-2); box-shadow: var(--press); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 14px 26px -12px var(--danger); } .btn-danger:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 8px 22px color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-warm { background: linear-gradient(115deg, #f59e0b, #ea580c); color: #fff; box-shadow: 0 14px 26px -12px #ea580c; } .btn-warm:hover:not(:disabled) { box-shadow: 0 8px 22px rgb(234 88 12 / 35%); }
.btn-big { min-height: 64px; font-size: 1.1rem; border-radius: var(--radius); padding: 0 26px; }
.btn.block, .block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; position: relative; transition: background .2s, transform .2s var(--ease); }
.icon-btn:hover { background: var(--surface-2); box-shadow: var(--press); }
.icon-btn:active { transform: scale(.92); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: .8rem; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.field-hint { font-size: .78rem; color: var(--muted); }
.field-error { font-size: .78rem; color: var(--danger); animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid transparent; box-shadow: var(--press); border-radius: var(--radius-s);
  min-height: var(--tap); padding: 0 13px; width: 100%; transition: border-color .2s, box-shadow .25s, background .2s; }
textarea { padding: 10px 13px; min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled), textarea:hover:not(:focus):not(:disabled) { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glow-c); box-shadow: var(--press), var(--ring); }
.btn:focus-visible, .icon-btn:focus-visible, .nav-link:focus-visible, a:focus-visible, .search-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sidebar .nav-link:focus-visible { outline-color: var(--glow-c); }
input[type="checkbox"], input[type="radio"] { width: 22px; min-height: 22px; height: 22px; accent-color: var(--accent); box-shadow: none; background: none; }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }

/* Listen & Tabellen */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--border); color: inherit; min-height: 54px; border-radius: 10px; transition: background .15s; }
.list-item:last-child { border-bottom: 0; }
/* Listen in Kästen mit Höchsthöhe (Suchtreffer) nicht zusammenquetschen – sonst überlappen die Zeilen */
.list > * { flex-shrink: 0; }
/* Zeilen mit Mengen-Stepper: am Handy steht der Text oben in voller Breite, Stepper/Knöpfe darunter */
@media (max-width: 640px) { .list-item:has(> .mt-stepper) { flex-wrap: wrap; } .list-item:has(> .mt-stepper) > .grow { flex: 1 1 calc(100% - 52px); } }
a.list-item:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
tr.clickable { cursor: pointer; } tr.clickable td { transition: background .15s; } tr.clickable:hover td { background: var(--surface-2); }

/* Badges & Hinweise */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; line-height: 1.6; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warm-soft); color: var(--warm-text); }
.badge-danger { background: var(--danger-soft); color: var(--danger); } .badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.alert { padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid; animation: page-in .35s var(--ease); }
.alert-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.alert-warn { background: var(--warm-soft); border-color: color-mix(in srgb, var(--warm) 40%, transparent); color: var(--warm-text); }
.alert-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 40%, transparent); color: var(--info); }
/* Hinweiszeile (z. B. „wartet auf Übertragung“, fehlende Pflichtangaben) */
.notice { display: block; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface-2); margin: 8px 0; font-size: .9rem; }
.notice.warn { background: var(--warm-soft); border-color: color-mix(in srgb, var(--warm) 40%, transparent); color: var(--warm-text); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.notice.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; color: var(--muted); text-align: center; }
.empty > .ic { width: 56px; height: 56px; padding: 14px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.empty strong { color: var(--text); font-family: var(--display); font-size: 1.05rem; }
.empty p { margin: 0; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; background: none; border: 0; font: inherit; font-weight: 500; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: var(--tap); margin-bottom: -1px; transition: color .2s; }
.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); font-weight: 650; }
.tabs button.active::after { transform: scaleX(1); }
.tabs .count { margin-left: 6px; font-size: .74rem; background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.seg { display: inline-flex; padding: 5px; background: var(--surface-2); border-radius: 999px; gap: 2px; flex-wrap: wrap; border: 1px solid transparent; box-shadow: var(--press); }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 500; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 38px; transition: all .25s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); font-weight: 650; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgb(40 44 52 / 45%); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal { background: var(--surface); border-radius: 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  box-shadow: var(--shadow-l); border: 1px solid var(--hi); animation: pop .35s var(--ease); }
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-head h2, .modal-head h3 { font-size: 1.2rem; }
.modal-body { padding: 10px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 760px) {
  .modal-backdrop { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; animation: sheet .4s var(--ease); }
  @keyframes sheet { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Toasts, Spinner */
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { .toasts { left: 16px; bottom: 96px; } }
.toast { background: var(--ink); color: #fff; padding: 12px 18px 12px 16px; border-radius: 999px; box-shadow: var(--shadow-l); transition: opacity .3s, transform .3s var(--ease); max-width: 420px;
  border: 1px solid rgb(255 255 255 / 10%); display: flex; align-items: center; gap: 10px; animation: toast-in .4s var(--ease); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--glow-c); box-shadow: 0 0 10px var(--glow-c); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast-danger { background: #3b0d12; } .toast-danger::before { background: #f87171; box-shadow: 0 0 10px #f87171; }
.toast-ok { background: #0b2a1a; } .toast-ok::before { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.toast.out { opacity: 0; transform: translateY(8px); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); border-right-color: var(--glow-c); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login: helles Becken, Relief-Karte, Firmenlogo weiß hinterleuchtet */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; color: var(--text); position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(900px 600px at 20% 0%, rgb(255 255 255 / 55%), transparent 65%), radial-gradient(800px 600px at 90% 105%, color-mix(in srgb, var(--glow-c) 16%, transparent), transparent 65%),
    linear-gradient(#d9dce1, #caced5); }
.login-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; }
.login-side { padding: 52px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.login-side h2 { font: 800 clamp(2.2rem, 4.2vw, 3.6rem)/1 var(--display); letter-spacing: -.045em; color: var(--text); max-width: 13ch; animation: page-in .9s var(--ease); }
.login-side h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-side ul { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 12px; }
.login-side li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hi);
  box-shadow: var(--shadow-s); max-width: 460px; animation: page-in .8s var(--ease) both; }
.login-side li:nth-child(2) { animation-delay: .1s; } .login-side li:nth-child(3) { animation-delay: .2s; } .login-side li:nth-child(4) { animation-delay: .3s; }
.login-side li .ic { color: var(--glow-c); }
.login-side .brand { color: var(--text); }
.login-side small { color: var(--muted); }
.login-main { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 30px; color: var(--text);
  background: linear-gradient(145deg, #f2f3f5, #e1e4e8); border: 1px solid var(--hi); box-shadow: 18px 18px 40px rgb(120 128 142 / 45%), -14px -14px 34px rgb(255 255 255 / 85%); animation: pop .6s var(--ease); }
.login-card h1 { font-size: 2rem; }
.login-card .brand { display: none; margin-bottom: 8px; }
.login-logo { position: relative; isolation: isolate; width: min(220px, 70%); margin: 0 0 6px; }
.login-logo img { display: block; width: 100%; height: auto; }
.login-logo .glow { position: absolute; inset: 0; z-index: -1; filter: brightness(0) invert(1) blur(12px); transform: translateY(6px) scale(1.05); }
.login-logo::before { content: ""; position: absolute; z-index: -2; inset: -40% -25% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(120 128 142 / 35%), transparent); }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-side { display: none; } .login-card .brand { display: flex; } }

/* Startseite */
.hero { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding-top: 8px; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.hero p { margin: 4px 0 0; color: var(--muted); }
.quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.quick a { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hi); color: var(--text); font-weight: 600; min-height: 100px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.quick a::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--glow-c) 12%, transparent), transparent 70%); }
.quick a .ic { color: #fff; background: var(--grad-btn); padding: 10px; width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--glow); transition: transform .35s var(--ease); }
.quick a:hover { box-shadow: var(--shadow), 0 16px 30px -18px var(--glow-c); transform: translateY(-3px); }
.quick a:hover::before { opacity: 1; }
.quick a:hover .ic { transform: rotate(-8deg) scale(1.06); }
.quick-field { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-field a { min-height: 116px; font-size: 1.05rem; }

/* Offline: Statusleiste, Hinweis „Stand von“, Warteschlange */
.top-sticky { position: sticky; top: 0; z-index: 20; }
.offline-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .86rem; }
.offline-bar button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.offline-bar.off .offline-bar-main { color: var(--text); background: var(--warm-soft); }
.offline-bar.wait .offline-bar-main { color: var(--info); background: var(--info-soft); }
.offline-bar.sync .offline-bar-main { color: var(--accent); background: var(--accent-soft); }
.offline-bar.sync .offline-bar-main .ic { animation: spin 1.2s linear infinite; }
.offline-bar .offline-bar-failed { color: var(--danger); background: var(--danger-soft); }
.stale-note { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--warm-soft); color: var(--text); font-size: .82rem; }
.offline-item { align-items: flex-start; flex-wrap: wrap; }
.pending-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: .75rem; }

/* ---------- Befehlspalette (Strg+K) ---------- */
.palette-backdrop { position: fixed; inset: 0; z-index: 65; background: rgb(40 44 52 / 40%); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; animation: fade .15s; }
.palette { width: min(660px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-l), 0 0 80px color-mix(in srgb, var(--glow-c) 18%, transparent); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; animation: pop .3s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--muted); position: relative; }
.palette-input::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .8; }
.palette-input input { border: 0; box-shadow: none; min-height: 60px; font-size: 1.08rem; padding: 0; background: transparent; }
.palette-input input:focus { box-shadow: none; }
.palette-list { overflow-y: auto; padding: 6px; }
.palette-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; padding: 10px 10px 4px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; color: var(--text); min-height: 44px; transition: background .12s; }
.palette-item .ic { color: var(--muted); }
.palette-item small { margin-left: auto; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.palette-item.sel { background: var(--accent-soft); color: var(--accent); }
.palette-item.sel .ic { color: var(--accent); }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: .76rem; color: var(--muted); }
@media (max-width: 760px) { .palette-backdrop { padding: 0; } .palette { max-height: 100vh; height: 100%; border-radius: 0; } .palette-foot { display: none; } }

/* ---------- Tutorial ---------- */
.tour-shade { position: fixed; inset: 0; z-index: 80; background: rgb(30 33 40 / 55%); animation: fade .2s; }
.tour-spot { position: fixed; z-index: 80; border-radius: 14px; box-shadow: 0 0 0 9999px rgb(30 33 40 / 55%), 0 0 0 3px var(--glow-c), 0 0 30px var(--glow-c); transition: all .35s var(--ease); pointer-events: none; }
.tour-block { position: fixed; inset: 0; z-index: 80; }
.tour-card { position: fixed; z-index: 81; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border-radius: 20px; box-shadow: var(--shadow-l);
  border: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 10px; animation: pop .3s var(--ease); }
.tour-card.centered { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 24px)); animation: fade .2s; }
.tour-card h3 { font-size: 1.15rem; }
.tour-card p { margin: 0; color: var(--muted); }
.tour-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-btn); box-shadow: var(--glow); color: #fff; display: grid; place-items: center; }
.tour-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.tour-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); transition: all .3s var(--ease); }
.tour-dots span.on { width: 22px; background: var(--grad); }
.tour-tip { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; font-size: .86rem; color: var(--text); display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Kennzahlen (Cockpit, Kundendienst) ---------- */
.kpi { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--hi); color: var(--text); box-shadow: var(--shadow); min-width: 0; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.kpi::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--glow-c) 10%, transparent), transparent 70%); }
.kpi:hover::before { opacity: 1; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 500; }
.kpi-label .ic { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--surface-2); box-shadow: var(--press); color: var(--text); }
.kpi-value { font: 750 1.85rem/1.1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-top: 6px; animation: num-in .6s var(--ease); }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.kpi.tone-danger .kpi-label .ic { background: var(--danger-soft); color: var(--danger); }
.kpi.tone-warn .kpi-label .ic { background: var(--warm-soft); color: var(--warm-text); }
.kpi.tone-ok .kpi-label .ic { background: var(--ok-soft); color: var(--ok); }
.kpi.tone-accent .kpi-label .ic { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); }
a.kpi:hover { box-shadow: var(--shadow), 0 14px 30px -18px var(--glow-c); transform: translateY(-2px); }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--text); border: 1px solid var(--hi); background: var(--surface); box-shadow: var(--shadow-s); transition: background .15s, transform .25s var(--ease); }
.check-item:hover { background: var(--surface-2); transform: translateX(2px); }
.check-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; }
.check-dot.danger { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); animation: dot-pulse 2s ease-in-out infinite; }
.check-dot.warn { background: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft); }
.check-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 7px var(--danger-soft); } }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar-fill { width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #4a4e56, #26292f); min-height: 3px; transform-origin: 50% 100%; animation: grow .8s var(--ease) both; }
.bar:nth-child(2) .bar-fill { animation-delay: .05s; } .bar:nth-child(3) .bar-fill { animation-delay: .1s; } .bar:nth-child(4) .bar-fill { animation-delay: .15s; }
.bar:nth-child(5) .bar-fill { animation-delay: .2s; } .bar:nth-child(6) .bar-fill { animation-delay: .25s; }
@keyframes grow { from { transform: scaleY(0); } }
.bar-fill.cur { background: linear-gradient(180deg, #f59e0b, #ea580c); }
.bar small { color: var(--muted); }
.bar-val { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); box-shadow: var(--press); overflow: hidden; display: flex; }
.meter span { display: block; height: 100%; }
.people { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.person .avatar { width: 32px; height: 32px; }
.person > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.person strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.state-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* ---------- Telefon ---------- */
.call-pop { position: fixed; z-index: 75; right: 18px; top: 72px; width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--hi);
  border-radius: 20px; box-shadow: var(--shadow-l); padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: pop .3s var(--ease); }
.call-pop .ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: ring 1.2s ease-in-out infinite; flex: none; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }
@media (max-width: 900px) { .call-pop { top: auto; bottom: 96px; right: 12px; } }
.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dialpad button { min-height: 54px; border-radius: 50%; border: 1px solid var(--hi); background: var(--surface); box-shadow: var(--shadow-s); font: 650 1.25rem var(--display); color: var(--text); cursor: pointer; transition: background .15s, transform .15s var(--ease); }
.dialpad button:hover { background: var(--surface-2); }
.dialpad button:active { transform: scale(.94); }
.call-dir { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.call-dir.in { background: var(--info-soft); color: var(--info); }
.call-dir.out { background: var(--accent-soft); color: var(--accent); }
.call-dir.missed { background: var(--danger-soft); color: var(--danger); }

/* Hilfe */
.help-card { display: flex; gap: 14px; align-items: flex-start; }
.ic-wrap { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
details.faq { border-bottom: 1px solid var(--border); }
details.faq summary { cursor: pointer; padding: 10px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; transition: transform .3s var(--ease); }
details.faq[open] summary::after { content: "–"; }
details.faq[open] p { animation: page-in .35s var(--ease); }
details.faq p { margin: 0 0 12px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fx-confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; }

/* White-Label: eigener App-Name, Hinweise (Lizenz, Einrichtung), Einstellungen mit Suche, Assistent */
.brand-custom { font-weight: 700; letter-spacing: -.01em; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-custom::after { content: none; }
.app-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 16px 0; }
.app-banner > span { flex: 1; min-width: 200px; }
.set-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.set-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 4px; }
.set-nav button { text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.set-nav button.on { background: var(--accent); color: var(--on-accent, #fff); }
.set-nav button:focus-visible { outline: 3px solid var(--glow-c); outline-offset: 2px; }
.set-search { margin-bottom: 12px; }
@media (max-width: 860px) { .set-layout { grid-template-columns: 1fr; } .set-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .set-nav button { white-space: nowrap; flex: 0 0 auto; } }
.swatch { display: inline-flex; align-items: center; gap: 8px; }
.swatch i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); display: inline-block; }
.contrast-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.contrast-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.brand-preview { border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); background: #d4d7dc; color: #16181d; }
.brand-preview.dark { background: #1b1d22; color: #eef0f3; }
.brand-preview img { max-height: 56px; max-width: 220px; object-fit: contain; align-self: flex-start; }
.brand-preview .pv-btn { align-self: flex-start; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.wiz-steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 8px; }
.wiz-steps li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; }
.wiz-steps li.on { background: var(--accent); color: var(--on-accent, #fff); }
.wiz-steps li.done { box-shadow: inset 0 0 0 2px var(--ok, #15803d); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.perm-grid label.locked { opacity: .55; }
.mod-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mod-row:last-child { border-bottom: 0; }
.mod-row .grow { min-width: 200px; }
