/* NEXEMPLOY by Andrerer – Oberfläche
   Farbwelt aus dem Logo: Beere #9D1F5F, Aubergine #3F0A2B, Rosé #F5B8E6. */

:root {
  color-scheme: light;
  --bg: #fbf6f9;
  --surface: #ffffff;
  --surface-2: #f8eff4;
  --surface-3: #f1e2ea;
  --border: #ecdde5;
  --border-strong: #dcc4d1;
  --text: #2a0f1f;
  --text-2: #57324a;
  --muted: #8a6479;
  --primary: #9d1f5f;
  --primary-hover: #7f164b;
  --primary-soft: #fbe7f1;
  --primary-text: #8a1953;
  --ring: rgba(157, 31, 95, .25);
  --accent: #db2777;

  --side-bg: #3f0a2b;
  --side-bg-2: #561239;
  --side-text: #f1cfe2;
  --side-muted: #c58fae;
  --side-active: rgba(245, 184, 230, .16);
  --side-mark: #f5b8e6;

  --ok: #15803d;    --ok-bg: #e3f6e9;
  --warn: #a16207;  --warn-bg: #fdf3d7;
  --bad: #b91c1c;   --bad-bg: #fde7e7;
  --info: #1d4ed8;  --info-bg: #e2ebfe;
  --violet: #9d1f5f; --violet-bg: #fbe7f1;
  --neutral: #6f5465; --neutral-bg: #f3ecf0;

  --shadow-sm: 0 1px 2px rgba(63, 10, 43, .06);
  --shadow: 0 1px 3px rgba(63, 10, 43, .07), 0 6px 18px rgba(63, 10, 43, .05);
  --shadow-lg: 0 20px 50px rgba(63, 10, 43, .22);
  --radius: 12px;
  --radius-sm: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a0912;
    --surface: #241019;
    --surface-2: #2e1421;
    --surface-3: #3a1a2b;
    --border: #41202f;
    --border-strong: #5a2b42;
    --text: #fdeef6;
    --text-2: #ebc9db;
    --muted: #c39ab1;
    --primary: #c8357f;
    --primary-hover: #b02a6d;
    --primary-soft: rgba(214, 69, 143, .17);
    --primary-text: #f5b8e6;
    --ring: rgba(245, 184, 230, .3);
    --accent: #f472b6;
    --side-bg: #14060e;
    --side-bg-2: #26091a;
    --ok: #4ade80;   --ok-bg: rgba(74, 222, 128, .13);
    --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .13);
    --bad: #f87171;  --bad-bg: rgba(248, 113, 113, .13);
    --info: #93c5fd; --info-bg: rgba(147, 197, 253, .13);
    --violet: #f5b8e6; --violet-bg: rgba(245, 184, 230, .14);
    --neutral: #d6b8c8; --neutral-bg: rgba(214, 184, 200, .12);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a0912;
  --surface: #241019;
  --surface-2: #2e1421;
  --surface-3: #3a1a2b;
  --border: #41202f;
  --border-strong: #5a2b42;
  --text: #fdeef6;
  --text-2: #ebc9db;
  --muted: #c39ab1;
  --primary: #c8357f;
  --primary-hover: #b02a6d;
  --primary-soft: rgba(214, 69, 143, .17);
  --primary-text: #f5b8e6;
  --ring: rgba(245, 184, 230, .3);
  --accent: #f472b6;
  --side-bg: #14060e;
  --side-bg-2: #26091a;
  --ok: #4ade80;   --ok-bg: rgba(74, 222, 128, .13);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .13);
  --bad: #f87171;  --bad-bg: rgba(248, 113, 113, .13);
  --info: #93c5fd; --info-bg: rgba(147, 197, 253, .13);
  --violet: #f5b8e6; --violet-bg: rgba(245, 184, 230, .14);
  --neutral: #d6b8c8; --neutral-bg: rgba(214, 184, 200, .12);
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}

