/* ==========================================================================
   Zonderdia 2.0 — template voor Joomla 4.1+, 5 en 6
   Kleuren en breedte komen uit de template-instellingen (CSS-variabelen in <head>).
   ========================================================================== */

:root {
  --zd-primary: #2e1532;
  --zd-accent: #d2b48c;
  --zd-topbar: #343434;
  --zd-footer: #141014;
  --zd-text: #555555;
  --zd-bg: #ffffff;
  --zd-container: 1200px;
  --zd-logo-h: 56px;

  /* Afgeleide tinten */
  --zd-accent-ink: color-mix(in srgb, var(--zd-accent) 55%, #3b2a12);   /* leesbaar op wit */
  --zd-accent-soft: color-mix(in srgb, var(--zd-accent) 18%, #ffffff);
  --zd-primary-soft: color-mix(in srgb, var(--zd-primary) 7%, #ffffff);
  --zd-heading: var(--zd-primary);
  --zd-border: #e7e3e8;
  --zd-muted: color-mix(in srgb, var(--zd-text) 75%, #ffffff);

  --zd-font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --zd-font-head: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --zd-radius: 10px;
  --zd-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --zd-shadow: 0 1px 2px rgb(20 10 25 / 6%), 0 6px 24px rgb(20 10 25 / 7%);
  --zd-header-h: 84px;

  /* Bootstrap 5-variabelen laten aansluiten op de huisstijl */
  --bs-body-font-family: var(--zd-font-body);
  --bs-body-color: var(--zd-text);
  --bs-body-bg: var(--zd-bg);
  --bs-link-color: var(--zd-primary);
  --bs-link-color-rgb: 46, 21, 50;
  --bs-link-hover-color: var(--zd-accent-ink);
  --bs-border-radius: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--zd-bg);
  color: var(--zd-text);
  font-family: var(--zd-font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--zd-font-head);
  color: var(--zd-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 1.6em 0 0.55em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); margin-top: 0; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1.05rem; }
h1 a, h2 a, h3 a, h4 a { color: inherit; text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--zd-accent-ink); }

p { margin: 0 0 1.1em; }

a {
  color: var(--zd-primary);
  text-decoration-color: color-mix(in srgb, var(--zd-accent) 80%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--zd-accent-ink); text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--zd-accent); outline-offset: 2px; border-radius: 3px; }

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--zd-accent);
  background: var(--zd-accent-soft);
  border-radius: 0 var(--zd-radius) var(--zd-radius) 0;
  font-size: 1.08em;
  color: var(--zd-primary);
}
blockquote p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--zd-border); margin: 2rem 0; opacity: 1; }

table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--zd-border); text-align: left; vertical-align: top; }
th { color: var(--zd-primary); font-family: var(--zd-font-head); font-weight: 600; }

.zd-container {
  width: 100%;
  max-width: var(--zd-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.zd-skip {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--zd-primary); color: #fff; padding: .6rem 1rem; border-radius: 6px;
}
.zd-skip:focus { top: 1rem; color: #fff; }

/* ---------- Topbar ---------- */
.zd-topbar {
  background: var(--zd-topbar);
  color: rgb(255 255 255 / 88%);
  font-size: .875rem;
  line-height: 1.4;
}
.zd-topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; flex-wrap: wrap; padding-block: .4rem;
}
.zd-topbar__contact { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.zd-topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.zd-topbar a:hover { color: var(--zd-accent); }
.zd-topbar .zd-ico { color: var(--zd-accent); flex: none; }
.zd-topbar__modules { display: flex; gap: 1rem; align-items: center; }
.zd-topbar__modules p { margin: 0; }

/* ---------- Header + merk ---------- */
.zd-header {
  background: var(--zd-bg);
  border-bottom: 1px solid var(--zd-border);
  position: relative;
  z-index: 1000;
  transition: box-shadow .2s ease;
}
.has-sticky-header .zd-header { position: sticky; top: 0; }
.zd-header.is-scrolled { box-shadow: 0 6px 24px rgb(20 10 25 / 9%); }

.zd-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--zd-header-h);
}

