/* ===================================================
   dertiendemaand.be – Hoofdstijlblad
   Mobile-first, responsive
   =================================================== */

/* --- Variabelen & Reset --- */
:root {
  --paars: #6C3483;
  --paars-donker: #512E5F;
  --paars-licht: #9B59B6;
  --goud: #F39C12;
  --goud-donker: #D68910;
  --achtergrond: #FDF8FF;
  --wit: #ffffff;
  --tekst: #1A1A2E;
  --tekst-licht: #555577;
  --rand: #E8D5F5;
  --schaduw: rgba(108, 52, 131, 0.12);
  --radius: 10px;
  --radius-groot: 18px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--achtergrond);
  color: var(--tekst);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--paars);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--goud-donker); text-decoration: underline; }

/* --- Typografie --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--paars-donker);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3rem 0; }

.section-alt { background: #F5EEF8; }

/* --- Navbar --- */
.navbar {
  background: var(--paars);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wit) !important;
  text-decoration: none !important;
  letter-spacing: -.5px;
}
.navbar-logo span { color: var(--goud); }

.navbar-nav {
  display: none;
  list-style: none;
  gap: .25rem;
  padding: 0;
  margin: 0;
}

.navbar-nav a {
  color: rgba(255,255,255,.9) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
  text-decoration: none !important;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255,255,255,.15);
  color: var(--goud) !important;
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--wit);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.navbar-mobile {
  display: none;
  flex-direction: column;
  background: var(--paars-donker);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a {
  color: rgba(255,255,255,.9) !important;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none !important;
}
.navbar-mobile a:hover { color: var(--goud) !important; }

/* Desktop nav */
@media (min-width: 768px) {
  .navbar-nav { display: flex; }
  .hamburger { display: none; }
  .navbar-mobile { display: none !important; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--paars) 0%, var(--paars-donker) 60%, #3B1F5E 100%);
  color: var(--wit);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(243,156,18,.12);
  pointer-events: none;
}

.hero h1 { color: var(--wit); font-size: clamp(1.5rem, 4.5vw, 2.6rem); margin-bottom: 1rem; }
.hero .lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .9;
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 380px; }
}

/* --- Calculator Widget --- */
.calculator-widget {
  background: var(--wit);
  border-radius: var(--radius-groot);
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  color: var(--tekst);
}
.calculator-widget h2 {
  font-size: 1.2rem;
  color: var(--paars);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.calculator-widget h2::before {
  content: '🧮';
  font-size: 1.3rem;
}

.calc-group { margin-bottom: 1.25rem; }
.calc-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--paars-donker);
}
.calc-group input,
.calc-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--rand);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--tekst);
  background: var(--achtergrond);
  transition: border-color .2s;
}
.calc-group input:focus,
.calc-group select:focus {
  outline: none;
  border-color: var(--paars-licht);
}

.btn-calc {
  width: 100%;
  padding: .85rem;
  background: linear-gradient(135deg, var(--goud), var(--goud-donker));
  color: var(--wit);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .3px;
}
.btn-calc:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(243,156,18,.4);
}
.btn-calc:active { transform: translateY(0); }

.calc-result {
  display: none;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #F5EEF8, #EBD9F7);
  border-radius: var(--radius);
  border-left: 4px solid var(--paars);
  text-align: center;
}
.calc-result.show { display: block; }
.calc-result .bruto {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--paars-donker);
}
.calc-result .netto {
  font-size: 1.1rem;
  color: var(--goud-donker);
  font-weight: 700;
  margin-top: .35rem;
}
.calc-result .opmerking {
  font-size: .78rem;
  color: var(--tekst-licht);
  margin-top: .5rem;
  line-height: 1.4;
}

