/* ============================================
   Tempotoetsen Generator - Styling
   Warm, speels, past bij jufzisa.be
   ============================================ */

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

:root {
  --oranje: #f59f3b;
  --oranje-licht: #fdecd4;
  --oranje-diep: #c57a1c;
  --paars: #6b4c9b;
  --paars-licht: #e8dff5;
  --groen: #7ab648;
  --groen-licht: #dff0cc;
  --roze: #e879a7;
  --creme: #fdf8ef;
  --donker: #2d2a26;
  --grijs: #8a857d;
  --grijs-licht: #e8e3d9;
  --wit: #ffffff;

  --radius: 14px;
  --radius-groot: 22px;
  --shadow-sm: 0 2px 6px rgba(45, 42, 38, 0.08);
  --shadow-md: 0 4px 14px rgba(45, 42, 38, 0.12);
  --shadow-lg: 0 10px 30px rgba(45, 42, 38, 0.18);
}

body {
  font-family: 'Nunito', 'Quicksand', -apple-system, sans-serif;
  background: var(--creme);
  color: var(--donker);
  line-height: 1.5;
  min-height: 100vh;
}

/* ============================================
   Layout
   ============================================ */
.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

header.hero {
  background: linear-gradient(135deg, var(--oranje) 0%, var(--roze) 100%);
  color: white;
  border-radius: var(--radius-groot);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

header.hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

header.hero::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

header.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
}

header.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  position: relative;
}

.terug-link {
  display: inline-block;
  margin-bottom: 14px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  position: relative;
}
.terug-link:hover { opacity: 1; }

/* ============================================
   Tabbladen (oefeningtypes)
   ============================================ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 18px;
  background: white;
  border: 2px solid var(--grijs-licht);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--donker);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--oranje);
  transform: translateY(-1px);
}

.tab-btn.actief {
  background: var(--oranje);
  border-color: var(--oranje);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   Configuratie-paneel
   ============================================ */
.config-kaart {
  background: white;
  border-radius: var(--radius-groot);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.config-kaart h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: var(--paars);
}

.config-groep {
  margin-bottom: 22px;
}

.config-groep > label,
.config-groep > legend {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--donker);
}

/* Checkboxes als chips voor tafels */
.chip-groep {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

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

.chip span {
  display: inline-block;
  padding: 8px 16px;
  background: var(--creme);
  border: 2px solid var(--grijs-licht);
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.15s;
  user-select: none;
}

.chip:hover span {
  border-color: var(--oranje);
}

.chip input:checked + span {
  background: var(--oranje);
  border-color: var(--oranje);
  color: white;
}

/* Radio als knoppen */
.radio-groep {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-knop {
  position: relative;
  cursor: pointer;
}

.radio-knop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-knop span {
  display: inline-block;
  padding: 10px 18px;
  background: white;
  border: 2px solid var(--grijs-licht);
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.15s;
  user-select: none;
}

.radio-knop:hover span {
  border-color: var(--paars);
}

.radio-knop input:checked + span {
  background: var(--paars);
  border-color: var(--paars);
  color: white;
}

/* Snelkeuze knoppen */
.snelkeuze {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.snelkeuze button {
  padding: 5px 12px;
  background: transparent;
  border: 1px dashed var(--grijs);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--grijs);
  cursor: pointer;
}
.snelkeuze button:hover {
  color: var(--donker);
  border-color: var(--donker);
}

/* Info-strook in config */
.info-strook {
  background: var(--paars-licht);
  border-left: 4px solid var(--paars);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--donker);
  line-height: 1.5;
  margin-top: 12px;
}

.info-strook strong {
  color: var(--paars);
}

/* ============================================
   Modus-keuze
   ============================================ */
.modus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.modus-kaart {
  background: white;
  border: 3px solid var(--grijs-licht);
  border-radius: var(--radius-groot);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.modus-kaart:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--oranje);
}

.modus-kaart .icoon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.modus-kaart h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--paars);
}

.modus-kaart p {
  font-size: 0.9rem;
  color: var(--grijs);
}

