/* ============ Aktienprogramm – Design ============ */
:root {
  color-scheme: light;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f7;
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .14);
  --text: #0f172a;
  --text-2: #475569;
  --muted: #8a94a6;
  --grid: #e8ebf1;
  --axis: #c9d0db;
  --accent: #0d9488;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(13, 148, 136, .10);
  --pos: #0f9f6e;
  --pos-text: #0a7c55;
  --pos-soft: rgba(15, 159, 110, .11);
  --neg: #e5484d;
  --neg-text: #c9353b;
  --neg-soft: rgba(229, 72, 77, .10);
  --c-gain: #16a37a;
  --c-loss: #e5484d;
  --c-div: #4a3aa7;
  --c-tax: #eb6834;
  --c-cap: #2a78d6;
  --c-net: #0f172a;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100;
  --c5: #e87ba4; --c6: #008300; --c7: #4a3aa7; --c8: #e34948; --c-other: #a3aab6;
  --side-bg: #0b1222;
  --side-bg-2: #101a30;
  --side-text: #aab6cb;
  --side-text-strong: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -12px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e16;
  --surface: #121824;
  --surface-2: #0f141e;
  --surface-3: #1a2230;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #e8edf5;
  --text-2: #a9b4c6;
  --muted: #6f7b8e;
  --grid: #1d2533;
  --axis: #2d3748;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-soft: rgba(45, 212, 191, .12);
  --pos: #22c58b;
  --pos-text: #34d399;
  --pos-soft: rgba(34, 197, 139, .13);
  --neg: #f0646a;
  --neg-text: #f87171;
  --neg-soft: rgba(240, 100, 106, .13);
  --c-gain: #22b884;
  --c-loss: #ec5b61;
  --c-div: #9085e9;
  --c-tax: #d95926;
  --c-cap: #3987e5;
  --c-net: #ffffff;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500;
  --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; --c-other: #5b6576;
  --side-bg: #060a12;
  --side-bg-2: #0b111d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
/* Nur min-height, nicht height: 100% – sonst ist body genau eine Bildschirmhöhe hoch und die
   klebende Leiste oben (position: sticky) wird nach einer Bildschirmhöhe Scrollen mit hinausgeschoben. */
