/* VantaSuite – Plattform-Verwaltung (Superadmin) */
:root {
  color-scheme: light dark;
  --bg:#f5f6fa; --karte:#ffffff; --fg:#141726; --fg2:#3b4157; --grau:#6c7289; --linie:#e4e6ef; --linie2:#eef0f6;
  --akz:#5b4fe8; --akz2:#7c6cff; --akz-hell:#eeecff; --akz-text:#4a3fd1;
  --leiste:#0e1020; --leiste2:#171a2e; --leiste-fg:#a3a8c3;
  --gut:#13855a; --gut-hell:#e2f6ec; --warn:#b26100; --warn-hell:#fff1dc; --schlecht:#c4291c; --schlecht-hell:#fde8e6; --neutral-hell:#f0f1f6;
  --schatten:0 1px 2px rgba(20,23,38,.04), 0 2px 8px rgba(20,23,38,.05);
  --radius:14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#0b0d17; --karte:#13162a; --fg:#eceefa; --fg2:#c3c7dc; --grau:#8d93ad; --linie:#242842; --linie2:#1b1f36;
          --akz:#8b7fff; --akz2:#a49bff; --akz-hell:#211f45; --akz-text:#b4abff; --leiste:#080a14; --leiste2:#11142a;
          --gut:#4fd197; --gut-hell:#0f2d20; --warn:#f0ac52; --warn-hell:#33250f; --schlecht:#ff8d82; --schlecht-hell:#3a1714; --neutral-hell:#1b1f36; --schatten:none; }
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--fg); font:14.5px/1.55 "Inter","Segoe UI Variable","Segoe UI",system-ui,-apple-system,Roboto,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--akz-text); text-decoration:none; } a:hover { text-decoration:underline; }
.ic { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none; }

/* ---------- Seitenleiste */
.leiste { position:fixed; inset:0 auto 0 0; width:244px; background:linear-gradient(180deg,var(--leiste) 0%,var(--leiste2) 100%); color:var(--leiste-fg);
  display:flex; flex-direction:column; padding:20px 14px; z-index:5; border-right:1px solid rgba(255,255,255,.04); }