/* Uitgelichte modus (weekblad) */
.modus-kaart-uitgelicht {
  background: linear-gradient(135deg, #fdecd4 0%, #fdf8ef 100%);
  border-color: var(--oranje);
  position: relative;
}
.modus-kaart-uitgelicht::before {
  content: 'nieuw';
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--roze);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================
   Weekblad-dialoog
   ============================================ */
.week-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 38, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.week-dialoog {
  background: white;
  border-radius: var(--radius-groot);
  padding: 32px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.week-dialoog h2 {
  color: var(--paars);
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.week-intro {
  color: var(--grijs);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.week-sluit {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--creme);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--donker);
}

.week-sluit:hover {
  background: var(--grijs-licht);
}

.week-dagen-lijst {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.week-dag {
  border: 2px solid var(--grijs-licht);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: all 0.15s;
}

.week-dag.actief {
  border-color: var(--oranje);
  background: var(--oranje-licht);
}

.week-dag.inactief {
  opacity: 0.55;
}

.week-dag-hoofd {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}

.week-dag-hoofd input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--oranje);
  cursor: pointer;
}

.week-dag-instellingen {
  margin-top: 10px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.week-dag-type-rij {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.week-dag-aangepast {
  display: inline-block;
  background: var(--paars);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.week-dag-aanpas-btn {
  background: white;
  border: 2px solid var(--grijs-licht);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--paars);
  cursor: pointer;
  margin-left: auto;
}

.week-dag-aanpas-btn:hover {
  border-color: var(--paars);
  background: var(--paars-licht);
}

.week-dag-config-blok {
  background: white;
  border: 2px solid var(--paars-licht);
  border-radius: 10px;
  padding: 14px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dag-config-groep {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dag-config-groep > label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--donker);
}

.dag-tafels-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-tafel,
.chip-radio {
  background: white;
  border: 2px solid var(--grijs-licht);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--donker);
  cursor: pointer;
  min-width: 32px;
  transition: all 0.1s;
}

.chip-tafel:hover,
.chip-radio:hover {
  border-color: var(--paars);
}

.chip-tafel.geselecteerd,
.chip-radio.geselecteerd {
  background: var(--paars);
  border-color: var(--paars);
  color: white;
}

.dag-radio-rij {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.week-dag-config-acties {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.week-dag-reset-btn {
  background: none;
  border: none;
  color: var(--roze);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
}

.week-dag-reset-btn:hover {
  color: var(--paars);
}

.week-dag-hint-text {
  font-size: 0.78rem;
  color: var(--grijs);
  font-style: italic;
}

.dag-config-info {
  background: var(--paars-licht);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--donker);
}

.week-dag-type-label {
  font-size: 0.9rem;
  color: var(--donker);
  font-weight: 600;
}

.week-dag-type {
  padding: 6px 10px;
  border: 2px solid var(--grijs-licht);
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
  color: var(--donker);
}

.week-dag-type:focus {
  outline: none;
  border-color: var(--paars);
}

.week-hint {
  background: var(--paars-licht);
  border-left: 4px solid var(--paars);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--donker);
  line-height: 1.5;
  margin-top: 10px;
}

/* Week van input */
.week-van-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--grijs-licht);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  color: var(--donker);
  box-sizing: border-box;
}

.week-van-input:focus {
  outline: none;
  border-color: var(--paars);
}

.week-knop-rij {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .week-dialoog { padding: 22px 18px; }
  .week-dag-instellingen { padding-left: 0; }
}

/* ============================================
   Knoppen
   ============================================ */
.knop-rij {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.knop {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.knop-primair {
  background: var(--oranje);
  color: white;
  box-shadow: var(--shadow-sm);
}
.knop-primair:hover {
  background: var(--oranje-diep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.knop-secundair {
  background: white;
  color: var(--donker);
  border: 2px solid var(--grijs-licht);
}
.knop-secundair:hover {
  border-color: var(--donker);
}

.knop-paars {
  background: var(--paars);
  color: white;
}
.knop-paars:hover {
  background: #553b7e;
}

/* ============================================
   PRO-lock & info
   ============================================ */
.pro-slot {
  display: inline-block;
  background: var(--paars);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}

.pro-info {
  background: var(--paars-licht);
  border-left: 4px solid var(--paars);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--paars);
}

.pro-info a {
  color: var(--paars);
  font-weight: 700;
}

/* ============================================
   FLITS-MODUS (fullscreen)
   ============================================ */
.flits-overlay {
  position: fixed;
  inset: 0;
  background: var(--creme);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flits-overlay.thema-donker {
  background: #1a1a24;
  color: white;
}

.flits-topbalk {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.flits-teller {
  background: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  color: var(--paars);
}

.thema-donker .flits-teller {
  background: rgba(255,255,255,0.1);
  color: white;
}

.flits-sluit {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--roze);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 700;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.flits-vraag {
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 900;
  color: var(--paars);
  text-align: center;
  letter-spacing: -0.02em;
  animation: flitsIn 0.3s ease-out;
}

.thema-donker .flits-vraag { color: white; }

@keyframes flitsIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.flits-voortgang {
  position: absolute;
  bottom: 20px;
  left: 40px;
  right: 40px;
  height: 6px;
  background: var(--grijs-licht);
  border-radius: 999px;
  overflow: hidden;
}

.thema-donker .flits-voortgang {
  background: rgba(255,255,255,0.15);
}

.flits-voortgang-balk {
  height: 100%;
  background: var(--oranje);
  transition: width 0.1s linear;
  border-radius: 999px;
}

/* Bedieningsknoppen onder de vraag */
.flits-bediening {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: center;
}

.flits-bedien-knop {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--grijs-licht);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--paars);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flits-bedien-knop:hover {
  border-color: var(--paars);
  transform: translateY(-2px);
}

.flits-bedien-knop.flits-pauze {
  width: 60px;
  height: 60px;
  background: var(--paars);
  color: white;
  border-color: var(--paars);
  font-size: 1.3rem;
}

.flits-bedien-knop.flits-pauze:hover {
  background: #553b7e;
}

.flits-start {
  text-align: center;
}
.flits-start h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--paars);
}
.thema-donker .flits-start h2 { color: white; }
.flits-start p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--grijs);
}
.flits-start .knop {
  padding: 20px 48px;
  font-size: 1.3rem;
}

