/* ═══════════════════════════════════════════════
   GRENZEN DICHT — PROFESSIONELE HUISSTIJL
   Lettertype: Arial · Achtergrond: wit
   ═══════════════════════════════════════════════ */

:root {
  /* Achtergronden */
  --bg:       #ffffff;
  --bg2:      #f4f7fb;
  --bg3:      #e8eef6;
  --border:   #cfd8e8;
  --border-2: #b0bfd4;

  /* Typografie */
  --text:     #0f1d30;
  --text-2:   #3d526b;
  --muted:    #4a6480;

  /* Huiskleuren */
  --brand:    #0d2d6b;   /* diep institutioneel blauw */
  --brand-bg: #edf1f9;   /* licht brand-blauw voor achtergronden */

  /* Datapalet — alleen rood en blauw */
  --blue:     #1d6fd4;   /* primair blauw */
  --blue-2:   #4a90d9;   /* lichter blauw */
  --red:      #b91c1c;   /* primair rood */
  --red-2:    #991b1b;   /* donkerder rood */

  /* Backward compat: remapped naar rood/blauw */
  --orange:   #c0392b;   /* → roodtint */
  --green:    #1d6fd4;   /* → blauw */
  --purple:   #0d2d6b;   /* → navy */
  --teal:     #4a90d9;   /* → blauw accent */
  --gold:     #991b1b;   /* → donker rood */

  /* Legacy aliassen */
  --navy:     #0d2d6b;
  --amber:    #c0392b;
  --light:    #f4f7fb;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

/* ─── NAVIGATIE ─── */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: #ffffff;
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  color: var(--brand) !important;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none; letter-spacing: -0.3px;
}
.nav-links {
  display: flex; gap: 0.1rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-2) !important;
  text-decoration: none; font-size: 0.81rem;
  padding: 0.4rem 0.7rem; border-radius: 4px;
  transition: all 0.15s; font-weight: 400;
}
.nav-links a:hover { color: var(--brand) !important; background: var(--brand-bg); }
.nav-links a.active { color: var(--brand) !important; font-weight: 700; }

/* ─── MAIN ─── */
main { padding-top: 60px; }

/* ─── HERO (donkere paginakop, wit lichaam) ─── */
.hero {
  background: var(--brand);
  color: #ffffff;
  padding: 3.5rem 1.25rem 3rem;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }

.hero-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.55rem, 3.8vw, 2.5rem);
  font-weight: 700; line-height: 1.2;
  color: #ffffff; margin: 0 0 1rem; max-width: 780px;
}
.hero p {
  color: rgba(255,255,255,0.72); font-size: 0.95rem;
  max-width: 660px; margin: 0; line-height: 1.75;
}

/* STAT-GRID IN HERO */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.15);
  margin-top: 2.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  overflow: hidden;
}
.stat-card {
  background: rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  transition: background 0.15s;
}
.stat-card:hover { background: rgba(255,255,255,0.16); }
.stat-card .num {
  font-size: 1.85rem; font-weight: 700;
  color: #ffffff; line-height: 1;
}
.stat-card .label {
  font-size: 0.74rem; color: rgba(255,255,255,0.62);
  margin-top: 0.35rem; line-height: 1.4;
}

/* ─── CONTENT ─── */
.content { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.section { margin-bottom: 3rem; }

.section-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

/* ─── CHART-BOX ─── */
.chart-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.chart-box h3 {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text); margin: 0 0 1.25rem;
}
.chart-wrap    { position: relative; height: 320px; }
.chart-wrap-lg { position: relative; height: 420px; }
.chart-note    { font-size: 0.72rem; color: var(--muted); margin-top: 0.75rem; }

