*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── LOADING BAR ─────────────────────────────────────────────────────────── */
#sp-loading-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, #6366f1); z-index: 9999;
  transform: scaleX(0); transform-origin: left;
  transition: opacity 0.3s;
  pointer-events: none;
}
#sp-loading-bar.active {
  animation: sp-loading 1.4s ease-in-out infinite;
}
@keyframes sp-loading {
  0%   { transform: scaleX(0);   opacity: 1; }
  60%  { transform: scaleX(0.7); opacity: 1; }
  100% { transform: scaleX(1);   opacity: 0; }
}

:root {
  --bg: #0f172a; --surface: #1e293b; --surface2: #273549; --surface3: #2f3f55;
  --border: #334155; --text: #9aa4b8; --muted: #6a7890; --accent: #6366f1;
  --green: #22c55e; --red: #ef4444; --amber: #f59e0b;
  --radius: 10px; --radius-sm: 6px;
  --uv-yes: #16a34a; --uv-no: #ca8a04; --uv-yes-light: #4ade80; --uv-no-light: #fbbf24;
}

/* ── HIGH CONTRAST (Farbenblind-Modus) ──────────────────────────────────────── */
body.high-contrast {
  --uv-yes: #0066ff; --uv-no: #ff6600; --uv-yes-light: #3399ff; --uv-no-light: #ff8833;
  --green: #0066ff; --red: #ff0044; --amber: #ff6600;
  --text: #c8cdd6; --muted: #8892a4;
}
body.high-contrast.light {
  --uv-yes: #0044cc; --uv-no: #cc5500; --uv-yes-light: #0066ff; --uv-no-light: #ff6600;
  --green: #0044cc; --red: #cc0033; --amber: #cc5500;
  --text: #1a1a1a; --muted: #444;
}
body.high-contrast .uv-bar-yes {
  background: var(--uv-yes) !important;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,0.3) 3px, rgba(255,255,255,0.3) 5px) !important;
}
body.high-contrast .uv-bar-no {
  background: var(--uv-no) !important;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(0,0,0,0.2) 3px, rgba(0,0,0,0.2) 5px) !important;
}
body.high-contrast .uv-cell-yes { background: var(--uv-yes) !important; }
body.high-contrast .uv-cell-no {
  background: var(--uv-no) !important;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 4px) !important;
}
body.high-contrast .uv-dot-yes { color: var(--uv-yes-light) !important; }
body.high-contrast .uv-dot-no { color: var(--uv-no-light) !important; }
body.high-contrast .uv-status-yes { color: var(--uv-yes-light) !important; }
body.high-contrast .uv-status-no { color: var(--uv-no-light) !important; }
body.high-contrast .uv-legend-yes { background: var(--uv-yes) !important; }
body.high-contrast .uv-legend-no {
  background: var(--uv-no) !important;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 3px) !important;
}

