/*
Theme Name: Vergelijker
Theme URI: https://example.com/
Author: Nico van Dijk Media
Description: Thema voor een vergelijkingssite: mega-menu, homepage met secties via de Customizer, en artikelen met een rechterkolom voor aanbiedingen.
Version: 1.6.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vergelijker
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #10253b;
  --sky: #d3e2ff;
  --sky-soft: #eef4ff;
  --teal: #0a58e6;
  --teal-dark: #083fa8;
  --sun: #ffc233;
  --sun-dark: #f0ab00;
  --sun-soft: #fff4d6;
  --line: #d9e3f5;
  --muted: #4f6478;
  --paper: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(16, 37, 59, .04), 0 10px 28px -14px rgba(16, 37, 59, .3);
  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-base: 72px; /* vaste minimumhoogte van de header */
  --header-h: 72px;    /* werkelijke hoogte (door main.js bijgewerkt), alleen voor offsets */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-locked { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1.1em; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-cta { background: var(--sun); color: var(--cta-ink, var(--ink)); }
.btn-cta:hover { background: var(--sun-dark); color: var(--cta-ink, var(--ink)); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header + mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg, var(--paper)); color: var(--header-ink, var(--ink)); border-bottom: 1px solid rgba(16, 37, 59, .12); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-base); }
.brand { min-width: 0; line-height: 1.15; overflow-wrap: anywhere; display: flex; align-items: center; text-decoration: none; color: var(--header-ink, var(--ink)); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; flex: none; }
.brand img { max-height: 44px; width: auto; display: block; }
.primary-nav { flex: 1; }
.menu-top { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu-top > li { position: static; display: flex; align-items: center; }
.menu-top > li > a, .menu-top > li > .mega-link {
  display: block; padding: 10px 12px; color: var(--header-ink, var(--ink)); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px;
}
.menu-top > li:hover > a, .menu-top > li.is-current > a { background: var(--header-hover, var(--sky-soft)); }
.mega-toggle { display: none; }
.mega-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(16, 37, 59, .35); }
.mega-list { list-style: none; margin: 0 auto; padding: 28px 0 32px; width: min(1200px, 100% - 48px); column-count: 3; column-gap: 40px; }
.mega-list > li { break-inside: avoid; margin: 0; }
.mega-list a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .97rem; line-height: 1.4; }
.mega-list a:hover { color: var(--teal); text-decoration: underline; }
.mega-heading { display: block; font-weight: 800; font-size: .98rem; margin: 0 0 6px; color: var(--teal-dark); }
.mega-list > .is-heading ~ .is-heading { break-before: column; }
.mega-list > .is-promo { break-before: column; }
.promo { background: var(--sky); border-radius: var(--radius); padding: 22px; }
.promo-text { font-weight: 800; font-size: 1.15rem; line-height: 1.3; margin: 0 0 14px; }
.promo .btn { width: 100%; }
@media (min-width: 1024px) {
  .has-mega:hover > .mega-panel, .has-mega:focus-within > .mega-panel, .has-mega.open > .mega-panel { display: block; }
}
.header-cta { margin-left: auto; flex: none; padding: .65em 1.1em; }
.nav-toggle { display: none; position: relative; flex: none; width: 46px; height: 46px; padding: 0; background: none; border: 2px solid var(--header-ink, var(--ink)); border-radius: 10px; color: var(--header-ink, var(--ink)); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, top .2s, background-color .2s; }
.nav-toggle-bars { left: 50%; top: 50%; margin: -1.25px 0 0 -10px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .header-inner { gap: 12px; }
  .brand { flex: 1 1 auto; font-size: clamp(1.05rem, 4.8vw, 1.35rem); }
  .nav-toggle { display: block; margin-left: 0; }
  .header-cta, .search-toggle { display: none; }
  .nav-search { display: block; padding: 16px 0 8px; }
  .primary-nav .menu-top > li > a, .primary-nav .menu-top > li > .mega-link { color: var(--ink); }
  .primary-nav .menu-top > li:hover > a { background: transparent; }
  .primary-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); overflow-y: auto; padding: 8px 24px 40px; }
  .primary-nav.is-open { display: block; }
  .menu-top { display: block; }
  .menu-top > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu-top > li > a, .menu-top > li > .mega-link { flex: 1; padding: 16px 0; font-size: 1.05rem; }
  .mega-toggle { display: block; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
  .mega-toggle::after { content: ""; position: absolute; left: 19px; top: 17px; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
  .has-mega.open > .mega-toggle::after { transform: rotate(225deg); top: 21px; }
  .mega-panel { position: static; flex-basis: 100%; box-shadow: none; border: 0; }
  .has-mega.open > .mega-panel { display: block; }
  .mega-list { width: 100%; column-count: 1; padding: 0 0 18px; }
  .mega-list > .is-heading { margin-top: 14px; }
  .mega-list > .is-promo { margin-top: 18px; }
}

/* ---------- Zoeken ---------- */
.search-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--header-ink, var(--ink)); text-decoration: none; }
.search-toggle:hover { background: var(--header-hover, var(--sky-soft)); color: var(--header-ink, var(--ink)); }
.header-search { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; color: var(--ink); }
.nav-search { display: none; }
.searchform { display: flex; gap: 10px; max-width: 720px; }
.search-field { flex: 1; min-width: 0; padding: .8em 1em; font: 500 1rem var(--font); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.search-field::placeholder { color: #6b7f90; }
.head-search { margin-top: 18px; }
@media (max-width: 1023px) {
  .search-toggle { display: none; }
  .nav-search { display: block; padding: 16px 0 8px; }
  .header-search { display: none; }
}

/* ---------- Hero met vergelijkingsknoppen ---------- */
.hero { background: var(--hero-bg, var(--sky-soft)); padding: clamp(28px, 4.5vw, 56px) 0 clamp(24px, 3vw, 36px); }
.hero-inner.has-img { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero-art img { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 .55em; max-width: 18ch; }
.hero h1 .accent { color: var(--teal); }
.hero-lead { font-size: 1.15rem; max-width: 52ch; margin: -.2em 0 1.2em; }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.product-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 150px;
  padding: 24px 12px 20px; text-align: center; background: #fff; border: 1px solid rgba(16, 37, 59, .08); border-radius: 28px;
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.product-grid a:hover { border-color: var(--teal); box-shadow: 0 10px 24px -14px rgba(10, 88, 230, .55); color: var(--ink); }
.tile-icon { flex: none; width: 80px; height: 80px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.vgl-icon { width: 38px; height: 38px; fill: none; stroke: var(--teal-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vgl-solid { color: var(--teal-dark); fill: currentColor; stroke: none; }
.vgl-solid.vgl-sq { width: 44px; height: 44px; }
.vgl-solid.vgl-wide { width: 62px; height: 43px; }
.vgl-solid .f { fill: currentColor; stroke: none; }
.vgl-solid .k { fill: var(--sky); stroke: none; }
.vgl-solid .s { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.vgl-solid .ks { fill: none; stroke: var(--sky); stroke-linecap: round; stroke-linejoin: round; }
.vgl-solid .sh { fill: var(--sky); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.tile-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tile-name { font-weight: 600; font-size: 1.1rem; overflow-wrap: break-word; hyphens: auto; }
.tile-sub { font-size: .86rem; font-weight: 600; color: var(--teal-dark); margin-top: 4px; }
.hero-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.hero-all:hover { color: var(--teal); }
.admin-hint { background: #fff; border: 2px dashed var(--teal); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; }
@media (max-width: 900px) {
  .hero-inner.has-img { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 600px) {
  .product-grid { gap: 10px; }
  .product-grid a { min-height: 0; padding: 14px 6px 12px; gap: 6px; border-radius: 22px; }
  .tile-icon { width: 64px; height: 64px; }
  .vgl-solid.vgl-wide { width: 50px; height: 35px; }
  .vgl-solid.vgl-sq { width: 36px; height: 36px; }
  .vgl-icon:not(.vgl-solid) { width: 32px; height: 32px; }
  .tile-name { font-size: .94rem; }
  .tile-sub { font-size: .78rem; margin-top: 2px; }
  .searchform { flex-direction: column; }
}

/* ---------- Home sections ---------- */
.section { padding: clamp(28px, 3.6vw, 52px) 0; }
.section-soft { background: var(--sky-soft); }
.section h2.section-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: .7em; }
.usp-band { border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 26px 0; }
.usp h3 { font-size: 1.15rem; margin-bottom: .3em; }
.usp p { margin: 0; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.about-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; font-weight: 600; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.2rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.why h3 { font-size: 1.2rem; }
.why p { margin: 0; color: var(--muted); }
.guides-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.guide { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; }
.guide h3 { font-size: 1.08rem; margin-bottom: .4em; }
.guide h3 a { color: var(--ink); text-decoration: none; }
.guide h3 a:hover { color: var(--teal); }
.guide ul { list-style: none; margin: 0; padding: 0; }
.guide li { border-top: 1px solid var(--line); }
.guide li a { display: block; padding: 9px 0; text-decoration: none; font-size: .96rem; line-height: 1.4; overflow-wrap: anywhere; }
.guide li a:hover { text-decoration: underline; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.8rem; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: clamp(36px, 5vw, 60px) 0; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { max-width: 52ch; margin: 0 auto 1.6em; color: #d6e6ee; }
@media (max-width: 900px) {
  .usp-grid, .why-grid, .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .steps, .guides-grid { grid-template-columns: 1fr; } }

/* ---------- Cards / archive ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--sky); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card time { font-size: .88rem; color: var(--muted); }
.card h3 { font-size: 1.15rem; margin: 4px 0 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--teal); text-decoration: underline; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.page-head { background: var(--sky-soft); padding: 44px 0 36px; margin-bottom: 48px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.main-pad { padding-bottom: 80px; }

/* ---------- Zoekresultaten ---------- */
.result-count { margin: 14px 0 0; color: var(--muted); font-weight: 600; }
.search-intro { max-width: 60ch; margin: 12px 0 0; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-item { padding: 22px 0; border-top: 1px solid var(--line); }
.search-item:first-child { border-top: 0; padding-top: 0; }
.search-meta { margin: 0 0 4px; font-size: .85rem; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .04em; }
.search-item h2 { font-size: 1.35rem; margin: 0 0 6px; }
.search-item h2 a { color: var(--ink); text-decoration: none; }
.search-item h2 a:hover { color: var(--teal); text-decoration: underline; }
.search-item p:last-child { margin: 0; color: var(--muted); }
.no-results h2 { font-size: 1.6rem; }

/* ---------- Article ---------- */
.article-hero { background: var(--sky-soft); padding: 28px 0 36px; margin-bottom: 44px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #8aa0b0; }
.crumbs a { color: var(--muted); }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; margin-bottom: .5em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.article-meta small { color: var(--muted); font-size: .92rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: 72px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; display: grid; gap: 22px; padding: 2px 2px 8px; }
.article-figure { margin: 0 0 28px; }
.article-figure img { width: 100%; border-radius: var(--radius); display: block; }

/* Rechterkolom: aanbiedingen */
.offers-card { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.offers-head { background: var(--sky); padding: 16px 20px; }
.offers-title { font-size: 1.15rem; margin: 0; }
.offers-list { list-style: none; margin: 0; padding: 0; counter-reset: offer; }
.offer { counter-increment: offer; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 16px 20px; border-top: 1px solid var(--line); position: relative; }
.offer:first-child { border-top: 0; }
.offer::before { content: counter(offer); grid-row: 1 / span 3; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.offer-logo { max-height: 34px; max-width: 120px; width: auto; display: block; object-fit: contain; }
.offer-name { font-weight: 800; }
.offer-badge { display: inline-block; background: var(--sun-soft); color: #7a5600; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.offer-price { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.offer-price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.offer-note { font-size: .88rem; color: var(--muted); line-height: 1.4; margin: 0; }
.offer .btn { grid-column: 2; margin-top: 8px; padding: .6em 1em; font-size: .95rem; }
.offers-foot { padding: 12px 20px 16px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
.cta-card { background: var(--sky); border-radius: var(--radius); padding: 22px; }
.cta-card p { font-weight: 800; font-size: 1.15rem; line-height: 1.3; margin-bottom: 14px; }

/* Zoekveld en widgets in de rechterkolom */
.aside-search .searchform { max-width: none; }
.aside-search .search-submit { padding: .7em 1em; }
.article-aside .widget { min-width: 0; }
.article-aside .widget img { max-width: 100%; height: auto; }
.article-aside .widget-title { font-size: 1.05rem; margin: 0 0 .6em; }

/* Inhoudsopgave */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--paper); }
.toc-title { font-weight: 800; margin: 0 0 8px; font-size: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; border-left: 3px solid var(--line); }
.toc a:hover { color: var(--teal); }
.toc a.is-active { border-left-color: var(--teal); font-weight: 700; color: var(--teal-dark); }
.toc .toc-h3 a { padding-left: 26px; font-size: .9rem; color: var(--muted); }
.toc-inline { display: none; margin-bottom: 28px; }
.toc-inline summary { cursor: pointer; font-weight: 800; }
.toc-inline[open] summary { margin-bottom: 8px; }

/* De kolom blijft rechts; alleen op telefoons (<= 700px) is er geen ruimte en komt hij onder het artikel. */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
  .offer { grid-template-columns: 28px 1fr; padding: 14px 14px; }
  .offer::before { width: 26px; height: 26px; font-size: .8rem; }
  .offers-head, .offers-foot { padding-left: 14px; padding-right: 14px; }
  .offer-price { font-size: 1.3rem; }
}
@media (max-width: 700px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; max-height: none; overflow: visible; }
  .article-aside .toc { display: none; }
  .toc-inline { display: block; }
}

/* Inhoud van artikelen */
.entry-content { max-width: 760px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 2em 0 .6em; }
.entry-content h3 { font-size: 1.3rem; margin: 1.7em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .entry-content .has-small-font-size { font-size: .88rem; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 0; }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.6em 0 .6em; }
.entry-content th { background: var(--sky); text-align: left; font-weight: 800; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.entry-content tbody tr:nth-child(even) td { background: var(--sky-soft); }
.entry-content td img { max-height: 30px; width: auto; border-radius: 0; }
.entry-content .wp-block-table figcaption { font-style: italic; }

/* Compacte promoblokken tussen alinea's (Google-favoriet, nieuwsbrief) */
.article-promo-inline { margin: 1.5em 0; }
.article-promo-inline a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.35; text-decoration: none; transition: border-color .15s, background-color .15s; }
.article-promo-inline a:hover { border-color: var(--teal); background: var(--sky-soft); color: var(--teal-dark); }
.article-promo-inline svg { flex: none; width: 22px; height: 22px; }
.promo-newsletter a { background: var(--sky-soft); }
.promo-newsletter a:hover { background: #fff; }
.promo-newsletter svg { color: var(--teal); }

/* Blokpatronen (Gutenberg: Groep + extra CSS-klasse) */
.vgl-summary, .vgl-tip, .vgl-expert, .vgl-cta { border-radius: var(--radius); padding: 22px 26px; margin: 1.8em 0; }
.vgl-summary { background: var(--sky-soft); border: 1px solid var(--sky); }
.vgl-tip { background: var(--sun-soft); }
.vgl-expert { background: var(--paper); border: 2px solid var(--ink); position: relative; padding-top: 36px; }
.vgl-expert::before { content: "\201C"; position: absolute; top: -6px; left: 22px; font-size: 4.2rem; line-height: 1; font-weight: 900; color: var(--teal); }
.vgl-cta { background: var(--ink); color: #fff; text-align: center; }
.vgl-cta h2, .vgl-cta h3 { color: #fff; margin-top: 0; }
.vgl-cta a:not(.wp-block-button__link) { color: #fff; }
.vgl-box-title { font-weight: 800; font-size: 1.1rem; margin-bottom: .5em; }
.vgl-summary > :last-child, .vgl-tip > :last-child, .vgl-expert > :last-child, .vgl-cta > :last-child { margin-bottom: 0; }
.vgl-expert .vgl-expert-name { font-weight: 700; font-size: .95rem; color: var(--muted); }
.wp-block-button__link { background: var(--sun); color: var(--cta-ink, var(--ink)); font-weight: 700; border-radius: var(--radius-sm); padding: .8em 1.4em; text-decoration: none; }
.wp-block-button__link:hover { background: var(--sun-dark); color: var(--cta-ink, var(--ink)); }

/* Onder het artikel */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 44px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { border-radius: 50%; }
.byline-text { font-size: .95rem; line-height: 1.5; }
.byline-text strong { display: block; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; }
.share a, .share button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 7px 13px; font: 600 .9rem var(--font); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.related { margin-top: 52px; }
.related h2 { font-size: 1.5rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.related li { border-top: 1px solid var(--line); padding: 14px 0; }
.related a { font-weight: 700; text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--teal); text-decoration: underline; }
.related p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .related ul { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6e6ee; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.footer-top > * { min-width: 0; overflow-wrap: anywhere; }
.footer-top img { max-width: 100%; height: auto; }
.footer-brand { font-size: clamp(1.25rem, 5vw, 1.5rem); overflow-wrap: anywhere; font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 8px; }
.footer-top .widget-title { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 24px 0 0; padding: 0; }
.footer-note { margin: 20px 0 0; font-size: .85rem; color: #9db6c6; max-width: 90ch; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

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