/* SpetterPlanner — huisstijl: wit/blauw, water */

:root {
  --diep: #063b7a;
  --oceaan: #0a4f9e;
  --blauw: #0a6fd6;
  --helder: #2b9bf4;
  --licht: #5cc8ff;
  --schuim: #eaf6ff;
  --nevel: #f5faff;
  --wit: #ffffff;
  --tekst: #0b2545;
  --tekst-zacht: #5a7397;
  --rand: #d6e8fa;
  --fout: #d64545;
  --succes: #1f9d64;

  --kern: #e5484d;
  --warming: #23a26a;
  --cooling: #5468e0;

  --verloop: linear-gradient(135deg, var(--licht) 0%, var(--helder) 45%, var(--blauw) 100%);
  --verloop-kop: linear-gradient(160deg, #3fb5f5 0%, var(--blauw) 55%, var(--oceaan) 100%);
  --schaduw-s: 0 2px 8px rgba(10, 111, 214, .08);
  --schaduw-m: 0 10px 30px rgba(10, 111, 214, .14);
  --schaduw-l: 0 20px 50px rgba(6, 59, 122, .22);

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ruimte-1: 4px;
  --ruimte-2: 8px;
  --ruimte-3: 12px;
  --ruimte-4: 16px;
  --ruimte-5: 24px;
  --ruimte-6: 32px;
  --ruimte-7: 48px;

  --golf-ease: cubic-bezier(.65, 0, .35, 1);
  --veer: cubic-bezier(.34, 1.56, .64, 1);
  --uit: cubic-bezier(.22, 1, .36, 1);

  --balk-hoogte: 76px;
  --veilig-onder: env(safe-area-inset-bottom, 0px);
  --veilig-boven: env(safe-area-inset-top, 0px);

  --golf-rand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23f5faff' d='M0 30 C 240 0 480 60 720 30 C 960 0 1200 60 1440 30 L1440 60 L0 60 Z'/%3E%3C/svg%3E");

  --font: "Segoe UI Variable Display", "SF Pro Rounded", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

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

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font);
  color: var(--tekst);
  background: var(--nevel);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--blauw); }
img, video { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--licht);
  outline-offset: 2px;
  border-radius: 10px;
}

.ikoon { display: inline-grid; place-items: center; flex: none; width: 1.25em; height: 1.25em; }
.ikoon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ikoon-zacht { color: #9ab0c9; }

.zacht { color: var(--tekst-zacht); }
.klein { font-size: .88rem; }
.noscript { padding: 24px; text-align: center; }

/* ---------- Podium en pagina's ---------- */

.podium { position: fixed; inset: 0; overflow: hidden; }

.pagina {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--nevel);
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.podium > .pagina { position: absolute; inset: 0; }

.pagina.met-balk { padding-bottom: calc(var(--balk-hoogte) + var(--veilig-onder) + var(--ruimte-7)); }

/* Schuifovergangen tussen schermen */
.pagina.in-vooruit  { z-index: 2; animation: in-vooruit .5s var(--uit) both; box-shadow: -20px 0 50px rgba(6, 59, 122, .12); }
.pagina.uit-vooruit { z-index: 1; animation: uit-vooruit .5s var(--uit) both; }
.pagina.in-terug    { z-index: 1; animation: in-terug .5s var(--uit) both; }
.pagina.uit-terug   { z-index: 2; animation: uit-terug .45s var(--golf-ease) both; box-shadow: -20px 0 50px rgba(6, 59, 122, .12); }

/* Paneel van onder naar boven (lesflow via de +) */
.pagina.in-omhoog  { z-index: 2; animation: in-omhoog .55s var(--uit) both; box-shadow: 0 -20px 50px rgba(6, 59, 122, .18); }
.pagina.uit-omhoog { z-index: 1; animation: uit-omhoog .55s var(--uit) both; }
.pagina.in-omlaag  { z-index: 1; animation: in-omlaag .5s var(--uit) both; }
.pagina.uit-omlaag { z-index: 2; animation: uit-omlaag .45s var(--golf-ease) both; box-shadow: 0 -20px 50px rgba(6, 59, 122, .18); }

.pagina-start .inhoud > *,
.pagina-binnenkomst .inhoud > * { animation: verschijn .6s var(--uit) both; }
.pagina-binnenkomst .inhoud > :nth-child(2) { animation-delay: .05s; }
.pagina-binnenkomst .inhoud > :nth-child(3) { animation-delay: .1s; }
.pagina-binnenkomst .inhoud > :nth-child(4) { animation-delay: .15s; }
.pagina-binnenkomst .inhoud > :nth-child(n+5) { animation-delay: .2s; }

.inhoud {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--ruimte-3) var(--ruimte-5) var(--ruimte-7);
}

.inhoud-smal { max-width: 680px; }

/* ---------- Startscherm ---------- */

.start {
  position: relative;
  flex: 1;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--wit);
  background: linear-gradient(180deg, #8fe0ff 0%, #39b2f2 22%, #1290e6 48%, #0a6fd6 72%, #08519f 100%);
}

.start-oppervlak {
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
  background:
    radial-gradient(70% 90% at 50% -20%, rgba(255,255,255,.9), transparent 70%),
    repeating-radial-gradient(ellipse at 50% -60%, rgba(255,255,255,.12) 0 4px, transparent 4px 22px);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
  animation: oppervlak 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.kaustiek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(4px);
  opacity: .8;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.lichtbundels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lichtbundels span {
  position: absolute;
  top: -10%;
  left: var(--x);
  width: var(--b, 70px);
  height: 120%;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 75%);
  filter: blur(14px);
  transform-origin: 50% 0;
  transform: rotate(var(--r, 12deg));
  opacity: .5;
  animation: bundel var(--d, 9s) ease-in-out infinite alternate;
}
.lichtbundels span:nth-child(1) { --x: 8%;  --b: 60px;  --r: 18deg; --d: 8s; }
.lichtbundels span:nth-child(2) { --x: 28%; --b: 110px; --r: 12deg; --d: 11s; }
.lichtbundels span:nth-child(3) { --x: 50%; --b: 50px;  --r: 6deg;  --d: 7s; }
.lichtbundels span:nth-child(4) { --x: 66%; --b: 90px;  --r: -4deg; --d: 10s; }
.lichtbundels span:nth-child(5) { --x: 86%; --b: 70px;  --r: -10deg; --d: 9s; }

