/* De site van Everyonce, in de kleuren van de app (app/.../ui/Thema.kt en res/values/kleuren.xml):
   schoolbordgroen #1F4D45, krijtgeel #F2C14E (op licht papier het donkerder oker #8A6100, voor
   genoeg contrast) en krijtwit #F7F5F0. Licht en donker volgen het toestel (prefers-color-scheme),
   net als de app. Geen lettertypen van buiten: de letters van het toestel. Geen style-attributen
   (CSP). Richtingen met logische eigenschappen (inline-start en inline-end), zodat dir="rtl"
   (ar, he, fa) vanzelf goed staat. Het bord op de beginpagina is HTML van tools/site-build.py
   (aria-hidden), met de voorbeeldnamen van de app in de taal van de pagina. */

:root {
  --papier: #f7f5f0;
  --vlak: #eceae3;
  --kaart: #fffefb;
  --rand: #dedcd5;
  --lijn: #c9c7be;
  --inkt: #1b1c1a;
  --inkt-zacht: #46483f;
  --groen: #1f4d45;
  --groen-diep: #133630;
  --groen-licht: #cfe7e0;
  --geel: #8a6100;
  --geel-licht: #f2c14e;
  --geel-vlak: #f8e5b5;
  --link: #1f4d45;
  --diep: #e5e3dc;
  --schaduw: 0 1px 2px rgba(31, 77, 69, .08), 0 10px 28px rgba(31, 77, 69, .10);
  --zonder: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0f1715;
    --vlak: #141c1a;
    --kaart: #18211f;
    --rand: #26302d;
    --lijn: #3d4744;
    --inkt: #e3e6e2;
    --inkt-zacht: #c0c9c5;
    --groen: #9fd3c7;
    --groen-diep: #0a110f;
    --groen-licht: #235b51;
    --geel: #f2c14e;
    --geel-licht: #f2c14e;
    --geel-vlak: #3a2a00;
    --link: #9fd3c7;
    --diep: #0a110f;
    --schaduw: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:lang(ko) { word-break: keep-all; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--zonder);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, .merk, .voet-merk {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); margin: 0 0 .5em; letter-spacing: -.02em; color: var(--groen); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin: 0 0 .6em; color: var(--groen); }
h3 { font-size: 1.15rem; margin: 0 0 .4em; font-weight: 700; }
html:lang(th) h1, html:lang(th) h2, html:lang(ja) h1, html:lang(ko) h1 { text-wrap: wrap; }

p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-color: var(--geel); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .knop:focus-visible {
  outline: 3px solid var(--geel);
  outline-offset: 2px;
  border-radius: 4px;
}
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }
ul, ol { padding-inline-start: 1.3em; }
li { margin: .25em 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.smal { max-width: 46rem; }
.lead { font-size: 1.2rem; }
.klein { font-size: .875rem; color: var(--inkt-zacht); }

.overslaan {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--groen); color: var(--papier); font-weight: 700;
  padding: .5rem 1rem; border-radius: 0 0 8px 8px; z-index: 10;
}
.overslaan:focus { top: 0; }

/* ---------------------------------------------------------------- kop */

.kop { border-bottom: 1px solid var(--lijn); background: var(--papier); }
.kop-rij { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-top: .75rem; padding-bottom: .75rem; }
.merk { display: inline-flex; align-items: center; gap: .55rem; color: var(--groen); text-decoration: none; font-size: 1.35rem; }
.merk .logo { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-inline-start: auto; }
.menu a { color: var(--inkt); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--geel); }

.taalkeuze { position: relative; }
.taalkeuze summary {
  list-style: none; cursor: pointer; padding: .3rem .7rem; border: 1px solid var(--lijn);
  border-radius: 999px; font-size: .95rem; white-space: nowrap;
}
.taalkeuze summary::-webkit-details-marker { display: none; }
.taalkeuze summary::after { content: " \25BE"; color: var(--inkt-zacht); }
.taalkeuze[open] summary { background: var(--vlak); }
.talen {
  position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 5;
  list-style: none; margin: 0; padding: .4rem; min-width: 15rem; max-height: 70vh; overflow: auto;
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: 12px; box-shadow: var(--schaduw);
  columns: 2; column-gap: .25rem;
}
.talen li { margin: 0; break-inside: avoid; }
.talen a { display: block; padding: .3rem .55rem; border-radius: 8px; color: var(--inkt); text-decoration: none; }
.talen a:hover { background: var(--vlak); }
.talen a[aria-current] { background: var(--geel-vlak); font-weight: 600; }

/* ---------------------------------------------------------------- beginpagina */

.held { padding: 3rem 0 3.5rem; }
.held-rij { display: grid; gap: 2.5rem; align-items: center; }
.held-klein { color: var(--inkt-zacht); font-size: .95rem; }
.held-beeld { display: flex; justify-content: center; }

.knop {
  display: inline-block; background: var(--groen); color: var(--papier); text-decoration: none;
  padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700;
}
.knop-stil { background: transparent; color: var(--groen); border: 1px solid var(--groen); }

