/* =========================================================
   Relatie & Recht — stijl
   Kleuren: diepblauw (recht, vertrouwen) + Utrechts geel (accent)
   Typografie: Fraunces (koppen, warm) + Public Sans (tekst, helder)
   ========================================================= */

:root {
  --inkt: #14273f;
  --blauw: #1f4b7a;
  --blauw-diep: #0e2e4f;
  --blauw-licht: #e8f0f7;
  --lucht: #f4f8fc;
  --geel: #ffcd00;
  --geel-zacht: #fff4c9;
  --groen: #1c6b5a;
  --groen-zacht: #e6f2ef;
  --rood: #a8322b;
  --rood-zacht: #fbeceb;
  --grijs: #4d5f73;
  --lijn: #d7e2ec;
  --wit: #ffffff;

  --kop: "Fraunces", Georgia, "Times New Roman", serif;
  --tekst: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --breedte: 1180px;
  --breedte-breed: 1380px;
  --radius: 10px;
  --schaduw: 0 2px 6px rgba(20, 39, 63, 0.07);
  --schaduw-hoog: 0 10px 24px rgba(20, 39, 63, 0.16);
}

/* ---------- basis ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tekst);
  font-size: 18px;
  line-height: 1.7;
  color: var(--inkt);
  background: var(--lucht);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blauw); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--blauw-diep); }

h1, h2, h3, h4 {
  font-family: var(--kop);
  font-weight: 600;
  line-height: 1.25;
  color: var(--inkt);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }

p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: 0.45em; }

.omhulsel {
  width: min(100% - 40px, var(--breedte));
  margin-inline: auto;
}

.overslaan {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--geel);
  color: var(--inkt);
  padding: 12px 18px;
  z-index: 100;
  font-weight: 700;
}
.overslaan:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--geel);
  outline-offset: 2px;
}

/* ---------- kopbalk ---------- */

.kopbalk {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blauw-diep);
  border-bottom: 4px solid var(--geel);
}

.kopbalk__binnen {
  width: min(100% - 32px, var(--breedte-breed));
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}

.merk {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--wit);
  text-decoration: none;
  font-family: var(--kop);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 10px 0;
}
.merk span { color: var(--geel); }
.merk:hover { color: var(--wit); }

.menuknop {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: var(--wit);
  font-family: var(--tekst);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}
.menuknop:hover { border-color: var(--geel); }
.menuknop__streepjes { display: block; width: 20px; }
.menuknop__streepjes span {
  display: block;
  height: 2px;
  background: var(--wit);
  margin: 4px 0;
}

.hoofdmenu { margin-left: auto; }

.hoofdmenu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.hoofdmenu a {
  display: block;
  padding: 10px 9px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.hoofdmenu a:hover { color: var(--wit); border-bottom-color: var(--geel); }
.hoofdmenu a[aria-current="page"] {
  color: var(--wit);
  border-bottom-color: var(--geel);
  font-weight: 700;
}

@media (max-width: 1160px) {
  .menuknop { display: flex; }
  .hoofdmenu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--blauw-diep);
    border-bottom: 4px solid var(--geel);
    padding: 8px 0 16px;
  }
  .hoofdmenu.is-open { display: block; }
  .hoofdmenu ul { flex-direction: column; gap: 0; }
  .hoofdmenu li { width: min(100% - 32px, var(--breedte-breed)); margin-inline: auto; }
  .hoofdmenu a {
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .hoofdmenu a:hover { border-bottom-color: var(--geel); }
}

/* ---------- hero / slogan ---------- */

.hero {
  background: var(--wit);
  border-bottom: 1px solid var(--lijn);
  padding: clamp(34px, 5vw, 60px) 0;
}

.hero__tekst { max-width: 44ch; }

.hero h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  margin-bottom: 0.4em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--geel) 62%);
  padding-bottom: 2px;
}

.hero__onder {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--grijs);
  margin-bottom: 0;
}

.hero__praat {
  margin-top: 22px;
  display: inline-block;
  background: var(--geel-zacht);
  border-left: 5px solid var(--geel);
  padding: 12px 18px;
  font-weight: 600;
  color: var(--inkt);
}

/* ---------- secties ---------- */

.sectie { padding: clamp(34px, 4.5vw, 56px) 0; }
.sectie--wit { background: var(--wit); border-block: 1px solid var(--lijn); }

.sectie__kop { margin-top: 0; }
.sectie__intro { color: var(--grijs); max-width: 62ch; margin-top: -0.4em; }

/* ---------- acht vraagblokken ---------- */