.bellen { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bellen span {
  position: absolute;
  bottom: -40px;
  left: var(--x, 50%);
  width: var(--maat, 14px);
  height: var(--maat, 14px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25) 55%, rgba(255,255,255,.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
  animation: opstijgen var(--duur, 10s) var(--vertraging, 0s) ease-in infinite;
}
.bellen span:nth-child(1)  { --x: 6%;  --maat: 16px; --duur: 11s; --vertraging: 0s; }
.bellen span:nth-child(2)  { --x: 17%; --maat: 8px;  --duur: 8s;  --vertraging: 2s; }
.bellen span:nth-child(3)  { --x: 29%; --maat: 22px; --duur: 13s; --vertraging: 4s; }
.bellen span:nth-child(4)  { --x: 41%; --maat: 10px; --duur: 9s;  --vertraging: 1s; }
.bellen span:nth-child(5)  { --x: 54%; --maat: 14px; --duur: 12s; --vertraging: 5s; }
.bellen span:nth-child(6)  { --x: 63%; --maat: 7px;  --duur: 7s;  --vertraging: 3s; }
.bellen span:nth-child(7)  { --x: 74%; --maat: 18px; --duur: 10s; --vertraging: 6s; }
.bellen span:nth-child(8)  { --x: 83%; --maat: 9px;  --duur: 9s;  --vertraging: 7.5s; }
.bellen span:nth-child(9)  { --x: 91%; --maat: 13px; --duur: 12s; --vertraging: 2.5s; }
.bellen span:nth-child(10) { --x: 47%; --maat: 6px;  --duur: 6s;  --vertraging: 4.5s; }

.start-inhoud {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: var(--ruimte-6) var(--ruimte-5) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(-6vh);
}

.logo-teken { display: inline-grid; place-items: center; }
.logo-teken svg { width: 100%; height: 100%; }

.start-logo {
  width: clamp(92px, 24vw, 132px);
  height: clamp(92px, 24vw, 132px);
  color: var(--wit);
  filter: drop-shadow(0 6px 18px rgba(6, 59, 122, .35));
  animation: verschijn 1s var(--uit) both, dobberen 5s 1s ease-in-out infinite;
}

.start-titel {
  margin: var(--ruimte-2) 0 0;
  font-size: clamp(2.5rem, 11vw, 4.8rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.03em;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(6, 59, 122, .35);
  animation: verschijn 1s .12s var(--uit) both;
}
.start-titel:focus { outline: none; }

.start-swoosh {
  display: block;
  width: clamp(160px, 50vw, 300px);
  height: 18px;
  margin: var(--ruimte-2) 0 var(--ruimte-4);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18'%3E%3Cpath d='M4 12 C 80 2 200 2 296 10' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: swoosh 1.1s .3s var(--uit) both;
}

.start-slogan {
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  opacity: .95;
  text-shadow: 0 2px 12px rgba(6, 59, 122, .35);
  animation: verschijn 1s .24s var(--uit) both;
}

.start-golven { position: absolute; inset: auto 0 0; height: 46%; pointer-events: none; }
.sgolf {
  position: absolute;
  inset: auto 0 0;
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 1200px 100%;
  animation: stroming linear infinite;
}
.sgolf-1 {
  height: 100%;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C 200 40 400 200 600 120 C 800 40 1000 200 1200 120' fill='none' stroke='white' stroke-width='3'/%3E%3Cpath d='M0 150 C 200 70 400 230 600 150 C 800 70 1000 230 1200 150 L1200 300 L0 300 Z' fill='white' fill-opacity='.18'/%3E%3C/svg%3E");
  animation-duration: 20s;
}
.sgolf-2 {
  height: 75%;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 100 C 200 180 400 20 600 100 C 800 180 1000 20 1200 100' fill='none' stroke='white' stroke-width='5'/%3E%3Cpath d='M0 120 C 200 200 400 40 600 120 C 800 200 1000 40 1200 120 L1200 300 L0 300 Z' fill='%2308519f' fill-opacity='.35'/%3E%3C/svg%3E");
  animation-duration: 14s;
  animation-direction: reverse;
}
.sgolf-3 {
  height: 48%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 110 C 200 40 400 180 600 110 C 800 40 1000 180 1200 110 L1200 300 L0 300 Z' fill='%23063b7a' fill-opacity='.45'/%3E%3C/svg%3E");
  animation-duration: 10s;
}

.start-onder {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 var(--ruimte-5) calc(12vh + var(--veilig-onder));
}

.knop-start {
  min-width: min(300px, 80vw);
  padding: 18px 36px;
  font-size: 1.15rem;
  color: var(--wit);
  background: linear-gradient(135deg, #0d5fbf, var(--diep));
  box-shadow: 0 12px 30px rgba(3, 30, 70, .45), inset 0 1px 0 rgba(255,255,255,.25);
  animation: verschijn 1s .4s var(--uit) both;
}
.knop-start:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(3, 30, 70, .5), inset 0 1px 0 rgba(255,255,255,.25); }
.knop-start::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,.8);
  opacity: 0;
  animation: pulsring 2.6s 1.6s ease-out infinite;
  pointer-events: none;
}
.knop-pijl { transition: transform .3s var(--uit); }
.knop-start:hover .knop-pijl { transform: translateX(4px); }

/* ---------- Knoppen ---------- */

.knop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-2);
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform .25s var(--veer), box-shadow .25s var(--uit), background-color .2s, opacity .2s;
  user-select: none;
}
.knop:active:not(:disabled) { transform: scale(.96); }
.knop:disabled { opacity: .5; }

.knop-primair {
  color: var(--wit);
  background: var(--verloop);
  box-shadow: 0 8px 22px rgba(10, 111, 214, .32), inset 0 1px 0 rgba(255,255,255,.35);
}
.knop-primair:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10, 111, 214, .4), inset 0 1px 0 rgba(255,255,255,.35); }

.knop-secundair { color: var(--blauw); background: var(--schuim); }
.knop-secundair:hover { background: #dcefff; }

.knop-gevaar { color: var(--wit); background: var(--fout); box-shadow: 0 8px 20px rgba(214, 69, 69, .3); }

.knop-tekst {
  padding: 10px 14px;
  color: var(--blauw);
  background: transparent;
  font-size: .95rem;
}
.knop-tekst:hover { background: var(--schuim); }
.knop-tekst.gevaar { color: var(--fout); }
.knop-tekst.gevaar:hover { background: #fdecec; }

.knop-breed { flex: 1; width: 100%; }

.rimpel {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .45);
  animation: rimpel .65s var(--uit) forwards;
  pointer-events: none;
  z-index: -1;
}
.knop-secundair .rimpel, .knop-tekst .rimpel, .tab .rimpel, .menu-item .rimpel, .tegel .rimpel { background: rgba(43, 155, 244, .2); }

.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Koppen ---------- */

.golf-kop {
  position: sticky;
  top: 0;
  z-index: 5;
  flex: none;
  color: var(--wit);
  background: var(--verloop-kop);
  padding-top: var(--veilig-boven);
}

.golf-kop-rij {
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--ruimte-3) var(--ruimte-3) var(--ruimte-5);
}

.golf-kop-titel {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(1.1rem, 4.4vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.golf-kop-titel:focus { outline: none; }

.golf-kop-golf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18px;
  background: var(--golf-rand) 0 100% / 720px 100% repeat-x;
  animation: stroming-kop 16s linear infinite;
}

.kop-knop {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, .16);
  transition: background-color .2s, transform .3s var(--veer);
}
.kop-knop .ikoon { width: 22px; height: 22px; }
.kop-knop:hover { background: rgba(255, 255, 255, .28); }
.kop-knop:active { transform: scale(.9); }
.kop-knop-ruimte { width: 42px; flex: none; }
.kop-knop.klein { width: 36px; height: 36px; color: var(--tekst-zacht); background: transparent; }
.kop-knop.klein:hover { background: var(--schuim); color: var(--blauw); }
.hart-kop.aan .ikoon svg { fill: #ff6b81; stroke: #ff6b81; }

/* App-kop van de bibliotheek */
.app-kop {
  position: relative;
  flex: none;
  padding: calc(var(--ruimte-4) + var(--veilig-boven)) var(--ruimte-5) var(--ruimte-6);
  background: var(--verloop-kop);
  color: var(--wit);
  text-align: center;
}
.app-kop-merk {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-2);
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.02em;
}
.app-kop-logo { width: 40px; height: 40px; }
.app-kop-terug, .account-terug {
  position: absolute;
  z-index: 2;
  top: calc(var(--ruimte-3) + var(--veilig-boven));
  left: var(--ruimte-3);
  color: var(--wit);
}
@media (min-width: 1024px) {
  .app-kop-terug, .account-terug { left: max(var(--ruimte-6), calc((100% - 1100px) / 2 + var(--ruimte-6))); }
}
.app-kop-golf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 26px;
  background: var(--golf-rand) 0 100% / 900px 100% repeat-x;
  animation: stroming-kop 20s linear infinite;
}

.pagina-titel {
  margin: var(--ruimte-2) 0 var(--ruimte-4);
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--diep);
}
.pagina-titel:focus { outline: none; }

/* ---------- Bibliotheek ---------- */

.zoekbalk { display: flex; gap: var(--ruimte-2); margin-bottom: var(--ruimte-3); }

.zoekveld {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  padding: 0 var(--ruimte-4);
  border: 1.5px solid var(--rand);
  border-radius: 999px;
  background: var(--wit);
  color: var(--tekst-zacht);
  box-shadow: var(--schaduw-s);
  transition: border-color .2s, box-shadow .2s;
}
.zoekveld:focus-within { border-color: var(--helder); box-shadow: 0 0 0 4px rgba(43, 155, 244, .18); }
.zoek-invoer { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 0; background: none; color: var(--tekst); }
.zoek-invoer::placeholder { color: #9ab0c9; }

.filter-knop {
  position: relative;
  flex: none;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--wit);
  background: var(--verloop);
  box-shadow: 0 8px 20px rgba(10, 111, 214, .3);
  transition: transform .3s var(--veer);
}
.filter-knop:hover { transform: translateY(-2px); }
.filter-knop .ikoon { width: 24px; height: 24px; }
.filter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
  background: var(--diep);
  border: 2px solid var(--wit);
  animation: plop .4s var(--veer);
}

