/* =========================================================
   myLink – Design System
   ========================================================= */
:root {
  --bg: #f5f6fa;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --text: #0f1222;
  --text-2: #3b4154;
  --muted: #737a8c;
  --line: #e7e9f0;
  --line-2: #dfe2ea;
  --accent: #5b5bf7;
  --accent-2: #8b5cf6;
  --accent-soft: #eeeefe;
  --accent-text: #4a48e0;
  --grad: linear-gradient(135deg, #5b5bf7 0%, #8b5cf6 100%);
  --ok: #12966b; --ok-soft: #e4f6ef;
  --warn: #b7700c; --warn-soft: #fdf2df;
  --danger: #d6384b; --danger-soft: #fdebed;
  --side-bg: #0d0f1c;
  --side-text: #a7adc2;
  --side-hover: rgba(255,255,255,.06);
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(15,18,34,.04), 0 1px 3px rgba(15,18,34,.05);
  --sh-2: 0 4px 12px -2px rgba(15,18,34,.08), 0 2px 4px -2px rgba(15,18,34,.04);
  --sh-3: 0 24px 48px -12px rgba(15,18,34,.25);
  --ease: cubic-bezier(.2,.8,.2,1);
  --side-w: 256px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0b14; --bg-2: #11131f; --surface: #141625; --surface-2: #181a2b;
  --text: #eceef6; --text-2: #c3c7d6; --muted: #8b91a7; --line: #23263a; --line-2: #2c3048;
  --accent-soft: #1f1f45; --accent-text: #a5a4ff;
  --ok-soft: #0f2c24; --warn-soft: #33260e; --danger-soft: #3a1720;
  --side-bg: #07080f;
  --sh-1: none; --sh-2: 0 8px 24px -8px rgba(0,0,0,.5); --sh-3: 0 30px 60px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b14; --bg-2: #11131f; --surface: #141625; --surface-2: #181a2b;
    --text: #eceef6; --text-2: #c3c7d6; --muted: #8b91a7; --line: #23263a; --line-2: #2c3048;
    --accent-soft: #1f1f45; --accent-text: #a5a4ff;
    --ok-soft: #0f2c24; --warn-soft: #33260e; --danger-soft: #3a1720;
    --side-bg: #07080f;
    --sh-1: none; --sh-2: 0 8px 24px -8px rgba(0,0,0,.5); --sh-3: 0 30px 60px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14.5px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.022em; margin: 0; line-height: 1.2; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85em; }
.text-danger { color: var(--danger); display: block; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.i { flex-shrink: 0; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- App Shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--side-bg);
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(91,91,247,.18), transparent 60%);
  color: var(--side-text); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: 1.3rem; color: var(--text); letter-spacing: -.03em; padding: 4px 10px 22px; }
.sidebar .brand, .brand.light { color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { background: var(--grad); color: #fff; border-radius: 8px; padding: 1px 7px 2px; margin-right: 2px; box-shadow: 0 6px 16px -4px rgba(91,91,247,.6); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #5d647c; margin: 22px 12px 8px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--side-text); font-weight: 500; position: relative; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--side-hover); color: #fff; text-decoration: none; }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(91,91,247,.35), rgba(139,92,246,.12)); box-shadow: inset 0 0 0 1px rgba(139,137,255,.25); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.company { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: .82rem; color: #8d93aa; }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.search-trigger {
  display: flex; align-items: center; gap: 10px; width: min(440px, 100%); height: 40px; padding: 0 10px 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--muted);
  font: inherit; cursor: pointer; box-shadow: var(--sh-1); transition: border-color .15s;
}
.search-trigger:hover { border-color: var(--line-2); }
.search-trigger span { flex: 1; text-align: left; }
kbd { font: 600 .7rem "Inter", sans-serif; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 0;
  background: transparent; color: var(--text-2); cursor: pointer; position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.bell .dot {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg); animation: pop .4s var(--ease);
}
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--text); }
.user-btn:hover { background: var(--bg-2); }
.user-btn-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.user-btn-text small { color: var(--muted); }
.only-mobile { display: none; }

