/* Konstivo – Designsystem (Stand 25.11.2026, Farben 25.11. abends: Indigo + Cyan auf Nachtblau wie Bizzscaling/Mapsdock)
   Gleiche Linie wie BX Digital Solutions: Ink-Flaechen, Sora/Inter, Kicker, Pill-Buttons.
   Die App nimmt Haupt- und Akzentfarbe der Community (--brand / --accent) auf. */

:root {
  --brand: #6366f1;
  --accent: #22d3ee;
  --ink: #070b16; --ink-2: #0b1120; --ink-3: #16213a;
  /* Plattform immer im dunklen Look der Startseite */
  --bg: #070b16; --surface: #111a2e; --surface-2: #14203a; --sunk: #1a2640;
  --text: #e6ebf5; --muted: #93a0ba; --faint: #6b7896;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.05);
  --pos: #2FD39A; --neg: #FF6B6B; --warn: #F2B84B;
  --pos-wash: rgba(47,211,154,.12); --neg-wash: rgba(255,107,107,.12);
  /* Markenfarbe der Community, auf Dunkel aufgehellt */
  --brand-ink: color-mix(in srgb, var(--brand) 62%, #ffffff);
  --brand-2: color-mix(in srgb, var(--brand) 55%, var(--accent));
  --brand-wash: color-mix(in srgb, var(--brand) 18%, transparent);
  --grad: linear-gradient(100deg, var(--brand), var(--brand-2));
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -30px rgba(0,0,0,.9);
  --radius: 16px; --radius-sm: 10px;
  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 248px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h2 { font-size: 1.02rem; letter-spacing: -.01em; }
h3 { font-size: .95rem; }
p { margin: 0; }
.num, .n, td.n, .kpi .v { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .84rem; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; border-radius: 6px; }
.kicker { font: 600 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .9rem/1 var(--f-body);
  background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer;
  text-decoration: none; transition: transform .15s, filter .15s, box-shadow .15s; align-self: flex-start;
  box-shadow: 0 10px 28px -14px var(--brand-2); white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.alt, .btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn.alt:hover, .btn-ghost:hover { background: var(--surface-2); filter: none; }
.btn-sm { padding: 8px 13px; font-size: .82rem; }
.btn-block { width: 100%; align-self: stretch; }
button.link { font: inherit; background: none; border: 0; color: var(--brand-ink); cursor: pointer; padding: 0; }
label { font-size: .8rem; font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=date], input:not([type]), select, textarea {
  font: 400 .92rem/1.3 var(--f-body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; min-height: 42px; transition: border-color .15s, box-shadow .15s; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-wash); }
input[type=file] { font: inherit; font-size: .88rem; color: var(--muted); }
input[type=color] { width: 56px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
textarea { resize: vertical; min-height: 96px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row > .stack { flex: 1 1 150px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--text); font-weight: 400; }

/* ---------- Meldungen ---------- */
.ok, .alert, .note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; margin: 0; }
.ok { background: var(--pos-wash); color: var(--text); box-shadow: inset 3px 0 0 var(--pos); }
.alert { background: var(--neg-wash); color: var(--text); box-shadow: inset 3px 0 0 var(--neg); }
.note { background: var(--surface-2); color: var(--muted); box-shadow: inset 3px 0 0 var(--line); }
.dev { font-size: .8rem; word-break: break-all; background: var(--sunk); padding: 10px; border-radius: var(--radius-sm); }

/* ---------- App-Rahmen ---------- */
.demobar { position: sticky; top: 0; z-index: 60; background: linear-gradient(90deg, var(--ink), var(--ink-3)); color: #dbe2ee;
  font-size: .78rem; text-align: center; padding: 7px 16px; letter-spacing: .02em; }
.demobar b { color: #fff; font-weight: 600; }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #c8d0e0;
  display: flex; flex-direction: column; padding: 20px 14px; gap: 22px; border-right: 1px solid rgba(255,255,255,.04); }
.has-demobar .side { top: 31px; height: calc(100vh - 31px); }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; color: #fff; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 .95rem/1 var(--f-head);
  color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--accent))); flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.brand-name { font: 600 .98rem/1.2 var(--f-head); letter-spacing: -.01em; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side .navlabel { font: 600 .66rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #6b7896; padding: 14px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #B4BAC6;
  text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.side nav a svg { width: 18px; height: 18px; opacity: .75; flex-shrink: 0; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a[aria-current=page] { background: rgba(255,255,255,.08); color: #fff;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--brand) 60%, #fff); }
.side nav a[aria-current=page] svg { opacity: 1; color: color-mix(in srgb, var(--brand) 50%, #fff); }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.06); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem/1 var(--f-body);
  background: rgba(255,255,255,.08); color: #fff; flex-shrink: 0; }
.me .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me .who b { color: #fff; font-weight: 500; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { font-size: .75rem; color: #7b88a5; }
.me form { margin-left: auto; }
.iconbtn { background: none; border: 0; color: #8a97b2; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.iconbtn:hover { color: #fff; background: rgba(255,255,255,.06); }
.iconbtn svg { width: 18px; height: 18px; }
.side .powered { font-size: .7rem; color: #5B6270; padding: 0 10px; }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 36px) 56px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .stack { gap: 8px; }
.page-head p { color: var(--muted); font-size: .92rem; }
.app-foot { margin-top: auto; padding: 18px clamp(16px, 3vw, 36px); color: var(--faint); font-size: .76rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line-2); }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head a { font-size: .84rem; font-weight: 500; text-decoration: none; }
.card-head a:hover { text-decoration: underline; }
.card.flush { padding: 0; } .card.flush .card-head { padding: 18px 20px 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.inactive { opacity: .55; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; min-width: 0; }
.kpi .l { font-size: .78rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .l svg { width: 15px; height: 15px; color: var(--faint); }
.kpi .v { font: 600 1.55rem/1.1 var(--f-head); letter-spacing: -.02em; }
.kpi .s { font-size: .78rem; color: var(--faint); }
.kpi .spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 46px; opacity: .9; }
.kpi .spark path.a { fill: color-mix(in srgb, var(--brand) 14%, transparent); }
.kpi .spark path.l { fill: none; stroke: var(--brand-ink); stroke-width: 1.6; }

/* Fakten-Liste */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 22px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts dt { font-size: .74rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: .95rem; }

/* Kurve */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line-2); }
.chart .axis text { fill: var(--faint); font: 500 10px var(--f-body); }
.chart .zero { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .area { fill: url(#eqfill); }
.chart .line { fill: none; stroke: var(--brand-ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--surface); stroke: var(--brand-ink); stroke-width: 2.2; }
.chart-legend { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.chart-legend b { color: var(--text); font-weight: 600; }
.chart-legend b.pos { color: var(--pos); } .chart-legend b.neg { color: var(--neg); }

/* Kalender-Heatmap */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 26px; }
.cal-month h3 { font: 600 .8rem/1 var(--f-body); color: var(--muted); margin-bottom: 10px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .wd { font-size: .62rem; color: var(--faint); text-align: center; padding-bottom: 2px; }
.cal-grid .d { aspect-ratio: 1; border-radius: 6px; background: var(--sunk); position: relative; display: grid; place-items: center;
  font-size: .64rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.cal-grid .d.e { background: transparent; }
.cal-grid .d.p { color: #fff; background: color-mix(in srgb, var(--pos) calc(var(--i) * 100%), var(--sunk)); }
.cal-grid .d.m { color: #fff; background: color-mix(in srgb, var(--neg) calc(var(--i) * 100%), var(--sunk)); }
.cal-grid .d.lo { color: var(--text); }
.cal-legend { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--faint); }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Balken */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 130px) 1fr 86px 64px; gap: 10px; align-items: center; font-size: .84rem; }
.bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.bt { position: relative; height: 10px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.bf { display: block; height: 100%; border-radius: 99px; }
.bv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bc { text-align: right; font-size: .74rem; color: var(--faint); }
.pos-b { background: linear-gradient(90deg, color-mix(in srgb, var(--pos) 55%, transparent), var(--pos)); }
.neg-b { background: linear-gradient(90deg, color-mix(in srgb, var(--neg) 55%, transparent), var(--neg)); }

/* Tagesbalken */
.days { display: flex; align-items: center; gap: 3px; height: 120px; position: relative; }
.days::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.days .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; min-width: 3px; }
.days .col span { display: block; border-radius: 3px; }
.days .col .up { margin-top: auto; } .days .col.top { justify-content: flex-end; flex-direction: column; }

/* Tabellen */
.tbl { overflow-x: auto; margin: 0 -20px; }
.card.flush .tbl { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { padding: 11px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
th:first-child, td:first-child { padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
thead th { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); border-bottom: 1px solid var(--line); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.n { text-align: right; }
td a { text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }
tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--neg); }
tr.me td { background: var(--brand-wash); font-weight: 600; }
.side-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.side-pill.long { color: var(--pos); background: var(--pos-wash); } .side-pill.short { color: var(--neg); background: var(--neg-wash); }
.tag { display: inline-block; font-size: .74rem; padding: 3px 9px; border-radius: 99px; background: var(--brand-wash); color: var(--brand-ink); font-weight: 500; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .avatar { width: 28px; height: 28px; font-size: .72rem; background: var(--brand-wash); color: var(--brand-ink); }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: .8rem; background: var(--sunk); color: var(--muted); }
.rank.r1 { background: linear-gradient(135deg, #F5D27A, #C9962C); color: #3A2A06; }
.rank.r2 { background: linear-gradient(135deg, #E6E9EE, #A8AFBA); color: #23262C; }
.rank.r3 { background: linear-gradient(135deg, #E9B68C, #A96B3C); color: #2E1A0B; }
.score { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.score .bt { flex: 1; height: 6px; } .score .bf { background: var(--brand-ink); }
.score b { width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  background: var(--sunk); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-breached { color: var(--neg); background: var(--neg-wash); } .b-passed { color: var(--pos); background: var(--pos-wash); }
.b-running { color: var(--brand-ink); background: var(--brand-wash); } .b-tight { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Prop-Karten */
.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.propcard { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.ring { width: 92px; height: 92px; position: relative; }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--sunk); } .ring .val { stroke: var(--brand-ink); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.state-passed .ring .val { stroke: var(--pos); } .state-breached .ring .val { stroke: var(--neg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .lbl b { font: 600 1.05rem/1 var(--f-head); } .ring .lbl span { font-size: .62rem; color: var(--faint); display: block; margin-top: 3px; }
.propmeta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.propmeta .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.propmeta .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room { display: flex; flex-direction: column; gap: 5px; }
.room .bt { height: 6px; }
.room .bf { background: var(--pos); } .room.tight .bf { background: var(--warn); } .room.out .bf { background: var(--neg); }
.room .lbls { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.propmini { padding: 12px 0; border-bottom: 1px solid var(--line-2); } .propmini:last-child { border-bottom: 0; padding-bottom: 0; }
.propmini .propcard { grid-template-columns: 64px 1fr; } .propmini .ring, .propmini .ring svg { width: 64px; height: 64px; }
.propmini .ring circle { stroke-width: 7; } .propmini .ring .lbl b { font-size: .82rem; } .propmini .ring .lbl span { display: none; }

/* Kommentare */
.comment { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.comment .avatar { background: var(--brand-wash); color: var(--brand-ink); }
.comment .bubble { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 4px 14px 14px 14px; padding: 10px 14px; }
.comment .meta { font-size: .75rem; color: var(--faint); margin-bottom: 3px; }
.pre { white-space: pre-wrap; }

/* Segment-Umschalter, Filter */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--sunk); border-radius: 999px; }
.seg a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 500; }
.seg a[aria-current=page] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }

/* Werkzeuge */
.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tools li a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: var(--surface-2); transition: border-color .15s, transform .15s; }
.tools li a:hover { border-color: var(--brand-ink); transform: translateY(-1px); }
.tools .ti { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand-ink); font: 700 .9rem/1 var(--f-head); flex-shrink: 0; }
.tools .tn { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; } .tools .tn b { font-weight: 600; }
.tools .ext { width: 16px; height: 16px; color: var(--faint); }

/* Anmeldung (geteilt) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; background: var(--ink); color: #dbe2ee; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%); }
.auth-art::after { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; bottom: -240px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%); opacity: .6; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.auth-art h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; max-width: 15ch; line-height: 1.12; }
.auth-art .lead { color: #aeb8cd; max-width: 46ch; margin-top: 14px; }
.auth-art .mini { margin-top: 32px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; max-width: 420px; backdrop-filter: blur(8px); }
.auth-art .mini .chart .line { stroke: color-mix(in srgb, var(--brand) 50%, #fff); }
.auth-art .mini .chart .area { fill: url(#eqfill2); }
.auth-art .mini-k { display: flex; gap: 22px; margin-bottom: 10px; }
.auth-art .mini-k div { display: flex; flex-direction: column; } .auth-art .mini-k b { color: #fff; font: 600 1.15rem/1.2 var(--f-head); }
.auth-art .mini-k span { font-size: .72rem; color: #8a97b2; }
.auth-art .fine { font-size: .74rem; color: #6b7896; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; background: var(--bg); }
.auth-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-box h1 { font-size: 1.7rem; }
.auth-box .card { padding: 26px; }

/* ---------- Produktseite (Hauptdomain) ---------- */
.site { background: var(--ink); color: #e3e8f2; }
.site a { color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,12,16,.78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255,255,255,.07); }
.site-header .in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo-k { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 600 1.12rem/1 var(--f-head); letter-spacing: -.02em; color: #fff; }
.logo-k svg { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: .9rem; }
.site-nav > a:not(.btn) { text-decoration: none; opacity: .75; } .site-nav > a:not(.btn):hover { opacity: 1; }
.k-grad { background: linear-gradient(100deg, #818cf8 0%, #60a5fa 50%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site .btn { background: linear-gradient(100deg, #6366f1, #3b82f6); color: #fff; box-shadow: 0 10px 30px -12px rgba(99,102,241,.7); }
.site .btn-ghost { background: transparent; color: #e3e8f2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.site .btn-ghost:hover { background: rgba(255,255,255,.06); }
.site .btn-lg { padding: 16px 26px; font-size: 1rem; }
.site .kicker { color: #22d3ee; }
.s-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 0; }
.s-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); }
.s-hero::after { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(circle, rgba(34,211,238,.20), rgba(99,102,241,.12) 40%, transparent 68%); pointer-events: none; }
.s-hero .wrap { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.s-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; max-width: 17ch; color: #fff; }
.s-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #aeb8cd; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-note { font-size: .8rem; color: #7b88a5; }
.mock { position: relative; margin-top: 56px; width: min(1080px, 100%); border-radius: 18px 18px 0 0; padding: 10px 10px 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02)); box-shadow: 0 -20px 80px -30px rgba(34,211,238,.35); }
.mock-in { border-radius: 12px 12px 0 0; overflow: hidden; background: #0b1120; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; display: grid; grid-template-columns: 180px 1fr; text-align: left; min-height: 360px; }
.mock-side { background: #070b16; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid rgba(255,255,255,.05); }
.mock-side .b { display: flex; align-items: center; gap: 8px; color: #fff; font: 600 .8rem/1 var(--f-head); margin-bottom: 14px; }
.mock-side .b i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #6366f1, #22d3ee); display: block; }
.mock-side span { font-size: .72rem; color: #8a97b2; padding: 7px 8px; border-radius: 7px; }
.mock-side span.on { background: rgba(255,255,255,.07); color: #fff; }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mock-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-k div { background: #121c32; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.mock-k b { display: block; color: #fff; font: 600 1rem/1.2 var(--f-head); } .mock-k span { font-size: .64rem; color: #7b88a5; }
.mock-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; }
.mock-card { background: #121c32; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 12px; }
.mock-card h4 { margin: 0 0 8px; font: 600 .7rem/1 var(--f-body); color: #93a0ba; letter-spacing: .04em; }
.mock-card .chart .line { stroke: #22d3ee; } .mock-card .chart .area { fill: url(#mockfill); }
.mock-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mock-heat i { aspect-ratio: 1; border-radius: 3px; background: #1a2640; display: block; }
.mock-heat i.p1 { background: rgba(47,211,154,.35); } .mock-heat i.p2 { background: rgba(47,211,154,.75); } .mock-heat i.m1 { background: rgba(255,107,107,.45); }
.s-band { border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); background: #0C0E13; }
.s-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.s-band div { display: flex; flex-direction: column; gap: 4px; } .s-band b { color: #fff; font: 600 1.05rem/1.2 var(--f-head); } .s-band span { font-size: .84rem; color: #8a97b2; }
.s-sec { padding: clamp(64px, 8vw, 104px) 0; }
.s-sec.light { background: #eef2f8; color: #0b1120; } .s-sec.light .kicker { color: #4f46e5; } .s-sec.light .lead, .s-sec.light .muted { color: #56627d; }
.s-sec h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.03em; max-width: 20ch; }
.s-sec .lead { color: #aeb8cd; font-size: 1.1rem; max-width: 62ch; margin-top: 14px; }
.s-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 44px; }
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mod { background: linear-gradient(180deg, #111a2e, #0b1120); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.mod::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -130px; background: radial-gradient(circle, rgba(34,211,238,.14), transparent 70%); }
.mod .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(99,102,241,.16); color: #a5b4fc; border: 1px solid rgba(99,102,241,.3); }
.mod .ic svg { width: 22px; height: 22px; }
.mod h3 { font-size: 1.25rem; color: #fff; } .mod h3 small { font: 500 .8rem/1 var(--f-body); color: #7b88a5; margin-left: 6px; }
.mod p { color: #a3aec6; }
.mod ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: #c8d0e0; }
.mod li { display: flex; gap: 10px; } .mod li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: rgba(34,211,238,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.1 4.8-4.8' fill='none' stroke='%2322d3ee' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.step { border-top: 1px solid #D9D5CC; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.step::before { counter-increment: st; content: "0" counter(st); font: 600 .8rem/1 var(--f-head); color: #22d3ee; letter-spacing: .08em; }
.step h3 { font-size: 1.1rem; } .step p { color: #56627d; font-size: .94rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid #dde3ee; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.hot { background: #0b1120; color: #e3e8f2; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(14,17,22,.55); position: relative; }
.plan.hot::before { content: attr(data-tag); position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: rgba(34,211,238,.14); color: #22d3ee; }
.plan h3 { font-size: 1.2rem; } .plan .price { font: 600 2.6rem/1 var(--f-head); letter-spacing: -.03em; } .plan .price small { font: 500 .9rem/1 var(--f-body); color: #8A909B; margin-left: 4px; }
.plan .cap { font-size: .86rem; color: #56627d; } .plan.hot .cap { color: #93a0ba; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; flex: 1; }
.plan li { display: flex; gap: 10px; } .plan li::before { content: "✓"; color: #4f46e5; font-weight: 700; } .plan.hot li::before { color: #22d3ee; }
.plan .btn { align-self: stretch; } .s-sec.light .plan:not(.hot) .btn { background: #0b1120; color: #fff; box-shadow: none; }
.plan-note { margin-top: 22px; font-size: .88rem; color: #56627d; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nos div { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; background: #0b1120; font-size: .92rem; }
.nos svg { width: 20px; height: 20px; color: #FF6B6B; flex-shrink: 0; }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(56px, 7vw, 88px) 24px; border-radius: 28px; background: radial-gradient(ellipse at 50% 0%, rgba(34,211,238,.18), transparent 60%), #0b1120; border: 1px solid rgba(255,255,255,.07); }
.site-foot { border-top: 1px solid rgba(255,255,255,.07); padding: 28px 0 40px; color: #6b7896; font-size: .82rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 80; transform: translateX(-100%); transition: transform .25s; height: 100vh; top: 0; }
  .has-demobar .side { top: 0; height: 100vh; }
  #navtoggle:checked ~ .shell .side { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.5); }
  #navtoggle:checked ~ .shell .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
  .has-demobar .topbar { top: 31px; }
  .topbar label { cursor: pointer; padding: 6px; border-radius: 8px; display: grid; } .topbar label svg { width: 22px; height: 22px; }
  .topbar .brand-name { color: #fff; }
  .auth { grid-template-columns: 1fr; } .auth-art { min-height: auto; padding: 28px 20px; } .auth-art .mini, .auth-art .fine { display: none; }
  .auth-art h2 { font-size: 1.5rem; margin-top: 18px; }
  .mods, .plans, .trust { grid-template-columns: 1fr; } .steps, .s-band .wrap { grid-template-columns: 1fr 1fr; }
  .site-nav > a:not(.btn) { display: none; }
  .mock-in { grid-template-columns: 1fr; } .mock-side { display: none; }
}
@media (max-width: 700px) {
  .grid2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; } .filters .btn { grid-column: span 2; align-self: stretch; }
  .kpi .v { font-size: 1.25rem; } .kpi .spark { display: none; }
  .bar-row { grid-template-columns: 74px 1fr 78px; } .bc { display: none; }
  .mock-k { grid-template-columns: 1fr 1fr; } .mock-row { grid-template-columns: 1fr; }
  .steps, .s-band .wrap, .nos { grid-template-columns: 1fr; }
  .propcard { grid-template-columns: 76px 1fr; } .ring, .ring svg { width: 76px; height: 76px; }
  .content { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Dunkler Startseiten-Look fuer die Plattform ---- */
.main { position: relative; isolation: isolate; overflow-x: clip; }
.main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 75%); }
.main::after { content: ""; position: absolute; width: 900px; height: 700px; left: 50%; top: -420px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-ink) 18%, transparent), color-mix(in srgb, var(--brand-2) 10%, transparent) 40%, transparent 68%); }
.side { background: #05080f; border-right: 1px solid rgba(255,255,255,.06); }
.brand-mark { background: var(--grad); color: #fff; }
.side nav a[aria-current=page] { background: rgba(255,255,255,.06); box-shadow: inset 3px 0 0 var(--brand-ink); }
.side nav a[aria-current=page] svg { color: var(--brand-ink); }
.card, .kpi { background: linear-gradient(180deg, #101a2d, #0d1526); border-color: rgba(255,255,255,.07); }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-ink) 50%, transparent), transparent); }
.page-head h1 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -.03em; }
.kicker { letter-spacing: .18em; }
thead th { background: rgba(255,255,255,.02); }
tbody tr:hover { background: rgba(255,255,255,.025); }
input[type=text], input[type=email], input[type=url], input[type=date], input:not([type]), select, textarea { background: #0b1120; border-color: rgba(148,163,184,.14); }
select option { background: #111a2e; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.chart .line { stroke: var(--brand-ink); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brand-ink) 45%, transparent)); }
.ring .val { stroke: var(--brand-ink); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--brand-ink) 40%, transparent)); }
.score .bf, .meter span { background: var(--grad); }
.note { background: rgba(255,255,255,.03); color: var(--muted); }
.app-foot { border-top-color: rgba(255,255,255,.05); }
.auth-form { background: #070b16; }
.auth-box .card { background: linear-gradient(180deg, #101a2d, #0d1526); }
.topbar { background: #05080f; border-bottom: 1px solid rgba(255,255,255,.06); }
.tools li a { background: #0d1526; }

/* ---- Verwaltung ---- */
.me-link { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; border-radius: 10px; padding: 2px; }
.me-link:hover .who b { text-decoration: underline; }
.btn-danger { background: #E5484D; color: #fff; box-shadow: none; }
.btn-danger:hover { background: #D13B40; filter: none; }
details.danger { display: inline-block; text-align: left; }
details.danger > summary { cursor: pointer; color: var(--neg); font-size: .84rem; font-weight: 500; list-style: none; }
details.danger > summary::-webkit-details-marker { display: none; }
details.danger[open] > summary { margin-bottom: 8px; }
td details.danger[open] { position: relative; }
td details.danger[open] > form { position: absolute; right: 0; z-index: 5; width: 300px; background: #121c32; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; box-shadow: 0 20px 50px -20px #000; white-space: normal; }
.danger-zone { border-color: rgba(255,107,107,.25); }

/* ---------- Verkaufsseite: Problem, Vorteile, Fragen, Anfrage ---------- */
.probs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.prob { border-top: 2px solid rgba(255,107,107,.55); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.prob b { font: 600 1.05rem/1.25 var(--f-head); color: #fff; }
.prob p, .gains p { color: #a3aec6; font-size: .94rem; }
.gains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.gains div { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 2px solid #22d3ee; }
.gains b { font: 600 1.1rem/1.25 var(--f-head); color: #fff; }
.faq-wrap { max-width: 860px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 1.02rem/1.35 var(--f-head); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.4rem/1 var(--f-body); color: #22d3ee; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #a3aec6; padding: 0 0 18px; max-width: 70ch; }
.lead-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start;
  padding-block: clamp(40px, 5vw, 64px); padding-inline: clamp(20px, 4vw, 48px); border-radius: 28px;
  background: radial-gradient(ellipse at 0% 0%, rgba(34,211,238,.14), transparent 55%), #0b1120; border: 1px solid rgba(255,255,255,.07); }
.lead-intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lead-intro .lead { margin-top: 0; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf-consent { font-size: .84rem; color: #a3aec6; align-items: flex-start; }
.lf-consent input { margin-top: 2px; flex-shrink: 0; }
.lead-form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .probs { grid-template-columns: 1fr 1fr; }
  .gains, .lead-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .probs, .lf-row { grid-template-columns: 1fr; }
  .lead-form .btn { align-self: stretch; }
}
.site section[id] { scroll-margin-top: 80px; }

/* ---------- Impressum / Datenschutz ---------- */
.legal-in { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; }
.legal h2 { font-size: 1.15rem; color: #fff; margin-top: 18px; letter-spacing: -.01em; scroll-margin-top: 80px; }
.legal p { color: #B6BCC8; max-width: 68ch; }
.legal .legal-date { color: #6b7896; font-size: .86rem; }
.legal .legal-lead { color: #e3e8f2; font-size: 1.05rem; padding: 14px 16px; border-left: 2px solid #22d3ee; background: rgba(34,211,238,.06); border-radius: 0 10px 10px 0; }
.legal code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.todo { background: rgba(242,184,75,.16); color: #F2B84B; padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.site-nav a[aria-current=page] { opacity: 1; color: #22d3ee; }
.site-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Modern 2026 (25.11.): flache Flaechen, weiche Kurve, Kalender mit Betraegen ---- */
:root { --card: rgba(15, 23, 42, .62); --card-line: rgba(148, 163, 184, .09); --card-line-2: rgba(148, 163, 184, .06); }
.card, .kpi { background: var(--card); border: 1px solid var(--card-line); box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  border-radius: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kpi::before { display: none; }
.kpi { gap: 6px; padding: 18px 20px; overflow: hidden; }
.kpi .l { font-size: .76rem; color: var(--muted); letter-spacing: .01em; }
.kpi .l svg { color: var(--muted); opacity: .8; }
.kpi .v { font-size: 1.9rem; font-weight: 600; letter-spacing: -.035em; position: relative; z-index: 1; }
.kpi .s { position: relative; z-index: 1; }
.kpi .spark { left: auto; right: 0; width: 52%; height: 44px; bottom: 12px; opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.kpi .spark path.a { fill: color-mix(in srgb, var(--brand-ink) 10%, transparent); }
.kpi .spark path.l { stroke: color-mix(in srgb, var(--brand-ink) 85%, transparent); stroke-width: 1.5; }
.card-head h2 { font-size: .98rem; font-weight: 600; }
.card-head a { color: var(--muted); } .card-head a:hover { color: var(--text); text-decoration: none; }
.card > a.small { color: var(--brand-ink); text-decoration: none; font-weight: 500; } .card > a.small:hover { color: #fff; }
.side nav a[aria-current=page] { background: color-mix(in srgb, var(--brand) 16%, transparent); box-shadow: none; color: #fff; }
.side nav a { border-radius: 10px; }
.btn.alt { box-shadow: inset 0 0 0 1px rgba(148,163,184,.2); }

/* Kurve: gruen ueber 0, rot unter 0, ohne Leuchteffekt */
.chart .grid line { stroke: rgba(148,163,184,.07); }
.chart .zero { stroke: rgba(148,163,184,.28); stroke-dasharray: 2 5; }
.chart .line { filter: none; stroke-width: 2; }
.chart .area.up { fill: url(#eqpos); } .chart .area.down { fill: url(#eqneg); }
.chart .line.up { stroke: var(--pos); } .chart .line.down { stroke: var(--neg); }
.chart .dot { stroke-width: 2.5; fill: #0b1120; } .chart .dot.up { stroke: var(--pos); } .chart .dot.down { stroke: var(--neg); }
.ring .val { filter: none; }

/* Kalender: ruhige Kacheln mit Tag und Betrag */
.cal { gap: 22px 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { margin: 0; font: 600 .84rem/1 var(--f-body); color: var(--text); text-transform: capitalize; }
.cal-total { font: 600 .84rem/1 var(--f-body); font-variant-numeric: tabular-nums; }
.cal-grid { gap: 5px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-grid .wd { font-size: .64rem; text-align: left; padding: 0 0 4px 6px; letter-spacing: .02em; }
.cal-grid .d { aspect-ratio: auto; height: 48px; border-radius: 9px; padding: 5px 6px; display: flex; flex-direction: column;
  justify-content: space-between; align-items: stretch; background: rgba(148,163,184,.035); border: 1px solid rgba(148,163,184,.05);
  color: var(--faint); font-size: .62rem; }
.cal-grid .d i { font-style: normal; line-height: 1; }
.cal-grid .d b { font: 600 .7rem/1 var(--f-body); font-variant-numeric: tabular-nums; text-align: right; letter-spacing: -.01em; white-space: nowrap; }
.cal-grid .d.e { background: transparent; border-color: transparent; }
.cal-grid .d.p { background: color-mix(in srgb, var(--pos) calc(var(--i) * 20%), transparent); border-color: color-mix(in srgb, var(--pos) calc(var(--i) * 40%), transparent); color: var(--muted); }
.cal-grid .d.m { background: color-mix(in srgb, var(--neg) calc(var(--i) * 18%), transparent); border-color: color-mix(in srgb, var(--neg) calc(var(--i) * 38%), transparent); color: var(--muted); }
.cal-grid .d.p b { color: var(--pos); } .cal-grid .d.m b { color: var(--neg); }
@media (max-width: 560px) { .cal-grid .d { height: 40px; padding: 4px; } .cal-grid .d b { font-size: .6rem; } }

/* ---- Icon-Leiste (Entwurf A, ab 981px; darunter bleibt das Ausklapp-Menue mit Text) ---- */
@media (min-width: 981px) {
  :root { --side: 80px; }
  .side { padding: 18px 0; align-items: center; gap: 18px; overflow: visible; background: #05080f; }
  .side .brand { padding: 0; justify-content: center; }
  .side .brand-name, .side .powered, .me .who { display: none; }
  .side .brand-logo { height: 40px; width: 48px; object-fit: contain; }
  .side .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .side nav { align-items: center; gap: 6px; }
  .side nav a { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; position: relative; color: #6b7896; }
  .side nav a svg { width: 21px; height: 21px; opacity: 1; }
  .side nav a:hover { color: #e6ebf5; background: rgba(148,163,184,.08); }
  .side nav a[aria-current=page] { background: color-mix(in srgb, var(--brand) 22%, transparent); color: #fff; box-shadow: none; }
  .side nav a[aria-current=page] svg { color: color-mix(in srgb, var(--brand) 35%, #fff); }
  .side nav .lbl { position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-4px, -50%); white-space: nowrap;
    background: #e6ebf5; color: #070b16; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px;
    opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 80; }
  .side nav a:hover .lbl, .side nav a:focus-visible .lbl { opacity: 1; transform: translate(0, -50%); }
  .side .navlabel { font-size: 0; padding: 0; width: 28px; height: 1px; background: rgba(148,163,184,.15); margin: 8px 0; }
  .side .me { flex-direction: column; padding: 12px 0 0; gap: 8px; border-top: 0; }
  .me form { margin: 0; }
  .side .avatar { width: 40px; height: 40px; }
}

/* ---- Uebersicht nach Entwurf A ---- */
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.crumb { font-size: .9rem; color: var(--muted); } .crumb span { color: #3a4766; margin: 0 4px; } .crumb b { color: var(--text); font-weight: 500; }
.hero { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.hero-num { display: flex; flex-direction: column; gap: 8px; }
.hero-l { font-size: .9rem; color: var(--muted); }
.hero-v { font: 600 clamp(2.8rem, 6vw, 4.6rem)/1 var(--f-head); letter-spacing: -.045em; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-v small { font-size: .45em; color: #6b7896; letter-spacing: -.02em; margin-left: 2px; }
.hero-v.neg { color: #ff8a8a; } .hero-v.neg small { color: color-mix(in srgb, #ff8a8a 55%, #6b7896); }
.hero-s { font-size: .95rem; color: var(--muted); } .hero-s b { font-weight: 600; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #0d1526; border: 1px solid rgba(148,163,184,.08); }
.seg a { padding: 9px 15px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 500; }
.seg a:hover { color: var(--text); }
.seg a[aria-current] { background: #e6ebf5; color: #070b16; font-weight: 600; }
.hero-chart { position: relative; height: 300px; margin: 0 0 26px; cursor: crosshair; touch-action: pan-y; }
.hero-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.h-area { fill: url(#hfill); }
.h-line { fill: none; stroke: url(#hline); stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.h-zero { stroke: rgba(148,163,184,.28); stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.h-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); pointer-events: none; }
.h-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(230,235,245,.22); pointer-events: none; }
.h-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: #e6ebf5; color: #070b16; padding: 7px 11px;
  border-radius: 10px; font-size: .76rem; line-height: 1.35; white-space: nowrap; pointer-events: none; display: flex; flex-direction: column; }
.h-tip b { font-size: .9rem; font-variant-numeric: tabular-nums; }
.h-x { position: absolute; left: 0; right: 0; bottom: -24px; height: 16px; font-size: .74rem; color: #6b7896; }
.h-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.h-x span:first-child { transform: none; } .h-x span:last-child { transform: translateX(-100%); }
.kstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(148,163,184,.1); border-bottom: 1px solid rgba(148,163,184,.1); }
.kstrip div { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(148,163,184,.1); }
.kstrip div:first-child { border-left: 0; padding-left: 0; }
.kstrip span { font-size: .82rem; color: var(--muted); }
.kstrip b { font: 600 1.6rem/1.1 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kstrip b small { font-size: .62em; color: #6b7896; font-weight: 500; }
.kstrip b.neg { color: #ff8a8a; }
.dash-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.dash-main { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.sec-head h2 { font-size: 1.1rem; } .sec-head a { font-size: .86rem; color: var(--brand-ink); text-decoration: none; } .sec-head a:hover { color: #fff; }
.wstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wstrip .wd { padding: 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wstrip .wd.p { background: rgba(47,211,154,.1); } .wstrip .wd.m { background: rgba(255,107,107,.1); } .wstrip .wd.z { background: rgba(148,163,184,.06); }
.wstrip .wd.e { border: 1px dashed rgba(148,163,184,.16); }
.wstrip .wd.now { box-shadow: inset 0 0 0 1.5px var(--brand); }
.wstrip .wl { font-size: .76rem; color: var(--muted); } .wstrip .wd.now .wl { color: var(--brand-ink); font-weight: 600; }
.wstrip b { font: 600 1.15rem/1 var(--f-head); font-variant-numeric: tabular-nums; }
.wstrip .p b { color: var(--pos); } .wstrip .m b { color: #ff8a8a; } .wstrip .e b { color: #3a4766; }
.wstrip .wn { font-size: .74rem; color: #6b7896; }
.tlist { display: flex; flex-direction: column; }
.trow { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid rgba(148,163,184,.08); text-decoration: none; color: inherit; border-radius: 10px; }
.trow:last-child { border-bottom: 0; } .trow:hover { background: rgba(148,163,184,.05); }
.tside { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.tside.long { background: rgba(47,211,154,.12); color: var(--pos); } .tside.short { background: rgba(255,107,107,.12); color: #ff8a8a; }
.tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tmain b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmain span { font-size: .8rem; color: #6b7896; }
.trow > b { font-variant-numeric: tabular-nums; font-weight: 600; }
.propbox { flex: 2 1 300px; min-width: 0; padding: 22px; border-radius: 22px; background: #0d1526; border: 1px solid rgba(148,163,184,.08); display: flex; flex-direction: column; gap: 18px; }
.propbox h2 { font-size: 1.1rem; }
.pb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-bar { display: flex; flex-direction: column; gap: 8px; }
.pb-l { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; } .pb-l span { color: var(--muted); } .pb-l b { font-variant-numeric: tabular-nums; }
.pb-bar .bar { height: 10px; border-radius: 999px; background: #16213a; overflow: hidden; }
.pb-bar .bar i { display: block; height: 100%; border-radius: 999px; }
.pb-bar .bar i.g { background: linear-gradient(90deg, var(--brand), var(--accent)); } .pb-bar .bar i.p { background: var(--pos); opacity: .85; } .pb-bar .bar i.r { background: var(--neg); }
.pb-s { font-size: .8rem; color: #6b7896; }
.pb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid rgba(148,163,184,.08); }
.pb-facts span { display: block; font-size: .76rem; color: #6b7896; margin-bottom: 3px; } .pb-facts b { font-size: .92rem; }
.propbox a.small { color: var(--brand-ink); text-decoration: none; }
@media (max-width: 700px) {
  .kstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kstrip div:nth-child(3) { border-left: 0; padding-left: 0; } .kstrip div:nth-child(n+3) { border-top: 1px solid rgba(148,163,184,.1); }
  .hero-chart { height: 220px; }
  .wstrip { gap: 6px; } .wstrip .wd { padding: 10px 8px; } .wstrip b { font-size: .95rem; }
}
.h-tip[hidden], .h-cross[hidden] { display: none; }

/* ---- Alle Seiten im Stil von Entwurf A ---- */
.page-head { align-items: flex-end; margin-top: 4px; }
.page-head .kicker { text-transform: none; letter-spacing: 0; font: 500 .9rem/1.2 var(--f-body); color: var(--muted); }
.page-head h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -.04em; }
.page-head p { max-width: 62ch; }
.page-head .stack > a.small { color: var(--brand-ink); text-decoration: none; }
/* Kennzahlen als Leiste statt Kaesten */
.kpis { gap: 0; border-top: 1px solid rgba(148,163,184,.1); border-bottom: 1px solid rgba(148,163,184,.1); }
.kpis .kpi { background: none; border: 0; border-left: 1px solid rgba(148,163,184,.1); border-radius: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; padding: 18px 20px; }
.kpis .kpi:first-child { border-left: 0; padding-left: 0; }
.kpis .kpi .l svg { display: none; }
.kpis .kpi .l { font-size: .82rem; }
.kpis .kpi .v { font-size: 1.6rem; }
.kstrip-6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kstrip b em { font-style: normal; } .kstrip b em.pos { color: var(--pos); } .kstrip b em.neg { color: #ff8a8a; }
.insight { font-size: .92rem; color: var(--muted); } .insight b { color: var(--text); }
/* Filterleiste */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
select.pill { width: auto; height: 42px; border-radius: 999px; padding: 0 36px 0 16px; background-color: #0d1526; border: 1px solid rgba(148,163,184,.12); font-size: .86rem; }
/* Tabellen ruhiger */
.card.flush { overflow: hidden; }
thead th { background: transparent; border-bottom: 1px solid rgba(148,163,184,.1); color: #6b7896; letter-spacing: .05em; font-size: .68rem; padding-top: 14px; padding-bottom: 12px; }
th, td { border-bottom-color: rgba(148,163,184,.06); padding-top: 13px; padding-bottom: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(148,163,184,.04); }
tr.me td { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.who-cell .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: .74rem; }
td a { color: var(--brand-ink); }
/* Balken in den Auswertungen */
.bars { gap: 12px; }
.bar-row { font-size: .86rem; }
.bar-row .bt { height: 8px; border-radius: 999px; background: #16213a; }
.bar-row .bf { border-radius: 999px; }
.bar-row .bc { color: #6b7896; font-size: .76rem; }
/* Prop */
.props { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.props > .card { padding: 22px; border-radius: 22px; gap: 18px; }
.pm { display: flex; flex-direction: column; gap: 16px; }
.pm h3 { font: 600 1.05rem/1.2 var(--f-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 16px; border-top: 1px solid rgba(148,163,184,.08); }
.pfacts dt { color: #6b7896; }
details.fold { padding: 0; }
details.fold > summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { font-size: 1rem; color: var(--brand-ink); }
details.fold[open] > summary { border-bottom: 1px solid rgba(148,163,184,.08); }
details.fold > form { padding: 20px 22px 24px; }
/* Bestenliste: Treppchen */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 760px; width: 100%; margin: 8px auto 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.pod .avatar { width: 52px; height: 52px; border-radius: 16px; font-size: .95rem; background: #16213a; }
.pod.p1 .avatar { width: 64px; height: 64px; background: linear-gradient(135deg, #F5D27A, #C9962C); color: #3A2A06; }
.pod.p2 .avatar { background: linear-gradient(135deg, #E6E9EE, #A8AFBA); color: #23262C; }
.pod.p3 .avatar { background: linear-gradient(135deg, #E9B68C, #A96B3C); color: #2E1A0B; }
.pod b { font: 600 1rem/1.2 var(--f-head); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pts { font-size: .78rem; color: var(--muted); }
.pod .step { width: 100%; margin-top: 8px; border-radius: 16px 16px 6px 6px; display: grid; place-items: start center; padding-top: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 26%, #0d1526), #0d1526); border: 1px solid rgba(148,163,184,.08); }
.pod .step span { font: 700 1.6rem/1 var(--f-head); color: #fff; }
.pod.p1 .step { height: 120px; } .pod.p2 .step { height: 88px; } .pod.p3 .step { height: 66px; }
.pod.me b { color: var(--brand-ink); }
@media (max-width: 700px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:nth-child(3) { border-left: 0; padding-left: 0; } .kpis .kpi:nth-child(n+3) { border-top: 1px solid rgba(148,163,184,.1); }
  .podium { gap: 8px; } .pod .avatar { width: 42px; height: 42px; } .pod.p1 .avatar { width: 50px; height: 50px; }
}
.pod .step::before { content: none; display: none; }