.flits-klaar {
  text-align: center;
}
.flits-klaar .icoon {
  font-size: 5rem;
  margin-bottom: 14px;
}
.flits-klaar h2 {
  font-size: 2.5rem;
  color: var(--groen);
  margin-bottom: 14px;
}

/* Getalbeeld (MAB) weergave */
.getalbeeld-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.getalbeeld-mab {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 80vw;
}

.mab-tiental {
  width: clamp(20px, 3vw, 32px);
  height: clamp(120px, 18vw, 220px);
  background-color: #6bb83e;  /* groen voor tientallen */
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0,
    rgba(0, 0, 0, 0.25) 1px,
    transparent 1px,
    transparent 10%
  );
  border: 2px solid #4a8a28;
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.mab-eenheden {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
}

.mab-eenheid {
  width: clamp(20px, 3vw, 32px);
  height: clamp(10px, 1.6vw, 20px);
  background: #ffd84d;  /* geel voor eenheden */
  border: 2px solid #d4a800;
  border-radius: 3px;
}

/* 100-veld (10×10 rooster) - eenheden onderaan, tientallen bovenaan volgroeien */
.honderdveld {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 3px solid #2d2a26;
  padding: 0;
  background: white;
  box-shadow: var(--shadow-md);
}

/* 20-veld: 2 rijen × 10 - grotere vakjes */
.honderdveld.twintigveld .honderdveld-vak {
  width: clamp(32px, 5vw, 56px);
  height: clamp(32px, 5vw, 56px);
}

/* Geen middelste horizontale scheidslijn bij 20-veld */
.honderdveld.twintigveld .honderdveld-rij:nth-child(5) {
  border-top: none;
}

.honderdveld-rij {
  display: flex;
  gap: 0;
}

/* Elke 5e rij een extra lijn bovenaan (visueel halveren) */
.honderdveld-rij:nth-child(5) {
  border-top: 2px solid #2d2a26;
}

.honderdveld-vak {
  width: clamp(18px, 2.8vw, 32px);
  height: clamp(18px, 2.8vw, 32px);
  border: 1px solid #2d2a26;
  box-sizing: border-box;
}

/* Extra dikke lijn na 5e kolom */
.honderdveld-vak:nth-child(5) {
  border-right: 2px solid #2d2a26;
}

.honderdveld-vak.leeg {
  background: white;
}

.honderdveld-vak.groen {
  background: #6bb83e;
}

.honderdveld-vak.geel {
  background: #ffd84d;
}

/* ============================================
   UITLEG — knop in hero + dialoog
   ============================================ */

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.uitleg-knop {
  background: white;
  color: var(--paars);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.uitleg-knop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 76, 155, 0.3);
}

.uitleg-knop:active {
  transform: translateY(0);
}

/* Dialoog */
.uitleg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: uitleg-fade-in 0.2s ease-out;
}

@keyframes uitleg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.uitleg-dialoog {
  background: white;
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: uitleg-pop-in 0.25s ease-out;
}

@keyframes uitleg-pop-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.uitleg-sluit {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--creme);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--donker);
  z-index: 2;
  line-height: 1;
}

.uitleg-sluit:hover {
  background: var(--grijs-licht);
}

