/*
Theme Name: Warm Medemblik
Theme URI: https://www.warmmedemblik.nl
Author: Warm Medemblik
Description: Gratis energieadvies voor inwoners van Medemblik.
Version: 1.0.0
Text Domain: warm-medemblik
*/

/* ============================================
   Warm Medemblik — Herontwerp
   Modern, toegankelijk, responsive
   ============================================ */

/* --- Reset & Basis --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Kleurenpalet */
  --groen-donker: #1a5632;
  --groen-midden: #2d8a4e;
  --groen-licht: #e8f5e9;
  --groen-accent: #4caf50;
  --oranje: #e67e22;
  --oranje-donker: #d35400;
  --wit: #ffffff;
  --grijs-licht: #f5f7f5;
  --grijs-midden: #e0e4e0;
  --tekst: #1a1a2e;
  --tekst-licht: #4a4a5a;
  --link-kleur: #1565c0;
  --link-hover: #0d47a1;
  --focus-ring: #1565c0;

  /* Typografie */
  --font-hoofd: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tekst: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --ruimte-xs: 0.25rem;
  --ruimte-sm: 0.5rem;
  --ruimte-md: 1rem;
  --ruimte-lg: 1.5rem;
  --ruimte-xl: 2rem;
  --ruimte-2xl: 3rem;
  --ruimte-3xl: 4rem;

  /* Schaduw */
  --schaduw-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --schaduw-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --schaduw-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Rand */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Max breedte */
  --max-breedte: 1140px;
}

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

body {
  font-family: var(--font-tekst);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--tekst);
  background-color: var(--wit);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--link-kleur);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

/* Focus — WCAG toegankelijkheid */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--ruimte-md);
  background: var(--groen-donker);
  color: var(--wit);
  padding: var(--ruimte-sm) var(--ruimte-md);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 var(--ruimte-lg);
}

/* --- Header (2 levels) --- */
.site-header {
  background: var(--wit);
  border-bottom: 1px solid var(--grijs-midden);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--schaduw-sm);
}

/* Level 1: logo + zoekbalk */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ruimte-sm) var(--ruimte-lg);
  max-width: var(--max-breedte);
  margin: 0 auto;
}

/* Level 2: navigatiebalk */
.header-nav {
  background: var(--groen-donker);
  padding: 0 var(--ruimte-lg);
  max-width: var(--max-breedte);
  margin: 0 auto;
}

.header-nav .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav .nav-list {
  display: flex;
  list-style: none;
  gap: var(--ruimte-sm);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.header-nav .nav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.header-nav .nav-list a {
  display: block;
  padding: var(--ruimte-sm) var(--ruimte-md);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.header-nav .nav-list a:hover,
.header-nav .nav-list a[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--wit);
}

.header-nav .nav-list a:visited {
  color: rgba(255, 255, 255, 0.9);
}

/* Dropdown in level 2 */

.header-nav .nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--wit);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-md);
  box-shadow: var(--schaduw-lg);
  min-width: 240px;
  padding: var(--ruimte-sm) 0;
  z-index: 100;
}

.header-nav .nav-item:hover .nav-dropdown,
.header-nav .nav-item:focus-within .nav-dropdown {
  display: block;
}

.header-nav .nav-dropdown a {
  padding: var(--ruimte-sm) var(--ruimte-lg);
  border-radius: 0;
  font-size: 0.875rem;
  color: var(--tekst);
}

.header-nav .nav-dropdown a:visited {
  color: var(--tekst);
}

.header-nav .nav-dropdown a:hover {
  background-color: var(--groen-licht);
  color: var(--groen-donker);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--ruimte-sm);
  text-decoration: none;
  color: var(--groen-donker);
  font-weight: 700;
  font-size: 1.25rem;
}

.site-logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

/* --- Zoekbalk (zichtbaar in header) --- */
.zoek-balk {
  display: flex;
  align-items: center;
  margin-left: var(--ruimte-md);
  flex-shrink: 0;
}

