/* ═══════════════════════════════════════════════════════════════
   MONDENMEER — Shared Stylesheet v2
   SEO-vriendelijk · Toegankelijk · Mobiel-first
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── TOKENS ── */
:root {
  --teal:        #0d6e6e;
  --teal-light:  #1a9a9a;
  --teal-pale:   #e0f4f4;
  --teal-xpale:  #f0fafa;
  --sand:        #f7f3ec;
  --sand-dark:   #e8e0d0;
  --coral:       #e05a3a;
  --night:       #0a1a1a;
  --night-soft:  #112222;
  --text:        #1c2e2e;
  --muted:       #5a7272;
  --white:       #ffffff;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);
  --transition:  0.25s ease;
  --max-w:       1100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

/* ── GLOBALE LINK RESET — vernietigt browser paars/blauw volledig ── */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

/* ── NAV ELEMENT RESET ── */
nav { display: block; }  /* browser-normalisatie */

/* ── SKIP LINK (toegankelijkheid) ── */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 9999;
  background: var(--teal); color: var(--white);
  padding: 8px 16px; border-radius: 0 0 8px 8px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATIE
═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,26,26,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow: visible;
}
/* nav-inner: de horizontale flex-balk */
.nav-inner {
  width: 100%;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  box-sizing: border-box;
}
/* Logo links */
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--white) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}
.nav-logo span { color: var(--teal-light) !important; }

/* Wrapper voor de knoppen rechts */
.nav-anchor-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Elke knop */
.nav-anchor-btn {
  display: inline-flex !important;
  align-items: center;
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 16px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.nav-anchor-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.32);
  color: var(--white) !important;
}
@media (max-width: 680px) {
  .nav-anchor-links { display: none; }
}

/* Desktop links — centreer ze en voorkom overflow */
.nav-links {
  display: flex; gap: 2px; list-style: none;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none !important;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white) !important;
  background: rgba(255,255,255,0.08);
}
/* Tandartsopleiding als opvallende CTA-stijl in de nav */
.nav-links li:last-child a {
  color: var(--teal-light) !important;
  border: 1px solid rgba(26,154,154,0.35);
  padding: 5px 12px;
}
.nav-links li:last-child a:hover {
  background: rgba(26,154,154,0.15);
  color: var(--white) !important;
  border-color: var(--teal-light);
}

/* Breadcrumb / terug knop */
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.55) !important; text-decoration: none !important;
  font-size: 0.825rem; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.nav-back:hover { color: var(--teal-light) !important; border-color: var(--teal-light); }
.nav-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Hamburger (mobiel) */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.7); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiel menu — altijd verborgen tenzij .open class aanwezig */
.nav-mobile {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 199;
  display: flex;               /* flex blijft zodat kolom-layout werkt */
  flex-direction: column;
  background: var(--night-soft);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 20px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  /* Standaard onzichtbaar en buiten scherm */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}
.nav-mobile.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}
.nav-mobile a {
  color: rgba(255,255,255,0.75) !important; text-decoration: none !important;
  font-size: 0.95rem; font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}
.nav-mobile a:last-child {
  border-bottom: none;
  color: var(--teal-light) !important;
  font-weight: 600;
}
.nav-mobile a:hover { color: var(--teal-light) !important; }

