/*
 * bentvelzenstamboom.nl
 *
 * Handgeschreven herbouw van het uiterlijk van Joomla's Cassiopeia-template,
 * dat de site tot de omzetting gebruikte. De kleuren, maten en afstanden komen
 * één op één uit `template.min.css` en `colors_standard.min.css` van die
 * template, maar dan alleen de regels die deze site daadwerkelijk raakt —
 * zo'n 250 regels in plaats van 253 kB Bootstrap.
 */

:root {
  /* colors_standard.min.css */
  --kleur-primair: #112855;
  --kleur-hover: #424077;
  --link-kleur: #224faa;
  --link-hover-kleur: #424077;

  /* Bootstrap-variabelen zoals Cassiopeia ze zet */
  --tekst-kleur: #22262a;
  --tekst-gedempt: rgba(34, 38, 42, 0.75);
  --rand-kleur: #dfe3e7;
  --rand-radius: 0.25rem;

  --lettertype: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* 4 kolommen van 19,875rem plus 3 tussenruimtes van 1em */
  --inhoud-breedte: 82.5rem;
}

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

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

html {
  background-color: #fff;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--lettertype);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tekst-kleur);
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  /* Bootstrap's reboot zet dit; zonder blijft er onder het logo een strook
     regelhoogte staan en wordt de kopbalk 7px hoger dan op de bronsite. */
  vertical-align: middle;
}

a {
  color: var(--link-kleur);
}

a:hover {
  color: var(--link-hover-kleur);
}

a:not([class]) {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: var(--lettertype);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}

h2 {
  font-size: calc(1.325rem + 0.9vw);
}

@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

/* De kwartierstaten schrijven "1e maal gehuwd" met een <sup>. Zonder deze
   reboot-regels rekt zo'n <sup> de regelhoogte op en worden die pagina's
   zichtbaar langer dan op de bronsite. */
sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* ---------------------------------------------------------------- kopbalk */

.container-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--kleur-primair);
  background-image: linear-gradient(
    135deg,
    var(--kleur-primair) 0%,
    var(--kleur-hover) 100%
  );
  box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.03);
}

@media (max-width: 991.98px) {
  /* Cassiopeia laat de balk op smalle schermen los van de bovenkant. */
  .container-header {
    position: relative;
  }
}

.grid-child {
  display: flex;
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.container-header .grid-child {
  padding: 0.5em;
}

.container-header .navbar-brand {
  display: inline-block;
  position: relative;
  margin-inline-end: auto;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  font-size: 2rem;
  color: #fff;
}

.container-header .navbar-brand a,
.container-header .navbar-brand a:hover {
  color: #fff;
}

.container-header .container-nav {
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 1em;
}

.container-header nav {
  width: 100%;
  margin-top: 0.5em;
  padding: 0;
}

/* ------------------------------------------------------------------- menu */

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: var(--rand-radius);
  cursor: pointer;
  line-height: 1;
}

.navbar-toggler > * {
  pointer-events: none;
}

.navbar-collapse {
  display: none;
}

.navbar-collapse.show {
  display: block;
}

.mod-menu {
  flex: 1 0 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  list-style: none;
}

.metismenu-item {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5em 1em;
  font-size: 1.1rem;
  line-height: 1.5;
}