.actieve-filters { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin-bottom: var(--ruimte-3); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 14px;
  border: 0;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blauw);
  background: var(--schuim);
  animation: plop .3s var(--veer);
}
.chip .ikoon { width: 16px; height: 16px; }
.chip:hover { background: #dcefff; }

.lijst-balk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-3);
  margin-bottom: var(--ruimte-3);
}
.telling { margin: 0; font-weight: 700; }
.sorteer { display: inline-flex; align-items: center; gap: 2px; font-size: .92rem; }
.sorteer > span:first-child { color: var(--tekst-zacht); font-weight: 500; }

.les-lijst {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--ruimte-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.les-lijst > li:only-child:has(.leeg) { grid-column: 1 / -1; }
.les-kaart-wrap { animation: verschijn .5s calc(var(--i, 0) * 45ms) var(--uit) both; }

.les-kaart {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--ruimte-2) var(--ruimte-3);
  padding: var(--ruimte-3);
  border: 1px solid var(--rand);
  border-radius: var(--radius-m);
  background: var(--wit);
  box-shadow: var(--schaduw-s);
  transition: transform .3s var(--uit), box-shadow .3s var(--uit), border-color .3s;
}
.les-kaart:hover { transform: translateY(-3px); box-shadow: var(--schaduw-m); border-color: #bfdcf7; }
.les-kaart:active { transform: scale(.99); }

.les-kaart-tekst { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.les-kaart-boven { display: flex; flex-wrap: wrap; gap: 6px; }
.les-kaart-titel { margin: 2px 0 0; font-size: 1.05rem; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.kaart-link { color: var(--tekst); text-decoration: none; }
.kaart-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kaart-link:focus-visible { outline: none; }
.kaart-link:focus-visible::after { outline: 3px solid var(--licht); outline-offset: 2px; }
.les-kaart-sport { margin: 0; font-size: .88rem; color: var(--tekst-zacht); }

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; font-size: .85rem; color: var(--tekst-zacht); }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item .ikoon { width: 16px; height: 16px; color: var(--helder); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; color: var(--blauw); background: var(--schuim); }

.les-kaart-voet {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: var(--ruimte-2);
  border-top: 1px solid #edf4fc;
  font-size: .8rem;
  color: var(--tekst-zacht);
}
.les-kaart-voet .ikoon { width: 15px; height: 15px; }

.hart-knop {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 38px;
  height: 38px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--helder);
  background: transparent;
  transition: transform .3s var(--veer), background-color .2s;
}
.hart-knop:hover { background: var(--schuim); }
.hart-knop .ikoon { width: 22px; height: 22px; }
.hart-knop.aan { color: #ff5c77; }
.hart-knop.klop, .hart-kop.klop { animation: hartklop .45s var(--veer); }
.hart-knop.aan svg { fill: currentColor; }

.label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .02em;
  color: var(--wit);
  background: var(--helder);
}
.label:empty { display: none; }
.label-kern { background: var(--kern); }
.label-warming-up { background: var(--warming); }
.label-cooling-down { background: var(--cooling); }
.label-zacht { color: var(--tekst-zacht); background: #edf4fc; }

/* Miniatuur */
.miniatuur {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--wit);
  background: linear-gradient(160deg, var(--a, #6fd3ff), var(--b, #0a6fd6));
  isolation: isolate;
}
.tint-0 { --a: #79d7ff; --b: #0a5fc4; }
.tint-1 { --a: #8ee6f2; --b: #1c8fd8; }
.tint-2 { --a: #74c7ff; --b: #2d5bd0; }
.tint-3 { --a: #6fe0e6; --b: #0b78b8; }
.tint-4 { --a: #9bd2ff; --b: #2a4fb8; }
.miniatuur::after {
  content: "";
  position: absolute;
  inset: auto -10% -2px;
  height: 40%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 15 C 30 0 70 30 100 15 C 130 0 170 30 200 15 L200 40 L0 40 Z' fill='white' fill-opacity='.28'/%3E%3C/svg%3E") 0 100% / 200% 100% repeat-x;
  animation: stroming-mini 6s linear infinite;
  z-index: 1;
}
.miniatuur-glans {
  position: absolute;
  inset: -40% -40% auto auto;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.45), transparent 65%);
}
.miniatuur-ikoon { width: 42%; height: 42%; position: relative; z-index: 2; filter: drop-shadow(0 2px 6px rgba(6, 59, 122, .3)); }
.miniatuur-ikoon svg { stroke-width: 1.7; }
.miniatuur.heeft-media::after, .miniatuur.heeft-media .miniatuur-ikoon, .miniatuur.heeft-media .miniatuur-glans { display: none; }
.miniatuur > img, .miniatuur > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.miniatuur-speel, .rij-beeld .miniatuur-speel {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 59, 122, .65);
  color: var(--wit);
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.miniatuur-speel .ikoon { width: 18px; height: 18px; }
.miniatuur-groot { width: 100%; height: clamp(160px, 38vw, 240px); border-radius: var(--radius-m); }
.miniatuur-groot .miniatuur-ikoon { width: 64px; height: 64px; }
.miniatuur-rij { width: 100%; height: 100%; border-radius: 12px; }

/* Lege staat */
.leeg {
  text-align: center;
  padding: var(--ruimte-7) var(--ruimte-5);
  border: 2px dashed var(--rand);
  border-radius: var(--radius-l);
  background: rgba(255,255,255,.65);
}
.leeg-ikoon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--ruimte-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--schuim);
  color: var(--helder);
  animation: dobberen 4s ease-in-out infinite;
}
.leeg-ikoon .ikoon { width: 36px; height: 36px; }
.leeg h3 { margin: 0 0 var(--ruimte-1); font-size: 1.15rem; color: var(--diep); }
.leeg p { margin: 0 auto var(--ruimte-4); max-width: 36ch; color: var(--tekst-zacht); }
.leeg p:last-child { margin-bottom: 0; }

/* ---------- Formulieren ---------- */

.formulier { display: flex; flex-direction: column; gap: var(--ruimte-5); }

.veld { display: block; }
.veld-label { display: block; margin-bottom: var(--ruimte-2); font-size: .92rem; font-weight: 700; color: var(--diep); }
.verplicht { color: var(--fout); }
.hint { font-weight: 400; font-size: .85rem; color: var(--tekst-zacht); }

.invoer {
  width: 100%;
  font-size: 1rem;
  color: var(--tekst);
  padding: 13px 16px;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-s);
  background: var(--wit);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.invoer::placeholder { color: #9ab0c9; }
.invoer:focus { outline: none; border-color: var(--helder); box-shadow: 0 0 0 4px rgba(43, 155, 244, .18); }
.invoer[aria-invalid="true"] { border-color: var(--fout); box-shadow: 0 0 0 4px rgba(214, 69, 69, .12); }
textarea.invoer { line-height: 1.45; min-height: 52px; }

.veld-fout { display: block; margin-top: 6px; font-size: .86rem; font-weight: 600; color: var(--fout); }
.veld-fout:empty { display: none; }
.veld-fout:not(:empty) { animation: schud .4s; }

/* Eigen keuzemenu */
.keuzemenu { position: relative; }
.keuzemenu.open { z-index: 30; }
.keuzemenu-knop {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  padding: 13px 14px 13px 16px;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-s);
  background: var(--wit);
  text-align: left;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.keuzemenu-knop:hover { border-color: #b5d6f5; }
.keuzemenu-knop:focus-visible, .keuzemenu.open .keuzemenu-knop {
  outline: none;
  border-color: var(--helder);
  box-shadow: 0 0 0 4px rgba(43, 155, 244, .18);
}
.keuzemenu-knop.gekozen .keuzemenu-tekst { animation: verschijn .3s var(--uit); }
.keuzemenu-tekst { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keuzemenu-tekst.is-leeg { color: #8aa3be; }
.keuzemenu-pijl {
  width: 20px;
  height: 20px;
  color: var(--blauw);
  transition: transform .35s var(--veer);
}
.keuzemenu.open .keuzemenu-pijl { transform: rotate(180deg); }

.keuzemenu-lijst {
  position: fixed;
  z-index: 55;
  max-height: 300px;
  overflow-y: hidden;
  font-size: 1rem;
  color: var(--tekst);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--rand);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(6, 59, 122, .2), 0 2px 6px rgba(6, 59, 122, .06);
  transform-origin: 50% 0;
  animation: menu-open .26s var(--uit) both;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.keuzemenu-lijst.scrollt { overflow-y: auto; }
.keuzemenu-lijst.omhoog { transform-origin: 50% 100%; }
.keuzemenu-lijst.sluiten { animation: menu-dicht .16s ease-in both; }

.keuzemenu-optie {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
  animation: verschijn .3s var(--uit) both;
}
.keuzemenu-optie:nth-child(2) { animation-delay: .02s; }
.keuzemenu-optie:nth-child(3) { animation-delay: .04s; }
.keuzemenu-optie:nth-child(4) { animation-delay: .06s; }
.keuzemenu-optie:nth-child(n+5) { animation-delay: .08s; }
.keuzemenu-optie > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.keuzemenu-optie.is-leeg { color: var(--tekst-zacht); }
.keuzemenu-optie.actief { background: var(--schuim); color: var(--blauw); }
.keuzemenu-optie[aria-selected="true"] { font-weight: 700; color: var(--blauw); }
.keuzemenu-optie[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--verloop);
}
.keuzemenu-vink { width: 18px; height: 18px; color: var(--blauw); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--veer); }
.keuzemenu-vink svg { stroke-width: 2.6; }
.keuzemenu-optie[aria-selected="true"] .keuzemenu-vink { opacity: 1; transform: scale(1); }

/* Compacte variant (sorteren) */
.keuzemenu-compact .keuzemenu-knop {
  width: auto;
  padding: 6px 8px 6px 10px;
  border-color: transparent;
  background: transparent;
  font-weight: 700;
  font-size: .92rem;
}
.keuzemenu-compact .keuzemenu-knop:hover { background: var(--schuim); }
.keuzemenu-compact .keuzemenu-pijl { width: 16px; height: 16px; }
.keuzemenu-lijst.compact { font-size: .95rem; transform-origin: 100% 0; }

.sectie { margin: 0; padding: 0; border: 0; min-width: 0; }
.sectie-titel { padding: 0; margin: 0 0 var(--ruimte-2); font-size: 1rem; font-weight: 750; color: var(--diep); }
.sectie-kop { margin: 0 0 var(--ruimte-3); font-size: 1.1rem; font-weight: 750; color: var(--diep); }
.sectie-kop-rij { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ruimte-3); margin: var(--ruimte-6) 0 var(--ruimte-3); }
.sectie-kop-rij .sectie-kop { margin: 0; }

/* Keuzerondjes en vinkvakjes */
.keuzes { display: flex; flex-direction: column; gap: 2px; }
.keuze {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .2s;
}
.keuze:hover { background: var(--schuim); }
.keuze input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.keuze-teken {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #b5cde6;
  background: var(--wit);
  color: var(--wit);
  transition: border-color .2s, background-color .2s, transform .3s var(--veer);
}
.keuze-rond .keuze-teken { border-radius: 50%; }
.keuze-vak .keuze-teken { border-radius: 7px; }
.keuze-teken .ikoon { width: 16px; height: 16px; transform: scale(0); transition: transform .3s var(--veer); }
.keuze-teken .ikoon svg { stroke-width: 3; }
.keuze input:checked + .keuze-teken { border-color: var(--blauw); background: var(--blauw); transform: scale(1.05); }
.keuze-rond input:checked + .keuze-teken { background: var(--wit); box-shadow: inset 0 0 0 5px var(--blauw); }
.keuze input:checked + .keuze-teken .ikoon { transform: scale(1); }
.keuze input:focus-visible + .keuze-teken { outline: 3px solid var(--licht); outline-offset: 2px; }
.keuze-tekst { font-size: 1rem; }
.keuze input:checked ~ .keuze-tekst { font-weight: 650; }

/* Tegels (lesonderdeel) */
.tegels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ruimte-2); }
.tegel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--ruimte-4) var(--ruimte-2);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-m);
  background: var(--wit);
  font-size: .85rem;
  font-weight: 650;
  color: var(--tekst);
  transition: transform .3s var(--veer), border-color .2s, background-color .25s, color .25s, box-shadow .25s;
}
.tegel:hover { border-color: var(--helder); }
.tegel-ikoon { width: 34px; height: 34px; color: var(--warming); }
.tegel:nth-child(2) .tegel-ikoon { color: var(--blauw); }
.tegel:nth-child(3) .tegel-ikoon { color: var(--cooling); }
.tegel.aan { color: var(--wit); border-color: transparent; background: var(--verloop); box-shadow: 0 10px 24px rgba(10, 111, 214, .3); transform: translateY(-2px); }
.tegel.aan .tegel-ikoon { color: var(--wit); }
.tegel-vink {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wit);
  color: var(--blauw);
  transform: scale(0);
  transition: transform .35s var(--veer);
}
.tegel-vink .ikoon { width: 14px; height: 14px; }
.tegel-vink .ikoon svg { stroke-width: 3; }
.tegel.aan .tegel-vink { transform: scale(1); }