/* ------------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .95em; letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.boot {
  min-height: 100vh; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; color: var(--muted);
}
.boot img { border-radius: 12px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }

/* ------------------------------------------------------------------ Layout */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px;
}
.side .brand { display: flex; align-items: center; padding: 4px 10px 18px; }
.side .brand img { height: 34px; width: auto; }
.side .company {
  margin: 0 4px 14px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
}
.side .company b { display: block; color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .company span { font-size: 12px; color: var(--side-muted); }
.nav-group { margin: 14px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; margin: 1px 0; border-radius: 8px;
  color: var(--side-text); font-weight: 500; text-decoration: none;
  transition: background .12s, color .12s;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; }
.nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--side-mark);
}
.nav a .count {
  margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 20px; text-align: center;
  background: rgba(245, 184, 230, .2); color: #fde7f3; font-size: 11.5px; font-weight: 600; line-height: 20px;
}
.side .foot { margin-top: auto; padding: 14px 4px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.side .user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; color: var(--side-text); }
.side .user:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.side .user b { display: block; color: #fff; font-size: 13px; }
.side .user span { font-size: 12px; color: var(--side-muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #e879b9, #9d1f5f); color: #fff; font-weight: 700; font-size: 12.5px;
}
.conn { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--side-muted); padding: 10px 10px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .15); }
.dot.off { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); }
.dot.wait { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .15); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: none; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--side-bg); color: #fff;
}
.topbar img { height: 26px; }
.topbar .burger { margin-left: auto; }
.content { padding: 26px 32px 60px; max-width: 1380px; width: 100%; }

.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .titles { flex: 1; min-width: 220px; }
.page-head .titles p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.crumb a { color: var(--muted); }