.zd-brand {
  display: inline-flex; align-items: center; gap: .9rem;
  text-decoration: none; color: var(--zd-primary);
  padding-block: .6rem; min-width: 0;
}
.zd-brand:hover { color: var(--zd-primary); }
.zd-brand__logo { height: var(--zd-logo-h); width: auto; display: block; }
.zd-brand__wrap { display: flex; flex-direction: column; min-width: 0; }
.zd-brand__text {
  font-family: var(--zd-font-head);
  font-size: clamp(1.45rem, 1rem + 1.9vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.zd-brand__accent { color: var(--zd-accent); }
.zd-brand__tagline { font-size: .85rem; color: var(--zd-muted); margin-top: .25rem; letter-spacing: .02em; }

/* ---------- Hoofdmenu (core mod_menu, geen override nodig) ---------- */
.zd-nav ul { list-style: none; margin: 0; padding: 0; }
.zd-nav .mod-menu { --bs-nav-link-padding-x: 0; }
.zd-nav a,
.zd-nav .mod-menu__separator,
.zd-nav .mod-menu__heading,
.zd-nav .nav-header,
.zd-nav .separator {
  display: block;
  font-family: var(--zd-font-head);
  font-size: 1.075rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.zd-subtoggle {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; padding: 0; margin: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 6px;
}
.zd-subtoggle svg { transition: transform .2s ease; margin: 0 !important; }
.zd-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.zd-subtoggle:hover { color: var(--zd-accent-ink); }

/* Desktop (hamburgermenu onder 1200px, zodat een volle menubalk altijd naast de naam past) */
@media (min-width: 1200px) {
  .zd-nav-toggle { display: none; }
  .zd-header__inner { gap: 2rem; }
  .zd-brand { flex: 0 1 auto; }
  .zd-brand__text { font-size: clamp(1.6rem, 0.9rem + 1.15vw, 2.25rem); }
  .zd-nav > .mod-menu,
  .zd-nav > ul { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: .25rem clamp(1.5rem, 0.4rem + 1.6vw, 2.25rem); }
  .zd-nav > ul > li { position: relative; display: flex; align-items: center; }
  .zd-nav > ul > li > a,
  .zd-nav > ul > li > span {
    position: relative; padding: .6rem 0; line-height: 1.3;
  }
  .zd-nav > ul > li > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px;
    background: var(--zd-accent); transform: scaleX(0); transform-origin: left;
    transition: transform .2s ease;
  }
  .zd-nav > ul > li > a:hover::after,
  .zd-nav > ul > li.active > a::after,
  .zd-nav > ul > li > a[aria-current]::after { transform: scaleX(1); }
  .zd-nav > ul > li > a:hover,
  .zd-nav > ul > li.active > a { color: var(--zd-accent-ink); }
  .zd-nav > ul > li > .zd-subtoggle { width: 1.4rem; margin-left: .1rem; }

  /* Submenu's */
  .zd-nav li ul {
    position: absolute; top: 100%; left: -1rem; min-width: 220px;
    background: #fff; border: 1px solid var(--zd-border); border-top: 3px solid var(--zd-accent);
    border-radius: 0 0 var(--zd-radius) var(--zd-radius);
    box-shadow: var(--zd-shadow);
    padding: .4rem 0;
    display: block;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 20;
    font-size: inherit;
  }
  .zd-nav li ul li { position: relative; display: flex; align-items: center; justify-content: space-between; }
  .zd-nav li ul a,
  .zd-nav li ul span:not(.zd-subtoggle) { padding: .5rem 1.1rem; font-size: 1rem; width: 100%; }
  .zd-nav li ul a:hover,
  .zd-nav li ul li.active > a { background: var(--zd-primary-soft); color: var(--zd-accent-ink); }
  .zd-nav li ul li > .zd-subtoggle svg { transform: rotate(-90deg); }
  .zd-nav li ul li > .zd-subtoggle[aria-expanded="true"] svg { transform: rotate(90deg); }
  .zd-nav li ul ul { top: -.4rem; left: 100%; border-radius: var(--zd-radius); border-top-width: 1px; }
  .zd-nav li:hover > ul,
  .zd-nav li.is-open > ul,
  .zd-nav li > ul[aria-hidden="false"] { opacity: 1; visibility: visible; transform: none; }
  .zd-nav > ul > li:nth-last-child(-n+2) > ul { left: auto; right: -1rem; }
}

/* Mobiel en tablet */
@media (max-width: 1199.98px) {
  :root { --zd-header-h: 68px; }
  .zd-header__inner { flex-wrap: wrap; gap: 0 1rem; }
  .zd-nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    border: 1px solid var(--zd-accent); background: transparent; color: var(--zd-primary);
    border-radius: 8px; padding: .5rem .8rem; font: 600 .95rem/1 var(--zd-font-head); cursor: pointer;
  }
  .zd-nav-toggle__bars { display: inline-grid; gap: 4px; width: 20px; }
  .zd-nav-toggle__bars span { display: block; height: 2px; background: var(--zd-primary); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .zd-nav-toggle[aria-expanded="true"] .zd-nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .zd-nav-toggle[aria-expanded="true"] .zd-nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .zd-nav-toggle[aria-expanded="true"] .zd-nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .zd-nav {
    flex-basis: 100%;
    display: grid; grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .25s ease, visibility .25s;
  }
  .zd-nav > * { overflow: hidden; min-height: 0; }
  .zd-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .zd-nav > ul { display: block; }
  .zd-nav.is-open { padding-bottom: 1rem; }
  .zd-nav li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--zd-border); }
  .zd-nav li > a,
  .zd-nav li > span:not(.zd-subtoggle) { flex: 1; padding: .8rem 0; }
  .zd-nav li.active > a { color: var(--zd-accent-ink); font-weight: 600; }
  .zd-nav li ul { flex-basis: 100%; display: none; padding-left: 1rem; }
  .zd-nav li.is-open > ul,
  .zd-nav li > ul[aria-hidden="false"] { display: block; }
  .zd-nav .zd-subtoggle { width: 2.75rem; height: 2.75rem; }
}

