/* =========================================================
   GeefGas – Styles (clean + luxe) – OPGESCHOOND
   Works with: index.html + examens.html + examen.html + resultaat.html + instellingen.html
   Theme: wit / zwart / goud (luxe)
   ========================================================= */

:root{
  --black:#0B0D12;
  --ink:#10131A;
  --white:#FFFFFF;
  --bg:#F5F6F8;

  --gold:#D8B55B;
  --gold2:#B9922E;

  --text:#0F1116;
  --muted:#5A6272;

  --stroke: rgba(16,19,26,.12);
  --stroke2: rgba(16,19,26,.08);

  --shadow: 0 18px 40px rgba(16,19,26,.10);

  --radius: 18px;
  --radius2: 16px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body.theme{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background:
    radial-gradient(900px 420px at 70% -10%, rgba(216,181,91,.14), transparent 60%),
    radial-gradient(700px 380px at 10% 0%, rgba(11,13,18,.06), transparent 55%),
    var(--bg);
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ width: min(1100px, 92vw); margin: 0 auto; }

.muted{ color: var(--muted); font-weight: 700; }
.gold{ color: var(--gold2); }

/* =========================================================
   TOPBAR + NAV + MOBILE MENU
   ========================================================= */
.topbar{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(11,13,18,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 150px;
}

/* ✅ Logo groter + luxe shadow */
.brand__logo{
  height: 34px;
  width:auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
@media (max-width: 420px){
  .brand__logo{ height: 36px; }
}
@media (min-width: 900px){
  .brand__logo{ height: 32px; }
}

.brand__name{
  color: var(--white);
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
}

.nav{
  display:flex;
  align-items:center;
  gap: 14px;
}

.nav__link{
  color: rgba(255,255,255,.80);
  font-weight: 850;
  padding: 8px 6px;
  white-space: nowrap;
}
.nav__link:hover{ color: var(--white); }

.nav__cta{
  padding: .65rem .95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #E2C567, #C9A63A);
  color: #111;
  font-weight: 950;
  border: 1px solid rgba(0,0,0,.15);
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(185,146,46,.22), inset 0 -2px 0 rgba(0,0,0,.14);
}

/* burger button */
.nav__mobile{
  display:none;
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 10px 10px;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__mobile span{
  display:block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.85);
  margin: 4px 0;
  border-radius: 2px;
}

/* mobile menu panel */
.mobilemenu{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(11,13,18,.98);
}
.mobilemenu__inner{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 14px 0 16px;
}
.mobilemenu__link{
  color: rgba(255,255,255,.86);
  font-weight: 900;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.mobilemenu__cta{
  color:#111;
  font-weight: 950;
  padding: 12px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #E2C567, #C9A63A);
  border: 1px solid rgba(0,0,0,.15);
}

/* responsive nav */
@media (max-width: 720px){
  .nav{ display:none; }
  .nav__mobile{ display:block; }
  .brand__name{ display:none; }
}

/* =========================================================
   PAGE + CARD
   ========================================================= */
.page{ padding: 22px 0 42px; }
.page__inner{ display:flex; flex-direction:column; gap: 16px; }

.card{
  background: var(--white);
  border: 1px solid rgba(16,19,26,.10);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(16,19,26,.10);
  padding: 16px;
}

/* =========================================================
   HERO (HOME)
   ========================================================= */
.hero{
  position: relative;
  overflow:hidden;
  border-radius: 24px;
  border: 1px solid rgba(16,19,26,.10);
  box-shadow: 0 24px 58px rgba(16,19,26,.12);
  background:
    radial-gradient(1100px 420px at 85% 5%, rgba(216,181,91,.22), transparent 60%),
    radial-gradient(900px 380px at 10% 0%, rgba(11,13,18,.06), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
}

.hero__badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(185,146,46,.28);
  background: rgba(216,181,91,.12);
  color:#2A2416;
  font-weight: 950;
  font-size: .92rem;
  box-shadow: 0 10px 26px rgba(185,146,46,.10);
}

.hero__title{
  margin: 12px 0 10px;
  font-size: clamp(1.55rem, 4.4vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -.55px;
}

.hero__text{
  margin:0;
  color: rgba(90,98,114,.95);
  font-weight: 780;
  line-height: 1.65;
  max-width: 52ch;
  font-size: 1.02rem;
}

.hero__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero__checks{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(16,19,26,.10);
  background:
    radial-gradient(420px 120px at 20% 0%, rgba(216,181,91,.16), transparent 60%),
    rgba(16,19,26,.02);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(16,19,26,.06);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  appearance:none;
  border: none;
  cursor:pointer;
  padding: .9rem 1.05rem;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: .1px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, filter .12s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.btn:active{ transform: translateY(1px); }

.btn--gold{
  background: linear-gradient(180deg, #E2C567, #C9A63A);
  color: #111;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 24px rgba(185,146,46,.22), inset 0 -2px 0 rgba(0,0,0,.14);
}

.btn--ghost{
  background: rgba(255,255,255,.72);
  color: var(--text);
  border: 1px solid rgba(16,19,26,.12);
}

.btn--primary{
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(180deg, #1A1F2A, #0B0D12);
  color: var(--white);
  border: 1px solid rgba(11,13,18,.2);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(16,19,26,.18);
}

/* =========================================================
   SECTION HEAD (HOME)
   ========================================================= */
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sectionHead__title{
  margin:0;
  font-size: 1.45rem;
  letter-spacing: -.2px;
}
.sectionHead__sub{
  margin:6px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
}

.rating{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(16,19,26,.03);
}
.rating__score{ font-weight: 950; }
.rating__stars{ color: var(--gold2); letter-spacing: 1px; }
.rating__muted{ color: var(--muted); font-weight: 800; }

/* =========================================================
   CATEGORIES GRID (HOME)
   ========================================================= */
.catGrid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px){
  .catGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.catCard{
  position: relative;
  border: 1px solid rgba(16,19,26,.10);
  border-radius: 22px;
  background: #fff;
  overflow:hidden;
  padding: 0;
  min-height: 220px;
  box-shadow: 0 18px 40px rgba(16,19,26,.10);
}
.catCard__image{
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
}
.catCard__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.catCard--active{
  outline: 2px solid rgba(216,181,91,.30);
  box-shadow: 0 26px 54px rgba(185,146,46,.18);
}

.catCard--soon{
  opacity: .6;
  pointer-events:none;
  filter: saturate(.9) contrast(.98);
}

/* =========================================================
   PACKAGES (HOME)
   ========================================================= */
.pkgList{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.pkg{
  position: relative;
  display:flex;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 2px solid rgba(16,19,26,.10);
  background:
    radial-gradient(600px 160px at 80% 0%, rgba(216,181,91,.12), transparent 60%),
    linear-gradient(180deg,#ffffff,#fbfbfc);
  cursor:pointer;
  box-shadow: 0 16px 34px rgba(16,19,26,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover:hover){
  .pkg:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(16,19,26,.12);
  }
}

.pkg--best{
  border-color: rgba(185,146,46,.30);
  box-shadow: 0 22px 46px rgba(185,146,46,.14);
}

.pkg__radio{ position:absolute; opacity:0; pointer-events:none; }

.pkg__dot{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(16,19,26,.25);
  margin-top: 4px;
  flex: 0 0 auto;
  position: relative;
}
.pkg__radio:checked + .pkg__dot{ border-color: rgba(185,146,46,.75); }
.pkg__radio:checked + .pkg__dot::after{
  content:"";
  position:absolute;
  inset: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
}

.pkg__main{ flex: 1 1 auto; }
.pkg__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.pkg__name{ font-weight: 950; font-size: 1.1rem; letter-spacing:-.2px; }
.pkg__desc{ color: var(--muted); font-weight: 750; margin-top: 2px; opacity:.92; }
.pkg__price{ font-weight: 950; font-size: 1.15rem; }

.pkg__meta{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill{
  font-size: .85rem;
  font-weight: 850;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16,19,26,.10);
  background: rgba(16,19,26,.025);
  color: var(--muted);
}
.pill--gold{
  border-color: rgba(185,146,46,.25);
  background: rgba(216,181,91,.14);
  color:#2A2416;
}

/* Features */
.featuresGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.feature{
  border: 1px solid rgba(16,19,26,.10);
  background: rgba(255,255,255,.75);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(16,19,26,.06);
}
@media (max-width: 520px){
  .featuresGrid{ grid-template-columns: 1fr; }
}

/* NOTE (algemeen) — LET OP: wordt ook gebruikt in examen (goalBox) */
.note{
  margin-top: 14px;
  border: 1px solid rgba(185,146,46,.20);
  background:
    radial-gradient(700px 220px at 85% 0%, rgba(216,181,91,.18), transparent 60%),
    rgba(216,181,91,.10);
  border-radius: 18px;
  padding: 12px 12px;
  color:#2A2416;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 16px 34px rgba(185,146,46,.10);
}

/* ✅ Alleen de “home disclaimer” weg (jouw CBR-blok had note--compact) */
.note--compact{ display:none !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 18px 4px 6px;
  color: var(--muted);
  border-top: 1px solid rgba(16,19,26,.08);
}
.footer__left{ display:flex; align-items:center; gap: 10px; }
.footer__logo{ height: 26px; width:auto; opacity:.95; }
.footer__brand{ font-weight: 950; color: var(--text); }
.footer__muted{ color: var(--muted); font-weight: 800; }
.footer__right{ font-weight: 900; }

/* =========================================================
   EXAMENS PAGE (examens.html)
   ========================================================= */
.exam-hero-image{
  margin: 16px 0 10px;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}
.exam-hero-image img{
  width: 100%;
  height: clamp(240px, 42vh, 460px);
  object-fit: contain;
  object-position: center;
  background: var(--black);
}

.exam-count-wrapper{ text-align:center; }
.exam-count{
  display:inline-block;
  margin: 16px auto 22px;
  padding: 8px 18px;
  border-radius:999px;
  background: rgba(216,181,91,.18);
  border:1px solid rgba(216,181,91,.35);
  font-weight:900;
  color:#2A2416;
}

.examItem{
  border-radius: 20px;
  background: linear-gradient(180deg,#ffffff,#faf7ef);
  border: 1px solid rgba(216,181,91,.22);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  padding: 16px;
  margin-bottom: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover:hover){
  .examItem:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(185,146,46,.18);
  }
}

.examItem__title{
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -.2px;
}
.examItem__meta{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}
.examItem__start{
  margin-top: 12px;
  width: 100%;
  padding: 14px 0;
  border-radius: 999px;
  border: none;
  font-weight: 950;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(180deg,#e0bf66,#c9a63a);
  color:#111;
  box-shadow: 0 10px 24px rgba(201,166,58,.45), inset 0 -2px 0 rgba(0,0,0,.15);
}
.examItem__start:active{ transform: translateY(1px); }

/* =========================================================
   EXAM UI (examen.html)
   ========================================================= */
body.examPage{
  background:
    radial-gradient(900px 320px at 85% 5%, rgba(216,181,91,.16), transparent 60%),
    var(--bg);
}

/* Topbar luxe goud accent */
body.examPage .topbar{
  background:
    radial-gradient(900px 260px at 75% 10%, rgba(216,181,91,.14), transparent 60%),
    linear-gradient(180deg, rgba(11,13,18,.98), rgba(11,13,18,.92));
  border-bottom: 1px solid rgba(216,181,91,.18);
}

/* Timer pill (als je de pillTimer gebruikt) */
.pillTimer{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(216,181,91,.22);
  background: rgba(11,13,18,.55);
  color: rgba(255,255,255,.95);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: .6px;
  box-shadow: 0 16px 34px rgba(0,0,0,.30), inset 0 0 0 1px rgba(216,181,91,.10);
}

/* Exam card */
.examCard{
  border-radius: 22px;
  border: 1px solid rgba(216,181,91,.18);
  background: var(--white);
  box-shadow: 0 26px 60px rgba(16,19,26,.16);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Media (foto) */
.examMedia{
  position: relative;
  width: 100%;
  background:
    radial-gradient(900px 260px at 70% 15%, rgba(216,181,91,.10), transparent 60%),
    #0B0D12;
  border-bottom: 1px solid rgba(185,146,46,.16);
  height: clamp(220px, 34vh, 460px);
  overflow: hidden;
}
.examMedia img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: contain;     /* ✅ teksten in je vraagfoto blijven zichtbaar */
  object-position: center;
}

.examBody{
  padding: 18px;
  background:var(--white);
}

/* Meta */
.examMeta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(185,146,46,.25);
  background: rgba(216,181,91,.12);
  color:#2A2416;
  font-weight: 950;
  font-size: .90rem;
}

#questionText{
  margin: 6px 0 10px;
  font-size: 1.28rem;
  line-height: 1.45;
  letter-spacing: -.15px;
  font-weight: 950;
}

/* Answers */
.answers{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 12px;
}
.answer{
  width:100%;
  text-align:left;
  display:flex;
  align-items:flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(16,19,26,.12);
  background: linear-gradient(180deg, #FFFFFF, #FBFBFC);
  cursor:pointer;
  font-weight: 950;
  font-size: 1.08rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 22px rgba(16,19,26,.06);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease, border-color .12s ease;
  color: var(--text);
}
.answer span{ color: var(--text); text-decoration:none; }

.answerKey{
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(185,146,46,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(216,181,91,.10);
  color:#2A2416;
  font-weight: 950;
  font-size: 1rem;
  margin-top: 1px;
}
@media (hover:hover){
  .answer:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(16,19,26,.10);
    border-color: rgba(185,146,46,.22);
    filter: brightness(1.01);
  }
}

.answer.selected{ border-color: rgba(216,181,91,.55); background: rgba(216,181,91,.12); }
.answer.correct{ border-color: rgba(6,118,71,.40); background: rgba(6,118,71,.08); }
.answer.wrong{ border-color: rgba(180,35,24,.40); background: rgba(180,35,24,.08); }

/* Explain */
.explain{
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(185,146,46,.16);
  background: linear-gradient(180deg, #ffffff, #fbf7ef);
  box-shadow: 0 10px 22px rgba(16,19,26,.06);
}
.explainTitle{ font-weight: 950; margin-bottom: 6px; font-size: 1.05rem; }
.explainText{ color: var(--muted); font-weight: 750; line-height: 1.6; font-size: 1.02rem; }

.examFooter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16,19,26,.10);
}

/* Mobile tweaks */
@media (max-width: 520px){
  #questionText{ font-size: 1.18rem; }
  .answer{ font-size: 1.06rem; padding: 14px 12px; }
  .answerKey{ width: 34px; height: 34px; }
  .examMedia{ height: 220px; }
}


/* =========================================================
   RESULTAAT (resultaat.html)
   ========================================================= */
details{ box-shadow: 0 10px 22px rgba(16,19,26,.06); }
details summary{ outline: none; }
details summary::-webkit-details-marker{ display:none; }
details summary{ position: relative; padding-right: 34px; }

details summary::after{
  content: "▾";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(16,19,26,.03);
  color: var(--muted);
  font-weight: 950;
  line-height: 1;
}
details[open] summary::after{ content: "▴"; }
details[open]{ border-color: rgba(185,146,46,.25) !important; }
#bar{ border-radius: 999px; }

@media (min-width: 720px){
  #retryBtn{ min-width: 240px; }
}

/* =========================================================
   INSTELLINGEN (instellingen.html)
   ========================================================= */
.settingsGrid{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.settingRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border: 1px solid rgba(16,19,26,.12);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.9);
}
.settingTitle{ font-weight: 950; margin-bottom: 2px; }

.selectLux{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(16,19,26,.12);
  font-weight:850;
  background:#fff;
}

/* Toggle */
.toggleLux{
  position: relative;
  width: 52px;
  height: 30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.toggleLux input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.toggleLux__ui{
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(16,19,26,.14);
  background: rgba(16,19,26,.06);
  position: relative;
  transition: .15s ease;
}
.toggleLux__ui::after{
  content:"";
  position:absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16,19,26,.12);
  transition: .15s ease;
}
.toggleLux input:checked + .toggleLux__ui{
  background: rgba(216,181,91,.22);
  border-color: rgba(185,146,46,.35);
}
.toggleLux input:checked + .toggleLux__ui::after{
  transform: translateX(22px);
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  border-color: rgba(0,0,0,.08);
}

/* ================================
   FIX: iOS Safari browserbalk overlap
   ================================ */

.examFooter{
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  margin-bottom: env(safe-area-inset-bottom);
}

/* Zorg dat de hele exam body niet onder de balk komt */
body.examPage .examBody{
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Extra zekerheid: knop altijd boven balk */
body.examPage .btn--gold{
  margin-bottom: env(safe-area-inset-bottom);
}


  }
  body.examPage #questionText{
    font-size: 1.12rem !important;
  }
  body.examPage .answer{
    padding: 12px 12px !important;
    font-size: 1.00rem !important;
  }
}


/* ---------- EXAM CARD ---------- */
body.examPage .examCard{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- FOTO BLOK (VOLLEDIG IN KADER) ---------- */
body.examPage .examMedia{
  flex: 0 0 auto;
  height: clamp(200px, 28dvh, 260px); /* iets lager dan eerst */
  background: #0B0D12;
  overflow: hidden;
}

body.examPage .examMedia img{
  width: 100%;
  height: 100%;
  object-fit: contain;          /* GEEN AFSNIJDEN */
  object-position: center;
}

/* ---------- CONTENT ---------- */
body.examPage .examBody{
  flex: 1 1 auto;
  overflow: hidden;             /* GEEN SCROLL */
  padding: 18px;
}

/* ---------- FOOTER (knoppen beter uit elkaar) ---------- */
body.examPage .examFooter{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;                     /* MEER RUIMTE */
  padding-top: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
  border-top: 1px solid rgba(16,19,26,.10);
  background: #fff;
}

/* Vorige subtiel */
body.examPage #prevBtn{
  min-width: 120px;
  opacity: .85;
}

/* Volgende dominant */
body.examPage #nextBtn{
  min-width: 170px;
  box-shadow: 0 12px 28px rgba(185,146,46,.35);
}

/* ---------- iPad / groter scherm ---------- */
@media (min-width: 768px){
  body.examPage .examFooter{
    gap: 32px;
  }

  body.examPage #prevBtn{
    min-width: 140px;
  }

  body.examPage #nextBtn{
    min-width: 190px;
  }

  body.examPage .examMedia{
    height: 300px;
  }

   /* =========================================================
   EXAMEN – DEFINITIEVE FIX (iPhone/iPad Safari)
   - geen scroll van pagina
   - header blijft normaal (neemt geen scherm over)
   - ruimte tussen header en foto
   - foto altijd volledig zichtbaar in blok (contain)
   - footer compact + knoppen verder uit elkaar
   ========================================================= */

:root{
  --ggTopbarH: 56px;
}

/* Page lock alleen voor examen */
body.examPage{
  height: 100dvh;
  overflow: hidden;
}

/* Header strak zwart + compact */
body.examPage .topbar{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 3000;
  background: #0B0D12 !important;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.examPage .topbar__inner{
  padding: 8px 0 !important;
}

/* BELANGRIJK: header container nooit “hoogte: 100dvh” geven */
body.examPage header.topbar .container{
  height: auto !important;
  overflow: visible !important;
}

/* Layout onder header */
body.examPage .page{
  height: 100dvh;
  overflow: hidden !important;
  padding-top: calc(var(--ggTopbarH) + 12px) !important; /* ruimte onder header */
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px) !important;
}

/* Alleen de container IN main (niet header) */
body.examPage main.page .container{
  height: calc(100dvh - var(--ggTopbarH) - 24px - env(safe-area-inset-bottom));
  overflow: hidden;
}

body.examPage .examCard{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Foto blok: altijd volledig zichtbaar */
body.examPage .examMedia{
  flex: 0 0 auto;
  height: clamp(190px, 28vh, 280px);
  background: #0B0D12;
  overflow: hidden;
  border-bottom: 1px solid rgba(185,146,46,.16);
}
body.examPage .examMedia img{
  width: 100%;
  height: 100%;
  object-fit: contain !important; /* niet croppen */
  object-position: center !important;
}

/* Body: geen scroll */
body.examPage .examBody{
  flex: 1 1 auto;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* Doelblok iets compacter (scheelt ruimte) */
body.examPage #goalBox.note{
  margin-top: 10px;
  padding: 10px 12px;
  line-height: 1.4;
}

/* Footer onderaan + knoppen verder uit elkaar */
body.examPage .examFooter{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px; /* verder uit elkaar */
  padding-top: 14px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
  border-top: 1px solid rgba(16,19,26,.10);
  background: #fff;
  box-shadow: 0 -10px 25px rgba(0,0,0,.06);
}

/* Knoppen sizing (iPad + mobiel netjes) */
body.examPage #prevBtn{ min-width: 140px; }
body.examPage #nextBtn{ min-width: 190px; }

/* Kleine schermhoogte: maak foto lager zodat niets wegvalt */
@media (max-height: 740px){
  body.examPage .examMedia{
    height: clamp(150px, 22vh, 220px);
  }
  body.examPage #questionText{
    font-size: 1.16rem;
    margin: 6px 0 8px;
  }
  body.examPage .answer{
    padding: 12px 12px;
    font-size: 1.02rem;
  }
}

/* =========================================================
   EXAMEN – DEFINITIEVE STABIELE LAYOUT (iOS / iPad / Android)
   ========================================================= */

:root{
  --ggTopbarH: 56px;
}

/* ===== Pagina lock (alleen examen) ===== */
body.examPage{
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(900px 320px at 85% 5%, rgba(216,181,91,.16), transparent 60%),
    var(--bg);
}

/* ===== Header ===== */
body.examPage .topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;

  background: #0B0D12;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: none;
}

body.examPage .topbar__inner{
  padding: 8px 0;
}

/* ❗ voorkomt dat header container schermhoogte krijgt */
body.examPage header.topbar .container{
  height: auto !important;
  overflow: visible !important;
}

/* ===== Pagina onder header ===== */
body.examPage .page{
  height: 100dvh;
  overflow: hidden;
  padding-top: calc(var(--ggTopbarH) + 12px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
}

/* Alleen main content container */
body.examPage main.page .container{
  height: calc(100dvh - var(--ggTopbarH) - 24px - env(safe-area-inset-bottom));
  overflow: hidden;
}

/* ===== Exam card ===== */
body.examPage .examCard{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}

/* ===== FOTO BLOK ===== */
body.examPage .examMedia{
  flex: 0 0 auto;
  height: clamp(190px, 28vh, 280px);
  background: #0B0D12;
  overflow: hidden;
  border-bottom: 1px solid rgba(185,146,46,.16);
}

body.examPage .examMedia img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* nooit afsnijden */
  object-position: center;
  display: block;
}

/* ===== Content ===== */
body.examPage .examBody{
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* Doel blok iets compacter */
body.examPage #goalBox.note{
  margin-top: 10px;
  padding: 10px 12px;
  line-height: 1.4;
}

/* ===== Footer ===== */
body.examPage .examFooter{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding-top: 14px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
  border-top: 1px solid rgba(16,19,26,.10);
  background: #fff;
  box-shadow: 0 -10px 25px rgba(0,0,0,.06);
}

/* Knoppen */
body.examPage #prevBtn{
  min-width: 140px;
  opacity: .8;
}

body.examPage #nextBtn{
  min-width: 190px;
  box-shadow: 0 12px 28px rgba(185,146,46,.35);
}

