/* standardoperatingprocedure.nl - mobile-first, geen framework. */
:root {
  --c-navy: #0b2540;
  --c-navy-2: #123a63;
  --c-accent: #0b7fd1;
  --c-accent-dark: #075f9e;
  --c-accent-soft: #e6f2fc;
  --c-text: #1f2933;
  --c-muted: #52606d;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f6f9;
  --c-border: #d9e0e8;
  --radius: 12px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-h1: clamp(1.9rem, 1.35rem + 2.6vw, 3.1rem);
  --fs-h2: clamp(1.45rem, 1.2rem + 1.2vw, 2.05rem);
  --fs-h3: clamp(1.15rem, 1.08rem + 0.4vw, 1.3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--c-accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--c-navy); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--c-navy); margin: 0 0 .6em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: 1.6em; }
h3 { font-size: var(--fs-h3); margin-top: 1.4em; }
h4 { font-size: 1.05rem; margin-top: 1.2em; }
p, ul, ol, dl { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--c-navy); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-navy); min-width: 0; flex: 1 1 0; }
.brand-logo { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; font-size: clamp(.95rem, .85rem + .5vw, 1.1rem); line-height: 1.15; letter-spacing: -.01em; }
.brand-accent { color: var(--c-accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; text-decoration: none; color: var(--c-navy); font-weight: 600; padding: 10px 12px; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--c-navy); background: var(--c-bg-alt); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--c-accent); }
.lang-switch { border: 1px solid var(--c-border); }

.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: var(--c-navy); position: relative; transition: transform .2s, background .2s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobiel: menu als uitklappaneel (zonder JS gewoon zichtbaar onder de header) */
.header-inner { flex-wrap: wrap; }
.site-nav { width: 100%; padding-bottom: 8px; }
.js .site-nav { display: none; }
.js .nav-open .site-nav { display: block; }

@media (min-width: 1000px) {
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 2px; }
  .lang-item { margin-left: 8px; }
  .lang-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Knoppen */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; line-height: 1.25; text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--c-navy); }
.btn-outline { border-color: var(--c-navy); color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5em; }

/* Hero (home) */
.hero { background: linear-gradient(180deg, var(--c-accent-soft) 0%, #fff 100%); padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 64px); }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero-eyebrow { color: var(--c-accent-dark); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin-bottom: .75em; }
.hero h1 { max-width: 18ch; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem); color: var(--c-navy-2); max-width: 60ch; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1.05fr; gap: 48px; } }

/* Definitie-blok (citeerbaar voor AI/zoekmachines) */
.definition { background: #fff; border-left: 5px solid var(--c-accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; box-shadow: 0 1px 3px rgba(11, 37, 64, .08); }
.definition p:last-child { margin-bottom: 0; }

/* Secties */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-alt { background: var(--c-bg-alt); }
.section h2:first-child, .split h2, .section-head h2 { margin-top: 0; }
.section-head { max-width: 780px; margin-bottom: 2em; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-narrow-media { grid-template-columns: 1.4fr 1fr; }
  .split-reverse > :first-child { order: 2; }
}
.figure { margin: 0; }
.figure img, .rounded img { border-radius: var(--radius); }
.figure-portrait { max-width: 380px; margin-inline: auto; }
.figure-portrait img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11, 37, 64, .15); width: auto; max-height: min(560px, 80vh); margin-inline: auto; }

/* Kaarten */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent-dark); font-weight: 800; margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .4em; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent); transform: rotate(-45deg); }

/* Blogkaarten */
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 18px 20px 22px; }
.card-meta { color: var(--c-muted); font-size: .85rem; margin-bottom: .4em; }
.card-title { font-size: 1.1rem; margin: 0 0 .5em; }
.card-title a { color: var(--c-navy); text-decoration: none; }
.card-title a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.blog-card p { color: var(--c-muted); font-size: .95rem; }

/* Quote */
.quote { margin: 0; display: grid; gap: 20px; align-items: center; justify-items: center; text-align: center; max-width: 860px; margin-inline: auto; }
.quote blockquote { margin: 0; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.8rem); font-weight: 700; color: var(--c-navy); line-height: 1.35; }
.quote blockquote p { margin: 0; }
.quote img { width: 96px; height: 96px; border-radius: 50%; }
.quote figcaption { color: var(--c-muted); }
.quote figcaption strong { display: block; color: var(--c-navy); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--c-navy); padding: 14px 18px; list-style-position: outside; }
.faq summary h3 { display: inline; font-size: 1.02rem; margin: 0; }
.faq details > div { padding: 0 18px 14px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Pagina-/artikelkop */
.page-header { background: var(--c-navy); color: #fff; padding: clamp(32px, 6vw, 60px) 0; }
.page-header h1 { color: #fff; margin: 0; max-width: 28ch; }
.page-header .lead { color: #dbe7f3; margin: .8em 0 0; max-width: 70ch; }
.breadcrumb ol { list-style: none; margin: 0 0 .75em; padding: 0; display: flex; flex-wrap: wrap; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin: 0 .5em; opacity: .6; }
.breadcrumb a { color: #fff; opacity: .85; }
.breadcrumb [aria-current] { opacity: .85; }
.post-meta { margin: 1em 0 0; color: #b9cde2; font-size: .95rem; }

/* Artikel */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; background: var(--c-accent-soft); border-left: 4px solid var(--c-accent); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.post-hero { margin: 0 0 2em; }
.post-hero img { border-radius: var(--radius); width: 100%; }
.post-back { margin-top: 2.5em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--c-navy); }
.table-wrap { overflow-x: auto; margin: 0 0 1.25em; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
thead th { background: var(--c-bg-alt); color: var(--c-navy); }
.video-link { position: relative; display: block; border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5em; }
.video-link::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(11, 37, 64, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.video-link:hover::after { background-color: var(--c-accent); }

/* Stappen (wat is een SOP) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.step-num { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent-dark); margin-bottom: .4em; }
.step h2 { margin-top: 0; }
.tip { background: var(--c-accent-soft); border-radius: var(--radius); padding: 12px 16px; }

/* CTA-band */
.cta-band { background: var(--c-navy); color: #dbe7f3; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-inner { display: grid; gap: 16px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.2fr 1fr; gap: 40px; } .cta-actions { justify-content: flex-end; } }

/* Footer */
.site-footer { background: #071a2e; color: #cfd8e3; padding: 28px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (min-width: 900px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

@media print {
  .site-header, .site-footer, .cta-band, .btn, .blog-grid { display: none !important; }
  .page-header { background: none; color: #000; }
  .page-header h1, .post-meta { color: #000; }
}

/* Opeenvolgende split-rijen en hero-lead onder de definitie */
.split + .split:not(.step) { margin-top: clamp(40px, 6vw, 72px); }
.definition + p { margin-top: 1em; }
.step:not(.split) { max-width: 780px; }
.post-hero .video-link { margin: 0; }
.post-hero figcaption { font-size: .9rem; margin-top: .5em; }
