:root {
  --ink: #232946;
  --muted: #5f6577;
  --accent: #4f46e5;
  --accent-2: #a855f7;
  --accent-soft: #eef0ff;
  --amber: #b45309;
  --amber-soft: #fdf3e3;
  --bg: #fbf9f4;          /* warm papier */
  --card: #ffffff;
  --line: #e7e3d8;
  --niveau: #4f46e5;
  --vak: #0a8754;
  --thema: #b45309;
  --regio: #7c3aed;
  --type: #52607a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: 2rem; }
/* alle pagina's gebruiken 90% van de schermbreedte */
main { width: 90%; max-width: none; margin: 0 auto; padding: 1.8rem 0 3rem; }
a { color: var(--accent); }

/* ---- header ---- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  width: 90%; max-width: none; margin: 0 auto; padding: 1rem;
  border-bottom: 2px solid var(--ink);
}
.site-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo { display: block; }
.site-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem; font-weight: 700; color: var(--ink);
}
.site-title .ai {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-header nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .9rem; }
.site-header nav a {
  text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 600;
  padding: .15rem .1rem; border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.header-zoek input {
  width: 8.5rem; padding: .35rem .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: .85rem;
  transition: width .2s ease, border-color .2s ease;
}
.header-zoek input:focus { width: 12rem; outline: none; border-color: var(--accent); }

/* ---- mobiel: hamburgermenu (CSS-only, geen JS nodig) ---- */
.nav-check, .nav-toggle { display: none; }
@media (max-width: 768px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto; padding: .5rem; cursor: pointer;
    border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  }
  .nav-toggle span {
    display: block; width: 22px; height: 3px;
    background: var(--ink); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-check:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-check:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-check:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-header nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: .5rem 0 0; }
  .site-header nav a {
    padding: .65rem .2rem; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header nav a:last-child { border-bottom: none; }
  .header-zoek { display: none; width: 100%; margin-top: .3rem; }
  .header-zoek input, .header-zoek input:focus { width: 100%; }

  .nav-check:checked ~ nav { display: flex; }
  .nav-check:checked ~ .header-zoek { display: block; }
}

.meta { color: var(--muted); font-size: .9rem; }

/* ---- badges ---- */
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; }
.badge {
  font-size: .72rem; font-weight: 600; padding: .18rem .6rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--niveau); white-space: nowrap;
}
.badge-vak { background: #e6f6ef; color: var(--vak); }
.badge-thema { background: var(--amber-soft); color: var(--thema); }
.badge-regio { background: #f3e8ff; color: var(--regio); }
.badge-type { background: #eef1f5; color: var(--type); }

/* ---- lijsten als kaarten ---- */
.post-list { list-style: none; padding: 0; }
.post-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.3rem; margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(35, 41, 70, .06);
  transition: box-shadow .15s ease, transform .15s ease;
}
.post-list li:hover { box-shadow: 0 4px 14px rgba(35, 41, 70, .10); transform: translateY(-1px); }
.post-list h3 { margin: 0 0 .2rem; }
.post-list h3 a { text-decoration: none; color: var(--ink); }
.post-list h3 a:hover { color: var(--accent); }

/* ---- artikel ---- */
.post, .page {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.6rem 1.8rem;
}

/* ---- filters ---- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.filters label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .2rem; }
.filters select {
  width: 100%; padding: .45rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink);
}
#resultaat-teller { color: var(--muted); font-size: .9rem; }
.zoekbalk { margin: 1rem 0; }
.zoekbalk input {
  width: 100%; padding: .7rem 1rem;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font-size: 1rem;
}
.zoekbalk input:focus { outline: none; border-color: var(--accent); }
mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 .08em; }

/* ---- FAQ ---- */
.faq-nav { margin: 1rem 0; color: var(--muted); }
details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem 1.1rem; margin: .7rem 0; background: var(--card);
}
details summary { cursor: pointer; font-weight: 600; }
details[open] { box-shadow: 0 2px 8px rgba(35, 41, 70, .08); }
.bronnen { font-size: .85rem; color: var(--muted); }

/* ---- Ter discussie ---- */
.discussie-index { margin: 1rem 0 2rem; padding-left: 1.4rem; }
.discussie-index li { margin: .3rem 0; }
.discussie-index a { text-decoration: none; font-weight: 600; }
.discussie-index a:hover { text-decoration: underline; }

/* elk debat: eigen kleur via --dkleur, dikke rand + gekleurde kopband */
.discussie {
  --dkleur: var(--accent);
  --dkleur-soft: var(--accent-soft);
  background: var(--card);
  border: 2px solid var(--dkleur);
  border-radius: 14px;
  margin: 2.2rem 0;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(35, 41, 70, .08);
}
.discussie:nth-of-type(2) { --dkleur: #b45309; --dkleur-soft: #fdf3e3; }
.discussie:nth-of-type(3) { --dkleur: #0a8754; --dkleur-soft: #e6f6ef; }
.discussie:nth-of-type(4) { --dkleur: #a855f7; --dkleur-soft: #f6ecff; }
.discussie:nth-of-type(5) { --dkleur: #0e7490; --dkleur-soft: #e5f6fa; }

.discussie-kop {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--dkleur-soft);
  border-bottom: 2px solid var(--dkleur);
  padding: 1.1rem 1.4rem;
}
.discussie-nummer {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; margin-top: .2rem;
  border-radius: 50%;
  background: var(--dkleur); color: #fff;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem;
}
.discussie-kop h2 { margin: 0 0 .3rem; font-size: 1.35rem; color: var(--ink); }
.discussie .context { color: var(--muted); font-style: italic; margin: 0; }

.standpunten-blok { padding: 1rem 1.4rem 1.3rem; }
.standpunten-label {
  margin: 0 0 .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--dkleur);
}
.standpunten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; }
.standpunt {
  border: 1px solid var(--line);
  border-top: 4px solid var(--dkleur);
  border-radius: 10px;
  padding: .7rem .9rem;
  background: var(--bg);
}
.standpunt h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--dkleur); }
.standpunt p { margin: .3rem 0; font-size: .93rem; }

