/* ==========================================================================
   Klerks Webdevelopment — base.css
   Tokens, reset, typografie, layout, knoppen en kleine bouwstenen.
   Kleuren zijn per site aan te passen via Thema opties → Visuele identiteit.
   ========================================================================== */

@font-face {
	font-family: "Plus Jakarta Sans Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Plus Jakarta Sans Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--blue: #277CEA;
	--blue-rgb: 39, 124, 234;
	--blue-600: #1C63C7;
	--blue-50: #EAF2FD;
	--lime: #D4F25C;
	--lime-rgb: 212, 242, 92;
	--lime-600: #B9DC2E;
	--ink: #0E1420;
	--ink-rgb: 14, 20, 32;
	--bg: #FFFFFF;
	--soft: #F3F5F9;
	--line: #E3E8F0;
	--text: var(--ink);
	--muted: #5A6476;
	--amber: #F5A623;

	--radius: 20px;
	--radius-lg: 32px;
	--radius-pill: 999px;
	--shadow: 0 10px 30px rgba(var(--ink-rgb), .08);
	--shadow-lg: 0 30px 70px -20px rgba(var(--ink-rgb), .25);

	--font: "Plus Jakarta Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1360px;
	--gutter: clamp(16px, 4vw, 28px);
	--sectie: clamp(72px, 10vw, 136px);
	--rand: clamp(8px, 1.5vw, 20px); /* marge van brede vlakken (hero, header, zachte secties) */
	--ease: cubic-bezier(.22, 1, .36, 1);

	--h1: clamp(2.4rem, 1.4rem + 4.6vw, 5rem);
	--h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
	--h3: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; } /* vangnet: nooit zijwaarts scrollen, ook niet door absoluut gepositioneerde elementen */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); } /* tekstlinks: #1C63C7 haalt contrast 4,5:1 op wit en op de zachte vlakken */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }
