/**
 * style.css — Avolta Voya Pricing Calculator
 *
 * Avolta Brand-Token-System, portiert aus src/app/globals.css.
 * Alle CSS-Variablen sind 1:1 aus dem Original übernommen.
 *
 * Struktur:
 *  1. Brand-Tokens (CSS Custom Properties)
 *  2. Reset & Basis-Stile
 *  3. Typografie
 *  4. Formular-Elemente
 *  5. UI-Komponenten (Buttons, Chips, Toggle, Cards)
 *  6. Layout-Helfer
 *  7. Scrollbar-Stile
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. BRAND-TOKENS — Avolta Design System
   Quelle: avoltaworld.com + Voya-Markendatei (Original: globals.css)
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Hintergründe */
  --bg:           #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F7F6F4;   /* Warmes Off-White (Sidebar, Cards) */
  --surface-3:    #EFEEEA;   /* Hover / Pressed */

  /* Textfarben */
  --ink:          #1A1A1A;   /* Fast-Schwarz für Fließtext */
  --ink-2:        #2D2D2D;   /* Schwerer Display-Text */
  --ink-muted:    #5A5A60;   /* Sekundärtext */
  --ink-subtle:   #8A8A92;   /* Hinweise, Bildunterschriften */

  /* Rahmen */
  --border:       #E8E6E1;   /* Haarlinie */
  --border-strong:#D0CEC8;   /* Eingabe-Rahmen */

  /* Avolta-Violett — dominierender Marken-Akzent */
  --brand:        #7C3AED;   /* Primärviolett (Titel, Akzente) */
  --brand-soft:   #A78BFA;   /* Lila Karten-Hintergrund */
  --brand-softer: #C4B5FD;   /* Helleres Overlay */
  --brand-deep:   #6D28D9;   /* Hover / Pressed */
  --brand-tint:   #F5F3FF;   /* Sehr heller Anstrich */

  /* CTA — dunkle Pille */
  --cta:          #0F0F12;
  --cta-hover:    #2D2D33;

  /* Schritt-Farben — aus dem ursprünglichen Voya-Markenfarb-Code-File
   * Jede Farbe kodiert den Kampagnen-Bucket:
   * GR = Owned, BL = In-Store, PU = Audience, RE = IBX */
  --step-1:       #4A7C59;   /* GR — Owned Channels */
  --step-2:       #2E6B8A;   /* BL — In-Store */
  --step-3:       #6B4FA0;   /* PU — Audience Extension */
  --step-4:       #9B4040;   /* RE — Interactive Brand Experience */

  /* Status-Farben */
  --danger:       #B14545;
  --warning:      #C57E2A;
  --success:      #2F6B4A;

  /* Radien */
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-pill:  9999px;

  /* Schatten */
  --shadow-sm:    0 1px 2px rgb(26 26 26 / 0.04);
  --shadow:       0 6px 24px rgb(26 26 26 / 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. RESET & BASIS
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "tnum";
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. TYPOGRAFIE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Überschriften — sehr schwer, sehr eng, Avolta-Stil */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}
h1 { font-weight: 900; letter-spacing: -0.04em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* Display — für große Zahlen-Ausgaben */
.display {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* Eyebrow — Klein-Großbuchstaben Abschnitts-Labels */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.tabular { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════════════
   4. FORMULAR-ELEMENTE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Basis-Stile für Text-Eingaben */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.375rem 0.625rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(124 58 237 / 0.18);
}

/* Zahlen-Spinner ausblenden (Custom Stepper vorhanden) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* Range-Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2px solid white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. UI-KOMPONENTEN
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, color 0.15s;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primär (schwarz-Pille) */
.btn-primary {
  background: var(--cta);
  color: #fff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn-primary:hover:not(:disabled) { background: var(--cta-hover); }

/* Sekundär (Rahmen) */
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }

/* Ghost (transparent) */
.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }

/* Groß */
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* Klein */
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.75rem; }

/* ── Toggle-Schalter ── */
.toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.toggle-wrap input[type="checkbox"] { display: none; }