/* Teller */
.teller {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--rand);
  border-radius: 999px;
  background: var(--wit);
  padding: 4px;
}
.teller-knop {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blauw);
  background: var(--schuim);
  transition: transform .25s var(--veer), background-color .2s;
}
.teller-knop:hover { background: #dcefff; }
.teller-knop:active { transform: scale(.88); }
.teller-invoer {
  width: 56px;
  border: 0;
  background: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.teller-invoer::-webkit-outer-spin-button, .teller-invoer::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.teller-invoer:focus { outline: none; }
.teller-eenheid { margin: 0 8px 0 -6px; color: var(--tekst-zacht); font-size: .9rem; }

.rij-twee { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ruimte-4); }

/* Bereik */
.bereik-waarde { display: block; margin-bottom: var(--ruimte-3); font-weight: 650; }
.bereik-baan { position: relative; height: 28px; }
.bereik-spoor, .bereik-vulling { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; }
.bereik-spoor { left: 0; right: 0; background: var(--rand); }
.bereik-vulling { background: var(--verloop); }
.bereik input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}
.bereik input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 4px solid var(--wit);
  background: var(--helder);
  box-shadow: 0 3px 10px rgba(10, 111, 214, .4);
  pointer-events: auto;
  cursor: grab;
  transition: transform .2s var(--veer);
}
.bereik input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid var(--wit);
  background: var(--helder);
  box-shadow: 0 3px 10px rgba(10, 111, 214, .4);
  pointer-events: auto;
  cursor: grab;
}
.bereik input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); cursor: grabbing; }
.bereik input[type="range"]:focus-visible { outline: none; }
.bereik input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(92, 200, 255, .5); }
.bereik-grenzen { display: flex; justify-content: space-between; margin-top: 4px; font-size: .82rem; color: var(--tekst-zacht); }

/* Sterren */
.sterren { display: inline-flex; gap: 4px; }
.ster { border: 0; background: none; padding: 2px; color: #c9d8e8; display: grid; place-items: center; }
.ster .ikoon { width: 36px; height: 36px; }
.ster.aan { color: #ffb627; }
.ster.aan svg { fill: currentColor; }
button.ster { transition: transform .25s var(--veer); }
button.ster:hover { transform: scale(1.12); }
.ster.plop { animation: plop .45s var(--veer); }
.sterren-klein .ster { padding: 0; }
.sterren-klein .ster .ikoon { width: 16px; height: 16px; }

/* Kenmerk-chips (oefening) */
.chips-kies { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); }
.chip-kies {
  padding: 8px 14px;
  border: 1.5px solid var(--rand);
  border-radius: 999px;
  background: var(--wit);
  font-size: .9rem;
  font-weight: 600;
  transition: all .25s var(--uit);
}
.chip-kies:hover { border-color: var(--helder); }
.chip-kies.aan { color: var(--wit); background: var(--blauw); border-color: var(--blauw); animation: plop .3s var(--veer); }

/* Stappen bewerken */
.stappen-bewerk { list-style: none; margin: 0 0 var(--ruimte-2); padding: 0; display: flex; flex-direction: column; gap: var(--ruimte-2); }
.stappen-bewerk li { display: flex; align-items: flex-start; gap: var(--ruimte-2); animation: verschijn .35s var(--uit) both; }
.stap-nr {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 750;
  color: var(--blauw);
  background: var(--schuim);
}
.stappen-bewerk .kop-knop { margin-top: 8px; }

/* Media */
.media { position: relative; overflow: hidden; background: var(--schuim); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media-groot { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-m); }
.media-groot.heeft-media video { object-fit: contain; background: #021b38; }
.media-klein { width: 100%; aspect-ratio: 1; border-radius: 14px; }
.media-leeg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-2);
  padding: var(--ruimte-4);
  text-align: center;
  color: var(--wit);
  background: linear-gradient(160deg, #79d7ff, #0a5fc4);
  font-weight: 600;
}
.media-leeg .ikoon { width: 52px; height: 52px; opacity: .9; }
.media-vak { display: flex; flex-direction: column; gap: var(--ruimte-2); margin-bottom: var(--ruimte-5); }
.media-acties { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); align-items: center; }
.media-kies {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-2);
  padding: 10px 16px;
  border: 2px dashed #a9cdf0;
  border-radius: 14px;
  color: var(--blauw);
  background: var(--wit);
  font-weight: 650;
  font-size: .92rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.media-kies:hover { background: var(--schuim); border-color: var(--helder); }
