/* ============ Lettertypen (Hanken Grotesk + Newsreader) ============ */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/af7fee92-cc1e-4064-9de9-580bec2a0c16.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/03a9ec84-16bf-415b-9868-a55ded460563.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/28de9217-d62a-4a93-bbff-478c184d26af.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dc36c14e-3878-4ed7-b12c-82b703f719ae.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/af7fee92-cc1e-4064-9de9-580bec2a0c16.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/03a9ec84-16bf-415b-9868-a55ded460563.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/28de9217-d62a-4a93-bbff-478c184d26af.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dc36c14e-3878-4ed7-b12c-82b703f719ae.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/af7fee92-cc1e-4064-9de9-580bec2a0c16.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/03a9ec84-16bf-415b-9868-a55ded460563.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/28de9217-d62a-4a93-bbff-478c184d26af.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dc36c14e-3878-4ed7-b12c-82b703f719ae.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/af7fee92-cc1e-4064-9de9-580bec2a0c16.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/03a9ec84-16bf-415b-9868-a55ded460563.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/28de9217-d62a-4a93-bbff-478c184d26af.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/dc36c14e-3878-4ed7-b12c-82b703f719ae.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/8d926637-0f16-48f3-9c2e-a3ee5e3c314a.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/e924a175-45f7-4ffa-a5a0-0aee3247b892.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/7d07a307-ad8e-4936-b736-84f4ee46f999.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/8d926637-0f16-48f3-9c2e-a3ee5e3c314a.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/e924a175-45f7-4ffa-a5a0-0aee3247b892.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/7d07a307-ad8e-4936-b736-84f4ee46f999.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/8d926637-0f16-48f3-9c2e-a3ee5e3c314a.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/e924a175-45f7-4ffa-a5a0-0aee3247b892.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/7d07a307-ad8e-4936-b736-84f4ee46f999.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   reMendel huisstijl
   Gedeeld stylesheet voor alle pagina's. Kleuren, typografie en de
   terugkerende componenten (logo, knoppen, tegels, zijmenu) staan hier,
   zodat elke pagina dezelfde uitstraling heeft.
   ========================================================================== */

:root {
  /* Kleuren */
  --inkt:            #1C3A5E;   /* hoofdkleur: koppen, logo, zijmenu */
  --inkt-donker:     #142C49;   /* hover op donkere knoppen */
  --terra:           #C57B5C;   /* accent: het bolletje, lijnen */
  --lucht:           #DCE8F4;   /* lichtblauwe band achter de kop */
  --mist:            #E6EEF5;   /* achtergrond van de tegels */
  --mist-rand:       #DCE6F1;   /* rand van de tegels */
  --mist-rand-hover: #C9D8EC;
  --tekst:           #4C6885;   /* lopende tekst in tegels */
  --tekst-zacht:     #41607F;   /* ondertitels */
  --papier:          #FAF9F5;   /* paginakleur */

  /* Typografie */
  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* Maatvoering */
  --band-breedte: 304px;
  --marge-zij: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  font-family: var(--sans);
  color: var(--inkt);
  background: var(--papier);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: inherit; }

/* Pagina-omhulsel -------------------------------------------------------- */
.rm-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Menuknop (hamburger) --------------------------------------------------- */
.rm-menu-toggle {
  position: absolute;
  top: 30px;
  left: var(--marge-zij);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  padding: 6px;
  margin: -6px;
  cursor: pointer;
  color: var(--inkt);
}
.rm-menu-toggle .bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rm-menu-toggle .bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.rm-menu-toggle .label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}
/* kruisje wanneer het menu open is */
.rm-page.menu-open .rm-menu-toggle { color: #fff; }
.rm-page.menu-open .rm-menu-toggle .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rm-page.menu-open .rm-menu-toggle .bars span:nth-child(2) { opacity: 0; }
.rm-page.menu-open .rm-menu-toggle .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Kop met logo ----------------------------------------------------------- */
.rm-headband { background: var(--lucht); }
.rm-header {
  position: relative;
  text-align: center;
  padding: 28px var(--marge-zij) 4px;
  z-index: 50;
}
.rm-logo {
  display: inline-flex;
  align-items: baseline;
}
.rm-logo .naam {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -.014em;
  color: var(--inkt);
  line-height: 1;
}
.rm-logo .stip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
  margin-left: 8px;
  transform: translateY(-11px);
}
.rm-subtitle {
  text-align: center;
  padding: 0 var(--marge-zij) 22px;
  color: var(--tekst-zacht);
  font-size: 15.5px;
  line-height: 1.5;
  letter-spacing: .01em;
}
/* Op binnenpagina's komt hier de paginanaam in plaats van de ondertitel */
.rm-pagenaam {
  text-align: center;
  padding: 0 var(--marge-zij) 22px;
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--inkt);
  line-height: 1.1;
}
/* golvende scheiding onder de kop */
.rm-wave { display: block; width: 100%; height: 64px; margin-top: -1px; }

