/* Vola Dashboard — Light Blue Theme (anlage-ehrlich style) */
:root {
  --bg:        #eef3f9;   /* helles eisblau */
  --bg-2:      #ffffff;   /* card weiß */
  --bg-3:      #f4f8fc;   /* zarter ton */
  --bg-4:      #e3ecf6;   /* tag/border-fill */
  --fg:        #16243b;   /* dark navy */
  --fg-mid:    #3d5168;   /* mid text */
  --fg-dim:    #6b7d94;   /* dim labels */
  --accent:    #1f6fc4;   /* haupt-blau */
  --accent-2:  #3d8de0;   /* helleres blau */
  --accent-d:  #154d8a;   /* dunkles blau */
  --accent-bg: #e1ecf9;   /* sehr heller blau-tint */
  --green:     #1aa971;
  --green-bg:  #d8f3e6;
  --orange:    #e89211;
  --orange-bg: #fdeed1;
  --red:       #d83b48;
  --red-bg:    #fbdcdf;
  --border:    #cfdbe9;
  --border-2:  #b3c4d8;
  --shadow:    0 2px 12px rgba(31, 111, 196, 0.08);
  --shadow-l:  0 4px 24px rgba(31, 111, 196, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;        /* kein horizontales Scrollen */
  max-width: 100vw;
}

a { color: var(--accent); }

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 36px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(31, 111, 196, 0.06);
}
.topnav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.topnav a {
  color: var(--fg-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.topnav a:hover { color: var(--accent); }
.topnav a.cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(31, 111, 196, 0.25);
}
.topnav a.cta:hover { color: #fff; background: var(--accent-d); }
.brand h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--accent-d);
}
.brand .subtitle {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 2px;
  display: block;
}
.meta {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 11px;
  color: var(--fg-dim);
  gap: 2px;
}

/* ── Hero Intro ────────────────────────────────────── */
.hero {
  padding: 36px 36px 14px 36px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--accent-d);
  letter-spacing: -0.4px;
}
.hero p {
  color: var(--fg-mid);
  font-size: 16px;
  line-height: 1.65;
}
.hero-cta {
  margin-top: 10px;
  font-size: 14px;
}
.hero a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.hero a:hover { text-decoration: underline; }

/* ── Verdict Block (dynamisches Fazit) ─────────────── */
.verdict {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 28px;
  margin: 18px 36px 0 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.verdict-icon {
  font-size: 32px;
  line-height: 1;
  margin-top: 2px;
}
.verdict-icon.cool { color: var(--accent); }
.verdict-icon.normal { color: var(--fg-mid); }
.verdict-icon.warm { color: var(--orange); }
.verdict-icon.hot { color: var(--red); }
.verdict-text { flex: 1; }
.verdict-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.verdict-body {
  font-size: 15px;
  color: var(--fg-mid);
  line-height: 1.6;
}
.verdict-body a { color: var(--accent); text-decoration: none; font-weight: 700; }
.verdict-body a:hover { text-decoration: underline; }

/* ── Regime-Banner mit 3 Lampen ─────────────────────── */
.regime {
  margin: 18px 36px 0 36px;
  padding: 22px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.regime-headline {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--fg-dim);
  margin-bottom: 14px;
  text-align: center;
}
.lamp-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 16px 16px 16px;
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: 10px;
  opacity: 0.55;
  transition: all 0.2s;
}
.lamp.active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-l);
}
.lamp .lamp-light {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #cdd5e0;
  margin-bottom: 10px;
  position: relative;
}
.lamp.green   .lamp-light { background: var(--green); }
.lamp.yellow  .lamp-light { background: var(--orange); }
.lamp.red     .lamp-light { background: var(--red); }
.lamp.active.green  { background: var(--green-bg);  border-color: var(--green); }
.lamp.active.yellow { background: var(--orange-bg); border-color: var(--orange); }
.lamp.active.red    { background: var(--red-bg);    border-color: var(--red); }
.lamp.active.green  .lamp-light { box-shadow: 0 0 0 6px rgba(26,169,113,0.18), 0 0 24px rgba(26,169,113,0.55); }
.lamp.active.yellow .lamp-light { box-shadow: 0 0 0 6px rgba(232,146,17,0.18), 0 0 24px rgba(232,146,17,0.55); }
.lamp.active.red    .lamp-light { box-shadow: 0 0 0 6px rgba(216,59,72,0.18),  0 0 24px rgba(216,59,72,0.55); }
.lamp .lamp-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: 0.5px;
}
.lamp .lamp-tagline {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 2px;
  margin-bottom: 8px;
}
.lamp .lamp-criteria {
  font-size: 12px;
  color: var(--fg-mid);
  line-height: 1.5;
  text-align: left;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  width: 100%;
}
.lamp .lamp-criteria strong { color: var(--fg); font-weight: 700; }

