/* KLV — ontwerpvoorstel. Licht en technisch, rood als accent, navy voor tekst en donkere vlakken. */

/* JetBrains Mono (SIL Open Font License), zelf gehost: regular 400 en medium 500 */
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --navy: #182D58;
  --navy-900: #101E3B;
  --ink: #1B2433;
  --muted: #5B6475;
  --line: #E2E5EA;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;
  --red: #ED1C24;        /* logo-rood: lijnen en accenten */
  --red-strong: #C8102E; /* knoppen en links: voldoende contrast op wit */
  --red-hover: #A30D25;
  --radius: 4px;
  --wrap: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--red-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 2px solid var(--red-strong); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
p, li, dd, .lead, .lead-sm, .prose { font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* Prototype-melding */
.proto-note {
  background: var(--navy-900); color: #C9D2E3; font-size: 13px; text-align: center; padding: 6px 16px;
}
.proto-note strong { color: #fff; }

/* Bovenbalk */
.topbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.topbar .wrap { display: flex; gap: 24px; align-items: center; justify-content: flex-end; padding-top: 20px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--red-strong); }
.topbar .addr { margin-right: auto; }
.lang { display: flex; gap: 2px; font-family: var(--mono); font-size: 13px; }
.lang a, .lang span { padding: 2px 6px; border-radius: var(--radius); }
.lang [aria-current] { background: var(--navy); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { height: 57px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 10px 9px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15.5px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red-strong); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .sub { position: absolute; left: 0; top: 100%; min-width: 290px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--red); box-shadow: 0 18px 40px rgba(16,30,59,.12); list-style: none; margin: 0; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-weight: 500; padding: 9px 12px; }
.nav .sub a:hover { background: var(--bg-alt); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: var(--radius); font-weight: 650; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--red-strong); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.arrow::after { content: "→"; font-weight: 400; }
.site-header .btn { padding: 11px 18px; white-space: nowrap; }

/* Label boven koppen */
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: calc(13px + 2pt); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* Hero */
/* Video over de volle breedte, 70% van de schermhoogte, met de tekst erover */
.hero-stage { position: relative; display: flex; align-items: center; min-height: 70vh; min-height: 70svh; background: var(--navy-900); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-media .hero-video.speelt { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,30,59,.85) 0%, rgba(16,30,59,.6) 45%, rgba(16,30,59,.2) 100%); }
.hero-text { position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-inner { max-width: 640px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: rgba(255,255,255,.82); }
.hero .lead { font-size: 19px; color: #fff; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-pauze { position: absolute; left: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); bottom: 16px; background: rgba(16,30,59,.6); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); font-family: var(--mono); font-size: 12px; padding: 6px 10px; cursor: pointer; }
.hero-pauze:hover { background: rgba(16,30,59,.85); }
.hero .tag { position: absolute; right: 24px; bottom: 16px; background: rgba(255,255,255,.92); font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: var(--radius); color: var(--navy); }

/* Kerncijfers */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .num { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--navy); letter-spacing: -0.02em; }
.fact .lbl { font-size: 14.5px; color: var(--muted); }

/* Secties */
section { scroll-margin-top: 90px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.section-head p { max-width: 36em; color: var(--ink); margin: 0; }

/* Productkaarten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #C9CED6; box-shadow: 0 14px 34px rgba(16,30,59,.08); transform: translateY(-2px); color: inherit; }
.card .img { aspect-ratio: 4 / 3; background: #F7F8FA; border-bottom: 1px solid var(--line); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img.contain img { object-fit: contain; padding: 18px; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .idx { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink); font-size: 15.5px; margin: 0 0 16px; }
.card .more { margin-top: auto; color: var(--red-strong); font-weight: 600; font-size: 15px; }
.card:hover .more { color: var(--red-hover); }

/* Zwembadband */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 2px solid var(--red-strong); border-bottom: 2px solid var(--red-strong); transform: rotate(-45deg); }
.link-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* Werkwijze */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--navy); counter-reset: step; }
.step { padding: 28px 28px 8px 0; margin-right: 28px; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--red-strong); font-weight: 500; margin-bottom: 14px; display: block; }
.step p { color: var(--ink); font-size: 15.5px; }