.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: all .18s var(--ease); transform-origin: top right;
}
.dropdown.open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu > a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 500; }
.menu > a:hover { background: var(--bg-2); text-decoration: none; }
.menu > a.danger { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-user { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-user div { display: flex; flex-direction: column; min-width: 0; }
.menu-user small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-notify { width: 370px; padding: 0; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.menu-head a { font-size: .85rem; font-weight: 600; }
.notify-list { max-height: 400px; overflow-y: auto; padding: 6px; }
.notify-item { display: flex; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text); position: relative; }
.notify-item:hover { background: var(--bg-2); text-decoration: none; }
.notify-item div { min-width: 0; flex: 1; }
.notify-item strong { display: block; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notify-item small { color: var(--muted); }
.notify-item.unread::after { content: ""; position: absolute; right: 12px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notify-item.unread strong { padding-right: 16px; }
.menu-empty { padding: 28px; text-align: center; color: var(--muted); }

.content { padding: 32px clamp(16px, 3vw, 36px) 64px; width: 100%; max-width: 1240px; margin: 0 auto; animation: fadeUp .35s var(--ease); }
.content.wide { max-width: 1320px; }
.content.flush { padding: 0; max-width: none; margin: 0; }

/* ---------- Avatare ---------- */
.av {
  --h: 240; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden;
  width: 40px; height: 40px; font-weight: 700; font-size: .9rem; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 72% 60%), hsl(calc(var(--h) + 40) 70% 52%));
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-xs { width: 22px; height: 22px; font-size: .55rem; }
.av-sm { width: 32px; height: 32px; font-size: .72rem; }
.av-md { width: 40px; height: 40px; }
.av-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.av-xl { width: 148px; height: 148px; font-size: 2.8rem; }
.av.ring { box-shadow: 0 0 0 4px var(--surface), 0 8px 24px -6px rgba(15,18,34,.35); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  font: 600 .88rem/1 "Inter", sans-serif; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: var(--sh-1); transition: all .15s var(--ease); white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(91,91,247,.7), inset 0 1px 0 rgba(255,255,255,.15); }
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 10px 24px -8px rgba(91,91,247,.8); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.sm { height: 30px; padding: 0 12px; font-size: .8rem; border-radius: 8px; }
.btn.big { height: 46px; padding: 0 22px; font-size: .95rem; border-radius: 12px; }
.btn.full { width: 100%; }

/* ---------- Cards & Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.card + .card { margin-top: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .95rem; }
.card-title small { font-weight: 500; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head .card-title { margin: 0; }
.card-head > a { font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.title-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.count { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg-2); color: var(--muted); vertical-align: middle; letter-spacing: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 10px; }
.eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.back-link:hover { color: var(--text); text-decoration: none; }
.label { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.label:first-of-type { margin-top: 0; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.tag { display: inline-block; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 7px; background: var(--bg-2); color: var(--text-2); }
.role-tag { display: inline-flex; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg-2); color: var(--text-2); }
.role-tag.role-admin { background: var(--accent-soft); color: var(--accent-text); }
.role-tag.role-lead { background: var(--warn-soft); color: var(--warn); }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; background: var(--ok-soft); color: var(--ok); }
.alert.err { background: var(--danger-soft); color: var(--danger); }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px; color: var(--muted); gap: 4px; }
.empty-state strong { color: var(--text); font-size: 1rem; }
.empty-state p { margin: 0; }
.empty-state.big { padding: 90px 20px; height: 100%; justify-content: center; }
.es-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 10px; }
.empty-inline { color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }

.person-row { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px; color: var(--text); }
.person-row:hover { background: var(--bg-2); text-decoration: none; }
.person-row div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.person-row small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-row > .i { color: var(--muted); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 13px; min-width: 260px; max-width: 440px;
  background: #151827; color: #fff; box-shadow: var(--sh-3); font-weight: 500; animation: toastIn .4s var(--ease);
}
.toast .i { color: #4ade80; }
.toast.err .i { color: #fb7185; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }

/* ---------- Command Palette ---------- */
.palette { position: fixed; inset: 0; z-index: 90; background: rgba(8,10,20,.45); backdrop-filter: blur(4px); display: flex; justify-content: center; padding-top: 12vh; animation: fade .15s; }
.palette-box { width: min(620px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-3); overflow: hidden; align-self: flex-start; animation: popIn .2s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 1.05rem "Inter", sans-serif; color: var(--text); padding: 0; box-shadow: none; }
.palette-results { max-height: 420px; overflow-y: auto; padding: 8px; }
.pal-group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.pal-item:hover { text-decoration: none; }
.pal-item.sel { background: var(--accent-soft); }
.pal-item div { display: flex; flex-direction: column; line-height: 1.3; }
.pal-item small { color: var(--muted); }
.pal-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--bg-2); color: var(--text-2); }
.pal-empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.field small { font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input:not([type]), select, textarea {
  font: 500 .9rem "Inter", sans-serif; color: var(--text); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; box-shadow: var(--sh-1);
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { flex-shrink: 0; width: 40px; height: 23px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; margin-top: 1px; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(17px); }
.switch input:focus-visible + .switch-ui { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.switch > span:last-child { display: flex; flex-direction: column; }
.switch small { color: var(--muted); }
.switch.inline { align-items: center; }

/* ---------- Toolbar / Tabellen ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.input-icon { position: relative; min-width: 260px; }
.input-icon .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 38px; }
.chips-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-filter button { font: 600 .82rem "Inter", sans-serif; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all .15s; }
.chips-filter button:hover { border-color: var(--muted); }
.chips-filter button.is-active { background: var(--text); color: var(--surface); border-color: var(--text); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.hover tbody tr { cursor: pointer; transition: background .1s; }
.table.hover tbody tr:hover, .table tr.is-selected { background: var(--surface-2); }
.table.compact td, .table.compact th { padding: 10px 12px; }
.card:not(.flush) .table th { background: transparent; }
.card:not(.flush) .table th:first-child, .card:not(.flush) .table td:first-child { padding-left: 0; }
.card:not(.flush) .table th:last-child, .card:not(.flush) .table td:last-child { padding-right: 0; }
tr.inactive { opacity: .5; }
.hide-inactive tr.inactive { display: none; }
.cell-person { display: flex; align-items: center; gap: 12px; }
.cell-person > div { display: flex; flex-direction: column; line-height: 1.3; }
.cell-person small { color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s var(--ease); }
.progress-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.progress-cell span { font-size: .82rem; color: var(--muted); font-weight: 600; min-width: 40px; }

/* ---------- Dashboard ---------- */
.welcome {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px;
  padding: 30px 32px; border-radius: var(--r-xl); color: #fff; position: relative; overflow: hidden;
  background: #16143a;
  background-image: radial-gradient(80% 140% at 100% 0%, rgba(139,92,246,.75), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(91,91,247,.8), transparent 60%);
  box-shadow: 0 20px 40px -20px rgba(91,91,247,.6);
}
.welcome::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.welcome .eyebrow { color: rgba(255,255,255,.7); }
.welcome h1 { font-size: 2rem; margin-bottom: 6px; }
.welcome p { margin: 0; color: rgba(255,255,255,.85); }
.welcome-card { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); color: #fff; transition: background .2s; }
.welcome-card:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.welcome-card div { display: flex; flex-direction: column; line-height: 1.35; }
.welcome-card span { color: rgba(255,255,255,.75); font-size: .88rem; }
.welcome-card small { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; color: #c9c8ff; font-weight: 600; }
.welcome-card .av { box-shadow: 0 0 0 3px rgba(255,255,255,.3); width: 58px; height: 58px; }

.pinned { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 12px; border-radius: 16px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); color: var(--text); animation: fadeUp .4s var(--ease); }
.pinned:hover { text-decoration: none; border-color: var(--danger); }
.pinned-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--danger); color: #fff; flex-shrink: 0; }
.pinned div { flex: 1; display: flex; flex-direction: column; }
.pinned small { color: var(--danger); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; }
.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--sh-2); }
.stat div { display: flex; flex-direction: column; line-height: 1.2; }
.stat strong { font-size: 1.6rem; font-weight: 750; letter-spacing: -.03em; }
.stat span:not(.stat-ico) { color: var(--muted); font-size: .85rem; }
.stat-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.stat-ico.c1 { background: var(--accent-soft); color: var(--accent-text); }
.stat-ico.c2 { background: #e4f3fe; color: #1672c4; }
.stat-ico.c3 { background: var(--warn-soft); color: var(--warn); }
.stat-ico.c4 { background: var(--ok-soft); color: var(--ok); }
:root[data-theme="dark"] .stat-ico.c2 { background: #0f2638; color: #6cb8f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-ico.c2 { background: #0f2638; color: #6cb8f5; } }

.dash { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 16px; }
.dash-side .card + .card { margin: 0; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 14px; padding: 14px 10px; margin: 0 -10px; border-radius: 12px; color: var(--text); position: relative; }
.feed-item + .feed-item { border-top: 1px solid var(--line); }
.feed-item:hover { background: var(--surface-2); text-decoration: none; }
.feed-item > div { flex: 1; min-width: 0; }
.feed-item p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.feed-item.unread .mi-top strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.mi-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mi-top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-top time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.due-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.due-row + .due-row { border-top: 1px solid var(--line); }
.due-row div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.due-row small { color: var(--muted); }
.due-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--text-2); }

/* ---------- Profil (Social-Stil) ---------- */
.profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-1); margin-bottom: 20px; }
.cover { --h: 240; height: 200px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 50) 75% 55%) 55%, hsl(calc(var(--h) + 100) 80% 65%)); }
.cover-art { position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 120%, rgba(255,255,255,.35), transparent 40%), radial-gradient(circle at 85% -20%, rgba(255,255,255,.3), transparent 45%), radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: auto, auto, 16px 16px; }
.profile-head { display: flex; align-items: flex-end; gap: 26px; padding: 0 32px; margin-top: -64px; position: relative; flex-wrap: wrap; }
.profile-avatar { position: relative; flex-shrink: 0; }
.profile-avatar.small { margin: 0; }
.profile-avatar.editable { cursor: pointer; }
.profile-avatar.editable .av { transition: filter .2s; }
.profile-avatar.editable:hover .av { filter: brightness(.85); }
.avatar-cam { position: absolute; right: 6px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-2); transition: transform .2s var(--ease); }
.profile-avatar.small .avatar-cam { width: 28px; height: 28px; right: -2px; bottom: -2px; border-width: 2px; }
.avatar-cam:hover { transform: scale(1.08); }
.avatar-edit-row .avatar-cam { position: static; width: auto; height: 38px; border-radius: 10px; border: 0; }
.is-uploading .av { opacity: .5; }
.is-uploading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.profile-id { flex: 1; min-width: 240px; padding: 80px 0 8px; }
.profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name-row h1 { font-size: 1.9rem; font-weight: 800; }
.profile-title { margin: 4px 0 8px; font-size: 1.05rem; color: var(--text-2); font-weight: 500; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-actions { display: flex; gap: 8px; padding-bottom: 12px; flex-wrap: wrap; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 32px 0; border-top: 1px solid var(--line); }
.profile-stats > div { padding: 18px 0; text-align: center; display: flex; flex-direction: column; }
.profile-stats > div + div { border-left: 1px solid var(--line); }
.profile-stats strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.profile-stats span { color: var(--muted); font-size: .82rem; }
.profile-bio { margin: 0; padding: 0 32px 24px; font-size: .98rem; color: var(--text-2); max-width: 760px; }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.profile-side .card + .card { margin: 0; }
.avatar-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-wall a { transition: transform .15s var(--ease); }
.avatar-wall a:hover { transform: translateY(-2px) scale(1.05); }

.tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; overflow-x: auto; box-shadow: var(--sh-1); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 0; background: transparent; font: 600 .86rem "Inter", sans-serif; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .15s; }
.tabs button:hover { color: var(--text); background: var(--bg-2); }
.tabs button.is-active { background: var(--text); color: var(--surface); }
.tabs button em { font-style: normal; font-size: .7rem; background: color-mix(in srgb, currentColor 18%, transparent); padding: 1px 7px; border-radius: 99px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .3s var(--ease); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.fact span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.fact strong { font-weight: 600; overflow-wrap: anywhere; }
.summary-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.summary-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); text-align: left; transition: all .2s var(--ease); box-shadow: var(--sh-1); }
.summary-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-2); }
.summary-tile strong { font-size: 1.4rem; font-weight: 800; margin-top: 8px; }
.summary-tile span:last-child { color: var(--muted); font-size: .82rem; }
.st-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--sh-1); transition: box-shadow .2s; }
.asset:hover { box-shadow: var(--sh-2); }
.asset-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.asset-head div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.asset-head strong { font-size: 1rem; }
.asset-head small { color: var(--muted); }
.asset-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(91,91,247,.6); flex-shrink: 0; }
.asset dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.asset dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; align-items: center; }
.asset dt { color: var(--muted); }
.asset dd { margin: 0; font-weight: 600; text-align: right; display: flex; align-items: center; gap: 6px; }