@media (max-width: 575.98px) {
  .zd-topbar { font-size: .8rem; }
  .zd-topbar__inner { justify-content: center; min-height: 0; }
  .zd-topbar__contact { justify-content: center; gap: .25rem 1.1rem; }
  .zd-brand { flex: 1 1 0; }
  .zd-brand__text { white-space: normal; font-size: clamp(1.3rem, 0.9rem + 2.4vw, 1.6rem); }
  .zd-nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .zd-nav-toggle { padding: .65rem; }
}

/* ---------- Module-rijen (HA/HB/MA/MB/SA/SB/CA/CB/FA/FB) ---------- */
.zd-row { padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.zd-row--inner { padding-block: 0 1.5rem; }
.zd-row--content-below { padding-top: 1.5rem; }
.zd-row--header-above,
.zd-row--header-below { padding-block: 1rem; }
.zd-row--menu-below { background: var(--zd-primary-soft); }
.zd-row--footer-above { background: var(--zd-primary-soft); }
.zd-row--footer-below { background: color-mix(in srgb, var(--zd-footer) 92%, #fff); color: rgb(255 255 255 / 80%); padding-block: 1rem; font-size: .9rem; }

.zd-grid { display: grid; gap: var(--zd-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .zd-grid--2, .zd-grid--3, .zd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .zd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.zd-cell > *:last-child { margin-bottom: 0; }

/* Module-chrome "block" */
.zd-block { margin-bottom: 1.75rem; }
.zd-cell .zd-block:last-child { margin-bottom: 0; }
.zd-block__title {
  font-size: 1.3rem; margin: 0 0 .75rem; padding-bottom: .5rem;
  position: relative;
}
.zd-block__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 3px;
  background: var(--zd-accent); border-radius: 2px;
}
.zd-block__content > *:last-child { margin-bottom: 0; }

/* Headerfoto (template-instelling) */
.zd-headerimg { background: var(--zd-primary-soft); line-height: 0; }
.zd-headerimg img { display: block; width: 100%; height: min(var(--zd-headerimg-h, 420px), 62vw); object-fit: cover; object-position: center var(--zd-headerimg-pos, center); }
.zd-headerimg--auto img { height: auto; }

/* Hero (optioneel, volle breedte) */
.zd-hero img { display: block; width: 100%; height: auto; }
.zd-hero p { margin: 0; }

/* ---------- Pagina / content ---------- */
.zd-page { flex: 1 0 auto; padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.zd-breadcrumbs { margin-bottom: 1.5rem; font-size: .9rem; }
.zd-breadcrumbs .breadcrumb,
.zd-breadcrumbs ol { margin: 0; padding: 0 !important; background: none; }
.zd-breadcrumbs .mod-breadcrumbs__here { color: var(--zd-muted); }

.zd-main { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .zd-main--left  { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
  .zd-main--right { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }
  .zd-main--both  { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(200px, 250px); }
}
@media (max-width: 991.98px) {
  .zd-sidebar--left { order: 2; }
  .zd-content { order: 1; }
  .zd-sidebar--right { order: 3; }
}
.zd-content { min-width: 0; }
.zd-content:focus { outline: none; }

.zd-sidebar .zd-block {
  background: var(--zd-primary-soft); border-radius: var(--zd-radius); padding: 1.25rem 1.35rem;
}
.zd-sidebar .mod-menu { flex-direction: column; }
.zd-sidebar .mod-menu a { display: block; padding: .35rem 0; text-decoration: none; color: var(--zd-text); }
.zd-sidebar .mod-menu .active > a,
.zd-sidebar .mod-menu a:hover { color: var(--zd-accent-ink); }
.zd-sidebar .mod-menu__sub { padding-left: 1rem; }

/* Joomla core content */
.page-header h1, .page-header h2,
.item-page > h1, .com-content-category-blog > h1 { position: relative; padding-bottom: .5rem; margin-bottom: 1.25rem; }
.page-header h1::after, .page-header h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.5rem; height: 3px; background: var(--zd-accent); border-radius: 2px; }
.item-page .page-header h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }

.blog-items { display: grid; gap: var(--zd-gap); }
.blog-items.columns-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.blog-items.columns-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.blog-items.columns-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.blog-items.masonry-2, .blog-items.masonry-3, .blog-items.masonry-4 { display: block; columns: 2 320px; column-gap: var(--zd-gap); }
.blog-item { min-width: 0; }
.blog-item .item-image img, .item-page .item-image img { border-radius: var(--zd-radius); }
.blog-featured .blog-item, .blog .blog-item { padding-bottom: 1.5rem; border-bottom: 1px solid var(--zd-border); }

.article-info { font-size: .85rem; color: var(--zd-muted); margin: 0 0 1rem; }
.article-info dd { margin: 0 1rem 0 0; display: inline-block; }
.article-info-term { display: none; }

.readmore { margin-top: .5rem; }

/* Knoppen in huisstijl */
.btn-primary,
.readmore .btn,
button[type="submit"].btn:not(.btn-secondary):not(.btn-danger):not(.btn-success) {
  --bs-btn-bg: var(--zd-primary);
  --bs-btn-border-color: var(--zd-primary);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--zd-primary) 82%, #000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--zd-primary) 82%, #000);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--zd-primary) 70%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--zd-primary) 70%, #000);
  --bs-btn-focus-shadow-rgb: 210, 180, 140;
}
.btn { border-radius: 999px; padding-inline: 1.25rem; font-family: var(--zd-font-head); font-weight: 600; letter-spacing: .01em; }
.btn-secondary {
  --bs-btn-bg: var(--zd-accent); --bs-btn-border-color: var(--zd-accent); --bs-btn-color: var(--zd-primary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--zd-accent) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--zd-accent) 85%, #000); --bs-btn-hover-color: var(--zd-primary);
}

.pagination { --bs-pagination-color: var(--zd-primary); --bs-pagination-active-bg: var(--zd-primary); --bs-pagination-active-border-color: var(--zd-primary); --bs-pagination-hover-color: var(--zd-accent-ink); flex-wrap: wrap; }
.form-control:focus, .form-select:focus { border-color: var(--zd-accent); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--zd-accent) 35%, transparent); }
.form-check-input:checked { background-color: var(--zd-primary); border-color: var(--zd-primary); }

