* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pink: #ec4899;
  --pink-2: #db2777;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f7;
  --surface-3: #ececef;
  --border: #ebebee;
  --text: #111113;
  --muted: #6b6b74;
  --dim: #a1a1aa;
  --good: #10b981;
  --warn: #f59e0b;
  --orange: #f97316;
  --bad: #ef4444;
  --blue: #3b82f6;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.05);
  --radius: 18px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #141417;
  --surface-2: #1c1c20;
  --surface-3: #27272d;
  --border: #25252b;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #63636c;
  --shadow: 0 1px 0 rgba(255,255,255,0.02);
  color-scheme: dark;
}
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ── Kopfzeile ───────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo {
  width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center;
}
.wordmark { font-size: 13px; font-weight: 500; letter-spacing: 0.36em; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex: 1; justify-content: center; }
.tab {
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--text); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--pink); }
.account { position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
}
.menu {
  position: absolute; right: 0; top: 46px; min-width: 210px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-head b { display: block; font-size: 14px; }
.menu-head span { font-size: 12px; color: var(--muted); }
.menu button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.menu button:hover { background: var(--surface-2); color: var(--pink); }

/* ── Seite ───────────────────────────────────────────── */
main { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.page-head { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow { color: var(--pink); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
h1 .accent { color: var(--pink); }
.lead { color: var(--muted); font-size: 15px; margin-top: 8px; }
.section { margin-top: 34px; }
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between;
}
.section-title a { color: var(--pink); text-transform: none; letter-spacing: 0; font-size: 13px; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-link { text-decoration: none; display: block; transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--pink); transform: translateY(-2px); }
.card-label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.card-big { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.muted { color: var(--muted); }
.empty {
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 32px 20px;
  text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6;
}
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* ── Buttons & Formulare ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: all 0.15s;
}
.btn:hover { border-color: var(--pink); color: var(--pink); }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.primary:hover { background: var(--pink-2); border-color: var(--pink-2); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.wide { width: 100%; padding: 14px; font-size: 15px; }
.label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 6px;
}
.input {
  width: 100%; background: var(--surface-2); border: 1.5px solid transparent;
  padding: 12px 14px; border-radius: 12px; font-size: 15px; outline: none;
}
.input:focus { border-color: var(--pink); background: var(--surface); }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 86px; }
.pw-toggle {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  border: none; background: var(--surface-3); border-radius: 8px; padding: 6px 10px;
  font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--pink); }
.msg { font-size: 13px; font-weight: 600; color: var(--bad); margin-top: 12px; min-height: 18px; }
.msg.ok { color: var(--good); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ── Login ───────────────────────────────────────────── */
.login-wrap { min-height: calc(100vh - 170px); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 410px; padding: 34px 30px; }
.login-card h1 { font-size: 30px; }

/* ── Hinweis-Banner (Urlaub) ─────────────────────────── */
.banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  margin-bottom: 18px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--pink) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pink) 25%, transparent);
}
.banner.info { background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-color: color-mix(in srgb, var(--blue) 25%, transparent); }
.banner-icon { font-size: 20px; line-height: 1; }
.banner small { display: block; font-weight: 500; color: var(--muted); margin-top: 1px; }
.admin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-radius: 12px; margin-bottom: 22px; font-size: 13px; font-weight: 600;
  background: var(--text); color: var(--bg);
}
.admin-bar button { background: var(--bg); color: var(--text); border: none; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* ── Video-Counter (wie in Work Linus) ───────────────── */
.counter { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.counter-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.pace-done, .pace-ontrack { background: var(--good); color: var(--good); }
.pace-ok { background: var(--orange); color: var(--orange); }
.pace-behind { background: var(--bad); color: var(--bad); }
.pace-open { background: var(--dim); color: var(--dim); }
.counter-name { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.counter-value { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.counter-value .goal { color: var(--muted); font-size: 12px; font-weight: 500; }
.counter-body { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.counter-full { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counter-full .goal { color: var(--muted); font-size: 13px; font-weight: 500; }
.counter-full .pct { font-size: 12px; margin-left: 6px; font-weight: 700; }
.bar { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 3px; transition: width 0.7s ease; }
.bar-fill.pace-open { background: var(--pink); }
.pace-text { font-size: 12px; font-weight: 600; color: var(--muted); }
.txt-done, .txt-ontrack { color: var(--good); }
.txt-ok { color: var(--orange); }
.txt-behind { color: var(--bad); }
.facts { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.fact { flex: 1; padding: 6px; text-align: center; line-height: 1.25; }
.fact b { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fact span { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.next-chip { font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 8px; text-align: center; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }

/* ── Status-Pills ────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--c, var(--dim)) 15%, transparent); color: var(--c, var(--muted));
}
[data-theme="dark"] .pill { color: color-mix(in srgb, var(--c, var(--muted)) 80%, white); }
.pill .dot { width: 7px; height: 7px; background: var(--c); color: var(--c); box-shadow: none; }

/* ── Listen (Videos, Dokumente) ──────────────────────── */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.list-row:last-child { border-bottom: none; }
.list-main { flex: 1; min-width: 180px; }
.list-title { font-weight: 600; font-size: 14px; }
.list-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-amount { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; }
.list-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 13px; font-weight: 700; }
.group-head .count { color: var(--muted); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.status-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.status-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.status-line span:last-child { font-variant-numeric: tabular-nums; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }

/* ── Admin ───────────────────────────────────────────── */
.small { font-size: 12px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.filter select {
  border: none; background: var(--surface-2); border-radius: 999px; padding: 7px 30px 7px 12px;
  font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.filter:hover { border-color: var(--pink); }
.search { max-width: 420px; }
.link-row { text-decoration: none; cursor: pointer; transition: background 0.12s; }
.link-row:hover { background: var(--surface-2); }
.avatar-sm {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.back:hover { color: var(--pink); }
.customer-card { display: flex; flex-direction: column; gap: 4px; }
.customer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customer-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.customer-name:hover { color: var(--pink); }
.customer-card-body { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.customer-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 13px;
}
.customer-card-foot .link-btn { font-size: 12px; color: var(--muted); }
.link-btn {
  background: none; border: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--pink); }
.mini-counter { display: flex; flex-direction: column; gap: 6px; }
.mini-counter-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mini-counter-top .dot { width: 8px; height: 8px; }
.mini-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-counter-top b { font-variant-numeric: tabular-nums; }
.mini-counter .bar { height: 4px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-decoration: none;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.tag:hover { color: var(--pink); }
.settings-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 6px; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--muted); transition: all 0.15s;
}
.toggle-knob {
  width: 28px; height: 16px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background 0.15s;
}
.toggle-knob::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform 0.15s;
}
.toggle.on { color: var(--text); border-color: color-mix(in srgb, var(--pink) 40%, var(--border)); }
.toggle.on .toggle-knob { background: var(--pink); }
.toggle.on .toggle-knob::after { transform: translateX(12px); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
.detail-grid .grid { grid-template-columns: 1fr; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check-grid .check { margin-top: 8px; }
.access-card { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px 18px; }

/* ── Dialog & Toast ──────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px 26px 22px; }
.modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}
.toast.err { background: var(--bad); color: #fff; }

footer {
  max-width: 1080px; margin: 0 auto; padding: 20px 24px 40px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px;
}
.loading { text-align: center; color: var(--muted); padding: 90px 0; }

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .wordmark { font-size: 11px; letter-spacing: 0.28em; }
  .tabs { order: 3; flex: 0 0 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  main { padding: 22px 16px 60px; }
  footer { padding: 18px 16px 32px; }
  .grid { grid-template-columns: 1fr; }
  .list-row { padding: 14px; }
  .list-amount { text-align: left; min-width: 0; }
  .row-2 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .head-actions { width: 100%; }
  .filter { flex: 1; }
  .filter select { flex: 1; }
}

/* Demo-Zugänge auf der Login-Seite */
.demo-logins { margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--border, rgba(128,128,128,.35)); border-radius: 12px; font-size: 13px; color: var(--muted); }
.demo-logins b { color: inherit; }
.demo-logins code { font-weight: 700; }
.demo-login-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Kundenansicht: eine mittige Spalte ──────────────── */
body.client main { max-width: 640px; padding-top: 44px; }
body.client .page-head { justify-content: center; text-align: center; }
body.client .page-head > div { width: 100%; }
body.client .section { margin-top: 40px; }
body.client .section-title { justify-content: center; text-align: center; }
body.client .banner { border-radius: 18px; }

.hero { text-align: center; margin-bottom: 30px; }
.hero-date { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(34px, 7vw, 52px); margin-top: 10px; }
.hero .lead { max-width: 420px; margin: 12px auto 0; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 1.6s ease-in-out 0.4s 1; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(16deg); } 40%, 80% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }

.stack { display: flex; flex-direction: column; gap: 14px; }
.hero-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  box-shadow: var(--shadow); padding: 26px 28px 24px;
}
.hero-card::before {
  content: ''; position: absolute; inset: -40% 10% auto; height: 220px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pink) 16%, transparent), transparent);
}
.hero-card > * { position: relative; }
.hero-top { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.hero-chip { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.hero-num {
  font-size: clamp(56px, 14vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  margin-top: 18px; font-variant-numeric: tabular-nums;
}
.hero-goal { font-size: 0.42em; color: var(--muted); font-weight: 700; letter-spacing: -0.02em; margin-left: 4px; }
.hero-unit { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.bar-lg { height: 10px; border-radius: 999px; margin: 20px auto 0; max-width: 420px; }
.bar-lg .bar-fill { border-radius: 999px; }
.hero-note { font-size: 13px; font-weight: 700; margin-top: 12px; }
.hero-facts { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-facts div { background: var(--surface-2); border-radius: 14px; padding: 10px 18px; min-width: 110px; line-height: 1.3; }
.hero-facts b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-card .next-chip { margin: 16px auto 0; max-width: 420px; }

.quick-list { display: flex; flex-direction: column; gap: 10px; }
.quick-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.quick-row:hover { border-color: var(--pink); transform: translateY(-1px); }
.quick-icon {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; font-size: 19px;
  display: flex; align-items: center; justify-content: center; background: var(--surface-2);
}
.quick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quick-main b { font-size: 15px; }
.quick-main small { font-size: 12px; color: var(--muted); font-weight: 600; }
.quick-val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quick-arrow { color: var(--dim); font-weight: 700; transition: transform 0.15s, color 0.15s; }
.quick-row:hover .quick-arrow { color: var(--pink); transform: translateX(3px); }
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800;
}

@media (max-width: 760px) {
  body.client main { padding-top: 28px; }
  .hero-card { padding: 22px 18px 20px; border-radius: 22px; }
  .hero-facts div { min-width: 0; flex: 1; padding: 10px 8px; }
}
@media (max-width: 760px) {
  body.client .tabs { justify-content: center; }
}

/* Umschalter Anzahl / Umsatz */
.seg {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.seg button {
  border: none; background: transparent; cursor: pointer; padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--muted); transition: background 0.15s, color 0.15s;
}
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.seg button:not(.active):hover { color: var(--text); }

/* Admin: Ansicht wechseln */
.view-switch {
  height: 38px; max-width: 190px; padding: 0 30px 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background-color: var(--surface); font-size: 13px; font-weight: 700; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.view-switch:hover { border-color: var(--pink); }
@media (max-width: 760px) { .view-switch { max-width: 140px; font-size: 12px; } }

/* ══ Design-Feinschliff Kundenansicht ═════════════════════════════════ */
:root { --violet: #8b5cf6; --glow: color-mix(in srgb, var(--pink) 22%, transparent); }
body.client {
  background:
    radial-gradient(900px 520px at 50% -160px, color-mix(in srgb, var(--pink) 16%, transparent), transparent 70%),
    radial-gradient(700px 420px at 85% 10%, color-mix(in srgb, var(--violet) 9%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body.client .topbar { background: color-mix(in srgb, var(--bg) 60%, transparent); border-bottom-color: transparent; }
body.client .tabs .tab.active { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 0 0 1px var(--border); }

/* Begrüßung */
.hero h1 { letter-spacing: -0.04em; }
.hero-name {
  background: linear-gradient(100deg, var(--pink) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-date {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border);
}
.hero-date::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }

/* Abschnitts-Titel mit feinen Linien */
body.client .section-title { gap: 14px; }
body.client .section-title::before, body.client .section-title::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border));
}
body.client .section-title::after { background: linear-gradient(90deg, var(--border), transparent); }

/* Karten: Glas-Optik */
.hero-card, .quick-row, body.client .list, body.client .card, body.client .banner {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hero-card { border-radius: 28px; padding: 28px 28px 26px; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -30px rgba(0,0,0,0.35); }
.hero-card::before { height: 260px; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero-num { margin-top: 20px; }
.bar-lg { height: 12px; background: color-mix(in srgb, var(--surface-3) 80%, transparent); }
.bar-lg .bar-fill { box-shadow: 0 0 18px -2px currentColor; }
.bar-lg .bar-fill.pace-open { background: linear-gradient(90deg, var(--pink), var(--violet)); color: var(--pink); }
.bar-lg .bar-fill.pace-ontrack, .bar-lg .bar-fill.pace-done { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-lg .bar-fill.pace-ok { background: linear-gradient(90deg, #f97316, #fbbf24); }
.bar-lg .bar-fill.pace-behind { background: linear-gradient(90deg, #ef4444, #f97316); }
.hero-facts div { background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--border); }
.seg { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.seg button.active { background: var(--text); color: var(--bg); box-shadow: none; }

/* Dokument-Zeilen */
.quick-icon { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 16%, transparent), color-mix(in srgb, var(--violet) 14%, transparent)); }
.quick-row { border-radius: 20px; }

/* Sprache DE / EN */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.lang-switch button {
  border: none; background: transparent; cursor: pointer; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted);
}
.lang-switch button.active { background: var(--text); color: var(--bg); }
.login-lang { position: absolute; top: 18px; right: 18px; }
.menu-lang { margin: 6px 6px 4px; }
.menu .lang-switch button { width: auto; padding: 4px 12px; }
.menu .lang-switch button:hover { background: transparent; color: var(--text); }
.menu .lang-switch button.active:hover { background: var(--text); color: var(--bg); }

/* Login */
.login-card { position: relative; border-radius: 28px; padding: 40px 32px 30px; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.login-logo {
  width: 54px; height: 54px; border-radius: 18px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 12px 30px -8px var(--pink);
}
.btn.primary { background: linear-gradient(100deg, var(--pink), color-mix(in srgb, var(--pink) 60%, var(--violet))); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); background: linear-gradient(100deg, var(--pink), color-mix(in srgb, var(--pink) 60%, var(--violet))); }

/* Footer */
body.client footer { justify-content: center; flex-direction: column; align-items: center; text-align: center; gap: 4px; border-top: none; max-width: 640px; }
.made { font-weight: 600; }
.heart { color: var(--pink); display: inline-block; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .heart { animation: none; } }
.footer-brand { font-weight: 700; color: var(--text); }

/* Branding pro Kunde */
:root { --on-accent: #fff; }
body.client { --glow: color-mix(in srgb, var(--pink) 22%, transparent); }
.btn.primary, .btn.primary:hover, .badge, .login-logo, .seg button.active { color: var(--on-accent); }
.seg button.active { background: var(--pink); }
.cobrand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cobrand-lm {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #ec4899; color: #fff; font-size: 13px; font-weight: 800;
}
.cobrand-x { color: var(--dim); font-weight: 700; }
.cobrand-logo {
  height: 40px; min-width: 40px; max-width: 160px; padding: 6px 10px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px -8px rgba(0,0,0,0.3);
}
.cobrand-logo img { max-height: 28px; max-width: 140px; object-fit: contain; display: block; }
.brand-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brand-field { display: flex; gap: 6px; align-items: center; }
.brand-field input[type=color] {
  width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 12px; padding: 3px; background: var(--surface-2); cursor: pointer;
}
.brand-field .input { min-width: 0; }
.topbar .logo { background: #ec4899; color: #fff; }  /* Linus-Media-Logo bleibt immer pink */

/* Echtes LM-Logo statt Text */
img.logo, img.cobrand-lm, img.login-logo { object-fit: cover; background: none; display: block; }
img.cobrand-lm { border-radius: 50%; }
img.login-logo { border-radius: 50%; box-shadow: 0 12px 30px -10px rgba(214, 51, 108, 0.7); }
.topbar img.logo { background: none; }
.cobrand { display: flex; width: fit-content; margin: 0 auto 16px; }
.legal { font-size: 12px; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--pink); }

/* Name in der Begrüßung: Markenfarben des Kunden, ohne Branding normale Textfarbe */
body { --name-1: var(--text); --name-2: var(--text); }
.hero-name { background: linear-gradient(100deg, var(--name-1) 15%, var(--name-2) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Zahlungsstatus aus Work Linus */
.pay-pill {
  display: inline-flex; align-items: center; gap: 6px; margin: 16px auto 0; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.counter .pay-pill { margin: 0; align-self: flex-start; }