.zoek-balk-input {
  padding: var(--ruimte-sm) var(--ruimte-md);
  border: 2px solid var(--grijs-midden);
  border-radius: 50px;
  font-size: 0.875rem;
  font-family: var(--font-tekst);
  width: 200px;
  outline: none;
  transition: border-color 0.2s ease, width 0.3s ease, box-shadow 0.2s ease;
  background: var(--grijs-licht);
  color: var(--tekst);
}

.zoek-balk-input::placeholder {
  color: var(--tekst-licht);
  opacity: 0.7;
}

.zoek-balk-input:focus {
  border-color: var(--groen-midden);
  width: 280px;
  background: var(--wit);
  box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.15);
}

.zoek-balk-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--ruimte-sm);
  color: var(--tekst-licht);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  transition: color 0.2s ease;
}

.zoek-balk-btn:hover {
  color: var(--groen-midden);
}

.zoek-balk-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Zoekresultaten dropdown --- */
.zoek-resultaten {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--wit);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-md);
  box-shadow: var(--schaduw-lg);
  min-width: 340px;
  max-width: 420px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
}

.zoek-resultaat {
  display: block;
  padding: var(--ruimte-sm) var(--ruimte-md);
  text-decoration: none;
  color: var(--tekst);
  border-bottom: 1px solid var(--grijs-licht);
  transition: background 0.15s ease;
}

.zoek-resultaat:last-child {
  border-bottom: none;
}

.zoek-resultaat:hover,
.zoek-resultaat.actief {
  background: var(--groen-licht);
}

.zoek-resultaat-titel {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--groen-donker);
  line-height: 1.3;
}

.zoek-resultaat:hover .zoek-resultaat-titel,
.zoek-resultaat.actief .zoek-resultaat-titel {
  color: var(--groen-donker);
}

.zoek-resultaat-beschrijving {
  display: block;
  font-size: 0.8125rem;
  color: var(--tekst-licht);
  line-height: 1.4;
  margin-top: 2px;
}

.zoek-resultaat mark {
  background: #fff3cd;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.zoek-resultaat-geen {
  padding: var(--ruimte-md);
  color: var(--tekst-licht);
  font-size: 0.9375rem;
  text-align: center;
}

.zoek-resultaat.extern {
  border-left: 3px solid var(--oranje);
}

.zoek-resultaat.extern:hover,
.zoek-resultaat.extern.actief {
  background: #fff8f0;
}

.zoek-resultaat.extern .zoek-resultaat-titel {
  color: var(--oranje);
}

.zoek-resultaat-ext-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 400;
  background: var(--oranje);
  color: var(--wit);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* --- Navigatie (level 2) --- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: var(--ruimte-sm) var(--ruimte-md);
  text-decoration: none;
  color: var(--tekst);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background-color: var(--groen-licht);
  color: var(--groen-donker);
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--wit);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-md);
  box-shadow: var(--schaduw-lg);
  min-width: 220px;
  padding: var(--ruimte-sm) 0;
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  padding: var(--ruimte-sm) var(--ruimte-lg);
  border-radius: 0;
  font-size: 0.875rem;
}

.nav-dropdown a:visited {
  color: var(--tekst);
}

.nav-dropdown a:hover {
  background-color: var(--groen-licht);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--ruimte-sm);
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--tekst);
  position: relative;
  transition: background 0.2s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background: var(--tekst);
  transition: transform 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  bottom: -8px;
}

/* Hamburger open */
.hamburger[aria-expanded="true"] .hamburger-icon {
  background: transparent;
}