/* ---- footer ---- */
.site-footer {
  width: 90%; max-width: none; margin: 0 auto; padding: 1.2rem 1rem 2rem;
  border-top: 2px solid var(--ink); color: var(--muted); font-size: .85rem;
}

/* ---- homepage: twee kolommen ---- */
.intro { font-size: 1.05rem; max-width: 60ch; }
.home-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem; align-items: start; margin-top: 1rem;
}
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.kolom-artikels h2, .digest-paneel h2 { margin-top: 0; }

/* digestpaneel rechts: eigen kleur en kader */
.digest-paneel {
  background: linear-gradient(160deg, #eef0ff 0%, #f6ecff 100%);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 3px 12px rgba(79, 70, 229, .12);
  position: sticky; top: 1rem;
}
.digest-uitleg { font-size: .9rem; color: var(--muted); }
.digest-lijst { list-style: none; padding: 0; margin: 0; }
.digest-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: .7rem .9rem; margin: .7rem 0;
}
.digest-item.digest-int { border-left-color: var(--accent-2); }
.digest-item h3 { margin: .15rem 0; font-size: .98rem; }
.digest-item h3 a { text-decoration: none; color: var(--ink); }
.digest-item h3 a:hover { color: var(--accent); }
.digest-item .meta { margin: 0; font-size: .8rem; }
.digest-label {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: .1rem .5rem; border-radius: 999px;
}
.digest-item.digest-int .digest-label { color: var(--accent-2); background: #f6ecff; }
.digest-alle { margin-bottom: 0; font-weight: 600; }
.site-footer .versie { font-size: .78rem; opacity: .85; }