/* Verberg desktop nav-links op smalle schermen, toon hamburger */
@media (max-width: 860px) {
  .nav-links { display: none !important; }
  .nav-burger { display: flex; }
}
/* Op brede schermen: hamburger nooit tonen, mobiel menu nooit tonen */
@media (min-width: 861px) {
  .nav-burger { display: none !important; }
  .nav-mobile { display: none !important; visibility: hidden !important; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO (subpagina's)
═══════════════════════════════════════════════════════════════ */
.page-hero {
  max-width: var(--max-w);
  margin: 80px auto 0;           /* onder de fixed nav, gecentreerd */
  padding: 56px 32px 52px;
  background: var(--night);
  position: relative; overflow: hidden;
  border-radius: 0 0 18px 18px; /* afgeronde onderhoeken */
}
.page-hero::after {
  content: '';
  position: absolute; top: -160px; right: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,110,0.28) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

.hero-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-tag::before { content: ''; width: 24px; height: 2px; flex-shrink: 0; }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.08;
  color: var(--white); letter-spacing: -0.03em;
  max-width: 680px; margin-bottom: 20px;
}
.page-hero .lead {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.58); max-width: 580px;
  margin-bottom: 32px;
}
.hero-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 40px; padding: 6px 14px;
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
  display: inline-flex; align-items: center; gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════════ */
.breadcrumb {
  background: var(--teal-xpale);
  border-bottom: 1px solid var(--teal-pale);
  padding: 10px 32px;
}
.breadcrumb-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: var(--teal) !important; text-decoration: none !important;
  font-weight: 500;
  transition: color var(--transition);
}
.breadcrumb-inner a:hover { color: var(--teal-light) !important; }
.breadcrumb-inner .sep { color: var(--sand-dark); }
.breadcrumb-inner .current { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   INHOUDSOPGAVE (sticky TOC)
═══════════════════════════════════════════════════════════════ */
.toc-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);   /* nooit hoger dan het scherm */
  overflow-y: auto;                   /* scrollbaar als inhoud te lang is */
}
.toc-card h3 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block; padding: 7px 10px; border-radius: 6px;
  font-size: 0.845rem; color: var(--muted) !important;
  text-decoration: none !important;
  transition: background var(--transition), color var(--transition);
  border-left: 2px solid transparent;
}
.toc-list a:hover,
.toc-list a.active {
  background: var(--teal-xpale);
  color: var(--teal) !important;
  border-left-color: var(--teal);
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGINA NAV — Terug & Hoofdpagina knoppen
═══════════════════════════════════════════════════════════════ */
.sub-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sub-nav-back,
.sub-nav-home {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  line-height: 1;
}
.sub-nav-back svg,
.sub-nav-home svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2.2;
  flex-shrink: 0;
}
/* Terug-knop: subtiel wit omlijnd */
.sub-nav-back {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65) !important;
}
.sub-nav-back:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: var(--white) !important;
}
/* Verberg als geen history */
.sub-nav-back.no-history { display: none !important; }
/* Hoofdpagina-knop: teal accent */
.sub-nav-home {
  background: none;
  border: 1px solid rgba(26,154,154,0.4);
  color: var(--teal-light) !important;
}
.sub-nav-home:hover {
  background: rgba(26,154,154,0.15);
  border-color: var(--teal-light);
  color: var(--white) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT LAYOUT
═══════════════════════════════════════════════════════════════ */
.page-content {
  max-width: var(--max-w); margin: 0 auto;
  padding: 56px 32px 80px;
}
.content-cols {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.content-main { min-width: 0; }
.content-side { display: flex; flex-direction: column; gap: 20px; }

/* Section label */
.sec-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.sec-label::before { content: ''; width: 18px; height: 2px; background: var(--teal); flex-shrink: 0; }

/* Block title */
.block-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; line-height: 1.2;
  color: var(--night); letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Body text */
.body-text {
  font-size: 0.96rem; line-height: 1.8;
  color: var(--text); margin-bottom: 14px;
}
.body-text:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   ACCORDION BLOKKEN  ← nieuw klik-om-meer-te-zien systeem
═══════════════════════════════════════════════════════════════ */
.info-block {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 88px;
}

.info-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
  transition: background var(--transition);
}
.info-block-header:hover { background: var(--teal-xpale); }

.info-block-header-left {
  display: flex; align-items: center; gap: 14px; min-width: 0;
}
.block-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.block-header-text { min-width: 0; }
.block-header-text .sec-label { margin-bottom: 2px; }
.block-header-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--night); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.info-block-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--transition), transform var(--transition);
  color: var(--muted);
}
.info-block-toggle svg {
  width: 14px; height: 14px; stroke: currentColor;
  fill: none; stroke-width: 2.5;
  transition: transform var(--transition);
}

/* Open state */
.info-block.open .info-block-toggle { background: var(--teal-pale); color: var(--teal); }
.info-block.open .info-block-toggle svg { transform: rotate(180deg); }
.info-block.open .info-block-header { background: var(--teal-xpale); border-bottom: 1px solid var(--teal-pale); }

/* Body */
.info-block-body {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
}
.info-block.open .info-block-body {
  max-height: 9999px;
  padding: 24px 28px 28px;
}

/* Always-open variant (geen accordion) */
.info-block.always-open .info-block-header { cursor: default; }
.info-block.always-open .info-block-header:hover { background: none; }
.info-block.always-open .info-block-toggle { display: none; }
.info-block.always-open .info-block-body {
  max-height: none; padding: 0 28px 28px;
}

