:root {
  --ink: #172126;
  --muted: #5f6c70;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --line: rgba(23, 33, 38, 0.14);
  --accent: #145f68;
  --accent-strong: #0c424a;
  --accent-soft: #dcecef;
  --warm: #f1c36f;
  --shadow: 0 18px 50px rgba(24, 37, 41, 0.11);
  --radius: 1.35rem;
  --max: 1180px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #111;
  border-radius: 0.5rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner,
.container {
  width: min(calc(100% - 2.2rem), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 4.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 0.7rem 0.7rem 0.7rem 0.18rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
}

.brand-context {
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desktop-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav-group {
  position: relative;
}

.desktop-nav-group > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
}

.desktop-nav-group > summary::-webkit-details-marker,
.mobile-nav-group > summary::-webkit-details-marker {
  display: none;
}

.desktop-nav-group > summary::after {
  width: 0.38rem;
  height: 0.38rem;
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 160ms ease;
}

.desktop-nav-group[open] > summary::after {
  transform: translateY(0.1rem) rotate(225deg);
}

.desktop-nav-group > summary:hover,
.desktop-nav-group > summary.is-current,
.desktop-nav-group[open] > summary {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.desktop-submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 70;
  min-width: 14.5rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.desktop-submenu a {
  padding: 0.62rem 0.72rem;
  border-radius: 0.55rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 680;
  text-decoration: none;
}

.desktop-submenu a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

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

.portal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.portal-hero::before,
.portal-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.portal-hero::before {
  width: 32rem;
  height: 32rem;
  top: -18rem;
  right: -8rem;
  background: rgba(54, 154, 161, 0.18);
}

.portal-hero::after {
  width: 21rem;
  height: 21rem;
  bottom: -14rem;
  left: 6%;
  background: rgba(240, 182, 77, 0.19);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 2px;
  content: "";
  background: var(--accent);
}

.portal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.8vw, 5.9rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.portal-hero .lead {
  max-width: 720px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.portal-hero--image {
  min-height: clamp(36rem, 72vh, 48rem);
  display: grid;
  align-items: end;
  padding: 0;
  color: #fff;
  background: #183c3a;
}

.portal-hero--image::before {
  display: none;
}

.portal-hero--image::after {
  width: auto;
  height: auto;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 24, 25, 0.9) 0%, rgba(7, 24, 25, 0.66) 35%, rgba(7, 24, 25, 0.14) 70%),
    linear-gradient(0deg, rgba(7, 24, 25, 0.42), transparent 42%);
  border-radius: 0;
  filter: none;
}

.portal-hero-media,
.portal-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portal-hero-media img {
  object-fit: cover;
  object-position: center;
}

.portal-hero--image .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(7rem, 14vw, 11rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.portal-hero--image .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.portal-hero--image .eyebrow::before {
  background: var(--warm);
}

.portal-hero--image h1 {
  max-width: 9ch;
  font-size: clamp(3.4rem, 6.8vw, 6.3rem);
}

.portal-hero--image .lead {
  max-width: 34ch;
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
}

.section-block {
  padding: clamp(3.8rem, 8vw, 7rem) 0;
}

.section-block.compact {
  padding-top: 1.5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.portal-card {
  grid-column: span 2;
  min-height: 27rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: #223035;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-card:nth-child(4),
.portal-card:nth-child(5) {
  grid-column: span 3;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 65px rgba(24, 37, 41, 0.18);
}

.portal-card-media {
  position: relative;
  min-height: 15rem;
  flex: 1;
  overflow: hidden;
}

.portal-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(12, 22, 25, 0.62), transparent 65%);
}

.portal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.portal-card:hover img {
  transform: scale(1.025);
}

.portal-card-copy {
  min-height: 12.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.45rem;
  background: var(--card-color, #214e54);
}

.portal-card small {
  opacity: 0.72;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-card h3 {
  margin: 0.38rem 0 0.5rem;
  font-size: 1.38rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.portal-card p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
}

.portal-card .arrow {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 850;
}

.card-zzp { --card-color: #315e55; }
.card-peppol { --card-color: #113a5b; }
.card-energie { --card-color: #3d6b39; }
.card-subsidies { --card-color: #8c4c31; }
.card-software { --card-color: #594281; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.principle {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.principle span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
}

.principle h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.02rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Specialist hubs */
.theme-zzp {
  --paper: #f3f1e9;
  --accent: #2e6c5d;
  --accent-strong: #194a3f;
  --accent-soft: #dce9df;
  --warm: #e1a950;
  --radius: 1.15rem;
}

.theme-peppol {
  --paper: #eef4f8;
  --surface: #f8fbfd;
  --ink: #101f2c;
  --muted: #526573;
  --accent: #087da2;
  --accent-strong: #065473;
  --accent-soft: #d7edf4;
  --warm: #57d4f0;
  --radius: 0.6rem;
  --font-display: var(--font-body);
}

.theme-energie {
  --paper: #f2f7ed;
  --ink: #18301b;
  --muted: #5d6f5e;
  --accent: #4f7c39;
  --accent-strong: #315c27;
  --accent-soft: #dfecd7;
  --warm: #edb93f;
  --radius: 2rem;
}

.theme-subsidies {
  --paper: #f7f0e7;
  --ink: #35241d;
  --muted: #725f55;
  --accent: #9b5033;
  --accent-strong: #71351f;
  --accent-soft: #f0dfd2;
  --warm: #dda960;
  --radius: 0.25rem;
  --font-display: Georgia, "Times New Roman", serif;
}

.theme-software {
  --paper: #f3f0f8;
  --ink: #251d34;
  --muted: #6a6178;
  --accent: #6849a2;
  --accent-strong: #473075;
  --accent-soft: #e8def5;
  --warm: #eba84b;
  --radius: 1.6rem;
  --font-display: var(--font-body);
}

.theme-peppol .site-header,
.theme-software .site-header {
  color: #fff;
  background: #102a3d;
  border-color: rgba(255, 255, 255, 0.13);
}

.theme-software .site-header {
  background: #302342;
}

.theme-peppol .brand,
.theme-peppol .desktop-nav-group > summary,
.theme-software .brand,
.theme-software .desktop-nav-group > summary {
  color: #fff;
}

.theme-peppol .brand-context,
.theme-software .brand-context {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.22);
}

.theme-peppol .desktop-nav-group > summary:hover,
.theme-peppol .desktop-nav-group > summary.is-current,
.theme-peppol .desktop-nav-group[open] > summary,
.theme-software .desktop-nav-group > summary:hover,
.theme-software .desktop-nav-group > summary.is-current,
.theme-software .desktop-nav-group[open] > summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hub-hero {
  position: relative;
  min-height: min(72vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #1f3034;
}

.hub-hero picture,
.hub-hero img,
.hub-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub-hero img {
  object-fit: cover;
}

.hub-hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(8, 18, 20, 0.86) 0%, rgba(8, 18, 20, 0.56) 44%, rgba(8, 18, 20, 0.05) 78%),
    linear-gradient(0deg, rgba(8, 18, 20, 0.58), transparent 45%);
}

.theme-subsidies .hub-hero::after {
  background: linear-gradient(90deg, rgba(58, 30, 20, 0.84), rgba(58, 30, 20, 0.46) 46%, transparent 78%),
    linear-gradient(0deg, rgba(35, 18, 12, 0.55), transparent 45%);
}

.theme-software .hub-hero::after {
  background: linear-gradient(90deg, rgba(35, 24, 52, 0.9), rgba(35, 24, 52, 0.48) 48%, transparent 78%),
    linear-gradient(0deg, rgba(35, 24, 52, 0.56), transparent 46%);
}

.hub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.hub-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hub-hero .eyebrow::before {
  background: var(--warm);
}

.hub-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.theme-peppol .hub-hero h1,
.theme-software .hub-hero h1 {
  font-weight: 850;
}

.hub-hero p {
  max-width: 620px;
  margin: 1.15rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.2rem;
  padding: 0.75rem 1.15rem;
  color: var(--accent-strong);
  background: #fff;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.theme-subsidies .button {
  border-radius: 0.2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.intro-grid h2,
.content-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.intro-copy > p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.intro-copy p {
  color: var(--muted);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.topic-chips span {
  padding: 0.45rem 0.72rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.theme-peppol .topic-chips span,
.theme-subsidies .topic-chips span {
  border-radius: 0.15rem;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.question-card {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(30, 45, 40, 0.06);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.question-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.question-card small {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-card h3 {
  margin: 0.6rem 0 0.55rem;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.question-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.question-card b {
  margin-top: auto;
  color: var(--accent-strong);
  font-size: 0.86rem;
}

.content-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.answer-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.answer-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.answer-panel p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.answer-panel p:last-child {
  margin-bottom: 0;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  color: var(--muted);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  font-size: 0.9rem;
}

.site-footer {
  padding: 3.2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-grid p {
  max-width: 540px;
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1rem;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .theme-peppol .menu-toggle,
  .theme-software .menu-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
  }

  .hamburger-icon,
  .hamburger-icon::before,
  .hamburger-icon::after {
    width: 1.25rem;
    height: 2px;
    display: block;
    content: "";
    background: currentColor;
    border-radius: 999px;
  }

  .hamburger-icon {
    position: relative;
  }

  .hamburger-icon::before,
  .hamburger-icon::after {
    position: absolute;
    left: 0;
  }

  .hamburger-icon::before {
    top: -0.38rem;
  }

  .hamburger-icon::after {
    top: 0.38rem;
  }

  .mobile-menu[open] {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 5rem 1.25rem 2rem;
    color: #fff;
    background: color-mix(in srgb, var(--accent-strong) 72%, #071013);
    border: 0;
  }

  .mobile-menu::backdrop {
    background: rgba(5, 10, 12, 0.78);
  }

  .menu-close {
    position: fixed;
    top: 0.7rem;
    right: max(0.7rem, calc((100vw - var(--max)) / 2));
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
  }

  .menu-close-icon {
    position: relative;
    width: 1.35rem;
    height: 1.35rem;
  }

  .menu-close-icon::before,
  .menu-close-icon::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1.35rem;
    height: 2px;
    content: "";
    background: currentColor;
    border-radius: 999px;
  }

  .menu-close-icon::before {
    transform: rotate(45deg);
  }

  .menu-close-icon::after {
    transform: rotate(-45deg);
  }

  .mobile-menu-nav {
    width: min(100%, 36rem);
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    text-align: center;
    scrollbar-width: thin;
  }

  .mobile-home-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-nav-groups {
    display: grid;
    gap: 0.15rem;
  }

  .mobile-nav-group {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-nav-group > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.58rem 0.25rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 5.8vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    list-style: none;
  }

  .mobile-nav-group > summary::after {
    width: 1.4rem;
    content: "+";
    color: var(--warm);
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 400;
  }

  .mobile-nav-group[open] > summary::after {
    content: "−";
  }

  .mobile-nav-group > summary.is-current {
    color: #fff;
  }

  .mobile-submenu {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0 0.8rem;
  }

  .mobile-submenu a {
    padding: 0.34rem 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.96rem;
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-submenu a:hover,
  .mobile-submenu a:focus-visible {
    color: #fff;
  }

  body.menu-open {
    overflow: hidden;
  }

  .section-heading,
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .portal-card,
  .portal-card:nth-child(4),
  .portal-card:nth-child(5) {
    grid-column: span 3;
  }

  .principles,
  .question-grid {
    grid-template-columns: 1fr 1fr;
  }

  .question-card:last-child {
    grid-column: 1 / -1;
  }

  .answer-panel {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .container {
    width: min(calc(100% - 1.35rem), var(--max));
  }

  .header-inner {
    min-height: 4.2rem;
  }

  .brand-context {
    display: none;
  }

  .portal-hero {
    padding-top: 4.25rem;
  }

  .portal-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .portal-hero--image {
    min-height: calc(100svh - 4.2rem);
    padding: 0;
  }

  .portal-hero--image::after {
    background: linear-gradient(0deg, rgba(7, 24, 25, 0.92) 0%, rgba(7, 24, 25, 0.56) 48%, rgba(7, 24, 25, 0.08) 82%);
  }

  .portal-hero--image .container {
    padding-top: 12rem;
    padding-bottom: 6rem;
  }

  .portal-hero--image h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .portal-hero--image .lead {
    margin-top: 0.85rem;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card,
  .portal-card:nth-child(4),
  .portal-card:nth-child(5) {
    grid-column: 1;
    min-height: 0;
  }

  .portal-card-media {
    min-height: 13rem;
    aspect-ratio: 5 / 4;
  }

  .portal-card-copy {
    min-height: 11.5rem;
  }

  .principles,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .question-card:last-child {
    grid-column: auto;
  }

  .hub-hero {
    min-height: 38rem;
  }

  .hub-hero::after,
  .theme-subsidies .hub-hero::after,
  .theme-software .hub-hero::after {
    background: linear-gradient(0deg, rgba(8, 18, 20, 0.9), rgba(8, 18, 20, 0.35) 70%, rgba(8, 18, 20, 0.1));
  }

  .hub-hero-content {
    padding-bottom: 2.4rem;
  }

  .hub-hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.4rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Advertenties */
.ad-zone {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.ad-shell {
  width: 100%;
  overflow: hidden;
}

.ad-slot {
  width: 100%;
  display: grid;
  place-items: center;
}

.ad-slot--leaderboard,
.ad-slot--inline {
  min-height: 250px;
}

.ad-slot--vertical {
  min-height: 600px;
}

.adsbygoogle {
  width: 100%;
  height: 100%;
}

/* Artikelpagina en vaste inhoudsopgave */
.article-page {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 7rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.article-body {
  min-width: 0;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h1 {
  max-width: 16ch;
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.article-body h2 {
  margin: clamp(3rem, 7vw, 5.4rem) 0 1rem;
  scroll-margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.article-body p,
.article-body ul,
.article-body ol {
  max-width: 72ch;
}

.article-body .ad-shell--inline {
  max-width: 970px;
  margin: 1.6rem 0 2.5rem;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-breadcrumbs a {
  color: var(--accent-strong);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.article-meta {
  margin: -0.35rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-lead {
  margin: 0 0 1.8rem;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.article-summary,
.article-example,
.article-note,
.article-related {
  max-width: 72ch;
  padding: clamp(1.15rem, 2.5vw, 1.7rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.75);
}

.article-summary {
  margin: 1.8rem 0 0;
  border-left: 5px solid var(--accent);
}

.article-summary > strong,
.article-note > strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-summary p,
.article-note p {
  margin: 0.45rem 0 0;
}

.article-body h3 {
  max-width: 72ch;
  margin: 2rem 0 0.45rem;
  font-size: clamp(1.16rem, 2vw, 1.38rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-body code {
  padding: 0.12rem 0.32rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 0.3rem;
  font-size: 0.92em;
}

.article-body li + li {
  margin-top: 0.55rem;
}

.article-checklist,
.article-steps {
  padding-left: 1.35rem;
}

.article-checklist--final {
  padding: 1.4rem 1.4rem 1.4rem 3rem;
  background: color-mix(in srgb, var(--accent-soft) 58%, transparent);
  border-radius: calc(var(--radius) * 0.75);
}

.article-steps li {
  padding-left: 0.25rem;
}

.article-example {
  margin: 1.4rem 0;
  overflow-x: auto;
}

.article-example table {
  width: 100%;
  border-collapse: collapse;
}

.article-example th,
.article-example td {
  padding: 0.65rem 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-example tr:last-child th,
.article-example tr:last-child td {
  border-bottom: 0;
}

.article-example td {
  padding-left: 1rem;
  text-align: right;
  white-space: nowrap;
}

.article-note {
  margin: 1.6rem 0;
  background: var(--accent-soft);
  border: 0;
}

.article-related {
  margin-top: 4.5rem;
  background: color-mix(in srgb, var(--surface) 74%, var(--accent-soft));
}

.article-related h2 {
  margin-top: 0;
}

.article-body a:not(.article-breadcrumbs a) {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18rem;
}

.article-sidebar-inner {
  position: sticky;
  top: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.article-sidebar {
  align-self: stretch;
}

.article-toc {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(24, 37, 41, 0.06);
}

.article-toc h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.2rem;
}

.article-toc a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* Delen */
.share-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 18;
  display: grid;
  gap: 0.65rem;
}

.share-action {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(23, 33, 38, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.share-action:hover {
  background: var(--accent-soft);
}

.share-action--whatsapp {
  color: #12633b;
}

.share-action svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: currentColor;
}

@media (max-width: 1060px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 2rem;
  }

  .share-dock {
    right: 1.25rem;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }

  .share-dock {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.45rem max(0.55rem, env(safe-area-inset-right)) calc(0.45rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 -8px 28px rgba(23, 33, 38, 0.12);
    backdrop-filter: blur(12px);
  }

  .share-action {
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 0.82rem;
  }

  .share-action + .share-action {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .ad-zone {
    padding: 1rem 0 1.5rem;
  }

  .ad-slot--leaderboard,
  .ad-slot--inline {
    width: min(100%, 336px);
    min-height: 280px;
    margin-inline: auto;
  }

  .article-page {
    padding-top: 2.4rem;
  }

  .article-body h1 {
    font-size: clamp(2.5rem, 13vw, 3.6rem);
  }

  .article-body .ad-shell--inline {
    margin: 1.35rem 0 2.25rem;
  }

  .article-lead {
    font-size: 1.08rem;
  }

  .article-summary,
  .article-example,
  .article-note,
  .article-related {
    padding: 1rem;
  }

  .article-checklist--final {
    padding: 1.15rem 1.15rem 1.15rem 2.6rem;
  }
}