/* Zijmenu (band) --------------------------------------------------------- */
.rm-band {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--band-breedte);
  box-sizing: border-box;
  background: var(--inkt);
  z-index: 55;
  padding: 74px 26px 32px;
  box-shadow: 24px 0 60px -22px rgba(20, 40, 70, .55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  /* standaard gesloten: uit beeld gefade */
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.rm-page.menu-open .rm-band {
  opacity: 1;
  pointer-events: auto;
}
.rm-band a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  transition: background .18s ease;
}
.rm-band a:hover,
.rm-band a:focus-visible { background: rgba(255, 255, 255, .08); }
.rm-band a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.rm-band a .pijl { font-size: 15px; color: rgba(255, 255, 255, .5); }

/* overlay achter het open menu (om te sluiten) */
.rm-scrim {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(20, 40, 70, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.rm-page.menu-open .rm-scrim { opacity: 1; pointer-events: auto; }

/* Hoofdinhoud ------------------------------------------------------------ */
.rm-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px var(--marge-zij);
}

/* Tegels ----------------------------------------------------------------- */
.rm-tiles {
  display: flex;
  gap: 28px;
  width: 100%;
  max-width: 1000px;
}
.rm-tile {
  flex: 1;
  background: var(--mist);
  border: 1px solid var(--mist-rand);
  border-radius: 28px;
  padding: 34px 36px 30px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.rm-tile:hover,
.rm-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -26px rgba(28, 58, 94, .42);
  border-color: var(--mist-rand-hover);
  outline: none;
}
.rm-tile-top { display: flex; gap: 12px; align-items: flex-start; }
.rm-tile-body { flex: 1; min-width: 0; padding-top: 8px; }
.rm-tile h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.rm-tile p {
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--tekst);
  margin: 0;
}
.rm-tile-illu {
  width: 186px;
  height: 186px;
  flex-shrink: 0;
  display: block;
  margin: -6px -8px -6px 0;
}
.rm-tile-cta { text-align: center; margin-top: 14px; }

/* Knop ------------------------------------------------------------------- */
.rm-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--inkt);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease;
}
.rm-cta:hover,
.rm-cta:focus-visible { background: var(--inkt-donker); outline: none; }
.rm-cta .rm-arrow { transition: transform .2s ease; }
.rm-tile:hover .rm-arrow,
.rm-cta:hover .rm-arrow { transform: translateX(3px); }

/* Binnenpagina's --------------------------------------------------------- */
.rm-main.is-page { justify-content: flex-start; }
.rm-content { width: 100%; max-width: 820px; }
.rm-page-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--inkt);
  margin: 0 0 14px;
}
.rm-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--tekst);
  margin: 0 0 32px;
  max-width: 60ch;
}
.rm-placeholder {
  background: var(--mist);
  border: 1px dashed var(--mist-rand-hover);
  border-radius: 20px;
  padding: 40px 34px;
  color: var(--tekst);
  font-size: 15.5px;
  line-height: 1.6;
}
.rm-placeholder strong { color: var(--inkt); font-weight: 600; }

/* Oefenmateriaal: niveaus, klassen, items en de weergave -------------------- */
.oef-content { width: 100%; max-width: 1000px; }

.oef-grid {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.oef-niveau {
  flex: 1;
  min-width: 0;
  background: var(--mist);
  border: 1px solid var(--mist-rand);
  border-radius: 20px;
  overflow: hidden;
}
/* niveaukop (MAVO / HAVO / VWO) */
.oef-niveau > .oef-kop {
  width: 100%;
  display: block;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--inkt);
  text-align: center;
}
.oef-niveau > .oef-kop .caret { margin-left: 7px; }
.oef-kop .caret {
  font-size: 13px;
  color: var(--terra);
  transition: transform .22s ease;
}
.oef-niveau.open > .oef-kop .caret,
.oef-klas.open > .oef-kop .caret { transform: rotate(90deg); }

/* uitklapbare inhoud: vloeit open en dicht op de echte inhoudshoogte.
   Techniek: een grid-rij die van 0fr naar 1fr groeit; daardoor is de
   animatie beide kanten op even soepel, zonder vaste maximumhoogtes. */