.regime-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}
.regime-status-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.regime-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.regime-flags .flag {
  background: var(--bg-2);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-mid);
}

.regime-help {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.regime-help summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  list-style: none;
  user-select: none;
}
.regime-help summary::marker { display: none; }
.regime-help summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.2s;
}
.regime-help[open] summary::before { content: "▾ "; }
.regime-help-body {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.65;
}
.regime-help-body p { margin-bottom: 8px; }
.regime-help-body strong { color: var(--fg); }
.regime-help-body .hint {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--accent-bg);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  font-size: 13px;
}

/* ── KPI Cards ──────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 18px 36px;
}
.kpi {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.kpi-label {
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-tag {
  background: var(--accent-bg);
  color: var(--accent-d);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.4px;
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-4);
  color: var(--fg-mid);
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  margin-left: auto;
  cursor: help;
}
.kpi:hover .info-icon { background: var(--accent); color: #fff; }
.kpi-value {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 6px 0;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.kpi-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 600;
}
.kpi-row .pos { color: var(--green); }
.kpi-row .neg { color: var(--red); }

/* ── Grid ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 36px 36px 36px;
  max-width: 100%;
  overflow: hidden;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px 18px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;             /* Charts nie breiter als Card */
  min-width: 0;                 /* Grid-Item darf schrumpfen */
}
.card.span-2 { grid-column: span 2; }
.card h2 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--accent-d);
}
.card .card-sub {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 3px;
  margin-bottom: 10px;
}
.chart { width: 100%; height: 360px; max-width: 100%; }
.chart.small { height: 240px; }
.chart.heatmap { height: 320px; }

/* ── Heatmap Desktop/Mobile Split ──────────────────── */
.heatmap-mobile { display: none; }
.hm-group { margin-bottom: 14px; }
.hm-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-d);
  margin-bottom: 2px;
}
.heatmap-sm { height: 150px; }