.vragen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vraagblok {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--inkt);
  box-shadow: var(--schaduw);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.vraagblok:hover {
  transform: translateY(-4px);
  box-shadow: var(--schaduw-hoog);
  border-color: var(--blauw);
  color: var(--inkt);
}

.vraagblok__beeld {
  flex: 0 0 50%;
  height: 50%;
  background: var(--blauw-licht);
  overflow: hidden;
}
.vraagblok__beeld img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vraagblok__tekst {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  border-top: 3px solid var(--geel);
}

@media (max-width: 1000px) {
  .vragen { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .vragen { grid-template-columns: 1fr; gap: 14px; }
  .vraagblok { aspect-ratio: 2 / 1; flex-direction: row; }
  .vraagblok__beeld { flex: 0 0 42%; height: 100%; }
  .vraagblok__tekst {
    flex: 1 1 58%;
    border-top: 0;
    border-left: 3px solid var(--geel);
    font-size: 0.92rem;
    line-height: 1.35;
    padding: 10px 14px;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* ---------- twee kolommen met onderwerpen ---------- */

.kolommen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.kolom {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-top: 5px solid var(--blauw);
  border-radius: var(--radius);
  padding: 24px 26px 10px;
}
.kolom h2 { margin-top: 0; font-size: 1.35rem; }

.kolom ul { list-style: none; margin: 0; padding: 0; }
.kolom li { margin: 0; border-bottom: 1px solid var(--lijn); }
.kolom li:last-child { border-bottom: 0; }

.kolom a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--blauw);
}
.kolom a::after { content: "›"; color: var(--geel); font-size: 1.3rem; line-height: 1; }
.kolom a:hover { color: var(--blauw-diep); text-decoration: underline; }

@media (max-width: 700px) {
  .kolommen { grid-template-columns: 1fr; }
}

/* ---------- vier infoblokken (hover) ---------- */

.infoblokken {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.infoblok {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  background: var(--blauw);
  color: var(--wit);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  cursor: default;
  transition: background 0.2s ease, transform 0.2s ease;
}
.infoblok:nth-child(2) { background: #24567f; }
.infoblok:nth-child(3) { background: #2a5f70; }
.infoblok:nth-child(4) { background: var(--rood); }

.infoblok__label {
  font-family: var(--kop);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--geel);
}

.infoblok__vraag {
  margin-top: auto;
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
}

.infoblok__meer {
  display: none;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

.infoblok:hover,
.infoblok:focus-within {
  background: var(--blauw-diep);
  transform: translateY(-4px);
}
.infoblok:nth-child(4):hover,
.infoblok:nth-child(4):focus-within { background: #8a2620; }

.infoblok:hover .infoblok__label,
.infoblok:focus-within .infoblok__label { display: none; }

.infoblok:hover .infoblok__vraag,
.infoblok:focus-within .infoblok__vraag {
  margin-top: 0;
  text-align: left;
  font-style: normal;
  font-weight: 700;
  font-family: var(--kop);
  font-size: 1.15rem;
  color: var(--geel);
}

.infoblok:hover .infoblok__meer,
.infoblok:focus-within .infoblok__meer {
  display: block;
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 1000px) {
  .infoblokken { grid-template-columns: repeat(2, 1fr); }
}

/* op mobiel: geen hover, alles direct zichtbaar */
@media (hover: none), (max-width: 700px) {
  .infoblok { aspect-ratio: auto; min-height: 0; padding: 18px; }
  .infoblok__meer { font-size: 0.9rem; }
  .infoblok__label { display: none; }
  .infoblok__vraag {
    margin-top: 0;
    text-align: left;
    font-style: normal;
    font-family: var(--kop);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--geel);
  }
  .infoblok__meer { display: block; margin-top: auto; padding-top: 14px; }
  .infoblok:hover { transform: none; }
}

/* ---------- inhoudspagina's ---------- */

.paginakop {
  background: var(--blauw-diep);
  color: var(--wit);
  padding: 30px 0 34px;
  border-bottom: 4px solid var(--geel);
}
.paginakop h1 { color: var(--wit); margin-bottom: 0.25em; }
.paginakop p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.kruimels {
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
}
.kruimels a { color: var(--geel); text-decoration: none; }
.kruimels a:hover { text-decoration: underline; }

.inhoud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding: 40px 0 60px;
  align-items: start;
}

.artikel { max-width: 100%; }
.artikel > *:first-child { margin-top: 0; }
.artikel ul, .artikel ol { padding-left: 1.25em; }
/* leesregels beperken, maar tabellen de volle breedte geven */
.artikel > p,
.artikel > ul,
.artikel > ol,
.artikel > h2,
.artikel > h3,
.artikel > .kader,
.artikel > .verder { max-width: 68ch; }

.zijbalk {
  position: sticky;
  top: 86px;
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 0.96rem;
}
.zijbalk h2 { font-size: 1.1rem; margin: 0 0 0.6em; }
.zijbalk ul { list-style: none; margin: 0; padding: 0; }
.zijbalk li { border-bottom: 1px solid var(--lijn); }
.zijbalk li:last-child { border-bottom: 0; }
.zijbalk a { display: block; padding: 9px 0; text-decoration: none; font-weight: 600; }
.zijbalk a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .inhoud { grid-template-columns: 1fr; gap: 28px; }
  .zijbalk { position: static; }
}

/* ---------- kaders ---------- */

.kader {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.6em 0;
}
.kader > *:last-child { margin-bottom: 0; }
.kader h2, .kader h3 { margin-top: 0; font-size: 1.15rem; }

.kader--kort {
  background: var(--blauw-licht);
  border-left: 6px solid var(--blauw);
}
.kader--praat {
  background: var(--groen-zacht);
  border-left: 6px solid var(--groen);
}
.kader--praat h3 { color: var(--groen); }
.kader--let-op {
  background: var(--rood-zacht);
  border-left: 6px solid var(--rood);
}
.kader--let-op h3 { color: var(--rood); }
.kader--geel {
  background: var(--geel-zacht);
  border-left: 6px solid var(--geel);
}

/* ---------- tabel ---------- */

.tabelrol { overflow-x: auto; margin: 1.6em 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
  background: var(--wit);
  font-size: 0.95rem;
}
caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 10px;
  color: var(--grijs);
}
th, td {
  border: 1px solid var(--lijn);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}
thead th {
  background: var(--blauw-diep);
  color: var(--wit);
  font-family: var(--kop);
  font-weight: 600;
}
tbody th {
  background: var(--blauw-licht);
  font-weight: 700;
  width: 24%;
}
tbody tr:nth-child(even) td { background: #fbfcfe; }

/* ---------- veelgestelde vragen ---------- */

details {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 20px;
}
details[open] { border-color: var(--blauw); }
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blauw); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details > *:last-child { margin-bottom: 18px; }

/* ---------- formulier ---------- */

.formulier {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 640px;
}
.veld { margin-bottom: 18px; }
.veld label { display: block; font-weight: 700; margin-bottom: 6px; }
.veld input, .veld select, .veld textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 2px solid var(--lijn);
  border-radius: 6px;
  background: var(--wit);
  color: var(--inkt);
}
.veld input:focus, .veld select:focus, .veld textarea:focus { border-color: var(--blauw); }
.veld .hulp { font-size: 0.88rem; color: var(--grijs); margin: 4px 0 0; }