/* ===== Kleine schermhoogtes ===== */
@media (max-height: 740px){
  body.examPage .examMedia{
    height: clamp(150px, 22vh, 220px);
  }

  body.examPage #questionText{
    font-size: 1.16rem;
    margin: 6px 0 8px;
  }

  body.examPage .answer{
    padding: 12px 12px;
    font-size: 1.02rem;
  }
}

/* =========================================================
   EXAMEN – DEFINITIEVE STABIELE LAYOUT (iOS / iPad / Android)
   ========================================================= */

:root{
  --ggTopbarH: 56px;
}

/* ===== Pagina lock (alleen examen) ===== */
body.examPage{
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(900px 320px at 85% 5%, rgba(216,181,91,.16), transparent 60%),
    var(--bg);
}

/* ===== Header ===== */
body.examPage .topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;

  background: #0B0D12;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: none;
}

body.examPage .topbar__inner{
  padding: 8px 0;
}

/* ❗ voorkomt dat header container schermhoogte krijgt */
body.examPage header.topbar .container{
  height: auto !important;
  overflow: visible !important;
}

/* ===== Pagina onder header ===== */
body.examPage .page{
  height: 100dvh;
  overflow: hidden;
  padding-top: calc(var(--ggTopbarH) + 12px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
}

/* Alleen main content container */
body.examPage main.page .container{
  height: calc(100dvh - var(--ggTopbarH) - 24px - env(safe-area-inset-bottom));
  overflow: hidden;
}

/* ===== Exam card ===== */
body.examPage .examCard{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}

/* ===== FOTO BLOK ===== */
body.examPage .examMedia{
  flex: 0 0 auto;
  height: clamp(190px, 28vh, 280px);
  background: #0B0D12;
  overflow: hidden;
  border-bottom: 1px solid rgba(185,146,46,.16);
}

body.examPage .examMedia img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* nooit afsnijden */
  object-position: center;
  display: block;
}

