/* ============================================================
   Stijl gebaseerd op nederlandwereldwijd.nl structuur
   met kleurenpalet van vlaanderen.be (geel/zwart)
   ============================================================ */

:root {
  /* Vlaanderen.be huisstijl */
  --vl-geel: #FFE615;
  --vl-geel-donker: #E6CE00;
  --vl-zwart: #000000;
  --vl-tekst: #1a1a1a;
  --vl-tekst-zacht: #555555;
  --vl-link: #0055a4;
  --vl-link-hover: #003d7a;

  /* Achtergronden en randen */
  --bg-wit: #ffffff;
  --bg-zacht: #f5f5f5;
  --bg-zachter: #fafafa;
  --rand: #d4d4d4;
  --rand-licht: #e8e8e8;

  /* Status */
  --succes: #007a3d;
  --waarschuwing: #b34700;
  --info-bg: #eaf3fc;
  --info-rand: #b9d6f2;

  --basis-grootte: 18px;
  --max-breedte: 1100px;
  --inhoud-breedte: 760px;
}

/* Tekstgrootte-knoppen voor toegankelijkheid */
html.tekst-groter { font-size: 22px; }
html.tekst-grootst { font-size: 26px; }

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

html {
  font-size: var(--basis-grootte);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Flanders Art Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vl-tekst);
  background-color: var(--bg-wit);
}

/* ============================================================
   Skip-link (toegankelijkheid)
   ============================================================ */
.overslaan-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vl-zwart);
  color: var(--vl-geel);
  padding: 1rem 1.5rem;
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}
.overslaan-link:focus {
  left: 0;
}

/* ============================================================
   Hoofdkop — Vlaanderen-stijl met zwarte balk en gele streep
   ============================================================ */
.vl-topbalk {
  background: var(--vl-zwart);
  color: white;
  padding: 0.6rem 0;
  font-size: 0.85rem;
}
.vl-topbalk-inhoud {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.vl-topbalk a {
  color: white;
  text-decoration: none;
}
.vl-topbalk a:hover {
  text-decoration: underline;
}

/* Gele merkstreep in de huisstijlkleuren */
.vl-merkstreep {
  height: 6px;
  background: var(--vl-geel);
}

/* Niet-affiliatie melding — duidelijk zichtbaar op elke pagina */
.affiliatie-melding {
  background: #fffbe6;
  border-bottom: 2px solid var(--vl-geel-donker);
}
.affiliatie-inhoud {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.affiliatie-inhoud .let-op {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--vl-zwart);
  background: var(--vl-geel);
  border: 1px solid var(--vl-zwart);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.affiliatie-inhoud p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--vl-tekst);
}

/* Sitekop met logo en titel */
.site-kop {
  background: white;
  border-bottom: 1px solid var(--rand-licht);
  padding: 1.5rem 0;
}
.site-kop-inhoud {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-merk {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--vl-tekst);
}
.site-merk:hover {
  text-decoration: none;
}
.site-merk .merk-icoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--vl-geel);
  border: 2px solid var(--vl-zwart);
  color: var(--vl-zwart);
  flex-shrink: 0;
}
.site-merk .merk-icoon svg {
  display: block;
}
.site-merk .titel-blok {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-merk .titel-hoofd {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--vl-tekst);
}
.site-merk .titel-onder {
  font-size: 0.85rem;
  color: var(--vl-tekst-zacht);
  font-weight: 400;
}

/* Tekstgrootte-knoppen */
.tekstgrootte {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--vl-tekst-zacht);
}
.tekstgrootte button {
  background: white;
  border: 2px solid var(--rand);
  border-radius: 4px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--vl-tekst);
  min-height: 40px;
  min-width: 40px;
  font-weight: 600;
}
.tekstgrootte button:hover {
  background: var(--bg-zacht);
  border-color: var(--vl-zwart);
}
.tekstgrootte button[aria-pressed="true"] {
  background: var(--vl-zwart);
  color: var(--vl-geel);
  border-color: var(--vl-zwart);
}

/* ============================================================
   Hoofdnavigatie
   ============================================================ */