/* --- Knoppen --- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--goud);
  color: var(--wit);
  border-color: var(--goud);
}
.btn-primary:hover {
  background: var(--goud-donker);
  border-color: var(--goud-donker);
  color: var(--wit) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(243,156,18,.35);
}
.btn-outline {
  background: transparent;
  color: var(--paars);
  border-color: var(--paars);
}
.btn-outline:hover {
  background: var(--paars);
  color: var(--wit) !important;
}
.btn-white {
  background: var(--wit);
  color: var(--paars);
  border-color: var(--wit);
}
.btn-white:hover {
  background: transparent;
  color: var(--wit) !important;
  border-color: var(--wit);
}

.btn-groep {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: #F5EEF8;
  padding: .6rem 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--rand);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: .3rem;
  align-items: center;
}
.breadcrumb li { display: flex; align-items: center; gap: .3rem; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--paars-licht); }
.breadcrumb a { color: var(--paars); font-weight: 500; }
.breadcrumb li:last-child { color: var(--tekst-licht); }

/* --- Info Blokken (3 kolommen) --- */
.blokken-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .blokken-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .blokken-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-blok {
  background: var(--wit);
  border-radius: var(--radius-groot);
  padding: 1.75rem;
  box-shadow: 0 2px 16px var(--schaduw);
  border-top: 4px solid var(--paars);
  transition: transform .2s, box-shadow .2s;
}
.info-blok:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--schaduw);
}
.info-blok .icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.info-blok h3 { color: var(--paars-donker); margin-bottom: .5rem; }
.info-blok.accent { border-top-color: var(--goud); }