.toggle-track {
  width: 36px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-wrap.checked .toggle-track { background: var(--brand); }
.toggle-track::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle-wrap.checked .toggle-track::after { transform: translateX(16px); }

.toggle-label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.toggle-wrap.sm .toggle-track { width: 28px; height: 16px; }
.toggle-wrap.sm .toggle-track::after { width: 10px; height: 10px; top: 3px; left: 3px; }
.toggle-wrap.sm.checked .toggle-track::after { transform: translateX(12px); }
.toggle-wrap.sm .toggle-label { font-size: 0.75rem; }

/* ── Chips ── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active-step1 { background: var(--step-1); border-color: var(--step-1); color: #fff; }
.chip.active-step2 { background: var(--step-2); border-color: var(--step-2); color: #fff; }
.chip.active-step3 { background: var(--step-3); border-color: var(--step-3); color: #fff; }
.chip.active-brand { color: #fff; }

/* ── Stepper (−/Zahl/+) ── */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stepper-label { font-size: 0.75rem; color: var(--ink-muted); min-width: 60px; }
.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.1s;
}
.stepper-btn:hover { background: var(--surface-2); }
.stepper-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper-val { font-size: 0.9375rem; font-weight: 600; min-width: 2rem; text-align: center; }

/* ── Slider ── */
.slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.slider-label { font-size: 0.75rem; color: var(--ink-muted); min-width: 30px; }
.slider-wrap input[type="range"] { flex: 1; }
.slider-val { font-size: 0.75rem; font-weight: 600; min-width: 40px; text-align: right; }

/* ── Discount-Eingabe ── */
.disc-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
}
.disc-input input {
  width: 36px;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
  padding: 0;
  color: var(--ink);
}
.disc-input input:focus { box-shadow: none; }
.disc-input span { font-size: 0.75rem; color: var(--ink-muted); }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Section innerhalb einer Card */
.section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  user-select: none;
  background: var(--surface-2);
}
.section-header:hover { background: var(--surface-3); }
.section-step {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.section-title { font-size: 0.8125rem; font-weight: 700; flex: 1; margin-left: 0.5rem; }
.section-chevron { font-size: 10px; color: var(--ink-subtle); transition: transform 0.2s; }
.section-chevron.open { transform: rotate(180deg); }
.section-body { padding: 0.875rem; display: none; }
.section-body.open { display: block; }

/* ── Badge / Auth-Warnung ── */
.auth-bypass-banner {
  background: var(--danger);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem;
}

/* ── Tabs ── */
.tab-bar {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 3px;
  border: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  padding: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Budget-Balken ── */
.budget-bar {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  background: var(--surface-3);
}
.budget-bar-segment {
  height: 100%;
  flex-shrink: 0;
  transition: width 0.3s;
}

/* ── Location-Pill ── */
.location-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}
.location-pill-name { font-weight: 500; flex: 1; }
.location-pill-country { font-size: 11px; color: var(--ink-subtle); }
.location-pill-tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}
.location-pill-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-subtle);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.1s;
}
.location-pill-remove:hover { color: var(--danger); }

