/* De site van Stenotap. De kleuren van het icoon (tools/beelden.py): diep blauw (#1F4E79), de rode
   opnamestip (#E5484D) en wit papier (#FAF8F4). Overgenomen van Souffleuse (203-rolelines), met een
   letter van het systeem voor alles en een rode streep onder de kop, zoals de regels in het icoon.
   Donker thema: nachtblauw. Het voorbeeld op de beginpagina (horloge en notitie) heeft eigen kleuren.
   Geen scripts, geen inline stijl, niets van buiten (de CSP in site/.htaccess dwingt dat af). */

:root {
  --bg: #f6f4ef;
  --paneel: #fdfcf9;
  --paneel-2: #ece8df;
  --lijn: #ddd7cb;
  --lijn-sterk: #b9b2a4;
  --tekst: #22303d;
  --licht: #13202c;
  --zacht: #55606b;
  --accent: #1f4e79;
  --accent-tekst: #1f4e79;
  --rood: #c9353b;
  --groen: #2f7a52;
  --inkt: #1f4e79;
  --op-inkt: #ffffff;
  --schaduw: 0 22px 48px rgba(19, 32, 44, 0.14);
  --focus: #13202c;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breed: 70rem;
  --leesbreed: 44rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b27;
    --paneel: #162533;
    --paneel-2: #1c2d3d;
    --lijn: #263a4c;
    --lijn-sterk: #3c5368;
    --tekst: #dde5ec;
    --licht: #f4f7fa;
    --zacht: #a5b2be;
    --accent: #8fbbe6;
    --accent-tekst: #9fc9f5;
    --rood: #ff7a7f;
    --groen: #8fd1aa;
    --inkt: #9fc9f5;
    --op-inkt: #0f1b27;
    --schaduw: 0 24px 60px rgba(0, 0, 0, 0.5);
    --focus: #9fc9f5;
    color-scheme: dark;
  }
}

[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font: 1.125rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

svg { max-width: 100%; }

a { color: var(--accent-tekst); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .knop:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 750; color: var(--licht); line-height: 1.15; text-wrap: balance; margin: 0 0 0.6em; }
/* Houdt een woordgroep op een regel, voor talen zonder spaties tussen woorden. */
.samen { white-space: nowrap; }
html:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
html:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
strong { font-weight: 650; color: var(--licht); }

.wrap { max-width: var(--breed); margin-inline: auto; padding-inline: 1.25rem; }

.overslaan { position: absolute; inset-inline-start: -999rem; }
.overslaan:focus { inset-inline-start: 1rem; top: 1rem; z-index: 9; background: var(--inkt); color: var(--op-inkt); padding: 0.5rem 0.8rem; border-radius: 6px; }

/* Kop, met een rode streep eronder zoals de regels in het icoon */
.kop { position: relative; border-bottom: 1px solid var(--lijn); }
.kop::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: min(9rem, 30%); height: 3px; border-radius: 0 3px 3px 0; background: var(--rood); }
.kop-rij { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; flex-wrap: wrap; padding-block: 0.9rem; }
.merk { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--licht); text-decoration: none; font-weight: 750; font-size: 1.4rem; letter-spacing: -0.01em; }
.logo { width: 2.2rem; height: 2.2rem; flex: none; }
.menu { display: flex; align-items: center; gap: 0.4rem 1.2rem; flex-wrap: wrap; font-size: 1rem; }
.menu > a { color: var(--tekst); text-decoration: none; padding-block: 0.45rem; }
.menu > a:hover, .menu > a[aria-current="page"] { color: var(--accent-tekst); text-decoration: underline; text-decoration-thickness: 2px; }

/* Taalkeuze in een uitklapper, zonder script */
.taalkeuze { position: relative; }
.taalkeuze summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--lijn-sterk); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.9rem; font-weight: 650; color: var(--tekst); }
.taalkeuze summary::-webkit-details-marker { display: none; }
.taalkeuze summary::after { content: "\25BE"; color: var(--zacht); }
.talen { position: absolute; inset-inline-end: 0; top: calc(100% + 0.4rem); z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(9.5rem, 1fr)); gap: 0.1rem; margin: 0; padding: 0.5rem; list-style: none; background: var(--paneel); border: 1px solid var(--lijn); border-radius: 14px; box-shadow: var(--schaduw); max-height: 70vh; overflow: auto; }
.talen a { display: block; padding: 0.35rem 0.6rem; border-radius: 8px; color: var(--tekst); text-decoration: none; font-size: 0.95rem; }
.talen a:hover { background: var(--paneel-2); }
.talen a[aria-current="true"] { background: var(--inkt); color: var(--op-inkt); }