/* ===== Content ===== */
body.examPage .examBody{
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* Doel blok iets compacter */
body.examPage #goalBox.note{
  margin-top: 10px;
  padding: 10px 12px;
  line-height: 1.4;
}

/* ===== Footer ===== */
body.examPage .examFooter{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding-top: 14px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
  border-top: 1px solid rgba(16,19,26,.10);
  background: #fff;
  box-shadow: 0 -10px 25px rgba(0,0,0,.06);
}

/* Knoppen */
body.examPage #prevBtn{
  min-width: 140px;
  opacity: .8;
}

body.examPage #nextBtn{
  min-width: 190px;
  box-shadow: 0 12px 28px rgba(185,146,46,.35);
}

/* ===== Kleine schermhoogtes ===== */
@media (max-height: 740px){
  body.examPage .examMedia{
    height: clamp(150px, 22vh, 220px);
  }

  body.examPage #questionText{
    font-size: 1.16rem;
    margin: 6px 0 8px;
  }

  body.examPage .answer{
    padding: 12px 12px;
    font-size: 1.02rem;
  }
}

/* =========================================================
   EXAMEN – DEFINITIEVE STABIELE LAYOUT
   - header zwart
   - foto volledig zichtbaar (GEEN crop)
   - geen scroll
   - vorige links / volgende rechts
   ========================================================= */