/* ─── TABEL ─── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th {
  background: var(--brand); color: #ffffff;
  padding: 0.65rem 1rem; text-align: left;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.3px;
}
.data-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg2); }
.data-table .num-col { font-weight: 700; color: var(--brand); }
.data-table .sub-row td { color: var(--muted); font-size: 0.8rem; padding-left: 2rem; }
.data-table strong { color: var(--text); }

/* ─── KAARTEN ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #ffffff; padding: 1.5rem;
  text-decoration: none; color: inherit;
  transition: all 0.15s; display: block;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.card-num   { font-size: 1.75rem; font-weight: 700; color: var(--red); }
.card-title { font-weight: 700; font-size: 0.95rem; margin: 0.25rem 0; color: var(--text); }
.card-body  { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.card-arrow { font-size: 0.77rem; color: var(--blue); font-weight: 700; margin-top: 0.75rem; }

/* ─── CALLOUTS ─── */
.callout {
  border-left: 4px solid;
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.86rem; line-height: 1.65;
}
.callout strong { display: block; margin-bottom: 0.25rem; color: var(--text); }
.callout-red {
  border: 3px solid var(--red);
  border-radius: 6px;
  background: #fef2f2;
  color: var(--text-2);
  padding-left: 3rem;
  position: relative;
}
.callout-red::before {
  content: '!';
  position: absolute;
  left: .9rem;
  top: .95rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.callout-amber  { border-color: var(--red-2); background: #fef2f2; color: var(--text-2); }
.callout-blue   { border-color: var(--blue);  background: #eff6ff; color: var(--text-2); }
.callout-green  { border-color: var(--blue);  background: #eff6ff; color: var(--text-2); }

/* ─── FASE-TIJDLIJN ─── */
.phase-list { list-style: none; padding: 0; margin: 0; }
.phase-item {
  display: flex; gap: 1.5rem;
  margin-bottom: 2rem; position: relative;
}
.phase-item::before {
  content: '';
  position: absolute; left: 1.25rem; top: 2.5rem; bottom: -2rem;
  width: 2px; background: var(--border);
}
.phase-item:last-child::before { display: none; }
.phase-num {
  width: 2.5rem; height: 2.5rem; min-width: 2.5rem;
  background: var(--brand); color: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem; z-index: 1;
}
.phase-content {
  flex: 1; background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px; padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.phase-content h3   { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.phase-content .meta { font-size: 0.75rem; color: var(--blue); margin-bottom: 0.75rem; font-weight: 600; }
.phase-content p    { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; margin: 0 0 0.5rem; }
.phase-content ul   { padding-left: 1.2rem; }
.phase-content li   { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; }

/* ─── STROOMDIAGRAM ─── */
.flow-diagram { display: flex; flex-direction: column; gap: 0; align-items: center; }
.flow-node {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.85rem 1.5rem;
  text-align: center; max-width: 320px; width: 100%;
  font-size: 0.86rem; font-weight: 600; color: var(--text);
}
.flow-node.highlight { background: var(--brand); color: #ffffff; border-color: var(--brand); }
.flow-node.highlight small { color: rgba(255,255,255,0.75); }
.flow-arrow { font-size: 1.4rem; color: var(--muted); line-height: 1.2; text-align: center; }
.flow-note  { font-size: 0.72rem; color: var(--muted); text-align: center; max-width: 260px; }

/* ─── CALCULATOR ─── */
.calc-box {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 6px; padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.calc-box label { font-size: 0.875rem; font-weight: 700; display: block; margin-bottom: 0.5rem; color: var(--text); }
.calc-box input[type=range] { width: 100%; margin-bottom: 0.25rem; accent-color: var(--brand); }
.calc-output {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.calc-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 1rem; text-align: center; }
.calc-item .big  { font-size: 1.35rem; font-weight: 700; color: var(--brand); }
.calc-item .small { font-size: 0.72rem; color: var(--muted); }

/* ─── BRONNEN ─── */
.source-date {
  display: inline-flex; align-items: center;
  font-size: 0.67rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 3px;
  background: #eff6ff; color: var(--blue);
  border: 1px solid #bfdbfe;
  margin-left: 0.6rem; white-space: nowrap;
  vertical-align: middle; letter-spacing: 0.2px;
}
.source-date.date-unknown {
  background: var(--bg2); color: var(--muted); border-color: var(--border);
}
.source-group { margin-bottom: 2rem; }
.source-group h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--brand); }
.source-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 0 4px 4px 0;
  padding: 0.9rem 1rem; margin-bottom: 0.5rem;
  font-size: 0.8rem; line-height: 1.55; color: var(--text-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.source-item a { color: var(--blue); text-decoration: none; word-break: break-all; }
.source-item a:hover { text-decoration: underline; }
.source-item .title { font-weight: 700; color: var(--text); display: block; margin-bottom: 0.2rem; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.6);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  margin-top: 4rem;
}
.site-footer a { color: #93c5fd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ─── OBSERVATIELIJST ─── */
.obs-list { list-style: none; padding: 0; }
.obs-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem; position: relative; line-height: 1.6;
  color: var(--text-2);
}
.obs-list li::before { content: '→'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.obs-list li:last-child { border-bottom: none; }
.obs-list li strong { color: var(--text); }

/* ─── KANSBALKEN ─── */
.prob-bar-wrap { background: var(--bg3); border-radius: 99px; height: 8px; margin: 0.3rem 0; }
.prob-bar      { height: 8px; border-radius: 99px; background: var(--red); }

/* ─── BADGES ─── */
.badge {
  display: inline-block; font-size: 0.67rem; font-weight: 700;
  padding: 0.18rem 0.5rem; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-hard { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }
.badge-est  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ─── TWEE KOLOMMEN ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ─── ACCENTTEKST ─── */
.hl-red   { color: var(--red);    font-weight: 700; }
.hl-amber { color: var(--orange); font-weight: 700; }

/* ─── INFO-BLOK ─── */
.info-block {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; padding: 1rem 1.25rem;
  font-size: 0.84rem; color: var(--text-2); line-height: 1.65;
}
.info-block strong { color: var(--text); }

/* ─── HAMBURGER KNOP ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
  border-radius: 4px; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── RESPONSIEF ─── */
@media (max-width: 820px) {
  /* NAV */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 63px; left: 0; right: 0;
    background: #fff;
    border-bottom: 3px solid var(--brand);
    flex-direction: column; gap: 0;
    padding: .4rem 0 .6rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    z-index: 99;
    max-height: calc(100vh - 63px);
    overflow-y: auto;
  }
  .site-nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .6rem 1.25rem;
    border-radius: 0;
    font-size: .9rem;
    border-left: 3px solid transparent;
  }
  .nav-links a:hover { background: var(--brand-bg); border-left-color: var(--border); }
  .nav-links a.active {
    background: var(--brand-bg);
    border-left-color: var(--brand);
    font-weight: 700;
  }

  /* LAYOUT */
  .content { padding: 1.75rem 1rem; }
  .hero { padding: 2rem 1rem 1.75rem; }
  .hero h1 { font-size: clamp(1.35rem, 5vw, 1.8rem); }
  .hero p { font-size: .88rem; }
  .two-col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .chart-wrap { height: 220px; }
  .chart-wrap-lg { height: 260px; }
  .calc-box { padding: 1.25rem 1rem; }
  .phase-item { gap: 1rem; }
  .cards-grid { grid-template-columns: 1fr; }

  /* TABELLEN */
  .data-table { font-size: .78rem; }
  .data-table th, .data-table td { padding: .5rem .65rem; }
  [style*="overflow-x:auto"], [style*="overflow-x: auto"] { overflow-x: auto; }

  /* FOOTER */
  .site-footer { margin-top: 2.5rem; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.3rem; }
  .chart-wrap { height: 200px; }
  .chart-wrap-lg { height: 230px; }
}