.hamburger[aria-expanded="true"] .hamburger-icon::before {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger[aria-expanded="true"] .hamburger-icon::after {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--groen-donker) 0%, var(--groen-midden) 100%);
  color: var(--wit);
  padding: var(--ruimte-3xl) 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-hoofd);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--ruimte-md);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto var(--ruimte-xl);
  opacity: 0.92;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-sm);
  background: var(--oranje);
  color: var(--wit);
  padding: var(--ruimte-md) var(--ruimte-xl);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
  background: var(--oranje-donker);
  color: var(--wit);
  transform: translateY(-1px);
}

/* --- Homepage hero blockquote (originele site stijl) --- */
.hero-blockquote {
  background: linear-gradient(135deg, var(--groen-donker) 0%, var(--groen-midden) 100%);
  color: var(--wit);
  padding: var(--ruimte-3xl) 0;
  text-align: center;
}

.hero-blockquote blockquote {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto;
}

.hero-blockquote blockquote p {
  margin: 0;
}

.hero-blockquote blockquote p::before {
  content: open-quote;
}

.hero-blockquote blockquote p::after {
  content: close-quote;
}

.hero-afbeelding {
  margin-top: var(--ruimte-2xl);
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 7 / 4;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* --- Homepage CTA blockquote --- */
.cta-blockquote {
  border-left: 4px solid var(--oranje);
  padding: var(--ruimte-xl) var(--ruimte-2xl);
  background: var(--grijs-licht);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--ruimte-2xl) 0;
  font-style: italic;
  color: var(--tekst-licht);
  font-size: 1.125rem;
  line-height: 1.7;
}

.cta-blockquote p {
  margin: 0;
}

.cta-blockquote-link {
  display: inline-block;
  margin-top: var(--ruimte-lg);
}

/* --- Secties --- */
.sectie {
  padding: var(--ruimte-3xl) 0;
}

.sectie--grijs {
  background: var(--grijs-licht);
}

.sectie-titel {
  font-family: var(--font-hoofd);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--groen-donker);
  margin-bottom: var(--ruimte-lg);
  line-height: 1.3;
}

.sectie-titel--wit {
  color: var(--wit);
}

/* --- Kaarten --- */
.kaarten-grid {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-sm);
  margin-top: var(--ruimte-lg);
}

.kaart {
  background: var(--grijs-licht);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-sm);
  padding: var(--ruimte-lg);
}

.kaart:hover {
  background: var(--grijs-licht);
}

.kaart-icon {
  font-size: 1.25rem;
  margin-bottom: var(--ruimte-sm);
  line-height: 1;
}

.kaart h3 {
  font-family: var(--font-hoofd);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tekst);
  margin-bottom: var(--ruimte-xs);
}

.kaart p {
  color: var(--tekst-licht);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--ruimte-sm);
}

.kaart-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-xs);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--groen-midden);
  text-decoration: none;
}

.kaart-link:hover {
  color: var(--groen-donker);
}

.kaart-link::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.kaart-link:hover::after {
  transform: translateX(3px);
}

/* --- Accordion (advies-pagina) --- */
.accordion {
  margin-top: var(--ruimte-lg);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-sm);
}

.accordion-item {
  background: var(--grijs-licht);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-sm);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-md);
  padding: var(--ruimte-md) var(--ruimte-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--tekst);
}

.accordion-trigger:hover {
  color: var(--groen-donker);
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--groen-midden);
  outline-offset: 2px;
  border-radius: 2px;
}

.accordion-kop {
  display: flex;
  align-items: center;
  gap: var(--ruimte-sm);
  flex: 1;
  min-width: 0;
}

.accordion-tekst {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.accordion-titel {
  font-family: var(--font-hoofd);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--tekst);
}

.accordion-subtitel {
  font-size: 0.8125rem;
  color: var(--tekst-licht);
}

.accordion-pijl {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.25s ease;
}

.accordion-pijl::before,
.accordion-pijl::after {
  content: '';
  position: absolute;
  background: var(--grijs-midden);
  border-radius: 1px;
}

.accordion-pijl::before {
  width: 8px;
  height: 2px;
  top: 9px;
  left: 3px;
}