/* ═══════════════════════════════════════════════════════════════
   LIJSTEN
═══════════════════════════════════════════════════════════════ */
.sym-list, .cause-list, .check-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 12px;
}
.sym-list li, .cause-list li, .check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.915rem; line-height: 1.65; color: var(--text);
}
.sym-list li::before   { content: '●'; color: var(--teal);  flex-shrink: 0; font-size: 0.4rem; margin-top: 5px; }
.cause-list li::before { content: '▸'; color: var(--coral); flex-shrink: 0; font-size: 0.65rem; margin-top: 3px; }
.check-list li::before { content: '✓'; color: #2e7d32;      flex-shrink: 0; font-size: 0.75rem; margin-top: 1px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   BEHANDELSTAPPEN
═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   BEHANDELSTAPPEN — Verbeterde opmaak
═══════════════════════════════════════════════════════════════ */
.treat-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  position: relative;
}

/* Verticale verbindingslijn */
.treat-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal-pale), var(--sand-dark));
  z-index: 0;
}

.treat-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 12px;
  padding: 18px 20px 18px 18px;
  border: 1px solid var(--sand-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.treat-step:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateX(3px);
  border-color: var(--teal-pale);
}
.treat-step:last-child { margin-bottom: 0; }

/* Nummerbadge */
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  position: relative; z-index: 1;
}

/* Tekst binnenin */
.treat-step-content { flex: 1; min-width: 0; }
.treat-step strong {
  display: block;
  color: var(--night);
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}
.treat-step span {
  font-size: 0.865rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Fase-label (optioneel, kleine tag rechtsboven) */
.treat-step .step-fase {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  background: var(--teal-pale);
  color: var(--teal);
}

/* Backwards-compat: oude .treat-step strong / span zonder wrapper */
.treat-step > strong { display: block; color: var(--night); font-size: 0.925rem; font-weight: 700; margin-bottom: 5px; }
.treat-step > span   { font-size: 0.865rem; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR KAARTEN
═══════════════════════════════════════════════════════════════ */
.side-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--night); margin-bottom: 14px;
}

.kv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--sand-dark);
  font-size: 0.855rem; gap: 8px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-label { color: var(--muted); flex: 1; }

.badge {
  padding: 2px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.badge-green  { background: #e8f5e9; color: #2e7d32; }
.badge-yellow { background: #fff9c4; color: #f57f17; }
.badge-orange { background: #fff3e0; color: #e65100; }
.badge-red    { background: #fce4ec; color: #c62828; }
.badge-teal   { background: var(--teal-pale); color: var(--teal); }
.badge-blue   { background: #e3f2fd; color: #1565c0; }
.badge-purple { background: #ede7f6; color: #6a1b9a; }

/* Waarschuwingsbox */
.alert-box {
  border-radius: 10px; padding: 16px 18px;
  font-size: 0.855rem; line-height: 1.65;
}
.alert-box strong { display: block; margin-bottom: 5px; font-size: 0.9rem; }
.alert-warn  { background: #fff8e1; border: 1px solid #ffe082; color: #4e3a00; }
.alert-warn strong { color: #e65100; }
.alert-danger { background: #fce4ec; border: 1px solid #f48fb1; color: #4a0010; }
.alert-danger strong { color: #b71c1c; }
.alert-info  { background: var(--teal-xpale); border: 1px solid var(--teal-pale); color: var(--teal); }
.alert-info strong { color: var(--teal); }

/* CTA knop */
.btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white) !important;
  padding: 12px 24px; border-radius: 50px;
  text-decoration: none !important; font-weight: 600; font-size: 0.875rem;
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer;
}
.btn-home:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-home::before { content: '←'; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white) !important;
  padding: 13px 28px; border-radius: 50px;
  text-decoration: none !important; font-weight: 600; font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8) !important;
  padding: 12px 26px; border-radius: 50px;
  text-decoration: none !important; font-weight: 500; font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: var(--teal-light); color: var(--teal-light) !important; }

/* ═══════════════════════════════════════════════════════════════
   GERELATEERDE ONDERWERPEN — navigatie tussen pagina's
═══════════════════════════════════════════════════════════════ */
.related-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 32px 48px;
}
.related-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--night); letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.related-section .related-intro {
  font-size: 0.9rem; color: var(--muted);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none !important;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-pale);
}
.related-card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.related-card-text { min-width: 0; flex: 1; }
.related-card-text strong {
  display: block; font-size: 0.92rem; font-weight: 700;
  color: var(--night); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related-card-text span {
  font-size: 0.78rem; color: var(--muted); line-height: 1.4;
  display: block;
}
.related-card-arrow {
  color: var(--teal); font-size: 1.1rem; flex-shrink: 0;
  transition: transform var(--transition);
}
.related-card:hover .related-card-arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   TERUG-BANNER & FOOTER
═══════════════════════════════════════════════════════════════ */
.back-banner {
  background: var(--night-soft);
  padding: 48px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.back-banner-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.back-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; color: var(--white) !important; margin-bottom: 6px;
}
.back-banner p { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 440px; }

/* Rijke footer met sitemap */
.site-footer {
  background: var(--night);
  padding: 48px 32px 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--white) !important; letter-spacing: -0.02em;
  display: inline-block; margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--teal-light) !important; }
.footer-brand p {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  line-height: 1.65; max-width: 320px;
}
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 0.86rem; color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important; transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal-light) !important; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--teal-light) !important; text-decoration: none !important; }
.footer-bottom a:hover { text-decoration: underline !important; }

