/**
 * Berekenenhulp.nl – Fintech-app styling (2026)
 * Professionele financiële webapplicatie-uitstraling
 * Max 1200px, wit + lichtgrijze secties, teal CTA, Inter
 */

:root {
  --color-bg: #FFFFFF;
  --color-primary: #013472;
  /* Accent voldoet aan WCAG AA contrast: links op wit en witte tekst op knop ≥4,5:1 */
  --color-accent: #006b85;
  --color-accent-hover: #005a70;
  --color-soft: #F3F5F7;
  --color-soft-bg: #f7f9fb;
  --color-text: #1C1E21;
  /* Iets donkerder muted voor voldoende contrast op wit en op .tool-section--gray */
  --color-text-muted: #4a4d52;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --tool-page-max-width: 1280px;
  --header-height: 72px;
  --radius: 14px;
  --radius-sm: 10px;
  --section-padding-y: 80px;
  --shadow: 0 4px 20px rgba(1, 52, 114, 0.08);
  --shadow-md: 0 8px 32px rgba(1, 52, 114, 0.12);
  --shadow-lg: 0 16px 48px rgba(1, 52, 114, 0.14);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Links herkenbaar door onderstreping én kleur (WCAG: niet alleen kleur) */
a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: underline;
}

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

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: var(--color-soft-bg);
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(1, 52, 114, 0.06);
  word-break: break-word;
  min-width: 0;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumbs__sep {
  margin: 0 0.35rem;
}

/* --- Topbar --- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(1, 52, 114, 0.06);
  border-bottom: 3px solid var(--color-accent);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  overflow: visible;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  height: 42px;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.site-logo:hover {
  color: var(--color-accent);
  text-decoration: none;
  opacity: 0.92;
}

.site-logo img {
  display: block;
  width: 140px;
  height: auto;
  min-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 1;
  min-width: 0;
}

.site-nav a {
  padding: 0.5rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-accent);
  background: rgba(0, 107, 133, 0.08);
  text-decoration: none;
}

/* --- Header zoekbalk (desktop) --- */
.header-search--desktop {
  flex: 1;
  max-width: 320px;
  margin: 0 1rem;
  position: relative;
}

.header-search--mobile {
  display: none;
}

.header-search__form {
  display: flex;
  align-items: center;
  background: var(--color-soft-bg);
  border: 1px solid rgba(1, 52, 114, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.header-search__input {
  flex: 1;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  border: none;
  background: transparent;
  color: var(--color-text);
}

.header-search__input::placeholder {
  color: var(--color-text-muted);
}

.header-search__input:focus {
  outline: none;
}

.header-search__btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search__btn:hover {
  color: var(--color-accent);
}

.header-search__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(1, 52, 114, 0.08);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
}

.header-search__results[aria-hidden="true"] {
  display: none;
}

.header-search__results a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-soft);
  text-decoration: none;
}

.header-search__results a:hover,
.header-search__results a:focus {
  background: var(--color-soft-bg);
  color: var(--color-accent);
  text-decoration: none;
}

.header-search__results a:last-child {
  border-bottom: none;
}

/* Mobiel: zoekicoon toont, desktop zoekbalk verbergen; uitklapbare zoekbalk */
.header-search__toggle {
  display: none;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.header-search__toggle {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.header-search__toggle:hover {
  color: var(--color-accent);
  background: rgba(0, 150, 183, 0.08);
}

/* Hamburger: alleen zichtbaar op mobiel */
.header-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.header-nav-toggle:hover {
  color: var(--color-accent);
  background: rgba(0, 150, 183, 0.08);
}

.header-nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.header-nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hamburger → X wanneer open */
.site-header.nav-is-open .header-nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-is-open .header-nav-toggle__line:nth-child(2) {
  opacity: 0;
}
.site-header.nav-is-open .header-nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header-search--desktop {
    display: none;
  }

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

  .header-search--mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(1, 52, 114, 0.08);
    z-index: 99;
  }

  .header-search--mobile.is-open {
    display: block;
  }

  .header-search--mobile .header-search__form {
    width: 100%;
  }

  .header-search--mobile .header-search__results {
    position: relative;
    max-height: 240px;
  }

  /* Mobiel: hamburger tonen, nav in drawer */
  .header-nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(1, 52, 114, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s, visibility 0.2s;
    z-index: 98;
  }

  .site-header.nav-is-open .site-nav {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    min-height: 48px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-soft);
    font-size: 1rem;
    white-space: normal;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }
}