.media-kies:focus-within { outline: 3px solid var(--licht); outline-offset: 2px; }
.verborgen-invoer { position: absolute; width: 1px; height: 1px; opacity: 0; }
.galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--ruimte-2); }
.galerij .media-kies { flex-direction: column; aspect-ratio: 1; padding: var(--ruimte-2); text-align: center; font-size: .82rem; }
.galerij .media-kies .ikoon { width: 26px; height: 26px; }
.galerij-item { position: relative; animation: plop .35s var(--veer); }
.galerij-weg {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--wit);
  background: rgba(6, 59, 122, .7);
}
.galerij-weg .ikoon { width: 16px; height: 16px; }

/* Actiebalk onderin formulieren */
.actiebalk {
  position: sticky;
  bottom: 0;
  z-index: 4;
  flex: none;
  display: flex;
  gap: var(--ruimte-3);
  width: 100%;
  padding: var(--ruimte-3) max(var(--ruimte-5), calc((100% - 680px) / 2)) calc(var(--ruimte-3) + var(--veilig-onder));
  background: rgba(245, 250, 255, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(214, 232, 250, .8);
}
.actiebalk .knop-secundair { flex: none; }

/* Stapper */
.stapper { list-style: none; display: flex; margin: 0 0 var(--ruimte-5); padding: 0; }
.stap { position: relative; flex: 1; display: flex; justify-content: center; }
.stap::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(-50% + 22px);
  right: calc(50% + 22px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blauw) 50%, var(--rand) 50%) 100% 0 / 200% 100%;
}
.stap:first-child::before { display: none; }
.stap.klaar::before, .stap.actief::before { animation: lijn-vul .6s .1s var(--uit) forwards; }
.stap-knop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--tekst-zacht); }
.stap-knop:disabled { cursor: default; }
.stap-bol {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: var(--tekst-zacht);
  background: var(--wit);
  border: 2px solid var(--rand);
  transition: all .3s var(--uit);
}
.stap-bol .ikoon { width: 18px; height: 18px; }
.stap-bol .ikoon svg { stroke-width: 3; }
.stap-naam { font-size: .82rem; font-weight: 650; }
.stap.klaar .stap-bol { color: var(--wit); background: var(--succes); border-color: var(--succes); }
.stap.klaar .stap-knop:hover .stap-bol { transform: scale(1.08); }
.stap.actief .stap-bol { color: var(--wit); background: var(--verloop); border-color: transparent; box-shadow: 0 6px 16px rgba(10, 111, 214, .35); animation: plop .5s var(--veer); }
.stap.actief .stap-naam { color: var(--diep); font-weight: 800; }