.accordion-pijl::after {
  width: 2px;
  height: 8px;
  top: 5px;
  left: 7px;
  transition: transform 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-pijl::after {
  transform: rotate(90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-pijl::before {
  transform: rotate(90deg);
}

.accordion-paneel {
  overflow: hidden;
}

.accordion-inhoud {
  padding: 0 var(--ruimte-lg) var(--ruimte-lg);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-md);
}

.accordion-inhoud img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  max-height: 300px;
}

.accordion-inhoud p {
  color: var(--tekst-licht);
  line-height: 1.7;
}

/* --- Knoppen --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-sm);
  padding: var(--ruimte-md) var(--ruimte-xl);
  border-radius: 50px;
  font-family: var(--font-tekst);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@keyframes btn-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: none;
  pointer-events: none;
}

.btn:hover::after {
  animation: btn-shimmer 0.6s ease;
}

.btn--primair {
  background: var(--groen-midden);
  color: var(--wit);
  border-color: var(--groen-midden);
}

.btn--primair:hover {
  background: var(--groen-donker);
  border-color: var(--groen-donker);
  color: var(--wit);
  box-shadow: 0 4px 16px rgba(45, 138, 78, 0.35);
  transform: translateY(-2px);
}

.btn--secundair {
  background: var(--wit);
  color: var(--groen-midden);
  border-color: var(--groen-midden);
}

.btn--secundair:hover {
  background: var(--groen-licht);
  color: var(--groen-donker);
  box-shadow: 0 4px 16px rgba(45, 138, 78, 0.2);
  transform: translateY(-2px);
}

.btn--oranje {
  background: var(--oranje);
  color: var(--wit);
  border-color: var(--oranje);
}

.btn--oranje:hover {
  background: var(--oranje-donker);
  border-color: var(--oranje-donker);
  color: var(--wit);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.35);
  transform: translateY(-2px);
}

.btn--groot {
  padding: var(--ruimte-md) var(--ruimte-2xl);
  font-size: 1.0625rem;
}

/* --- Gutenberg knoppen --- */
.wp-block-button {
  margin: 0;
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-sm);
  padding: var(--ruimte-md) var(--ruimte-xl);
  border-radius: 50px;
  font-family: var(--font-tekst);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.wp-block-button__link:not(.is-style-outline) {
  background: var(--oranje);
  color: var(--wit);
}

.wp-block-button__link:not(.is-style-outline):hover {
  background: var(--oranje-donker);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.35);
  transform: translateY(-2px);
}

.wp-block-button__link.is-style-outline {
  background: var(--wit);
  color: var(--groen-midden);
  border-color: var(--groen-midden);
}

.wp-block-button__link.is-style-outline:hover {
  background: var(--groen-licht);
  box-shadow: 0 4px 16px rgba(45, 138, 78, 0.2);
  transform: translateY(-2px);
}

.wp-block-button__link:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.wp-block-button__link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.wp-block-button__link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  pointer-events: none;
}

.wp-block-button__link:hover::after {
  animation: btn-shimmer 0.6s ease;
}

/* --- Entrance animatie voor knoppen --- */
@keyframes btn-entrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.knoppen-rij .btn,
.knoppen-rij .wp-block-button__link {
  animation: btn-entrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.knoppen-rij .btn:nth-child(1),
.knoppen-rij .wp-block-button:nth-child(1) .wp-block-button__link {
  animation-delay: 0.1s;
}

.knoppen-rij .btn:nth-child(2),
.knoppen-rij .wp-block-button:nth-child(2) .wp-block-button__link {
  animation-delay: 0.2s;
}

.knoppen-rij .btn:nth-child(3),
.knoppen-rij .wp-block-button:nth-child(3) .wp-block-button__link {
  animation-delay: 0.3s;
}

.knoppen-rij .btn:nth-child(4),
.knoppen-rij .wp-block-button:nth-child(4) .wp-block-button__link {
  animation-delay: 0.4s;
}

.cta-blockquote-link {
  animation: btn-entrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

/* --- Nieuws --- */
.nieuws-lijst {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-lg);
  margin-top: var(--ruimte-lg);
}

.nieuws-item {
  display: flex;
  gap: var(--ruimte-lg);
  background: var(--grijs-licht);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--ruimte-sm);
}

