:root {
  --svvba-blue: #086cf0;
  --svvba-blue-dark: #064db1;
  --svvba-blue-soft: #eaf3ff;
  --svvba-ink: #15263d;
  --svvba-muted: #607087;
  --svvba-line: #dce5ef;
  --svvba-surface: #ffffff;
  --svvba-background: #eef3f8;
  --svvba-radius: 18px;
  --svvba-shadow: 0 18px 48px rgba(22, 50, 82, 0.13);
  --svvba-content: 1200px;
}

html {
  min-width: 0 !important;
  scroll-behavior: smooth;
}

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

body.site-template {
  min-width: 0;
  margin: 0;
  background: var(--svvba-background);
  color: var(--svvba-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

body.site-template img {
  max-width: 100%;
  height: auto;
}

/* Dit pictogram wordt klein gebruikt in nieuwsbrief- en inschrijfformulieren. */
body.site-template img[src$="/modules/images/wijsvinger.png"] {
  width: auto;
  max-width: none;
  height: 20px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--svvba-ink);
  color: #fff !important;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.visually-hidden {
  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;
}

#topbalk {
  display: block;
  position: static;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--svvba-blue-dark), #1198ff 55%, #42b9ff);
}

#wrapper {
  position: relative;
  top: auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  text-align: left;
}

#header {
  display: block;
  position: relative;
  top: auto;
  left: auto;
  z-index: 1000;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.98);
  text-align: left;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 48px), var(--svvba-content));
  min-height: 112px;
  margin: 0 auto;
}

#headerlogo {
  position: static;
  z-index: auto;
  flex: 1 1 auto;
  min-width: 0;
}

#headerlogo a {
  display: inline-flex;
  align-items: center;
  max-width: 650px;
}

#headerlogo img {
  display: block;
  width: min(100%, 650px);
  max-height: 96px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

@media (min-width: 981px) {
  .header-inner {
    position: relative;
    justify-content: flex-end;
  }

  #headerlogo {
    position: absolute;
    left: 50%;
    width: min(650px, calc(100% - 390px));
    text-align: center;
    transform: translateX(-50%);
  }

  #headerlogo a {
    justify-content: center;
    margin: 0 auto;
  }
}

#zoekbalk {
  position: static;
  width: min(320px, 30vw);
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--svvba-ink);
}

#zoekbalk form {
  position: relative;
  display: flex;
  align-items: center;
}

.zoekbalkbalk {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 50px 0 18px;
  border: 1px solid var(--svvba-line);
  border-radius: 999px;
  outline: none;
  background: #f7f9fc;
  color: var(--svvba-ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.zoekbalkbalk::placeholder {
  color: #7a899c;
}

.zoekbalkbalk:focus {
  border-color: var(--svvba-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 108, 240, 0.12);
}

.zoekbalkbutton {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--svvba-blue);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.zoekbalkbutton::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.zoekbalkbutton::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 21px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.zoekbalkbutton:hover,
.zoekbalkbutton:focus-visible {
  border: 0;
  background: var(--svvba-blue-dark);
  transform: scale(1.04);
}

#taalbalk {
  position: static;
  display: flex;
  gap: 8px;
  padding: 0;
  background: transparent;
  white-space: nowrap;
}

#taalbalk a {
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--svvba-line);
  border-radius: 12px;
  background: #fff;
  color: var(--svvba-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle__icon {
  display: grid;
  gap: 4px;
  width: 20px;
}

.menu-toggle__icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#menuframe {
  position: relative !important;
  top: auto !important;
  left: auto;
  z-index: 1100;
  width: 100%;
  height: auto;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid var(--svvba-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(25, 54, 87, 0.04);
  backdrop-filter: blur(14px);
  text-align: left !important;
}

#menuframe.fixed-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0;
}

body.nav-is-fixed #header {
  padding-bottom: 59px;
}

body.is-scrolled #menuframe {
  box-shadow: 0 10px 30px rgba(25, 54, 87, 0.12);
}

#menu1 {
  position: static;
  display: block;
  width: min(calc(100% - 48px), var(--svvba-content));
  height: auto;
  margin: 0 auto;
  text-align: left;
}

#menu1 > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

#menu1 ul li {
  position: relative;
  float: none;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  list-style: none;
}

#menu1 a.level1:link,
#menu1 a.level1:visited {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 11px;
  color: #31445b;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

#menu1 a.level1:hover,
#menu1 a.level1:focus-visible {
  background: var(--svvba-blue-soft);
  color: var(--svvba-blue-dark);
  text-decoration: none;
}

#menu1 a.level1.active,
#menu1 a.level1.hasactivesub {
  height: auto;
  background: var(--svvba-blue);
  box-shadow: 0 7px 18px rgba(8, 108, 240, 0.22);
  color: #fff;
}

#menu1 a.level1.active.hassub,
#menu1 a.level1.hassub {
  padding: 9px 13px;
}

#menu1 a.level1.active.hassub::after,
#menu1 a.level1.hassub::after {
  margin-left: 7px;
  font-size: 9px;
  content: "▼";
}