/* Kaarten en blokken */
.kaart { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius-m); box-shadow: var(--schaduw-s); }
.blok { padding: var(--ruimte-4) var(--ruimte-5); margin-bottom: var(--ruimte-3); }
.blok-titel { margin: 0 0 var(--ruimte-2); font-size: 1rem; font-weight: 750; color: var(--diep); }
.blok-tekst { margin: 0; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.blok-zonder { margin: var(--ruimte-4) 0; }

.instelling { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: var(--ruimte-3); padding: 6px 0; }
.instelling + .instelling { border-top: 1px solid #edf4fc; }
.instelling-naam { font-size: .95rem; }
.instelling .keuzemenu-knop { padding: 9px 12px 9px 14px; }

/* Sorteerbare lijst oefeningen */
.sorteerlijst { list-style: none; margin: 0 0 var(--ruimte-3); padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sorteer-item {
  display: flex;
  align-items: center;
  border: 1px solid var(--rand);
  border-radius: 14px;
  background: var(--wit);
  transition: transform .25s var(--uit), box-shadow .25s;
  animation: verschijn .35s var(--uit) both;
  touch-action: pan-y;
}
.sorteer-item.sleept { position: relative; z-index: 3; transition: none; box-shadow: var(--schaduw-l); border-color: var(--helder); }
.sorteer-hoofd {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: 12px;
  border: 0;
  background: none;
  text-align: left;
  border-radius: 14px;
}
.sorteer-hoofd:hover .oefening-naam { color: var(--blauw); }
.sorteer-greep {
  flex: none;
  width: 48px;
  align-self: stretch;
  border: 0;
  background: none;
  color: #9ab0c9;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  border-radius: 0 14px 14px 0;
}
.sorteer-greep:hover { color: var(--blauw); background: var(--schuim); }
.sorteer-greep:active { cursor: grabbing; }
.sorteer-leeg { list-style: none; }

.oefening-nr {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .88rem;
  font-weight: 750;
  color: var(--blauw);
  border: 2px solid var(--helder);
}
.oefening-naam { flex: 1; min-width: 0; font-weight: 650; overflow-wrap: anywhere; transition: color .2s; }

.oefening-lijst, .onderdeel-lijst { list-style: none; margin: 0; padding: 0; }
.oefening-rij {
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: 12px;
  color: var(--tekst);
  text-decoration: none;
  transition: background-color .2s;
}
a.oefening-rij:hover { background: var(--schuim); }
.oefening-lijst li + li .oefening-rij, .onderdeel-lijst li + li .oefening-rij { border-top: 1px solid #edf4fc; border-radius: 0; }

/* Lesdetail */
.les-held { margin-bottom: var(--ruimte-4); }
.les-held-tekst { padding: var(--ruimte-4) 0 0; display: flex; flex-direction: column; gap: 6px; }
.les-held-titel { margin: 0; font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; color: var(--diep); overflow-wrap: anywhere; }
.les-held-titel:focus { outline: none; }
.actie-rij { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin: 0 0 var(--ruimte-4); }
.actie-rij .knop-primair, .actie-rij .knop-secundair { flex: 1 1 200px; }
.actie-rij-zacht { justify-content: center; margin-top: var(--ruimte-4); }
.kenmerken { margin: 0; display: flex; flex-direction: column; }
.kenmerk { display: grid; grid-template-columns: 130px 1fr; gap: var(--ruimte-3); padding: 8px 0; }
.kenmerk + .kenmerk { border-top: 1px solid #edf4fc; }
.kenmerk dt { color: var(--tekst-zacht); font-size: .92rem; }
.kenmerk dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.samenvatting .les-held-titel { margin: 8px 0 var(--ruimte-3); }
.kruimel { margin: 0 0 var(--ruimte-3); color: var(--tekst-zacht); font-size: .9rem; }

/* Oefening detail */
.oefening-titel { margin: var(--ruimte-4) 0 var(--ruimte-2); font-size: 1.6rem; font-weight: 800; color: var(--diep); }
.oefening-titel:focus { outline: none; }
.stappen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ruimte-3); }
.stappen li { display: flex; gap: var(--ruimte-3); align-items: flex-start; line-height: 1.5; animation: verschijn .4s var(--uit) both; }
.stappen li:nth-child(2) { animation-delay: .06s; }
.stappen li:nth-child(3) { animation-delay: .12s; }
.stappen li:nth-child(n+4) { animation-delay: .18s; }
.stappen .ikoon { width: 22px; height: 22px; margin-top: 1px; color: var(--helder); }
.tip {
  margin-top: var(--ruimte-4);
  padding: var(--ruimte-4);
  border: 1px solid #bfe3fb;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, #f0f9ff, #e3f3ff);
}
.tip strong { display: flex; align-items: center; gap: 6px; color: var(--blauw); }
.tip p { margin: 6px 0 0; line-height: 1.5; }

.melding-blok { display: flex; gap: var(--ruimte-3); align-items: flex-start; padding: var(--ruimte-3) var(--ruimte-4); margin-bottom: var(--ruimte-3); border-radius: var(--radius-s); }
.melding-blok p { margin: 0; }
.melding-blok.fout { color: #9b2c2c; background: #fdecec; }

/* Registreren: onderdeelgroepen */
.onderdeel-groepen { display: flex; flex-direction: column; gap: var(--ruimte-2); }
.onderdeel-groep { border: 1px solid var(--rand); border-radius: var(--radius-m); background: var(--wit); overflow: hidden; }
.groep-kop {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "vink naam pijl" ". sub sub";
  align-items: center;
  gap: 2px var(--ruimte-3);
  padding: var(--ruimte-3) var(--ruimte-4);
  border: 0;
  background: none;
  text-align: left;
}
.groep-vink { grid-area: vink; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 2px solid #b5cde6; color: transparent; transition: all .25s var(--veer); }
.groep-vink .ikoon { width: 16px; height: 16px; }
.groep-vink .ikoon svg { stroke-width: 3; }
.groep-vink.aan { color: var(--wit); border-color: var(--succes); background: var(--succes); }
.groep-naam { grid-area: naam; font-weight: 750; }
.groep-warming-up .groep-naam { color: var(--warming); }
.groep-kern .groep-naam { color: var(--diep); }
.groep-cooling-down .groep-naam { color: var(--cooling); }
.groep-aantal { font-weight: 600; }
.groep-sub { grid-area: sub; font-size: .85rem; color: var(--tekst-zacht); }
.groep-pijl { grid-area: pijl; width: 22px; height: 22px; color: var(--tekst-zacht); transition: transform .35s var(--uit); }
.onderdeel-groep.open .groep-pijl { transform: rotate(180deg); }
.groep-inhoud { padding: 0 var(--ruimte-4) var(--ruimte-3) calc(var(--ruimte-4) + 4px); animation: uitklappen .35s var(--uit); }
.groep-inhoud .keuze-tekst { font-size: .95rem; }

/* Rijen (lesgeschiedenis) */
.rij-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ruimte-2); }
.rij-wrap { animation: verschijn .45s calc(var(--i, 0) * 45ms) var(--uit) both; }
.rij-kaart {
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: var(--ruimte-2);
  padding-right: var(--ruimte-3);
  border: 1px solid var(--rand);
  border-radius: var(--radius-m);
  background: var(--wit);
  color: var(--tekst);
  text-decoration: none;
  box-shadow: var(--schaduw-s);
  transition: transform .3s var(--uit), box-shadow .3s;
}
.rij-kaart:hover { transform: translateY(-2px); box-shadow: var(--schaduw-m); }
.rij-beeld { position: relative; flex: none; width: 78px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--schuim); }
.rij-beeld img, .rij-beeld video { width: 100%; height: 100%; object-fit: cover; }
.rij-beeld .miniatuur-ikoon { width: 30px; height: 30px; }
.rij-beeld .miniatuur-speel { width: 28px; height: 28px; }
.rij-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rij-titel { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rij-meta { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--tekst-zacht); }
.rij-meta .ikoon { width: 15px; height: 15px; color: var(--helder); }
.rij-score { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 650; }
.rij-score.groot { margin-top: var(--ruimte-3); font-size: 1rem; }
.rij-score.groot .ster .ikoon { width: 26px; height: 26px; }

/* Account */
.scherm-account { position: relative; }
.account-golf {
  position: absolute;
  inset: 0 0 auto;
  height: calc(170px + var(--veilig-boven));
  background: var(--verloop-kop);
}
.account-golf::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 30px;
  background: var(--golf-rand) 0 100% / 900px 100% repeat-x;
  animation: stroming-kop 18s linear infinite;
}
.scherm-account .inhoud { position: relative; max-width: 680px; padding-top: calc(var(--ruimte-7) + var(--ruimte-5) + var(--veilig-boven)); }
.account-golf { height: calc(220px + var(--veilig-boven)) !important; }

.profiel-kop { display: flex; align-items: center; gap: var(--ruimte-4); margin-bottom: var(--ruimte-5); }
.avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wit);
  background: var(--verloop);
  box-shadow: 0 8px 20px rgba(10, 111, 214, .3);
}
.avatar span:empty { display: none; }
.avatar .ikoon { width: 50%; height: 50%; }
.avatar-groot { width: 104px; height: 104px; font-size: 2.2rem; border: 4px solid var(--wit); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profiel-tekst { min-width: 0; color: var(--wit); }
.profiel-naam { margin: 0; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.profiel-naam:focus { outline: none; }
.profiel-rol { margin: 2px 0 4px; opacity: .9; }
.profiel-tekst .knop-tekst { margin-left: -14px; color: var(--wit); }
.profiel-tekst .knop-tekst:hover { background: rgba(255,255,255,.18); }
.profiel-bio { margin: 0 0 var(--ruimte-5); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.profiel-foto { display: flex; flex-direction: column; align-items: center; gap: var(--ruimte-3); margin-bottom: var(--ruimte-5); }

.menu { display: flex; flex-direction: column; gap: var(--ruimte-2); }
.menu-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: var(--ruimte-3) var(--ruimte-4);
  border: 1px solid var(--rand);
  border-radius: var(--radius-m);
  background: var(--wit);
  color: var(--tekst);
  text-decoration: none;
  box-shadow: var(--schaduw-s);
  transition: transform .3s var(--uit), box-shadow .3s;
}
.menu-item:hover { transform: translateX(4px); box-shadow: var(--schaduw-m); }
.menu-ikoon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blauw); background: var(--schuim); }
.menu-ikoon .ikoon { width: 24px; height: 24px; }
.menu-tekst { flex: 1; font-weight: 700; font-size: 1.02rem; }
.menu-aantal { min-width: 28px; padding: 2px 8px; border-radius: 999px; text-align: center; font-size: .82rem; font-weight: 750; color: var(--blauw); background: var(--schuim); }

/* Planning */
.planning { display: flex; flex-direction: column; gap: var(--ruimte-5); }
.plan-dag { display: flex; flex-direction: column; gap: var(--ruimte-2); animation: verschijn .45s var(--uit) both; }
.plan-dag.voorbij { opacity: .6; }
.plan-datum { margin: 0; font-size: .95rem; font-weight: 750; color: var(--diep); }
.plan-item { display: flex; align-items: center; gap: var(--ruimte-3); padding: var(--ruimte-3); }
.plan-tijd { flex: none; min-width: 54px; padding: 6px 8px; border-radius: 10px; text-align: center; font-weight: 750; color: var(--blauw); background: var(--schuim); }
.plan-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-les { font-weight: 700; color: var(--tekst); text-decoration: none; overflow-wrap: anywhere; }
a.plan-les:hover { color: var(--blauw); }
.plan-acties { display: flex; gap: 2px; }


/* ---------- Inloggen ---------- */

.inloggen { justify-content: center; }
.inlog-terug { position: absolute; z-index: 4; top: calc(var(--ruimte-3) + var(--veilig-boven)); left: var(--ruimte-3); color: var(--wit); }
.inlog-inhoud {
  position: relative;
  z-index: 3;
  width: min(420px, calc(100% - 32px));
  margin: auto;
  padding: var(--ruimte-7) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ruimte-5);
}
.inlog-merk {
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.02em;
  text-shadow: 0 2px 14px rgba(6, 59, 122, .35);
  animation: verschijn .8s var(--uit) both;
}
.inlog-logo { width: 54px; height: 54px; filter: drop-shadow(0 4px 12px rgba(6, 59, 122, .35)); animation: dobberen 5s 1s ease-in-out infinite; }

