:root {
  --bg: #0c0e12;
  --bg2: #111419;
  --panel: #14171d;
  --panel2: #1b1f27;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --text: #eef0f3;
  --muted: rgba(238, 240, 243, .62);
  --faint: rgba(238, 240, 243, .40);
  --accent: #f47521;
  --accent-h: #ff8a3d;
  --accent-soft: rgba(244, 117, 33, .14);
  --accent2: #ffb35c;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: #ff9a52; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
code, .mono { font-family: "Cascadia Code", Consolas, ui-monospace, monospace; font-size: 13px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 22px 60px; }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 18px; color: var(--text); }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; display: block; flex: none; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel2);
  color: var(--text); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #232832; border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--accent-h); }
.btn.danger { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .45); color: #fca5a5; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn.icon { padding: 7px; line-height: 0; }
.btn svg, .ic { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: .5; cursor: default; }
input, textarea, select {
  width: 100%; background: #0f1216; border: 1px solid var(--line2); color: var(--text); border-radius: 8px;
  padding: 10px 12px; font: inherit; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; flex: none; padding: 0; accent-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
label.f { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650;
  background: rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap;
}
.pill.good { background: rgba(34, 197, 94, .14); color: #86efac; }
.pill.warn { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.pill.bad { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.pill.acc { background: var(--accent-soft); color: #ffb47e; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.tablewrap { overflow-x: auto; }
.kpi .v { font-size: 30px; font-weight: 760; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.notice { border-radius: 10px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); }
.notice.warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .35); }
.notice.bad { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); }
.notice.good { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); }
.bar { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.notes { white-space: pre-wrap; color: var(--muted); font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #20242d; border: 1px solid var(--line2);
  padding: 11px 18px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); z-index: 50; max-width: 90vw;
}
.modal-bg { position: fixed; inset: 0; background: rgba(4, 5, 8, .7); display: grid; place-items: center; z-index: 40; padding: 18px; }
.modal { width: min(620px, 100%); max-height: 88vh; overflow: auto; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.narrow { width: min(460px, 100%); }
.copy { cursor: pointer; }
@media (max-width: 720px) {
  .wrap { padding: 18px 14px 50px; }
  h1 { font-size: 24px; }
  .hide-sm { display: none; }
}

/* Profilbild / Initiale */
.av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover;
  font-size: 12px; font-weight: 700; color: #fff; background: #3a3f4a; vertical-align: middle; }
.av.lg { width: 44px; height: 44px; font-size: 17px; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04));
  background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
