/* ==========================================================================
   MAANDLASTEN SPANJE CALCULATOR - TOPSCORE.NL
   100% Pure Vanilla CSS - Geen externe frameworks, libraries of preprocessors.
   ========================================================================== */

:root {
  --navy-dark: #071524;
  --navy: #0b1f36;
  --navy-light: #163659;
  --navy-rgb: 11, 31, 54;
  
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --accent-soft: #fffbeb;
  
  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;
  
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #2563eb;
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.07), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ==========================================================================
   PRINT HEADER (standaard verborgen op scherm)
   ========================================================================== */
.print-header {
  display: none;
}

/* ==========================================================================
   TOP BAR CONTRACT (Header: 3 Zones)
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

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

/* Zone 1: Merk woordmerk */
.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

/* Zone 2: Navigatielinks */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Zone 3: Acties */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-action-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-action-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent-hover);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-action-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO STRIP & SCENARIO PRESETS
   ========================================================================== */
.hero-strip {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
}

.hero-content {
  max-width: 1440px;
  margin: 0 auto;
}

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

.hero-strip h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

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

.hero-subtext strong {
  color: var(--text-main);
}

/* Presets */
.presets-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.preset-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.preset-pill:hover {
  border-color: var(--accent);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.preset-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.preset-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.preset-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preset-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   HOOFDINDELING (2 Kolommen op Desktop, 1 Kolom op Mobiel)
   ========================================================================== */
.main-layout {
  max-width: 1440px;
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* ==========================================================================
   SECTIES & KAARTEN
   ========================================================================== */
.card-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}

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

.section-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.section-title-wrap p {
  font-size: 0.785rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Formulier Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.label-row label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.label-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.input-with-affix {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-with-affix:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.affix {
  padding: 0.5rem 0.65rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  user-select: none;
}

.affix.prefix {
  border-right: 1px solid var(--border);
}

.affix.suffix {
  border-left: 1px solid var(--border);
}

.form-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-equiv {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Range Slider */
.slider-row {
  margin-top: 0.2rem;
}

.slider-row input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.slider-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Toggle Mode Pills */
.toggle-mode-pill {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.mode-btn {
  background: transparent;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.mode-btn.active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

.inline-quick-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* Quick hypotheek banner */
.quick-banner-box {
  margin-top: 1rem;
  background: var(--accent-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-banner-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #92400e;
}

.quick-banner-val {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quick-banner-sub {
  font-size: 0.75rem;
  color: #b45309;
}

/* ==========================================================================
   RESULTATEN KOLOM: HERO KPI BANNER
   ========================================================================== */
.hero-kpi-card {
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.kpi-header-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-cost-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.split-col {
  display: flex;
  flex-direction: column;
}

.split-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.split-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0.25rem 0;
  font-variant-numeric: tabular-nums;
}

.split-sub {
  font-size: 0.785rem;
  color: var(--text-muted);
}

.split-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.hero-secondary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.15rem;
}

.sec-stat {
  display: flex;
  flex-direction: column;
}

.sec-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sec-stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.highlight-sec {
  background: var(--emerald-light);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   DE 5 GEVRAAGDE KERNINDICATOREN (KPI Grid)
   ========================================================================== */
.kpi-core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.highlight-border-accent {
  border-left: 4px solid var(--accent);
}

.highlight-border-navy {
  border-left: 4px solid var(--navy);
  background: #fafcff;
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

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

.kpi-icon-pill {
  font-size: 1.1rem;
  line-height: 1;
}

.kpi-card-value {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.4rem 0 0.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kpi-card-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   VERGELIJKING MET vs. ZONDER HYPOTHEEK
   ========================================================================== */
.comparison-section {
  border: 2px solid #cbd5e1;
  background: #ffffff;
}

.comparison-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.comparison-card {
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}

.card-with-mortgage {
  background: #fefce8;
  border: 1px solid #fef08a;
}

.card-without-mortgage {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

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

.comp-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent {
  background: #d97706;
  color: #ffffff;
}

.badge-emerald {
  background: #059669;
  color: #ffffff;
}

.comp-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.comparison-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.comp-main-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.comp-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.comp-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.comp-year-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  font-variant-numeric: tabular-nums;
}

.comp-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.comp-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

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

.comp-detail-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.comp-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0.4rem 0;
}

.comp-highlight-row {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
}

.comp-highlight-row .comp-detail-label {
  font-weight: 700;
  color: var(--text-main);
}

.comp-highlight-row .comp-detail-val {
  font-size: 0.95rem;
}

/* Callout Box */
.comparison-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.callout-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.callout-body h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.callout-body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Gestapelde vergelijkingsbalken */
.comparison-bar-visual {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bar-visual-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bar-visual-label-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
}

.stacked-bar-track {
  width: 100%;
  height: 22px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-hypotheek {
  background: #d97706;
}

.seg-vast {
  background: #2563eb;
}

.seg-variabel {
  background: #059669;
}

.stacked-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* ==========================================================================
   GRAFIEKEN (Pure HTML5 Canvas)
   ========================================================================== */
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.chart-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.chart-header p {
  font-size: 0.785rem;
  color: var(--text-muted);
}

.badge-tag {
  background: var(--navy-light);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.charts-double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.donut-chart-card,
.bar-chart-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-chart-card h5,
.bar-chart-card h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.donut-canvas-container,
.bar-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.donut-canvas-container canvas,
.bar-canvas-container canvas {
  max-width: 100%;
  height: auto;
}

.donut-legend-list {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.785rem;
}

.donut-legend-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
}

.donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.bar-card-footer {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   SPECIFICATIE TABEL
   ========================================================================== */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

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

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

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

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

.data-table tfoot tr {
  background: #f1f5f9;
  font-weight: 800;
  border-top: 2px solid var(--navy);
}

.text-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.text-navy {
  color: var(--navy);
}

.text-accent {
  color: var(--accent);
}

.text-emerald {
  color: var(--emerald);
}

.text-danger {
  color: var(--danger);
}

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

.font-bold {
  font-weight: 700;
}

/* ==========================================================================
   ACCORDION (Kennisbank)
   ========================================================================== */
.info-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.info-summary {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--bg-subtle);
  user-select: none;
  font-weight: 600;
  color: var(--navy);
}

.info-summary:hover {
  background: #e2e8f0;
}

.info-content {
  padding: 0.9rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.info-content p {
  margin-bottom: 0.6rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content strong {
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  border-top: 3px solid var(--accent);
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-disclaimer-text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748b;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* ==========================================================================
   TOAST NOTIFICATIE
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1000;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (Mobiel & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .charts-double-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-cost-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .split-divider {
    display: none;
  }
  
  .hero-secondary-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .header-actions span {
    display: none;
  }
  
  .btn-action-ghost,
  .btn-action-primary {
    padding: 0.45rem 0.55rem;
  }
  
  .hero-strip {
    padding: 1.75rem 1rem 1.5rem;
  }
  
  .hero-strip h2 {
    font-size: 1.45rem;
  }
  
  .presets-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-core-grid {
    grid-template-columns: 1fr;
  }
  
  .full-grid-mobile {
    grid-column: auto;
  }
  
  .comparison-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ==========================================================================
   PRINT STYLESHEET (PDF & Afdrukken)
   ========================================================================== */
@media print {
  @page {
    margin: 1.2cm;
    size: A4 portrait;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .site-header,
  .hero-strip,
  .inputs-column,
  .header-actions,
  .site-footer,
  .toast,
  .info-accordion,
  .presets-container {
    display: none !important;
  }

  .print-header {
    display: block !important;
    margin-bottom: 1.5cm;
    border-bottom: 2pt solid #0b1f36;
    padding-bottom: 0.5cm;
  }

  .print-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .print-header h1 {
    font-size: 18pt;
    font-weight: 800;
    color: #0b1f36;
  }

  .print-header p {
    font-size: 10pt;
    color: #475569;
  }

  .print-meta {
    font-size: 9pt;
    font-weight: 600;
    color: #64748b;
  }

  .main-layout {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .results-column {
    width: 100% !important;
  }

  .card-section,
  .hero-kpi-card,
  .comparison-card {
    border: 1pt solid #cbd5e1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 1cm !important;
  }

  .comparison-cards-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .data-table th {
    background: #f1f5f9 !important;
    color: #000000 !important;
  }

  .data-table td,
  .data-table th {
    border-bottom: 0.5pt solid #cbd5e1 !important;
    padding: 6pt 8pt !important;
  }
}