.nieuws-item:hover {
  background: var(--grijs-licht);
}

.nieuws-item-afbeelding {
  width: 200px;
  min-height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.nieuws-item-inhoud {
  padding: var(--ruimte-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nieuws-item-datum {
  font-size: 0.8125rem;
  color: var(--tekst-licht);
  margin-bottom: var(--ruimte-xs);
  font-weight: 500;
}

.nieuws-item-titel {
  font-family: var(--font-hoofd);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--ruimte-sm);
  line-height: 1.4;
}

.nieuws-item-titel a {
  color: var(--tekst);
  text-decoration: none;
}

.nieuws-item-titel a:hover {
  color: var(--groen-midden);
  text-decoration: underline;
}

.nieuws-item-excerpt {
  color: var(--tekst-licht);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--groen-donker) 0%, var(--groen-midden) 100%);
  color: var(--wit);
  padding: var(--ruimte-3xl) 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--ruimte-3xl) 0;
}

.cta-banner h2 {
  font-family: var(--font-hoofd);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: var(--ruimte-md);
}

.cta-banner p {
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto var(--ruimte-xl);
  opacity: 0.92;
  line-height: 1.6;
}

/* --- Tarieven sectie --- */
.tarieven {
  background: var(--grijs-licht);
  padding: var(--ruimte-3xl) 0;
  margin-top: var(--ruimte-2xl);
  border-top: 1px solid var(--grijs-midden);
}

.tarieven h2 {
  text-align: center;
  margin-bottom: var(--ruimte-lg);
}

.tarieven p {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Tabel --- */
.tabel-wrap {
  overflow-x: auto;
  margin: var(--ruimte-2xl) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.tarieven-tabel,
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--ruimte-2xl) 0;
  font-size: 1rem;
}

.tarieven-tabel th,
.tarieven-tabel td,
table th,
table td {
  padding: var(--ruimte-md) var(--ruimte-lg);
  text-align: left;
  border-bottom: 1px solid var(--grijs-midden);
}

.tarieven-tabel th,
table th {
  background: var(--groen-licht);
  color: var(--groen-donker);
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tarieven-tabel tr:hover td,
table tr:hover td {
  background: var(--grijs-licht);
}

/* --- Lijsten --- */
.check-lijst {
  list-style: none;
  padding: 0;
  margin: var(--ruimte-lg) 0;
}

.check-lijst li {
  padding: var(--ruimte-md) 0 var(--ruimte-md) var(--ruimte-2xl);
  position: relative;
  line-height: 1.7;
  border-bottom: 1px solid var(--grijs-midden);
}

.check-lijst li:last-child {
  border-bottom: none;
}

.check-lijst li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--groen-midden);
  font-weight: 700;
  font-size: 1.25rem;
}

/* --- Knoppen rij --- */
.knoppen-rij {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-md);
  margin-top: var(--ruimte-2xl);
  padding-top: var(--ruimte-xl);
  border-top: 1px solid var(--grijs-midden);
}

/* --- Reviews --- */
.review-kaart {
  background: var(--grijs-licht);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-sm);
  padding: var(--ruimte-lg);
  margin-bottom: var(--ruimte-sm);
}

.review-sterren {
  color: var(--oranje);
  font-size: 1.25rem;
  margin-bottom: var(--ruimte-sm);
}

.review-tekst {
  font-style: italic;
  color: var(--tekst-licht);
  line-height: 1.7;
  margin-bottom: var(--ruimte-md);
}

.review-auteur {
  font-weight: 600;
  color: var(--tekst);
  font-size: 0.9375rem;
}