:root{
  --ggTopbarH: 56px;
}

/* ================= HEADER ================= */
body.examPage .topbar{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: #0B0D12 !important;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.examPage .topbar__inner{
  padding: 8px 0 !important;
}

/* Header container mag NOOIT schermhoogte krijgen */
body.examPage header.topbar .container{
  height: auto !important;
  overflow: visible !important;
}

/* ================= PAGE LOCK ================= */
body.examPage{
  height: 100dvh;
  overflow: hidden;
}

/* Pagina start onder header */
body.examPage .page{
  height: 100dvh;
  overflow: hidden;
  padding-top: calc(var(--ggTopbarH) + 12px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
}

/* Alleen main content container */
body.examPage main.page .container{
  height: calc(100dvh - var(--ggTopbarH) - 24px - env(safe-area-inset-bottom));
  overflow: hidden;
}

/* ================= EXAM CARD ================= */
body.examPage .examCard{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ================= FOTO BLOK ================= */
body.examPage .examMedia{
  flex: 0 0 auto;
  height: clamp(190px, 28vh, 280px);
  background: #0B0D12;
  overflow: hidden;
  border-bottom: 1px solid rgba(185,146,46,.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOTO: NOOIT AFGESNEDEN */
body.examPage .examMedia img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;   /* 🔴 GEEN CROP */
  object-position: center !important;
  display: block;
}

/* ================= CONTENT ================= */
body.examPage .examBody{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
}

/* Doelblok iets compacter */
body.examPage #goalBox.note{
  margin-top: 10px;
  padding: 10px 12px;
  line-height: 1.4;
}

/* ================= FOOTER ================= */
body.examPage .examFooter{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
  border-top: 1px solid rgba(16,19,26,.10);
  background: #fff;
  box-shadow: 0 -10px 25px rgba(0,0,0,.06);
}

/* Vorige links */
body.examPage #prevBtn{
  min-width: 140px;
  margin-right: auto;
  opacity: .85;
}

/* Volgende rechts (dominant) */
body.examPage #nextBtn{
  min-width: 190px;
  margin-left: auto;
  box-shadow: 0 12px 28px rgba(185,146,46,.35);
}

/* ================= KLEINE SCHERMEN ================= */
@media (max-height: 740px){
  body.examPage .examMedia{
    height: clamp(150px, 22vh, 220px);
  }
  body.examPage #questionText{
    font-size: 1.16rem;
    margin: 6px 0 8px;
  }
  body.examPage .answer{
    padding: 12px;
    font-size: 1.02rem;
  }
}

/* ================= iPAD ================= */
@media (min-width: 768px){
  body.examPage .examFooter{
    gap: 32px;
  }
  body.examPage #prevBtn{ min-width: 160px; }
  body.examPage #nextBtn{ min-width: 220px; }
  body.examPage .examMedia{ height: 300px; }
}