html, body { margin: 0; }
body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.num, .tbl td.r, .tbl th.r { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos-text); }
.neg { color: var(--neg-text); }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  background: radial-gradient(120% 60% at 0% 0%, #12304a 0%, transparent 60%), linear-gradient(180deg, var(--side-bg-2), var(--side-bg));
  color: var(--side-text);
  display: flex; flex-direction: column;
  padding: 22px 16px 18px;
  border-right: 1px solid rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 18px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  box-shadow: 0 8px 22px -6px rgba(20, 184, 166, .55);
}
.brand-text b { display: block; color: #fff; font-size: 16px; letter-spacing: .1px; font-family: var(--font-display); }
.brand-text span { font-size: 12px; color: #7f8ca3; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 13px; border-radius: 12px;
  color: var(--side-text); text-decoration: none; cursor: pointer;
  font-weight: 500; transition: background .15s, color .15s;
}
.nav a i { width: 18px; text-align: center; font-size: 15px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active {
  background: linear-gradient(90deg, rgba(45,212,191,.18), rgba(45,212,191,.04));
  color: #fff;
  box-shadow: inset 3px 0 0 #2dd4bf;
}
.nav a.active i { color: #2dd4bf; opacity: 1; }
.nav a .ico-para { font-style: normal; font-size: 18px; font-weight: 700; line-height: 1; font-family: Georgia, "Times New Roman", serif; }
.nav-sep { height: 1px; background: rgba(255,255,255,.07); margin: 10px 8px; }

/* ---------- Impressum / Über ---------- */
.imp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.imp-para { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; font-weight: 700; color: #fff; font-family: Georgia, "Times New Roman", serif; background: linear-gradient(135deg, #14b8a6, #0ea5e9); box-shadow: 0 14px 30px -10px rgba(14,165,233,.6); flex: none; }
.imp-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.imp-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.imp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.imp-row i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.imp-row .l { font-size: 11.5px; color: var(--muted); }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feat-item { display: flex; gap: 13px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.feat-item .kpi-ico { width: 38px; height: 38px; }
.feat-item b { display: block; margin-bottom: 3px; }
.feat-item p { margin: 0; color: var(--text-2); font-size: 13px; }
.steps { counter-reset: st; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.steps li b { color: var(--text); }
@media (max-width: 900px) { .imp-rows, .feat { grid-template-columns: 1fr; } }
.side-foot { margin-top: auto; padding: 14px 8px 0; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #66748b; margin-bottom: 8px; }
.side-note { margin-top: 14px; font-size: 12px; color: #6f7c93; line-height: 1.5; }
.side-note b { color: #c4cedd; font-weight: 600; }

.main { min-width: 0; padding: 26px 34px 60px; max-width: 1500px; width: 100%; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.top h1 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 650; letter-spacing: -.3px; }
.top p { margin: 4px 0 0; color: var(--text-2); }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.page { display: flex; flex-direction: column; gap: 20px; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3, .card h3 { margin: 0; font-size: 16px; font-weight: 650; font-family: var(--font-display); }
.card-head .sub, .card .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card.flat { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; border: none;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(45, 212, 191, .35) 0%, transparent 55%),
    radial-gradient(60% 90% at 0% 100%, rgba(14, 165, 233, .25) 0%, transparent 60%),
    linear-gradient(135deg, #0b1730 0%, #0f2f45 55%, #0b3b3a 100%);
  padding: 28px 30px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 26px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; inset: auto -60px -80px auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); pointer-events: none;
}
.hero-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero-value { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin: 6px 0 10px; }
.hero-sub { color: rgba(255,255,255,.72); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; background: rgba(255,255,255,.12); }
.hero-chip.up { background: rgba(52, 211, 153, .2); color: #6ee7b7; }
.hero-chip.down { background: rgba(248, 113, 113, .2); color: #fca5a5; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; }
.hero-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(6px); }
.hero-stat .l { font-size: 12px; color: rgba(255,255,255,.62); display: flex; align-items: center; gap: 7px; }
.hero-stat .v { font-size: 20px; font-weight: 650; margin-top: 4px; font-family: var(--font-display); white-space: nowrap; }
.hero-stat .s { font-size: 12px; color: rgba(255,255,255,.58); margin-top: 2px; }
.hero-stat .v.up { color: #6ee7b7; }
.hero-stat .v.down { color: #fca5a5; }

/* ---------- Tagesüberblick ---------- */
.roundup {
  position: relative; overflow: hidden; color: #fff; border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(70% 90% at 12% 0%, rgba(45, 212, 191, .16) 0%, transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(99, 102, 241, .16) 0%, transparent 60%),
    linear-gradient(160deg, #0b1322 0%, #101a2e 55%, #0d1f2a 100%);
  padding: 26px 28px 28px; box-shadow: var(--shadow-lg);
}
.ru-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.ru-hello { font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: .02em; }
.roundup h2 { margin: 4px 0 4px; font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-weight: 750; letter-spacing: -.6px; }
.roundup h2 span { background: linear-gradient(90deg, #5eead4, #2dd4bf 40%, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ru-since { color: rgba(255,255,255,.75); font-size: 14px; }
.ru-hide { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); width: 36px; height: 36px; border-radius: 11px; cursor: pointer; flex: none; }
.ru-hide:hover { background: rgba(255,255,255,.12); color: #fff; }
.ru-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.ru-panel, .ru-tile, .ru-quote { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px 20px; }
.ru-l { color: rgba(255,255,255,.85); font-size: 15px; }
.ru-big { font-family: var(--font-display); font-size: 46px; font-weight: 750; letter-spacing: -1px; line-height: 1.15; margin: 4px 0 8px; }
.ru-big.up, .ru-tile-v.up, .ru-v.up { color: #4ade80; }
.ru-big.down, .ru-tile-v.down, .ru-v.down { color: #fb7185; }
.ru-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ru-sub { color: rgba(255,255,255,.6); font-size: 13px; }
.ru-chart { margin-top: 10px; }
svg.chart .ru-ctext { fill: rgba(255,255,255,.55); font-size: 11.5px; font-variant-numeric: tabular-nums; }
svg.chart .ru-ctext.dim { fill: rgba(255,255,255,.4); }
.ru-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.ru-cmp { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.ru-h { font-size: 13.5px; color: rgba(255,255,255,.8); font-weight: 600; margin-bottom: 10px; }
.ru-cmp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ru-cmp-row > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-right: 8px; border-right: 1px solid rgba(255,255,255,.07); }
.ru-cmp-row > div:last-child { border-right: none; }
.ru-cmp-row span:first-child { color: rgba(255,255,255,.55); font-size: 13px; }
.ru-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ru-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ru-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: background .15s, transform .12s; }
.ru-tile.clickable:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.ru-tile-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.75); font-size: 13.5px; }
.ru-tile-n { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.ru-tile-v { font-family: var(--font-display); font-size: 26px; font-weight: 750; letter-spacing: -.4px; }
.ru-tile .hero-chip { align-self: flex-start; }
.ru-div { flex-direction: row; justify-content: space-between; align-items: center; }
.ru-div-v { font-family: var(--font-display); font-size: 34px; font-weight: 750; color: #5eead4; margin-top: 4px; }
.ru-div-s { font-size: 14px; color: rgba(255,255,255,.85); }
.ru-div-s b { color: #fff; }
.ru-div-f { font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 6px; }
.ru-div-logo { flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); box-shadow: 0 0 0 10px rgba(255,255,255,.03); }
.av.xl { width: 68px; height: 68px; border-radius: 50%; font-size: 22px; }
.av.xl img { padding: 8px; border-radius: 50%; }
.ru-quote { text-align: center; }
.ru-quote blockquote { margin: 4px 0 8px; font-family: var(--font-display); font-size: 19px; line-height: 1.35; font-weight: 650; color: rgba(255,255,255,.92); }
.ru-quote cite { font-style: normal; color: rgba(255,255,255,.55); font-size: 13px; }
.ru-empty { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ru-mini { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 22px; cursor: pointer; flex-wrap: wrap; }
.ru-mini:hover { filter: brightness(1.08); }
.ru-mini-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: rgba(255,255,255,.75); }
.ru-mini-l > i { color: #fbbf24; }
.ru-mini-l > b:first-of-type { color: #fff; }
.ru-v { font-family: var(--font-display); font-size: 18px; }
.ru-open { color: rgba(255,255,255,.7); font-size: 13px; white-space: nowrap; }
@media (max-width: 1250px) { .ru-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ru-tiles, .ru-cmp-row { grid-template-columns: 1fr; } .ru-cmp-row > div { border-right: none; } .roundup h2 { font-size: 27px; } .ru-big { font-size: 36px; } }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px; }
@media (max-width: 1400px) and (min-width: 901px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { padding: 18px 18px; }
.kpi-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.kpi-ico.green { background: var(--pos-soft); color: var(--pos); }
.kpi-ico.red { background: var(--neg-soft); color: var(--neg); }
.kpi-ico.violet { background: color-mix(in srgb, var(--c-div) 13%, transparent); color: var(--c-div); }
.kpi-ico.orange { background: color-mix(in srgb, var(--c-tax) 13%, transparent); color: var(--c-tax); }
.kpi-ico.blue { background: color-mix(in srgb, var(--c-cap) 13%, transparent); color: var(--c-cap); }
.kpi-ico.gray { background: var(--surface-3); color: var(--text-2); }
.kpi .l { font-size: 12.5px; color: var(--text-2); }
.kpi .v { font-size: 21px; font-weight: 650; font-family: var(--font-display); margin-top: 2px; white-space: nowrap; letter-spacing: -.2px; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Buttons & Controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--surface);
  padding: 9px 15px; border-radius: 11px; cursor: pointer; font-weight: 550;
  transition: transform .06s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--axis); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #0d9488, #0284c7); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .7); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--neg-text); }
.btn.danger:hover { background: var(--neg-soft); border-color: var(--neg); }
#btnQuotes small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 2px; }
#btnQuotes.busy { pointer-events: none; border-color: var(--accent); }
#btnQuotes.busy i { animation: spin 0.9s linear infinite; color: var(--accent); }
#btnQuotes.busy small { display: none; }
#btnQuotes.busy::after { content: attr(data-prog); font-size: 12px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 550; color: var(--text-2); }
.switch input { display: none; }
.switch .tr { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .tr { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.icon-btn { border: none; background: transparent; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.del:hover { background: var(--neg-soft); color: var(--neg-text); }

.select-wrap { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 11px; padding: 0 6px 0 12px; color: var(--text-2); }
.select-wrap select { border: none; background: transparent; padding: 9px 6px; outline: none; cursor: pointer; color: var(--text); font-weight: 550; }
.select-wrap select option { background: var(--surface); color: var(--text); }
.input, .select {
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 8px 11px; outline: none; min-width: 0;
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.price-input { width: 96px; text-align: right; padding: 5px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }

.seg { display: inline-flex; background: var(--surface-3); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: none; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-weight: 550; font-size: 13px; white-space: nowrap; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.seg-dark { background: rgba(255,255,255,.06); width: 100%; }
.seg-dark button { flex: 1; color: #8b97ac; }
.seg-dark button.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }

/* ---------- Chips / badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.buy { background: color-mix(in srgb, var(--c-cap) 13%, transparent); color: var(--c-cap); }
.badge.sell { background: color-mix(in srgb, var(--c-tax) 14%, transparent); color: var(--c-tax); }
.badge.div { background: color-mix(in srgb, var(--c-div) 14%, transparent); color: var(--c-div); }
.badge.split, .badge.in, .badge.out { background: var(--surface-3); color: var(--text-2); }
.badge.good { background: var(--pos-soft); color: var(--pos-text); }
.badge.bad { background: var(--neg-soft); color: var(--neg-text); }
.badge.mid { background: color-mix(in srgb, var(--c4) 16%, transparent); color: color-mix(in srgb, var(--c4) 80%, var(--text)); }
.badge.neutral { background: var(--surface-3); color: var(--text-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.pos { background: var(--pos-soft); }
.pill.neg { background: var(--neg-soft); }
.src { font-size: 11px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Avatar ---------- */
.av { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .3px; }
.av { position: relative; overflow: hidden; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.av.lg img { padding: 5px; }
.av.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 18px; }
.name-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.name-cell .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-cell .meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-cell > div { min-width: 0; }
.clickable { cursor: pointer; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th .fa-solid { margin-left: 4px; font-size: 10px; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .c { text-align: center; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--border-strong); border-bottom: none; background: var(--surface-2); }
.tbl .sel td { background: var(--accent-soft); }
.tbl .name-cell .nm, .tbl .name-cell .meta { max-width: 250px; }
.tbl td .sub2 { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- Charts ---------- */
.chart-host { width: 100%; position: relative; }
svg.chart { display: block; overflow: visible; }
svg.chart .grid { stroke: var(--grid); stroke-width: 1; }
svg.chart .axis0 { stroke: var(--axis); stroke-width: 1.2; }
svg.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.chart .xl { fill: var(--text-2); font-size: 11.5px; }
svg.chart .xl.sel { fill: var(--text); font-weight: 700; }
svg.chart .bar { transition: opacity .15s; }
svg.chart .cat.dim .bar { opacity: .35; }
svg.chart .hit { fill: transparent; cursor: pointer; }
svg.chart .cross { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 3 3; }
svg.chart .vlabel { font-size: 11px; font-weight: 600; fill: var(--text-2); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--c-net); background: var(--c-net); }
.legend i.ln { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }

.tip {
  position: fixed; z-index: 1000; pointer-events: none; opacity: 0; transform: translateY(4px);
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-lg); font-size: 12.5px; min-width: 170px; max-width: 320px;
  transition: opacity .12s, transform .12s;
}
.tip.show { opacity: 1; transform: none; }
.tip .th { font-weight: 700; margin-bottom: 6px; }
.tip .tr { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.tip .tr span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.tip .tr i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.tip .tr.total { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 6px; font-weight: 700; }

/* ---------- Donut ---------- */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.donut-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 7px; }
.donut-legend .row { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; align-items: center; font-size: 13px; cursor: default; border-radius: 8px; padding: 3px 6px; }
.donut-legend .row:hover { background: var(--surface-2); }
.donut-legend .row i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-legend .row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.donut-center-v { font-family: var(--font-display); font-weight: 700; fill: var(--text); }
.donut-center-l { fill: var(--muted); font-size: 11.5px; }

/* ---------- Ranking (horizontale Balken) ---------- */
.hbars { display: flex; flex-direction: column; gap: 4px; }
.hbar { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 108px; gap: 14px; align-items: center; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.hbar:hover { background: var(--surface-2); }
.hbar .lbl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hbar .lbl .rk { width: 22px; font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; flex: none; }
.hbar .lbl .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.hbar .track { position: relative; height: 22px; }
.hbar .zero { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--axis); }
.hbar .fill { position: absolute; top: 3px; height: 16px; border-radius: 0 5px 5px 0; }
.hbar .fill.neg { border-radius: 5px 0 0 5px; }
.hbar .val { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar .val small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.hbar-gap { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 0; position: relative; }
.hbar-gap::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--border-strong); }
.hbar-gap span { position: relative; background: var(--surface); padding: 0 12px; }
.av.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }

/* ---------- Podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pod { border-radius: 16px; padding: 16px 18px; border: 1px solid var(--border); background: var(--surface-2); position: relative; overflow: hidden; cursor: pointer; transition: transform .12s; }
.pod:hover { transform: translateY(-2px); }
.pod .medal { position: absolute; right: 14px; top: 12px; font-size: 22px; }
.pod .nm { font-weight: 650; margin: 10px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }
.pod .v { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.pod .s { font-size: 12px; color: var(--muted); }
.pod.g1 { background: linear-gradient(145deg, color-mix(in srgb, #f5b301 16%, var(--surface)), var(--surface)); }
.pod.g2 { background: linear-gradient(145deg, color-mix(in srgb, #9aa7b8 18%, var(--surface)), var(--surface)); }
.pod.g3 { background: linear-gradient(145deg, color-mix(in srgb, #cd7f32 16%, var(--surface)), var(--surface)); }
.pod.f { background: linear-gradient(145deg, color-mix(in srgb, var(--neg) 10%, var(--surface)), var(--surface)); }

/* ---------- Jahreskarten ---------- */
.year-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.ycard {
  position: relative; border-radius: 16px; padding: 16px 18px 14px; cursor: pointer; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, border-color .12s;
}
.ycard:hover { transform: translateY(-2px); }
.ycard.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.ycard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--yc, var(--axis)); }
.ycard .yr { font-family: var(--font-display); font-size: 20px; font-weight: 750; display: flex; justify-content: space-between; align-items: center; }
.ycard .res { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 6px 0 4px; }
.ycard .rows { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 12.5px; color: var(--text-2); }
.ycard .rows b { font-weight: 600; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.ycard .meter { height: 6px; border-radius: 4px; background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.ycard .meter i { display: block; height: 100%; border-radius: 4px; }
.ycard .tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* ---------- Heatmap ---------- */
.heat { width: 100%; border-collapse: separate; border-spacing: 4px; }
.heat th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: center; padding: 4px; }
.heat th.yl { text-align: left; font-size: 13px; color: var(--text); font-weight: 700; width: 56px; }
.heat td { text-align: center; border-radius: 9px; padding: 10px 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 58px; white-space: nowrap; }
.heat td.empty { color: var(--muted); font-weight: 400; background: var(--surface-2); }
.heat td.sum { background: var(--surface-3); font-weight: 750; }

/* ---------- Listen ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.li:last-child { border-bottom: none; }
.list.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.list.two-col .li:nth-last-child(2):nth-child(odd) { border-bottom: none; }
@media (max-width: 900px) { .list.two-col { grid-template-columns: minmax(0, 1fr); } } /* minmax: lange Zeilen dürfen die Spalte nicht über den Bildschirm hinaus verbreitern */
.li .grow { flex: 1; min-width: 0; }
.li .amt { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.li .amt small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stat-box .l { font-size: 12px; color: var(--text-2); }
.stat-box .v { font-size: 18px; font-weight: 650; font-family: var(--font-display); margin-top: 2px; white-space: nowrap; }

/* ---------- Import ---------- */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: 20px; padding: 44px 24px; text-align: center; cursor: pointer;
  background:
    radial-gradient(60% 100% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  transition: border-color .15s, background .15s, transform .12s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); transform: translateY(-1px); }
.dropzone .big { width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #14b8a6, #0ea5e9); box-shadow: 0 14px 30px -10px rgba(14,165,233,.6); }
.dropzone h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 21px; }
.dropzone p { margin: 0; color: var(--text-2); }
.dropzone .formats { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.log { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; }
.log-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.log-item .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; }
.log-item.ok .ic { background: var(--pos-soft); color: var(--pos); }
.log-item.dup .ic { background: var(--surface-3); color: var(--text-2); }
.log-item.err .ic { background: var(--neg-soft); color: var(--neg); }
.log-item.info .ic { background: color-mix(in srgb, var(--c4) 16%, transparent); color: var(--c4); }
.log-item .f { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 6px; background: var(--surface-3); border-radius: 4px; overflow: hidden; margin-top: 14px; display: none; }
.progress.on { display: block; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14b8a6, #0ea5e9); transition: width .2s; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .big { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, #14b8a6, #0ea5e9); box-shadow: 0 18px 40px -12px rgba(14,165,233,.6); }
.empty-state h2 { font-family: var(--font-display); margin: 0 0 8px; font-size: 24px; }
.empty-state p { color: var(--text-2); max-width: 560px; margin: 0 auto 20px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.note i { color: var(--accent); margin-top: 2px; }
.note.warn i { color: var(--c4); }

/* ---------- Overlay / Toast / Modal ---------- */
.drop-overlay { position: fixed; inset: 0; z-index: 900; display: none; place-items: center; background: rgba(8, 15, 30, .55); backdrop-filter: blur(4px); }
.drop-overlay.on { display: grid; }
.drop-overlay > div { background: var(--surface); border: 2px dashed var(--accent); border-radius: 24px; padding: 40px 60px; text-align: center; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg); }
.drop-overlay i { font-size: 38px; color: var(--accent); margin-bottom: 8px; }
.drop-overlay b { font-size: 20px; }
.drop-overlay span { color: var(--text-2); }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 12px 16px; display: flex; gap: 11px; align-items: center; min-width: 260px; max-width: 420px; animation: toastIn .25s ease; }
.toast i { font-size: 16px; }
.toast.ok i { color: var(--pos); }
.toast.err i { color: var(--neg); }
.toast.info i { color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; background: rgba(8, 15, 30, .5); backdrop-filter: blur(3px); overflow: auto; }
.modal.on { display: flex; }
.modal-box { background: var(--bg); border-radius: 22px; width: min(1100px, 100%); box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-direction: column; gap: 18px; animation: fadeIn .2s ease; }
.modal-box.narrow { width: min(620px, 100%); background: var(--surface); }
.modal-head { display: flex; align-items: center; gap: 14px; }
.modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.modal-head .grow { flex: 1; min-width: 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.form label.full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
pre.raw { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; max-height: 60vh; overflow: auto; font-size: 12px; white-space: pre-wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1250px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; }
  .brand { padding: 0; }
  .brand-text, .side-foot { display: none; }
  .nav { flex-direction: row; }
  .nav a span { display: none; }
  .main { padding: 18px 16px 50px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: minmax(110px, 150px) 1fr 90px; gap: 8px; }
  .hero-value { font-size: 34px; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr; }
  .top h1 { font-size: 23px; }
  .top-actions .btn span { display: none; }
}

/* ---------- Namens-Stift, Datenschutz-Text ---------- */
.ru-name { border: none; background: none; color: rgba(255,255,255,.35); cursor: pointer; font-size: 11px; padding: 2px 4px; border-radius: 6px; vertical-align: 1px; }
.ru-name:hover { color: #fff; background: rgba(255,255,255,.08); }
.card.legal h4 { margin: 16px 0 4px; font-size: 14px; font-family: var(--font-display); }
.card.legal h4:first-of-type { margin-top: 4px; }
.card.legal p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }

/* ---------- Obere Leiste auf omni-score.de/depot (nur Website, body.has-omni-nav) ----------
   Im Omni-Depot-Design: gleicher Hintergrund wie die Seitenleiste – beide mit
   background-attachment: fixed, damit der Farbverlauf von der Leiste nahtlos in die
   Seitenleiste übergeht (kein Trennstrich dazwischen). Akzent Türkis→Blau wie das Logo. */
body.has-omni-nav .omni-nav,
body.has-omni-nav .side {
  background:
    radial-gradient(300px 60vh at 0 0, #12304a 0%, transparent 60%),
    linear-gradient(180deg, var(--side-bg-2), var(--side-bg));
  background-attachment: fixed;
}
.omni-nav {
  position: sticky; top: 0; z-index: 60; height: 58px; display: flex; align-items: center; gap: 0; padding: 0 24px;
  font-family: var(--font);
}
.depot-emblem {
  width: 38px; height: 38px; border-radius: 12px; flex: none; margin-right: 16px;
  display: grid; place-items: center; color: #fff; font-size: 16px; text-decoration: none;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  box-shadow: 0 8px 22px -6px rgba(20, 184, 166, .55);
}
.omni-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 14px; color: var(--side-text); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .15s; }
.omni-tab i { font-size: 14px; opacity: .8; }
.omni-tab:hover { color: #fff; }
.omni-tab.active { color: #fff; }
.omni-tab.active i { color: #2dd4bf; opacity: 1; }
.omni-tab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #14b8a6, #0ea5e9); }
.omni-new { font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 1.4; color: #fff; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #14b8a6, #0ea5e9); box-shadow: 0 4px 12px -4px rgba(14, 165, 233, .6); }
.omni-spacer { flex: 1; }
.omni-more { position: relative; }
.omni-more-btn { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.05); color: #c4cedd; font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.omni-more-btn:hover, .omni-more-btn[aria-expanded="true"] { background: rgba(255,255,255,.10); color: #fff; }
.omni-menu { position: absolute; right: 0; top: 46px; width: 236px; padding: 8px; display: none; font-size: 13.5px; background: #101a30; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.omni-menu.open { display: block; animation: fadeIn .15s ease; }
.omni-menu .h { color: #66748b; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px 4px; }
.omni-menu a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: #aab6cb; font-weight: 500; text-decoration: none; cursor: pointer; }
.omni-menu a i { width: 18px; flex: none; text-align: center; color: #2dd4bf; font-size: 13px; }
.omni-menu .menu-theme { display: none; }
.omni-menu .seg { width: calc(100% - 12px); margin: 4px 6px 6px; }
.omni-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.omni-menu hr { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 6px 4px; }
/* Das Logo sitzt jetzt oben in der Leiste – in der Seitenleiste nur noch der Name */
body.has-omni-nav .brand-logo { display: none; }
body.has-omni-nav .brand { padding: 0 8px 20px; }
body.has-omni-nav .side { top: 58px; height: calc(100vh - 58px); border-right: none; padding-top: 14px; }
@media (max-width: 900px) {
  .omni-nav { padding: 0 12px; }
  .depot-emblem { margin-right: 8px; width: 34px; height: 34px; }
  .omni-tab { padding: 0 10px; font-size: 13px; }
  .omni-tab.active::after { left: 10px; right: 10px; }
  .omni-tab i, .omni-more-btn .lbl { display: none; }
  .omni-more-btn { padding: 0 11px; }
  .omni-menu .menu-theme { display: block; }
  /* Farbverlauf ohne „fixed“ (auf Handys unzuverlässig); Menüleiste unten statt oben */
  /* Oberkante exakt in --side-bg-2 (= Farbe der Handy-Statusleiste über meta theme-color), der Schimmer
     sitzt am Logo und blendet nach oben aus – kein harter Rand zwischen Statusleiste und Leiste */
  body.has-omni-nav .omni-nav { background: linear-gradient(180deg, var(--side-bg-2) 0, transparent 20px), radial-gradient(240px 100px at 0 65%, #12304a 0%, transparent 70%), var(--side-bg-2); background-attachment: scroll; }
  /* Unterkante exakt #0a0d12 = theme_color der manifest.json – in dieser Farbe malt Chrome (ab 153) die
     Gestenleiste der installierten App, so geht die Menüleiste nahtlos hinein */
  body.has-omni-nav .side { top: auto; height: auto; padding-top: 6px; background: linear-gradient(180deg, transparent calc(100% - 14px), #0a0d12), linear-gradient(180deg, var(--side-bg-2), var(--side-bg)); background-attachment: scroll; }
  body.has-omni-nav .nav a[data-page="impressum"], body.has-omni-nav .nav-sep { display: none; }
}
@media (max-width: 360px) { .omni-new { display: none; } }

/* ---------- Handy / App: Menüleiste unten fest verankert ---------- */
@media (max-width: 900px) {
  .side {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 55; overflow: visible;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: none;
    border-top: 1px solid rgba(255,255,255,.06); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.45);
  }
  .brand, .nav-sep { display: none; }
  .nav { width: 100%; justify-content: space-between; gap: 2px; }
  .nav a { flex: 1; justify-content: center; padding: 11px 0; }
  .nav a i { font-size: 17px; }
  .nav a.active { box-shadow: inset 0 3px 0 #2dd4bf; }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toasts { left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; max-width: none; }
}

/* ---------- Disclaimer / Kontakt / Kaffeekasse (nur Website) ---------- */
.legal-text h4 { margin: 16px 0 4px; font-size: 14px; font-family: var(--font-display); }
.legal-text h4:first-child { margin-top: 0; }
.legal-text p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-status { flex: 1; font-size: 13px; color: var(--text-2); }
.contact-status.ok { color: var(--pos-text); }
.contact-status.err { color: var(--neg-text); }

/* ---------- Randlos (viewport-fit=cover) ----------
   Leiste oben reicht unter die Statusleiste, die Menüleiste unten (siehe oben) unter die Gestenleiste –
   beide dann in ihrer eigenen Farbe. Ohne randlose Darstellung sind alle env()-Werte 0 (keine Änderung). */
.omni-nav { height: calc(58px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }

/* ---------- Handy: nichts darf breiter als der Bildschirm werden ----------
   Sonst verkleinert Chrome die ganze Ansicht und die feste Menüleiste unten rutscht aus dem Bild. */
@media (max-width: 900px) {
  .main { overflow-x: clip; }
}
@media (max-width: 520px) {
  #rankMetric { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

/* ---------- Kennzahl-Kacheln: Betrag passt immer hinein (PC und Handy) ----------
   Schmale Kachel (Handy, oder viele nebeneinander am PC): Symbol über dem Text, damit der Betrag die volle
   Kachelbreite bekommt. Zusätzlich richtet sich die Schrift des Betrags nach der Breite der Textspalte
   (14cqi, höchstens 21px) statt über den Rand zu laufen; lange Wörter werden getrennt. */
.kpi { container: kpi / inline-size; }
.kpi-in { display: flex; gap: 14px; align-items: flex-start; }
.kpi-txt { flex: 1 1 0; min-width: 0; container-type: inline-size; }
.kpi .v { font-size: clamp(14px, 14cqi, 21px); }
.kpi .l, .kpi .s { overflow-wrap: anywhere; hyphens: auto; }
@container kpi (max-width: 190px) {
  .kpi-in { flex-direction: column; gap: 10px; }
  .kpi-txt { flex: none; width: 100%; }
}
/* Handy: immer zwei Kacheln nebeneinander, etwas kompakter */
@media (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi-ico { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
}

/* ---------- Umschaltleisten dürfen nie über ihren Kasten hinausragen (auch am PC) ---------- */
.seg { max-width: 100%; flex-wrap: wrap; }
/* Jahresauswahl: gleich breite Felder über die ganze Breite, bei vielen Jahren sauber in Reihen */
#yearSeg { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); width: 100%; }

/* ---------- Diagramme mit dem Finger ----------
   Waagrecht wischen verschiebt den Punkt, senkrecht scrollt die Seite; kein blauer Tipp-Kasten (Android),
   keine Textauswahl beim Festhalten. */
svg.chart { touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.donut-legend .row { -webkit-tap-highlight-color: transparent; }
svg.chart .ru-pt.on { stroke: #fff; stroke-width: 3; }
