/* ---------- Training ---------- */
body.focus .menu { display: none; }
body.focus .scherm { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
a.knop { text-decoration: none; }
.knop svg { flex: none; }

.terug {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin: -8px 0 -8px -6px;
  color: var(--blauw);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Fitness-tegel op Vandaag */
.tegel-sub { font-size: 12px; font-weight: 500; color: var(--stil); }
.tegel.aan .tegel-sub { color: #FFFFFF; }
.vink-knop { margin: -8px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.tegel-actie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  margin-top: auto;
  border: 0;
  border-radius: 10px;
  background: var(--blauw);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}
.tegel.aan .tegel-actie { background: #FFFFFF; color: var(--blauw); }

/* Foto's */
.foto { position: relative; display: block; flex: none; overflow: hidden; border-radius: 10px; background: #E6E9EE; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto.wissel img + img { opacity: 0; animation: wissel 2.6s ease-in-out infinite; }
@keyframes wissel {
  0%, 38% { opacity: 0; }
  50%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .foto.wissel img + img { animation: none; }
}
.foto.leeg { display: flex; align-items: center; justify-content: center; color: #8A909A; }
.foto.klein { width: 44px; height: 44px; border-radius: 8px; }
.foto.mini { width: 36px; height: 36px; border-radius: 8px; }
.foto.groot { width: 100%; aspect-ratio: 3 / 2; border-radius: 12px; }
.foto.groot.leeg svg { width: 34px; height: 34px; }
.foto-vak { position: relative; }
.foto-knoppen { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.foto-knop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.82);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.foto-knop:focus-within { outline: 2px solid var(--blauw); outline-offset: 2px; }
.verborgen-invoer { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* Training-tab */
.volgende { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1.5px solid var(--blauw); }
.volgende h2 { margin: 0; font-family: var(--kop); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.volgende .kaart-kop { align-items: center; }
.chip-blauw {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blauw-zacht);
  color: #1C45AD;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.schemarij {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--lijn-zacht);
  background: transparent;
  color: var(--inkt);
  text-align: left;
  text-decoration: none;
}
.schemarij:last-child { border-bottom: 0; }
.dagnummer {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--achtergrond);
  font-family: var(--kop);
  font-size: 14px;
  font-weight: 700;
}
.dagnummer.volgend { background: var(--blauw); color: #FFFFFF; }
.lijst-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--lijn-zacht);
  color: var(--blauw);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Training loggen */
.klok {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--inkt);
  color: #FFFFFF;
  font-family: var(--kop);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.voortgang-kop { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.segmenten .bezig { background: var(--blauw-mid); }
.oef-lijst { display: flex; flex-direction: column; gap: 10px; }
.oef-kaart {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lijn);
  border-radius: 14px;
  background: var(--kaart);
  color: var(--inkt);
  text-align: left;
  text-decoration: none;
}
.oef-kaart.open {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--blauw);
  border-radius: 16px;
  scroll-margin-top: 12px;
}
.oef-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.oef-meta { font-size: 12px; color: var(--stil); }
.oef-naam { font-size: 15px; font-weight: 600; line-height: 1.25; }
.oef-detail { font-size: 12px; color: var(--tekst2); font-variant-numeric: tabular-nums; }
.oef-kop { display: flex; align-items: center; gap: 10px; }
.oef-nummer {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--inkt);
  color: #FFFFFF;
  font-family: var(--kop);
  font-size: 14px;
  font-weight: 700;
}
.oef-titel { margin: 0; font-family: var(--kop); font-size: 19px; font-weight: 600; }
.klaar-badge {
  width: 24px;
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blauw);
  color: #FFFFFF;
}
.klaar-badge svg { width: 14px; height: 14px; }
.klaar-badge.klein { width: 20px; height: 20px; }
.klaar-badge.klein svg { width: 12px; height: 12px; }

.settabel { display: flex; flex-direction: column; gap: 4px; }
.setrij {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 62px 58px 44px;
  gap: 6px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 10px;
}
.settabel.zonder-kg .setrij { grid-template-columns: 26px minmax(0, 1fr) 72px 44px; }
.setrij.kop {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stil);
}
.setrij.kop span:first-child,
.setrij.kop span:nth-child(n + 3) { text-align: center; }
.setrij.klaar { background: var(--blauw-zacht); }
.set-nr { text-align: center; font-family: var(--kop); font-size: 15px; font-weight: 700; }
.set-vorige { font-size: 13px; color: var(--stil); font-variant-numeric: tabular-nums; }
.set-veld {
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid var(--lijn);
  border-radius: 8px;
  background: #FFFFFF;
  text-align: center;
  font-family: var(--kop);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.set-veld::placeholder { color: #8A909A; font-weight: 500; }
.set-vink {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gemist);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--gemist);
}
.set-vink svg { width: 18px; height: 18px; }
.setrij.klaar .set-vink { background: var(--blauw); border-color: var(--blauw); color: #FFFFFF; }
.set-knoppen { display: flex; gap: 12px; }
.tekstknop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--blauw);
  font-size: 14px;
  font-weight: 600;
}
.tekstknop:disabled { color: #B4B9C2; }
.tekstknop.gevaar { align-self: center; color: #B42318; }
.oef-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--achtergrond);
  font-size: 12px;
  line-height: 1.45;
  color: var(--tekst2);
}
.logvoet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--kaart);
  border-top: 1px solid var(--lijn);
  z-index: 10;
}
.knop.breed { width: 100%; }

.wijziging {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lijn-zacht);
  color: var(--tekst2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.wijziging.beter { background: var(--blauw-zacht); color: #1C45AD; }

/* Training klaar */
.klaar-held { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; text-align: center; }
.klaar-held h1 { margin: 0; font-family: var(--kop); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.klaar-held .sub { margin: 0; }
.groot-vink {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blauw);
  color: #FFFFFF;
}
.groot-vink svg { width: 28px; height: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--lijn); border-radius: 14px; background: var(--kaart); }
.stat strong { font-family: var(--kop); font-size: 26px; line-height: 1; }
.stat span { font-size: 12px; color: var(--stil); }
.stat.blauw { background: var(--blauw); border-color: var(--blauw); color: #FFFFFF; }
.stat.blauw span { color: #FFFFFF; }
.vergelijkrij {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--lijn-zacht);
  color: var(--inkt);
  text-decoration: none;
}
.vergelijk-rechts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.advies { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--blauw-zacht); }
.advies h2 { margin: 0; font-size: 14px; font-weight: 700; color: #1C45AD; }
.advies p { margin: 0; font-size: 13px; line-height: 1.45; }
.notitie-vink { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--tekst2); }

/* Melding onderin */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--inkt);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.zichtbaar { opacity: 1; }