/* Kleine telefoons (360px–400px): header compacter */
@media (max-width: 400px) {
  .site-header__inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .site-logo img {
    width: 120px;
    height: auto;
  }
}

/* --- Main content: veel witruimte --- */
.main-content {
  flex: 1 0 auto;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
}

.main-content:has(.tool-page) {
  max-width: var(--tool-page-max-width);
}

@media (max-width: 400px) {
  .main-content {
    padding: 0 1rem;
  }
}

/* ========== HERO: links tekst, rechts calculator-mockup ========== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: var(--section-padding-y) 0;
  min-height: 0;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: calc(var(--section-padding-y) + 20px) 0;
  }
}

.hero__content {
  order: 1;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__intro {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.hero__cta .btn {
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 150, 183, 0.35);
}

.hero__cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.hero__cta-wrap .btn {
  text-decoration: none;
}

.hero__cta-wrap .btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: rgba(1, 52, 114, 0.06);
  color: var(--color-primary);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero__trust {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(1, 52, 114, 0.1);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero__trust-item {
  margin-bottom: 0.35rem;
}

.hero__trust-item:last-child {
  margin-bottom: 0;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.hero__stars {
  display: inline-block;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #e6b800;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.hero__rating-text {
  color: var(--color-primary);
}

.hero__rating--section .hero__stars {
  font-size: 1.5rem;
}

.hero__rating--section {
  font-size: 1.15rem;
}

.hero__cta .btn:hover {
  box-shadow: 0 6px 24px rgba(0, 150, 183, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Calculator mockup card (rechts) */
.hero__visual {
  order: 2;
}

.calc-mockup {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  border: 1px solid rgba(1, 52, 114, 0.06);
  max-width: 360px;
  margin: 0 auto;
}

.calc-mockup__title {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.calc-mockup__field {
  margin-bottom: 1rem;
}

.calc-mockup__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.calc-mockup__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  border: 1px solid rgba(1, 52, 114, 0.15);
  border-radius: 8px;
  background: var(--color-soft-bg);
  color: var(--color-text);
}

.calc-mockup__input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.calc-mockup__btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 150, 183, 0.3);
}

.calc-mockup__select {
  appearance: auto;
  cursor: pointer;
}

.calc-mockup__result {
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(0, 150, 183, 0.08);
  border-radius: 8px;
  min-height: 2.5rem;
}

.calc-mockup__result--filled {
  border: 1px solid rgba(0, 150, 183, 0.2);
}

.calc-mockup__result--hint {
  font-weight: 400;
  color: var(--color-text-muted);
  background: transparent;
}

.calc-mockup__link {
  display: block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.calc-mockup__link:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
}

/* ========== Secties: 80px boven/onder, lichtgrijze vlakken --- */
.page-section {
  padding: var(--section-padding-y) 0;
}

.page-section--gray {
  background: var(--color-soft-bg);
  /* Full-bleed: grijze achtergrond over volledige viewportbreedte */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  box-sizing: border-box;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-header__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.section-header__lead {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== Populaire berekeningen: kaarten met icoon + hover --- */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(1, 52, 114, 0.06);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
}

.popular-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(0, 150, 183, 0.2);
  color: inherit;
  text-decoration: none;
}

.popular-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(0, 150, 183, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-card__icon svg {
  width: 24px;
  height: 24px;
}

.popular-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
}

.popular-card__desc {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.popular-card__micro {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
}

.popular-card:hover .popular-card__title {
  color: var(--color-accent);
}

.popular-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.popular-card__badge--meest {
  background: var(--color-accent);
  color: #fff;
}

.popular-card__badge--nieuw {
  background: var(--color-primary);
  color: #fff;
}

.popular-card {
  position: relative;
  padding-top: 1.5rem;
}

/* ========== Categorieën: grote kaarten, veel ruimte --- */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.category-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(1, 52, 114, 0.06);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(0, 150, 183, 0.2);
  color: inherit;
  text-decoration: none;
}

.category-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.category-card:hover .category-card__title {
  color: var(--color-accent);
}