/* ── Location-Suchfeld ── */
.loc-search-wrap { position: relative; }
.loc-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.loc-search-dropdown.open { display: block; }
.loc-search-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.loc-search-item:hover { background: var(--surface-2); }
.loc-search-item-country { font-size: 11px; color: var(--ink-subtle); }
.loc-search-item-tier {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* ── Tabelle ── */
.overview-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.overview-table th {
  text-align: right;
  padding: 0.375rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.overview-table th:first-child { text-align: left; }
.overview-table td {
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.overview-table td:first-child { text-align: left; color: var(--ink-muted); }
.overview-table tr:last-child td { border-bottom: none; }
.overview-table tr.row-sep td {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-3);
  padding: 0.25rem 0.75rem;
}
.overview-table tr.row-total td {
  font-weight: 600;
  font-size: 0.8125rem;
  background: var(--surface-2);
  padding: 0.625rem 0.75rem;
}

/* ── Warn-Box ── */
.warn-box {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.warn-box-icon { font-size: 1rem; }
.warn-box-title { font-weight: 700; color: var(--danger); margin-bottom: 0.2rem; }
.warn-box-text { color: var(--ink-muted); line-height: 1.4; }

/* ── KV-Zeile (Key-Value) ── */
.kv { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.kv-label { color: var(--ink-muted); }
.kv-value { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── Box für DOOH/Screens-Details ── */
.detail-box {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

/* Haupt-App-Layout: Header + zweispaltiger Inhalt */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky-Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  flex-wrap: wrap;
}

/* Zweispaltiges Haupt-Raster */
.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  overflow: hidden;
  min-height: 0;
}
.app-main {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}
.app-sidebar {
  border-left: 1px solid var(--border);
  background: var(--surface-2);
  overflow-y: auto;
  padding: 1.25rem;
}

/* Intake-Formular zentriert */
.intake-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.intake-inner { width: 100%; max-width: 640px; }

/* Budget-Eingabe (Header-Element) */
.budget-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.budget-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(124 58 237 / 0.2);
}
.budget-input-wrap.over { border-color: var(--danger); }
.budget-input-wrap input {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  width: 7rem;
  padding: 0;
}
.budget-input-wrap input:focus { box-shadow: none; }
.budget-symbol { font-size: 1rem; color: var(--ink-subtle); }
.over-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
}

/* Brand-Liste */
.brand-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

/* Step-Total-Leiste */
.step-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid;
}
.step-total-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.step-total-value {
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Brand-Total-Box */
.brand-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}
.brand-total-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.brand-total-value {
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Inline-Row (Toggle + Discount-Eingabe) ── */
.row-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.row-body { padding-left: 2.5rem; margin-top: 0.5rem; }
.row-sub { display: flex; flex-direction: column; gap: 0.375rem; }

/* Newsletter-Land-Button */
.nl-country-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.8125rem;
}
.nl-country-btn.active {
  border-color: var(--step-1);
  background: color-mix(in srgb, var(--step-1) 5%, transparent);
}
.nl-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nl-checkbox.checked { background: var(--step-1); border-color: var(--step-1); }
.nl-checkbox.checked::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 900; }

/* ── Overview Karten ── */
.ov-budget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.ov-brand-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 0.375rem;
}
.ov-brand-chip:last-child { margin-bottom: 0; }

/* ── Export-Buttons ── */
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.btn-export-xl {
  padding: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-export-xl:hover { background: var(--surface-2); }
.btn-export-pptx {
  padding: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: opacity 0.15s;
  font-family: inherit;
}
.btn-export-pptx:hover { opacity: 0.88; }

/* ── Donut-Chart ── */
.donut-wrap { display: flex; align-items: center; gap: 1rem; }
.donut-legend { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.donut-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.donut-legend-label { flex: 1; color: var(--ink-muted); }
.donut-legend-value { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── HBar ── */
.hbar { display: flex; flex-direction: column; gap: 0.625rem; }
.hbar-row { display: flex; align-items: center; gap: 0.5rem; }
.hbar-label { width: 80px; text-align: right; font-size: 0.75rem; font-weight: 600; }
.hbar-track { position: relative; height: 20px; border-radius: 3px; overflow: hidden; display: flex; flex: 1; }
.hbar-segment { height: 100%; flex-shrink: 0; transition: width 0.3s; }
.hbar-total { font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }

/* ── Chart-Container ── */
.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.chart-legend-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.chart-legend-item { display: flex; align-items: center; gap: 0.375rem; font-size: 11px; color: var(--ink-muted); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 2px; }

/* ── Number-Filter-Pills (Marken-Auswahl in Overview) ── */
.filter-pills { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.filter-pill {
  padding: 0.125rem 0.625rem;
  height: 24px;
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  display: flex;
  align-items: center;
}
.filter-pill.active-all {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. HILFSKLASSEN
   ═══════════════════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 672px; margin-left: auto; margin-right: auto; }
