/*!
 * Website3 template 2.0 - bovenop Bootstrap 5.
 * Rustig, leesbaar en toegankelijk. Geen externe fonts (AVG-vriendelijk).
 */

:root {
  --w3-brand: #4b2a6e;
  --w3-brand-rgb: 75, 42, 110;
  --w3-accent: #8a7466;
  --w3-bg: #faf7f4;
  --w3-surface: #ffffff;
  --w3-text: #2b2630;
  --w3-muted: #655d6c;
  --w3-line: #e7e0d9;
  --w3-radius: .75rem;
  --w3-shadow: 0 1px 2px rgba(43, 38, 48, .06), 0 8px 24px rgba(43, 38, 48, .06);
  --w3-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --w3-font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  /* Bootstrap 5.3 variabelen afstemmen op het thema */
  --bs-body-font-family: var(--w3-font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: var(--w3-text);
  --bs-body-bg: var(--w3-bg);
  --bs-link-color: var(--w3-brand);
  --bs-link-color-rgb: var(--w3-brand-rgb);
  --bs-link-hover-color: color-mix(in srgb, var(--w3-brand) 75%, #000);
  --bs-primary: var(--w3-brand);
  --bs-primary-rgb: var(--w3-brand-rgb);
  --bs-border-color: var(--w3-line);
  --bs-border-radius: .5rem;
}

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

body.website3 { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--w3-font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--w3-brand);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); }
h2, .h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
p, li { text-wrap: pretty; }
a { text-underline-offset: .18em; }
img, video { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 2000;
  background: var(--w3-brand); color: #fff; padding: .6rem 1rem; border-radius: .4rem;
  transition: top .15s;
}
.skip-link:focus { top: .5rem; color: #fff; }

/* ---------- Knoppen ---------- */
.btn-primary {
  --bs-btn-bg: var(--w3-brand);
  --bs-btn-border-color: var(--w3-brand);
  --bs-btn-hover-bg: color-mix(in srgb, var(--w3-brand) 80%, #000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--w3-brand) 80%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--w3-brand) 70%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--w3-brand) 70%, #000);
  --bs-btn-disabled-bg: var(--w3-brand);
  --bs-btn-disabled-border-color: var(--w3-brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--w3-brand);
  --bs-btn-border-color: var(--w3-brand);
  --bs-btn-hover-bg: var(--w3-brand);
  --bs-btn-hover-border-color: var(--w3-brand);
  --bs-btn-active-bg: var(--w3-brand);
  --bs-btn-active-border-color: var(--w3-brand);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--w3-brand);
  box-shadow: 0 0 0 .25rem rgba(var(--w3-brand-rgb), .2);
}
.form-check-input:checked { background-color: var(--w3-brand); border-color: var(--w3-brand); }

/* ---------- Kop ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(220px, 30vw, 380px);
  background: #2c1b3d;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.site-header--compact { min-height: 0; background: var(--w3-brand); }
.site-header__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 10, 30, .05) 0%, rgba(20, 10, 30, .15) 40%, rgba(20, 10, 30, .72) 100%);
}
.site-header--compact::after { display: none; }
.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
}
.site-header--compact .site-header__inner { padding-block: 1rem; }
.site-logo { max-height: 5rem; width: auto; flex: none; }
.site-title {
  margin: 0;
  font-family: var(--w3-font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
  text-wrap: balance;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-slogan { margin: .35rem 0 0; font-size: 1.05rem; opacity: .92; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

/* ---------- Navigatie ---------- */
.site-nav {
  background: var(--w3-brand);
  border-bottom: 3px solid var(--w3-accent);
  padding: 0;
  z-index: 1030;
}
.site-nav--sticky { position: sticky; top: 0; }
.site-nav > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.site-nav__toggle {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: .5rem 0; padding: .55rem .9rem;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: .5rem;
  font: inherit; font-weight: 500;
}
.site-nav__toggle:focus-visible { outline-color: #fff; }
.site-nav__bars, .site-nav__bars::before, .site-nav__bars::after {
  display: block; width: 1.25rem; height: 2px; background: currentColor; border-radius: 2px;
}
.site-nav__bars { position: relative; }
.site-nav__bars::before, .site-nav__bars::after { content: ""; position: absolute; left: 0; }
.site-nav__bars::before { top: -6px; }
.site-nav__bars::after { top: 6px; }
@media (min-width: 992px) { .site-nav__toggle { display: none; } }

.site-nav .mod-menu, .site-nav ul.menu, .site-nav .navbar-nav {
  display: flex; flex-direction: column; flex-wrap: wrap;
  margin: 0; padding: 0 0 .75rem; list-style: none;
}
.site-nav li { position: relative; list-style: none; }
.site-nav .mod-menu a,
.site-nav .mod-menu .mod-menu__heading,
.site-nav .mod-menu .separator,
.site-nav .mod-menu button {
  display: block; padding: .7rem .25rem;
  color: #fff; text-decoration: none; font-weight: 500; background: none; border: 0; font: inherit;
}
.site-nav .mod-menu a:hover,
.site-nav .mod-menu a:focus-visible { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.site-nav .mod-menu a:focus-visible { outline-color: #fff; }
.site-nav .mod-menu .active > a,
.site-nav .mod-menu a.active,
.site-nav .mod-menu .current > a { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; text-decoration-color: var(--w3-accent); }

/* Oude menu-suffix 'nav-pills' mag geen blauwe pil tonen */
.site-nav .nav-pills .nav-link, .site-nav .nav-pills .nav-link.active, .site-nav .nav-pills .show > .nav-link { background: transparent; color: #fff; }

/* Submenu: op mobiel altijd uitgeklapt en ingesprongen */
.site-nav .mod-menu__sub { margin: 0; padding: 0 0 0 1rem; list-style: none; font-size: .95rem; }
.site-nav .mod-menu__sub a { font-weight: 400; padding-block: .45rem; }

@media (min-width: 992px) {
  .site-nav .mod-menu, .site-nav ul.menu, .site-nav .navbar-nav { flex-direction: row; gap: .25rem; padding: 0; margin-left: -1rem; }
  .site-nav .mod-menu > li > a,
  .site-nav .mod-menu > li > .mod-menu__heading,
  .site-nav .mod-menu > li > .separator { padding: 1rem 1rem; }
  .site-nav .mod-menu > li.parent > a::after {
    content: ""; display: inline-block; margin-left: .45em; vertical-align: .15em;
    border: .3em solid transparent; border-top-color: currentColor; border-bottom: 0;
  }
  .site-nav .mod-menu__sub {
    position: absolute; left: 0; top: 100%; z-index: 20; min-width: 15rem; padding: .5rem 0;
    background: var(--w3-surface); border-radius: 0 0 var(--w3-radius) var(--w3-radius);
    box-shadow: var(--w3-shadow); border-top: 3px solid var(--w3-accent);
    display: none;
  }
  .site-nav li:hover > .mod-menu__sub,
  .site-nav li:focus-within > .mod-menu__sub { display: block; }
  .site-nav .mod-menu__sub a { color: var(--w3-text); padding: .6rem 1.1rem; }
  .site-nav .mod-menu__sub a:hover,
  .site-nav .mod-menu__sub a:focus-visible { background: rgba(var(--w3-brand-rgb), .08); text-decoration: none; color: var(--w3-brand); }
  .site-nav .mod-menu__sub a:focus-visible { outline-color: var(--w3-brand); outline-offset: -3px; }
  .site-nav .mod-menu__sub .mod-menu__sub { left: 100%; top: 0; border-top: 0; border-radius: var(--w3-radius); }
}

/* ---------- Inhoud ---------- */
.site-content { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.site-content__inner {
  background: var(--w3-surface);
  border: 1px solid var(--w3-line);
  border-radius: var(--w3-radius);
  box-shadow: var(--w3-shadow);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.site-main { outline: none; }
.site-main > :first-child { margin-top: 0; }
.site-main > :last-child { margin-bottom: 0; }

.page-header { padding-bottom: .6rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--w3-line); }
.page-header h1, .page-header h2 { margin: 0; }
.article-info, .article-info-term { color: var(--w3-muted); font-size: .9rem; }
.article-info { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.article-info dd { margin: 0; }
.com-content-article__body img, .item-page img { border-radius: .5rem; }
.item-image, .com-content-image { margin-bottom: 1rem; }
figure.pull-left, .float-start { margin: 0 1.25rem 1rem 0; }
figure.pull-right, .float-end { margin: 0 0 1rem 1.25rem; }
@media (max-width: 575.98px) { .float-start, .float-end, figure.pull-left, figure.pull-right { float: none !important; margin: 0 0 1rem; } }
hr { border-color: var(--w3-line); opacity: 1; }
blockquote { border-left: 4px solid var(--w3-accent); padding: .25rem 0 .25rem 1.25rem; color: var(--w3-muted); font-style: italic; }
table { --bs-table-bg: transparent; }
.table { margin-bottom: 1.5rem; }

.breadcrumb { font-size: .9rem; margin-bottom: 1.25rem; --bs-breadcrumb-divider-color: var(--w3-muted); }
.breadcrumb-item.active { color: var(--w3-muted); }
.pagination { --bs-pagination-color: var(--w3-brand); --bs-pagination-active-bg: var(--w3-brand); --bs-pagination-active-border-color: var(--w3-brand); --bs-pagination-hover-color: var(--w3-brand); --bs-pagination-focus-color: var(--w3-brand); }

/* ---------- Modulerijen (positions) ---------- */
.module-row { padding-block: 1.25rem; }
.module-row--above-header, .module-row--below-header, .module-row--above-menu, .module-row--below-menu,
.module-row--above-footer, .module-row--below-footer { background: var(--w3-bg); }
.module-row--above-header { background: var(--w3-brand); color: #fff; padding-block: .4rem; font-size: .9rem; }
.module-row--above-header a { color: #fff; }
.module-row--content-top { padding: 0 0 1.5rem; }
.module-row--content-bottom { padding: 1.5rem 0 0; margin-top: 1.5rem; border-top: 1px solid var(--w3-line); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
.module-grid__cell { min-width: 0; }

.w3-module { margin-bottom: 1rem; }
.w3-module:last-child { margin-bottom: 0; }
.w3-module__title {
  font-size: 1.2rem; margin: 0 0 .75rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--w3-accent);
}
.w3-module__body > :last-child { margin-bottom: 0; }
.w3-module ul { padding-left: 1.1rem; }
.w3-module .mod-menu, .w3-module .mod-list { padding-left: 0; list-style: none; }

/* ---------- Voet ---------- */
.site-footer { background: #2a1d38; color: #e9e3ef; margin-top: auto; }
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3, .site-footer .w3-module__title { color: #fff; border-color: rgba(255, 255, 255, .25); }
.site-footer__widgets { padding-block: 2.25rem 1.25rem; }
.site-footer__bottom { border-top: 3px solid var(--w3-accent); background: rgba(0, 0, 0, .18); font-size: .9rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }

/* ---------- Terug naar boven ---------- */
.back-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: var(--w3-brand); color: #fff; border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); text-decoration: none;
}
.back-top[hidden] { display: none; }
.back-top:hover { color: #fff; background: color-mix(in srgb, var(--w3-brand) 80%, #000); }

/* ---------- Foutpagina ---------- */
.error-page { text-align: center; padding-block: 1.5rem; }
.error-page__code { font-family: var(--w3-font-heading); font-size: clamp(4rem, 15vw, 8rem); line-height: 1; margin: 0; color: var(--w3-accent); opacity: .55; }
.error-page__detail { display: inline-block; margin-top: 1rem; text-align: left; }
.error-page__debug { margin-top: 2rem; overflow-x: auto; font-size: .85rem; }

/* ---------- Component-/printweergave ---------- */
.component-wrap { padding: 1.5rem; max-width: 60rem; margin-inline: auto; }

/* ---------- Joomla-extra's ---------- */
joomla-alert { margin-bottom: 1rem; }
.icon-fw { width: 1.25em; text-align: center; }
@media print {
  .site-nav, .site-header__img, .back-top, .site-footer__widgets, .module-row { display: none !important; }
  body { background: #fff; }
  .site-content__inner { border: 0; box-shadow: none; padding: 0; }
  .site-header { min-height: 0; background: none; color: #000; }
  .site-header::after { display: none; }
  .site-title, .site-slogan { text-shadow: none; }
}