.category-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.category-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(0, 150, 183, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__icon svg {
  width: 24px;
  height: 24px;
}

/* ========== USPs: 4 blokken naast elkaar met icoon --- */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .usp-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.usp-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(1, 52, 114, 0.06);
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.usp-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.usp-block__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  background: rgba(0, 150, 183, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-block__icon svg {
  width: 28px;
  height: 28px;
}

.usp-block__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.usp-block__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========== Hoe het werkt (3 stappen) --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    position: relative;
  }
}

.step-block {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid rgba(1, 52, 114, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.step-block:hover {
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .step-block:hover {
    transform: translateY(-2px);
  }
}

.step-block__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 150, 183, 0.35);
}

.step-block__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.step-block__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.steps-cta {
  text-align: center;
  margin-top: 2rem;
}

.steps-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.steps-cta a:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

/* ========== Laatste updates --- */
.updates-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.updates-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(1, 52, 114, 0.08);
}

.updates-list li:last-child {
  border-bottom: none;
}

.updates-list__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.updates-list a {
  font-size: 0.9375rem;
  color: var(--color-primary);
  font-weight: 500;
}

.updates-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ========== E-E-A-T blok --- */
.eeat-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 2.25rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid rgba(1, 52, 114, 0.06);
  border-left: 4px solid var(--color-accent);
}

.eeat-block__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.eeat-block__icon svg {
  width: 100%;
  height: 100%;
}

.eeat-block__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.eeat-block__text {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.65;
}

.eeat-block__text a {
  font-weight: 600;
  text-decoration: none;
}

.eeat-block__text a:hover {
  text-decoration: underline;
}

.eeat-block__links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.eeat-block__links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(0, 150, 183, 0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.eeat-block__links a:hover {
  background: rgba(0, 150, 183, 0.14);
  color: var(--color-accent-hover);
  text-decoration: none;
}

/* ========== Bronnen (overzicht + detail) --- */
.intro-block {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.intro-block p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.bronnen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .bronnen-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.bron-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(1, 52, 114, 0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}

.bron-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bron-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bron-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.bron-card__extern {
  font-size: 0.8125rem;
  font-weight: 600;
}

.bron-card__summary {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.bron-card__meta {
  margin: 0 0 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(1, 52, 114, 0.06);
  border-bottom: 1px solid rgba(1, 52, 114, 0.06);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
}

.bron-card__meta-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.bron-card__meta-value {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text);
}

.bron-card__calc-title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.bron-card__calc-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.bron-card__calc-list li {
  margin-bottom: 0.2rem;
}

.bron-card__calc-list a:hover {
  text-decoration: none;
}

/* CTA onderaan bronnen-overzicht */
.bron-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(1, 52, 114, 0.08);
}

.bron-cta__title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.bron-cta__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.bron-cta__list li {
  margin: 0;
}

.bron-cta__list a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.bron-cta__list a:hover {
  text-decoration: none;
}

/* Bronkaart (mini-kaart bovenaan detailpagina) */
.bron-kaart {
  background: var(--color-soft-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(1, 52, 114, 0.08);
}

.bron-kaart__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(1, 52, 114, 0.06);
}

.bron-kaart__row:last-child {
  border-bottom: none;
}

.bron-kaart__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 140px;
}

.bron-kaart__value {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.bron-kaart__link {
  font-size: 0.9375rem;
  font-weight: 500;
}

.page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.bron-detail__intro {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.bron-detail__h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.bron-detail__list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  line-height: 1.6;
}

.bron-detail__kvk {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-soft-bg);
  border-radius: 6px;
  max-width: 32rem;
}

