:root {
  --groen: #1f7a3c;
  --groen-licht: #eaf5ed;
  --tekst: #1d2420;
  --grijs: #5b645e;
  --lijn: #dfe5e1;
  --vlak: #f6f8f6;
  --breed: 70rem;
  --ruimte: clamp(3rem, 8vw, 6rem);
  --rand: clamp(1rem, 4vw, 2rem);
}

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

body {
  margin: 0;
  font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.125rem)/1.65 Jost, system-ui, sans-serif;
  color: var(--tekst);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--groen); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); }
p, li { text-wrap: pretty; overflow-wrap: break-word; }
p { margin: 0 0 1em; }

/* Opbouw */
.wrap { width: min(100% - 2 * var(--rand), var(--breed)); margin-inline: auto; }
section { padding-block: var(--ruimte); }
.vlak { background: var(--vlak); }
.intro { max-width: 40rem; color: var(--grijs); font-size: 1.1em; }
.center { text-align: center; }
.center .intro { margin-inline: auto; }
.kop, .kop + section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.kop + section { padding-bottom: var(--ruimte); }
.kop .intro { margin-bottom: 0; }

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 18rem)), 1fr));
}
.duo, .split { --min: 22rem; }
.split { align-items: center; gap: clamp(2rem, 6vw, 4rem); }

/* Kop en menu */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fffffff2;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lijn);
}
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.logo img { height: clamp(3.25rem, 2.5rem + 2vw, 4.25rem); width: auto; }

nav ul { display: flex; gap: 0.25rem 2rem; margin: 0; padding: 0; list-style: none; }
nav a { color: var(--tekst); text-decoration: none; font-weight: 500; }
nav a:hover, nav a[aria-current] { color: var(--groen); }
nav a[aria-current] { text-decoration: underline 2px; text-underline-offset: 0.5em; }

#menu, .menuknop { display: none; }

@media (max-width: 47.99rem) {
  .menuknop { display: grid; gap: 6px; padding: 0.75rem 0 0.75rem 0.75rem; cursor: pointer; }
  .menuknop span { width: 26px; height: 2px; background: var(--tekst); transition: transform 0.2s, opacity 0.2s; }
  #menu:checked + .menuknop span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #menu:checked + .menuknop span:nth-child(2) { opacity: 0; }
  #menu:checked + .menuknop span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  #menu:focus-visible + .menuknop { outline: 2px solid var(--groen); }
  #menu { display: block; position: absolute; opacity: 0; pointer-events: none; }
  nav { display: none; width: 100%; }
  #menu:checked ~ nav { display: block; }
  nav ul { flex-direction: column; padding-block: 0.5rem 1rem; }
  nav a { display: block; padding: 0.6rem 0; font-size: 1.15rem; }
}

/* Onderdelen */
.foto { border-radius: 0.75rem; }

.kaart {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--lijn);
  border-radius: 0.75rem;
  --p: clamp(1.5rem, 4vw, 2rem);
  padding: var(--p);
  overflow: hidden;
}
.kaart > :last-child { margin-bottom: 0; }
.kaart .foto { aspect-ratio: 3 / 2; object-fit: cover; width: calc(100% + 2 * var(--p)); max-width: none; margin: calc(-1 * var(--p)) calc(-1 * var(--p)) 1.5rem; border-radius: 0; }
a.kaart { color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
a.kaart:hover { border-color: var(--groen); transform: translateY(-2px); }

.icoon { width: 3rem; height: 3rem; margin-bottom: 1rem; color: var(--groen); }
.label { color: var(--grijs); margin-bottom: 1em; }
.meer { margin-top: auto; font-weight: 500; color: var(--groen); }

ul.lijst { margin: 0 0 1em; padding-left: 1.2em; }
ul.lijst li::marker { color: var(--groen); }

.team .foto { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.team .zonder { display: grid; place-items: center; background: var(--groen-licht); color: var(--groen); font-size: 4rem; font-weight: 600; }
.team .label { font-weight: 500; color: var(--groen); }
.team .kenmerk { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--lijn); font-style: italic; color: var(--grijs); }

.feiten { margin: 0 0 1.5em; padding: 0; list-style: none; }
.feiten li { padding: 0.6em 0 0.6em 1.75em; border-bottom: 1px solid var(--lijn); position: relative; }
.feiten li::before { content: "✓"; position: absolute; left: 0; color: var(--groen); font-weight: 600; }

.knop {
  display: inline-block;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  background: var(--groen);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.knop:hover { background: #17602f; }

.tabel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95em; font-variant-numeric: tabular-nums; }
th, td { padding: 0.7em clamp(0.3rem, 1.5vw, 0.75rem); text-align: left; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
thead th { color: var(--grijs); font-weight: 500; }

.mederi { max-width: 18rem; }

/* Voet */
footer { background: #17201a; color: #c9d1cb; padding-block: 3rem; font-size: 0.95em; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { margin: 0; }
footer svg { width: 1.5rem; height: 1.5rem; vertical-align: middle; }

/* Jobs */
.vacature { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.vacature h3 { margin-top: 1.5em; padding-top: 1.25em; border-top: 1px solid var(--lijn); }
.vacature aside h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.tags li { padding: 0.2em 0.8em; border-radius: 999px; background: var(--groen-licht); color: var(--groen); font-size: 0.9em; font-weight: 500; }
@media (min-width: 60rem) {
  .vacature { grid-template-columns: 1fr 20rem; }
  .vacature aside { position: sticky; top: 7rem; }
}
.nb { white-space: nowrap; }