/* Oude footer-inner blijft werken als fallback */
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
}
.site-footer a { color: var(--teal-light) !important; text-decoration: none !important; }
.site-footer a:hover { text-decoration: underline !important; }

/* ═══════════════════════════════════════════════════════════════
   TABELLEN
═══════════════════════════════════════════════════════════════ */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem; margin-top: 14px;
}
.data-table th {
  background: var(--night); color: var(--white);
  padding: 11px 14px; text-align: left;
  font-size: 0.775rem; font-weight: 600; letter-spacing: 0.05em;
}
.data-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--sand-dark);
  color: var(--text); line-height: 1.55; vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--sand); }
.data-table .cat-row td {
  background: var(--teal-pale); font-weight: 700;
  color: var(--teal); font-size: 0.76rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 14px;
}

/* ═══════════════════════════════════════════════════════════════
   VOORTGANGSBALK
═══════════════════════════════════════════════════════════════ */
.progress-bar-wrap { margin-bottom: 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.progress-bar { height: 8px; background: var(--sand-dark); border-radius: 4px; overflow: hidden; }
.progress-bar .fill { height: 100%; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet & Telefoon
═══════════════════════════════════════════════════════════════ */

/* Tablet & kleiner (≤ 860px): sidebar onder content, één kolom */
@media (max-width: 860px) {
  .page-hero { padding: 52px 24px 40px; margin-top: 64px; border-radius: 0; }
  .page-content { padding: 32px 24px 48px; }
  .content-cols { grid-template-columns: 1fr; gap: 28px; }
  /* Sidebar bovenaan op mobiel voor snelle navigatie, niet sticky */
  .content-side {
    order: -1;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .toc-card { position: static; }
  .related-section { padding: 8px 24px 40px; }
  .back-banner { padding: 40px 24px; }
  .info-block-header { padding: 16px 20px; }
  .info-block.open .info-block-body { padding: 16px 20px 20px; }
  .breadcrumb { padding: 10px 24px; }
  /* Footer sitemap → 2 kolommen */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding: 40px 24px 24px; }
}

/* Telefoon (≤ 600px) */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .page-hero { padding: 40px 18px 32px; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .page-hero .lead { font-size: 0.96rem; }
  .page-content { padding: 24px 18px 40px; }
  .related-section { padding: 4px 18px 32px; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; }
  .related-section h2 { font-size: 1.3rem; }
  /* Back-banner stapelt verticaal, knop volle breedte */
  .back-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .back-banner .btn-home { justify-content: center; }
  /* Footer 1 kolom */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  /* Tabellen horizontaal scrollbaar maken */
  .data-table, .tnm-tabel, .verg-tabel { font-size: 0.8rem; }
  .data-table th, .data-table td,
  .tnm-tabel th, .tnm-tabel td { padding: 8px 10px; }
  /* Hero chips compacter */
  .hero-chips { gap: 6px; }
  .hero-chip { font-size: 0.72rem; padding: 5px 10px; }
  .block-header-text h2 { font-size: 1rem; }
  .block-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  /* Behandelstappen compacter */
  .treat-step { padding: 14px 16px 14px 14px; gap: 14px; }
  .step-num { width: 34px; height: 34px; font-size: 0.78rem; }
  /* Touch-vriendelijke knoppen */
  .btn-home, .btn-primary, .btn-outline { padding: 13px 24px; }
  .sub-nav-back, .sub-nav-home { padding: 9px 14px; }
}

/* Heel klein (≤ 380px) */
@media (max-width: 380px) {
  .sub-nav-back span, .sub-nav-home span { display: none; }
  .sub-nav-back, .sub-nav-home { padding: 9px 11px; }
  .nav-logo { font-size: 1.2rem; }
}

/* Zorg dat alle brede tabellen scrollbaar zijn in een wrapper */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 14px; }
.table-scroll table { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════
   ACCORDION JS-KLASSEN (via main.js)
═══════════════════════════════════════════════════════════════ */
.info-block { transition: box-shadow var(--transition); }
.info-block:focus-within { box-shadow: 0 0 0 3px rgba(26,154,154,0.35); outline: none; }