/* ── Range Bar (Zeitraum-Buttons unter Charts) ─────── */
.range-bar {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.range-btn {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.range-btn:hover {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}
.range-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Explainer (Erklärtext unter Charts) ──────────── */
.explainer {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.65;
}
.explainer strong { color: var(--fg); }
.explainer em { color: var(--accent-d); font-style: italic; }
.explainer a { color: var(--accent); text-decoration: none; font-weight: 700; }
.explainer a:hover { text-decoration: underline; }
.explainer.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.explainer.two-col > div {
  padding-right: 4px;
}
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding: 0 2px;
}

/* ── Tabelle ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: right;
  padding: 11px 12px;
  background: var(--bg-3);
  color: var(--fg-dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
thead th:nth-child(1), thead th:nth-child(2) { text-align: left; }
tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
tbody td:nth-child(1), tbody td:nth-child(2) { text-align: left; }
tbody td:nth-child(1) { font-weight: 700; color: var(--accent-d); }
tbody td:nth-child(2) { color: var(--fg-mid); }
tbody tr:hover { background: var(--bg-3); }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pill.cool   { background: var(--accent-bg); color: var(--accent-d); }
.pill.normal { background: var(--bg-4); color: var(--fg-mid); }
.pill.warm   { background: var(--orange-bg); color: var(--orange); }
.pill.hot    { background: var(--red-bg); color: var(--red); }

/* ── Lexikon ────────────────────────────────────────── */
.lexikon {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 36px;
  margin-top: 24px;
}
.lexikon-inner { max-width: 1400px; margin: 0 auto; }
.lexikon h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--accent-d);
}
.lex-intro {
  text-align: center;
  color: var(--fg-mid);
  margin-bottom: 32px;
  font-size: 16px;
}
.lex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.lex-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.lex-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-l);
}
.lex-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-bg) 100%);
}
.lex-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-d);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lex-tag {
  background: var(--accent-bg);
  color: var(--accent-d);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.4px;
}
.lex-card p {
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.6;
  margin-bottom: 8px;
}
.lex-card .lex-use {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.6;
}
.lex-card .lex-use strong { color: var(--fg); }
.lex-card .lex-action {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--green-bg);
  border-radius: 6px;
  border-left: 3px solid var(--green);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-mid);
}
.lex-card .lex-action strong { color: var(--green); display: block; margin-bottom: 3px; font-weight: 800; }
.lex-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--fg-mid);
}
.lex-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.lex-footer a:hover { text-decoration: underline; }

/* ── Strategie-Block ───────────────────────────────── */
.strategy {
  padding: 56px 36px;
  background: var(--bg);
}
.strategy-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.strategy h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 28px;
  color: var(--accent-d);
}
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.strategy-grid > div {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.strategy-grid h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-d);
  margin-bottom: 10px;
}
.strategy-grid p {
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.65;
}
.strategy-grid p strong { color: var(--fg); }
.strategy-grid p em { color: var(--accent-d); font-style: italic; }
.strategy-cta {
  text-align: center;
  margin-top: 28px;
  font-size: 15px;
  color: var(--fg-mid);
}
.strategy-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}
.strategy-cta a:hover { text-decoration: underline; }

/* ── Disclaimer ─────────────────────────────────────── */
.disclaimer {
  margin: 0;
  padding: 28px 36px;
  background: #fff5d6;
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  text-align: center;
}
.disclaimer-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.disclaimer-title {
  font-size: 18px;
  font-weight: 900;
  color: #8a5a00;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.disclaimer-body {
  font-size: 15px;
  font-weight: 700;
  color: #5e3e00;
  line-height: 1.55;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 36px;
  font-size: 12px;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
  margin-top: 0;
  background: var(--bg-2);
}
footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
footer a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .strategy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; padding: 0 12px 24px 12px; }
  .card.span-2 { grid-column: span 1; }
  .card { padding: 16px 14px 14px 14px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .topnav { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  .regime { margin: 10px 12px 0 12px; padding: 14px 16px; }
  .lamp-stack { grid-template-columns: 1fr; }
  .kpi-value { font-size: 24px; }
  .hero { padding: 22px 16px 8px 16px; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .verdict { margin: 10px 12px 0 12px; padding: 14px 16px; }
  .lexikon { padding: 28px 14px; }
  .lex-grid { grid-template-columns: 1fr; }
  .strategy { padding: 28px 14px; }
  .explainer.two-col { grid-template-columns: 1fr; }
  .chart { height: 280px; }
  .chart.small { height: 200px; }
  .chart.heatmap { height: 260px; }
  .heatmap-desktop { display: none; }
  .heatmap-mobile { display: block; }
  .table-wrap { font-size: 12px; }
  .disclaimer { padding: 18px 14px; }
  .disclaimer-title { font-size: 15px; }
  .disclaimer-body { font-size: 13px; }
  footer { padding: 14px 16px; font-size: 12px; flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
  .topnav a { font-size: 13px; }
  .chart { height: 220px; }
  .chart.small { height: 180px; }
  .chart.heatmap { height: 220px; }
  .range-btn { padding: 4px 8px; font-size: 11px; }
}