/* Expertise */
.expertise { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel .spec { margin: 20px 0 24px; }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.spec dt { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.spec dd { margin: 0; }

/* Video's */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-tile { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.video-tile .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.video-tile:hover .thumb img { transform: scale(1.03); opacity: .9; }
.video-tile .play { position: absolute; left: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--red-strong); display: grid; place-items: center; }
.video-tile .play::before { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.video-tile .t { display: block; margin-top: 12px; font-weight: 600; color: var(--navy); }
.video-tile .s { display: block; font-size: 14.5px; color: var(--muted); }

/* Actueel */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news a { text-decoration: none; color: inherit; display: block; }
.news .img { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.news .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news a:hover .img img { transform: scale(1.03); }
.news .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.news h3 { font-size: 1.12rem; }
.news a:hover h3 { color: var(--red-strong); }

/* CTA */
.cta { background: var(--navy); color: #D5DCEA; padding: 72px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.cta .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 36em; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 64px 0 0; font-size: 15px; color: var(--muted); }
.site-footer .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--red-strong); }
.site-footer .logo img { height: 51px; margin-bottom: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #CDD2DA; border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff; }
.newsletter .btn { padding: 12px 16px; }
.legal { margin-top: 56px; border-top: 1px solid var(--line); padding: 22px 0 28px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.legal .sp { margin-right: auto; }

/* Productpagina */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #B3B9C4; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-strong); }
.page-hero { padding: 36px 0 72px; }
.page-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.page-hero .lead { font-size: 19px; color: var(--ink); }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-hero .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.app h3 { font-size: 1.02rem; margin-bottom: 4px; }
.app p { font-size: 15px; color: var(--ink); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.gallery .g-img { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #F7F8FA; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .cap { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.case { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case .media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.case .body { padding: 44px; }
.related { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.related a { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; background: #fff; display: flex; justify-content: space-between; gap: 8px; }
.related a:hover { border-color: var(--red-strong); color: var(--red-strong); }

/* Lightbox / videospeler */
dialog.viewer { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
dialog.viewer::backdrop { background: rgba(10,16,30,.88); }
dialog.viewer .frame { position: relative; }
dialog.viewer img, dialog.viewer video { width: 100%; max-height: 82vh; object-fit: contain; background: #000; border-radius: var(--radius); }
dialog.viewer .caption { color: #fff; font-size: 15px; margin-top: 10px; }
dialog.viewer .close { position: absolute; top: -46px; right: 0; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font: inherit; font-size: 14px; padding: 6px 12px; border-radius: var(--radius); cursor: pointer; }

/* Responsief */
/* Smaller venster: adres uit de bovenbalk (staat ook in de footer), zodat alles op één regel past */
@media (max-width: 1200px) {
  .topbar .addr { display: none; }
}
/* Menuknop in plaats van het volledige menu onder 1240 px schermbreedte (daaronder past het menu niet naast het logo) */
@media (max-width: 1240px) {
  .nav, .site-header > .wrap > .btn { display: none; }
  .menu-toggle { display: inline-block; }
  .site-header.open .nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; max-height: calc(100vh - 76px); overflow: auto; }
  .site-header.open .nav > ul { flex-direction: column; align-items: stretch; }
  .site-header.open .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); margin: 0 0 8px 12px; padding: 0 0 0 8px; }
  .site-header.open .nav .has-sub > a::after { display: none; }
  .site-header.open .nav a { white-space: normal; }
}
@media (max-width: 1080px) {
  .cards, .news { grid-template-columns: 1fr 1fr; }
  .videos, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .addr { display: none; }
  .hero .wrap, .page-hero .wrap, .split, .expertise, .two-col, .case { grid-template-columns: 1fr; gap: 36px; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .cards, .news, .apps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .case .body { padding: 28px; }
  .site-footer .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ===== Aanvullingen voor de Statamic-site ===== */
.narrow { max-width: 860px; }
.section--compact { padding: 48px 0; }
.lead-sm { font-size: 18px; color: var(--ink); }
.muted { color: var(--muted); }
.note { color: var(--muted); font-style: italic; margin: -24px 0 24px; }
.empty { color: var(--muted); }
.below { margin-top: 28px; }
.arrow-back { font-weight: 600; text-decoration: none; }
.nav a.is-active { color: var(--red-strong); }
.f-h { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-bottom: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Vacature-melding in de bovenbalk */
.topbar .notice { margin-right: auto; color: var(--red-strong); font-weight: 600; text-decoration: none; }
.topbar .notice span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--red-strong); color: #fff; padding: 2px 6px; border-radius: var(--radius); margin-right: 6px; }
.topbar .notice + .addr { margin-right: 0; }

/* Paginakop varianten */
.page-hero--kort { padding: 28px 0 40px; }
.page-hero--kort .wrap { display: block; }
.page-hero .wrap.page-hero--zonder-beeld { grid-template-columns: 1fr; max-width: 900px; }

/* Foto rechts */
.split--rechts .media { order: 2; }

/* Lopende tekst uit het CMS */
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose--muted { color: var(--ink); }
/* Tabellen in lopende tekst (bv. PE/PP-vergelijking) */
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); border-bottom: 2px solid var(--navy); }
.prose tbody td:first-child { font-weight: 600; color: var(--navy); }
@media (max-width: 760px) {
  .prose table { display: block; overflow-x: auto; }
  .prose th, .prose td { min-width: 150px; }
}

/* Veelgestelde vragen */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .vraag { font: inherit; font-weight: 600; color: inherit; letter-spacing: 0; margin: 0; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red-strong); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .prose { margin-top: 12px; color: var(--ink); }

/* Vacatures */
.jobs { display: grid; gap: 16px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 24px 28px; background: #fff; text-decoration: none; color: inherit; }
.job:hover { border-color: #C9CED6; border-left-color: var(--red); box-shadow: 0 10px 28px rgba(16,30,59,.07); color: inherit; }
.job h3 { margin-bottom: 4px; }
.job p { margin: 4px 0 0; color: var(--ink); }
.job-meta { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.job .more { color: var(--red-strong); font-weight: 600; white-space: nowrap; }
.vacancy-head { padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.vacancy-part { margin-bottom: 36px; }
.vacancy-part h2 { font-size: 1.35rem; }

/* Formulieren */
.form-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.form-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section.alt .form-aside { background: #fff; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin: 24px 0; }
.fields label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy); }
.fields .full { grid-column: 1 / -1; }
/* Invulvelden zonder kader, met een zachte tint (#EEF1F5); bij invullen wit met een navy rand */
.fields input, .fields textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 14px 16px; border: 0; border-radius: var(--radius); background: #EEF1F5; width: 100%; transition: background .15s, box-shadow .15s; }
.fields input:hover, .fields textarea:hover { background: #E7EBF1; }
.fields input:focus, .fields textarea:focus { background: #fff; outline: none; box-shadow: 0 0 0 2px var(--navy); }
.fields textarea { resize: vertical; min-height: 160px; }
.fields input[type=file] { padding: 12px 16px; cursor: pointer; }
.req { color: var(--red-strong); }
.hint { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.form-note { font-size: 14px; color: var(--muted); }
.form-ok { background: #EAF6EE; border: 1px solid #B8E0C4; color: #1E5B32; padding: 16px 18px; border-radius: var(--radius); }
.form-err { background: #FDECEE; border: 1px solid #F3BCC4; color: #8A1024; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 8px; }
.form-err ul { margin: 6px 0 0; padding-left: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-footer .form-ok, .site-footer .form-err { font-size: 14px; padding: 10px 12px; }

/* Downloads */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.files a { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: #fff; text-decoration: none; color: var(--ink); }
.files a:hover { border-color: var(--red-strong); }
.file-ext { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff; background: var(--navy); border-radius: var(--radius); padding: 8px 0; text-align: center; }

/* Nieuwsbrief-archief en paginering */
.archive { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.archive li { border-bottom: 1px solid var(--line); }
.archive li.empty { padding: 16px 0; color: var(--muted); }
.archive a { display: flex; gap: 24px; padding: 16px 0; text-decoration: none; color: var(--navy); font-weight: 600; }
.archive .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; min-width: 140px; }
.pager { display: flex; justify-content: space-between; margin-top: 40px; }
.pager a { font-weight: 600; text-decoration: none; }

/* Bericht */
.post-image { margin: 0 0 8px; border-radius: var(--radius); overflow: hidden; }
.post-image img { width: 100%; }
.gallery--post { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }

/* 404 */
.notfound { padding: 40px 0; }

.cta a.tel { color: #fff; text-decoration: none; }

@media (max-width: 760px) {
  .form-layout, .fields { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: start; }
  .files a { grid-template-columns: 52px 1fr; }
  .files a > .muted:last-child { display: none; }
  .gallery--post { grid-template-columns: 1fr 1fr; }
  .topbar .notice { margin-right: 0; }
  .hero-media::after { background: rgba(16,30,59,.7); }
  .hero-text { padding-top: 48px; padding-bottom: 64px; }
  .pop-body { padding: 32px 22px 24px; }
  /* 12 px extra ruimte boven het logo in de menubalk */
  .site-header .wrap { min-height: 88px; padding-top: 12px; }
  /* Logo mag krimpen zodat het naast de menuknop past (maximaal 57 px hoog) */
  .site-header .logo { flex: 0 1 auto; min-width: 0; }
  .site-header .logo img { height: auto; max-height: 57px; max-width: 100%; }
  .site-header.open .nav { max-height: calc(100vh - 88px); }
}

/* Vacature als pop-up op de homepage (één keer; daarna alleen in de bovenbalk) */
dialog.pop { border: 0; border-top: 3px solid var(--red); padding: 0; border-radius: var(--radius); width: calc(100% - 32px); max-width: 540px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(16,30,59,.3); }
dialog.pop::backdrop { background: rgba(16,30,59,.55); }
dialog.pop[open] { animation: pop-in .2s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pop-body { padding: 36px 32px 32px; }
.pop-label { display: inline-block; font-family: var(--mono); font-size: 12px; font-style: normal; text-transform: uppercase; letter-spacing: .05em; background: var(--red-strong); color: #fff; padding: 2px 6px; border-radius: var(--radius); margin-bottom: 14px; }
dialog.pop h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
dialog.pop p { margin: 0 0 12px; }
dialog.pop .actions { margin-top: 24px; }
.pop-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font: inherit; font-size: 18px; color: var(--muted); cursor: pointer; border-radius: var(--radius); }
.pop-x:hover { color: var(--navy); background: var(--bg-alt); }

/* Monospace-labels altijd rechtop */
.eyebrow, .fact .num, .card .idx, .step .n, .news .meta, .job-meta, .spec dt, .lang, .file-ext, .archive .meta, .site-footer h4, .f-h, .topbar .notice span { font-style: normal; }
.eyebrow { font-weight: 400; }
/* E-mailadres zonder JavaScript: in de broncode omgekeerd (tegen robots), op het scherm leesbaar */
.e-omgekeerd { unicode-bidi: bidi-override; direction: rtl; }
/* Inhoudsvak dat ook een sectie is (vacature, bericht, 404): de marge links en rechts van .wrap behouden */
.wrap.section, .wrap.notfound { padding-left: 24px; padding-right: 24px; }
/* LinkedIn-icoon onder de nieuwsbrief in de footer (28 px, navy; rood bij aanwijzen) */
.site-footer .social { margin: 20px 0 0; }
.site-footer .social a { display: inline-flex; color: var(--navy); }
.site-footer .social a:hover { color: var(--red-strong); }