/* ── LIGHT MODE ──────────────────────────────────────────────────────────────── */
body.light {
  --bg: #F0F8FF; --surface: #ffffff; --surface2: #e8f4fd; --surface3: #d6ecf8;
  --border: #B5B5B5; --text: #4a5568; --muted: #718096; --accent: #1874CD;
  --green: #16a34a; --red: #dc2626; --amber: #d97706;
}
body.light .login-page {
  background: linear-gradient(135deg, #d0e8f8 0%, #b3d4f0 50%, #d0e8f8 100%);
}
body.light .btn-primary        { background: #1874CD; border-color: #1874CD; }
body.light .btn-primary:hover  { background: #1462ae; border-color: #1462ae; }
body.light .badge-role.admin               { background: rgba(24,116,205,0.15); color: #1462ae; }
body.light .badge-role.sachgebietsleiter   { background: rgba(22,163,74,0.15);  color: #15803d; }
body.light .badge-role.schichtleiter       { background: rgba(217,119,6,0.15);  color: #b45309; }
body.light .badge-role.mitarbeiter,
body.light .badge-role.employee            { background: rgba(0,0,0,0.06);      color: #555; }
body.light select option { background: #ffffff; color: #333; }
body.light .dp-group-sep-cell { background: #dde9f4; color: #1874CD; }
body.light .ansicht-menu { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
body.light .dp-table thead th { background: #e8f4fd; }
body.light .dp-table tbody tr:hover td { background: rgba(24,116,205,0.06); }
body.light .dp-table thead th.sd-both,
body.light .dp-table thead th.sd-l,
body.light .dp-table thead th.sd-r,
body.light .dp-table thead th.sd-mid { background: rgba(14,165,233,0.12); }
body.light .dp-table tbody td.sd-both,
body.light .dp-table tbody td.sd-l,
body.light .dp-table tbody td.sd-r,
body.light .dp-table tbody td.sd-mid { background: rgba(14,165,233,0.06); }
body.light .dp-th-day.holiday { background: rgba(239,68,68,0.12); filter: none; }
body.light .dp-th-day .dp-hn { color: #dc2626; }
body.light .dp-cell.holiday-col { background: rgba(239,68,68,0.06); }
body.light .dp-cell.weekend-col { background: rgba(129,140,248,0.05); }

/* ── SENIORENSTIFT THEME ────────────────────────────────────────────────────── */
body.theme-senior {
  --bg: #000000; --surface: #030326; --surface2: #090730; --surface3: #100e3a;
  --border: #201c48; --text: #e8e4f0; --muted: #a89ec0; --accent: #9f8fef;
  --radius: 12px; --radius-sm: 8px;
}
body.theme-senior.light {
  --bg: #f5f5f0; --surface: #ffffff; --surface2: #eeeee8; --surface3: #e2e2da;
  --border: #999; --text: #1a1a1a; --muted: #555; --accent: #2b4acb;
  --green: #0d7a2e; --red: #c51d1d; --amber: #b8750a;
}
body.theme-senior .dp-th-extra { background: #090730 !important; }
body.theme-senior .dp-th-w-empty { background: #090730; }
body.theme-senior .dp-th-name { background: #090730; }
body.theme-senior .dp-table tbody .dp-td-name { background: #090730; }
body.theme-senior .dp-table tbody .dp-td-saldo { background: #090730; }
body.theme-senior .dp-table thead .dp-th-saldo { background: #090730; }
body.theme-senior.light .dp-th-extra { background: #E8F4FD !important; }
body.theme-senior.light .dp-th-w-empty { background: #E8F4FD; }
body.theme-senior.light .dp-th-name { background: #E8F4FD; }
body.theme-senior.light .dp-table tbody .dp-td-name { background: #E8F4FD; }
body.theme-senior.light .dp-table tbody .dp-td-saldo { background: #E8F4FD; }
body.theme-senior.light .dp-table thead .dp-th-saldo { background: #E8F4FD; }
body.theme-senior.light .dp-sal-pos { color: #0d7a2e; }
body.theme-senior.light .dp-sal-neg { color: #c51d1d; }
body.theme-senior { font-size: 17px !important; line-height: 1.65; }
body.theme-senior .btn { padding: 0.55rem 1.1rem; font-size: 0.92rem; border-width: 2px; }
body.theme-senior .btn-sm { padding: 0.35rem 0.75rem; font-size: 0.84rem; }
body.theme-senior .input, body.theme-senior select { font-size: 0.95rem; padding: 0.5rem 0.75rem; border-width: 2px; }
body.theme-senior .nav-top { padding: 0.65rem 1.25rem; }
body.theme-senior .page-title { font-size: 1.35rem; }
body.theme-senior .page-sub { font-size: 0.88rem; }
body.theme-senior .data-table td { padding: 0.65rem 0.85rem; font-size: 0.92rem; }
body.theme-senior .data-table th { padding: 0.55rem 0.85rem; font-size: 0.82rem; }
body.theme-senior .modal { border-width: 2px; }
body.theme-senior .modal-head h3 { font-size: 1.15rem; }
body.theme-senior .field span { font-size: 0.85rem; font-weight: 600; }
body.theme-senior .section-label { font-size: 0.82rem; }
body.theme-senior .home-col-header { font-size: 0.78rem; }
body.theme-senior .home-member-name { font-size: 0.95rem; }
body.theme-senior .home-chip { font-size: 0.8rem; padding: 2px 9px; }
body.theme-senior .dp-chip { font-size: 0.72rem; padding: 2px 5px; }
body.theme-senior .dash-post-body { font-size: 0.95rem; }
body.theme-senior .dash-post-author { font-size: 0.9rem; }
body.theme-senior .bottom-nav { padding: 0.5rem 0; }
body.theme-senior .bnav-btn { font-size: 0.72rem; }
body.theme-senior .bnav-icon svg { width: 22px; height: 22px; }
body.theme-senior .tab-btn { font-size: 0.9rem; padding: 0.6rem 1.1rem; }
body.theme-senior .fb-item { padding: 0.75rem; }
body.theme-senior .sk-month-row { font-size: 0.92rem; }
body.theme-senior .toast { font-size: 0.9rem; padding: 0.6rem 1.2rem; }
/* Schriftbild klarer */
body.theme-senior { font-weight: 450; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
body.theme-senior h3, body.theme-senior .page-title, body.theme-senior .section-label,
body.theme-senior .home-col-header, body.theme-senior .modal-head h3 { font-weight: 700; }
/* Dienstplan Hover deutlicher + Amber-Rand */
body.theme-senior .dp-table tbody tr:hover td { background: rgba(255,102,0,0.08); box-shadow: inset 0 1px 0 rgba(255,102,0,0.4), inset 0 -1px 0 rgba(255,102,0,0.4); }
body.theme-senior .dp-table tbody tr:hover td:first-child { box-shadow: inset 2px 1px 0 rgba(255,102,0,0.4), inset 0 -1px 0 rgba(255,102,0,0.4); }
body.theme-senior .dp-table tbody tr:hover td:last-child { box-shadow: inset -2px 1px 0 rgba(255,102,0,0.4), inset 0 -1px 0 rgba(255,102,0,0.4); }
body.theme-senior .dp-table tbody tr:hover .dp-td-name { background: rgba(255,102,0,0.12); }
body.theme-senior .dp-table [data-col].col-hovered { background: rgba(255,102,0,0.1) !important; }
body.theme-senior .dp-table th[data-col].col-hovered { background: rgba(255,102,0,0.18) !important; }
body.theme-senior.light .dp-table tbody tr:hover td { background: rgba(255,102,0,0.06); box-shadow: inset 0 1px 0 rgba(255,102,0,0.45), inset 0 -1px 0 rgba(255,102,0,0.45); }
body.theme-senior.light .dp-table tbody tr:hover td:first-child { box-shadow: inset 2px 1px 0 rgba(255,102,0,0.45), inset 0 -1px 0 rgba(255,102,0,0.45); }
body.theme-senior.light .dp-table tbody tr:hover td:last-child { box-shadow: inset -2px 1px 0 rgba(255,102,0,0.45), inset 0 -1px 0 rgba(255,102,0,0.45); }
body.theme-senior.light .dp-table tbody tr:hover .dp-td-name { background: rgba(255,102,0,0.1); }
body.theme-senior.light .dp-table [data-col].col-hovered { background: rgba(255,102,0,0.08) !important; }
body.theme-senior.light .dp-table th[data-col].col-hovered { background: rgba(255,102,0,0.15) !important; }

html { background: var(--bg); }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 14px; line-height: 1.5; }

svg { vertical-align: -0.125em; }

/* ── UTILS ───────────────────────────────────────────────────────────────── */
.hidden    { display: none !important; }
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.gap-4     { gap: 4px; }
.gap-8     { gap: 8px; }
.gap-12    { gap: 12px; }
.flex-1    { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.truncate  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
button { font-family: inherit; cursor: pointer; border: none; transition: all 0.15s; }

.btn { display: inline-flex; align-items: center; gap: 5px; padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 500; border: 1px solid var(--border); background: var(--surface2); color: var(--text); }
.btn:hover { background: var(--surface3); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #5558e8; border-color: #5558e8; }
.btn-danger  { background: transparent; border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.btn-danger:hover  { background: rgba(239,68,68,0.15); }
.btn-subtle { background: transparent; border-color: var(--border); color: var(--muted); font-weight: 500; }
.btn-subtle:hover { background: var(--surface2); color: var(--text); }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.75rem; }
.btn-icon { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-icon:hover { background: var(--surface2); color: var(--text); }
.btn-icon.danger:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #fca5a5; }

/* ── INPUTS ──────────────────────────────────────────────────────────────── */
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  font-family: inherit; font-size: 0.875rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
}
input[type="radio"] { width: auto; margin: 0; }
input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0; appearance: none; -webkit-appearance: none;
  border: 2px solid var(--border); border-radius: 3px; background: var(--surface);
  cursor: pointer; position: relative; flex-shrink: 0; transition: all 0.15s;
}
input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
input[type="color"] { padding: 2px; height: 34px; cursor: pointer; }
.color-dot { display: inline-block; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid var(--border); transition: transform .1s; }
.color-dot:hover { transform: scale(1.15); }
select option { background: var(--surface); }
label.field { display: flex; flex-direction: column; gap: 5px; }
label.field span { font-size: 0.75rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

/* ── LOGIN ───────────────────────────────────────────────────────────────── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: 0 25px 60px rgba(0,0,0,0.6); }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.login-logo h1 { font-size: 1.5rem; font-weight: 700; }
.login-logo p { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.login-fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.login-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5;
  padding: 0.625rem 0.875rem; border-radius: var(--radius-sm); font-size: 0.82rem; text-align: center; margin-top: 0.75rem; }
.login-hint { text-align: center; margin-top: 1.25rem; font-size: 0.72rem; color: var(--muted);
  background: var(--surface2); padding: 0.6rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.app-nav { background: var(--surface); border-bottom: 1px solid var(--border); height: 56px;
  display: flex; align-items: center; padding: 0 1.25rem; gap: 0.75rem;
  position: sticky; top: 0; z-index: 50; flex-shrink: 0; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; margin-right: 0.5rem; }
.nav-logo-img { width: 36px; height: 36px; border-radius: 6px; }
.nav-logo span { font-size: 1.35rem; }
.nav-links { display: flex; gap: 3px; flex: 1; }
.nav-btn { background: transparent; border: none; color: var(--muted); padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 500; transition: all 0.15s; }
.nav-btn:hover { background: var(--surface2); color: var(--text); }
.nav-btn.active { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 6px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.3rem 0.65rem; font-size: 0.8rem; color: var(--muted); }
.user-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── SIMULATION ──────────────────────────────────────────────────────────── */
.sim-select { background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.2rem 0.4rem; font-size: 0.72rem; cursor: pointer; }
.sim-banner { background: #f59e0b; color: #000; text-align: center; padding: 4px 12px; font-size: .78rem;
  font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sim-banner .btn { background: rgba(0,0,0,.15); color: #000; border: none; font-size: .7rem; padding: 2px 8px; }

/* ── MAIN CONTENT ────────────────────────────────────────────────────────── */
.page { flex: 1; padding: 1.25rem 1.5rem; overflow-y: auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
.page-title { font-size: 1.25rem; font-weight: 500; }
.page-sub { font-size: 0.8rem; color: var(--muted); }

/* ── MONTH NAV ───────────────────────────────────────────────────────────── */
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-label { font-size: 1.1rem; font-weight: 700; min-width: 160px; text-align: center; text-transform: capitalize; }

/* ── DIENSTPLAN TOOLBAR ──────────────────────────────────────────────────── */
.dp-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp-toolbar-nav { display: flex; align-items: center; gap: 6px; }
.dp-toolbar-actions { display: flex; align-items: center; gap: 6px; }
.show-mobile { display: none; }
.hide-mobile { display: inline; }

/* ── DIENSTPLAN ──────────────────────────────────────────────────────────── */
.dp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.dp-table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }

.dp-table th, .dp-table td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dp-table thead th { border: none; }
.dp-table tr:last-child td { border-bottom: none; }
.dp-table tr th:last-child, .dp-table tr td:last-child { border-right: none; }

.dp-th-name, .dp-td-name {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  width: clamp(80px, 10vw, 130px); min-width: 80px; max-width: 130px; padding: 0.5rem 0.625rem;
  font-weight: 600; font-size: 0.8rem;
}
.dp-th-name { z-index: 3; background: var(--surface2); color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dp-td-name { overflow: hidden; }
.dp-name-inner { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dp-name-dot  { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dp-name-text { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dp-th-saldo { width: 58px; min-width: 58px; max-width: 58px; text-align: center; font-size: 0.65rem;
  color: var(--muted); background: var(--surface2); padding: 0 2px; position: sticky; top: 0; z-index: 1; }
.dp-td-saldo { width: 58px; text-align: center; font-size: 0.72rem; font-weight: 600; white-space: nowrap; padding: 0 2px; }
.dp-sal-pos { color: #4ade80; }
.dp-sal-neg { color: #f87171; }

.dp-th-day { text-align: center; padding: 0.375rem 0.25rem; min-width: 28px;
  background: var(--surface2); position: sticky; top: 28px; z-index: 1; }
.dp-th-day .dp-d  { font-weight: 700; font-size: 0.82rem; line-height: 1.2; }
.dp-th-day .dp-dn { font-size: 0.65rem; color: var(--muted); }
.dp-th-day .dp-hn { font-size: 0.55rem; color: #fca5a5; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; line-height: 1.1; margin-top: 1px; }
.dp-th-day.weekend { background: rgba(129,140,248,0.07); }
.dp-th-day.sunday .dp-d,
.dp-th-day.sunday .dp-dn { color: #d4650a; }
.dp-th-day.holiday { background: var(--holiday-bg, rgba(239,68,68,0.1)); filter: brightness(1.8); }
.dp-th-day.dp-today { background: rgba(99,102,241,0.22); box-shadow: inset 0 -3px 0 #6366f1; }
.dp-th-day.dp-today .dp-d {
  display: inline-flex; align-items: center; justify-content: center;
  background: #6366f1; color: #fff !important;
  border-radius: 50%; min-width: 22px; height: 22px; padding: 0 2px;
}

.dp-cell { text-align: center; padding: 3px; vertical-align: top; min-height: 44px; }
.dp-cell.clickable { cursor: pointer; }
.dp-cell.clickable:hover { background: rgba(255,255,255,0.04); }
.dp-cell.weekend-col { background: rgba(129,140,248,0.03); }
.dp-cell.holiday-col { background: var(--holiday-bg, rgba(239,68,68,0.04)); }
.dp-cell.today-col   { background: rgba(99,102,241,0.09); }

.dp-chip { display: inline-block; padding: 1px 5px; border-radius: 4px; font-size: 0.66rem;
  font-weight: 700; color: #fff; margin: 1px; white-space: nowrap; cursor: inherit; }
.dp-chip.more { background: var(--surface3); color: var(--muted); }
.dp-chip-vorl { border: 2px dashed color-mix(in srgb, currentColor, #fff 80%) !important; }
.dp-chip-mark { font-size: .85em; font-weight: 800; vertical-align: super; margin-left: 1px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.dp-chip-note-mark { color: #facc15; }
.dp-chip-note-mark svg { width: 1em; height: 1em; }
.dp-chip-old-sg { opacity: 0.4; filter: grayscale(60%); position: relative; }
.dp-sg-badge { position: absolute; top: -5px; right: -6px; background: var(--surface3); color: var(--text); font-size: 0.45rem; font-weight: 700; padding: 0 2px; border-radius: 2px; line-height: 1.3; white-space: nowrap; box-shadow: 0 0 2px rgba(0,0,0,.3); }

/* ── LEGEND ──────────────────────────────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.legend-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.legend-group-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.legend-chip { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ── PERSONAL CALENDAR (cal2 – full-week with KW) ────────────────────────── */
.cal2-grid {
  display: grid;
  grid-template-columns: 38px repeat(7, 1fr);
  gap: 2px;
}
.cal2-kw-hdr {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 0;
}
.cal2-kw-cell {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.57rem; font-weight: 600; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); writing-mode: horizontal-tb;
  padding: 2px; text-align: center; line-height: 1.2;
}
.cal2-day-hdr {
  text-align: center; padding: 0.35rem 0.25rem;
  font-size: 0.68rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cal2-day-hdr.we { color: #818cf8; }

.cal2-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); min-height: 78px;
  padding: 0.3rem 0.35rem; display: flex; flex-direction: column; gap: 2px;
}
.cal2-cell.cal2-out  { background: rgba(15,23,42,0.55); border-color: rgba(51,65,85,0.3); opacity: 0.4; }
.cal2-cell.cal2-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal2-cell.cal2-we   { background: rgba(129,140,248,0.04); }
.cal2-cell.cal2-hol  { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.2); }

.cal2-top { display: flex; flex-direction: column; gap: 1px; }
.cal2-date-row { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.cal2-num { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.cal2-cell.cal2-today .cal2-num { display: none; }
.cal2-today-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.cal2-wich-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cal2-hol-name {
  font-size: 0.56rem; color: #fca5a5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal2-info-bars { display: flex; gap: 1px; margin-top: 1px; }
.cal2-info-bar  { display: block; height: 3px; flex: 1; border-radius: 1px; min-width: 4px; }

.cal2-body { display: flex; flex-direction: column; gap: 2px; flex: 1; margin-top: 2px; }
.cal2-badge {
  display: flex; align-items: center; gap: 3px;
  border-radius: 4px; padding: 2px 5px;
  font-size: 0.63rem; font-weight: 600; color: #fff;
}
.cal2-badge-label { font-weight: 700; }
.cal2-badge-time  { font-weight: 400; opacity: 0.8; font-size: 0.58rem; }

/* Shift summary bar above calendar */
.cal2-summary {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem;
  padding: 0.5rem 0.875rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.cal2-summary-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; }
.cal2-summary-dot  { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.cal2-summary-name { color: var(--text); }
.cal2-summary-count { color: var(--muted); font-weight: 600; margin-left: 1px; }

/* ── ADMIN ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: transparent; border: none; color: var(--muted); padding: 0.55rem 1rem;
  font-size: 0.82rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s;
  white-space: nowrap; flex-shrink: 0; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: #a5b4fc; border-bottom-color: var(--accent); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 0.7rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.data-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.group-header { padding: 0.5rem 0.75rem; background: var(--surface2); font-size: 0.7rem;
  font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.5rem; }
.group-header .group-dot { width: 8px; height: 8px; border-radius: 2px; }

.color-swatch { width: 28px; height: 28px; border-radius: 5px; border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer; display: block; transition: transform 0.12s; flex-shrink: 0; }
.color-swatch:hover { transform: scale(1.1); }
.color-wrap { position: relative; display: inline-block; }
.color-wrap input[type="color"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.shift-preview { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
  border-radius: 4px; font-size: 0.7rem; font-weight: 700; color: #fff; }

.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; padding: 0.875rem; border-top: 1px solid var(--border); background: var(--surface2); }
.inline-form label.field { flex: 1; min-width: 100px; }
.inline-form input, .inline-form select { width: 100%; }

/* Holiday list */
.holiday-item { display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); gap: 0.75rem; }
.holiday-item:last-child { border-bottom: none; }
.holiday-date { font-weight: 600; font-size: 0.8rem; color: #fca5a5; min-width: 95px; }
.holiday-name { flex: 1; font-size: 0.85rem; }

/* ── MODAL ───────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex;
  align-items: center; justify-content: center; z-index: 200; padding: 1rem; backdrop-filter: blur(3px); }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 25px 60px rgba(0,0,0,0.7); }
.modal.sm { max-width: 440px; }
.modal.md { max-width: 560px; }
.modal.lg { max-width: 700px; }
.modal-head { display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-head h3 { font-size: 1rem; font-weight: 700; }
.modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: 0.5rem;
  padding: 0.875rem 1.25rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* Shift assign modal */
.assign-current { display: flex; flex-wrap: wrap; gap: 5px; min-height: 28px; }
.assign-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 10px;
  border-radius: 5px; font-size: 0.72rem; font-weight: 600; color: #fff; }
.assign-chip button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 0.85rem;
  line-height: 1; cursor: pointer; padding: 0 0 0 3px; transition: color 0.12s; }
.assign-chip button:hover { color: #fff; }
.assign-chip-vorl { border: 2px dashed rgba(255,255,255,.5) !important; }
.assign-chip button { opacity: .5; transition: opacity .15s; }
.assign-chip button:hover { opacity: 1; }
.assign-vorl-btn { font-weight: 800; font-size: .9rem !important; }
.assign-vorl-btn.active { color: #fbbf24 !important; opacity: 1 !important; }
.assign-note-btn svg { width: .85em; height: .85em; }
.assign-note-btn.active { color: #60a5fa !important; opacity: 1 !important; }
.assign-chip-wrap { margin-bottom: 4px; }
.assign-note-field { margin-top: 4px; }
.assign-note-ta { font-size: .75rem; resize: vertical; min-height: 2.5rem; }
.assign-empty { font-size: 0.78rem; color: var(--muted); font-style: italic; }

.shift-group-block { margin-bottom: 0.75rem; }
.shift-group-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 5px; }
.shift-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.shift-type-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 5px; font-size: 0.75rem; font-weight: 600; color: #fff; border: none;
  cursor: pointer; transition: opacity 0.12s, transform 0.1s; }
.shift-type-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.shift-type-btn:active { transform: scale(0.96); }

/* Rotation editor days */
.rot-day-row { display: flex; align-items: center; gap: 8px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.625rem; }
.rot-day-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); width: 46px; flex-shrink: 0; }
.rot-day-toggles { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.rot-toggle { padding: 3px 9px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); cursor: pointer; font-size: 0.72rem; font-weight: 600; transition: all 0.12s; }
.rot-toggle:hover { border-color: var(--muted); color: var(--text); }
.rot-toggle.on { color: #fff; }
.rot-day-status { font-size: 0.7rem; color: var(--muted); width: 30px; text-align: center; flex-shrink: 0; }

/* Apply rotation modal */
.rot-preview-days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rot-preview-chip { padding: 2px 7px; border-radius: 4px; font-size: 0.68rem; font-weight: 600; }
.rot-preview-chip.frei { background: var(--surface3); color: var(--muted); }
.rot-preview-chip.has { color: #fff; }

/* ── TOAST ───────────────────────────────────────────────────────────────── */
#toast-root { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 300; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.625rem 1rem; font-size: 0.82rem; opacity: 0; transform: translateY(8px);
  transition: all 0.25s; min-width: 200px; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok  { border-color: rgba(34,197,94,0.5); color: #86efac; }
.toast.err { border-color: rgba(239,68,68,0.5); color: #fca5a5; }
.toast.inf { border-color: rgba(99,102,241,0.5); color: #a5b4fc; }
.toast.toast-undo { display: flex; align-items: center; gap: 0.75rem; border-color: rgba(99,102,241,0.5); color: #c7d2fe; }
.toast-undo-btn { background: rgba(99,102,241,0.25); border: 1px solid rgba(99,102,241,0.4); color: #a5b4fc;
  border-radius: var(--radius-sm); padding: 0.3rem 0.7rem; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 0.3rem; transition: background 0.15s; white-space: nowrap; }
.toast-undo-btn:hover { background: rgba(99,102,241,0.4); }
.toast-undo-btn svg { width: 0.9em; height: 0.9em; }

/* ── HOME PAGE ───────────────────────────────────────────────────────────── */
.home-hero { padding: 1.25rem 0; }
.home-hero-greeting { font-size: 2rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; margin-bottom: .35rem; }
.home-hero-date { font-size: .9rem; color: var(--muted); font-weight: 400; }
.home-section { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.home-section-label { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.home-shift-bar { display: flex; align-items: center; gap: .85rem; padding: .5rem 0; }
.home-shift-accent { width: 4px; border-radius: 2px; flex-shrink: 0; align-self: stretch; min-height: 42px; }
.home-shift-info-name { font-size: 1rem; font-weight: 700; }
.home-shift-info-time { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.home-free-text { font-size: 1rem; font-weight: 600; color: #6ee7b7; }
.home-absent-text { font-size: .95rem; color: var(--muted); }
.home-member-row { display: flex; align-items: center; gap: .75rem; padding: .42rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.home-member-row:last-child { border-bottom: none; }
.home-member-name { min-width: 150px; font-weight: 500; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-chip { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: .73rem; font-weight: 700; color: #fff; }
.home-sgl-block { padding: .9rem 0; border-top: 1px solid var(--border); }
.home-sgl-block:first-child { border-top: none; }
.home-sgl-cat-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin-bottom: .6rem; }
.home-sgl-type-row { margin-bottom: .7rem; }
.home-sgl-type-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.home-sgl-sg-row { display: flex; gap: .5rem; padding: .18rem 0; }
.home-sgl-sg-label { font-size: .7rem; color: var(--muted); min-width: 56px; padding-top: 2px; }

/* ── MISC ────────────────────────────────────────────────────────────────── */
.section-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.empty-state { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.85rem; }
.divider { height: 1px; background: var(--border); }
.badge-role { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 0.68rem; font-weight: 600; }
.badge-role.admin { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.badge-role.sachgebietsleiter { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.badge-role.referatsleitung { background: rgba(56,189,248,0.18); color: #7dd3fc; }
.badge-role.schichtleiter { background: rgba(245,158,11,0.18); color: #fcd34d; }
.badge-role.mitarbeiter, .badge-role.employee { background: rgba(148,163,184,0.15); color: var(--muted); }
.badge-active { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.badge-active.on  { background: var(--green); }
.badge-active.off { background: var(--red); }

/* ── SCHICHTTAGE – Box-Rahmen: oben (Header), Seiten, unten (letzte Zeile) ── */
/* Header – oben + Seiten */
.dp-table thead th.sd-both,
.dp-table thead th.sd-l,
.dp-table thead th.sd-r,
.dp-table thead th.sd-mid { background: rgba(14,165,233,0.1); }
.dp-table thead th.sd-both { box-shadow: inset 2px 0 0 rgba(14,165,233,.5), inset -2px 0 0 rgba(14,165,233,.5), inset 0 2px 0 rgba(14,165,233,.5); }
.dp-table thead th.sd-l    { box-shadow: inset 2px 0 0 rgba(14,165,233,.5), inset 0 2px 0 rgba(14,165,233,.5); }
.dp-table thead th.sd-r    { box-shadow: inset -2px 0 0 rgba(14,165,233,.5), inset 0 2px 0 rgba(14,165,233,.5); }
.dp-table thead th.sd-mid  { box-shadow: inset 0 2px 0 rgba(14,165,233,.5); }
/* Body – nur Seiten + subtiler Hintergrund */
.dp-table tbody td.sd-both,
.dp-table tbody td.sd-l,
.dp-table tbody td.sd-r,
.dp-table tbody td.sd-mid { background: rgba(14,165,233,0.06); }
.dp-table tbody td.sd-both { box-shadow: inset 2px 0 0 rgba(14,165,233,.3), inset -2px 0 0 rgba(14,165,233,.3); }
.dp-table tbody td.sd-l    { box-shadow: inset 2px 0 0 rgba(14,165,233,.3); }
.dp-table tbody td.sd-r    { box-shadow: inset -2px 0 0 rgba(14,165,233,.3); }
/* Letzte Body-Zeile – unten + Seiten */
.dp-table tbody tr:last-child td.sd-both { box-shadow: inset 2px 0 0 rgba(14,165,233,.3), inset -2px 0 0 rgba(14,165,233,.3), inset 0 -2px 0 rgba(14,165,233,.3); }
.dp-table tbody tr:last-child td.sd-l    { box-shadow: inset 2px 0 0 rgba(14,165,233,.3), inset 0 -2px 0 rgba(14,165,233,.3); }
.dp-table tbody tr:last-child td.sd-r    { box-shadow: inset -2px 0 0 rgba(14,165,233,.3), inset 0 -2px 0 rgba(14,165,233,.3); }
.dp-table tbody tr:last-child td.sd-mid  { box-shadow: inset 0 -2px 0 rgba(14,165,233,.3); }
.cal-cell.shiftday-cal { box-shadow: inset 2px 0 0 rgba(14,165,233,.5), inset -2px 0 0 rgba(14,165,233,.5); }

/* ── GLEICHE ZEILENHÖHE – Wrapper-Div ────────────────────────────────────── */
.dp-table tbody tr  { height: 42px; }
.dp-table tbody td  { padding: 2px 3px; vertical-align: middle; }
.dp-td-name         { padding: 0.4rem 0.75rem !important; }
.dp-chips { min-height: 36px; height: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2px 0; }

/* ── 3-ZEILEN-HEADER ─────────────────────────────────────────────────────── */
/* Wichtig-Zeile */
.dp-tr-wichtig { height: 22px; }
.dp-th-wichtig { padding: 1px 4px; font-size: 0.62rem; font-weight: 700; text-align: left;
  vertical-align: middle; white-space: nowrap; overflow: hidden; background: var(--surface2);
  border-bottom: 1px solid var(--border); }
.dp-th-w-empty { background: var(--surface2); border-bottom: 1px solid var(--border); }
/* Info-Zeile */
.dp-tr-info { height: 6px; }
.dp-th-info { padding: 0; background: var(--surface2); }
.dp-th-info div { height: 5px; }
/* Extra name-Spalte in Hilfszeilen */
.dp-th-extra { background: var(--surface2) !important; border-bottom: 1px solid var(--border); position: sticky; left: 0; z-index: 3; }

/* ── PERIODEN ─────────────────────────────────────────────────────────────── */
.dp-period-bar { display: flex; gap: 2px; margin-top: 2px; justify-content: center; }
.dp-period-bar span { display: block; height: 3px; width: 100%; border-radius: 1px; min-width: 6px; }
.cal-period-bar { display: flex; gap: 2px; margin: 2px 0; }
.cal-period-bar span { display: block; height: 3px; flex: 1; border-radius: 1px; }

/* Wichtig-Label über dem Datum */
.dp-wichtig { font-size: 0.55rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40px; margin-bottom: 1px; }

/* Perioden-Legende unter der Tabelle */
.period-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.period-footer-item { display: flex; flex-direction: column; padding: 4px 8px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.8rem; gap: 1px; }

/* ── DRAG & DROP ──────────────────────────────────────────────────────────── */
.legend-drag { cursor: grab; transition: opacity 0.15s; user-select: none; }
.legend-drag:active { cursor: grabbing; }
.dp-chip-drag { cursor: grab; user-select: none; }
.dp-chip-drag:active { cursor: grabbing; }
.dp-cell.droptarget { position: relative; }
.dp-cell.drag-over { background: rgba(99,102,241,0.15) !important; outline: 2px dashed var(--accent); outline-offset: -2px; }

/* Trash zone */
.dp-trash-zone {
  display: none; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 0.5rem; padding: 0.45rem 1rem;
  border: 2px dashed rgba(239,68,68,0.3); border-radius: var(--radius-sm);
  color: rgba(239,68,68,0.5); font-size: 0.78rem; font-weight: 500;
  transition: all 0.15s; cursor: pointer; background: transparent;
}
.dp-trash-zone::before { content: '\1F5D1\FE0F'; font-size: 1rem; }
.dp-trash-zone.dp-trash-visible { display: flex; }
.dp-trash-zone.dp-trash-active {
  border-color: rgba(239,68,68,0.8); background: rgba(239,68,68,0.1);
  color: #fca5a5; transform: scale(1.01);
}

/* SG-Filter-Leiste */
.dp-sg-filter {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 0.5rem; padding: 0.35rem 0.75rem;
  background: var(--surface2); border-radius: 8px;
  border: 1px solid var(--border);
}
.dp-sg-cb {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--text); cursor: pointer;
  padding: 2px 8px; border-radius: 5px;
  border: 1px solid var(--border); background: var(--surface);
  user-select: none;
}
.dp-sg-cb input { accent-color: var(--accent); cursor: pointer; }

/* Schichtgruppen-Trennzeile */
.dp-group-sep-cell {
  padding: 4px 8px; font-size: 0.72rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--surface2); border-top: 1px solid var(--border);
}

/* Drag-over: grüner Rahmen wenn Kopieren (Strg/Shift) */
.dp-cell.drag-over-copy { background: rgba(16,185,129,0.12) !important; outline: 2px dashed #34d399; outline-offset: -2px; }

/* Spalten-Hover-Highlight */
.dp-table [data-col].col-hovered { background: rgba(99,102,241,0.07) !important; }
.dp-table th[data-col].col-hovered { background: rgba(99,102,241,0.12) !important; }

/* Ansichtsmenü */
.ansicht-menu {
  margin-bottom: 0.5rem; padding: 0.75rem 1rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; display: flex; flex-wrap: wrap; gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); position: relative;
}
.ansicht-section { display: flex; flex-direction: column; gap: 6px; }
.ansicht-section-label { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.ansicht-toggle { display: flex; gap: 4px; }
.ansicht-mode-btn {
  padding: 3px 14px; border-radius: 5px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--muted); font-size: 0.8rem; cursor: pointer;
}
.ansicht-mode-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ansicht-checks { display: flex; flex-wrap: wrap; gap: 5px; }
.ansicht-cb {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 0.78rem; color: var(--text); padding: 2px 8px;
  border-radius: 5px; border: 1px solid var(--border); background: var(--surface2);
  user-select: none;
}
.ansicht-cb input { accent-color: var(--accent); cursor: pointer; }

/* Pin button */
.ansicht-pin {
  position: absolute; bottom: 6px; right: 8px;
  background: none; border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 8px; cursor: pointer; color: var(--muted);
  font-size: 0.75rem; transition: all 0.15s;
}
.ansicht-pin:hover { color: var(--text); background: var(--surface2); }
.ansicht-pin.pinned { color: var(--accent); border-color: var(--accent); background: rgba(99,102,241,0.1); }

/* Multi-SG Bracket – ::after overlay hat immer Vorrang über Zellhintergründe */
.dp-cell { position: relative; }
.dp-cell.sd-brk-top::after,
.dp-cell.sd-brk-l::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
}
.dp-cell.sd-brk-top::after               { border-top:  2px solid var(--accent); }
.dp-cell.sd-brk-l::after                 { border-left: 2px solid var(--accent); }
.dp-cell.sd-brk-top.sd-brk-l::after      { border-top:  2px solid var(--accent); border-left: 2px solid var(--accent); }

/* Vortagesansicht (Snapshot) */
.dp-snap-bar { display:flex; align-items:center; gap:.35rem; flex-wrap:wrap; padding:.4rem .5rem; background:var(--surface2); border-radius:6px; margin-bottom:.5rem; }
.dp-snap-label { font-size:.78rem; color:var(--muted); margin-right:.25rem; }
.dp-snap-btn { font-size:.75rem; padding:.15rem .45rem; }
.dp-snap-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.dp-snap-banner { background:rgba(245,158,11,0.12); border:1px solid rgba(245,158,11,0.4); color:#f59e0b; border-radius:5px; padding:.35rem .75rem; font-size:.82rem; margin-bottom:.5rem; text-align:center; }

/* Wochen-Tabelle: breitere Zellen */
.dp-table-week .dp-th-day { min-width: 100px; }
.dp-table-week .dp-cell { min-width: 80px; }

/* Row hover highlight */
.dp-table tbody tr:hover td { background: rgba(255,255,255,0.025); }
.dp-table tbody tr:hover .dp-td-name { background: var(--surface); }

/* ── CAN-EDIT CHECKBOX ────────────────────────────────────────────────────── */
.can-edit-wrap { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.can-edit-wrap input { width: auto; }

/* ── STUNDENKONTO ─────────────────────────────────────────────────────────── */
.sk-user-bar {
  display: flex; align-items: center; gap: 0.75rem;
}
.sk-saldo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem 2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; max-width: 320px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.sk-saldo-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.sk-saldo-value { font-size: 2.4rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.35rem; }
.sk-saldo-sub   { font-size: 0.72rem; color: var(--muted); }
.sk-saldo-value.pos { color: #4ade80; }
.sk-saldo-value.neg { color: #f87171; }

.sk-table td, .sk-table th { font-variant-numeric: tabular-nums; }
.sk-col-month { min-width: 130px; font-weight: 600; }
.sk-col-num   { min-width: 90px; text-align: right; padding-right: 1rem !important; }
.sk-col-detail { width: 44px; text-align: center; }
.sk-pos { color: #4ade80; }
.sk-neg { color: #f87171; }
.sk-zero { color: var(--muted); }
.sk-forecast td { opacity: 0.6; font-style: italic; }
.sk-forecast-badge { font-size: .65rem; font-style: normal; background: var(--surface3); color: var(--muted); padding: .1rem .4rem; border-radius: 3px; margin-left: .3rem; vertical-align: middle; }

/* IST with progress bar */
.sk-ist-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sk-bar-bg   { width: 80px; height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.sk-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }

/* Detail row */
.sk-detail-row td { background: var(--bg) !important; border-bottom: 1px solid var(--border); }
.sk-detail-cell { padding: 0.5rem 1rem !important; }
.sk-shift-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 5px; font-size: 0.78rem;
  border-bottom: 1px solid rgba(51,65,85,0.3);
}
.sk-shift-row:last-child { border-bottom: none; }
.sk-shift-dot  { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sk-shift-date { color: var(--muted); min-width: 75px; font-size: 0.72rem; }
.sk-shift-name { flex: 1; }
.sk-shift-dur  { color: var(--muted); font-size: 0.72rem; min-width: 45px; text-align: right; }
.sk-shift-h    { min-width: 72px; text-align: right; font-weight: 600; font-size: 0.75rem; }
.sk-hol-badge  { display: inline-block; font-size: 0.58rem; padding: 1px 4px; border-radius: 3px;
  background: rgba(239,68,68,0.2); color: #fca5a5; vertical-align: middle; margin-left: 3px; }
.sk-detail-header {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 2px 10px; align-items: center; font-size: 0.7rem;
  padding: 4px 6px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.sk-detail-header span:nth-child(even) { font-weight: 700; font-size: 0.75rem; }

/* Adjustment section */
.sk-holiday-section { margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 4px; }
.sk-holiday-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; font-size: 0.78rem; border-bottom: 1px solid rgba(51,65,85,0.15); }
.sk-holiday-row:last-child { border-bottom: none; }
.sk-holiday-dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; flex-shrink: 0; }
.sk-adj-section { margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 4px; }
.sk-adj-title   { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px 4px; }
.sk-adj-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 5px; font-size: 0.78rem;
  border-bottom: 1px solid rgba(51,65,85,0.2);
}
.sk-adj-row:last-child { border-bottom: none; }
.sk-adj-dot   { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.sk-adj-date  { color: var(--muted); min-width: 75px; font-size: 0.72rem; flex-shrink: 0; }
.sk-adj-note  { flex: 1; }
.sk-adj-who   { color: var(--muted); font-size: 0.7rem; font-style: italic; flex-shrink: 0; }
.sk-adj-add-bar { padding: 6px 6px 2px; }
.sk-adj-add-bar .btn { font-size: 0.75rem; }

/* ── BADGE SPERRE ─────────────────────────────────────────────────────────── */
.badge-role.sperre { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-role.ferien { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-role.other  { background: rgba(148,163,184,0.15); color: var(--muted); }

/* ── BVA-ÜBERSICHT ───────────────────────────────────────────────────────── */
.bva-card { padding: 0; }
.bva-card .data-table { width: 100%; border-collapse: collapse; }
.bva-card .data-table td { padding: 0.5rem 1rem; font-size: 0.85rem; word-break: break-word; overflow-wrap: anywhere; }
.bva-card .data-table td:first-child { color: var(--muted); }
.bva-val { font-weight: 600; color: var(--text) !important; text-align: right; }
@media (max-width: 520px) {
  .bva-card .data-table td { display: block; padding: 0.15rem 0.5rem; font-size: 0.82rem; border-bottom: none; }
  .bva-card .data-table td:first-child { padding-top: 0.4rem; }
  .bva-val { text-align: left; padding-bottom: 0.4rem !important; border-bottom: 1px solid var(--border) !important; }
  .bva-card .data-table tr:last-child .bva-val { border-bottom: none !important; }
}

/* ── LEGENDE: Name/Kürzel responsive ─────────────────────────────────────── */
.leg-short { display: none; }
.leg-name  { display: inline; }
.ansicht-mode-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Rotation bar */
.dp-rot-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0.5rem 0.75rem; margin-bottom: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.82rem;
}
.dp-rot-bar.dp-rot-active {
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
}
.dp-rot-label { color: var(--muted); font-weight: 600; }
.dp-rot-picks { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }

/* Ghost chips (rotation preview) */
.dp-ghost-chip {
  opacity: 0.45;
  outline: 1px dashed rgba(255,255,255,0.4);
  outline-offset: -1px;
  pointer-events: none;
}
.dp-ghost-frei {
  background: var(--surface3) !important;
  color: var(--muted);
}

/* Stamp ghost (floating at cursor) */
.dp-stamp-ghost {
  position: fixed; z-index: 9999; pointer-events: none;
  display: flex; gap: 3px; opacity: 0.75;
}
.dp-stamp-ghost span {
  color: #fff; font-size: .65rem; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
}

/* Swipe animations */
@keyframes dp-slide-out-left  { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-40px); opacity: 0; } }
@keyframes dp-slide-out-right { from { transform: translateX(0); opacity: 1; } to { transform: translateX(40px); opacity: 0; } }
@keyframes dp-slide-in-left   { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes dp-slide-in-right  { from { transform: translateX(-40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.dp-swipe-out-left  { animation: dp-slide-out-left .15s ease-in forwards; }
.dp-swipe-out-right { animation: dp-slide-out-right .15s ease-in forwards; }
.dp-swipe-in-left   { animation: dp-slide-in-left .2s ease-out; }
.dp-swipe-in-right  { animation: dp-slide-in-right .2s ease-out; }

/* Birthday watermark */
.dp-bday-mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: .9rem; opacity: 0.15; pointer-events: none; white-space: nowrap;
  z-index: 0; line-height: 1;
}
.dp-cell { position: relative; }
.dp-cell .dp-chips { position: relative; z-index: 1; }

/* Team separator in Dienstplan */
.dp-team-sep { height: auto !important; }
.dp-team-sep-cell {
  padding: 1px 0.625rem !important; font-size: 0.65rem !important; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface2); line-height: 1.2 !important;
  border-bottom: 1px solid var(--border); position: sticky; left: 0;
}

/* Rotation mode cursor */
.dp-rot-mode .dp-cell { cursor: crosshair !important; }

/* ── MOBILE / PWA ─────────────────────────────────────────────────────────── */

/* Safe-area Insets (iPhone-Notch / Dynamic Island / Home-Indicator) */
.app-nav {
  padding-top: env(safe-area-inset-top);
  height: calc(56px + env(safe-area-inset-top));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
.page {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}
#toast-root {
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  right: max(1.25rem, env(safe-area-inset-right));
}

/* ── BOTTOM NAV & MOBILE MENU (hidden on desktop) ───────────────────────── */
.bottom-nav { display: none; }
.mobile-menu-overlay { display: none; }
.bnav-btn { background: none; border: none; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding: 6px 12px; font-size: 0.62rem; font-weight: 500;
  cursor: pointer; transition: color 0.15s; min-width: 56px; }
.bnav-btn .bnav-icon { font-size: 1.35rem; line-height: 1; }
.bnav-btn.active { color: var(--accent); }
.mm-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem;
  border-bottom: 1px solid var(--border); }
.mm-nav { display: flex; flex-direction: column; gap: 2px; padding: 0.5rem; }
.mm-item { background: none; border: none; color: var(--text); text-align: left; padding: 0.75rem 1rem;
  font-size: 0.9rem; border-radius: var(--radius-sm); cursor: pointer; width: 100%; }
.mm-item:active, .mm-item.active { background: var(--surface2); color: var(--accent); }
.mm-section { padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.mm-version { text-align: center; padding: 0.75rem 1rem 0.5rem; font-size: 0.65rem; color: var(--muted); opacity: 0.5; }

/* ─ User Dropdown ─────────────────────────────────────────────────────── */
.user-menu-wrap { position: relative; }
.user-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 100; min-width: 180px; overflow: hidden; }
.user-dropdown.open { display: block; }
.ud-item { display: block; width: 100%; background: none; border: none; color: var(--text); text-align: left; padding: 0.6rem 1rem; font-size: 0.85rem; cursor: pointer; }
.ud-item:hover { background: var(--surface2); }
.ud-version { padding: 0.3rem 1rem 0.4rem; font-size: 0.65rem; color: var(--muted); opacity: 0.45; border-top: 1px solid var(--border); }

/* ─ Feedback View ─────────────────────────────────────────────────────── */
.fb-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; border-radius: var(--radius-sm, 8px); background: var(--surface); border: 1px solid var(--border); margin-bottom: 0; cursor: pointer; }
.fb-item.fb-done { opacity: 0.5; }
.fb-item.fb-done.fb-is-expanded { opacity: 1; }
.fb-item.fb-is-expanded { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
.fb-item + .fb-item, .fb-expanded + .fb-item { margin-top: .5rem; }
.fb-item.fb-editing { cursor: default; }
.fb-votes { display: flex; flex-direction: row; align-items: center; gap: 4px; flex-shrink: 0; }
.fb-vote-btn { display: inline-flex; align-items: center; gap: 3px; background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer; padding: 3px 6px; border-radius: 12px; line-height: 1; font-size: 0.8rem; transition: all .15s; }
.fb-vote-btn svg { width: .85em; height: .85em; }
.fb-vote-btn:hover { color: var(--text); border-color: var(--text); background: var(--surface2); }
.fb-vote-up.active { color: #22c55e; border-color: #22c55e; background: rgba(34,197,94,.1); }
.fb-vote-dn.active { color: #ef4444; border-color: #ef4444; background: rgba(239,68,68,.1); }
.fb-vote-count { font-size: 0.72rem; font-weight: 600; }
.fb-content { flex: 1; min-width: 0; }
.fb-title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fb-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.fb-desc { font-size: 0.8rem; color: var(--muted); margin-top: 3px; word-break: break-word; }
.fb-meta { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.fb-empty { text-align: center; color: var(--muted); padding: 2rem; font-size: 0.85rem; }
.fb-badge { display: inline-block; font-size: 0.6rem; font-weight: 600; color: #fff; padding: 1px 6px; border-radius: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.3px; }
.fb-comment-count { display: inline-flex; align-items: center; gap: 2px; font-size: 0.7rem; color: var(--muted); margin-left: 4px; }
.fb-comment-count svg { width: .8em; height: .8em; }
.fb-expanded { background: var(--surface); border: 1px solid var(--border); border-top: 1px dashed var(--border); border-radius: 0 0 var(--radius-sm, 8px) var(--radius-sm, 8px); padding: .75rem; margin-bottom: .5rem; }
.fb-section-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; display: flex; align-items: center; gap: 4px; }
.fb-section-label svg { width: .85em; height: .85em; }
.fb-comments-section { margin-bottom: .75rem; }
.fb-comment { padding: .4rem .5rem; background: var(--surface2, rgba(255,255,255,.05)); border-radius: 6px; margin-bottom: 4px; }
.fb-comment-author { font-size: 0.7rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.fb-comment-text { font-size: 0.8rem; color: var(--text); word-break: break-word; }
.fb-comment-system { background: none; padding: .2rem 0; border-left: 2px solid var(--border); padding-left: .5rem; opacity: .7; }
.fb-comment-system .fb-comment-text { font-size: 0.75rem; font-style: italic; color: var(--muted); }
.fb-comment-time { font-size: 0.65rem; color: var(--muted); margin-left: 4px; }
.fb-ticket-nr { font-size: 0.65rem; font-weight: 700; color: var(--muted); font-family: monospace; letter-spacing: .5px; }
.fb-comment-form { display: flex; gap: 6px; margin-bottom: .75rem; }
.fb-comment-form .input { flex: 1; font-size: 0.8rem; padding: 4px 8px; }
.fb-comment-form .btn { padding: 4px 8px; display: flex; align-items: center; }
.fb-comment-notify-label { display: flex; align-items: center; font-size: 0.7rem !important; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.fb-close-note { font-size: 0.8rem; color: var(--text); background: var(--surface2, rgba(255,255,255,.05)); padding: .4rem .5rem; border-radius: 6px; margin-bottom: .75rem; border-left: 3px solid var(--accent); }
.fb-controls { margin-bottom: .75rem; }
.fb-control-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; font-size: 0.8rem; }
.fb-control-row label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.75rem; }
.fb-control-row select.input { font-size: 0.75rem; padding: 2px 6px; width: auto; }
.fb-notify-label { font-size: 0.75rem !important; color: var(--muted); cursor: pointer; }
.fb-notify-label input { margin-right: 3px; }
.fb-close-note-row { margin-top: .5rem; }
.fb-close-note-row .input { flex: 1; font-size: 0.8rem; padding: 4px 8px; width: 100%; }
.fb-expanded-actions { display: flex; gap: 6px; }
.fb-expanded-actions .btn { font-size: 0.75rem; display: inline-flex; align-items: center; gap: 4px; }
.fb-expanded-actions .btn svg { width: .8em; height: .8em; }
.fb-edit-form { width: 100%; }
.fb-edit-form .input { margin-bottom: .5rem; font-size: 0.85rem; }
.fb-edit-form textarea { resize: vertical; }
.fb-edit-actions { display: flex; gap: 6px; }
/* Nav notification bell (desktop) */
.nav-bell-wrap { position: relative; }
.nav-bell { position: relative; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.1rem; padding: 4px 6px; border-radius: 6px; line-height: 1; }
.nav-bell:hover { background: var(--surface2); }
.nav-bell.nav-bell-empty { color: var(--muted); opacity: .5; }
.nav-bell-badge { position: absolute; top: -2px; right: -2px; background: #ef4444; color: #fff; font-size: 0.55rem; font-weight: 700; min-width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
/* Bell dropdown */
.nav-bell-dropdown { display: none; position: absolute; top: calc(100% + 4px); right: 0; width: 300px; max-height: 350px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 200; padding: .5rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-bell-dropdown.open { display: block; }
.nbd-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.nbd-item { font-size: 0.8rem; color: var(--text); padding: .5rem .5rem .5rem .7rem; border-radius: 6px; margin-bottom: 2px; cursor: pointer; border-left: 3px solid transparent; }
.nbd-item-unread { border-left-color: var(--accent); background: rgba(99,102,241,.08); }
.nbd-item:hover { background: var(--surface2); }
.nbd-dismiss { position: absolute; top: 4px; right: 4px; background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px; line-height: 1; opacity: 0; transition: opacity .15s; }
.nbd-dismiss svg { width: 14px; height: 14px; }
.nbd-dismiss:hover { color: #ef4444; }
.nbd-item { position: relative; }
.nbd-item:hover .nbd-dismiss { opacity: 1; }
.nbd-time { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }
.nbd-empty { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 1rem .5rem; }
/* "Offene Tickets" pill for support */
.nav-open-tickets { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.nav-open-tickets:hover { color: var(--text); border-color: var(--accent); }
/* Mobile "Mehr" badge */
.bnav-badge { position: absolute; top: 2px; right: 8px; background: #ef4444; color: #fff; font-size: 0.55rem; font-weight: 700; min-width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
/* Mobile menu notification badge */
.mm-badge { display: inline-flex; align-items: center; justify-content: center; background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; margin-left: 6px; }
/* Notification card (inline on tickets tab) */
.fb-notif-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.fb-notif-item { font-size: 0.8rem; color: var(--text); padding: .4rem; border-radius: 6px; margin-bottom: 2px; }
.fb-notif-item:hover { background: var(--surface2); }
.fb-notif-time { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }

/* Ticket type toggle (create form) */
.fb-type-toggle { display: flex; gap: 4px; margin-bottom: .5rem; }
.fb-type-btn { flex: 1; padding: 6px 8px; font-size: 0.75rem; font-weight: 600; border: 2px solid var(--border); border-radius: 6px; background: none; color: var(--text); cursor: pointer; text-align: center; transition: all .15s; }
.fb-type-btn:hover { border-color: var(--type-color, var(--accent)); }
.fb-type-btn.active { border-color: var(--type-color, var(--accent)); background: var(--type-color, var(--accent)); color: #fff; }

/* Filter bar */
.fb-filter-bar { display: flex; gap: .5rem; margin-bottom: .75rem; align-items: center; flex-wrap: wrap; }
.fb-filter-types { display: flex; gap: 3px; }
.fb-filter-btn { padding: 4px 10px; font-size: 0.72rem; font-weight: 600; border: 1px solid var(--border); border-radius: 12px; background: none; color: var(--muted); cursor: pointer; transition: all .15s; }
.fb-filter-btn:hover { color: var(--text); border-color: var(--filter-color, var(--accent)); }
.fb-filter-btn.active { background: var(--filter-color, var(--accent)); color: #fff; border-color: var(--filter-color, var(--accent)); }
.fb-filter-right { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.fb-search-input { font-size: 0.8rem !important; padding: 4px 8px !important; width: 140px; }
@media (max-width: 600px) { .fb-filter-bar { flex-direction: column; align-items: stretch; } .fb-filter-right { margin-left: 0; } .fb-search-input { width: 100% !important; } }

/* ── ABOUT VIEW ───────────────────────────────────────────────────────────── */
.ab-rendered { line-height: 1.65; font-size: .88rem; }
.ab-rendered h2 { font-size: 1.15rem; font-weight: 700; margin: 1.2rem 0 .5rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.ab-rendered h3 { font-size: .98rem; font-weight: 700; margin: 1rem 0 .4rem; color: var(--accent); }
.ab-rendered h4 { font-size: .88rem; font-weight: 600; margin: .75rem 0 .3rem; }
.ab-rendered p { margin: .25rem 0; }
.ab-rendered li { margin: .15rem 0; padding-left: .3rem; list-style: disc inside; }
.ab-rendered hr { border: none; border-top: 1px solid var(--border); margin: .75rem 0; }
.ab-rendered strong { font-weight: 700; }
.ab-tag { font-size: .65rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-right: 2px; }
.ab-tag-NEU { background: rgba(74,222,128,.15); color: #4ade80; }
.ab-tag-FIX { background: rgba(248,113,113,.15); color: #f87171; }
.ab-tag-ÄNDERUNG { background: rgba(251,191,36,.15); color: #fbbf24; }
.ab-editor textarea { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: .6rem; }

/* ── DASHBOARD POSTS ──────────────────────────────────────────────────────── */
.dash-posts-section { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .75rem; }
.dash-post {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.dash-post:hover { border-color: rgba(99,130,220,.2); }
.dash-post-pinned { border-color: var(--accent); }
.dash-post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(150,170,220,.06); gap: .5rem; }
.dash-post-author { font-weight: 600; font-size: .82rem; display: flex; align-items: center; gap: 6px; }
.dash-post-meta { font-size: .7rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.dash-post-body { font-size: .85rem; line-height: 1.6; color: var(--text); }
.dash-post-body p { margin: .2rem 0; }
.dash-post-body strong { font-weight: 700; color: #c8d0e0; }
.dash-post-body li { list-style: disc inside; margin: .1rem 0; }
.dash-post-actions {
  display: flex; align-items: center; gap: 6px; margin-top: .5rem;
  padding-top: .4rem; border-top: 1px solid rgba(150,170,220,.06);
}
.dash-post-actions .btn {
  padding: 3px 8px; font-size: .72rem; opacity: .45;
  transition: opacity .15s, color .15s; display: inline-flex; align-items: center; gap: 3px;
}
.dash-post-actions .btn:hover { opacity: 1; }
.dash-post-actions .dash-btn-active { opacity: 1; color: #fbbf24; }
.dash-comment-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; line-height: 1; margin-left: 2px; }
.dash-post-actions .btn svg { width: .85em; height: .85em; }
/* dash-post-form removed — now .dash-compose inside .dash-toolbar */
.dash-md-hint { font-size: .68rem; color: var(--muted); opacity: .5; font-family: monospace; }
.dash-charcount { font-size: .7rem; color: var(--muted); opacity: .7; margin-left: auto; }
.dash-charcount-warn { color: var(--red); opacity: 1; font-weight: 600; }
.dash-scope-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; font-size: .8rem; }
.dash-scope-label { display: flex; align-items: center; gap: 4px; color: var(--text); cursor: pointer; white-space: nowrap; }
.dash-scope-label input[type="radio"],
.dash-scope-label input[type="checkbox"] {
  margin: 0; appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; border: 1.5px solid var(--muted);
  background: transparent; cursor: pointer; vertical-align: middle;
  transition: all .15s; flex-shrink: 0;
}
.dash-scope-label input[type="radio"] { border-radius: 50%; }
.dash-scope-label input[type="checkbox"] { border-radius: 3px; }
.dash-scope-label input[type="radio"]:checked {
  border-color: var(--accent); background: var(--accent);
  box-shadow: inset 0 0 0 2.5px var(--surface2, #273549);
}
.dash-scope-label input[type="checkbox"]:checked {
  border-color: var(--accent); background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 7.5L6 10L10.5 4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%; background-position: center;
}
.dpc-notify-label input[type="checkbox"] {
  margin: 0; appearance: none; -webkit-appearance: none;
  width: 13px; height: 13px; border: 1.5px solid var(--muted);
  background: transparent; border-radius: 3px; cursor: pointer;
  vertical-align: middle; transition: all .15s; flex-shrink: 0;
}
.dpc-notify-label input[type="checkbox"]:checked {
  border-color: var(--accent); background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 7.5L6 10L10.5 4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
}
.dash-sg-checks { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

/* Reactions */
.dash-reactions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.dash-react-pill {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: .78rem; cursor: pointer;
  color: var(--text); transition: all .15s; line-height: 1.4;
}
.dash-react-pill:hover { background: var(--surface2); border-color: var(--accent); transform: translateY(-1px); }
.dash-react-mine { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.35); }
.dash-react-add {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 13px; background: var(--surface); border: 1px dashed rgba(150,170,220,.15); font-size: .82rem;
  cursor: pointer; color: var(--muted); transition: all .15s; position: relative;
}
.dash-react-add:hover { background: var(--surface2); color: var(--text); border-style: solid; }
.dash-emoji-picker {
  position: absolute; bottom: 100%; left: 0; display: flex; gap: 2px; padding: 6px 8px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 50; margin-bottom: 4px; }
.dash-emoji-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 4px; border-radius: 4px;
  transition: background .1s; line-height: 1; }
.dash-emoji-btn:hover { background: var(--surface1); }

/* Schichtübersicht 3-Spalten-Grid — erbt home-section Styling */
.home-shift-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; margin-bottom: .75rem; }
.home-col { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.home-col-header { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.home-col-absent { margin-top: .5rem; padding-top: .4rem; border-top: 1px dashed var(--border); }
.home-col-absent-label { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .2rem; }
@media (max-width: 768px) {
  .home-shift-grid { grid-template-columns: 1fr; }
}
/* Glass-Theme: Spalten als Karten */
body.theme-glass .home-col {
  background: rgba(18, 28, 52, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 170, 220, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--glass-highlight);
}
body.theme-glass .home-col-header { color: var(--accent); opacity: .85; }
body.theme-glass.light .home-col {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
body.theme-glass.light .home-col-header { color: #3a5cb8; }

.ptr-indicator { position: fixed; top: 0; left: 50%; transform: translateX(-50%) translateY(-50px);
  background: var(--surface2); color: var(--muted); border: 1px solid var(--border);
  border-radius: 20px; padding: 8px 20px; font-size: 0.78rem; font-weight: 600;
  z-index: 400; opacity: 0; transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s; pointer-events: none;
  display: flex; align-items: center; gap: 8px; }
.ptr-indicator .ptr-spinner { display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: none; }
.ptr-indicator.ptr-loading { opacity: 1; transform: translateX(-50%) translateY(20px); }
.ptr-indicator.ptr-loading .ptr-spinner { animation: ptr-spin 0.6s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
.dp-row-expanded .dp-cell { padding: 6px 3px; }
.dp-row-expanded .dp-chips { display: flex; flex-direction: column; gap: 2px; }
.dp-row-expanded .dp-chip { font-size: 0.72rem; padding: 2px 7px; }
.dp-row-expanded .dp-td-name { white-space: normal; }
.dp-row-expanded .dp-name-text { white-space: normal; }

/* ── THEME PICKER (Profile Modal) ────────────────────────────────────────── */
.theme-picker { display: flex; gap: 10px; }
.theme-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--surface2); cursor: pointer; color: var(--text); font-size: 0.75rem;
  font-weight: 500; transition: all 0.2s; flex: 1;
}
.theme-opt:hover { border-color: var(--muted); }
.theme-opt.active { border-color: var(--accent); background: rgba(99,102,241,0.1); }
.theme-preview {
  width: 48px; height: 32px; border-radius: 6px; border: 1px solid var(--border);
}
.theme-prev-default { background: linear-gradient(135deg, #1e293b 50%, #273549 50%); border: 1px solid #334155 !important; }
.theme-prev-senior { background: linear-gradient(135deg, #000000 50%, #030326 50%); border: 2px solid #201c48 !important; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.theme-prev-glass {
  background: linear-gradient(135deg, #1a2540 0%, rgba(120,140,200,0.4) 50%, #2a3555 100%);
  border: 1px solid rgba(140,160,220,0.4) !important;
}
.mode-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--surface2); cursor: pointer; color: var(--text); font-size: 0.75rem;
  font-weight: 500; transition: all 0.2s; flex: 1;
}
.mode-opt:hover { border-color: var(--muted); }
.mode-opt.active { border-color: var(--accent); background: rgba(99,102,241,0.1); }
.mode-prev-dark { width: 48px; height: 32px; border-radius: 6px; border: 1px solid var(--border); background: linear-gradient(135deg, #0f172a 50%, #1e293b 50%); }
.mode-prev-light { width: 48px; height: 32px; border-radius: 6px; border: 1px solid var(--border); background: linear-gradient(135deg, #e8f0fa 50%, #ffffff 50%); }

/* ══════════════════════════════════════════════════════════════════════════
   LIQUID GLASS THEME
   Inspired by Apple's Liquid Glass — translucent surfaces, soft depth,
   refined highlights, organic radii.
   ══════════════════════════════════════════════════════════════════════════ */
/* Glass Dark (wins over body.light by source order, same specificity) */
body.theme-glass {
  --bg: #0c1220;
  --surface: rgba(20, 30, 55, 0.65);
  --surface2: rgba(35, 50, 80, 0.45);
  --surface3: rgba(50, 65, 95, 0.4);
  --border: rgba(150, 170, 220, 0.15);
  --text: #8a98b4;
  --muted: #687898;
  --accent: #6E8EF0;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 14px;
  --radius-sm: 8px;
  --glass-blur: 18px;
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.08);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  --glass-shadow-sm: 0 4px 16px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.15);
  --chip-border-top: 1px solid rgba(255,255,255,0.25);
  --chip-border-bottom: 1px solid rgba(0,0,0,0.15);
  --chip-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 2px 4px rgba(0,0,0,0.3),
    0 1px 1px rgba(0,0,0,0.2);
  --chip-shadow-hover:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 6px 16px rgba(0,0,0,0.35),
    0 2px 4px rgba(0,0,0,0.2);
  --chip-gradient: linear-gradient(to bottom, rgba(255,255,255,0.18) 0%, transparent 50%, rgba(0,0,0,0.08) 100%);
  --chip-text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  background: linear-gradient(160deg, #080e1a 0%, #0f1b35 30%, #141e3a 60%, #0d1528 100%);
  background-attachment: fixed;
}
/* Glass typography refinements */
body.theme-glass h1, body.theme-glass h2, body.theme-glass h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}
body.theme-glass .section-label,
body.theme-glass .ansicht-section-label,
body.theme-glass .home-section-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: .7rem;
}
body.theme-glass .modal-head h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.theme-glass .btn {
  font-weight: 500;
  letter-spacing: -0.005em;
}
body.theme-glass .nav-logo {
  font-weight: 500;
  letter-spacing: -0.02em;
}
body.theme-glass .tab-btn {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Glass Light (higher specificity than body.light) */
body.theme-glass.light {
  --bg: #e4edf8;
  --surface: rgba(255, 255, 255, 0.55);
  --surface2: rgba(230, 240, 255, 0.5);
  --surface3: rgba(215, 230, 250, 0.45);
  --border: rgba(100, 120, 180, 0.18);
  --text: #4a5a78;
  --muted: #6a7a96;
  --accent: #4a6cd4;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.5);
  --glass-shadow: 0 8px 32px rgba(80,100,140,0.15), 0 2px 8px rgba(80,100,140,0.1);
  --glass-shadow-sm: 0 4px 16px rgba(80,100,140,0.1), 0 1px 4px rgba(80,100,140,0.06);
  --chip-border-top: 1px solid rgba(255,255,255,0.35);
  --chip-border-bottom: 1px solid rgba(0,0,0,0.08);
  --chip-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 2px 4px rgba(80,100,160,0.2),
    0 1px 1px rgba(80,100,160,0.1);
  --chip-shadow-hover:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 6px 16px rgba(80,100,160,0.22),
    0 2px 4px rgba(80,100,160,0.12);
  --chip-gradient: linear-gradient(to bottom, rgba(255,255,255,0.28) 0%, transparent 45%, rgba(0,0,0,0.06) 100%);
  --chip-text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  background: linear-gradient(160deg, #d8e6f5 0%, #e4eef8 30%, #f0f5fc 60%, #dce8f4 100%);
  background-attachment: fixed;
}

/* ─ Navigation ─────────────────────────────────────────────────────────── */
body.theme-glass .app-nav {
  background: rgba(15, 22, 42, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(150, 170, 220, 0.1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), var(--glass-shadow-sm);
}
body.theme-glass .nav-btn {
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
body.theme-glass .nav-btn:hover {
  background: rgba(110, 142, 240, 0.1);
  color: var(--text);
}
body.theme-glass .nav-btn.active {
  background: rgba(110, 142, 240, 0.18);
  color: #a3bffa;
  box-shadow: var(--glass-highlight);
}
body.theme-glass .user-chip {
  background: rgba(35, 50, 80, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-highlight);
}

/* ─ Buttons ────────────────────────────────────────────────────────────── */
body.theme-glass .btn {
  background: rgba(35, 50, 80, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 170, 220, 0.15);
  box-shadow: var(--glass-highlight), 0 2px 8px rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  font-weight: 500;
}
body.theme-glass .btn:hover {
  background: rgba(50, 70, 110, 0.55);
  border-color: rgba(150, 170, 220, 0.25);
  box-shadow: var(--glass-highlight), 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-0.5px);
}
body.theme-glass .btn-primary {
  background: linear-gradient(135deg, #5B7FE8 0%, #7B9CF0 100%);
  border: 1px solid rgba(110, 142, 240, 0.4);
  box-shadow: var(--glass-highlight), 0 4px 20px rgba(110,142,240,0.3);
  color: #fff; font-weight: 600;
}
body.theme-glass .btn-primary:hover {
  background: linear-gradient(135deg, #6B8FF0 0%, #8BACF8 100%);
  border-color: rgba(130, 160, 250, 0.5);
  box-shadow: var(--glass-highlight), 0 6px 28px rgba(110,142,240,0.4);
  transform: translateY(-1px);
}
body.theme-glass .btn-sm {
  box-shadow: var(--glass-highlight), 0 1px 4px rgba(0,0,0,0.1);
}
body.theme-glass .btn-icon {
  background: rgba(35, 50, 80, 0.35);
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-highlight);
  transition: all 0.2s;
}
body.theme-glass .btn-icon:hover {
  background: rgba(50, 70, 110, 0.5);
  border-color: rgba(150, 170, 220, 0.25);
}
body.theme-glass .btn-danger {
  border-color: rgba(248,113,113,0.3);
  color: #fca5a5;
}
body.theme-glass .btn-danger:hover {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.4);
}

/* ─ Inputs ─────────────────────────────────────────────────────────────── */
body.theme-glass input,
body.theme-glass select,
body.theme-glass textarea {
  background: rgba(10, 18, 35, 0.6);
  border: 1px solid rgba(150, 170, 220, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
body.theme-glass input:focus,
body.theme-glass select:focus,
body.theme-glass textarea:focus {
  border-color: rgba(110, 142, 240, 0.5);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 3px rgba(110,142,240,0.15);
}
body.theme-glass select option { background: #1a2744; color: var(--text); }

/* ─ Login ──────────────────────────────────────────────────────────────── */
body.theme-glass .login-page {
  background: linear-gradient(160deg, #080e1a 0%, #121d3a 35%, #1a2850 65%, #0d1528 100%);
}
body.theme-glass .login-card {
  background: rgba(20, 30, 55, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: 22px;
  box-shadow: var(--glass-highlight), var(--glass-shadow), 0 0 80px rgba(110,142,240,0.06);
}

/* ─ Cards & Surfaces ───────────────────────────────────────────────────── */
body.theme-glass .data-card,
body.theme-glass .sk-card {
  background: rgba(20, 30, 55, 0.5);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(150, 170, 220, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
}
body.theme-glass .bva-card {
  background: rgba(20, 30, 55, 0.5);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(150, 170, 220, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
}

/* ─ Tabs ───────────────────────────────────────────────────────────────── */
body.theme-glass .tab-bar {
  background: rgba(15, 22, 42, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 170, 220, 0.08);
  border-radius: var(--radius);
  padding: 3px;
}
body.theme-glass .tab-btn {
  border-radius: calc(var(--radius) - 3px);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
body.theme-glass .tab-btn.active {
  background: rgba(110, 142, 240, 0.18);
  box-shadow: var(--glass-highlight), 0 2px 8px rgba(110,142,240,0.2);
}

/* ─ Tables ─────────────────────────────────────────────────────────────── */
body.theme-glass .data-table { border-collapse: separate; border-spacing: 0; }
body.theme-glass .data-table thead th {
  background: rgba(25, 38, 68, 0.6);
  border-color: rgba(150, 170, 220, 0.08);
  font-weight: 600;
  letter-spacing: 0.02em;
}
body.theme-glass .data-table tbody td {
  border-color: rgba(150, 170, 220, 0.06);
}
body.theme-glass .data-table tbody tr:hover td {
  background: rgba(110, 142, 240, 0.06);
}
body.theme-glass .group-header {
  background: rgba(25, 38, 68, 0.5);
  border-color: rgba(150, 170, 220, 0.08);
}

/* ─ Dienstplan ─────────────────────────────────────────────────────────── */
body.theme-glass .dp-wrap {
  background: rgba(18, 28, 52, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(150, 170, 220, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-sm);
  overflow: hidden;
}
body.theme-glass .dp-table thead th {
  background: rgba(22, 34, 62, 0.7);
  border-color: rgba(150, 170, 220, 0.08);
}
body.theme-glass .dp-th-extra {
  background: #131F39 !important;
}
body.theme-glass .dp-th-w-empty { background: #131F39; }
body.theme-glass .dp-table tbody .dp-td-saldo { background: #131F39; }
body.theme-glass .dp-table thead .dp-th-saldo { background: #131F39; }
body.theme-glass .dp-table tbody td {
  border-color: rgba(150, 170, 220, 0.06);
}
body.theme-glass .dp-th-name {
  background: #131F39;
}
body.theme-glass .dp-td-name {
  background: #131F39;
  border-color: rgba(150, 170, 220, 0.08);
}
body.theme-glass .dp-table tbody tr:hover td {
  background: rgba(110, 142, 240, 0.05);
}
body.theme-glass .dp-table tbody tr:hover .dp-td-name {
  background: rgba(30, 42, 72, 0.85);
}
body.theme-glass .dp-chip {
  border-radius: 5px;
  font-weight: 500;
  border-top: var(--chip-border-top);
  border-bottom: var(--chip-border-bottom);
  box-shadow: var(--chip-shadow);
  background-image: var(--chip-gradient);
  text-shadow: var(--chip-text-shadow);
}
body.theme-glass .dp-th-day.dp-today {
  background: rgba(110, 142, 240, 0.2);
  box-shadow: inset 0 -3px 0 var(--accent);
}
body.theme-glass .dp-group-sep-cell {
  background: rgba(110, 142, 240, 0.08);
  color: #8899cc;
  border-color: rgba(150, 170, 220, 0.06);
}
body.theme-glass .dp-team-sep-cell {
  background: rgba(110, 142, 240, 0.05);
  color: var(--muted);
}

/* ─ Ansichts-/Filtermenü ──────────────────────────────────────────────── */
body.theme-glass .ansicht-menu {
  background: rgba(18, 28, 52, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
body.theme-glass .ansicht-mode-btn {
  background: rgba(35, 50, 80, 0.4);
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
body.theme-glass .ansicht-mode-btn.active {
  background: linear-gradient(135deg, #5B7FE8 0%, #7B9CF0 100%);
  border-color: rgba(110, 142, 240, 0.4);
  box-shadow: 0 2px 12px rgba(110,142,240,0.3);
  color: #fff;
}
body.theme-glass .ansicht-cb {
  background: rgba(35, 50, 80, 0.35);
  border: 1px solid rgba(150, 170, 220, 0.1);
  border-radius: var(--radius-sm);
}
body.theme-glass .ansicht-pin {
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: var(--radius-sm);
}
body.theme-glass .ansicht-pin.pinned {
  color: var(--accent);
  border-color: rgba(110, 142, 240, 0.3);
  background: rgba(110, 142, 240, 0.1);
}

/* ─ Modals ─────────────────────────────────────────────────────────────── */
body.theme-glass .modal-overlay {
  background: rgba(5, 10, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.theme-glass .modal {
  background: rgba(18, 28, 52, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: 18px;
  box-shadow: var(--glass-highlight), 0 32px 80px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.1);
}
body.theme-glass .modal-head {
  border-bottom: 1px solid rgba(150, 170, 220, 0.08);
}
body.theme-glass .modal-foot {
  border-top: 1px solid rgba(150, 170, 220, 0.08);
}
body.theme-glass .divider {
  border-color: rgba(150, 170, 220, 0.08);
}

/* ─ Toasts ─────────────────────────────────────────────────────────────── */
body.theme-glass .toast {
  background: rgba(18, 28, 52, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(150, 170, 220, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
body.theme-glass .toast.ok {
  border-color: rgba(52, 211, 153, 0.35);
}
body.theme-glass .toast.err {
  border-color: rgba(248, 113, 113, 0.35);
}
body.theme-glass .nav-bell-dropdown {
  background: rgba(20, 30, 55, 0.88);
}
body.theme-glass.light .nav-bell-dropdown {
  background: rgba(255, 255, 255, 0.92);
}
body.theme-glass.light .user-dropdown {
  background: rgba(255, 255, 255, 0.7);
}
body.theme-glass .toast-undo-btn {
  background: rgba(99,102,241,0.2);
  border-color: rgba(150,170,220,0.2);
}

/* ─ Stundenkonto ───────────────────────────────────────────────────────── */
body.theme-glass .sk-saldo-card {
  background: rgba(18, 28, 52, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(150, 170, 220, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
}
body.theme-glass .sk-detail-header {
  background: rgba(25, 38, 68, 0.4);
  border-radius: var(--radius-sm);
}

/* ─ Badges ─────────────────────────────────────────────────────────────── */
body.theme-glass .badge-role {
  backdrop-filter: blur(6px);
  border-radius: 5px;
}
body.theme-glass .badge-role.admin {
  background: rgba(110, 142, 240, 0.15);
  color: #a3bffa;
}
body.theme-glass .badge-role.sachgebietsleiter {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}
body.theme-glass .badge-role.schichtleiter {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

/* ─ Loading Bar ────────────────────────────────────────────────────────── */
body.theme-glass #sp-loading-bar {
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  height: 2px;
}

/* ─ Home (Glass Dark) ──────────────────────────────────────────────────── */
body.theme-glass .home-hero {
  background: rgba(18, 28, 52, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(150, 170, 220, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: .5rem;
}
body.theme-glass .home-hero-greeting {
  background: linear-gradient(135deg, #8a9ab8 0%, #7090d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.theme-glass .home-section {
  background: rgba(18, 28, 52, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 170, 220, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .5rem;
  box-shadow: var(--glass-highlight);
}
body.theme-glass .home-section-label {
  color: var(--accent);
  opacity: .85;
}
body.theme-glass .home-shift-bar {
  background: rgba(110, 142, 240, 0.08);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
}
body.theme-glass .home-shift-accent {
  box-shadow: 0 0 8px currentColor;
}
body.theme-glass .home-member-row {
  border-bottom-color: rgba(150, 170, 220, 0.06);
}
body.theme-glass .home-free-text {
  color: var(--green);
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}
body.theme-glass .home-chip {
  border-radius: 5px;
  border-top: var(--chip-border-top);
  border-bottom: var(--chip-border-bottom);
  box-shadow: var(--chip-shadow);
  background-image: var(--chip-gradient);
  text-shadow: var(--chip-text-shadow);
}
body.theme-glass .home-sgl-block {
  border-top-color: rgba(150, 170, 220, 0.08);
}
body.theme-glass .home-sgl-sg-label {
  color: var(--accent);
  opacity: .7;
}

/* ─ Bottom Nav (Mobile) ────────────────────────────────────────────────── */
body.theme-glass .bottom-nav {
  background: rgba(12, 18, 32, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(150, 170, 220, 0.08);
}
body.theme-glass .bnav-btn.active {
  color: var(--accent);
}

/* ─ Mobile Menu ────────────────────────────────────────────────────────── */
body.theme-glass .mobile-menu {
  background: rgba(15, 22, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(150, 170, 220, 0.1);
}

/* ─ Pull to Refresh ────────────────────────────────────────────────────── */
body.theme-glass .ptr-indicator {
  background: rgba(18, 28, 52, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(150, 170, 220, 0.12);
  box-shadow: var(--glass-shadow-sm);
}
body.theme-glass .ptr-indicator .ptr-spinner {
  border-color: rgba(150, 170, 220, 0.2);
  border-top-color: var(--accent);
}

/* ─ Simulation Banner ──────────────────────────────────────────────────── */
body.theme-glass .sim-banner {
  background: rgba(251, 191, 36, 0.85);
  backdrop-filter: blur(8px);
}

/* ─ Scrollbar ──────────────────────────────────────────────────────────── */
body.theme-glass ::-webkit-scrollbar { width: 6px; height: 6px; }
body.theme-glass ::-webkit-scrollbar-track { background: transparent; }
body.theme-glass ::-webkit-scrollbar-thumb {
  background: rgba(150, 170, 220, 0.15);
  border-radius: 3px;
}
body.theme-glass ::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 170, 220, 0.25);
}

/* ─ Login Hint ─────────────────────────────────────────────────────────── */
body.theme-glass .login-hint {
  background: rgba(25, 38, 68, 0.4);
  border: 1px solid rgba(150, 170, 220, 0.08);
  border-radius: var(--radius-sm);
}

/* ─ Login Error ────────────────────────────────────────────────────────── */
body.theme-glass .login-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-sm);
}

/* ─ Dienstplan Legend ──────────────────────────────────────────────────── */
body.theme-glass .dp-legend {
  background: rgba(18, 28, 52, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 170, 220, 0.08);
  border-radius: var(--radius);
}

/* ─ Snapshot Banner ────────────────────────────────────────────────────── */
body.theme-glass .dp-snap-banner {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-sm);
}

/* ─ Shift Type Buttons (Panel) ─────────────────────────────────────────── */
body.theme-glass .shift-type-btn {
  border: none;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 5px;
  border-top: var(--chip-border-top);
  border-bottom: var(--chip-border-bottom);
  box-shadow: var(--chip-shadow);
  background-image: var(--chip-gradient);
  text-shadow: var(--chip-text-shadow);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
body.theme-glass .shift-type-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: var(--chip-shadow-hover);
}

/* ─ Selection glow on focused elements ─────────────────────────────────── */
body.theme-glass *:focus-visible {
  outline: 2px solid rgba(110, 142, 240, 0.5);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   LIQUID GLASS – LIGHT MODE component overrides
   ══════════════════════════════════════════════════════════════════════════ */

/* ─ Navigation (Light Glass) ──────────────────────────────────────────── */
body.theme-glass.light .app-nav {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(100, 130, 200, 0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 4px 16px rgba(80,100,160,0.08);
}
body.theme-glass.light .nav-btn { color: #4a5a7a; }
body.theme-glass.light .nav-btn:hover { background: rgba(74,108,212,0.08); color: #3a5cb8; }
body.theme-glass.light .nav-btn.active {
  background: rgba(74,108,212,0.12);
  color: #2a4caa;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
body.theme-glass.light .nav-logo { color: #2a4caa; }
body.theme-glass.light .user-chip {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(100,130,200,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  color: #3a4a6a;
}

/* ─ Buttons (Light Glass) ─────────────────────────────────────────────── */
body.theme-glass.light .btn {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(100,130,200,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 8px rgba(80,100,160,0.08);
  color: #2a3a5a;
}
body.theme-glass.light .btn:hover {
  background: rgba(255,255,255,0.75);
  border-color: rgba(100,130,200,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 16px rgba(80,100,160,0.12);
  transform: translateY(-0.5px);
}
body.theme-glass.light .btn-primary {
  background: linear-gradient(135deg, #4a6cd4 0%, #6384e0 100%);
  border: 1px solid rgba(74,108,212,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 20px rgba(74,108,212,0.25);
  color: #fff;
}
body.theme-glass.light .btn-primary:hover {
  background: linear-gradient(135deg, #5a7ce0 0%, #7394ea 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 28px rgba(74,108,212,0.3);
  transform: translateY(-1px);
}
body.theme-glass.light .btn-icon {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(100,130,200,0.12);
  color: #4a5a7a;
}
body.theme-glass.light .btn-icon:hover {
  background: rgba(255,255,255,0.65);
  border-color: rgba(100,130,200,0.22);
  color: #2a4caa;
}
body.theme-glass.light .btn-danger { color: #dc2626; border-color: rgba(220,38,38,0.2); }
body.theme-glass.light .btn-danger:hover { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.3); }

/* ─ Inputs (Light Glass) ──────────────────────────────────────────────── */
body.theme-glass.light input,
body.theme-glass.light select,
body.theme-glass.light textarea {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(100,130,200,0.18);
  box-shadow: inset 0 2px 4px rgba(80,100,160,0.05);
  color: #1a2440;
}
body.theme-glass.light input:focus,
body.theme-glass.light select:focus,
body.theme-glass.light textarea:focus {
  border-color: rgba(74,108,212,0.5);
  box-shadow: inset 0 2px 4px rgba(80,100,160,0.03), 0 0 0 3px rgba(74,108,212,0.1);
}
body.theme-glass.light select option { background: #fff; color: #1a2440; }
body.theme-glass.light input::placeholder { color: #8a9abb; }

/* ─ Login (Light Glass) ───────────────────────────────────────────────── */
body.theme-glass.light .login-page {
  background: linear-gradient(160deg, #c4d8f0 0%, #d8e8f8 30%, #e8f0fc 60%, #d0e0f2 100%);
}
body.theme-glass.light .login-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 32px rgba(80,100,160,0.15), 0 0 80px rgba(74,108,212,0.05);
}
body.theme-glass.light .login-hint {
  background: rgba(74,108,212,0.06);
  border: 1px solid rgba(74,108,212,0.12);
  color: #4a5a7a;
}
body.theme-glass.light .login-error {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.15);
  color: #b91c1c;
}

/* ─ Cards & Surfaces (Light Glass) ────────────────────────────────────── */
body.theme-glass.light .data-card,
body.theme-glass.light .sk-card {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--glass-shadow-sm);
}
body.theme-glass.light .bva-card {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--glass-shadow-sm);
}

/* ─ Tabs (Light Glass) ────────────────────────────────────────────────── */
body.theme-glass.light .tab-bar {
  background: rgba(240,245,252,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(100,130,200,0.1);
}
body.theme-glass.light .tab-btn { color: #5a6a8a; }
body.theme-glass.light .tab-btn:hover { color: #3a5cb8; }
body.theme-glass.light .tab-btn.active {
  background: rgba(255,255,255,0.75);
  color: #2a4caa;
  box-shadow: 0 2px 8px rgba(80,100,160,0.08);
}

/* ─ Tables (Light Glass) ──────────────────────────────────────────────── */
body.theme-glass.light .data-table { border-collapse: separate; border-spacing: 0; }
body.theme-glass.light .data-table thead th {
  background: rgba(230,240,255,0.55);
  color: #3a4a6a;
  border-bottom: 1px solid rgba(100,130,200,0.12);
}
body.theme-glass.light .data-table tbody td {
  border-bottom: 1px solid rgba(100,130,200,0.06);
}
body.theme-glass.light .data-table tbody tr:hover td {
  background: rgba(74,108,212,0.04);
}

/* ─ Dienstplan (Light Glass) ──────────────────────────────────────────── */
body.theme-glass.light .dp-wrap {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), var(--glass-shadow-sm);
}
body.theme-glass.light .dp-table thead th {
  background: rgba(230,240,255,0.5);
  color: #3a4a6a;
}
body.theme-glass.light .dp-th-extra {
  background: #E6F0FD !important;
}
body.theme-glass.light .dp-th-w-empty { background: #E6F0FD; }
body.theme-glass.light .dp-table tbody .dp-td-saldo { background: #E6F0FD; }
body.theme-glass.light .dp-table thead .dp-th-saldo { background: #E6F0FD; }
body.theme-glass.light .dp-table tbody td {
  border-color: rgba(100,130,200,0.06);
}
body.theme-glass.light .dp-table tbody tr:hover td {
  background: rgba(74,108,212,0.04);
}
body.theme-glass.light .dp-table tbody tr:hover .dp-td-name {
  background: rgba(74,108,212,0.06);
}
body.theme-glass.light .dp-th-name {
  background: #E6F0FD;
}
body.theme-glass.light .dp-td-name {
  background: #E6F0FD;
  border-right: 1px solid rgba(100,130,200,0.1);
}
body.theme-glass.light .dp-chip {
  border-top: var(--chip-border-top);
  border-bottom: var(--chip-border-bottom);
  box-shadow: var(--chip-shadow);
  background-image: var(--chip-gradient);
  text-shadow: var(--chip-text-shadow);
}
body.theme-glass.light .dp-th-day.dp-today {
  background: rgba(74,108,212,0.12);
  color: #2a4caa;
}
body.theme-glass.light .dp-group-sep-cell {
  background: rgba(230,240,255,0.6);
  color: #2a4caa;
  border-bottom: 1px solid rgba(100,130,200,0.12);
}
body.theme-glass.light .dp-team-sep-cell {
  background: rgba(215,230,250,0.45);
  color: #4a5a7a;
}
body.theme-glass.light .dp-legend {
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(100,130,200,0.1);
}
body.theme-glass.light .dp-snap-banner {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(202,138,4,0.2);
  color: #92400e;
}

/* ─ Ansicht-Menu (Light Glass) ────────────────────────────────────────── */
body.theme-glass.light .ansicht-menu {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
}
body.theme-glass.light .ansicht-mode-btn {
  color: #4a5a7a;
  border: 1px solid rgba(100,130,200,0.12);
}
body.theme-glass.light .ansicht-mode-btn.active {
  background: rgba(74,108,212,0.12);
  color: #2a4caa;
  border-color: rgba(74,108,212,0.25);
}
body.theme-glass.light .ansicht-cb { accent-color: #4a6cd4; }
body.theme-glass.light .ansicht-pin { color: #8a9abb; }
body.theme-glass.light .ansicht-pin.pinned { color: #4a6cd4; }

/* ─ Modals (Light Glass) ──────────────────────────────────────────────── */
body.theme-glass.light .modal-overlay { background: rgba(150,170,210,0.35); backdrop-filter: blur(4px); }
body.theme-glass.light .modal {
  background: rgba(248,250,255,0.82);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--glass-shadow);
}
body.theme-glass.light .modal-head {
  border-bottom: 1px solid rgba(100,130,200,0.1);
  color: #1a2440;
}
body.theme-glass.light .modal-foot {
  border-top: 1px solid rgba(100,130,200,0.1);
}
body.theme-glass.light .divider {
  background: rgba(100,130,200,0.1);
}

/* ─ Toast (Light Glass) ───────────────────────────────────────────────── */
body.theme-glass.light .toast {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
  color: #1a2440;
  box-shadow: 0 4px 20px rgba(80,100,160,0.12);
}
body.theme-glass.light .toast.ok { border-left: 3px solid #16a34a; }
body.theme-glass.light .toast.err { border-left: 3px solid #dc2626; }
body.theme-glass.light .toast.toast-undo { color: #312e81; }
body.theme-glass.light .toast-undo-btn { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); color: #4338ca; }
body.theme-glass.light .toast-undo-btn:hover { background: rgba(99,102,241,0.22); }

/* ─ Stundenkonto (Light Glass) ────────────────────────────────────────── */
body.theme-glass.light .sk-saldo-card {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--glass-shadow-sm);
}
body.theme-glass.light .sk-detail-header {
  background: rgba(230,240,255,0.4);
  border: 1px solid rgba(100,130,200,0.1);
}

/* ─ Home (Light Glass) ────────────────────────────────────────────────── */
body.theme-glass.light .home-hero {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--glass-shadow-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: .5rem;
}
body.theme-glass.light .home-hero-greeting {
  background: linear-gradient(135deg, #5a6a88 0%, #5a7ab8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.theme-glass.light .home-section {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
body.theme-glass.light .home-section-label { color: #3a5cb8; }
body.theme-glass.light .home-shift-bar {
  background: rgba(74,108,212,0.06);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
}
body.theme-glass.light .home-member-row {
  border-bottom-color: rgba(100,130,200,0.08);
}
body.theme-glass.light .home-free-text {
  color: #16a34a;
}
body.theme-glass.light .home-chip {
  border-top: var(--chip-border-top);
  border-bottom: var(--chip-border-bottom);
  box-shadow: var(--chip-shadow);
  background-image: var(--chip-gradient);
  text-shadow: var(--chip-text-shadow);
}
body.theme-glass.light .home-sgl-block {
  border-top-color: rgba(100,130,200,0.1);
}

/* ─ Bottom Nav (Light Glass) ──────────────────────────────────────────── */
body.theme-glass.light .bottom-nav {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 -2px 12px rgba(80,100,160,0.06);
}
body.theme-glass.light .bnav-btn { color: #6a7a9a; }
body.theme-glass.light .bnav-btn.active { color: #2a4caa; }

/* ─ Mobile Menu (Light Glass) ─────────────────────────────────────────── */
body.theme-glass.light .mobile-menu {
  background: rgba(248,250,255,0.88);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-top: 1px solid rgba(255,255,255,0.5);
}

/* ─ Misc (Light Glass) ────────────────────────────────────────────────── */
body.theme-glass.light .sim-banner {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(202,138,4,0.2);
  color: #92400e;
}
body.theme-glass.light .ptr-indicator {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.4);
}
body.theme-glass.light .ptr-indicator .ptr-spinner {
  border-color: rgba(100,130,200,0.2);
  border-top-color: #4a6cd4;
}
body.theme-glass.light ::-webkit-scrollbar-thumb { background: rgba(100,120,180,0.18); }
body.theme-glass.light ::-webkit-scrollbar-thumb:hover { background: rgba(100,120,180,0.3); }

/* ─ Badges (Light Glass) ──────────────────────────────────────────────── */
body.theme-glass.light .badge-role { background: rgba(74,108,212,0.06); color: #4a5a7a; }
body.theme-glass.light .badge-role.admin { background: rgba(74,108,212,0.1); color: #2a4caa; }
body.theme-glass.light .badge-role.sachgebietsleiter { background: rgba(22,163,74,0.08); color: #15803d; }
body.theme-glass.light .badge-role.schichtleiter { background: rgba(217,119,6,0.08); color: #b45309; }
body.theme-glass.light #sp-loading-bar { background: linear-gradient(90deg, #4a6cd4, #6384e0, #4a6cd4); }
body.theme-glass.light .group-header {
  background: rgba(230,240,255,0.45);
  border: 1px solid rgba(100,130,200,0.1);
  color: #3a4a6a;
}

/* ─ Shift Type Buttons (Light Glass) ──────────────────────────────────── */
body.theme-glass.light .shift-type-btn {
  border: none;
  box-shadow: var(--chip-shadow);
  background-image: var(--chip-gradient);
  text-shadow: var(--chip-text-shadow);
}
body.theme-glass.light .shift-type-btn:hover {
  opacity: 1;
  box-shadow: var(--chip-shadow-hover);
}

/* ─ Focus (Light Glass) ───────────────────────────────────────────────── */
body.theme-glass.light *:focus-visible {
  outline: 2px solid rgba(74,108,212,0.45);
}

@media (max-width: 640px) {
  /* Top-Nav: nur Logo auf Mobile */
  .app-nav {
    padding-top: env(safe-area-inset-top);
    height: calc(24px + env(safe-area-inset-top));
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    gap: 0.35rem;
    justify-content: center;
  }
  .nav-logo { font-size: 0.82rem; gap: 0.35rem; margin-right: 0; flex-shrink: 0; display: none; }
  .nav-logo span { display: none; }
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .sim-banner { font-size: 0.72rem; padding: 3px 8px; }

  /* Bottom Navigation */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    z-index: 100; justify-content: space-around; align-items: stretch;
  }
  .bnav-btn:active { background: var(--surface2); }

  /* Mobile-Menü Overlay */
  .mobile-menu-overlay.open {
    display: flex; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 250; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(2px);
  }
  .mobile-menu {
    background: var(--surface); width: 100%; max-height: 70vh;
    border-radius: 18px 18px 0 0; overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
    animation: mm-slide-up 0.25s ease-out;
  }
  @keyframes mm-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

  /* Seitenabstand + Platz für Bottom-Nav */
  .page { padding: 0.875rem 0.875rem calc(68px + env(safe-area-inset-bottom)); }
  .page-header { margin-bottom: 1rem; }

  /* Touch-Targets: mindestens 44px */
  .btn       { min-height: 44px; }
  .btn-sm    { min-height: 40px; }
  .btn-icon  { width: 40px; height: 40px; }
  .tab-btn   { padding: 0.6rem 0.75rem; min-height: 44px; }

  /* :active Feedback */
  .btn:active, .btn-sm:active { transform: scale(0.97); opacity: 0.85; }
  .tab-btn:active { background: var(--surface2); }

  /* Inputs: 16px (verhindert iOS Auto-Zoom) – nur Text-Inputs, nicht Radio/Checkbox */
  input:not([type="radio"]):not([type="checkbox"]), select, textarea { font-size: 16px !important; }

  /* Modals: Bottom-Sheet auf Mobile */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal.sm, .modal.md, .modal.lg {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 95vh;
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Tabellen-Wrapper scrollbar */
  .data-card { overflow-x: auto; }
  .data-table { min-width: 480px; }

  /* Formulare: 1 Spalte */
  .form-row        { grid-template-columns: 1fr; }
  .form-row.three  { grid-template-columns: 1fr; }

  /* Home-Seite */
  .home-hero-greeting { font-size: 1.6rem; }
  .home-member-name   { min-width: 100px; }

  /* Legende: nur Kürzel auf Mobile */
  .leg-name  { display: none; }
  .leg-short { display: inline; }

  /* Monat-Nav auf Mobile kompakt */
  .month-label { font-size: 0.85rem; min-width: 100px; }

  /* Ansichtsmenü (Filter): vertikal stapeln */
  .ansicht-menu {
    flex-direction: column; gap: 0.75rem; padding: 0.75rem 0.875rem 2.5rem;
  }
  .ansicht-section { gap: 4px; }
  .ansicht-toggle { flex-wrap: wrap; }
  .ansicht-mode-btn { font-size: 0.75rem; padding: 4px 10px; min-height: 36px; }
  .ansicht-cb { font-size: 0.75rem; padding: 3px 8px; }

  /* Dienstplan Toolbar: umbrechen */
  .dp-toolbar { gap: 4px; }
  .dp-toolbar-nav { flex: 1 1 auto; }
  .dp-toolbar-actions { gap: 4px; }
  .show-mobile { display: inline; }
  .hide-mobile { display: none; }

  /* Login-Karte */
  .login-card { padding: 1.75rem 1.25rem; border-radius: 14px; }

  /* Dienstplan: kompaktere Zellen */
  .dp-th-name, .dp-td-name { width: 80px; min-width: 65px; max-width: 80px; font-size: 0.72rem; }
  .dp-td-name { cursor: pointer; }
  .dp-th-day { min-width: 36px; width: 36px; }
  .dp-chip { font-size: 0.6rem; padding: 1px 4px; margin: 0.5px; }

  /* Stundenkonto-Karte */
  .sk-saldo-card { padding: 1.25rem 1rem; }
  .sk-saldo-value { font-size: 2rem; }

  /* Inline-Form: Stack */
  .inline-form { flex-direction: column; }
  .inline-form label.field { min-width: unset; width: 100%; }

  /* Toast über Bottom-Nav */
  #toast-root {
    bottom: calc(68px + env(safe-area-inset-bottom) + 0.5rem);
    right: max(0.75rem, env(safe-area-inset-right));
    left: max(0.75rem, env(safe-area-inset-left));
  }
  .toast { min-width: unset; width: 100%; }
}

/* ── MENTION AUTOCOMPLETE + TAGS ────────────────────────────────────────── */
.mention-dropdown {
  position: fixed; z-index: 9999;
  background: var(--card-bg, #1e293b); border: 1px solid var(--border, #334155);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  max-height: 240px; overflow-y: auto;
  padding: .25rem 0;
}
.mention-item {
  padding: .4rem .75rem; cursor: pointer; font-size: .85rem;
  display: flex; align-items: center; gap: .4rem;
}
.mention-item:hover, .mention-item.selected {
  background: var(--accent, #3b82f6); color: #fff;
}
.mention-value {
  font-size: .7rem; color: var(--muted, #94a3b8); margin-left: auto;
}
.mention-item.selected .mention-value,
.mention-item:hover .mention-value { color: rgba(255,255,255,.7); }

.mention-tag {
  display: inline; padding: .1rem .35rem; border-radius: 4px;
  background: rgba(59,130,246,.15); color: #60a5fa;
  font-weight: 600; font-size: .85em; white-space: nowrap;
}
.mention-tag.mention-user {
  background: rgba(99,102,241,.15); color: #818cf8;
}
.hash-tag {
  display: inline; padding: .1rem .35rem; border-radius: 4px;
  background: rgba(107,114,128,.15); color: #9ca3af;
  font-weight: 600; font-size: .85em; white-space: nowrap;
}
.nav-link-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .1rem .4rem; border-radius: 4px;
  background: rgba(99,102,241,.1); color: var(--accent, #6366f1);
  font-weight: 600; font-size: .85em; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; transition: background .15s, color .15s;
}
.nav-link-tag:hover { background: rgba(99,102,241,.2); color: #818cf8; }
.nav-link-tag svg { width: .75em; height: .75em; }

/* ── DASHBOARD POST COMMENTS ───────────────────────────────────────────── */
.dash-post.dash-post-personal { border-left: 4px solid #8b5cf6 !important; }
.dash-post.dash-post-global { border-left: 4px solid var(--accent, #6366f1) !important; }
.dash-post.dash-post-intern { border-left: 4px solid var(--green, #22c55e) !important; }
.dash-post-archived { opacity: .55; }
@keyframes post-highlight { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(99,102,241,.3); } }
.dash-post-highlight { animation: post-highlight 1s ease-in-out 3; }

/* ── DASHBOARD COMMENTS ──────────────────────────────────────────────────── */
.dash-comments-area {
  border-top: 1px solid rgba(150,170,220,.08);
  margin-top: .6rem; padding-top: .5rem;
}
.dpc-list { max-height: 300px; overflow-y: auto; }
.dpc-comment {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(150,170,220,.04);
}
.dpc-comment:last-child { border-bottom: none; }
.dpc-author {
  font-size: .75rem; color: var(--muted);
  display: flex; align-items: center; gap: .35rem;
}
.dpc-time { font-size: .65rem; opacity: .7; }
.dpc-text { font-size: .85rem; margin-top: .2rem; line-height: 1.5; }
.dpc-input-row {
  display: flex; gap: .4rem; align-items: center;
  margin-top: .6rem; padding-top: .5rem;
  border-top: 1px solid rgba(150,170,220,.06);
  flex-wrap: wrap;
}
.dpc-input {
  flex: 1; min-width: 120px; font-size: .85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .4rem .6rem; color: var(--text);
  transition: border-color .2s;
}
.dpc-input:focus { border-color: var(--accent); outline: none; }
.dpc-notify-label {
  font-size: .72rem; color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: .3rem; cursor: pointer;
}
.dash-comment-toggle { font-size: .75rem; }

/* ── DASHBOARD TOOLBAR (Suche + Compose) ─────────────────────────────────── */
.dash-toolbar {
  margin: .75rem 0; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.dash-toolbar-row {
  display: flex; gap: .5rem; align-items: center; padding: .5rem .75rem;
}
.dash-search-icon { color: var(--muted); display: flex; align-items: center; flex-shrink: 0; }
.dash-search-icon svg { width: .9em; height: .9em; }
.dash-search-input {
  flex: 1; font-size: .85rem; background: transparent; border: none;
  color: var(--text); outline: none; min-width: 0;
}
.dash-tab-toggle {
  display: flex; gap: 2px; background: var(--surface); border-radius: var(--radius-sm);
  padding: 2px; flex-shrink: 0;
}
.dash-tab-btn {
  padding: 4px 12px; font-size: .72rem; font-weight: 600;
  border: none; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--muted); transition: all .15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.dash-tab-btn.active { background: var(--accent); color: #fff; }
.dash-tab-btn:not(.active):hover { color: var(--text); }
.dash-tab-btn svg { width: .75em; height: .75em; }
.dash-compose-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm); flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.dash-compose-btn:hover, .dash-compose-btn.active {
  color: var(--accent); border-color: var(--accent); background: rgba(99,102,241,.08);
}
.dash-compose-btn svg { width: .85em; height: .85em; }
.dash-compose {
  max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  padding: 0 .75rem;
}
.dash-compose.open {
  max-height: 400px; padding: .5rem .75rem .75rem;
  border-top: 1px solid rgba(150,170,220,.08);
}
.dash-compose textarea {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .6rem .75rem; width: 100%; font-size: .83rem;
  transition: border-color .2s;
}
.dash-compose textarea:focus { border-color: var(--accent); outline: none; }
.dash-compose-footer {
  display: flex; gap: .5rem; align-items: center; margin-top: .4rem; flex-wrap: wrap;
}

/* ── DASHBOARD BADGES ────────────────────────────────────────────────────── */
.dash-badge-perm {
  display: inline-flex; align-items: center;
  color: var(--accent); opacity: .7;
}
.dash-badge-perm svg { width: .7em; height: .7em; }
.dash-badge-remind {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .65rem; color: var(--amber, #f59e0b); white-space: nowrap;
}
.dash-badge-remind svg { width: .7em; height: .7em; }
.dash-badge-remind.overdue {
  color: #f87171;
  text-shadow: 0 0 6px rgba(239,68,68,.5), 0 0 12px rgba(239,68,68,.25);
}

/* ── GLASS THEME: DASHBOARD ──────────────────────────────────────────────── */
body.theme-glass .dash-post {
  background: rgba(20, 30, 55, 0.45);
  backdrop-filter: blur(var(--glass-blur, 18px));
  border: 1px solid rgba(150, 170, 220, 0.1);
  box-shadow: var(--glass-shadow-sm);
}
body.theme-glass .dash-post:hover {
  border-color: rgba(150, 170, 220, 0.18);
  box-shadow: var(--glass-shadow);
}
body.theme-glass .dash-post-pinned {
  border-color: rgba(110, 142, 240, 0.3);
  box-shadow: var(--glass-highlight), 0 0 20px rgba(110, 142, 240, 0.08);
}
body.theme-glass .dash-post-form {
  background: rgba(20, 30, 55, 0.4);
  backdrop-filter: blur(var(--glass-blur, 18px));
  border: 1px solid rgba(150, 170, 220, 0.1);
  box-shadow: var(--glass-highlight);
}
body.theme-glass .dash-toolbar {
  background: rgba(20, 30, 55, 0.4);
  backdrop-filter: blur(var(--glass-blur, 18px));
  border: 1px solid rgba(150, 170, 220, 0.1);
  box-shadow: var(--glass-highlight);
}
body.theme-glass .dash-react-pill {
  background: rgba(20, 30, 55, 0.5);
  border-color: rgba(150, 170, 220, 0.1);
}
body.theme-glass .dash-react-mine {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}
body.theme-glass .dash-tab-toggle {
  background: rgba(15, 25, 45, 0.5);
}
body.theme-glass .mention-dropdown {
  background: rgba(20, 30, 55, 0.85);
  backdrop-filter: blur(var(--glass-blur, 18px));
  border: 1px solid rgba(150, 170, 220, 0.12);
  box-shadow: var(--glass-shadow);
}
/* Glass Light */
body.theme-glass.light .dash-post {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(100, 120, 180, 0.12);
}
body.theme-glass.light .dash-post-form,
body.theme-glass.light .dash-toolbar {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(100, 120, 180, 0.12);
}
body.theme-glass.light .dash-post-body strong { color: #2d3748; }

/* ── PASSWORD TOGGLE ─────────────────────────────────────────────────────── */
.pw-toggle-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--muted); font-size: 1.1rem; line-height: 1; display: flex;
}
.pw-toggle-btn:hover { color: var(--text); }
input[data-pw-toggle] { padding-right: 2.2rem; }

/* ── DOKU TAB ────────────────────────────────────────────────────────────── */
.ab-doku { font-size: .85rem; line-height: 1.6; }

/* ── DIENSTPLAN MONAT/JAHR PICKER ────────────────────────────────────────── */
.dp-picker-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 100; padding: 4px;
  min-width: 140px; max-height: 260px; overflow-y: auto;
}
.dp-picker-fixed {
  position: fixed; transform: translateX(-50%);
  z-index: 9999;
}
.dp-picker-item {
  padding: 6px 14px; border-radius: 5px; cursor: pointer;
  font-size: .85rem; text-align: center; white-space: nowrap;
}
.dp-picker-item:hover { background: var(--hover); }
.dp-picker-item.active { background: var(--accent); color: #fff; font-weight: 600; }