/* ------------------------------------------------------------------ Bausteine */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2 { flex: 1; }
.card-body { padding: 16px 18px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .auth-box .card + .card { margin-top: 0; }
.auth-box .card { margin-bottom: 14px; }
h3 > svg.i { vertical-align: -4px; margin-right: 4px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.sep { height: 1px; background: var(--border); margin: 14px 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  position: relative; overflow: hidden; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.kpi .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .label .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.kpi .label .ic svg { width: 16px; height: 16px; }
.kpi .value { margin-top: 10px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi.hero { background: linear-gradient(135deg, #3f0a2b 0%, #6b1543 55%, #9d1f5f 100%); border-color: transparent; color: #fff; }
.kpi.hero .label, .kpi.hero .sub { color: #f9d3e8; }
.kpi.hero .label .ic { background: rgba(255, 255, 255, .14); color: #fff; }
.kpi.hero::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 230, .35), transparent 70%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 500 13.5px/1 var(--font); cursor: pointer;
  white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg.i { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(127, 22, 75, .3); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 18px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }
.topbar .btn { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }

/* Formulare */
.form { display: grid; gap: 14px; }
.form .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form .cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form .cols-zip { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px; gap: 14px; }
.form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; }
.form legend { padding: 0 6px; font-weight: 650; font-size: 13px; color: var(--text-2); }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.field > small { font-size: 12px; }
input, select, textarea {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 14px var(--font); transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 34px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar select, .toolbar input[type="date"] { width: auto; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font: 500 12.5px var(--font); cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); }
.chip.on { background: var(--primary-soft); border-color: transparent; color: var(--primary-text); }
.chip .n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.chip.on .n { color: inherit; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--surface-2); }
td .t1 { font-weight: 600; }
td .t2 { font-size: 12.5px; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ic {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-text);
}
.empty .ic svg { width: 24px; height: 24px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* Status-Abzeichen */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }

.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #9d1f5f, #db2777); }
.progress.over > i { background: var(--bad); }

/* Listen */
.list > .item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.list > .item:last-child { border-bottom: 0; }
.list > a.item { color: inherit; text-decoration: none; }
.list > a.item:hover { background: var(--surface-2); }

/* Zeitachse */
.timeline { list-style: none; margin: 0; padding: 4px 0 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--border-strong);
}
.timeline li.cur::after { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.timeline li b { display: block; font-size: 13.5px; }
.timeline li small { display: block; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.addr-block { font-size: 13.5px; line-height: 1.55; }
.addr-block b { font-size: 14px; }

.code-box {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
}
.code-box .mono { font-size: 17px; font-weight: 700; letter-spacing: .08em; flex: 1; }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info); font-size: 13.5px; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.violet { background: var(--violet-bg); color: var(--violet); }
.alert svg { margin-top: 1px; }
.alert p { margin: 0; color: inherit; }

/* ------------------------------------------------------------------ Modal & Toast */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; background: rgba(30, 8, 20, .55); backdrop-filter: blur(3px); overflow-y: auto;
  animation: fade .14s ease-out;
}
.modal {
  width: 100%; max-width: 560px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); animation: rise .16s ease-out;
}
.modal.lg { max-width: 820px; }
.modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; font-size: 17px; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }
.modal-foot .left { margin-right: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }

#toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px; padding: 11px 14px;
  border-radius: 10px; background: #3f0a2b; color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px;
  animation: rise .16s ease-out;
}
.toast.bad { background: #7f1d1d; }
.toast.ok svg { color: #86efac; }

/* ------------------------------------------------------------------ Anmeldung */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; padding: 48px; color: #fde7f3; display: flex; flex-direction: column;
  background:
    radial-gradient(800px 400px at 110% -10%, rgba(245, 184, 230, .25), transparent 60%),
    radial-gradient(600px 500px at -10% 110%, rgba(219, 39, 119, .35), transparent 60%),
    linear-gradient(160deg, #3f0a2b 0%, #5c1240 100%);
}
.auth-art::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
}
.auth-art > * { position: relative; }
.auth-art img { height: 44px; width: auto; align-self: flex-start; }
.auth-art .claim { margin-top: auto; max-width: 480px; }
.auth-art h1 { font-size: 34px; line-height: 1.15; color: #fff; letter-spacing: -.02em; }
.auth-art h1 em { font-style: normal; background: linear-gradient(90deg, #f5b8e6, #fbcfe8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art .claim p { margin-top: 14px; color: #ecc6db; font-size: 15px; }
.auth-art ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.auth-art li { display: flex; gap: 10px; align-items: center; color: #f6d6e7; }
.auth-art li svg { color: #f5b8e6; }
.auth-art .fine { margin-top: 40px; font-size: 12px; color: #c48aab; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .logo-m { display: none; height: 34px; margin-bottom: 24px; }
.auth-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-box > p { color: var(--muted); margin-bottom: 22px; }
.auth-box .switch { margin-top: 18px; text-align: center; color: var(--muted); }
.auth-box .err { margin-bottom: 14px; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-2); margin-bottom: 20px; }
.tabs2 button { height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.tabs2 button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }


/* ------------------------------------------------------------------ NEXEMPLOY */
/* Stempeluhr */
.clock { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.clock .face {
  width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-text);
}
.clock .face svg { width: 30px; height: 30px; }
.clock.on .face { background: var(--ok-bg); color: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.clock .time { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.clock .btn { min-width: 150px; }
.month-nav { display: inline-flex; align-items: center; gap: 4px; }
.month-nav b { min-width: 132px; text-align: center; font-size: 14px; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }

/* Stundenliste */
.ts td { padding-top: 8px; padding-bottom: 8px; }
.ts tr.off td { background: var(--surface-2); color: var(--muted); }
.ts tr.today td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.ts tfoot td { font-weight: 700; border-top: 2px solid var(--border-strong); background: var(--surface-2); }
.ts .entries { display: grid; gap: 3px; }
.ts .entry { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ts .entry .btn.icon.sm { width: 26px; height: 26px; }

/* Abwesenheitskalender */
.cal { border-collapse: separate; border-spacing: 0; }
.cal th, .cal td { padding: 0; text-align: center; }
.cal th.d { width: 28px; min-width: 28px; font-size: 10.5px; padding: 6px 0; letter-spacing: 0; }
.cal th.d span { display: block; font-weight: 500; text-transform: none; }
.cal td.n { text-align: left; padding: 6px 12px; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
.cal th.n { position: sticky; left: 0; z-index: 2; text-align: left; padding: 6px 12px; }
.cal td.d { height: 34px; border-left: 1px solid var(--border); font-size: 10.5px; font-weight: 700; }
.cal .off { background: var(--surface-2); }
.cal .hol { background: var(--surface-3); }
.cal th.today { color: var(--primary-text); box-shadow: inset 0 -2px 0 var(--primary); }
.cal .a { display: grid; place-items: center; height: 24px; margin: 0 2px; border-radius: 5px; }
.cal .a.req { opacity: .55; outline: 1.5px dashed currentColor; outline-offset: -1.5px; }
.t-vacation { background: var(--ok-bg); color: var(--ok); }
.t-sick { background: var(--bad-bg); color: var(--bad); }
.t-za { background: var(--info-bg); color: var(--info); }
.t-care { background: var(--warn-bg); color: var(--warn); }
.t-special { background: var(--violet-bg); color: var(--violet); }
.t-school { background: var(--neutral-bg); color: var(--neutral); }
.t-unpaid { background: var(--surface-3); color: var(--muted); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--border); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.wd { display: flex; gap: 4px; flex-wrap: wrap; }
.wd label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 46px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-strong); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.wd label:has(input:checked) { background: var(--primary-soft); border-color: transparent; color: var(--primary-text); }
.wd input { width: 14px; height: 14px; }
.secret { filter: blur(5px); transition: filter .15s; cursor: pointer; }
.secret:hover, .secret.show { filter: none; }
@media print { .doc .ts tr.off td { background: #f4f4f4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ------------------------------------------------------------------ Druck */
#print-root { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  #app, #modal-root, #toast-root { display: none !important; }
  #print-root { display: block; }
  .doc { color: #111; }
  .doc h1 { font-size: 20pt; }
  .doc table th { background: #f8eff4 !important; color: #333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc td, .doc th { padding: 6px 8px; border-bottom: 1px solid #ccc; }
}
.doc { font-family: var(--font); }
.doc .doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #9d1f5f; padding-bottom: 10px; margin-bottom: 18px; }
.doc .doc-head img { height: 40px; }
.doc .doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.doc .lbl { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #666; margin-bottom: 3px; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.doc .sign div { border-top: 1px solid #333; padding-top: 4px; font-size: 9pt; color: #444; }

/* ------------------------------------------------------------------ Responsiv */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 270px;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(30, 8, 20, .45); }
  .topbar { display: flex; }
  .content { padding: 18px 16px 50px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-box .logo-m { display: block; }
  .form .cols, .form .cols3 { grid-template-columns: minmax(0, 1fr); }
  .hide-m { display: none !important; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .value { font-size: 22px; }
  .form .cols-zip { grid-template-columns: 90px minmax(0, 1fr); }
  .form .cols-zip > :last-child { grid-column: 1 / -1; }
  .kv { grid-template-columns: 110px 1fr; }
  .modal-bg { padding: 0; align-items: stretch; }
  .modal { border-radius: 0; min-height: 100%; }
  .modal-foot { border-radius: 0; position: sticky; bottom: 0; }
  .clock { gap: 14px; }
  .clock .face { width: 48px; height: 48px; border-radius: 14px; }
  .clock .face svg { width: 24px; height: 24px; }
  .clock .time { font-size: 26px; }
  .clock .btn { flex: 1 1 100%; }
  .month-nav b { min-width: 118px; }
}