.metismenu-item > a,
.metismenu-item > button {
  position: relative;
  overflow: hidden;
  color: currentColor;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.metismenu-item > button {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Uitklapper "Kwartierstaten": tekst met een driehoekje erachter. */
.mm-toggler {
  display: flex;
  position: relative;
  align-items: center;
  height: 100%;
  user-select: none;
}

.mm-toggler::after {
  content: "";
  width: 0;
  height: 0;
  margin-inline-start: 0.5em;
  border-top: 0.5em solid;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  transition: transform 0.3s ease-out;
}

.mm-toggler[aria-expanded="true"]::after {
  transform: rotateX(-180deg);
}

.metismenu-item > a:focus,
.metismenu-item > button:focus {
  outline: 1px dotted #ced4da;
  outline-offset: 2px;
}

.metismenu-item.active > a,
.metismenu-item.active > button,
.metismenu-item > a:hover,
.metismenu-item > button:hover {
  text-decoration: underline;
}

/* Uitklapmenu; op de bronsite deed metismenu dit. */
.metismenu-item > ul.mm-collapse {
  display: none;
  position: absolute;
  top: 100%;
  z-index: 1001;
  min-width: 12rem;
  margin: 0;
  padding: 0;
  color: var(--tekst-kleur);
  background-color: #fff;
  list-style: none;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.metismenu-item.open > ul.mm-collapse {
  display: block;
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }

  .navbar-collapse {
    display: block !important;
  }

  .mod-menu {
    display: flex;
    flex: 1;
    flex-direction: row;
  }

  /* De onderstreping die bij hover/actief onder het item uitschuift. De balk
     zit binnen de a/button — die heeft `overflow: hidden`, dus bottom moet 0
     zijn, anders valt hij buiten de doos en zie je hem niet. Bij de uitklapper
     is het `::before`, want `::after` is daar het driehoekje. */
  .mod-menu > li > a::after,
  .mod-menu > li > button::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: transparent;
    opacity: 0.2;
    transition: all 0.2s, background-color 0.2s;
  }

  .mod-menu > li.active > a::after,
  .mod-menu > li.active > button::before,
  .mod-menu > li > a:hover::after,
  .mod-menu > li > button:hover::before {
    left: 0;
    right: 0;
    background: #fff;
    opacity: 1;
  }

  .mod-menu > li.active > a,
  .mod-menu > li.active > button,
  .mod-menu > li > a:hover,
  .mod-menu > li > button:hover {
    text-decoration: none;
  }
}

.mm-collapse .metismenu-item {
  display: block;
  padding: 0.5em 1em;
}

.mm-collapse .metismenu-item > a {
  display: block;
  color: var(--link-kleur);
}

/* --------------------------------------------------------------- inhoud */

.site-grid {
  width: 100%;
  max-width: calc(var(--inhoud-breedte) + 2em);
  margin: 0 auto auto;
  padding: 0 1em;
}

.container-component {
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: none;
}

.container-component > :first-child,
.container-component > * + * {
  margin-top: 1em;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.article-info {
  margin: 0 0 1rem;
  color: var(--tekst-gedempt);
}

.article-info-term {
  font-weight: 700;
}

.article-info dd {
  margin: 0;
  padding: 0;
}

.article-info .icon-calendar svg {
  vertical-align: -0.15em;
  margin-right: 0.35em;
}

/* ---------------------------------------------------------- naar boven */

.back-to-top-link {
  position: fixed;
  bottom: 1rem;
  inset-inline-end: 1rem;
  z-index: 10000;
  padding: 0.5em;
  color: var(--kleur-primair);
  background-color: #fff;
  border: 1px solid var(--kleur-primair);
  border-radius: var(--rand-radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in;
}

.back-to-top-link.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top-link:hover,
.back-to-top-link:focus {
  color: #fff;
  background-color: var(--kleur-hover);
  border-color: #fff;
}

/* ------------------------------------------------------------ formulier */

/*
 * De maten hieronder komen uit RSForm Pro's `responsive.min.css`, dat het
 * contactformulier op de Joomla-site vormgaf: labelkolom van 20% rechts
 * uitgelijnd, veldkolom vanaf 22%, invoervelden van 220 bij 28 pixels.
 */

.formResponsive h2 {
  margin-bottom: 0.5rem;
}

.formContainer {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsform-block {
  margin-bottom: 18px;
}

/* Sluit de zwevende labelkolom in, en houdt de marges van de inhoud binnen
   het blok — anders vallen de rijen strakker op elkaar dan op de bronsite. */
.rsform-block::after {
  content: "";
  display: table;
  clear: both;
}

.formControlLabel {
  display: block;
  float: left;
  width: 20%;
  padding-top: 5px;
  text-align: right;
}

.formControls {
  margin-left: 22%;
}

.formRequired {
  margin-left: 3px;
  color: inherit;
}

.rsform-input-box,
.rsform-text-box {
  width: 220px;
  max-width: 100%;
  padding: 4px;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.rsform-input-box {
  margin-bottom: 9px;
}

.rsform-text-box {
  height: 100px;
  resize: vertical;
}

.rsform-input-box:focus,
.rsform-text-box:focus {
  border-color: rgba(82, 168, 236, 0.8);
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

.rsform-submit-button,
.rsform-reset-button {
  padding: 4px 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  cursor: pointer;
}

.rsform-submit-button {
  background-color: #0074cc;
}

.rsform-reset-button {
  margin-left: 5px;
  background-color: #da4f49;
}

.rsform-submit-button:hover,
.rsform-submit-button:focus {
  background-color: #005c9e;
}

.rsform-reset-button:hover,
.rsform-reset-button:focus {
  background-color: #bd362f;
}

/* Onder de tabletgrens zet RSForm de labels boven de velden. */
@media (max-width: 767.98px) {
  .formControlLabel {
    float: none;
    width: auto;
    padding-top: 0;
    text-align: left;
  }

  .formControls {
    margin-left: 0;
  }
}

/* Honeypot: onzichtbaar voor bezoekers, wel invulbaar voor bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-fout {
  padding: 0.75rem 1.25rem;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: var(--rand-radius);
}

/* ---------------------------------------------------------------- links */

.com-weblinks-category ul.category {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

/* Elke link stond op de Joomla-site in een Bootstrap-kaartje
   (.list-group > .list-group-item); die maten staan hier na. */
.com-weblinks-category .list-group {
  margin-top: 1rem;
  border-radius: var(--rand-radius);
}

.com-weblinks-category .list-group-item {
  display: block;
  position: relative;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border: 1px solid var(--rand-kleur);
  border-radius: inherit;
}

.com-weblinks-category .icon-globe {
  margin-right: 0.4em;
  color: var(--tekst-gedempt);
}

.com-weblinks-category .icon-globe svg {
  vertical-align: -0.15em;
}

.com-weblinks-category .mt-2 {
  margin-top: 0.5rem;
}

.com-weblinks-category .mb-2 {
  margin-bottom: 0.5rem;
}

.com-weblinks-category .list-title p {
  margin: 0;
}