.review-datum {
  font-size: 0.8125rem;
  color: var(--tekst-licht);
}

/* --- Adviseurs --- */
.adviseur-kaart {
  background: var(--grijs-licht);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-sm);
  padding: var(--ruimte-lg);
  text-align: center;
}

.adviseur-kaart:hover {
  background: var(--grijs-licht);
}

.adviseur-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--groen-licht);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--ruimte-md);
  font-size: 2.5rem;
  color: var(--groen-midden);
}

.adviseur-naam {
  font-family: var(--font-hoofd);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--ruimte-xs);
}

.adviseur-rol {
  color: var(--tekst-licht);
  font-size: 0.9375rem;
}

.adviseur-gebied {
  color: var(--groen-midden);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: var(--ruimte-sm);
}

/* --- Stappen --- */
.stappen-lijst {
  counter-reset: stap;
  list-style: none;
  padding: 0;
}

.stappen-lijst li {
  counter-increment: stap;
  padding: var(--ruimte-lg) var(--ruimte-lg) var(--ruimte-lg) 4.5rem;
  position: relative;
  background: var(--wit);
  border-radius: var(--radius-md);
  margin-bottom: var(--ruimte-md);
  box-shadow: var(--schaduw-sm);
  border: 1px solid var(--grijs-midden);
  line-height: 1.6;
}

.stappen-lijst li::before {
  content: counter(stap);
  position: absolute;
  left: var(--ruimte-lg);
  top: var(--ruimte-lg);
  width: 36px;
  height: 36px;
  background: var(--groen-midden);
  color: var(--wit);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* --- Formulier --- */
.formulier {
  max-width: 600px;
}

.formulier-groep {
  margin-bottom: var(--ruimte-lg);
}

.formulier-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--ruimte-sm);
  color: var(--tekst);
  font-size: 0.9375rem;
}

.formulier-label .verplicht {
  color: #c62828;
}

.formulier-input,
.formulier-textarea,
.formulier-select {
  width: 100%;
  padding: var(--ruimte-md);
  border: 2px solid var(--grijs-midden);
  border-radius: var(--radius-sm);
  font-family: var(--font-tekst);
  font-size: 1rem;
  color: var(--tekst);
  background: var(--wit);
  transition: border-color 0.2s ease;
}

.formulier-input:focus,
.formulier-textarea:focus,
.formulier-select:focus {
  border-color: var(--groen-midden);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.15);
}

.formulier-textarea {
  min-height: 150px;
  resize: vertical;
}

.formulier-hulp {
  font-size: 0.8125rem;
  color: var(--tekst-licht);
  margin-top: var(--ruimte-xs);
}

/* --- Footer --- */
.site-footer {
  background: var(--groen-donker);
  color: var(--wit);
  padding: var(--ruimte-3xl) 0 var(--ruimte-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--ruimte-2xl);
  margin-bottom: var(--ruimte-2xl);
}

.footer-sectie h3 {
  font-family: var(--font-hoofd);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--ruimte-md);
}

.footer-sectie p {
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 0.88;
}

.footer-sectie ul {
  list-style: none;
  padding: 0;
}

.footer-sectie ul li {
  margin-bottom: var(--ruimte-sm);
}

.footer-sectie ul a {
  color: var(--wit);
  text-decoration: none;
  opacity: 0.88;
  font-size: 0.9375rem;
  transition: opacity 0.2s ease;
}

.footer-sectie ul a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-onder {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--ruimte-lg);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.75;
}

.footer-social {
  display: flex;
  gap: var(--ruimte-md);
  margin-top: var(--ruimte-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--wit);
  text-decoration: none;
  font-size: 1.125rem;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- Pagina Header --- */
.pagina-header,
.page-header {
  background: linear-gradient(135deg, var(--groen-donker) 0%, var(--groen-midden) 100%);
  padding: var(--ruimte-3xl) 0;
  border-bottom: 1px solid var(--grijs-midden);
}

.pagina-header h1,
.page-header h1 {
  font-family: var(--font-hoofd);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--wit);
  line-height: 1.3;
  max-width: var(--max-breedte);
  margin: 0 auto;
}

