/*
 * CMS - structural styles of the public site (Bootstrap 5.3 on top).
 *
 * Everything that is a matter of taste (fonts, colours, heading sizes,
 * corners, container width) is NOT in this file: it comes from /theme.css,
 * generated from Instellingen -> Thema (see Cms\Theme). Only use the CSS
 * variables here, never fixed colours.
 */

/* ------------------------------------------------------------ site frame */
.cms-logo { max-height: 48px; width: auto; }
.cms-navbar .cms-search { max-width: 16rem; }
.cms-navbar .cms-search-btn { color: var(--cms-navbar-color); border: 1px solid currentColor; opacity: .8; }
.cms-navbar .cms-search-btn:hover { opacity: 1; }
.cms-navbar .dropdown-item.active { background: var(--bs-primary); }

.cms-adminbar { background: #1d2327; color: #f0f0f1; font-size: .8125rem; padding: .35rem 0; }
.cms-adminbar a { color: #f0f0f1; text-decoration: none; }
.cms-adminbar a:hover { text-decoration: underline; }

.cms-footer a:hover { opacity: .8; }

/* ---------------------------------------------------------------- content */
.cms-richtext > :last-child { margin-bottom: 0; }
.cms-richtext img { max-width: 100%; height: auto; }
.cms-richtext table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.cms-richtext th, .cms-richtext td { padding: .5rem; border: 1px solid var(--bs-border-color); }
.cms-richtext iframe { max-width: 100%; }

.cms-w-100 { width: 100%; }
.cms-w-75 { width: 75%; }
.cms-w-50 { width: 50%; }
.cms-w-25 { width: 25%; }
@media (max-width: 575.98px) { .cms-w-75, .cms-w-50, .cms-w-25 { width: 100%; } }

.cms-space-sm { height: 1rem; }
.cms-space-md { height: 2.5rem; }
.cms-space-lg { height: 5rem; }

.cms-quote { border-left: .25rem solid var(--bs-primary); padding: .25rem 0 .25rem 1.25rem; }

.cms-feature-icon { font-size: 2.5rem; line-height: 1; color: var(--bs-primary); }
/* Features as cards with the icon in a circle */
.cms-features-cards .cms-feature { height: 100%; padding: 2rem 1.5rem; background: var(--bs-body-bg); border-radius: var(--bs-border-radius); }
.cms-features-cards .cms-feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 6rem; height: 6rem; border-radius: 50%;
  background: var(--bs-primary); color: #fff; opacity: .8; margin-bottom: 1.25rem !important;
}
.cms-checklist { list-style: none; padding-left: 0; }
.cms-checklist li { position: relative; padding-left: 1.6em; }
.cms-checklist li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--bs-primary); }

.cms-post-card .card-img-top, .card > .card-img-top { object-fit: cover; height: auto; aspect-ratio: 4 / 3; }
.cms-post-card .card-title a { color: var(--bs-heading-color); }

.cms-download-info { color: var(--bs-secondary-color); }

