/* ==========================================================================
   VERHUUR ROI CALCULATOR - STIJLBLAD (100% PURE VANILLA CSS)
   Professioneel Vastgoed Investeringsdashboard
   ========================================================================== */

:root {
  --color-primary: #1e3a8a;       /* Diep marineblauw */
  --color-primary-dark: #0f172a;  /* Nachtblauw / Slate 900 */
  --color-primary-light: #3b82f6; /* Accent blauw */
  --color-accent: #059669;        /* Beleggers groen (Rendement) */
  --color-accent-light: #d1fae5;
  --color-accent-hover: #047857;
  --color-amber: #d97706;         /* Attentie / Waarschuwing */
  --color-amber-light: #fef3c7;
  --color-rose: #e11d48;          /* Negatief / Kosten */
  --color-rose-light: #ffe4e6;
  
  --bg-body: #f8fafc;             /* Zachte neutrale achtergrond */
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Basis Reset & Box-Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tabular nummers voor financiële bedragen */
.num, .kpi-value, .summary-amount, td, .stat-value {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   HEADER & NAVIGATIE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.25);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--bg-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  background-color: #fff;
  color: var(--text-main);
  text-decoration: none;
}

.btn-header:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-header-primary {
  background: linear-gradient(135deg, var(--color-accent), #047857);
  color: #fff;
  border: none;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}

.btn-header-primary:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.35);
}