.inlog-kaart {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-3);
  padding: var(--ruimte-6) var(--ruimte-5) var(--ruimte-5);
  border-radius: var(--radius-l);
  color: var(--tekst);
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 70px rgba(3, 30, 70, .35);
  animation: verschijn .8s .1s var(--uit) both;
}
.inlog-kaart.schud { animation: schud .45s; }
.inlog-kaart.gelukt { animation: inlog-weg .5s var(--golf-ease) forwards; }
.inlog-titel { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--diep); letter-spacing: -.02em; }
.inlog-titel:focus { outline: none; }
.inlog-sub { margin: -6px 0 var(--ruimte-2); color: var(--tekst-zacht); }

.inlog-veld {
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  padding: 0 6px 0 16px;
  border: 1.5px solid var(--rand);
  border-radius: 16px;
  background: var(--nevel);
  color: var(--tekst-zacht);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.inlog-veld:focus-within { border-color: var(--helder); background: var(--wit); box-shadow: 0 0 0 4px rgba(43, 155, 244, .18); color: var(--blauw); }
.inlog-veld .ikoon { width: 22px; height: 22px; }
.inlog-invoer { flex: 1; min-width: 0; padding: 15px 4px; border: 0; outline: 0; background: none; font-size: 1.02rem; color: var(--tekst); }
.inlog-invoer::placeholder { color: #8aa3be; }
/* Ingebouwde oog-/wisknop van Edge verbergen: we hebben een eigen knop */
input::-ms-reveal, input::-ms-clear { display: none; }
.inlog-oog, .invoer-knop {
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--tekst-zacht);
  background: none;
}
.inlog-oog:hover, .invoer-knop:hover { background: var(--schuim); color: var(--blauw); }
.inlog-oog .ikoon, .invoer-knop .ikoon { width: 22px; height: 22px; }
.inlog-fout { margin: 0; color: var(--fout); font-weight: 600; font-size: .9rem; }
.inlog-fout:empty { display: none; }
.inlog-knop { margin-top: var(--ruimte-2); padding: 16px; font-size: 1.05rem; }

/* Laadstatus op knoppen */
.knop.laden { pointer-events: none; }
.knop.laden > * { opacity: 0; }
.knop.laden::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .45);
  border-top-color: var(--wit);
  animation: draai .7s linear infinite;
}

/* ---------- Admin ---------- */

