/*
 * SOT Leeromgeving – front-end · v0.3.0 · 2026-11-05
 * Gebruikt de tokens uit het ontwerp (Design richtlijnen). Definieer ze in het centrale
 * huisstijl-CSS-bestand; de waarden na de komma zijn alleen terugvalwaarden.
 */
.sot {
  --_primary: var(--sot-color-primary, #6B4E3D);
  --_primary-soft: var(--sot-color-primary-soft, #F3ECE6);
  --_accent: var(--sot-color-accent, #8FA68E);
  --_text: var(--sot-color-text, #2B2420);
  --_muted: var(--sot-color-text-muted, #6E645D);
  --_surface: var(--sot-color-surface, #FFFFFF);
  --_border: var(--sot-color-border, #E4DCD4);
  --_success: var(--sot-color-success, #3E7B4F);
  --_warning: var(--sot-color-warning, #B7791F);
  --_danger: var(--sot-color-danger, #B23A3A);
  --_r-sm: var(--sot-radius-sm, 6px);
  --_r-md: var(--sot-radius-md, 12px);
  --_s2: var(--sot-space-2, 8px);
  --_s3: var(--sot-space-3, 16px);
  --_s4: var(--sot-space-4, 24px);
  --_s5: var(--sot-space-5, 32px);
  max-width: var(--sot-max-width, 1120px);
  margin: 0 auto;
  color: var(--_text);
  font-family: var(--sot-font-body, inherit);
  font-size: var(--sot-text-md, 1.0625rem);
  line-height: var(--sot-line-height, 1.6);
}
.sot *, .sot *::before, .sot *::after { box-sizing: border-box; }
.sot h1, .sot h2 { font-family: var(--sot-font-heading, inherit); line-height: 1.25; margin: 0 0 var(--_s3); }
.sot .sot-title { font-size: var(--sot-text-xl, 1.75rem); }
.sot h2 { font-size: var(--sot-text-lg, 1.375rem); }
.sot-head { margin-bottom: var(--_s4); }
.sot-section { margin: var(--_s5) 0; }
.sot-muted, .sot-help { color: var(--_muted); font-size: var(--sot-text-sm, .9375rem); margin: 4px 0; }
.sot-empty { color: var(--_muted); }
.sot-back { margin: 0 0 var(--_s3); font-size: var(--sot-text-sm, .9375rem); }
.sot-back a::before { content: "\2190\00a0"; }
.sot a { color: var(--_primary); }
.sot :focus-visible { outline: 2px solid var(--_primary); outline-offset: 2px; }

/* Volgende lesdag: het ene opvallende element op het overzicht */
.sot-next {
  background: var(--_primary-soft);
  border-radius: var(--_r-md);
  padding: var(--_s4);
  margin-bottom: var(--_s5);
}
.sot-next__kicker { margin: 0; color: var(--_muted); font-size: var(--sot-text-sm, .9375rem); }
.sot-next__date { margin: 4px 0; font-family: var(--sot-font-heading, inherit); font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.15; }
.sot-next__meta { margin: 0 0 var(--_s2); }
.sot-next__lesson { margin: 0; font-weight: 600; }
.sot-next__program { margin: 0 0 var(--_s3); }

/* Lijsten en kaarten */
.sot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--_s3); }
@media (min-width: 720px) { .sot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sot-card { background: var(--_surface); border: 1px solid var(--_border); border-radius: var(--_r-md); padding: var(--_s4); }
.sot-card__link, .sot-card__title { font-weight: 600; font-size: var(--sot-text-lg, 1.375rem); text-decoration: none; display: block; margin: 0 0 var(--_s2); }
.sot-card summary { cursor: pointer; }

/* Knoppen */
.sot-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 10px 18px;
  border: 2px solid var(--_primary); border-radius: var(--_r-sm);
  background: var(--_primary); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.sot a.sot-btn { color: #fff; }
.sot-btn--secondary, .sot a.sot-btn--secondary { background: transparent; color: var(--_primary); }
.sot-btn[disabled] { opacity: .5; cursor: not-allowed; }
.sot-actions { display: flex; flex-wrap: wrap; gap: var(--_s2); margin-top: var(--_s3); align-items: center; }

/* Statuslabels en voortgang */
.sot-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--sot-text-xs, .8125rem); border: 1px solid var(--_border); }
.sot-badge--success { border-color: var(--_success); color: var(--_success); }
.sot-progress { height: 8px; background: var(--_primary-soft); border-radius: 999px; overflow: hidden; margin: var(--_s2) 0 0; }
.sot-progress span { display: block; height: 100%; background: var(--_accent); }

/* Tijdlijn van lessen */
.sot-timeline { list-style: none; margin: 0; padding: 0 0 0 var(--_s4); border-left: 2px solid var(--_border); }
.sot-timeline__item { position: relative; padding: 0 0 var(--_s5); }
.sot-timeline__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--_s4) - 7px); top: .45em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--_surface); border: 2px solid var(--_primary);
}
.sot-timeline__item.is-past { color: var(--_muted); }
.sot-timeline__item.is-past::before { background: var(--_border); border-color: var(--_border); }
.sot-timeline__title { font-size: var(--sot-text-lg, 1.375rem); margin-bottom: 4px; }
.sot-lock { color: var(--_muted); font-style: italic; }
.sot-themes { margin: var(--_s2) 0 0; padding-left: 1.2em; }
.sot-themes li { margin: 6px 0; }

/* Meldingen */
.sot-notice { border-left: 4px solid var(--_muted); background: var(--_surface); padding: var(--_s3); border-radius: var(--_r-sm); margin: var(--_s3) 0; }
.sot-notice ul { margin: 0; padding-left: 1.2em; }
.sot-notice--success { border-color: var(--_success); }
.sot-notice--warning { border-color: var(--_warning); }
.sot-notice--danger { border-color: var(--_danger); }

/* Planner */
.sot-grid { display: grid; gap: var(--_s3); }
@media (min-width: 720px) { .sot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sot-field label, .sot-weekdays legend { display: block; font-weight: 600; margin-bottom: 4px; }
.sot input[type=text], .sot input[type=number], .sot input[type=date], .sot input[type=time], .sot select, .sot textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--_text);
  border: 1px solid var(--_border); border-radius: var(--_r-sm); background: var(--_surface);
}
.sot-weekdays { border: 0; padding: 0; margin: var(--_s3) 0; }
.sot-weekday { display: inline-flex; align-items: center; gap: 4px; margin: 0 var(--_s3) var(--_s2) 0; }
.sot-weekday input { width: 20px; height: 20px; }
.sot-table-wrap { overflow-x: auto; }
.sot-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.sot-table input, .sot-table select { min-width: 0; padding: 6px; }
.sot-table tbody th { min-width: 9em; }
.sot-table th, .sot-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--_border); vertical-align: middle; }
.sot-table tbody th { font-weight: 600; }
.sot-days { list-style: none; padding: 0; margin: var(--_s3) 0 0; }
.sot-days li { display: grid; gap: var(--_s2); grid-template-columns: 1fr; padding: var(--_s2) 0; border-top: 1px solid var(--_border); }
@media (min-width: 720px) { .sot-days li { grid-template-columns: 2fr 1fr .8fr .8fr auto; align-items: center; } }
.sot-dates { margin: var(--_s2) 0 0; padding-left: 1.2em; }

@media (prefers-reduced-motion: reduce) { .sot * { transition: none !important; } }

/* Navigatie in de leeromgeving */
.sot-lo-nav { margin: 0 0 var(--_s4); border-bottom: 1px solid var(--_border); }
.sot-lo-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--_s2); }
.sot-lo-nav a { display: inline-block; padding: 10px 12px; text-decoration: none; color: var(--_muted); border-bottom: 3px solid transparent; }
.sot-lo-nav a[aria-current="page"] { color: var(--_text); border-bottom-color: var(--_primary); font-weight: 600; }
.sot h3 { font-size: 1.15rem; margin: 0 0 var(--_s2); }