/* -------------------------------------------------------------------- hero */
.cms-hero { background: var(--bs-primary-bg-subtle); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.cms-hero-inner { position: relative; width: 100%; padding-top: 4rem; padding-bottom: 4rem; }
.cms-hero-md.cms-hero-image { min-height: 20rem; }
.cms-hero-lg.cms-hero-image { min-height: min(75vh, 50rem); }
.cms-hero .cms-countdown-clock { margin-bottom: 0; }
/* Parallax: the image stays in place while the page scrolls over it. Only with
   a mouse or trackpad: touch browsers (iOS) do not support a fixed background,
   and not for visitors who asked for less motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cms-hero-parallax { background-attachment: fixed; }
}
.cms-hero-sm .cms-hero-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cms-hero-lg .cms-hero-inner { padding-top: 7rem; padding-bottom: 7rem; }
/* Shade over the photo, only as dark as the block asks for (none without text). */
.cms-hero-shade-normal::before, .cms-hero-shade-light::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.cms-hero-shade-light::before { background: rgba(0, 0, 0, .2); }
.cms-hero-image, .cms-hero-image h1, .cms-hero-image .lead { color: #fff; }
.cms-hero .lead { max-width: 42rem; }
.cms-hero.text-center .lead { margin-left: auto; margin-right: auto; }
/* A hero inside the normal (boxed) content gets the theme's corners. */
.container .cms-hero { border-radius: var(--bs-border-radius-lg); overflow: hidden; margin-bottom: 1.5rem; }

/* ------------------------------------------------- full width inside a page */
/* In a region that spans the page (not next to a sidebar) a hero and a
   background band (block "Achtergrond vanaf hier") run from edge to edge. */
main { overflow-x: clip; }
.cms-region-wide > .cms-hero, .cms-band > .cms-hero, .cms-band {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0;
}
.cms-band { padding: 3rem calc(50vw - 50%); margin-bottom: 1.5rem; }
.cms-band > .cms-hero { margin-bottom: 1.5rem; }
.cms-band > :first-child { margin-top: 0 !important; }
.cms-band > :last-child { margin-bottom: 0 !important; }
.cms-band-light { background: var(--bs-tertiary-bg); }
.cms-band-primary { background: var(--bs-primary-bg-subtle); }
.cms-band-dark { background: var(--cms-footer-bg); color: var(--cms-footer-color); --bs-heading-color: var(--cms-footer-color); }
/* Flush against the hero region above and the footer below. */
.cms-region-hero + .cms-region-wide > .cms-band:first-child { margin-top: -3rem; }
.container.cms-region-wide > .cms-band:last-child, .container.cms-region-wide > .cms-hero:last-child { margin-bottom: -3rem; }
main:has(.container.cms-region-wide > .cms-band:last-child) + footer,
main:has(.container.cms-region-wide > .cms-hero:last-child) + footer { margin-top: 0 !important; }

/* ----------------------------------------------------------------- stepper */
.cms-stepper { counter-reset: none; }
.cms-step { display: flex; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.cms-step-number {
  flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bs-primary); color: #fff; font-weight: 700; position: relative; z-index: 1;
}
.cms-stepper-vertical .cms-step:not(:last-child)::before {
  content: ""; position: absolute; left: 1.25rem; top: 2.5rem; bottom: 0; width: 2px;
  background: var(--bs-border-color); transform: translateX(-1px);
}
.cms-stepper-vertical .cms-step:last-child { padding-bottom: 0; }
@media (min-width: 768px) {
  .cms-stepper-horizontal { display: flex; gap: 1.5rem; }
  .cms-stepper-horizontal .cms-step { flex: 1 1 0; flex-direction: column; text-align: center; align-items: center; padding-bottom: 0; }
  .cms-stepper-horizontal .cms-step:not(:last-child)::before {
    content: ""; position: absolute; top: 1.25rem; left: calc(50% + 1.25rem); right: calc(-50% + 1.25rem - 1.5rem); height: 2px;
    background: var(--bs-border-color);
  }
}

/* ------------------------------------------------------------------ agenda */
.cms-event-date { width: 3.25rem; border-left: .25rem solid var(--bs-primary); padding-left: .5rem; line-height: 1.1; }
.cms-event-day { display: block; font-size: 1.5rem; font-weight: 700; }
.cms-event-month { display: block; font-size: .75rem; text-transform: uppercase; color: var(--bs-secondary-color); }

/* ----------------------------------------------------------------- gallery */
.cms-gallery-item { display: block; }
.cms-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .15s; }
.cms-gallery-item:hover img, .cms-gallery-item:focus img { opacity: .85; }
.cms-lightbox .modal-content { background: #000; border: 0; }
.cms-lightbox img { max-height: 82vh; max-width: 100%; margin: 0 auto; display: block; }
.cms-lightbox figcaption { color: #ddd; text-align: center; padding: .5rem 1rem; min-height: 2.25rem; }
.cms-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0, 0, 0, .4); color: #fff; font-size: 2rem; width: 3rem; height: 4rem; }
.cms-lightbox-prev { left: 0; }
.cms-lightbox-next { right: 0; }
.cms-lightbox-close { position: absolute; top: .5rem; right: .5rem; z-index: 2; }

/* -------------------------------------------------------------------- form */
/* Honeypot: off screen for people, present for bots. */
.cms-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media print {
  .cms-navbar, .cms-footer, .cms-adminbar { display: none !important; }
}

/* Language switcher in the navbar */
.cms-lang .dropdown-toggle { white-space: nowrap; }
.cms-lang .dropdown-menu { min-width: 9rem; }

/* Countdown block */
.cms-countdown-clock { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; }
.cms-countdown-clock[hidden] { display: none; }
.cms-countdown-part { min-width: 5.5rem; padding: .75rem .5rem; border-radius: var(--bs-border-radius); background: var(--bs-primary); color: #fff; }
.cms-countdown-number { display: block; font-size: 2.25rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cms-countdown-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.cms-countdown-date { color: var(--bs-secondary-color); }

/* Captcha of the contact form */
.cms-captcha-image { background: #fff; max-width: 100%; height: auto; }
.cms-captcha-input { max-width: 10rem; text-transform: uppercase; letter-spacing: .15em; }