.bron-detail__kvk dt {
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.bron-detail__kvk dt:first-child {
  margin-top: 0;
}

.bron-detail__kvk dd {
  margin: 0.2rem 0 0;
  padding-left: 0;
  line-height: 1.5;
}

.contact-email-wrap {
  margin: 0.5rem 0 1rem;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.contact-email:hover {
  text-decoration: underline;
}

.bron-detail__links {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  list-style: none;
}

.bron-detail__links li {
  margin-bottom: 0.35rem;
}

.bron-detail__links a:hover {
  text-decoration: none;
}

.bron-detail__disclaimer {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--color-soft-bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.bron-detail__disclaimer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.55;
}

.bron-detail__contact {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.bron-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.bron-detail__cta a {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.bron-detail__cta a:hover {
  text-decoration: underline;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.error-404-actions .btn {
  display: inline-block;
}

.bron-detail__cta-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.bron-detail__cta-link:hover {
  text-decoration: underline;
}

.bron-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.bron-hero__trust-item {
  margin: 0;
}

.bron-hero__trust-item a {
  color: var(--color-accent);
}

.bron-stappen {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  line-height: 1.65;
}

.bron-stappen li {
  margin-bottom: 0.75rem;
}

/* Sitemap pagina: inklapbare secties */
.sitemap-page .sitemap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.sitemap-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: #fff;
  border: 1px solid rgba(1, 52, 114, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.sitemap-btn:hover {
  background: var(--color-soft-bg);
}

.sitemap-details {
  margin: 0 0 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.sitemap-details[open] {
  background: var(--color-soft-bg);
}

.sitemap-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sitemap-summary::-webkit-details-marker {
  display: none;
}

.sitemap-summary::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.sitemap-details[open] .sitemap-summary::before {
  transform: rotate(45deg);
}

.sitemap-summary__count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.sitemap-list {
  margin: 0;
  padding: 0.75rem 1rem 1rem 1.5rem;
  list-style: none;
}

.sitemap-list li {
  margin-bottom: 0.35rem;
}

.sitemap-list a {
  color: var(--color-text);
  text-decoration: none;
}

.sitemap-list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.sitemap-category {
  padding: 0.75rem 1rem 1rem 1.5rem;
}

.sitemap-category__index {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.sitemap-category__index a {
  font-weight: 600;
  color: var(--color-accent);
}

.faq-list {
  margin: 1rem 0 0;
  padding: 0;
}

.faq-list__q {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-list__q:first-child {
  margin-top: 0;
}

.faq-list__a {
  margin: 0;
  padding: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ========== Vertrouwensblok (klassiek, licht gescheiden) --- */
.trust-section {
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-section .section-header {
  margin-bottom: 1.5rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.trust-item {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(1, 52, 114, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

.trust-item__value {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.trust-item__value--stars {
  font-size: 1.125rem;
}

.trust-item__label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.trust-section .trust-item__label a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.trust-section .trust-item__label a:hover {
  color: var(--color-accent-hover);
}

/* ========== Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* ========== Footer: meerdere kolommen --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0;
  padding: 0;
  font-size: 0.875rem;
  border-top: 3px solid var(--color-accent);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) 1.5rem 2.5rem;
  min-width: 0;
}

@media (max-width: 400px) {
  .footer__inner {
    padding: 2rem 1rem 2rem;
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.footer__col h3 {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.25rem;
}

.footer__col a {
  display: inline-block;
  padding: 0.5rem 0;
  min-height: 44px;
  line-height: 1.4;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer__copy-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.footer__copy-link:hover {
  color: #fff;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.footer__made {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.85;
  text-align: right;
}

.footer__update {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* ========== Toolpagina (BTW etc.) --- */
.tool-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
  max-width: var(--tool-page-max-width);
  margin-left: auto;
  margin-right: auto;
}

.tool-hero {
  margin-bottom: 1.5rem;
}

.tool-hero--compact {
  margin-bottom: 1rem;
}

.tool-hero--compact .tool-hero__intro {
  margin-bottom: 0.35rem;
}

.tool-hero--compact .tool-hero__micro {
  margin-bottom: 0;
}

.tool-hero__meta {
  margin: 1.5rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(1, 52, 114, 0.08);
}

.tool-hero__meta .tool-hero__jump {
  margin-bottom: 0.75rem;
}

.tool-hero__meta .tool-hero__trust {
  margin-bottom: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.tool-hero__meta .tool-hero__eaat {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(1, 52, 114, 0.06);
}

.tool-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.tool-hero__intro {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.55;
}

.tool-hero__intro-link {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.tool-hero__intro-link a {
  font-weight: 500;
}

.tool-hero__micro {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.tool-hero__outcome {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.tool-hero__jump {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.tool-hero__jump a {
  font-size: 0.875rem;
  font-weight: 500;
}

.tool-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.tool-hero__trust-item a {
  color: var(--color-accent);
}

.tool-hero__eaat {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(1, 52, 114, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.tool-hero__eaat-item strong {
  color: var(--color-text);
}

/* Inline rating trigger in E-E-A-T */
.tool-hero__rating-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.tool-hero__rating-trigger:hover {
  color: var(--color-accent);
}

.tool-hero__rating-stars {
  display: inline-flex;
  gap: 0.05rem;
  line-height: 1;
}

.tool-hero__rating-stars .star {
  font-size: 0.9375rem;
}

.tool-hero__rating-stars .star--full {
  color: #f59e0b;
}

.tool-hero__rating-stars .star--half {
  color: #f59e0b;
  opacity: 0.6;
}

.tool-hero__rating-stars .star--empty {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.tool-hero__rating-count {
  white-space: nowrap;
}

/* Review popup/modal */
.review-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.review-popup[hidden] {
  display: none;
}

.review-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.review-popup__content {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.review-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: var(--color-soft-bg);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.review-popup__close:hover {
  background: var(--color-soft);
  color: var(--color-text);
}

.review-popup__title {
  margin: 0 0 0.25rem;
  padding-right: 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.review-popup__intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.review-popup__summary {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(1, 52, 114, 0.08);
}

.review-popup__summary .tool-reviews__score {
  margin: 0;
}

.review-popup__form-wrap {
  margin-bottom: 1.25rem;
}

.review-popup__form-title,
.review-popup__reviews-title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.review-popup__reviews {
  padding-top: 1rem;
  border-top: 1px solid rgba(1, 52, 114, 0.08);
}

.review-popup__reviews .tool-reviews__list {
  margin: 0;
  padding: 0;
  border: none;
  max-height: 200px;
  overflow-y: auto;
}

/* Direct antwoord (featured snippet / boven de vouw) */
.tool-direct-answer {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-soft-bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.tool-direct-answer__example,
.tool-direct-answer__formule {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
}

.tool-direct-answer__formule {
  margin-bottom: 0.25rem;
}

.tool-direct-answer__list {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.tool-direct-answer__list li {
  margin-bottom: 0.15rem;
}

.tool-direct-answer__terug {
  margin-top: 0.35rem;
}

.tool-section__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.tool-section__list li {
  margin-bottom: 0.35rem;
}

/* Beoordelingen widget (shared) */
.tool-reviews {
  max-width: 560px;
}

.tool-reviews__summary {
  margin-bottom: 0.75rem;
}

.tool-reviews__details {
  margin-top: 0.5rem;
  border: 1px solid rgba(1, 52, 114, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tool-reviews__details-summary {
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  background: var(--color-soft-bg);
}

.tool-reviews__details-summary::-webkit-details-marker {
  display: none;
}

.tool-reviews__details-summary::after {
  content: ' +';
  color: var(--color-accent);
}

.tool-reviews__details[open] .tool-reviews__details-summary::after {
  content: ' −';
}

.tool-reviews__details .tool-reviews__form-wrap,
.tool-reviews__details .tool-reviews__list {
  padding: 1rem;
  border-top: 1px solid rgba(1, 52, 114, 0.08);
}

.tool-reviews__score {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

.tool-reviews__stars,
.tool-reviews__stars-outline {
  color: var(--color-accent);
}

.tool-reviews__form-wrap {
  margin-bottom: 1.5rem;
}

.tool-reviews__form-title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.tool-reviews__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-reviews__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tool-reviews__stars-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
  align-items: center;
}

.tool-reviews__star-label {
  cursor: pointer;
  padding: 0.15rem;
  display: block;
}

.tool-reviews__star-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
}

.tool-reviews__star-icon {
  font-size: 1.75rem;
  color: #d1d5db;
  transition: color 0.15s ease, transform 0.15s ease;
  display: block;
  line-height: 1;
}

/* Hover: highlight this star and all stars after it (visually "before" due to row-reverse) */
.tool-reviews__star-label:hover .tool-reviews__star-icon,
.tool-reviews__star-label:hover ~ .tool-reviews__star-label .tool-reviews__star-icon {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Selected state: highlight checked label and all labels after it */
.tool-reviews__star-label:has(.tool-reviews__star-radio:checked) .tool-reviews__star-icon,
.tool-reviews__star-label:has(.tool-reviews__star-radio:checked) ~ .tool-reviews__star-label .tool-reviews__star-icon {
  color: #f59e0b;
}

/* Keep selected stars highlighted even when hovering lower stars */
.tool-reviews__stars-input:not(:hover) .tool-reviews__star-label:has(.tool-reviews__star-radio:checked) .tool-reviews__star-icon,
.tool-reviews__stars-input:not(:hover) .tool-reviews__star-label:has(.tool-reviews__star-radio:checked) ~ .tool-reviews__star-label .tool-reviews__star-icon {
  color: #f59e0b;
}

.tool-reviews__text {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  border: 1px solid rgba(1, 52, 114, 0.2);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}

.tool-reviews__submit {
  align-self: flex-start;
}

.tool-reviews__message {
  margin: 0;
  font-size: 0.9375rem;
}

.tool-reviews__message--error {
  color: #b91c1c;
}

.tool-reviews__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(1, 52, 114, 0.08);
  padding-top: 1rem;
}

.tool-reviews__item {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.tool-reviews__item-stars {
  color: var(--color-accent);
}

.tool-reviews__item-text {
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.tool-reviews__item-text--muted {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* 2-kolom: calculator links (flexibel), sidebar rechts vast (desktop) */
.tool-calc-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 960px) {
  .tool-calc-wrap {
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
  }
}

.tool-calc {
  min-width: 0;
}

.calc-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(1, 52, 114, 0.16), 0 0 0 1px rgba(0, 150, 183, 0.12);
  border: 1px solid rgba(0, 150, 183, 0.2);
  border-top: 3px solid var(--color-accent);
  overflow: hidden;
  max-width: 520px;
}

@media (min-width: 960px) {
  .tool-calc-wrap .calc-card {
    max-width: none;
    width: 100%;
  }
}

.calc-card__modus {
  display: flex;
  border-bottom: 1px solid var(--color-soft);
}

.calc-card__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.calc-card__tab {
  flex: 1;
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-soft-bg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.calc-card__tab:hover {
  color: var(--color-primary);
}

.calc-card__radio:checked + .calc-card__tab {
  background: #fff;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: -1px;
}

.calc-card__body {
  padding: 1.5rem 1.75rem;
}

.calc-card__field {
  margin-bottom: 1.25rem;
}

.calc-card__field--row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.calc-card__field--row > .calc-card__field {
  flex: 1 1 8rem;
  margin-bottom: 0;
}
.calc-card__field--row {
  margin-bottom: 1.25rem;
}

/* Radio groep (label + radio per optie) */
.calc-card__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.calc-card__radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.calc-card__radio-label:hover {
  color: var(--color-primary);
}

/* Radio zichtbaar in label-groep; blijft verborgen in .calc-card__modus (tab-stijl) */
.calc-card__radio-label .calc-card__radio {
  position: static;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  clip: auto;
  overflow: visible;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.calc-card__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.calc-card__input,
.calc-card__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid rgba(1, 52, 114, 0.2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  box-sizing: border-box;
}

.calc-card__input:focus,
.calc-card__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 107, 133, 0.2);
}

/* Geldbedrag: € voor het invoerveld */
.calc-card__input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(1, 52, 114, 0.2);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.calc-card__input-wrap:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 107, 133, 0.2);
}

.calc-card__input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: #fff;
  flex-shrink: 0;
}

.calc-card__input-wrap .calc-card__input {
  border: none;
  border-radius: 0;
  padding-left: 0.5rem;
  box-shadow: none;
}

.calc-card__input-wrap .calc-card__input:focus {
  box-shadow: none;
}

.calc-card__select {
  cursor: pointer;
  appearance: auto;
}

.calc-card__label--block {
  margin-bottom: 1rem;
}

.calc-card__hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Gemiddelde cijfer: header + rijen met cijfer + weging */
.gemiddelde-rijen-wrap {
  margin-bottom: 1rem;
}

.calc-card__cijfer-row--header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding-left: 0.1rem;
}

.calc-card__cijfer-row--header .calc-card__cijfer-label,
.calc-card__cijfer-row--header .calc-card__weging-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.calc-card__cijfer-row--header .calc-card__cijfer-label {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
}

.calc-card__cijfer-row--header .calc-card__weging-label {
  width: 80px;
  min-width: 80px;
}

.calc-card__row-remove-spacer {
  width: 36px;
  flex-shrink: 0;
}

.gemiddelde-rijen {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-card__cijfer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.calc-card__cijfer-row .calc-card__input--cijfer {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
}

.calc-card__cijfer-row .calc-card__input--weging {
  width: 80px;
  min-width: 80px;
}

.calc-card__row-remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(1, 52, 114, 0.2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calc-card__row-remove:hover {
  background: var(--color-soft-bg);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.calc-card__error {
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
}

.calc-card__result {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--color-soft-bg);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 150, 183, 0.15);
}

.calc-card__result-hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.calc-card__result-rows {
  margin: 0;
}

.calc-card__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
}

.calc-card__result-row--main .calc-card__result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.calc-card__result-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.calc-card__result-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.calc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.calc-card__actions--top {
  margin-top: 0;
  margin-bottom: 1rem;
}

.calc-card__btn {
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(1, 52, 114, 0.2);
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.calc-card__btn:hover {
  background: var(--color-soft-bg);
  color: var(--color-accent);
}

.calc-card__btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.calc-card__btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  border-color: var(--color-accent-hover);
}

.calc-card__btn--secondary {
  border-color: rgba(1, 52, 114, 0.15);
}

.tool-section {
  margin-bottom: 2.5rem;
}

.tool-section__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tool-section p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.tool-section p:last-child {
  margin-bottom: 0;
}

.tool-section--gray {
  padding: 1.5rem;
  background: var(--color-soft-bg);
  border-radius: var(--radius-sm);
}

.formule-block {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.formule-block__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.formule-block__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.voorbeeld-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
}

.tool-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-links li {
  margin-bottom: 0.5rem;
}

.tool-links a {
  font-weight: 500;
}

.tool-links--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.tool-links--inline li {
  margin-bottom: 0;
}

/* Category Trust bar (E-E-A-T op categoriepagina) */
.category-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(1, 52, 114, 0.08);
  border-bottom: 1px solid rgba(1, 52, 114, 0.08);
}

.category-trust-bar__item a {
  color: var(--color-text-muted);
}

.category-trust-bar__item a:hover {
  color: var(--color-accent);
}

.category-trust-bar__disclaimer {
  font-style: italic;
}

/* Sidebar (rechterkolom): sticky op desktop, niet op mobiel */
.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .tool-sidebar {
    position: sticky;
    top: calc(var(--header-height, 72px) + 1rem);
    align-self: start;
    max-height: calc(100vh - var(--header-height, 72px) - 2rem);
    overflow-y: auto;
  }
}

.sidebar-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid rgba(1, 52, 114, 0.08);
  box-shadow: var(--shadow);
}

.sidebar-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
}

.sidebar-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
}

.sidebar-card__list--compact {
  list-style: none;
  padding-left: 0;
}

.sidebar-card__list--compact li {
  margin-bottom: 0.35rem;
}

.sidebar-card__list--short {
  list-style: none;
  padding-left: 0;
}

.sidebar-card__list--short li {
  margin-bottom: 0.25rem;
}

.sidebar-card__link,
.sidebar-card__text {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.sidebar-card__link a,
.sidebar-card__text a {
  font-weight: 500;
}

/* Formules + Voorbeelden naast elkaar (desktop) */
.tool-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .tool-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-two-col .tool-section {
  margin-bottom: 0;
}

/* Tarief 3 blokken */
.tarief-blokken {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tarief-blokken {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tarief-blok {
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
  border: 1px solid rgba(1, 52, 114, 0.08);
  border-left-width: 4px;
}

.tarief-blok__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tarief-blok p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
}

.tarief-blok__bron {
  margin-top: 0.75rem !important;
  font-size: 0.8125rem !important;
}

/* FAQ accordion */
.faq-accordion {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-accordion__item {
  border: 1px solid rgba(1, 52, 114, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.faq-accordion__item:last-child {
  margin-bottom: 0;
}

.faq-accordion__q {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.faq-accordion__q::-webkit-details-marker {
  display: none;
}

.faq-accordion__q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-accordion__item[open] .faq-accordion__q::after {
  content: '−';
}

.faq-accordion__a {
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .calc-card {
    max-width: none;
  }

  .calc-card__body {
    padding: 1.25rem 1rem;
  }

  .calc-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .calc-card__actions--top .calc-card__btn {
    grid-column: 1 / -1;
  }

  .calc-card__actions .calc-card__btn:nth-child(3) {
    grid-column: 1 / -1;
  }

  .calc-card__btn {
    min-height: 48px;
  }
}

/* --- Toegankelijkheid --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  z-index: 200;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
