/* ==========================================================
   Terravolt — hoofdstijl
   Nachtblauw #0F1B2A · Koraal #FF4F32 · Papier #F7F8F5
   ========================================================== */

@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/inter-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
	--nacht: #0F1B2A;
	--nacht-2: #1B2B40;
	--koraal: #FF4F32;
	--koraal-donker: #D93A20;
	--papier: #F7F8F5;
	--wit: #FFFFFF;
	--tekst: #1A2330;
	--grijs: #5B6573;
	--lijn: #E2E5E0;
	--zacht-koraal: #FFF1EE;
	--kop: "Sora", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 10px;
	--breed: 1160px;
	--smal: 720px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--papier);
	color: var(--tekst);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--koraal-donker); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--nacht); }
:focus-visible { outline: 3px solid var(--koraal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--kop);
	color: var(--nacht);
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 1.8em 0 0.5em;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 0.3em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p, ul, ol { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--breed); margin: 0 auto; padding: 0 16px; }
.wrap-smal { width: 100%; max-width: var(--smal); margin: 0 auto; padding: 0 16px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--koraal); color: var(--wit); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Labels */
.label {
	display: inline-block;
	font-family: var(--kop);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--koraal-donker);
	text-decoration: none;
}
.label-licht { color: var(--koraal); }

/* ---------- Header ---------- */
.site-header {
	background: var(--nacht);
	color: var(--wit);
	position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--wit); text-decoration: none; }
.logo:hover { color: var(--wit); }
.logo-img { max-height: 40px; width: auto; }
.logo-svg { height: 46px; width: auto; }
@media (max-width: 400px) { .logo-svg { height: 38px; } }
.logo-tekst { font-family: var(--kop); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }

.hoofdnav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hoofdnav a {
	display: block; padding: 8px 12px; border-radius: 8px;
	color: var(--wit); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.hoofdnav a:hover, .hoofdnav .current-menu-item > a, .hoofdnav .current-menu-ancestor > a { background: var(--nacht-2); color: var(--wit); }
.hoofdnav .sub-menu {
	list-style: none; margin: 0; padding: 8px; display: none;
	position: absolute; min-width: 240px; background: var(--nacht); border-radius: 0 0 var(--radius) var(--radius);
}
.hoofdnav .menu > li { position: relative; }
.hoofdnav .menu > li:hover > .sub-menu, .hoofdnav .menu > li:focus-within > .sub-menu { display: block; }

.menu-knop { display: none; }

@media (max-width: 860px) {
	.menu-knop {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
	}
	.menu-knop-streep, .menu-knop-streep::before, .menu-knop-streep::after {
		display: block; width: 22px; height: 2px; background: var(--wit); position: relative; content: "";
	}
	.menu-knop-streep::before { position: absolute; top: -7px; }
	.menu-knop-streep::after { position: absolute; top: 7px; }
	.hoofdnav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--nacht); padding: 8px 16px 16px; }
	.hoofdnav.is-open { display: block; }
	.hoofdnav .menu { flex-direction: column; }
	.hoofdnav .sub-menu { display: block; position: static; padding: 0 0 0 12px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--nacht); color: var(--wit); padding: 56px 0 72px; }
.hero-inner { max-width: 860px; }
.hero-titel { color: var(--wit); font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin: 0.35em 0 0.4em; }
.hero-intro { font-size: 1.15rem; color: #C9D2DD; max-width: 620px; }
.hero-knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Knoppen ---------- */
.knop, .wp-block-button__link {
	display: inline-block; padding: 13px 22px; border-radius: var(--radius);
	font-family: var(--kop); font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
	transition: background-color .15s ease, color .15s ease;
}
.knop-koraal, .wp-block-button__link { background: var(--koraal); color: var(--wit); }
.knop-koraal:hover, .wp-block-button__link:hover { background: var(--koraal-donker); color: var(--wit); }
.knop-omlijnd { border: 2px solid #3A4E68; color: var(--wit); }
.knop-omlijnd:hover { border-color: var(--wit); color: var(--wit); }

/* ---------- Artikel ---------- */
.site-main { min-height: 60vh; }
.artikel-kop { padding-top: 40px; }
.artikel-titel { margin-top: 0.25em; }
.artikel-meta { color: var(--grijs); font-size: 0.92rem; }
.artikel-beeld { margin: 24px auto 8px; }
.artikel-beeld img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

.inhoud { padding-bottom: 56px; }
.inhoud > *:first-child { margin-top: 0; }
.inhoud ul, .inhoud ol { padding-left: 1.3em; }
.inhoud li { margin-bottom: 0.4em; }
.inhoud li::marker { color: var(--koraal); }
.inhoud strong { color: var(--nacht); }
.inhoud img { border-radius: var(--radius); }
.inhoud figure { margin: 1.6em 0; }
.inhoud figcaption { color: var(--grijs); font-size: 0.88rem; margin-top: 8px; }
.inhoud blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--nacht);
	font-style: italic; color: var(--nacht-2);
}
.inhoud hr { border: 0; border-top: 1px solid var(--lijn); margin: 2.4em 0; }