/* Rijen, lijsten, formulieren */
.sot-list--single { grid-template-columns: 1fr !important; }
.sot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--_s2); padding: var(--_s3) 0; border-bottom: 1px solid var(--_border); list-style: none; }
.sot-card.is-past { opacity: .7; }
.sot-question { margin: 0 0 var(--_s4); }
.sot-question > label { font-weight: 600; display: block; margin-bottom: 4px; }
.sot-scale { display: flex; flex-wrap: wrap; gap: var(--_s2); }
.sot-scale__item, .sot-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 0; }
.sot-choice { display: flex; }
.sot-answer { background: var(--_surface); border: 1px solid var(--_border); border-radius: var(--_r-sm); padding: var(--_s3); }
.sot-feedback { background: var(--_primary-soft); border-radius: var(--_r-md); padding: var(--_s4); margin-top: var(--_s4); }
.sot-badge--attention { border-color: var(--_warning); color: var(--_warning); }
.sot-reflection-line { margin: 4px 0 0; }
.sot-field fieldset, fieldset.sot-field { border: 0; padding: 0; margin: 0 0 var(--_s3); }
.sot-field legend { font-weight: 600; margin-bottom: 4px; }
.sot-field { margin-bottom: var(--_s3); }

/* Tijdsloten */
.sot-slots { margin: 0 0 var(--_s3); }
.sot-slots__day { font-weight: 600; margin: 0 0 var(--_s2); }
.sot-slots__times { display: flex; flex-wrap: wrap; gap: var(--_s2); }
.sot-slots__times form { margin: 0; }
.sot-slot { min-height: 44px; min-width: 76px; padding: 8px 14px; border: 1px solid var(--_primary); border-radius: var(--_r-sm); background: var(--_surface); color: var(--_primary); font: inherit; font-weight: 600; cursor: pointer; }
.sot-slot:hover, .sot-slot:focus-visible { background: var(--_primary); color: #fff; }
.sot-filter { margin-bottom: var(--_s3); }

/* Certificaat-checklist */
.sot-checklist { list-style: none; padding: 0; margin: 0; }
.sot-checklist li { display: flex; gap: var(--_s2); align-items: baseline; padding: 6px 0; }
.sot-check { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border: 2px solid var(--_border); border-radius: 50%; font-size: .85em; flex: none; }
.sot-checklist li.is-done .sot-check { border-color: var(--_success); color: var(--_success); }
.sot-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--_s3); }
.sot-dl dt { color: var(--_muted); }
.sot-dl dd { margin: 0; }
.sot .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Inloggen in de leeromgeving (0.9.4) */
.sot-login { display: flex; justify-content: center; padding: var(--_s4, 24px) 0; }
.sot-login__kaart { width: min(460px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(27,27,27,.08); padding: 28px; }
.sot-login__kaart h2 { margin-top: 0; }
.sot-login form p { margin: 0 0 14px; }
.sot-login label { display: block; font-weight: 600; margin-bottom: 4px; }
.sot-login input[type="text"], .sot-login input[type="password"] { width: 100%; box-sizing: border-box; border: 1px solid #E9E0D9; border-radius: 6px; padding: 10px 12px; font-size: 1rem; }
.sot-login input[type="text"]:focus, .sot-login input[type="password"]:focus { outline: none; border-color: #F47721; box-shadow: 0 0 0 2px rgba(244,119,33,.25); }
.sot-login .login-remember label { display: inline; font-weight: 400; }
.sot-login input[type="submit"] { width: 100%; background: #F47721; border: 0; border-radius: 6px; color: #1B1B1B; font-weight: 700; font-size: 1rem; padding: 12px 18px; cursor: pointer; }
.sot-login input[type="submit"]:hover { background: #E0661A; }
.sot-login__links { text-align: center; margin: 4px 0 10px; }
.sot-login__links a { color: #780B0D; font-weight: 600; }

/* Snel naar beheer of planner (0.9.5) */
.sot-lo-nav__extra { margin-left: auto; }
.sot-lo-nav__extra + .sot-lo-nav__extra { margin-left: 0; }
.sot-lo-nav__extra a { font-weight: 700; color: #780B0D; }