.marke { display:flex; gap:11px; align-items:center; color:#fff; padding:2px 8px 26px; text-decoration:none !important; }
.marke .logo { width:36px; height:36px; border-radius:11px; background:linear-gradient(140deg,#8f7dff 0%,#5b4fe8 55%,#3a2fb8 100%);
  display:grid; place-items:center; box-shadow:0 6px 18px rgba(91,79,232,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.marke .logo svg { width:20px; height:20px; }
.marke .wort { font-weight:750; font-size:1.08rem; letter-spacing:-.01em; line-height:1.1; } .marke .wort b { color:#a99fff; font-weight:750; }
.marke small { display:block; font-weight:500; color:var(--leiste-fg); font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; margin-top:3px; }
.leiste .nav-titel { font-size:.7rem; letter-spacing:.09em; text-transform:uppercase; color:#646a8a; padding:14px 10px 6px; }
.leiste nav { display:flex; flex-direction:column; gap:2px; flex:1; }
.leiste nav a { display:flex; gap:11px; align-items:center; padding:9px 11px; border-radius:9px; color:var(--leiste-fg); text-decoration:none; font-weight:500; position:relative; }
.leiste nav a:hover { background:rgba(255,255,255,.05); color:#fff; }
.leiste nav a.an { background:rgba(139,127,255,.16); color:#fff; }
.leiste nav a.an::before { content:""; position:absolute; left:-14px; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:#8b7fff; }
.leiste nav a .zahl-pille { margin-left:auto; font-size:.72rem; background:rgba(255,255,255,.08); color:#d6d9ec; padding:0 .45rem; border-radius:99px; }
.ich { display:flex; align-items:center; gap:10px; padding:12px 8px 0; border-top:1px solid rgba(255,255,255,.07); }
.ich-name { flex:1; color:#fff; font-size:.86rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .ich-name small { display:block; color:var(--leiste-fg); font-size:.74rem; }
.ich a { color:var(--leiste-fg); display:grid; place-items:center; width:30px; height:30px; border-radius:8px; } .ich a:hover { color:#fff; background:rgba(255,255,255,.06); }
.avatar { width:34px; height:34px; border-radius:10px; background:var(--akz-hell); color:var(--akz-text); display:grid; place-items:center; font-weight:700; font-size:.88rem; flex:none; letter-spacing:-.02em; }
.avatar.rund { border-radius:50%; } .avatar.gross { width:52px; height:52px; font-size:1.25rem; border-radius:14px; }
main { padding:28px 36px 64px; max-width:1360px; }
body.mit-leiste main { margin-left:244px; }
@media (max-width: 900px) {
  .leiste { position:sticky; top:0; width:auto; flex-direction:row; align-items:center; padding:8px 10px; gap:6px; overflow-x:auto; }
  .marke { padding:0 6px; } .marke .wort, .ich-name, .leiste .nav-titel { display:none; }
  .leiste nav { flex-direction:row; flex:1; } .leiste nav a span:not(.zahl-pille) { display:none; } .leiste nav a.an::before { display:none; }
  .ich { border:0; padding:0; }
  body.mit-leiste main { margin-left:0; } main { padding:18px 16px 50px; }
}

/* ---------- Seitenkopf */
h1 { font-size:1.6rem; margin:0; letter-spacing:-.025em; font-weight:750; } h2 { font-size:1.02rem; margin:0 0 .9rem; font-weight:700; letter-spacing:-.01em; } h3 { font-size:.9rem; margin:0 0 .6rem; font-weight:650; }
.grau { color:var(--grau); font-weight:400; }
.kopfzeile { display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; flex-wrap:wrap; margin-bottom:1.4rem; }
.kopfzeile p { margin:.25rem 0 0; color:var(--grau); }
.ueber { font-size:.76rem; font-weight:650; letter-spacing:.08em; text-transform:uppercase; color:var(--akz-text); margin-bottom:.25rem; }

/* ---------- Karten */
.karte { background:var(--karte); border:1px solid var(--linie); border-radius:var(--radius); padding:20px 22px; margin:0 0 20px; box-shadow:var(--schatten); }
.karte.schmal { max-width:25rem; margin:12vh auto; }
.karte-kopf { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; } .karte-kopf h2 { margin:0; }
.zwei { display:grid; grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr)); gap:20px; }
.zwei > .karte { margin-bottom:0; } .zwei + .karte, .zwei + section { margin-top:20px; }

/* ---------- Formulare & Knoepfe */
label { display:flex; flex-direction:column; gap:.3rem; font-size:.84rem; color:var(--fg2); margin-bottom:.8rem; font-weight:550; }
label span[title], th span[title], dt span[title], .titel span[title] { text-decoration:underline dotted; text-decoration-color:var(--grau); cursor:help; }
input, select, textarea { font:inherit; color:var(--fg); background:var(--karte); border:1px solid var(--linie); border-radius:10px; padding:.55rem .7rem; min-height:2.5rem; transition:border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color:#cfd2e2; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--akz); box-shadow:0 0 0 3px var(--akz-hell); }
.felder { display:grid; grid-template-columns:repeat(auto-fill, minmax(15rem, 1fr)); gap:0 1.1rem; } .felder .breit { grid-column:1/-1; }
label.haken { flex-direction:row; align-items:center; gap:.55rem; color:var(--fg); font-weight:500; } label.haken input { min-height:0; width:1.05rem; height:1.05rem; accent-color:var(--akz); }
input[type=checkbox] { accent-color:var(--akz); width:1.05rem; height:1.05rem; min-height:0; }
button, .knopf { font:inherit; font-weight:650; background:linear-gradient(180deg,var(--akz2),var(--akz)); color:#fff; border:1px solid var(--akz); border-radius:10px; padding:.55rem 1.1rem;
  cursor:pointer; text-decoration:none !important; display:inline-flex; align-items:center; gap:.45rem; box-shadow:0 1px 2px rgba(20,23,38,.12), inset 0 1px 0 rgba(255,255,255,.18); transition:filter .15s, transform .05s; }
button:hover, .knopf:hover { filter:brightness(1.06); } button:active, .knopf:active { transform:translateY(1px); }
button.zweit, .knopf.zweit { background:var(--karte); color:var(--fg); border-color:var(--linie); box-shadow:0 1px 2px rgba(20,23,38,.05); }
button.zweit:hover, .knopf.zweit:hover { border-color:#cfd2e2; filter:none; }
button.gut { background:var(--gut); border-color:var(--gut); }
button.gefahr { background:var(--karte); color:var(--schlecht); border-color:var(--linie); box-shadow:none; } button.gefahr:hover { background:var(--schlecht-hell); filter:none; }
button.klein, .knopf.klein { padding:.28rem .7rem; font-size:.84rem; border-radius:8px; }
button:disabled { opacity:.45; cursor:help; filter:none; }
.knoepfe { display:flex; gap:.6rem; margin-top:.6rem; flex-wrap:wrap; align-items:center; }
.filter { display:flex; gap:.55rem; margin-bottom:1.1rem; flex-wrap:wrap; } .filter input { flex:1; min-width:14rem; }

/* ---------- Kennzahlen */
.kacheln { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:16px; margin-bottom:20px; }
.kachel { background:var(--karte); border:1px solid var(--linie); border-radius:var(--radius); padding:16px 18px 15px; box-shadow:var(--schatten); position:relative; overflow:hidden; }
.kachel .titel { color:var(--grau); font-size:.82rem; font-weight:600; display:flex; justify-content:space-between; align-items:center; gap:.5rem; }
.kachel .ki { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--akz-hell); color:var(--akz-text); }
.kachel .ki .ic { width:16px; height:16px; }
.kachel .zahl { font-size:1.95rem; font-weight:750; letter-spacing:-.03em; margin:.35rem 0 .1rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.kachel .unter { font-size:.8rem; color:var(--grau); }
.kachel.akzent { background:radial-gradient(120% 140% at 100% 0%, #8f7dff 0%, #5b4fe8 45%, #3127a6 100%); color:#fff; border:0; box-shadow:0 10px 30px rgba(91,79,232,.32); }
.kachel.akzent .titel, .kachel.akzent .unter { color:rgba(255,255,255,.78); } .kachel.akzent .ki { background:rgba(255,255,255,.16); color:#fff; }
.balken { height:7px; border-radius:99px; background:var(--neutral-hell); overflow:hidden; margin-top:.45rem; } .balken i { display:block; height:100%; background:linear-gradient(90deg,var(--akz2),var(--akz)); border-radius:99px; }
.balken.voll i { background:linear-gradient(90deg,#f5b14a,var(--warn)); }

/* ---------- Tabellen */
.tabelle-huelle { overflow-x:auto; background:var(--karte); border:1px solid var(--linie); border-radius:var(--radius); box-shadow:var(--schatten); }
.tabelle-huelle.flach { border:0; box-shadow:none; border-radius:0; margin:0 -22px; padding:0 22px; }
table.liste { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.liste th, .liste td { text-align:left; padding:.7rem .75rem; border-bottom:1px solid var(--linie2); vertical-align:middle; white-space:nowrap; }
.liste th { font-size:.72rem; color:var(--grau); font-weight:650; text-transform:uppercase; letter-spacing:.06em; }
.tabelle-huelle > .liste th { background:var(--bg); }
.liste td.r, .liste th.r { text-align:right; } .liste tr:last-child td { border-bottom:0; }
.liste tbody tr.link { cursor:pointer; transition:background .12s; } .liste tbody tr.link:hover { background:var(--bg); }
.liste.klein td { font-size:.86rem; padding:.45rem .5rem; white-space:normal; }
.karte .liste th, .karte .liste td { padding:.6rem .6rem; }
.fs { display:flex; gap:11px; align-items:center; } .fs strong { color:var(--fg); }
.fs small { display:block; color:var(--grau); white-space:normal; max-width:15rem; font-size:.8rem; }
tr.aus { opacity:.5; }
.liste td.chips { min-width:150px; max-width:240px; }

/* ---------- Pillen, Chips, Kurven */
.pille { display:inline-flex; align-items:center; gap:.35rem; font-size:.74rem; padding:.16rem .6rem; border-radius:99px; font-weight:650; background:var(--neutral-hell); color:var(--grau); white-space:nowrap; }
.pille::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.st-aktiv, .ak-aktiv { background:var(--gut-hell); color:var(--gut); } .st-test, .ak-ruhig { background:var(--akz-hell); color:var(--akz-text); }
.st-gesperrt, .ak-nie { background:var(--warn-hell); color:var(--warn); } .st-gekuendigt, .ak-weg { background:var(--schlecht-hell); color:var(--schlecht); }
.pille.demo::before, .pille.ak-ohne::before { display:none; }
.chip { display:inline-block; font-size:.73rem; padding:.08rem .5rem; border-radius:6px; background:var(--neutral-hell); color:var(--fg2); margin:2px 3px 0 0; white-space:nowrap; font-weight:550; }
td.chips, .chips { white-space:normal; }
.spark { display:block; } .spark-l { fill:none; stroke:var(--akz); stroke-width:1.7; stroke-linejoin:round; } .spark-f { fill:var(--akz-hell); stroke:none; }

/* ---------- Meldungen */
.meldung { background:var(--karte); border:1px solid var(--linie); border-left:4px solid var(--gut); padding:.8rem 1.05rem; border-radius:12px; margin:0 0 1.2rem; box-shadow:var(--schatten); }
.meldung.fehler { border-left-color:var(--schlecht); } .meldung.zugang { border-left-color:var(--akz); background:linear-gradient(90deg,var(--akz-hell),var(--karte) 60%); }
.hinweis { background:var(--akz-hell); color:var(--fg2); border-radius:12px; padding:.75rem 1rem; margin:.8rem 0 .4rem; font-size:.9rem; }
dl.werte { display:grid; grid-template-columns:max-content 1fr; gap:.5rem 1.3rem; margin:0; } dl.werte dt { color:var(--grau); } dl.werte dd { margin:0; }
dialog { border:0; padding:0; background:transparent; width:min(50rem, 94vw); } dialog::backdrop { background:rgba(8,10,20,.6); backdrop-filter:blur(3px); }
dialog .karte { box-shadow:0 24px 60px rgba(8,10,20,.35); }
form.inline { display:inline; }
code { font-family:ui-monospace,"Cascadia Code",SFMono-Regular,Consolas,monospace; font-size:.88em; }
code.gross { font-size:1.15rem; padding:.2rem .5rem; background:var(--karte); border:1px solid var(--linie); border-radius:8px; letter-spacing:.03em; }
pre.ablauf { white-space:pre-wrap; font-size:.8rem; background:var(--bg); padding:.8rem; border-radius:10px; max-height:22rem; overflow:auto; }
details { margin:.6rem 0; } summary { cursor:pointer; color:var(--grau); }
.summe { font-size:1.5rem; font-weight:750; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.leer { text-align:center; color:var(--grau); padding:2.4rem 1rem; }

/* ---------- Kundenseite */
.kunde-kopf { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.kunde-kopf .zeile { display:flex; gap:.45rem; flex-wrap:wrap; align-items:center; margin-top:.4rem; color:var(--grau); font-size:.9rem; }
.reiter { display:flex; gap:4px; border-bottom:1px solid var(--linie); margin:18px 0 22px; position:sticky; top:0; background:var(--bg); z-index:3; overflow-x:auto; }
.reiter a { padding:.7rem .95rem; color:var(--grau); font-weight:600; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; text-decoration:none; }
.reiter a:hover { color:var(--fg); } .reiter a.an { color:var(--akz-text); border-bottom-color:var(--akz); }
section[id], form[id] { scroll-margin-top:64px; }
.kennzeile { display:grid; grid-template-columns:repeat(auto-fit, minmax(125px, 1fr)); gap:10px; margin-bottom:18px; }
.kennzeile div { background:var(--bg); border-radius:11px; padding:11px 13px; } .kennzeile span { display:block; font-size:.76rem; } .kennzeile strong { font-size:1.12rem; letter-spacing:-.01em; }
.tagbalken { display:flex; align-items:flex-end; gap:3px; height:96px; padding:6px 0; border-bottom:1px solid var(--linie); margin-bottom:6px; }
.tagbalken i { flex:1; background:linear-gradient(180deg,var(--akz2),var(--akz)); border-radius:4px 4px 0 0; min-width:4px; } .tagbalken i.null { background:var(--linie); }
.bereiche .balken { margin:0; }

/* ---------- Anmeldung */
body.ohne-leiste main { max-width:none; padding:0; }
.login { min-height:100vh; display:grid; grid-template-columns:1.1fr 1fr; }
.login-marke { background:radial-gradient(120% 90% at 0% 0%, #2a2366 0%, #0e1020 55%, #080a14 100%); color:#fff; padding:56px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.login-marke::after { content:""; position:absolute; width:520px; height:520px; right:-160px; bottom:-200px; border-radius:50%; background:radial-gradient(circle, rgba(143,125,255,.45), transparent 65%); }
.login-marke h2 { font-size:2.2rem; letter-spacing:-.03em; line-height:1.15; max-width:28rem; margin:0 0 1rem; font-weight:750; }
.login-marke p { color:#b9bdd8; max-width:26rem; margin:0; }
.login-form { display:grid; place-items:center; padding:40px 24px; background:var(--bg); }
.login-form form { width:min(24rem, 100%); }
.login-form h1 { margin-bottom:.3rem; } .login-form p.grau { margin:0 0 1.6rem; }
.login-form button { width:100%; justify-content:center; padding:.7rem; margin-top:.4rem; }
@media (max-width: 860px) { .login { grid-template-columns:1fr; } .login-marke { padding:28px; min-height:auto; } .login-marke h2 { font-size:1.5rem; } }
.liste th { white-space:normal; line-height:1.25; }
.liste td .balken { min-width:4.5rem; }
.reiter { overflow-y:hidden; scrollbar-width:none; } .reiter::-webkit-scrollbar { display:none; }