.uitleg-inhoud {
  padding: 30px 30px 20px 30px;
  overflow-y: auto;
  flex: 1;
}

.uitleg-stap-teller {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--paars);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.uitleg-inhoud h2 {
  margin: 0 0 18px 0;
  color: var(--donker);
  font-size: 1.5rem;
  font-weight: 900;
}

.uitleg-illustratie {
  margin: 0 0 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--creme);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.uitleg-illustratie svg {
  display: block;
  width: 100%;
  height: auto;
}

.uitleg-tekst {
  color: var(--donker);
  line-height: 1.6;
  font-size: 0.98rem;
}

.uitleg-tekst p {
  margin: 0 0 12px 0;
}

.uitleg-tekst ul,
.uitleg-tekst ol {
  margin: 0 0 12px 0;
  padding-left: 22px;
}

.uitleg-tekst li {
  margin-bottom: 6px;
}

.uitleg-tekst code {
  background: var(--paars-licht);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--paars);
}

.uitleg-tekst strong {
  color: var(--paars);
}

.uitleg-tekst .tip {
  background: var(--paars-licht);
  border-left: 3px solid var(--paars);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0;
}

.uitleg-tekst .tip strong {
  color: var(--donker);
}

/* Voet met stippen + knoppen */
.uitleg-voet {
  padding: 16px 30px 20px 30px;
  border-top: 1px solid var(--grijs-licht);
  background: var(--creme);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uitleg-stip-rij {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.uitleg-stip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grijs-licht);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.uitleg-stip:hover {
  background: var(--paars-licht);
}

.uitleg-stip.actief {
  background: var(--paars);
  transform: scale(1.25);
}

.uitleg-knop-rij {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.uitleg-knop-rij .knop {
  flex: 1;
  max-width: 180px;
}

/* Mobiel */
@media (max-width: 600px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .uitleg-knop {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  .uitleg-inhoud {
    padding: 20px;
  }

  .uitleg-inhoud h2 {
    font-size: 1.2rem;
  }
}

/* Notatie (4E 7T) - zwart, kinderen moeten zelf denken welke T en welke E is */
.notatie {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  display: flex;
  gap: 0.4em;
  align-items: baseline;
  color: var(--donker) !important;
}

.notatie-tient,
.notatie-eenh {
  color: var(--donker) !important;
}

/* Splitsingen */
.splitsing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--paars);
}

.splitsing-top {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 1;
  color: var(--paars);
  width: clamp(90px, 15vw, 160px);
  height: clamp(90px, 15vw, 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--paars);
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
}

.splitsing-top.leeg,
.splitsing-kind.leeg {
  border-style: dashed;
  color: var(--roze);
  background: #fdeef5;
}

.splitsing-v {
  width: clamp(240px, 35vw, 420px);
  height: clamp(90px, 14vw, 160px);
  color: var(--paars);
  margin: -8px 0;
}

.splitsing-kinderen {
  display: flex;
  gap: clamp(60px, 10vw, 140px);
}

.splitsing-kind {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--paars);
  width: clamp(75px, 13vw, 140px);
  height: clamp(75px, 13vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--paars);
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
}

/* Rekenrek */
.rekenrek {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #8b6f47;
  padding: 16px;
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}

.rekenrek-rij {
  display: flex;
  gap: 2px;
  height: clamp(28px, 4vw, 40px);
}

.kraal {
  width: clamp(28px, 4vw, 40px);
  height: clamp(28px, 4vw, 40px);
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.3);
}
.kraal.rood { background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a); }
.kraal.wit { background: radial-gradient(circle at 30% 30%, #ffffff, #d5d5d5); }

/* ============================================
   Preview
   ============================================ */
.preview-wrap {
  background: white;
  border-radius: var(--radius-groot);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.preview-wrap h3 {
  margin-bottom: 16px;
  color: var(--paars);
}

.preview-lijst {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.preview-item {
  padding: 10px 14px;
  background: var(--creme);
  border-radius: 8px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.preview-item .nr {
  color: var(--grijs);
  font-weight: 600;
  margin-right: 8px;
}

.preview-item .ant {
  color: var(--groen);
  font-weight: 700;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
  header.hero {
    padding: 22px 20px;
  }
  header.hero h1 { font-size: 1.5rem; }
  .config-kaart { padding: 20px; }
  .tab-btn { font-size: 0.85rem; padding: 8px 14px; }
}

/* ============================================
   Print (voor PDF fallback als we jsPDF niet willen)
   ============================================ */
@media print {
  body { background: white; }
  .no-print { display: none !important; }
}