#menu1 ul li:hover > ul,
#menu1 ul li:focus-within > ul {
  display: block;
  position: absolute;
  /* Direct tegen het hoofditem plaatsen zodat de hoverzone niet onderbroken wordt. */
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--svvba-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--svvba-shadow);
}

#menu1 li.level2,
#menu1 li.level2.active {
  min-width: 0;
  border: 0;
  background: transparent;
}

#menu1 a.level2:link,
#menu1 a.level2:visited,
#menu1 a.level2.active:link,
#menu1 a.level2.active:visited {
  padding: 10px 12px;
  border-radius: 9px;
  background: transparent;
  color: #31445b;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
}

#menu1 a.level2:hover,
#menu1 a.level2.active {
  background: var(--svvba-blue-soft);
  color: var(--svvba-blue-dark);
  text-decoration: none;
}

#topfoto {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  width: 100%;
  height: clamp(290px, 34vw, 440px);
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 29, 58, 0.05), rgba(6, 29, 58, 0.24));
}

#content {
  position: relative;
  top: auto;
  z-index: 5;
  float: none;
  width: min(calc(100% - 48px), var(--svvba-content));
  min-height: 360px;
  margin: -42px auto 72px;
  padding: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  grid-template-areas: "main aside";
  align-items: start;
  gap: 24px;
  width: 100%;
}

#content1,
#content2 {
  float: none;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid rgba(220, 229, 239, 0.8);
  border-radius: var(--svvba-radius);
  background: var(--svvba-surface);
  box-shadow: var(--svvba-shadow);
}

#content1 {
  grid-area: main;
}

#content2 {
  grid-area: aside;
  padding: 28px;
}

#content2:empty {
  display: none;
}

#content2:empty + #content1 {
  grid-column: 1 / -1;
  width: auto !important;
}

body.site-template h1,
body.site-template h2,
body.site-template h3 {
  margin: 0 0 0.65em;
  padding: 0;
  color: var(--svvba-ink);
  font-family: inherit;
  font-style: normal;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

body.site-template h1 {
  font-size: clamp(26px, 3vw, 40px);
}

body.site-template h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

body.site-template h3 {
  font-size: 20px;
}

body.site-template p,
body.site-template td p {
  color: #33465d;
  line-height: 1.72;
}

body.site-template a:link,
body.site-template a:visited {
  color: var(--svvba-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.site-template a:hover,
body.site-template a:focus-visible {
  color: var(--svvba-blue);
}

body.site-template input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.site-template textarea,
body.site-template select {
  max-width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd7e4;
  border-radius: 10px;
  background: #fff;
  color: var(--svvba-ink);
  font: inherit;
}

body.site-template textarea {
  min-height: 130px;
  resize: vertical;
}

body.site-template input:focus,
body.site-template textarea:focus,
body.site-template select:focus {
  border-color: var(--svvba-blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8, 108, 240, 0.12);
}

/* Validatiestatus uit checkdutyfields(): zichtbaar zolang een verplicht veld leeg is. */
body.site-template input.roodrandje:not([type="checkbox"]):not([type="radio"]),
body.site-template textarea.roodrandje,
body.site-template select.roodrandje {
  border: 2px solid #d92d20 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14);
}

body.site-template input.roodrandje:not([type="checkbox"]):not([type="radio"]):focus,
body.site-template textarea.roodrandje:focus,
body.site-template select.roodrandje:focus {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.22);
}

body.site-template #dutyfieldsmessage {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid #f0aaa4;
  border-radius: 8px;
  background: #fff5f5;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

body.site-template input[type="submit"],
body.site-template input[type="button"],
body.site-template button:not(.menu-toggle):not(.zoekbalkbutton),
body.site-template .rodebutton,
body.site-template a.webshop_buttonMore,
body.site-template a.webshop_buttonOrder,
body.site-template .webshop_buttonOrder {
  min-height: 42px;
  padding: 9px 17px;
  border: 0;
  border-radius: 10px;
  background: var(--svvba-blue);
  box-shadow: 0 7px 18px rgba(8, 108, 240, 0.2);
  color: #fff !important;
  font: inherit;
  font-weight: 750;
  text-shadow: none;
  cursor: pointer;
}

body.site-template table {
  max-width: 100%;
}

body.site-template table.contenttable {
  overflow: hidden;
  border: 1px solid var(--svvba-line);
  border-radius: 12px;
  background: var(--svvba-line);
}

body.site-template table.contenttable tr td {
  padding: 9px;
  font-size: 14px;
}

.uitklapdiv,
div.uitklaptekst {
  width: auto;
  max-width: 100%;
  border-color: var(--svvba-line);
  border-radius: 12px;
  background: #f7f9fc;
}

span.uitklaptitel {
  width: auto;
  max-width: 100%;
  color: var(--svvba-ink);
  font-weight: 700;
}

.fencediv {
  position: relative;
  margin: 28px 0 12px;
  padding: 28px 16px 16px;
  border: 1px solid #aebdcd;
  border-radius: 12px;
}

.fencelabel {
  position: absolute;
  top: -14px;
  left: 14px;
  float: none;
  width: auto;
  height: 28px;
  margin: 0;
  padding: 3px 12px;
  border: 1px solid #aebdcd;
  border-radius: 8px;
  background: #fff;
  color: var(--svvba-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
  white-space: nowrap;
}

#footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: auto;
  border: 0;
  background: #10243d;
  color: #dbe6f2;
}

#footerwrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--svvba-content));
  min-height: 48px;
  margin: 0 auto;
  padding: 7px 0;
}

#menuframe2,
#copyright {
  position: static;
  float: none;
  height: auto;
}