/* --- Inhoud --- */
.inhoud {
  padding: var(--ruimte-3xl) 0;
}

.inhoud > .container {
  max-width: var(--max-breedte);
}

.inhoud h2 {
  font-family: var(--font-hoofd);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--groen-donker);
  margin: var(--ruimte-3xl) 0 var(--ruimte-lg);
  line-height: 1.3;
  padding-bottom: var(--ruimte-sm);
  border-bottom: 2px solid var(--groen-licht);
}

.inhoud h2:first-child {
  margin-top: 0;
}

.inhoud h3 {
  font-family: var(--font-hoofd);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tekst);
  margin: var(--ruimte-2xl) 0 var(--ruimte-md);
  line-height: 1.4;
}

.inhoud p {
  margin-bottom: var(--ruimte-lg);
  line-height: 1.8;
}

/* Tekst breedte begrenzen voor leesbaarheid (niet voor nieuws) */
.inhoud:not(:has(.nieuws-lijst)) > .container {
  max-width: 780px;
}

.inhoud:not(:has(.nieuws-lijst)) > div:not(.container):not(.nieuws-lijst) {
  max-width: 780px;
}

.inhoud ul,
.inhoud ol {
  margin-bottom: var(--ruimte-lg);
  padding-left: var(--ruimte-2xl);
}

.inhoud li {
  margin-bottom: var(--ruimte-md);
  line-height: 1.7;
  padding-left: var(--ruimte-sm);
}

.inhoud .check-lijst {
  padding: 0;
}

.inhoud .check-lijst li {
  padding: var(--ruimte-md) 0 var(--ruimte-md) var(--ruimte-2xl);
}

.inhoud .check-lijst li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--groen-midden);
  font-weight: 700;
  font-size: 1.25rem;
}

.inhoud blockquote {
  border-left: 4px solid var(--groen-midden);
  padding: var(--ruimte-xl) var(--ruimte-2xl);
  background: var(--groen-licht);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--tekst);
  margin: var(--ruimte-2xl) 0;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.inhoud strong {
  font-weight: 600;
  color: var(--tekst);
}

.inhoud a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.inhoud img {
  border-radius: var(--radius-md);
  margin: var(--ruimte-xl) 0;
}

.afbeelding-onderschrift {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--tekst-licht);
  font-style: italic;
  margin-top: calc(-1 * var(--ruimte-md));
  margin-bottom: var(--ruimte-xl);
}

/* --- Info blok --- */
.info-blok {
  background: #f8f9fa;
  border-left: 3px solid var(--groen-midden);
  padding: var(--ruimte-lg) var(--ruimte-xl);
  border-radius: 0;
  margin: var(--ruimte-xl) 0;
}

.info-blok p:last-child {
  margin-bottom: 0;
}

/* --- Lead tekst --- */
.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--tekst);
  font-weight: 400;
  margin-bottom: var(--ruimte-2xl);
  padding-bottom: var(--ruimte-xl);
  border-bottom: 1px solid var(--grijs-midden);
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--ruimte-2xl);
  align-items: start;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--ruimte-xl);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .nieuws-item {
    flex-direction: column;
  }

  .nieuws-item-afbeelding {
    width: 100%;
    min-height: 200px;
    max-height: 220px;
  }
}