.oef-uitklap {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.oef-uitklap > * {
  overflow: hidden;
  min-height: 0;
}
.oef-niveau.open > .oef-uitklap,
.oef-klas.open > .oef-uitklap { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .oef-uitklap, .oef-kop .caret { transition: none; }
}

.oef-klassen { padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }
.oef-klassen > :last-child { margin-bottom: 14px; }
.oef-klas {
  background: #fff;
  border: 1px solid var(--mist-rand);
  border-radius: 14px;
  overflow: hidden;
}
.oef-klas > .oef-kop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--inkt);
  text-align: left;
}

.oef-items { padding: 0 10px; display: flex; flex-direction: column; gap: 4px; }
.oef-items > :first-child { margin-top: 2px; }
.oef-items > :last-child { margin-bottom: 12px; }
.oef-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tekst);
  text-align: left;
  transition: background .16s ease, color .16s ease;
}
.oef-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}
.oef-item:hover,
.oef-item:focus-visible { background: var(--mist); color: var(--inkt); outline: none; }
.oef-item.actief { background: var(--inkt); color: #fff; }
.oef-item.actief::before { background: #fff; }

.oef-leeg {
  padding: 10px 13px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tekst);
  opacity: .8;
}

/* de brede weergave onder de drie menu's */
.oef-viewer {
  margin-top: 26px;
  border: 1px solid var(--mist-rand);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.oef-viewer[hidden] { display: none; }
.oef-viewer-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--mist);
  border-bottom: 1px solid var(--mist-rand);
}
.oef-viewer-titel { font-size: 16px; font-weight: 600; color: var(--inkt); }
.oef-viewer-sluit {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--tekst);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .16s ease, color .16s ease;
}
.oef-viewer-sluit:hover,
.oef-viewer-sluit:focus-visible { background: #fff; color: var(--inkt); outline: none; }
.oef-viewer-frame { display: block; width: 100%; height: 70vh; border: none; }

@media (max-width: 760px) {
  .oef-grid { flex-direction: column; }
  .oef-viewer-frame { height: 60vh; }
}

/* Footer ----------------------------------------------------------------- */
.rm-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 48px var(--marge-zij) 56px;
}
.rm-footer img { height: 37px; width: auto; opacity: .92; }

/* Mededeling onderaan (lichtblauwe balk) --------------------------------- */
.rm-disclaimer {
  position: relative;
  z-index: 1;
  margin: 0;
  background: var(--lucht);
  color: var(--inkt);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px var(--marge-zij);
}

/* Toegankelijkheid ------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* Responsief ------------------------------------------------------------- */
@media (max-width: 760px) {
  :root { --marge-zij: 22px; }
  .rm-logo .naam { font-size: 44px; }
  /* Banner rechts uitlijnen: op smalle schermen oogt gecentreerd gedrongen
     naast de menuknop linksboven; rechts uitgelijnd krijgt het lucht. */
  .rm-header, .rm-subtitle, .rm-pagenaam { text-align: right; }
  .rm-tiles { flex-direction: column; gap: 20px; }
  .rm-main { padding: 40px var(--marge-zij); }
  /* tegels passend maken zodat de titel niet achter de illustratie valt */
  .rm-tile { padding: 24px 22px 22px; }
  .rm-tile h3 { font-size: 19px; overflow-wrap: anywhere; }
  .rm-tile-illu { width: 88px; height: 88px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* Alleen echte keyframe-animaties temperen; zachte fades en hovers blijven. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


/* ============ Paginaovergangen (fade tussen de pagina's) ============ */
/* Moderne browsers (Chrome, Edge, Safari) vervagen de oude pagina en laten
   de nieuwe opkomen via de View Transitions API: geen vertraging, echte
   cross-fade. Browsers zonder ondersteuning (zoals Firefox) krijgen als
   vangnet een zachte fade-in bij binnenkomst. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: rm-pagina-uit .2s ease both; }
::view-transition-new(root) { animation: rm-pagina-in .3s ease both; }

@keyframes rm-pagina-uit { to { opacity: 0; } }
@keyframes rm-pagina-in { from { opacity: 0; } }

@supports not (view-transition-name: root) {
  body { animation: rm-pagina-in .3s ease both; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root) { animation: rm-pagina-uit .2s ease both; }
  ::view-transition-new(root) { animation: rm-pagina-in .3s ease both; }
  body { animation-duration: .3s !important; animation-iteration-count: 1 !important; }
}