/* ==========================================================================
   HERO & PRESETS STRIP
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 2.25rem 1.5rem 1.75rem;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.hero-badge-row span.bullet {
  color: var(--text-light);
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 880px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Presets balk */
.presets-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.presets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.presets-header span {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.preset-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.preset-card:hover {
  background: #ffffff;
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.preset-card.active {
  background: #eff6ff;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 1px var(--color-primary-light);
}

.preset-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.preset-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.preset-info strong {
  font-size: 0.8125rem;
  color: var(--text-main);
  font-weight: 700;
}

.preset-info small {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==========================================================================
   HOOFD INDELING (2 KOLOMMEN: INVOER vs RESULTATEN DASHBOARD)
   ========================================================================== */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 2rem;
  align-items: start;
}

/* Kolom links: Invoersecties */
.inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.card-title-group h2, .card-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.card-title-group p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Formulier velden */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-label-row .info-hint {
  font-size: 0.725rem;
  font-weight: 400;
  color: var(--text-muted);
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-symbol {
  position: absolute;
  left: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 600;
}

.input-symbol.right {
  left: auto;
  right: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-input.has-right-symbol {
  padding-left: 0.85rem;
  padding-right: 2.25rem;
}

.form-input:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Dual input: Range Slider + Cijfer */
.slider-container {
  margin-top: 0.5rem;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Quick Chips / Toggle Buttons */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.chip-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.chip-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.toggle-group {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
  border: 1px solid var(--border-light);
}

.toggle-opt {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.5rem;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-opt.active {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* 2-koloms velden binnen card */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

/* Collapsible Geavanceerde Instellingen */
.advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.25rem 0.25rem;
  background: transparent;
  border: none;
  border-top: 1px dashed var(--border-light);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  margin-top: 1rem;
}

.advanced-toggle:hover {
  text-decoration: underline;
}

.advanced-content {
  display: none;
  padding-top: 1rem;
}

.advanced-content.open {
  display: block;
}

/* ==========================================================================
   RECHTERKOLOM: RESULTATEN DASHBOARD (STICKY DESKTOP)
   ========================================================================== */
.results-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sticky-panel {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hoofd KPI Banner */
.kpi-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.kpi-hero-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.kpi-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.kpi-badge.positive {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.kpi-badge.negative {
  background: rgba(244, 63, 94, 0.25);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.kpi-hero-main {
  margin-bottom: 1.25rem;
}

.kpi-hero-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-hero-value {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 0.2rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.kpi-hero-value small {
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
}

.kpi-hero-sub {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Secondary KPI Grid */
.kpi-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
}

.kpi-sub-item {
  display: flex;
  flex-direction: column;
}

.kpi-sub-label {
  font-size: 0.725rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.kpi-sub-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.1rem;
}

.kpi-sub-val.highlight {
  color: #34d399; /* Bright emerald */
}

/* Metric Cards Grid */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.metric-title {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-tooltip {
  cursor: help;
  color: var(--text-light);
  font-size: 0.8rem;
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.metric-val.green {
  color: var(--color-accent);
}

.metric-val.blue {
  color: var(--color-primary);
}

.metric-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Visual Bar Breakdown (Kasstroom waterval) */
.breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.breakdown-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cashflow-bar-wrapper {
  margin: 1rem 0 1.25rem;
}

.stacked-bar {
  display: flex;
  height: 22px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bar-segment {
  height: 100%;
  transition: width 0.3s ease;
  position: relative;
}

.bar-segment.segment-expenses {
  background-color: #f59e0b; /* Amber */
}

.bar-segment.segment-mortgage {
  background-color: #3b82f6; /* Blue */
}

.bar-segment.segment-cashflow {
  background-color: #10b981; /* Green */
}

.bar-segment.segment-negative {
  background-color: #ef4444; /* Red */
}

.stacked-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Investering & Eigen Vermogen balk */
.investment-summary-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  padding-top: 0.5rem;
}

.summary-label {
  color: var(--text-muted);
}

.summary-row:last-child .summary-label {
  color: var(--color-primary-dark);
}

/* Deal Beoordeling & Gezondheidsmeter (DSCR) */
.deal-verdict-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.deal-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.verdict-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
}

.verdict-tag.great {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.verdict-tag.moderate {
  background: var(--color-amber-light);
  color: var(--color-amber);
}

.verdict-tag.warning {
  background: var(--color-rose-light);
  color: var(--color-rose);
}

.deal-explanation {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ratios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.ratio-cell {
  text-align: center;
}

.ratio-cell small {
  display: block;
  font-size: 0.675rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.ratio-cell strong {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* ==========================================================================
   MEERJARIGE PROGNOSE & VERMOGENSOPBOUW SECTIE (FULL WIDTH)
   ========================================================================== */
.projections-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.projections-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.projections-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.projections-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.projections-header p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.horizon-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.horizon-selector span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.horizon-pill {
  padding: 0.35rem 0.75rem;
  font-size: 0.775rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.horizon-pill:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.horizon-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Highlight boxes voor jaar X */
.projection-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.highlight-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.highlight-box.special {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.highlight-box small {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text-muted);
}

.highlight-box.special small {
  color: var(--color-accent-hover);
}

.highlight-box .box-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-top: 0.2rem;
}

.highlight-box.special .box-value {
  color: var(--color-accent);
}

.highlight-box .box-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* SVG Chart */
.chart-container {
  width: 100%;
  height: 260px;
  margin-bottom: 1.5rem;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Tabel */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: right;
}

.data-table th, .data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.data-table th:first-child, .data-table td:first-child {
  text-align: left;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table tbody tr.highlight-row {
  background-color: #eff6ff;
  font-weight: 700;
}

.text-green {
  color: var(--color-accent);
  font-weight: 600;
}

.text-rose {
  color: var(--color-rose);
  font-weight: 600;
}

/* ==========================================================================
   GEVOELIGHEIDSANALYSE / STRESSTEST
   ========================================================================== */
.stress-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.stress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.stress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.stress-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background: var(--bg-subtle);
}

.stress-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stress-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
}

.stress-metric-row.main {
  font-weight: 700;
  border-top: 1px solid var(--border-light);
  padding-top: 0.45rem;
  margin-top: 0.35rem;
}

/* ==========================================================================
   KENNISBANK, BEGRIPPENLIJST & FAQ (SEO & INHOUD)
   ========================================================================== */
.faq-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.faq-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 800px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.glossary-item {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
}

.glossary-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.glossary-item p {
  font-size: 0.825rem;
  color: var(--text-main);
  line-height: 1.5;
}

.glossary-formula {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: #e2e8f0;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  color: #1e293b;
}

/* Accordion FAQ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.accordion-trigger:hover {
  background: var(--bg-subtle);
}

.accordion-icon {
  transition: transform 0.2s ease;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.accordion-item.open .accordion-panel {
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  max-width: 500px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  line-height: 1.5;
}

/* Toast Notificatie (bij Kopiëren) */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PRINT STIJLEN (A4 RAPPORT EXPORT)
   ========================================================================== */
.print-only {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  
  .site-header,
  .hero-badge-row,
  .presets-wrap,
  .btn-header,
  .range-slider,
  .chip-row,
  .toggle-group,
  .advanced-toggle,
  .horizon-selector,
  .accordion-icon,
  .site-footer,
  .toast-msg,
  .header-actions {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0f172a;
  }
  
  .print-only h1 {
    font-size: 18pt;
    font-weight: 800;
    color: #0f172a;
  }
  
  .calculator-grid {
    display: block !important;
  }
  
  .sticky-panel {
    position: static !important;
  }
  
  .card, .projections-card, .faq-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }
  
  .kpi-hero-banner {
    background: #1e3a8a !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .accordion-panel {
    display: block !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBIELE TELEFOONS & TABLETS)
   ========================================================================== */
@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  
  .sticky-panel {
    position: static;
  }
  
  .header-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .form-row-2, .form-row-3, .kpi-sub-grid, .metrics-row, .ratios-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-hero-value {
    font-size: 1.9rem;
  }
  
  .presets-grid {
    grid-template-columns: 1fr;
  }
  
  .header-inner {
    padding: 0.6rem 1rem;
  }
  
  .brand-text h1 {
    font-size: 1rem;
  }
  
  .main-wrapper, .projections-section, .stress-section, .faq-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