/* --- Tijdlijn --- */
.tijdlijn {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--rand);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tijdlijn-item {
  position: relative;
  padding-left: 1.25rem;
}
.tijdlijn-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: .45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paars-licht);
  border: 3px solid var(--wit);
  box-shadow: 0 0 0 2px var(--paars-licht);
}
.tijdlijn-item.actief::before { background: var(--goud); box-shadow: 0 0 0 2px var(--goud); }
.tijdlijn-maand {
  font-weight: 700;
  color: var(--paars);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tijdlijn-item p { margin-bottom: 0; font-size: .95rem; }

/* --- Tabellen --- */
.tabel-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--schaduw);
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wit);
  font-size: .95rem;
}
thead {
  background: var(--paars);
  color: var(--wit);
}
thead th {
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: #F9F3FD; }
tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--rand);
  vertical-align: top;
}
tbody tr:hover { background: #F0E6F9; }
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-ja { background: #D5F5E3; color: #1E8449; }
.badge-nee { background: #FADBD8; color: #C0392B; }
.badge-soms { background: #FEF9E7; color: #D68910; }

/* --- FAQ Accordion --- */
.faq-lijst { display: flex; flex-direction: column; gap: .75rem; }

details.faq-item {
  background: var(--wit);
  border-radius: var(--radius);
  border: 1px solid var(--rand);
  overflow: hidden;
  transition: box-shadow .2s;
}
details.faq-item[open] {
  box-shadow: 0 4px 20px var(--schaduw);
  border-color: var(--paars-licht);
}

summary.faq-vraag {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--paars-donker);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  gap: 1rem;
}
summary.faq-vraag::-webkit-details-marker { display: none; }
summary.faq-vraag::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--paars-licht);
  flex-shrink: 0;
  transition: transform .25s;
}
details[open] summary.faq-vraag::after { transform: rotate(45deg); }
summary.faq-vraag:hover { background: #F9F3FD; }

.faq-antwoord {
  padding: 0 1.25rem 1.25rem;
  font-size: .97rem;
  color: var(--tekst);
  border-top: 1px solid var(--rand);
  padding-top: 1rem;
  line-height: 1.75;
}
.faq-antwoord p:last-child { margin-bottom: 0; }

/* --- Linktegels andere sites --- */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 500px) {
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .sites-grid { grid-template-columns: repeat(3, 1fr); }
}

.site-tegel {
  background: var(--wit);
  border: 2px solid var(--rand);
  border-radius: var(--radius-groot);
  padding: 1.4rem 1.5rem;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all .2s;
  color: var(--tekst) !important;
}
.site-tegel:hover {
  border-color: var(--paars-licht);
  box-shadow: 0 6px 22px var(--schaduw);
  transform: translateY(-2px);
  color: var(--tekst) !important;
  text-decoration: none !important;
}
.site-tegel .tegel-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.site-tegel .tegel-naam {
  font-weight: 700;
  color: var(--paars-donker);
  font-size: .95rem;
  margin-bottom: .1rem;
}
.site-tegel .tegel-omschrijving {
  font-size: .82rem;
  color: var(--tekst-licht);
}

/* --- CTA Blok --- */
.cta-blok {
  background: linear-gradient(135deg, var(--paars), var(--paars-donker));
  color: var(--wit);
  border-radius: var(--radius-groot);
  padding: 2.5rem 2rem;
  text-align: center;
}
.cta-blok h2 { color: var(--wit); }
.cta-blok p { opacity: .9; max-width: 520px; margin: 0 auto 1.5rem; }

/* --- Info card / highlight box --- */
.info-card {
  background: var(--wit);
  border-radius: var(--radius);
  border-left: 5px solid var(--paars);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--schaduw);
}
.info-card.goud { border-left-color: var(--goud); }
.info-card.groen { border-left-color: #27AE60; }
.info-card.rood { border-left-color: #E74C3C; }
.info-card h3 { margin-bottom: .4rem; font-size: 1rem; }
.info-card p:last-child { margin-bottom: 0; }

/* Waarschuwing */
.waarschuwing {
  background: #FEF9E7;
  border: 1px solid #F9CA74;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .93rem;
  margin-bottom: 1.5rem;
}
.waarschuwing::before { content: '⚠️ '; }

/* --- Stappenplan / Proces --- */
.stappen { display: flex; flex-direction: column; gap: 1.5rem; }
.stap {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.stap-nr {
  background: var(--paars);
  color: var(--wit);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.stap-tekst h3 { margin-bottom: .3rem; }

/* --- Samenvatting box --- */
.samenvatting {
  background: linear-gradient(135deg, #F5EEF8, #EBD9F7);
  border-radius: var(--radius-groot);
  padding: 2rem;
  margin-bottom: 2rem;
}
.samenvatting h2 { color: var(--paars-donker); margin-bottom: 1rem; }
.samenvatting ul { margin-bottom: 0; }

/* --- Rekenvoorbeeld blok --- */
.rekenvoorbeeld {
  background: var(--wit);
  border: 2px solid var(--rand);
  border-radius: var(--radius-groot);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.rekenvoorbeeld-header {
  background: var(--paars);
  color: var(--wit);
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.rekenvoorbeeld-body { padding: 1.25rem; }
.rekenrij {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--rand);
  font-size: .95rem;
}
.rekenrij:last-child { border-bottom: none; font-weight: 700; color: var(--paars-donker); }
.rekenrij span:last-child { font-weight: 600; }

/* --- Sectie intro --- */
.sectie-intro {
  font-size: 1.08rem;
  color: var(--tekst-licht);
  max-width: 720px;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--rand);
  padding-bottom: 1.5rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--paars) 0%, var(--paars-donker) 100%);
  color: var(--wit);
  padding: 2.5rem 0 3rem;
}
.page-hero h1 { color: var(--wit); font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
.page-hero .lead { opacity: .88; font-size: 1.05rem; max-width: 640px; margin-top: .5rem; }

/* --- Footer --- */
footer {
  background: var(--paars-donker);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

footer h3 {
  color: var(--wit);
  font-size: 1rem;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .85rem;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: .4rem; }
footer a {
  color: rgba(255,255,255,.75) !important;
  font-size: .9rem;
  text-decoration: none;
}
footer a:hover { color: var(--goud) !important; }

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--wit) !important;
  margin-bottom: .5rem;
  display: inline-block;
}
.footer-logo span { color: var(--goud); }
.footer-tagline {
  font-size: .88rem;
  opacity: .7;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  opacity: .7;
}

/* --- 404 pagina --- */
.page-404 {
  text-align: center;
  padding: 5rem 0;
}
.page-404 .code-404 {
  font-size: 6rem;
  font-weight: 900;
  color: var(--paars);
  line-height: 1;
  opacity: .15;
  margin-bottom: -1rem;
}

/* --- Wettelijk pagina --- */
.wettelijk-content { max-width: 820px; }
.wettelijk-content h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rand);
}
.wettelijk-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* --- Utility classes --- */
.text-center { text-align: center; }
.text-paars { color: var(--paars); }
.text-goud { color: var(--goud-donker); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.font-bold { font-weight: 700; }

/* --- Responsive tweaks --- */
@media (max-width: 480px) {
  section { padding: 2rem 0; }
  .calculator-widget { padding: 1.5rem; }
  .btn { width: 100%; text-align: center; }
  .btn-groep { flex-direction: column; }
}