.blok { padding: 3.25rem 0; }
.blok-zacht { background: var(--vlak); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.blok-accent { background: #1f4d45; color: #f7f5f0; }
.blok-accent h2 { color: #f2c14e; }
.blok-accent a { color: #fff; text-decoration-color: #f2c14e; }

.kaarten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.kaart {
  background: var(--kaart); border: 1px solid var(--rand); border-radius: 16px; padding: 1.25rem 1.25rem .5rem;
}
.kaart h3 { color: var(--groen); }
.kaart-plus { border-color: var(--geel); border-width: 2px; }
.kaart-plus h3 { color: var(--geel); }

.twee { display: grid; gap: 2rem; }
.kaarten + .klein { margin-top: 1.25rem; }
.twee-midden { align-items: center; }
.prijs { margin-top: 1.5rem; gap: 1rem; }

/* Opsommingen met een krijtgele stip in een ring, zoals de grote stip in het icoon. */
.vinkjes { list-style: none; padding: 0; }
.vinkjes li { position: relative; padding-inline-start: 1.9rem; }
.vinkjes li::before {
  content: ""; position: absolute; inset-inline-start: .1rem; top: .45em;
  width: .7rem; height: .7rem; border-radius: 50%; background: var(--geel-licht);
  box-shadow: 0 0 0 3px var(--papier), 0 0 0 4px var(--geel);
}
.kaart .vinkjes li::before { box-shadow: 0 0 0 3px var(--kaart), 0 0 0 4px var(--geel); }
.blok-zacht .vinkjes li::before { box-shadow: 0 0 0 3px var(--vlak), 0 0 0 4px var(--geel); }

.vraag { border-bottom: 1px solid var(--lijn); padding: .75rem 0; }
.vraag summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.vraag summary::marker { color: var(--geel); }
.vraag .antwoord { padding-top: .5rem; }

@media (min-width: 52rem) {
  .held-rij { grid-template-columns: 1.15fr 1fr; }
  .twee { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- het bord (aria-hidden)
   Zoals de bordweergave van de app: groen schoolbord, groot de gekozen naam in krijtwit, eronder de
   klas; wie al geweest is lichter, de gekozen naam in krijtgeel. */

.bord {
  width: 100%; max-width: 30rem; padding: 1.6rem 1.4rem 1.4rem;
  background: #1f4d45; color: #f7f5f0; border: 10px solid #5b4632; border-radius: 18px;
  box-shadow: var(--schaduw);
}
.bord-naam {
  margin: 0 0 1.1rem; text-align: center; font-weight: 800; line-height: 1.1;
  font-size: clamp(2.4rem, 7vw, 3.6rem); overflow-wrap: anywhere;
}
.bord-naam .citaat { border-bottom: 4px solid #f2c14e; padding: 0 .15em; }
.bord-klas {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem;
  grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
}
.bord-klas li {
  margin: 0; padding: .3rem .4rem; text-align: center; border-radius: 10px; font-weight: 600;
  border: 1px solid rgba(247, 245, 240, .45); overflow-wrap: anywhere; line-height: 1.3;
}
.bord-klas .geweest { opacity: .42; border-style: dashed; }
.bord-klas .gekozen { background: #f2c14e; border-color: #f2c14e; color: #1f4d45; font-weight: 800; }

/* ---------------------------------------------------------------- tekstpagina's */

.tekst { max-width: 46rem; padding: 2.5rem 0 3rem; }
.tekst h2 { margin-top: 2rem; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.bijgewerkt { color: var(--inkt-zacht); font-size: .95rem; }
.tekst ol > li { margin: .6em 0; }

.bronnen { padding-inline-start: 1.1em; }
.bronnen li { margin: .45em 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- voet */

.voet { border-top: 1px solid var(--lijn); background: var(--diep); padding: 2.5rem 0 2rem; font-size: .95rem; }
.voet-rij { display: grid; gap: 1.5rem; }
.voet-merk { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin-bottom: .5rem; color: var(--groen); }
.voet-merk .logo { width: 29px; height: 29px; border-radius: 50%; }
.voet-kop { font-weight: 700; margin-bottom: .25rem; }
.impressum { line-height: 1.5; }
.voet-links { list-style: none; padding: 0; margin: 0; }
.voet-links a { color: var(--inkt); }
@media (min-width: 46rem) { .voet-rij { grid-template-columns: 2fr 1fr; } }

/* Het blad voor de school: een kader dat ook op papier goed staat. */
.blad { border: 2px solid var(--groen); border-radius: 16px; padding: 1.25rem 1.4rem .5rem; margin: 1.5rem 0; background: var(--kaart); }
.blad h2 { margin-top: 0; }

/* 404 */
.terug { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

@media print {
  .kop, .voet, .taalkeuze, .overslaan { display: none; }
  body { background: #fff; color: #000; }
  .blad { border-color: #000; }
}