.hoofdnavigatie {
  background: var(--bg-zacht);
  border-bottom: 1px solid var(--rand-licht);
}
.hoofdnavigatie ul {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 0.75rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.hoofdnavigatie a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--vl-tekst);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 4px solid transparent;
  min-height: 48px;
}
.hoofdnavigatie a:hover {
  background: white;
  border-bottom-color: var(--vl-geel);
  text-decoration: none;
}
.hoofdnavigatie a[aria-current="page"] {
  background: white;
  border-bottom-color: var(--vl-zwart);
}

/* ============================================================
   Kruimelpad (breadcrumbs)
   ============================================================ */
.kruimelpad {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.9rem;
  color: var(--vl-tekst-zacht);
}
.kruimelpad ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.kruimelpad li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.kruimelpad li + li::before {
  content: "›";
  color: var(--vl-tekst-zacht);
}
.kruimelpad a {
  color: var(--vl-link);
}
.kruimelpad [aria-current="page"] {
  color: var(--vl-tekst);
  font-weight: 600;
}

/* ============================================================
   Hoofdinhoud
   ============================================================ */
.pagina {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.inhoud {
  max-width: var(--inhoud-breedte);
}

/* Hero-banner zoals op nederlandwereldwijd */
.hero {
  background: var(--vl-zwart);
  color: white;
  padding: 3rem 1.5rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background: var(--vl-geel);
  opacity: 0.15;
  border-radius: 50%;
}
.hero-inhoud {
  max-width: var(--max-breedte);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: white;
  font-size: 2.4rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  margin: 0;
  max-width: 700px;
  color: #f0f0f0;
}
.hero .accent {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--vl-geel);
  margin-bottom: 1.25rem;
}

/* ============================================================
   Typografie
   ============================================================ */
h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--vl-tekst);
  font-weight: 700;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: var(--vl-tekst);
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--vl-geel);
  display: inline-block;
  padding-right: 1rem;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
}

p, li {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.intro {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--vl-tekst);
  margin-bottom: 1.5rem;
}

ul, ol {
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.6rem;
}

a {
  color: var(--vl-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--vl-link-hover);
  background: rgba(255, 230, 21, 0.25);
}

/* Toetsenbordfocus — geel, duidelijk zichtbaar */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid var(--vl-geel);
  outline-offset: 2px;
  background: rgba(255, 230, 21, 0.2);
}

/* ============================================================
   Kaarten-grid (zoals onderwerpen op nederlandwereldwijd)
   ============================================================ */