address { font-style: normal; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.03em; font-weight: 750; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.screen-reader-text {
	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:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; top: 12px; left: 12px;
	padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 12px; margin: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--smal { max-width: calc(800px + var(--gutter) * 2); }
.container--juridisch .opgemaakt { max-width: none; }
.sectie { padding-block: var(--sectie); position: relative; }
.sectie--compact { padding-block: clamp(40px, 6vw, 72px); }
.sectie--soft {
	background: var(--soft);
	border-radius: var(--radius-lg);
	margin-inline: var(--rand);
}
.sectie__voet { display: flex; justify-content: center; margin-top: 40px; }

.sectiekop { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sectiekop h2 { margin-bottom: .35em; }
.sectiekop p { color: var(--muted); font-size: 1.125rem; }
/* Opgemaakte intro's (WYSIWYG): alinea's, vet en links */
.tekst-rijk > :first-child { margin-top: 0; }
.tekst-rijk > :last-child { margin-bottom: 0; }
.tekst-rijk p { margin: 0 0 .7em; color: inherit; font-size: inherit; }
.tekst-rijk ul, .tekst-rijk ol { margin: 0 0 .7em; padding-left: 1.2em; }
.tekst-rijk strong, .tekst-rijk b { color: var(--ink); font-weight: 700; }
.tekst-rijk a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tekst-rijk a:hover { text-decoration-thickness: 2px; }
.sectiekop .tekst-rijk, .faq__zijkant .tekst-rijk { color: var(--muted); font-size: 1.125rem; }
.sectiekop--midden { margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: 10px; }
.sectiekop--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; }
.sectiekop--split > div { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 860px) { .sectiekop--split { grid-template-columns: 1fr; } }
/* Kop + intro links, link rechts uitgelijnd met de container */
.sectiekop--rij { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.sectiekop--rij > div { max-width: 760px; }
.sectiekop--rij .tekstlink { flex: none; }
@media (max-width: 700px) { .sectiekop--rij { flex-direction: column; align-items: flex-start; } }
/* Alleen kop + link: link verticaal gecentreerd naast de kop, ook op mobiel als het past. */
.sectiekop--kort { align-items: center; flex-wrap: wrap; }
.sectiekop--kort h2 { margin: 0; }
.sectiekop--kort:has(+ .sectiekop__intro) { margin-bottom: 14px; }
.sectiekop__intro { max-width: 760px; margin: 0 0 clamp(32px, 5vw, 56px); font-size: 1.125rem; color: var(--muted); }
@media (max-width: 700px) { .sectiekop--kort { flex-direction: row; align-items: center; } }

/* ---------- Brede vlakken: hero's even breed als de zachte secties ---------- */
.hero > .container { max-width: none; padding-inline: var(--rand); }
.hero__kaart {
	/* Inhoud lijnt uit met de header (containerbreedte), de achtergrond loopt door tot de rand.
	   Gebruikt in home.css als padding-inline (de banner: banner.css). */
	--vlak-x: max(var(--gutter), calc((100% - var(--container)) / 2));
}

/* ---------- Knoppen ---------- */
.btn {
	--btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 50px; padding: 6px 6px 6px 22px;
	background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
	border-radius: var(--radius-pill);
	font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
	appearance: none;
}
.btn:not(:has(.btn__pijl)) { padding-right: 22px; }
.btn:hover { color: var(--btn-fg); box-shadow: 0 10px 24px -8px rgba(var(--blue-rgb), .55); }
.btn__pijl {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, .18); transition: transform .35s var(--ease);
}
.btn:hover .btn__pijl { transform: rotate(45deg); }
.btn--primary:hover { --btn-bg: var(--blue-600); }
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { --btn-bg: #222b3b; box-shadow: 0 10px 24px -10px rgba(var(--ink-rgb), .6); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.btn--lime .btn__pijl { background: var(--ink); color: var(--lime); }
.btn--lime:hover { --btn-bg: var(--lime-600); box-shadow: 0 10px 28px -8px rgba(var(--lime-rgb), .6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost .btn__pijl { background: var(--soft); }
.btn--ghost:hover { --btn-bg: #fff; --btn-bd: var(--ink); box-shadow: none; }
.btn--glas { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .22); }
.btn--glas:hover { --btn-bg: rgba(255, 255, 255, .16); box-shadow: none; }
.btn--groot { min-height: 58px; font-size: 1.0625rem; }
.btn--groot .btn__pijl { width: 44px; height: 44px; }
.btn--blok { width: 100%; justify-content: space-between; }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Ronde pijlknop (hoek van kaarten) */
.btn-arrow {
	display: inline-grid; place-items: center; flex: none;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--ink); color: #fff;
	transition: transform .4s var(--ease), background-color .3s var(--ease);
}

.icoonknop {
	display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
	border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
	transition: border-color .2s, background-color .2s;
}
.icoonknop:hover { border-color: var(--ink); }

.tekstlink {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease);
}
.tekstlink:hover { color: var(--ink); background-size: 100% 1.5px; }
.tekstlink .icoon { transition: transform .3s var(--ease); }
.tekstlink:hover .icoon { transform: translateX(4px); }

/* ---------- Accentwoord in koppen ---------- */
.accent { color: var(--blue); }
.accent--pil {
	position: relative; display: inline-block; color: var(--ink);
	padding: 0 .28em; margin-inline: .04em; border-radius: .3em;
	background: var(--lime); transform: rotate(-1.5deg);
	box-shadow: inset 0 -.08em 0 rgba(var(--ink-rgb), .08);
}
.accent__ster { position: absolute; bottom: -.22em; right: -.3em; color: var(--blue); transform: rotate(1.5deg); }
.accent__ster .icoon { width: .55em; height: .55em; }

/* ---------- Chips, tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff;
	font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none;
	transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--lime); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; }
.tags li, .tag {
	display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill);
	background: var(--blue-50); color: var(--blue-600); font-size: .8rem; font-weight: 650; text-decoration: none;
}
a.tag:hover { background: var(--blue); color: #fff; }

/* ---------- Lijsten ---------- */
.vinklijst { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.vinklijst li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.vinklijst .icoon {
	flex: none; width: 24px; height: 24px; padding: 4px; margin-top: 1px;
	border-radius: 50%; background: var(--lime); color: var(--ink); stroke-width: 2.6;
}

/* ---------- Opgemaakte tekst (content, ACF-wysiwyg) ---------- */
.opgemaakt { font-size: 1.0625rem; }
.opgemaakt > * + * { margin-top: 1em; }
.opgemaakt h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 1.6em; }
.opgemaakt h3 { margin-top: 1.4em; }
.opgemaakt ul, .opgemaakt ol { padding-left: 1.2em; }
.opgemaakt li + li { margin-top: .4em; }
.opgemaakt ul li::marker { color: var(--blue); }
.opgemaakt blockquote { margin: 1.5em 0; padding: 20px 24px; border-left: 4px solid var(--lime); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.opgemaakt img { border-radius: var(--radius); }
.opgemaakt table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.opgemaakt th, .opgemaakt td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.opgemaakt a { font-weight: 600; }

/* ---------- Sterren & Google-regel ---------- */
.sterren { display: inline-flex; gap: 2px; color: var(--amber); }
.g-rating {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
	padding: 8px 14px 8px 8px; border-radius: var(--radius-pill);
	background: #fff; border: 1px solid var(--line);
	font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
a.g-rating:hover { color: var(--ink); border-color: var(--ink); }
.g-rating--kort { flex-wrap: nowrap; white-space: nowrap; }
.g-rating__logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); }
.g-rating--licht { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; --ster-leeg: rgba(255, 255, 255, .25); }
a.g-rating--licht:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.g-rating--licht .g-rating__logo { background: #fff; }
.g-rating__kort { display: none; }
@media (max-width: 600px) {
	/* Mobiel: logo, sterren en "4 Google reviews" altijd op één regel (zoals op de dienstpagina) */
	.g-rating { flex-wrap: nowrap; white-space: nowrap; max-width: 100%; }
	.g-rating > * { flex: none; }
	.g-rating__lang { display: none; }
	.g-rating__kort { display: inline; }
}

.leeg { padding: 40px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); }

/* ---------- Naar boven ---------- */
.naar-boven {
	position: fixed; right: 20px; bottom: 20px; z-index: 148;
	width: 60px; height: 60px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: var(--blue); color: #fff;
	box-shadow: 0 10px 30px rgba(var(--ink-rgb), .12);
	opacity: 0; pointer-events: none; transition: opacity .3s;
}
/* Met chatwolk: links naast de chatknop (het sluitkruisje blijft vrij). */
body:has(.kwdv-chatwolk:not(.is-verborgen)) .naar-boven { right: 92px; }
@media (max-width: 600px) {
	.naar-boven { width: 56px; height: 56px; right: 16px; bottom: 16px; }
	body:has(.kwdv-chatwolk:not(.is-verborgen)) .naar-boven { right: 84px; }
}
.naar-boven.is-zichtbaar { opacity: 1; pointer-events: auto; }

/* ---------- Mobiel: vaste elementen uit beeld bij naar beneden scrollen (main.js zet .is-scroll-weg) ---------- */
@media (max-width: 760px) {
	html .site-header--sticky,
	html .naar-boven,
	html .mobiele-balk,
	html .kwdv-chatwolk .cw-launcher,
	html .kwdv-chatwolk .cw-dismiss { transition: transform .35s var(--ease), opacity .3s var(--ease); }
	.is-scroll-weg .site-header--sticky { transform: translateY(calc(-100% - 12px)); }
	.is-scroll-weg .naar-boven,
	.is-scroll-weg .naar-boven.is-zichtbaar,
	.is-scroll-weg .mobiele-balk,
	.is-scroll-weg .kwdv-chatwolk:not(.is-open) .cw-launcher,
	.is-scroll-weg .kwdv-chatwolk:not(.is-open) .cw-dismiss { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
	html .site-header--sticky, html .naar-boven, html .mobiele-balk, html .kwdv-chatwolk .cw-launcher, html .kwdv-chatwolk .cw-dismiss { transition: opacity .2s linear; }
}