.knop {
  display: inline-block;
  background: var(--blauw);
  color: var(--wit);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
}
.knop:hover { background: var(--blauw-diep); color: var(--wit); }
.knop--geel { background: var(--geel); color: var(--inkt); }
.knop--geel:hover { background: #e6b900; color: var(--inkt); }

/* ---------- verderlezen ---------- */

.verder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
}
.verder a {
  display: block;
  height: 100%;
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-left: 5px solid var(--geel);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  font-weight: 700;
  color: var(--blauw);
}
.verder a:hover { border-color: var(--blauw); border-left-color: var(--geel); text-decoration: underline; }
.verder span { display: block; font-weight: 400; font-size: 0.92rem; color: var(--grijs); margin-top: 4px; }

/* ---------- disclaimerstrook ---------- */

.strook-disclaimer {
  background: var(--geel-zacht);
  border-top: 3px solid var(--geel);
  padding: 18px 0;
  font-size: 0.95rem;
}
.strook-disclaimer p { margin: 0; max-width: 78ch; }

/* ---------- voettekst ---------- */

.voetlinks {
  background: var(--blauw-diep);
  border-top: 4px solid var(--geel);
}
.voetlinks ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  min-height: 56px;
  align-items: center;
}
.voetlinks a {
  display: block;
  padding: 10px 0;
  color: var(--wit);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}
.voetlinks a:hover { border-bottom-color: var(--geel); color: var(--wit); }

.voettekst {
  background: var(--inkt);
  color: rgba(255, 255, 255, 0.75);
  padding: 24px 0 30px;
  font-size: 0.9rem;
}
.voettekst p { margin: 0 0 6px; }
.voettekst a { color: var(--geel); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