.scherm-admin .golf-kop { background: linear-gradient(160deg, #1d4f8f 0%, #0b2f63 60%, #061d40 100%); }
.admin-banner {
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: var(--ruimte-4);
  margin-bottom: var(--ruimte-4);
  border-radius: var(--radius-m);
  color: var(--wit);
  background: linear-gradient(135deg, #1d4f8f, #0b2f63);
  box-shadow: var(--schaduw-m);
}
.admin-banner-ikoon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.admin-banner-ikoon .ikoon { width: 26px; height: 26px; }
.admin-banner-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-banner-tekst span { opacity: .85; font-size: .9rem; overflow-wrap: anywhere; }
.knop-wit { color: var(--diep); background: var(--wit); padding: 10px 16px; font-size: .92rem; }
.knop-wit:hover { background: var(--schuim); }
.knop-klein { padding: 9px 14px; font-size: .9rem; }
.melding-blok.waarschuwing { color: #7a4b00; background: #fff4dc; border: 1px solid #ffe0a3; }
.melding-blok .ikoon { width: 20px; height: 20px; margin-top: 1px; }

.label-admin { background: linear-gradient(135deg, #1d4f8f, #0b2f63); }
.label-jij { background: var(--succes); }
.rij-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.account-rij { padding: var(--ruimte-3); }
.avatar-klein { width: 48px; height: 48px; font-size: 1.05rem; box-shadow: none; }
.avatar.is-admin { background: linear-gradient(135deg, #2f6fc0, #0b2f63); }
.account-kop { display: flex; align-items: center; gap: var(--ruimte-4); margin-bottom: var(--ruimte-5); }

.invoer-met-knop { position: relative; }
.invoer-met-knop .invoer { padding-right: 52px; }
.invoer-met-knop .invoer-knop { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }

/* Schakelaar (aan/uit) */
.schakelaar { display: flex; align-items: center; gap: var(--ruimte-4); cursor: pointer; }
.schakelaar.uit { cursor: not-allowed; opacity: .7; }
.schakelaar-tekst { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.schakelaar-tekst small { color: var(--tekst-zacht); font-size: .85rem; line-height: 1.4; }
.schakelaar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schakelaar-baan {
  flex: none;
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 16px;
  background: #c9d8e8;
  transition: background-color .25s;
}
.schakelaar-knop {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wit);
  box-shadow: 0 2px 6px rgba(6, 59, 122, .25);
  transition: transform .35s var(--veer);
}
.schakelaar input:checked + .schakelaar-baan { background: var(--verloop); }
.schakelaar input:checked + .schakelaar-baan .schakelaar-knop { transform: translateX(22px); }
.schakelaar input:focus-visible + .schakelaar-baan { outline: 3px solid var(--licht); outline-offset: 2px; }

/* Account-tab: admin en uitloggen */
.profiel-account { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 2px; font-size: .9rem; opacity: .9; }
.profiel-account .ikoon { width: 16px; height: 16px; }
.sectie-kop-ruim { margin-top: var(--ruimte-6); }
button.menu-item { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.menu-tekst small { display: block; margin-top: 2px; font-size: .84rem; font-weight: 500; color: var(--tekst-zacht); }
.menu-admin .menu-ikoon { color: var(--wit); background: linear-gradient(135deg, #2f6fc0, #0b2f63); }
.menu-uitloggen .menu-ikoon { color: var(--fout); background: #fdecec; }
.menu-uitloggen .menu-tekst { color: var(--fout); }

/* ---------- Onderbalk ---------- */

.onderbalk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0 var(--ruimte-3) calc(var(--ruimte-3) + var(--veilig-onder));
  pointer-events: none;
  transition: transform .5s var(--uit), opacity .4s;
}
.onderbalk.verborgen { transform: translateY(140%); opacity: 0; }

.onderbalk-binnen {
  position: relative;
  pointer-events: auto;
  max-width: 560px;
  height: var(--balk-hoogte);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--ruimte-2);
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(214, 232, 250, .9);
  box-shadow: var(--schaduw-l);
}

.tab {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--tekst-zacht);
  font-size: .76rem;
  font-weight: 650;
  transition: color .25s;
}
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--veer); }
.tab:hover, .tab[aria-current="page"] { color: var(--blauw); }
.tab[aria-current="page"] svg { transform: translateY(-2px) scale(1.08); fill: rgba(92, 200, 255, .22); }

.tab-indicator {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: var(--verloop);
  transition: transform .45s var(--veer);
  pointer-events: none;
}

.plus {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 0 var(--ruimte-4);
  transform: translateY(-22px);
  border: 5px solid var(--nevel);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--wit);
  background: var(--verloop);
  box-shadow: 0 12px 28px rgba(10, 111, 214, .45);
  transition: transform .35s var(--veer), box-shadow .3s;
}
.plus::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--helder);
  opacity: 0;
  animation: pulsring 3s 1s ease-out infinite;
}
.plus svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; transition: transform .4s var(--veer); }
.plus:hover { transform: translateY(-25px) scale(1.05); box-shadow: 0 16px 34px rgba(10, 111, 214, .5); }
.plus:hover svg { transform: rotate(90deg); }
.plus:active { transform: translateY(-20px) scale(.94); }


/* Plusmenu: klein paneel dat vanaf de balk omhoog schuift */
.plus-achtergrond {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(6, 59, 122, .28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: vervagen-in .25s ease both;
}
.plus-achtergrond.sluiten { animation: vervagen-in .22s reverse both; }

.plus-menu {
  position: relative;
  pointer-events: auto;
  max-width: 560px;
  margin: 0 auto var(--ruimte-3);
  padding: 8px var(--ruimte-2) var(--ruimte-2);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(214, 232, 250, .9);
  box-shadow: var(--schaduw-l);
  transform-origin: 50% 100%;
  animation: plusmenu-in .45s var(--veer) both;
  touch-action: none;
  transition: transform .25s var(--uit);
}
.plus-menu.sluiten { animation: plusmenu-uit .24s var(--golf-ease) both; }
.plus-menu-greep { display: block; width: 40px; height: 5px; margin: 0 auto 6px; border-radius: 5px; background: var(--rand); }

.plus-optie {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  background: none;
  text-align: left;
  color: var(--tekst);
  transition: background-color .2s;
  animation: verschijn .4s var(--uit) both;
}
.plus-optie:nth-of-type(1) { animation-delay: .06s; }
.plus-optie:nth-of-type(2) { animation-delay: .1s; }
.plus-optie:nth-of-type(3) { animation-delay: .14s; }
.plus-optie:nth-of-type(4) { animation-delay: .18s; }
.plus-optie:hover, .plus-optie:focus-visible { background: var(--schuim); }
.plus-optie-ikoon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--wit);
  background: var(--verloop);
  box-shadow: 0 6px 16px rgba(10, 111, 214, .3);
  transition: transform .35s var(--veer);
}
.plus-optie[data-doel="lessen"] .plus-optie-ikoon { background: linear-gradient(135deg, #8fb6ff, #4a63d8); box-shadow: 0 6px 16px rgba(74, 99, 216, .3); }
.plus-optie[data-doel="favorieten"] .plus-optie-ikoon { background: linear-gradient(135deg, #ff9db0, #f0506e); box-shadow: 0 6px 16px rgba(240, 80, 110, .3); }
.plus-optie[data-doel="planning"] .plus-optie-ikoon { background: linear-gradient(135deg, #7be0d6, #1c9bbf); box-shadow: 0 6px 16px rgba(28, 155, 191, .3); }

.plus-optie:hover .plus-optie-ikoon { transform: scale(1.08) rotate(-4deg); }
.plus-optie-ikoon svg, .plus-optie-pijl { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.plus-optie-ikoon svg { width: 26px; height: 26px; }
.plus-optie-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.plus-optie-tekst strong { font-size: 1.05rem; }
.plus-optie-tekst small { color: var(--tekst-zacht); font-size: .85rem; }
.plus-optie-pijl { width: 20px; height: 20px; color: #9ab0c9; transition: transform .3s var(--veer), color .2s; }
.plus-optie:hover .plus-optie-pijl { transform: translateX(3px); color: var(--blauw); }
.plus-optie .rimpel { background: rgba(43, 155, 244, .2); }

.onderbalk.menu-open .plus { transform: translateY(-22px) rotate(45deg); }
.onderbalk.menu-open .plus::before { animation: none; }
.onderbalk.menu-open .plus:hover svg { transform: none; }

/* ---------- Vensters ---------- */

.venster-achtergrond {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 59, 122, .35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: vervagen-in .25s ease both;
}
.venster {
  position: fixed;
  z-index: 61;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 32px));
  padding: var(--ruimte-6) var(--ruimte-5) var(--ruimte-5);
  border-radius: var(--radius-l);
  background: var(--wit);
  box-shadow: var(--schaduw-l);
  transform: translate(-50%, -50%);
  animation: venster-in .4s var(--veer) both;
}
.venster.sluiten { animation: venster-uit .22s var(--golf-ease) both; }
.venster-achtergrond.sluiten { animation: vervagen-in .22s reverse both; }
.venster-titel { margin: 0 0 var(--ruimte-2); font-size: 1.25rem; color: var(--diep); }
.venster-tekst { margin: 0 0 var(--ruimte-5); color: var(--tekst-zacht); line-height: 1.5; }
.knoppen-rij { display: flex; gap: var(--ruimte-2); }
.knoppen-rij .knop { flex: 1; }

/* ---------- Schermovergang (golf) ---------- */

.overgang {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--verloop);
  transform: translateY(110%);
  visibility: hidden;
}
.overgang svg { position: absolute; left: 0; bottom: 100%; width: 100%; height: 90px; margin-bottom: -1px; fill: var(--licht); }
.overgang.opkomen { visibility: visible; animation: water-op .6s var(--golf-ease) forwards; }
.overgang.wegtrekken { visibility: visible; animation: water-weg .65s var(--golf-ease) forwards; }

/* ---------- Melding ---------- */

.melding {
  position: fixed;
  left: 50%;
  bottom: calc(var(--balk-hoogte) + var(--veilig-onder) + 36px);
  z-index: 70;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--diep);
  color: var(--wit);
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
  box-shadow: var(--schaduw-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--veer);
}
.melding.zichtbaar { opacity: 1; transform: translate(-50%, 0); }
.melding.succes { background: linear-gradient(135deg, #1f9d64, #17804f); }
.melding.fout { background: var(--fout); }

/* ---------- Keyframes ---------- */

@keyframes verschijn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dobberen { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes stroming { from { background-position-x: 0; } to { background-position-x: -1200px; } }
@keyframes stroming-kop { from { background-position-x: 0; } to { background-position-x: -720px; } }
@keyframes stroming-mini { from { background-position-x: 0; } to { background-position-x: -200%; } }
@keyframes opstijgen {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(14px, -50vh) scale(1); }
  90% { opacity: .7; }
  100% { transform: translate(-10px, -105vh) scale(1.1); opacity: 0; }
}
@keyframes bundel { from { transform: rotate(var(--r)) translateX(-20px); opacity: .3; } to { transform: rotate(calc(var(--r) - 6deg)) translateX(20px); opacity: .6; } }
@keyframes oppervlak { from { background-position: 0 0, 0 0; opacity: .8; } to { background-position: 0 0, 40px 6px; opacity: 1; } }
@keyframes swoosh { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pulsring { 0% { transform: scale(.95); opacity: .7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes rimpel { to { transform: scale(2.6); opacity: 0; } }
@keyframes water-op { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes water-weg { from { transform: translateY(0); } to { transform: translateY(-120%); } }
@keyframes in-vooruit { from { transform: translateX(100%); } to { transform: none; } }
@keyframes uit-vooruit { from { transform: none; opacity: 1; } to { transform: translateX(-28%); opacity: .4; } }
@keyframes in-terug { from { transform: translateX(-28%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes uit-terug { from { transform: none; } to { transform: translateX(100%); } }
@keyframes in-omhoog { from { transform: translateY(100%); border-radius: 28px 28px 0 0; } to { transform: none; border-radius: 0; } }
@keyframes uit-omhoog { from { transform: none; opacity: 1; } to { transform: scale(.94); opacity: .5; } }
@keyframes in-omlaag { from { transform: scale(.94); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes uit-omlaag { from { transform: none; } to { transform: translateY(100%); } }
@keyframes plusmenu-in { from { opacity: 0; transform: translateY(70px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes plusmenu-uit { to { opacity: 0; transform: translateY(60px) scale(.92); } }
@keyframes draai { to { transform: rotate(360deg); } }
@keyframes inlog-weg { to { opacity: 0; transform: translateY(-20px) scale(.96); } }
@keyframes plop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes hartklop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes schud { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes lijn-vul { to { background-position: 0 0; } }
@keyframes uitklappen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes menu-open { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes menu-dicht { to { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes vervagen-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes venster-in { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes venster-uit { to { opacity: 0; transform: translate(-50%, -48%) scale(.96); } }

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  :root { --balk-hoogte: 80px; }
  .inhoud { padding-left: var(--ruimte-6); padding-right: var(--ruimte-6); }
  .onderbalk { padding-bottom: calc(var(--ruimte-5) + var(--veilig-onder)); }
  .tab { font-size: .82rem; }
  .miniatuur:not(.miniatuur-groot):not(.miniatuur-rij) { width: 104px; height: 104px; }
  .les-held { display: grid; grid-template-columns: 300px 1fr; gap: var(--ruimte-5); align-items: center; }
  .les-held-tekst { padding: 0; }
  .start-inhoud { transform: translateY(-4vh); }
}

@media (min-width: 1024px) {
  .golf-kop-rij { padding-left: var(--ruimte-6); padding-right: var(--ruimte-6); }
  .melding { bottom: calc(var(--balk-hoogte) + 48px); }
}

@media (max-width: 380px) {
  .inhoud { padding-left: var(--ruimte-4); padding-right: var(--ruimte-4); }
  .tab span { font-size: .68rem; }
  .plus { margin: 0 var(--ruimte-2); }
  .miniatuur:not(.miniatuur-groot):not(.miniatuur-rij) { width: 76px; height: 76px; }
  .kenmerk { grid-template-columns: 1fr; gap: 2px; }
  .instelling { grid-template-columns: 1fr 120px; }
  .rij-twee { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .bellen, .lichtbundels { display: none; }
}
