/* bvise Brand Guideline: Navy #161647, Blau #1565C0 → #64B5F6, Poppins (Bold für Überschriften, Regular für Text) */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/fonts/Poppins-Regular.ttf) format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(/fonts/Poppins-Medium.ttf) format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/fonts/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/fonts/Poppins-Bold.ttf) format("truetype"); }
:root {
  /* text colors reach WCAG AA (>= 4.5:1) on --panel and --bg; --accent carries white button text (5.9:1) */
  --bg: #f5f6f8; --panel: #fff; --text: #161647; --muted: #55597e; --line: #e4e6eb; --line-strong: #cdd1da;
  --top: #161647; --top-text: #c9cdf0; --accent: #1565c0; --accent-dark: #0f4e96; --on-color: #fff; /* text on --accent/--ok/--info/--danger backgrounds */ --link: #161647; /* Links wie Text, blau erst beim Darüberfahren: Blau bleibt der Hauptaktion vorbehalten */
  --danger: #a82e25; --warn: #e8a317; --warn-text: #7a5000; --ok: #2e7d32; --info: #095e8c; --focus: #1565c0;
  --chart-2: #1e88e5; --chart-3: #e8a317; --chart-4: #9b59b6;
  --brand-grad: linear-gradient(100deg, #1565c0, #64b5f6); /* nur dekorativ (Balken, Akzente) – weißer Text braucht --accent */
  --radius: 8px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(22,22,71,.05), 0 4px 14px rgba(22,22,71,.04); --shadow-pop: 0 8px 28px rgba(22,22,71,.14);
  color-scheme: light; /* Ansichten lesen das Farbschema hier ab (z. B. helles/dunkles Kundenlogo) */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { --bg: #10102e; --panel: #181848; --text: #e9ebf7; --muted: #a9add0; --line: #2a2a64; --line-strong: #3a3a80;
    --top: #0b0b24; --top-text: #c3c6e6; --link: #64b5f6; --shadow: none;
    --danger: #f47b70; --ok: #66bb6a; --info: #4db3e8; --warn-text: #e8a317; --focus: #64b5f6;
    --accent: #64b5f6; --accent-dark: #90caf9; --on-color: #10102e; --chart-2: #64b5f6; color-scheme: dark; }
}
:root[data-theme=dark] { --bg: #10102e; --panel: #181848; --text: #e9ebf7; --muted: #a9add0; --line: #2a2a64; --line-strong: #3a3a80;
    --top: #0b0b24; --top-text: #c3c6e6; --link: #64b5f6; --shadow: none;
    --danger: #f47b70; --ok: #66bb6a; --info: #4db3e8; --warn-text: #e8a317; --focus: #64b5f6;
    --accent: #64b5f6; --accent-dark: #90caf9; --on-color: #10102e; --chart-2: #64b5f6; color-scheme: dark; }

* { box-sizing: border-box; } [hidden] { display: none !important; } /* the hidden attribute must win over component display rules (e.g. .auth-card label { display:flex }) */
html { font-size: 14px; }
body { margin: 0; font-family: "Poppins", -apple-system, "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent); }
/* Links im Fließtext und in Formularen dezent unterstrichen, damit sie ohne Blau als Link erkennbar bleiben */
p a, .field a, .help a, small a, .hint a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
p a:hover, .field a:hover, .help a:hover, small a:hover, .hint a:hover { text-decoration-color: currentColor; }
h1 { font-size: 28px; font-weight: 700; margin: 0; overflow-wrap: anywhere; } /* long unbroken names must not widen the page */
h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .pad { padding: 12px; }
.danger { color: var(--danger) !important; } .success { color: var(--ok); } .warn { color: var(--warn-text); }
/* visible keyboard focus everywhere (>= 3:1 against panel and background) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--panel); color: var(--text); padding: 8px 14px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.skip-link:focus { top: 8px; }
#view:focus { outline: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- chrome ---------- */
.impersonation { background: var(--warn); color: #222; text-align: center; padding: 6px; font-size: 13px; }
/* Seitenleiste links (Marke, Start, Arbeit, Verwaltung, Einstellungen), rechts schmale Kopfzeile mit Suche und Symbolen */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.appside { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 32px 14px 18px; background: var(--panel); border-right: 1px solid var(--line); z-index: 40; }
/* bündig: Logo oben wie der Seitentitel (32 px), links wie die Profilkarte; Profilkarte oben wie die erste Kachel (119 px) */
.appside .brand { display: flex; align-items: flex-start; height: 56px; padding: 0; margin-bottom: 9px; }
.appside .brand img { max-height: 56px; max-width: 200px; }
.appside nav { display: flex; flex-direction: column; gap: 2px; }
.appside nav > a, .side-foot a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14px; position: relative; }
.appside nav > a .icon, .side-foot a .icon { width: 20px; height: 20px; flex: none; color: var(--muted); }
.appside nav > a:hover, .side-foot a:hover { background: var(--bg); text-decoration: none; }
.appside nav > a.active, .side-foot a.active { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.appside nav > a.active .icon, .side-foot a.active .icon { color: var(--accent); }
.side-group { color: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 18px 12px 6px; }
.side-group:has(+ nav:empty) { display: none !important; }
.side-collapse { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.side-collapse:hover { background: var(--bg); color: var(--text); }
.side-foot-row { display: flex; align-items: center; gap: 4px; } .side-foot-row .side-collapse { flex: 1; } .side-logout { margin-left: auto; color: var(--muted); }
.side-mini .side-foot-row { flex-direction: column; } .side-mini .side-logout { margin: 0; }
.side-collapse .icon { width: 20px; height: 20px; flex: none; }
/* eingeklappt: nur Symbole (Desktop); Namen erscheinen als Tooltip */
@media (min-width: 1001px) {
  .shell.side-mini { grid-template-columns: 76px minmax(0, 1fr); }
  .side-mini .appside { padding: 18px 10px; }
  .side-mini .appside .brand { padding: 0 4px; overflow: hidden; }
  .side-mini .appside .brand img { max-width: 44px; height: 56px; object-fit: cover; object-position: left center; }
  .side-mini .appside .brand span, .side-mini .side-group, .side-mini .side-me-name, .side-mini .side-me-icons, .side-mini .side-search span, .side-mini .side-search kbd,
  .side-mini .appside nav > a > span, .side-mini .side-foot a > span, .side-mini .side-collapse > span, .side-mini .appside nav > a .badge, .side-mini .ld-navbadge { display: none; }
  .side-mini .appside nav > a, .side-mini .side-foot a, .side-mini .side-collapse { justify-content: center; padding: 10px 0; }
  .side-mini .adminnav a.st-reqlink { display: none; } /* ohne Symbol; erreichbar über Personal › Abwesenheitsanträge */
  .side-mini .side-me { padding: 8px 0; align-items: center; background: none; }
  .side-mini .side-me-who .avatar { width: 40px; height: 40px; }
  .side-mini .side-search { justify-content: center; padding: 10px 0; }
  .side-mini .side-group { display: block; height: 1px; padding: 0; margin: 10px 8px; background: var(--line); font-size: 0; }
}
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.side-me { margin: 0 0 10px; padding: 14px 12px 12px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.side-me-who { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.side-me-who .avatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 17px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px var(--line); }
.side-me-name { display: flex; flex-direction: column; min-width: 0; }
/* Outlook-Status am Profilbild: grau = nicht verbunden, grün mit sanftem Puls = verbunden */
.side-me-pic { position: relative; flex: none; }
.side-me-sync { position: absolute; right: 0; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 3px var(--bg); }
.side-me-sync.on { background: #34c759; animation: side-sync 2.4s ease-in-out infinite; }
@keyframes side-sync { 0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 3px rgba(52,199,89,.45); } 50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 7px rgba(52,199,89,0); } }
.side-me-name small.side-me-synctext { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .side-me-sync.on { animation: none; } }
.side-me-name b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me-name small { color: var(--muted); font-size: 12px; }
.side-me-who:hover { text-decoration: none; } .side-me-who:hover b { color: var(--accent); }
.side-me-where { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; min-width: 0; }
.side-me-where span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me-where:hover { border-color: var(--line-strong); }
.where-menu { min-width: 260px; }
.where-menu .menu-head small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.where-cust { display: grid; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; }
.where-cust label { font-size: 14px; }
.side-mini .side-me-where { display: none; }
.side-me-icons { display: flex; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.side-me-icons .icon-btn { flex: 1; justify-content: center; padding: 8px; border-radius: 10px; }
.side-me-icons .icon-btn:hover { background: var(--panel); }
.cake .dot { position: absolute; top: 4px; right: calc(50% - 14px); width: 8px; height: 8px; border-radius: 50%; background: #e8a317; }
.menu.bday a { display: flex; flex-direction: column; gap: 1px; font-size: 13px; } .menu.bday a small { color: var(--muted); }
.menu.bday a.today { background: color-mix(in srgb, #e8a317 12%, transparent); } .menu.bday a.today small:last-child { color: var(--warn-text); font-weight: 600; }
.menu.bday a.bday-all { color: var(--link); font-weight: 500; }
.side-search { width: 100%; margin: 0 0 14px; padding: 10px 14px; font-size: 14px; box-shadow: none; background: var(--bg); border-color: transparent; }
.side-search:hover { border-color: var(--line-strong); }
/* großer Bildschirm: Navigation, Profil und Suche stehen in der Seitenleiste, eine Kopfzeile braucht es nicht */
@media (min-width: 1001px) { .shell-main > .mainbar { display: none; } }
.side-backdrop { display: none; }
.mainbar .side-burger { display: none; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.mainbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px max(16px, calc((100% - 1380px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.searchpill { grid-column: 2; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; font-size: 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.searchpill:hover { border-color: var(--line-strong); }
.searchpill kbd { margin-left: auto; font: inherit; font-size: 12px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; letter-spacing: .02em; }
.brand img { max-height: 40px; max-width: 170px; display: block; }
.brand:hover { text-decoration: none; }
/* hochgeladene Logos sind meist für hellen Grund gemacht (dunkler Schriftzug): im Dunkelmodus auf ein helles Feld */
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .brand img { background: #fff; padding: 6px 10px; border-radius: 10px; } }
:root[data-theme=dark] .brand img { background: #fff; padding: 6px 10px; border-radius: 10px; }
.mainbar-right { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; border-radius: var(--radius); display: inline-flex; position: relative; }
.icon-btn:hover { color: var(--text); background: var(--bg); }
.bell .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-color); font-weight: 600; cursor: pointer; overflow: hidden; padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- page layout ---------- */
.page { display: grid; grid-template-columns: 220px 1fr; gap: 40px; max-width: 1840px; margin: 0 auto; padding: 32px 32px; } /* breite Bildschirme ausnutzen, Tabellen bekommen den Platz */
.page.no-sidebar { grid-template-columns: 1fr; }
.page.wide { max-width: none; }
.content { min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .subtitle { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
/* Unterzeile neben dem Titel statt darunter: Titel und Reiter stehen auf jeder Seite gleich hoch */
@media (min-width: 641px) { .page-head > div:first-child { display: flex; align-items: baseline; gap: 14px; min-width: 0; } .page-head .subtitle { margin-top: 0; font-size: 14px; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-head .actions select, .page-head .actions input:not([type=checkbox]):not([type=radio]) { width: auto; } /* Felder in der Titelzeile nicht auf volle Breite, sonst bricht die Zeile um und der Titel rutscht */
.sidebar { padding-top: 52px; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
.page-head .actions .new-btn { margin: 0; } /* in der Titelzeile auf einer Linie mit den übrigen Knöpfen */
/* Kennzahl-Karten über Listen: flacher, damit die Daten weiter oben beginnen */
.content > .kpi-cards .kpi-card { padding: 14px 18px; gap: 2px; }
.content > .kpi-cards .kc-value { font-size: 24px; }
.content > .kpi-cards { margin-bottom: 14px; }
.new-btn { display: inline-block; margin-bottom: 24px; }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav li a { display: flex; align-items: center; gap: 8px; color: var(--text); padding: 5px 0; font-size: 14px; }
.side-nav li a.active { font-weight: 600; }
.side-nav li.sub a { padding-left: 26px; font-size: 13px; color: var(--muted); }
.side-nav li.sub a.active { color: var(--text); }
.side-heading { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 4px; }
.side-nav .ico { display: inline-flex; color: var(--muted); }
.side-nav .ico .icon { width: 18px; height: 18px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 32px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.panel-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 500; }
.kpi .value { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
/* Kennzahl-Karten: große ruhige Zahl, kleine Beschriftung mit farbigem Symbol, weiche Karte ohne harten Rahmen */
.kpi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0 0 20px; }
.kpi-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--panel); color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 5%, transparent), 0 1px 2px rgba(22,22,71,.04), 0 8px 24px rgba(22,22,71,.05); transition: transform .15s, box-shadow .15s; }
.kpi-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.kpi-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 7%, transparent), 0 2px 4px rgba(22,22,71,.05), 0 14px 32px rgba(22,22,71,.08); }
.kc-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.kc-label .icon { width: 16px; height: 16px; color: var(--tone); stroke-width: 2; flex: none; }
.kc-value { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kc-sub { font-size: 12.5px; color: var(--muted); }
.kc-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; margin-top: 2px; }
.kc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tone); }
@media (prefers-reduced-motion: reduce) { .kpi-card { transition: none; } a.kpi-card:hover { transform: none; } }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 8px 0; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs.small { gap: 16px; margin-bottom: 12px; }
.tabs .count { color: var(--muted); font-size: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); background: color-mix(in srgb, var(--text) 3%, var(--panel)); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-color); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 3px 9px; font-size: 12px; border-radius: 5px; }
.btn:disabled { opacity: .5; cursor: default; }
button.link { background: none; border: 0; color: var(--link); padding: 0; cursor: pointer; font: inherit; }
button.link.danger { color: var(--danger); }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; } .btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); } .btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; } .btn-group .btn + .btn { margin-left: -1px; } .btn-group .btn.active { background: var(--bg); font-weight: 600; }

/* ---------- forms: label left, control right (MOCO style) ---------- */
.form { max-width: 860px; }
.field { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; padding: 7px 0; }
.field > label { padding-top: 8px; font-weight: 500; }
.field .control { max-width: 520px; }
.field.wide .control { max-width: none; }
.field .req { color: var(--danger); margin-left: 2px; }
.help { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.form-section { color: var(--text); font-size: 14px; font-weight: 600; margin: 26px 0 6px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 7px 10px; width: 100%; transition: border-color .12s, box-shadow .12s; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=color] { width: 64px; height: 36px; padding: 3px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); } /* Rahmen + weicher Schein statt doppelter Linie */
/* Auswahlfelder: eigener Pfeil mit Abstand zum Rand, damit Text und Pfeil nicht aneinanderkleben */
select:not([multiple]) { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2355597e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; text-overflow: ellipsis; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=month]::-webkit-calendar-picker-indicator { margin-left: 8px; opacity: .55; cursor: pointer; }
.pick-search { display: block; margin-bottom: 4px; }
.filters .pick-search, .inline-form .pick-search, form:not(.form) > .pick-search { display: inline-block; width: auto; max-width: 160px; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; padding: 6px 0; }
.radios { display: flex; gap: 18px; flex-wrap: wrap; }
.input-unit { display: flex; } .input-unit input { border-radius: var(--radius) 0 0 var(--radius); text-align: right; } .input-unit span { border: 1px solid var(--line-strong); border-left: 0; padding: 7px 10px; background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
.static { padding-top: 8px; }
.form-actions { display: flex; gap: 8px; margin: 24px 0 0 216px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.inline-form input, .inline-form select { width: auto; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters input[type=search] { max-width: 260px; }
.filters select, .filters input { width: auto; }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; background: var(--panel); }
table.data th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data td.nw { white-space: nowrap; }
table.data td.ell { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.data td.ell > * { vertical-align: middle; }
table.data th.num, table.data td.num { text-align: right; }
table.data tbody tr.clickable { cursor: pointer; }
a.row-link { color: inherit; } a.row-link:hover { text-decoration: underline; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; color: var(--muted); }
table.data tbody tr:hover { background: color-mix(in srgb, var(--bg) 60%, transparent); }
table.data tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: 0; }
table.data td.empty { text-align: center; color: var(--muted); padding: 28px; }
table.data .sel { width: 28px; }
.table-wrap { overflow-x: auto; }

/* ---------- bits ---------- */
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge.green { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); border-color: transparent; }
.badge.red { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); border-color: transparent; }
.badge.orange { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn-text); border-color: transparent; }
.badge.blue { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); border-color: transparent; }
.label-chip { display: inline-block; padding: 0 7px; margin-right: 4px; border-radius: 4px; font-size: 11px; background: color-mix(in srgb, var(--link) 12%, transparent); color: var(--link); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; min-width: 70px; }
.progress i { display: block; height: 100%; background: var(--accent); }
.progress.warn i { background: var(--warn); } .progress.over i { background: var(--danger); }
.amount-green { color: var(--ok); font-weight: 500; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; }
.timeline li { border-left: 2px solid var(--line); padding: 4px 0 12px 14px; }
.timeline .meta { color: var(--muted); font-size: 12px; } .timeline .text { white-space: pre-wrap; }
.note-form { display: flex; gap: 8px; align-items: flex-start; } .note-form textarea, .note-form input { flex: 1; }
.extras { margin-top: 12px; }
.chart svg text { fill: var(--muted); }
.co-mark { display: inline-flex; flex: none; width: 56px; height: 28px; box-sizing: border-box; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; object-fit: contain; vertical-align: middle; }
.co-line { display: inline-flex; align-items: center; gap: 8px; }
.pj-company .co-mark { margin-right: 8px; }
.crm-logo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.co-ini { align-items: center; justify-content: center; padding: 0; font-size: 10px; font-weight: 600; color: var(--muted); background: var(--bg); }
.bc-plot { display: flex; gap: 4px; padding-top: 18px; box-sizing: content-box; }
.bc-g { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-pos, .bc-neg { display: flex; justify-content: center; gap: 2px; }
.bc-pos { align-items: flex-end; }
.bc-neg { align-items: flex-start; border-top: 1px solid var(--line-strong); }
.bc i { font-style: normal; position: relative; flex: 1; max-width: 28px; border-radius: 3px 3px 0 0; }
.bc-neg i { border-radius: 0 0 3px 3px; }
.bc i.z { background: var(--line); }
.bc i b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text); }
.bc-neg i b { bottom: auto; top: 100%; margin: 3px 0 0; }
.bc-x { display: flex; gap: 4px; margin-top: 6px; }
.bc-x span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.2; }
.bc-x small { display: block; font-size: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* ---------- modal, popover, toast, search ---------- */
dialog.modal { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(620px, calc(100vw - 32px)); background: var(--panel); color: var(--text); box-shadow: 0 16px 48px rgba(0,0,0,.22); }
dialog.modal.wide { width: min(980px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(16,16,46,.4); backdrop-filter: blur(2px); }
.modal-form header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.modal-form header h2 { margin: 0; }
.modal-body { padding: 16px 24px; max-height: 70vh; overflow: auto; }
.modal-body .field { grid-template-columns: 150px minmax(0, 1fr); }
.modal-form footer { display: flex; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); }
.popover { position: absolute; z-index: 50; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); overflow: hidden; min-width: 220px; max-width: 360px; }
.menu { display: flex; flex-direction: column; max-height: 70vh; overflow: auto; }
.menu > * { flex-shrink: 0; } /* a long list scrolls; an explicit min-height (phones) would otherwise let entries shrink and overlap */
.menu > a, .menu > button { padding: 9px 14px; color: var(--text); text-align: left; background: none; border: 0; font: inherit; cursor: pointer; border-top: 1px solid var(--line); }
.menu > a:hover, .menu > button:hover { background: var(--bg); text-decoration: none; }
.menu-head { padding: 10px 14px; font-weight: 600; display: flex; flex-direction: column; } .menu-head small { font-weight: 400; color: var(--muted); }
.notif .menu-head { flex-direction: row; justify-content: space-between; }
.notif a { display: flex; flex-direction: column; font-size: 13px; } .notif a small { color: var(--muted); } .notif a.unread { background: color-mix(in srgb, var(--link) 7%, transparent); }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { padding: 10px 16px; border-radius: var(--radius); color: #fff; background: #a82e25; box-shadow: 0 4px 12px rgba(0,0,0,.2); max-width: 420px; }
.toast.success { background: #3a6912; }
.update-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; width: max-content; z-index: 1000; display: flex; gap: 12px; align-items: center; padding: 8px 12px; max-width: calc(100vw - 32px); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.search-overlay { position: fixed; inset: 0; background: rgba(20,22,25,.45); z-index: 60; display: flex; justify-content: center; padding-top: 12vh; }
.search-box { width: min(640px, calc(100vw - 32px)); background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 12px; height: fit-content; }
.search-box input { font-size: 18px; padding: 10px 12px; }
.search-box ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-box a { display: block; padding: 8px 10px; color: var(--text); border-radius: var(--radius-sm); }
.search-box a:hover, .search-box a.hl { background: var(--bg); text-decoration: none; }
.search-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.search-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 8px; cursor: pointer; color: var(--muted); font: inherit; font-size: 13px; }
.search-tabs button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; } .search-tabs small { color: var(--muted); font-weight: normal; }
.search-box li.search-group { padding: 10px 10px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.search-box li.search-empty { padding: 10px; color: var(--muted); }
.search-box .search-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card { background: var(--panel); padding: 36px; border-radius: 12px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 22px; margin-bottom: 8px; }
.auth-card label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.auth-card .row { display: flex; gap: 12px; } .auth-card .row label { flex: 1; }
dialog.relogin { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; }
dialog.relogin::backdrop { background: rgba(20,22,25,.55); }
.brand.big { font-size: 22px; color: var(--accent); }

/* ---------- print ---------- */
@media print {
  .appside, .mainbar, .sidebar, .actions, .tabs, .noprint, #toasts { display: none !important; }
  .shell { display: block; }
  body { background: #fff; } .page { display: block; padding: 0; } .panel { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .side-collapse { display: none; }
  .kpi-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Seitenleiste wird zur Schublade (Menü-Knopf in der Kopfzeile) */
  .shell { grid-template-columns: minmax(0, 1fr); }
  .appside { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 30px rgba(22,22,71,.18); }
  body.side-open .appside { transform: none; }
  .side-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(16,16,46,.4); }
  .mainbar .side-burger { display: inline-flex; }
  .mainbar { display: flex; } .searchpill { flex: 1; min-width: 0; } .mainbar-right { margin-left: auto; }
  .page { grid-template-columns: minmax(0, 1fr); gap: 12px; } .sidebar { padding-top: 0; min-width: 0; }
  .content > *, .panel, .table-wrap { max-width: 100%; } .panel, .table-wrap { overflow-x: auto; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {

  .bc i b { display: none; } .bc-x span { font-size: 9px; }
  .kpi-cards.four { grid-template-columns: minmax(0, 1fr); }
  /* the side navigation is a compact, scrollable strip so the page content starts right below */
  .sidebar .side-nav { display: flex; gap: 4px 14px; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .sidebar .side-nav li a { padding: 6px 0; } .sidebar .side-heading { display: none; } .sidebar .side-nav li.sub a { padding-left: 0; }
  .new-btn { margin-bottom: 8px; }
  .btn, .icon-btn, .tabs a, .menu > a, .menu > button { min-height: 32px; } .btn.small { min-height: 28px; }
  .icon-btn { min-width: 32px; justify-content: center; } button[data-act=forgot] { min-height: 44px; } /* one-character icon buttons were 20 px wide */
  .page { padding: 16px; }
  .mainbar { gap: 6px; } .searchpill { padding: 9px 14px; font-size: 14px; } .searchpill kbd { display: none; } .mainbar-right { gap: 2px; }
  .field, .modal-body .field { grid-template-columns: 1fr; gap: 4px; } .field > label { padding-top: 0; }
  .form-actions { margin-left: 0; }
  .panel { padding: 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  table.data { font-size: 13px; } .table-wrap, .panel { overflow-x: auto; }
  /* iOS Safari zooms into any field below 16px on focus; !important also beats smaller module sizes */
  input, select, textarea { font-size: 16px !important; }
}

/* table({ cards: true }): rows as cards on small screens */
@media (max-width: 640px) {
  table.data.cards thead { display: none; } table.data.cards td.ell, table.data.cards td.nw { max-width: none; white-space: normal; }
  table.data.cards, table.data.cards tbody, table.data.cards tr, table.data.cards td { display: block; width: 100%; }
  table.data.cards tr { border-bottom: 1px solid var(--line-strong); padding: 6px 0; }
  table.data.cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 10px; text-align: right; }
  table.data.cards td[data-label]:not([data-label=""])::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: 12px; }
  table.data.cards td.sel { width: auto; }
  table.data.cards tfoot { display: block; }
}
.menu.accounts { min-width: 240px; } .menu.accounts a, .menu.accounts span.cur { display: flex; justify-content: space-between; gap: 10px; }
.menu.accounts span.cur { padding: 8px 14px; font-weight: 600; } .menu.accounts hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .appside { transition: none; } }

/* ---------- Soft-Glass (Vorlage CRM-Dashboard): grau-blauer Verlauf, Milchglas-Karten, Pillen, aktiv schwarz ---------- */
:root { --bg: #e6e9ee; --panel: #fbfcfd; --glass: rgba(255,255,255,.66); --text: #16181c; --muted: #555c69; --line: rgba(22,24,28,.08); --line-strong: rgba(22,24,28,.16);
  --accent: #111214; --accent-dark: #2a2c31; --on-color: #fff; --link: #16181c; --focus: #4f6fd8; --radius: 12px; --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(60,72,100,.04); --shadow-pop: 0 20px 60px rgba(40,50,80,.18); --chip: rgba(255,255,255,.75); --chip-edge: rgba(22,24,28,.1); --glass-edge: rgba(255,255,255,.35);
  --page-grad: linear-gradient(165deg, #eef0f3 0%, #dfe4ec 45%, #cfd8e8 100%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { --bg: #15171c; --panel: #262930; --glass: rgba(38,41,48,.7); --text: #eef0f4; --muted: #a3a9b5; --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
    --accent: #f2f3f6; --accent-dark: #fff; --on-color: #111214; --link: #eef0f4; --focus: #8ea6ff; --shadow: 0 10px 40px rgba(0,0,0,.35);
    --chip: rgba(255,255,255,.06); --chip-edge: rgba(255,255,255,.12); --glass-edge: rgba(255,255,255,.06); --page-grad: linear-gradient(165deg, #1b1e24 0%, #16191f 50%, #1a2030 100%); }
}
:root[data-theme=dark] { --bg: #15171c; --panel: #262930; --glass: rgba(38,41,48,.7); --text: #eef0f4; --muted: #a3a9b5; --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
  --accent: #f2f3f6; --accent-dark: #fff; --on-color: #111214; --link: #eef0f4; --focus: #8ea6ff; --shadow: 0 10px 40px rgba(0,0,0,.35);
  --chip: rgba(255,255,255,.06); --chip-edge: rgba(255,255,255,.12); --glass-edge: rgba(255,255,255,.06); --page-grad: linear-gradient(165deg, #1b1e24 0%, #16191f 50%, #1a2030 100%); }
body { background: var(--page-grad) fixed; }
h1 { font-size: 34px; letter-spacing: -.03em; }

/* Seitenleiste: durchscheinend, Einträge als Pillen, aktiv schwarz */
.appside { background: color-mix(in srgb, var(--panel) 55%, transparent); border-right: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.appside nav > a, .side-foot a { border-radius: 10px; padding: 10px 14px; }
.appside nav > a:hover, .side-foot a:hover { background: var(--chip); }
.appside nav > a.active, .side-foot a.active { background: var(--accent); color: var(--on-color); box-shadow: none; font-weight: 500; }
.appside nav > a.active .icon, .side-foot a.active .icon { color: var(--on-color); }
.side-me, .side-search { background: var(--chip); border: 1px solid var(--chip-edge); border-radius: 22px; }
.side-search { border-radius: 10px; }
.icon-btn { border-radius: 10px; }
.side-me-icons .icon-btn { border-radius: 10px; }

/* Karten: Milchglas, große Rundung */
.panel, .kpi, .kpi-card, .sc-chart, .auth-card { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 14px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
a.kpi-card:hover { box-shadow: var(--shadow-pop); }

/* Knöpfe, Felder, Reiter als Pillen */
.btn { border-radius: 10px; background: var(--chip); border: 1px solid var(--chip-edge); color: var(--text); }
.btn:hover { background: var(--panel); border-color: var(--line-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-color); } .btn.primary:hover { background: var(--accent-dark); }
input, select, textarea { border-radius: 14px; background: var(--chip); border-color: var(--chip-edge); }
.tabs { border-bottom: 0; gap: 6px; } .tabs a { padding: 8px 16px; border: 0; border-radius: 10px; }
.tabs a:hover { background: var(--chip); } .tabs a.active { background: var(--accent); color: var(--on-color); box-shadow: none; }
.badge { border-radius: 999px; }

/* Tabellen luftig */
table.data { background: transparent; } /* --panel ist durchscheinend: sonst zweite Fläche in der Karte */
table.data th { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
table.data td { padding-top: 13px; padding-bottom: 13px; border-color: var(--line); }

dialog.modal, .search-box, .popover { border-radius: 16px; border: 1px solid var(--glass-edge); box-shadow: var(--shadow-pop); }
dialog.modal::backdrop { background: rgba(30,36,50,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Umschalter Admin | Mitarbeiter oben rechts */
.viewswitch { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.viewswitch button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.viewswitch button[aria-pressed=true] { background: var(--accent); color: var(--on-color); cursor: default; }

/* Seitenmenü als Leiste rechts (sidebarNav({ right })) */
.page.side-right { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
.page.side-right > aside.sidebar { order: 2; align-self: start; position: sticky; top: 24px; margin-top: var(--head-h, 67px); padding: 14px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 14px; backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.page.side-right > aside .side-heading { margin: 14px 8px 4px; } .page.side-right > aside > :first-child .side-heading:first-child { margin-top: 2px; }
.page.side-right > aside .side-nav li a { padding: 7px 10px; border-radius: 9px; font-size: 13px; }
.page.side-right > aside .side-nav li a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); text-decoration: none; }
.page.side-right > aside .side-nav li a.active { background: var(--accent); color: var(--on-color); }
/* Label-Filter (mehrere wählbar): getönt in der Labelfarbe statt schwarz, der Name bleibt lesbar */
.page.side-right > aside .side-nav li a.crm-lbl.active { background: color-mix(in srgb, currentColor 16%, transparent); font-weight: 600; }
.page.side-right > aside .side-nav li a.active .ico, .page.side-right > aside .side-nav li a.active .muted { color: inherit; opacity: .75; }
@media (max-width: 900px) { .page.side-right { grid-template-columns: 1fr; } .page.side-right > aside.sidebar { order: 0; position: static; margin-top: 0; } }
.page.side-right > aside .side-nav li.sub a { padding-left: 38px; }
.page.side-right > aside .side-nav li.sub a.active { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }

/* ---------- Signa (Vorlage Dribbble „Signa – Automations“): helles Grau, weiße Karten mit weichem Schatten, runde Knöpfe ---------- */
:root:not([data-theme=dark]) { --bg: #eceef1; --panel: #fff; --glass: #fff; --glass-edge: rgba(22,24,28,.04); --chip: #fff; --chip-edge: rgba(22,24,28,.06);
  --shadow: 0 10px 34px rgba(30,36,50,.06); --page-grad: #eceef1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --page-grad: #15171c; } }
:root[data-theme=dark] { --page-grad: #15171c; }
h1 { font-size: 40px; font-weight: 500; letter-spacing: -.03em; }
.page-head .subtitle { font-size: 15px; }
/* Karten: weiß, 16px, weicher großer Schatten statt Milchglas */
.panel, .kpi, .kpi-card, .sc-chart, .auth-card, .page.side-right > aside.sidebar { border-radius: 16px; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Knöpfe rund, Primär schwarz mit Schatten */
.btn { border-radius: 999px; padding: 8px 18px; }
.btn.primary { box-shadow: 0 8px 20px rgba(17,18,20,.22); }
.btn-group .btn:first-child { border-radius: 999px 0 0 999px; } .btn-group .btn:last-child { border-radius: 0 999px 999px 0; }
/* Seitenleiste: Einträge als Pillen, aktiv schwarz mit Schatten */
.appside { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-right: 0; }
.appside nav > a, .side-foot a { border-radius: 999px; }
.appside nav > a.active, .side-foot a.active { box-shadow: 0 8px 20px rgba(17,18,20,.22); }
.side-mini .appside nav > a { width: 46px; height: 46px; padding: 0; justify-content: center; background: var(--chip); }
.side-mini .appside nav > a.active { background: var(--accent); }
.icon-btn, .side-me-icons .icon-btn { border-radius: 50%; }
/* Reiter: Segment in grauer Pille */
.tabs { display: inline-flex; gap: 2px; padding: 4px; background: color-mix(in srgb, var(--text) 4%, transparent); border-radius: 999px; }
.tabs a { border-radius: 999px; padding: 7px 18px; }
.tabs a.active { background: var(--panel); color: var(--text); box-shadow: 0 2px 8px rgba(30,36,50,.08); }
/* Tabellen: Zeilen als graue Innenflächen */
table.data { border-collapse: separate; border-spacing: 0 6px; }
table.data td { border: 0; background: color-mix(in srgb, var(--text) 3%, transparent); }
table.data td:first-child { border-radius: 10px 0 0 10px; } table.data td:last-child { border-radius: 0 10px 10px 0; }
table.data tbody tr:hover td { background: color-mix(in srgb, var(--text) 6%, transparent); }
.viewswitch, .viewswitch button { border-radius: 999px; }
/* Alles in einer Ebene: Logo auf Höhe der h1 (Zeilenhöhe 58px), Profilkarte bündig mit der ersten Inhaltskarte */
.appside .brand { height: 58px; align-items: center; margin-bottom: 16px; }
.shell:has(.ad-sec) .appside .brand { margin-bottom: 45px; } /* Admin-Cockpit: Abschnittsüberschrift über der ersten Karte */

/* Anmeldung (Vorlage zweigeteilte Karte): links graue Fläche mit Figuren, rechts weißes Panel, Felder nur mit Unterstrich */
.auth-split { display: grid; grid-template-columns: 1.15fr 1fr; width: min(1080px, 100%); min-height: min(640px, calc(100vh - 32px)); padding: 10px; border-radius: 28px; background: color-mix(in srgb, var(--text) 7%, var(--bg)); box-shadow: 0 30px 80px rgba(20,22,30,.12); }
.auth-art { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-art svg { width: min(100%, 420px); height: auto; }
.auth-split .auth-card { width: auto; justify-content: center; gap: 18px; padding: 56px clamp(24px, 6vw, 72px); border-radius: 22px; background: var(--panel); border: 0; box-shadow: none; }
.auth-split .auth-card .brand.big { justify-content: center; margin-bottom: 18px; }
.auth-split .auth-card h1 { font-size: 34px; font-weight: 700; text-align: center; margin: 0; letter-spacing: -.02em; }
.auth-split .auth-card h1 + p, .auth-sub { text-align: center; color: var(--muted); margin: -6px 0 18px; }
.auth-split .auth-card label { font-weight: 400; color: var(--muted); font-size: 13px; }
.auth-split .auth-card input:not([type=checkbox]) { border: 0; border-bottom: 1px solid var(--text); border-radius: 0; background: transparent; padding: 10px 0; font-size: 16px; box-shadow: none; }
.auth-split .auth-card input:focus { outline: none; border-bottom-width: 2px; }
.auth .pw { position: relative; display: block; } .auth .pw input { width: 100%; padding-right: 36px !important; }
.pw-eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: var(--text); cursor: pointer; display: flex; }
.pw-eye[aria-pressed=true] { color: var(--muted); }
.auth-opts { display: flex; justify-content: flex-end; margin-top: -6px; } .auth-opts .link { color: var(--muted); font-size: 13px; }
.auth-split .auth-card .btn.primary { justify-content: center; border-radius: 999px; padding: 14px; font-size: 15px; margin-top: 8px; }
dialog.relogin .auth-split { box-shadow: 0 30px 80px rgba(0,0,0,.35); }
@media (max-width: 760px) { .auth-split { grid-template-columns: 1fr; min-height: 0; padding: 0; background: none; box-shadow: none; } .auth-art { display: none; } .auth-split .auth-card { padding: 36px 24px; box-shadow: var(--shadow); } }
dialog.relogin .auth-split .auth-card h1 { font-size: 26px; }
