/* De site van Cupdesk, in de kleuren van de app (app/.../ui/Thema.kt en res/values/kleuren.xml):
   diep groen #0E3B33, midden groen #1F6B5C, goud #C98A12 (op licht papier het donkerder #7A5200,
   voor genoeg contrast) en papier #F6F4EE. 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) vanzelf goed staat. Het schema 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: #f6f4ee;
  --vlak: #eceae3;
  --kaart: #fffefb;
  --rand: #dedcd5;
  --lijn: #c9c7be;
  --inkt: #1b1c1a;
  --inkt-zacht: #46483f;
  --groen: #0e3b33;
  --groen-diep: #08241f;
  --groen-licht: #d4eae3;
  --geel: #7a5200;
  --geel-licht: #f2b544;
  --geel-vlak: #fbe7bf;
  --link: #0e3b33;
  --diep: #e5e3dc;
  --schaduw: 0 1px 2px rgba(14, 59, 51, .08), 0 10px 28px rgba(14, 59, 51, .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: #7fd3bd;
    --groen-diep: #0a110f;
    --groen-licht: #235b51;
    --geel: #f2b544;
    --geel-licht: #f2b544;
    --geel-vlak: #3a2a00;
    --link: #7fd3bd;
    --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: #0e3b33; color: #f6f4ee; }
.blok-accent h2 { color: #f2b544; }
.blok-accent a { color: #fff; text-decoration-color: #f2b544; }

.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 schema (aria-hidden)
   Zoals de app het tekent: vier kolommen (kwartfinales, halve finales, finale, winnaar), elke
   wedstrijd een kaartje met twee regels, de winnaar vet met een gouden streep. Op een smal scherm
   schuift het schema zelf opzij, de pagina niet. */

.schema {
  width: 100%; max-width: 34rem; display: grid; grid-template-columns: repeat(3, minmax(6.5rem, 1fr)) minmax(5rem, .8fr);
  gap: .6rem; padding: 1.1rem; background: var(--groen); border-radius: 18px; box-shadow: var(--schaduw);
  overflow-x: auto; color: #f6f4ee; font-size: .9rem;
}
.schema .ronde { display: flex; flex-direction: column; justify-content: space-around; gap: .6rem; }
.schema .partij {
  list-style: none; margin: 0; padding: 0; background: rgba(246, 244, 238, .08);
  border: 1px solid rgba(246, 244, 238, .28); border-radius: 10px; overflow: hidden;
}
.schema .partij li {
  display: flex; justify-content: space-between; gap: .4rem; padding: .28rem .5rem; margin: 0;
  line-height: 1.25; opacity: .72;
}
.schema .partij li + li { border-top: 1px solid rgba(246, 244, 238, .18); }
.schema .partij li .citaat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schema .partij li b { font-variant-numeric: tabular-nums; }
.schema .partij .wint { opacity: 1; font-weight: 700; box-shadow: inset 3px 0 0 #f2b544; }
[dir="rtl"] .schema .partij .wint { box-shadow: inset -3px 0 0 #f2b544; }
.schema .beker { justify-content: center; }
.schema .beker p {
  margin: 0; padding: .6rem .5rem; text-align: center; border-radius: 12px; background: #f2b544; color: #0e3b33;
  font-weight: 800; overflow-wrap: anywhere; line-height: 1.2;
}
.schema .beker p::before { content: ""; display: block; width: 1.6rem; height: 1.6rem; margin: 0 auto .3rem;
  border: 3px solid #0e3b33; border-top-width: 6px; border-radius: 0 0 50% 50%; }

/* ---------------------------------------------------------------- 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; }


/* ---------------------------------------------------------------- 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; }
}