.kaart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .kaart-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.kaart {
  display: block;
  background: white;
  border: 1px solid var(--rand);
  border-left: 6px solid var(--vl-geel);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--vl-tekst);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.kaart:hover {
  border-left-color: var(--vl-zwart);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: white;
  transform: translateY(-2px);
}
.kaart-titel {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--vl-link);
  margin: 0 0 0.5rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.kaart:hover .kaart-titel {
  color: var(--vl-link-hover);
}
.kaart p {
  margin: 0;
  color: var(--vl-tekst-zacht);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================================
   Stappenkaarten voor inloggidsen
   ============================================================ */
.stap {
  background: var(--bg-zacht);
  border-left: 6px solid var(--vl-geel);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.stap-nummer {
  display: inline-block;
  background: var(--vl-zwart);
  color: var(--vl-geel);
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stap h3 {
  margin-top: 0;
}
.stap p:last-child,
.stap ul:last-child,
.stap ol:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Info- en waarschuwingsvakken
   ============================================================ */
.infovak {
  background: var(--info-bg);
  border-left: 6px solid var(--vl-link);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.infovak strong {
  color: var(--vl-link-hover);
}
.infovak p:last-child {
  margin-bottom: 0;
}

.waarschuwing {
  background: #fff4e6;
  border-left: 6px solid var(--waarschuwing);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.waarschuwing strong {
  color: var(--waarschuwing);
}
.waarschuwing p:last-child {
  margin-bottom: 0;
}

.tip {
  background: #f0f9f0;
  border-left: 6px solid var(--succes);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.tip strong {
  color: var(--succes);
}
.tip p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FAQ (uitklapbare vragen)
   ============================================================ */
.vraag {
  background: white;
  border: 1px solid var(--rand);
  border-left: 6px solid var(--vl-geel);
  margin: 0.75rem 0;
}
.vraag summary {
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--vl-tekst);
  list-style: none;
  position: relative;
}
.vraag summary::-webkit-details-marker {
  display: none;
}
.vraag summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  color: var(--vl-tekst);
}
.vraag[open] summary::after {
  content: "−";
}
.vraag summary:hover {
  background: var(--bg-zacht);
}
.vraag-inhoud {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--rand-licht);
  padding-top: 1rem;
}

/* ============================================================
   Externe-linkindicator
   ============================================================ */
a.extern::after {
  content: " ↗";
  font-size: 0.85em;
  color: var(--vl-tekst-zacht);
}

/* ============================================================
   Lees-meer-link (nederlandwereldwijd-stijl)
   ============================================================ */
.lees-meer {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
}
.lees-meer::after {
  content: " →";
}

/* ============================================================
   Voettekst
   ============================================================ */
footer {
  background: var(--vl-zwart);
  color: white;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.voet-inhoud {
  max-width: var(--max-breedte);
  margin: 0 auto;
}
.voet-streep {
  height: 4px;
  background: var(--vl-geel);
  width: 60px;
  margin-bottom: 1.5rem;
}
footer h2 {
  color: white;
  border-bottom-color: var(--vl-geel);
  font-size: 1.1rem;
  margin-top: 0;
}
footer a {
  color: var(--vl-geel);
}
footer a:hover {
  color: white;
  background: transparent;
}
.voet-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.voet-links a,
.voet-cookie-knop {
  color: var(--vl-geel);
  font-weight: 600;
}
.voet-cookie-knop {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
}
.voet-cookie-knop:hover {
  color: white;
}
.voet-disclaimer {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #bbb;
}
.voet-disclaimer p {
  margin-bottom: 0.75rem;
}

/* ============================================================
   Cookie-/toestemmingsbanner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: white;
  border-top: 6px solid var(--vl-geel);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  padding: 1.25rem 1.5rem;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-inhoud {
  max-width: var(--max-breedte);
  margin: 0 auto;
}
.cookie-inhoud h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  border: none;
  padding: 0;
  display: block;
}
.cookie-inhoud p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cookie-knop {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  padding: 0.7rem 1.25rem;
  min-height: 48px;
  border: 2px solid var(--vl-zwart);
}
.cookie-knop.primair {
  background: var(--vl-zwart);
  color: var(--vl-geel);
}
.cookie-knop.primair:hover {
  background: #222;
}
.cookie-knop.secundair {
  background: white;
  color: var(--vl-zwart);
}
.cookie-knop.secundair:hover {
  background: var(--bg-zacht);
}
.cookie-keuzes {
  margin: 0.25rem 0 1rem;
  padding: 1rem;
  background: var(--bg-zacht);
  border: 1px solid var(--rand);
}
.cookie-keuzes[hidden] {
  display: none;
}
.cookie-keuze {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.cookie-keuze:last-child {
  margin-bottom: 0;
}
.cookie-keuze input {
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.cookie-keuze label {
  font-size: 0.95rem;
  line-height: 1.45;
}
.cookie-keuze label strong {
  display: block;
}

/* ============================================================
   Afdrukstijl
   ============================================================ */
@media print {
  .vl-topbalk, .vl-merkstreep, .hoofdnavigatie, footer,
  .tekstgrootte, .overslaan-link, .kruimelpad, .cookie-banner {
    display: none !important;
  }
  body {
    color: black;
    background: white;
  }
  .hero {
    background: white;
    color: black;
    border-bottom: 3px solid black;
    padding: 1rem 0;
  }
  .hero h1, .hero p {
    color: black;
  }
  a {
    color: black;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
  .pagina {
    max-width: none;
    padding: 0;
  }
  .stap, .infovak, .waarschuwing, .tip, .vraag {
    page-break-inside: avoid;
  }
  details.vraag[open] summary::after,
  details.vraag summary::after {
    display: none;
  }
  details.vraag {
    border-left-color: black;
  }
  details.vraag > * {
    display: block;
  }
}