.pagenavigation .pagination { gap: .5rem; }
.pagenavigation .btn { --bs-btn-bg: var(--zd-accent-soft); --bs-btn-border-color: var(--zd-accent); --bs-btn-color: var(--zd-primary); }

/* Systeemmeldingen */
joomla-alert { border-radius: var(--zd-radius); }

/* ---------- Footer ---------- */
.zd-footer {
  background: var(--zd-footer);
  color: rgb(255 255 255 / 78%);
  font-size: .95rem;
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  flex-shrink: 0;
}
.zd-footer a { color: #fff; text-decoration-color: var(--zd-accent); }
.zd-footer a:hover { color: var(--zd-accent); }
.zd-footer h1, .zd-footer h2, .zd-footer h3, .zd-footer h4, .zd-footer .zd-block__title { color: #fff; }
.zd-footer__top { padding-bottom: 2.5rem; }
@media (min-width: 992px) {
  .zd-footer__top.zd-grid--2 { grid-template-columns: 1.4fr 1fr; }
  .zd-footer__top.zd-grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
  .zd-footer__top.zd-grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.zd-footer__brand { margin: 0 0 1rem; color: #fff; }
.zd-footer__brand .zd-brand__text { font-family: var(--zd-font-head); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.1; white-space: normal; }
.zd-footer__address { font-style: normal; line-height: 1.8; margin: 0; }
.zd-footer .mod-menu { flex-direction: column; }
.zd-footer .mod-menu a { padding: .2rem 0; display: inline-block; text-decoration: none; }

.zd-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-block: 1.25rem;
  font-size: .85rem; color: rgb(255 255 255 / 65%);
}
.zd-footer__bottom p { margin: 0; }
.zd-footer__bottom a { color: inherit; text-decoration: none; }
.zd-footer__bottom a:hover { color: var(--zd-accent); }

/* ---------- Terug naar boven ---------- */
.zd-backtop {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--zd-primary); color: #fff;
  box-shadow: var(--zd-shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s;
}
.zd-backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.zd-backtop:hover { background: var(--zd-accent); color: var(--zd-primary); }

/* ---------- Foutpagina ---------- */
.zd-error { max-width: 640px; margin: 0 auto; text-align: center; padding-block: 2rem; }
.zd-error__code { font-family: var(--zd-font-head); font-size: clamp(5rem, 3rem + 8vw, 8rem); line-height: 1; margin: 0 0 .5rem; color: var(--zd-accent); font-weight: 700; }
.zd-error h1 { margin-bottom: 1rem; }
.zd-error__debug { text-align: left; margin-top: 2rem; font-size: .85rem; overflow-x: auto; }

/* ---------- Hulpklassen ---------- */
.visually-hidden, .element-invisible {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.text-accent { color: var(--zd-accent-ink) !important; }
.bg-brand { background: var(--zd-primary) !important; color: #fff; }
.zd-card { background: #fff; border: 1px solid var(--zd-border); border-radius: var(--zd-radius); padding: 1.5rem; box-shadow: var(--zd-shadow); }

/* ---------- Print ---------- */
@media print {
  .zd-topbar, .zd-nav, .zd-nav-toggle, .zd-backtop, .zd-sidebar, .zd-row { display: none !important; }
  .zd-header { position: static !important; box-shadow: none !important; }
  .zd-footer { background: none; color: #000; }
  a { color: #000; }
}