.affiliate-melding {
	font-size: 0.85rem; color: var(--grijs);
	border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn);
	padding: 10px 0; margin-bottom: 2em;
}

.broodkruimels { font-size: 0.85rem; color: var(--grijs); margin-bottom: 16px; }
.broodkruimels a { color: var(--grijs); }

/* Kaderblok met koraal streepje */
.kader, .is-style-kader {
	border-left: 4px solid var(--koraal);
	background: var(--wit);
	padding: 16px 20px;
	margin: 1.8em 0;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.kader > *:last-child, .is-style-kader > *:last-child { margin-bottom: 0; }

/* Tabellen */
.inhoud table, .wp-block-table table {
	width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; background: var(--wit);
}
.wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.inhoud th, .inhoud td { padding: 10px 12px; border-bottom: 1px solid var(--lijn); text-align: left; vertical-align: top; }
.inhoud th { font-family: var(--kop); font-weight: 600; color: var(--wit); background: var(--nacht); }

/* Inklapbare FAQ (details/summary) */
.inhoud details {
	background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
	padding: 14px 18px; margin: 0 0 10px;
}
.inhoud summary { cursor: pointer; font-family: var(--kop); font-weight: 600; color: var(--nacht); }
.inhoud details[open] summary { margin-bottom: 8px; }

/* ---------- Overzichten ---------- */
.overzicht-kop { padding: 40px 0 8px; }
.overzicht-kop h1 { margin-top: 0.2em; }
.overzicht-intro { color: var(--grijs); max-width: 680px; }

.kaarten {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px; margin: 24px 0 40px;
}
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.kaart:hover { border-color: var(--koraal); transform: translateY(-2px); }
.kaart-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.kaart-link:hover { color: inherit; }
.kaart-beeld img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kaart-tekst { padding: 18px 20px 20px; }
.kaart-titel { margin: 6px 0 8px; font-size: 1.15rem; }
.kaart-samenvatting { color: var(--grijs); font-size: 0.95rem; margin-bottom: 10px; }
.kaart-meta { font-size: 0.8rem; color: var(--grijs); }

.recent, .gerelateerd { padding-top: 24px; }
.gerelateerd { border-top: 1px solid var(--lijn); }
.home-inhoud { padding-top: 48px; padding-bottom: 8px; }

.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.nav-links .page-numbers {
	padding: 8px 14px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--wit);
	text-decoration: none; color: var(--nacht);
}
.nav-links .current { background: var(--nacht); color: var(--wit); border-color: var(--nacht); }

/* Zoekformulier */
.search-form { display: flex; gap: 8px; margin: 16px 0; max-width: 480px; }
.search-field {
	flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--lijn); border-radius: var(--radius);
	font: inherit; background: var(--wit);
}
.search-submit {
	padding: 12px 18px; border: 0; border-radius: var(--radius); background: var(--nacht); color: var(--wit);
	font-family: var(--kop); font-weight: 600; cursor: pointer;
}

.leeg { padding: 64px 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nacht); color: #C9D2DD; margin-top: 40px; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 24px; }
.footer-merk { max-width: 380px; }
.footer-merk .logo-tekst { color: var(--wit); }
.footernav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footernav a { color: #C9D2DD; text-decoration: none; }
.footernav a:hover { color: var(--wit); }
.footer-onder { border-top: 1px solid var(--nacht-2); padding-top: 16px; padding-bottom: 24px; font-size: 0.82rem; color: #8E9BAB; }
.footer-onder p { margin: 0; }

/* WordPress-uitlijning */
.alignwide { max-width: var(--breed); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }

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

/* ---------- Contactformulier ---------- */
.contactformulier { margin: 1.6em 0; }
.contactformulier .veld { margin-bottom: 16px; }
.contactformulier label { display: block; font-family: var(--kop); font-weight: 600; color: var(--nacht); margin-bottom: 6px; font-size: 0.95rem; }
.contactformulier .optioneel { font-family: var(--body); font-weight: 400; color: var(--grijs); }
.contactformulier input[type="text"],
.contactformulier input[type="email"],
.contactformulier textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: var(--tekst);
	background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
}
.contactformulier input:focus, .contactformulier textarea:focus { outline: none; border-color: var(--koraal); box-shadow: 0 0 0 3px rgba(255, 79, 50, 0.18); }
.contactformulier textarea { resize: vertical; min-height: 140px; }
.contactformulier button { border: 0; cursor: pointer; }
.veld-website { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulier-privacy { font-size: 0.85rem; color: var(--grijs); }
.formulier-fout { background: var(--zacht-koraal); border-radius: var(--radius); padding: 12px 16px; margin: 1em 0; color: var(--koraal-donker); }
.formulier-fout p { margin: 0; }