#menu2,
#menu2 ul {
  position: static;
  float: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  height: auto;
  margin: 0;
  padding: 0;
}

#menu2 ul li {
  float: none;
  margin: 0;
  list-style: none;
}

#menu2 a.level1:link,
#menu2 a.level1:visited {
  padding: 0;
  color: #dbe6f2;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

#copyright {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #dbe6f2;
  font-size: 12px;
  white-space: nowrap;
}

#copyright a {
  color: #fff !important;
}

.footer-credit {
  color: #91a7bf;
}

#addbasketmelding,
.infolayer,
.cookiediv,
#showpopupmessage {
  max-width: calc(100vw - 32px);
  border: 1px solid var(--svvba-line);
  border-radius: var(--svvba-radius);
  box-shadow: 0 24px 70px rgba(6, 29, 58, 0.28);
}

@media (max-width: 1020px) {
  #menu1 a.level1:link,
  #menu1 a.level1:visited {
    padding-inline: 9px;
    font-size: 13px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    flex-wrap: wrap;
    gap: 14px;
    width: min(calc(100% - 32px), var(--svvba-content));
    padding: 14px 0 16px;
  }

  #headerlogo {
    flex: 0 0 100%;
    padding: 0 52px;
    text-align: center;
  }

  #headerlogo a {
    max-width: 470px;
    justify-content: center;
    margin: 0 auto;
  }

  #headerlogo img {
    max-height: 66px;
  }

  .menu-toggle {
    position: absolute;
    top: 22px;
    right: 0;
    display: inline-flex;
    flex: 0 0 auto;
  }

  #zoekbalk {
    order: 3;
    width: 100%;
  }

  #taalbalk {
    order: 4;
    width: 100%;
  }

  #menuframe,
  #menuframe.fixed-nav {
    position: static !important;
    display: none;
    border-top: 1px solid var(--svvba-line);
    box-shadow: inset 0 10px 20px rgba(22, 50, 82, 0.03);
  }

  body.nav-is-fixed #header {
    padding-bottom: 0;
  }

  #menuframe.is-open {
    display: block;
  }

  #menu1 {
    display: block;
    width: min(calc(100% - 32px), var(--svvba-content));
    padding: 10px 0 18px;
    box-shadow: none;
  }

  #menu1 > ul {
    display: grid;
    gap: 4px;
    height: auto;
    padding: 0;
  }

  #menu1 ul li {
    border: 0;
    background: transparent;
  }

  #menu1 a.level1:link,
  #menu1 a.level1:visited {
    min-height: 46px;
    padding: 11px 13px;
    background: transparent;
    color: var(--svvba-ink);
    font-size: 15px;
  }

  #menu1 a.level1.active,
  #menu1 a.level1.hasactivesub {
    background: var(--svvba-blue);
    color: #fff;
  }

  #menu1 ul li > ul,
  #menu1 ul li:hover > ul,
  #menu1 ul li:focus-within > ul {
    position: static;
    display: block;
    min-width: 0;
    padding: 3px 0 5px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #menu1 li.level2,
  #menu1 li.level2 a {
    width: auto;
    padding: 0;
    background: transparent;
  }

  #menu1 a.level2:link,
  #menu1 a.level2:visited {
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  #topfoto {
    display: block;
    height: clamp(210px, 52vw, 320px);
  }

  #content {
    float: none;
    width: min(calc(100% - 32px), var(--svvba-content));
    margin: -24px auto 48px;
  }

  .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "aside";
    gap: 18px;
  }

  #content1,
  #content2 {
    float: none;
    width: auto;
    padding: clamp(21px, 6vw, 32px);
    border-radius: 15px;
  }

  #content2 {
    display: block;
  }

  #content2:empty {
    display: none;
  }

  .contactformulier,
  .contactvraag,
  .zoekcontent_zoekbalkinput {
    width: 100%;
  }

  body.site-template table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #footer {
    display: block;
  }

  #footerwrapper {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    width: min(calc(100% - 32px), var(--svvba-content));
  }

  #copyright {
    align-items: flex-end;
    margin-left: auto;
  }

  #menu2,
  #menu2 ul {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .footer-credit {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner,
  #menu1,
  #content,
  #footerwrapper {
    width: min(calc(100% - 24px), var(--svvba-content));
  }

  #headerlogo {
    flex-basis: 100%;
    padding: 0 42px;
  }

  .menu-toggle {
    padding-inline: 11px;
  }

  .menu-toggle > span:last-child {
    display: none;
  }

  #topfoto {
    height: 190px;
  }

  #content {
    margin-top: -18px;
  }

  #content1,
  #content2 {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