/* ---------- Kollegen ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--text); overflow: hidden; transition: all .25s var(--ease); }
.person-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pc-cover { --h: 240; align-self: stretch; height: 70px; margin: 0 -18px 0; background: linear-gradient(120deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 60) 75% 62%)); }
.person-card .av { margin-top: -36px; margin-bottom: 12px; }
.person-card strong { font-size: 1rem; }
.pc-title { color: var(--muted); font-size: .86rem; margin: 2px 0 10px; }

/* ---------- Organigramm ---------- */
.org-wrap { overflow-x: auto; padding: 32px; }
.org, .org ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.org ul { padding-top: 26px; position: relative; }
.org li { position: relative; padding: 26px 8px 0; display: flex; flex-direction: column; align-items: center; }
.org > li { padding-top: 0; }
.org li::before, .org li::after { content: ""; position: absolute; top: 0; width: 50%; height: 26px; border-top: 2px solid var(--line-2); }
.org li::before { right: 50%; }
.org li::after { left: 50%; border-left: 2px solid var(--line-2); }
.org li:only-child::before, .org li:only-child::after { display: none; }
.org li:only-child { padding-top: 26px; }
.org > li:only-child { padding-top: 0; }
.org li:first-child::before, .org li:last-child::after { border: 0; }
.org li:last-child::before { border-right: 2px solid var(--line-2); border-radius: 0 10px 0 0; }
.org li:first-child::after { border-radius: 10px 0 0 0; }
.org ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 26px; border-left: 2px solid var(--line-2); }
.org li:only-child::before { display: block; right: auto; left: 50%; width: 0; border-top: 0; border-left: 2px solid var(--line-2); }
.org > li:only-child::before { display: none; }
.org-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); color: var(--text); min-width: 200px; position: relative; transition: all .2s var(--ease); }
.org-card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--sh-2); transform: translateY(-2px); }
.org-card.is-me { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.org-card div { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.org-card small { color: var(--muted); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-card em { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .68rem; font-weight: 700; background: var(--text); color: var(--surface); padding: 1px 8px; border-radius: 99px; z-index: 1; }

/* ---------- Mitteilungen (Postfach) ---------- */
.mail { display: grid; grid-template-columns: 400px 1fr; height: calc(100vh - 64px); }
.mail-list { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.mail-list-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 14px; }
.mail-list-head h1 { font-size: 1.4rem; }
.seg { display: flex; gap: 4px; margin: 0 20px 12px; padding: 4px; background: var(--bg-2); border-radius: 11px; }
.seg a { flex: 1; text-align: center; padding: 6px; border-radius: 8px; font-weight: 600; font-size: .84rem; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.mail-items { overflow-y: auto; flex: 1; padding: 0 10px 20px; }
.mail-item { display: flex; gap: 12px; padding: 14px 12px; border-radius: 12px; color: var(--text); position: relative; margin-bottom: 2px; }
.mail-item:hover { background: var(--bg-2); text-decoration: none; }
.mail-item.is-open { background: var(--accent-soft); }
.mail-item.unread::before { content: ""; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.mi-body { flex: 1; min-width: 0; }
.mi-subject { font-size: .9rem; margin-top: 1px; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-item.unread .mi-subject { font-weight: 700; }
.mail-item:not(.unread) .mi-top strong { font-weight: 500; color: var(--text-2); }
.mi-preview { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-read { overflow-y: auto; padding: 40px clamp(20px, 5vw, 72px); }
.letter { max-width: 760px; margin: 0 auto; animation: fadeUp .35s var(--ease); }
.letter-flag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--danger-soft); color: var(--danger); font-weight: 700; font-size: .8rem; margin-bottom: 14px; }
.letter h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 22px; }
.letter-from { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.letter-from div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.letter-from small, .letter-from time { color: var(--muted); font-size: .85rem; }
.letter-body { font-size: 1rem; line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.letter-body.boxed { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 20px 0; font-size: .92rem; }

/* ---------- Compose ---------- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.compose-main { display: flex; flex-direction: column; gap: 18px; }
.compose-main textarea { min-height: 280px; }
.compose-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.compose-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.compose-side .card + .card { margin: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; text-align: center; transition: all .15s; font-size: .88rem; color: var(--text-2); }
.radio-cards small { color: var(--muted); font-size: .7rem; }
.radio-cards input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.aud-panel { margin-top: 14px; display: none; }
.aud-panel.is-active { display: block; animation: fadeUp .25s var(--ease); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.check-row:hover { background: var(--bg-2); }
.check-row span { flex: 1; font-weight: 500; }
.check-row em { font-style: normal; color: var(--muted); font-size: .82rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.mini-search { margin-bottom: 8px; padding: 8px 10px !important; }
.pick-list { max-height: 280px; overflow-y: auto; margin: 0 -6px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; cursor: pointer; }
.pick:hover { background: var(--bg-2); }
.pick span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.pick small { color: var(--muted); }
.mail-preview { background: #f2f4f8; border-radius: 12px; padding: 18px; color: #141821; font-size: .82rem; }
.mp-brand { font-weight: 800; font-size: 1rem; margin-bottom: 12px; }
.mp-brand .brand-mark { font-size: .9rem; box-shadow: none; }
.mp-hi { color: #6b7280; margin: 0; }
.mp-h { font-weight: 700; font-size: .95rem; margin: 2px 0 12px; }
.mp-quote { border-left: 3px solid #5b5bf7; background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.mp-quote span { color: #4b5563; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mp-btn { display: inline-block; background: #5b5bf7; color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 8px; }

.detail-card { margin-bottom: 20px; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.detail-head h2 { margin: 6px 0 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.kpi strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }

/* ---------- Einstellungen / Admin-Formulare ---------- */
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.settings .card + .card { margin: 0; }
.settings-card, .form-section { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.settings-side h3, .fs-side h3 { margin-bottom: 6px; }
.settings-side p, .fs-side p { margin: 0; color: var(--muted); font-size: .88rem; }
.avatar-edit-row { display: flex; align-items: center; gap: 20px; position: relative; }
.form-card { padding: 0; }
.form-section { padding: 26px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-foot { padding: 18px 26px; border-top: 1px solid var(--line); background: var(--surface-2); display: flex; justify-content: flex-end; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.head-person { display: flex; align-items: center; gap: 18px; }
.asset-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 16px; margin-top: 20px; }
.asset-admin .card + .card { margin: 0; }
.add-form { padding: 16px; margin-bottom: 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------- Login ---------- */
.auth { min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 48px;
  background: #0d0c2b;
  background-image: radial-gradient(60% 60% at 80% 10%, rgba(139,92,246,.7), transparent 70%), radial-gradient(70% 70% at 10% 90%, rgba(91,91,247,.75), transparent 70%);
}
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.auth-art-inner { position: relative; max-width: 460px; }
.auth-art .brand { padding: 0 0 40px; font-size: 1.6rem; }
.auth-art h2 { font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin-bottom: 26px; letter-spacing: -.03em; }
.auth-art p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.auth-art ul { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 14px; }
.auth-art li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.88); }
.auth-art li .i { padding: 7px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12); }
.auth-art small { color: rgba(255,255,255,.5); }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; animation: fadeUp .45s var(--ease); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card > .muted { margin: 0 0 26px; }
.auth-foot { text-align: center; font-size: .85rem; margin-top: 22px; }

/* ---------- Animationen ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dash, .compose, .profile-body { grid-template-columns: minmax(0, 1fr); }
  .profile-side, .compose-side { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .summary-tiles { grid-template-columns: repeat(2, 1fr); }
  .asset-admin { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 80; transform: translateX(-100%); transition: transform .28s var(--ease); }
  .sidebar-open .sidebar { transform: none; box-shadow: var(--sh-3); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(8,10,20,.5); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sidebar-open .scrim { opacity: 1; pointer-events: auto; }
  .only-mobile { display: inline-grid; }
  a.only-mobile { display: inline-flex; }
  .search-trigger span, .search-trigger kbd, .user-btn-text { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .welcome { flex-direction: column; align-items: flex-start; padding: 24px; }
  .welcome-card { width: 100%; }
  .profile-head { padding: 0 20px; margin-top: -56px; gap: 14px; }
  .av-xl { width: 112px; height: 112px; font-size: 2.2rem; }
  .profile-stats { margin: 20px 20px 0; grid-template-columns: repeat(2, 1fr); }
  .profile-stats > div:nth-child(3) { border-left: 0; }
  .profile-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .profile-bio { padding: 0 20px 20px; }
  .cover { height: 140px; }
  .profile-id { padding-top: 0; }
  .main, .content { min-width: 0; overflow-x: hidden; }
  .mail { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 64px); }
  .mail.has-open .mail-list { display: none; }
  .mail:not(.has-open) .mail-read { display: none; }
  .mail-read { padding: 20px; }
  .settings-card, .form-section { grid-template-columns: 1fr; gap: 16px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .compose-opts, .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .menu-notify { width: calc(100vw - 32px); right: -60px; }
  .table th, .table td { padding: 11px 12px; }
  .input-icon { min-width: 0; flex: 1; }
}
@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat-ico { width: 38px; height: 38px; }
  .radio-cards { grid-template-columns: 1fr; }
  .radio-cards span { flex-direction: row; justify-content: flex-start; padding: 10px 12px; }
  h1 { font-size: 1.45rem; }
  .profile-name-row h1 { font-size: 1.5rem; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; }
}