/* Opening */
.held { padding-block: clamp(2.2rem, 6vw, 4.8rem) clamp(2.5rem, 6vw, 4.5rem); }
.held-rij { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.boventitel, .label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--accent-tekst); margin-bottom: 0.9rem; }
/* Een label met de rode opnamestip ervoor */
.label::before, .boventitel::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--rood); }
.lead { font-size: 1.25rem; max-width: 38rem; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1rem; color: var(--zacht); background: var(--paneel); border: 1px solid var(--lijn); border-radius: 999px; padding: 0.45rem 1.05rem; margin: 0.4rem 0 0; }
.lampje { flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--groen); }
.knoppen { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.knop { display: inline-block; background: var(--inkt); color: var(--op-inkt); font-weight: 700; text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 999px; }
.knop:hover { filter: brightness(1.12); }
.knop-rand { background: transparent; color: var(--tekst); border: 1px solid var(--lijn-sterk); font-weight: 600; }
.knop-rand:hover { border-color: var(--zacht); }

/* Voorbeeld: het horloge tijdens een opname en de notitie op de telefoon (puur HTML, aria-hidden) */
.toestel { max-width: 22rem; width: 100%; margin-inline: auto; display: grid; justify-items: center; }
.horloge { position: relative; z-index: 1; width: 12.5rem; aspect-ratio: 1; border-radius: 50%; background: #0b1520; color: #ffffff; border: 0.8rem solid #24313f; box-shadow: var(--schaduw), inset 0 0 0 1px #3a4b5c; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.hl-bezig { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.2rem; font-size: 0.85rem; font-weight: 650; color: #c7d4e0; }
.hl-stip { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #e5484d; }
.hl-tijd { margin: 0; font-weight: 750; font-size: 2.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: #ffffff; }
.hl-knop { margin: 0.55rem 0 0; padding: 0.3rem 1.1rem; border-radius: 999px; background: #e5484d; color: #ffffff; font-size: 0.85rem; font-weight: 700; }
.notitie { width: 100%; margin-top: -2.6rem; padding: 3.3rem 1.2rem 1rem; background: #ffffff; color: #13202c; border: 1px solid #ddd7cb; border-radius: 1.4rem; box-shadow: var(--schaduw); }
.nt-kop { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.5rem; font-size: 0.8rem; }
.nt-label { background: #e3ecf5; color: #1f4e79; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; }
.nt-wanneer { color: #55606b; }
.nt-tekst { margin: 0 0 0.7rem; font-size: 1.05rem; line-height: 1.45; color: #13202c; }
.nt-onder { display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin: 0; font-size: 0.8rem; color: #55606b; }
.nt-speel { color: #1f4e79; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Blokken */
.blok { padding-block: clamp(2.6rem, 6vw, 4.6rem); border-top: 1px solid var(--lijn); }
.blok-kop { max-width: var(--leesbreed); margin-bottom: 2rem; }
.blok-kop p { color: var(--zacht); }
.blok-kop p.label { color: var(--accent-tekst); }

.functies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.functies-drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.functie { background: var(--paneel); border: 1px solid var(--lijn); border-top: 4px solid var(--accent); border-radius: 14px; padding: 1.2rem 1.3rem 1.15rem; }
.functie:nth-child(3n+2) { border-top-color: var(--rood); }
.functie:nth-child(3n+3) { border-top-color: var(--groen); }
.functie h3 { margin-bottom: 0.45rem; }
.functie p { color: var(--zacht); margin: 0; }

.stappen { counter-reset: stap; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.stap { counter-increment: stap; background: var(--paneel); border: 1px solid var(--lijn); border-radius: 14px; padding: 1.2rem 1.3rem; }
.stap::before { content: counter(stap); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.6rem; border-radius: 50%; background: var(--inkt); color: var(--op-inkt); font-weight: 750; }
.stap h3 { margin-bottom: 0.4rem; }
.stap p { color: var(--zacht); margin: 0; }

.twee { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.twee-gelijk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }

.lijst { padding-inline-start: 1.3rem; margin: 0 0 1em; }
.lijst li { margin-bottom: 0.55rem; }
.lijst li::marker { color: var(--accent-tekst); }

.kader { background: var(--paneel); border: 1px solid var(--lijn); border-inline-start: 5px solid var(--accent); border-radius: 12px; padding: 1.25rem 1.4rem; margin-block: 1.2rem; }
.twee-gelijk .kader { margin-block: 0; }
.kader h3 { margin-bottom: 0.4rem; }
.kader p:last-child, .kader ul:last-child { margin-bottom: 0; }
.kader-rood { border-inline-start-color: var(--rood); }
.kader-groen { border-inline-start-color: var(--groen); }

/* Gratis of de volledige versie */
.prijzen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.prijs { background: var(--paneel); border: 1px solid var(--lijn); border-top: 5px solid var(--groen); border-radius: 16px; padding: 1.3rem 1.4rem 1rem; }
.prijs-plus { border-top-color: var(--accent); }
.prijs h3 { margin-bottom: 0.2rem; }
.prijs .ondertitel { color: var(--zacht); font-size: 1rem; }
.bedrag { font-weight: 750; font-size: 1.75rem; color: var(--licht); margin: 0.2rem 0 0.6rem; }
.bedrag .per { font-weight: 600; font-size: 1rem; color: var(--zacht); }
.beloften { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.beloften li { border-inline-start: 3px solid var(--groen); padding-inline-start: 0.9rem; color: var(--zacht); font-size: 1rem; }
.beloften strong { display: block; }

/* Vragen */
.vragen { max-width: 50rem; }
.vraag { border-bottom: 1px solid var(--lijn); }
.vraag:first-child { border-top: 1px solid var(--lijn); }
.vraag summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.05rem 0.2rem; font-weight: 650; font-size: 1.12rem; color: var(--licht); }
.vraag summary::-webkit-details-marker { display: none; }
.vraag summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent-tekst); }
.vraag[open] summary::after { content: "\2212"; }
.vraag .antwoord { padding: 0 0.2rem 1.1rem; color: var(--zacht); }
.vraag .antwoord p:last-child { margin-bottom: 0; }

/* Tekstpagina's */
.tekst { max-width: var(--leesbreed); padding-block: clamp(2rem, 6vw, 4rem); }
.tekst h1 { font-size: clamp(2.1rem, 4.8vw, 2.8rem); }
.tekst h2 { font-size: 1.5rem; margin-top: 2.3rem; }
.tekst h3 { margin-top: 1.6rem; }
.tekst .lead { font-size: 1.2rem; }
.tekst ul, .tekst ol { padding-inline-start: 1.3rem; }
.tekst li { margin-bottom: 0.5rem; }
.tekst li::marker { color: var(--accent-tekst); }
.bijgewerkt { font-size: 0.92rem; color: var(--zacht); }
.bronnen { margin-top: 2.3rem; padding: 0.2rem 1.4rem 0.4rem; background: var(--paneel); border: 1px solid var(--lijn); border-radius: 12px; }
.bronnen h2 { margin-top: 1rem; }

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

/* Voet */
.voet { position: relative; border-top: 1px solid var(--lijn); padding-block: 2rem 2.6rem; color: var(--zacht); font-size: 0.98rem; background: var(--paneel-2); }
.voet-rij { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.voet-tekst { max-width: 44rem; min-width: 0; }
.voet-merk { display: flex; align-items: center; gap: 0.5rem; font-weight: 750; color: var(--licht); font-size: 1.15rem; }
.voet-merk .logo { width: 1.7rem; height: 1.7rem; }
.voet-impressum { margin-block: 1rem; }
.voet-kop { margin: 0 0 0.3rem; font-weight: 700; color: var(--tekst); }
.voet .klein { font-size: 0.9rem; }
.voet-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; align-content: start; }
.voet-links a { color: var(--tekst); display: inline-block; padding-block: 0.15rem; }

@media (max-width: 56rem) {
  .held-rij, .twee, .twee-gelijk, .prijzen { grid-template-columns: minmax(0, 1fr); }
  .functies-drie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stappen, .beloften { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 38rem) {
  body { font-size: 1.0625rem; }
  .functies, .functies-drie { grid-template-columns: minmax(0, 1fr); }
  .menu { gap: 0.2rem 0.9rem; }
  .lead { font-size: 1.15rem; }
  .wrap { padding-inline: 1rem; }
  .talen { grid-template-columns: minmax(9rem, 1fr); }
  .horloge { width: 11rem; }
}
@media (forced-colors: active) {
  .lampje, .hl-stip, .label::before, .boventitel::before { background: CanvasText; }
  .kop::after { background: CanvasText; }
}
@media (prefers-reduced-motion: no-preference) {
  .knop { transition: filter 0.15s ease; }
}