@media (max-width: 768px) {
  .zoek-balk {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .header-nav {
    display: none;
  }

  .header-nav.open {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--wit);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 5rem var(--ruimte-xl) var(--ruimte-xl);
    overflow-y: auto;
    max-width: none;
  }

  .header-nav.open .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav.open .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .header-nav.open .nav-list a {
    width: 100%;
    padding: var(--ruimte-md);
    font-size: 1rem;
    color: var(--tekst);
    border-bottom: 1px solid var(--grijs-midden);
    border-radius: 0;
    background: none;
  }

  .header-nav.open .nav-list a:hover,
  .header-nav.open .nav-list a[aria-current="page"] {
    background-color: var(--groen-licht);
    color: var(--groen-donker);
  }

  .header-nav.open .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0 var(--ruimte-lg);
    display: none;
  }

  .header-nav.open .nav-item--open .nav-dropdown,
  .header-nav.open .nav-item:hover .nav-dropdown,
  .header-nav.open .nav-item:focus-within .nav-dropdown {
    display: block;
  }

  .header-nav.open .nav-dropdown a {
    font-size: 0.9375rem;
    padding: var(--ruimte-sm) var(--ruimte-md);
    color: var(--tekst-licht);
  }

  .hero {
    padding: var(--ruimte-2xl) 0;
  }

  .sectie {
    padding: var(--ruimte-2xl) 0;
  }

  .kaarten-grid {
    gap: 0;
  }

  .accordion-trigger {
    padding: var(--ruimte-md) 0;
  }

  .accordion-inhoud {
    padding: 0 var(--ruimte-lg) var(--ruimte-lg);
  }

  .accordion-titel {
    font-size: 1rem;
  }

  /* Mobile leesbaarheid */
  body {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .inhoud p {
    line-height: 1.75;
    margin-bottom: var(--ruimte-xl);
  }

  .inhoud li {
    line-height: 1.7;
  }

  .pagina-header,
  .page-header {
    padding: var(--ruimte-2xl) 0;
  }

  .pagina-header h1,
  .page-header h1 {
    font-size: 1.5rem;
  }
}

/* --- Overlays voor mobiele nav --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.nav-overlay.open {
  display: block;
}

/* --- Voordeel-balk --- */
.voordelen-balk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ruimte-lg);
  padding: var(--ruimte-xl) 0;
}

.voordeel {
  display: flex;
  align-items: flex-start;
  gap: var(--ruimte-md);
}

.voordeel-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--groen-licht);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.voordeel-tekst h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.voordeel-tekst p {
  font-size: 0.8125rem;
  color: var(--tekst-licht);
  line-height: 1.5;
}

/* --- Woordenboek-hulpknop --- */
.hulp-knop {
  position: fixed;
  bottom: var(--ruimte-lg);
  right: var(--ruimte-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--oranje);
  color: var(--wit);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--schaduw-lg);
  z-index: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hulp-knop:hover,
.hulp-knop:focus-visible {
  background: var(--oranje-donker);
  transform: scale(1.05);
}

.hulp-panel {
  position: fixed;
  bottom: calc(var(--ruimte-lg) + 60px);
  right: var(--ruimte-lg);
  width: 340px;
  max-height: 60vh;
  background: var(--wit);
  border: 1px solid var(--grijs-midden);
  border-radius: var(--radius-md);
  box-shadow: var(--schaduw-lg);
  z-index: 500;
  overflow-y: auto;
  padding: var(--ruimte-lg);
  display: none;
}

.hulp-panel.open {
  display: block;
}

.hulp-panel h2 {
  font-size: 1.125rem;
  margin: 0 0 var(--ruimte-md);
  color: var(--groen-donker);
}

.hulp-panel dl {
  margin: 0;
}

.hulp-panel dt {
  font-weight: 600;
  color: var(--groen-donker);
  margin-top: var(--ruimte-sm);
  font-size: 0.9375rem;
}

.hulp-panel dd {
  margin: 0 0 var(--ruimte-sm);
  font-size: 0.875rem;
  color: var(--tekst);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .hulp-panel {
    right: var(--ruimte-sm);
    left: var(--ruimte-sm);
    width: auto;
    bottom: calc(var(--ruimte-lg) + 60px);
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .skip-link {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
