/* warmony.h4it.nl. De kleuren van het icoon: diep paars met een warme koraalgolf en een
   gouden stip. Licht thema: warm papier met paarse tekst; het voorbeeldscherm blijft
   donker. Geen scripts, geen inline stijl, niets van buiten (de CSP in site/.htaccess
   dwingt dat af). */

:root {
  --bg: #0e1620;
  --paneel: #17222e;
  --paneel-2: #1f2b38;
  --lijn: #283543;
  --lijn-sterk: #4c6178;
  --tekst: #e4ebf2;
  --licht: #ffffff;
  --zacht: #bcc7d3;
  --accent: #ffa86b;
  --accent-tekst: #ffbd8f;
  --op-accent: #12304f;
  --goud: #ffd27a;
  --koel: #9cc4f0;
  --schaduw: 0 24px 60px rgba(3, 10, 20, 0.55);

  /* Het voorbeeldscherm blijft altijd donker. */
  --nacht: #000000;
  --nacht-paneel: #17222e;
  --nacht-lijn: #283543;
  --nacht-tekst: #e4ebf2;
  --nacht-zacht: #bcc7d3;

  --laag: #3d7bf0;
  --goed: #22a06b;
  --hoog: #e8613c;
  --golf: linear-gradient(90deg, var(--accent) 0%, var(--goud) 100%);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --kop: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --breed: 70rem;
  --leesbreed: 44rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fa;
    --paneel: #ffffff;
    --paneel-2: #e9eff5;
    --lijn: #d5dee8;
    --lijn-sterk: #8a9aab;
    --tekst: #14202c;
    --licht: #0a2440;
    --zacht: #4c5866;
    --accent: #12406e;
    --accent-tekst: #b44d12;
    --op-accent: #ffffff;
    --koel: #1c5fa8;
    --schaduw: 0 24px 50px rgba(18, 48, 79, 0.16);
    color-scheme: light;
  }
}

[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(--koel); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--kop); color: var(--licht); line-height: 1.15; text-wrap: balance; margin: 0 0 0.6em; }
/* Talen zonder spaties: Koreaans breekt niet midden in een woord, Japanse koppen breken op
   woordgroepen, en .samen houdt een woordgroep in een Thaise of Japanse kop bij elkaar. */
.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.6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
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(--accent); color: var(--op-accent); padding: 0.5rem 0.8rem; border-radius: 6px; }

/* Kop, met de golf van het icoon als dunne lijn eronder */
.kop { position: relative; border-bottom: 1px solid var(--lijn); }
.kop::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 4px; background: var(--golf); }
.kop-rij { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; flex-wrap: wrap; padding-block: 0.85rem 1.05rem; }
.merk { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--licht); text-decoration: none; font-family: var(--kop); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo { width: 2.3rem; height: 2.3rem; 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: dertig talen 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(--accent); color: var(--op-accent); }

/* 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.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.boventitel, .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--accent-tekst); margin-bottom: 0.9rem; }
.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(--goud); }
.knoppen { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.knop { display: inline-block; background: var(--accent); color: var(--op-accent); font-weight: 700; text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 999px; }
.knop:hover { filter: brightness(1.06); }
.knop-rand { background: transparent; color: var(--tekst); border: 1px solid var(--lijn-sterk); font-weight: 600; }
.knop-rand:hover { border-color: var(--zacht); }

/* Voorbeeld van het scherm "Live toonhoogte" (puur HTML, aria-hidden) */
.toestel { max-width: 19rem; width: 100%; margin-inline: auto; }
.horloge { aspect-ratio: 1; border-radius: 50%; background: var(--nacht); color: var(--nacht-tekst); border: 0.9rem solid #2a3644; box-shadow: var(--schaduw), inset 0 0 0 1px #3a4757; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.4rem; }
.hl-plek { margin: 0 0 0.3rem; font-weight: 700; font-size: 1rem; color: #9cc4f0; }
.hl-tijd { margin: 0; font-family: var(--kop); font-weight: 800; font-size: 3.6rem; line-height: 1; color: #ffa86b; }
.hl-onder { margin: 0.35rem 0 0.9rem; font-size: 0.95rem; color: #ffffff; }
.hl-getallen { display: flex; gap: 1.2rem; justify-content: center; margin: 0; font-size: 0.85rem; color: var(--nacht-zacht); }
.hl-getallen b { display: block; font-family: var(--kop); font-size: 1.25rem; color: #ffffff; }

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

.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-inline-start: 5px solid var(--accent); border-radius: 14px; padding: 1.25rem 1.3rem 1.15rem; }
.functie:nth-child(3n+2) { border-inline-start-color: var(--goud); }
.functie:nth-child(3n+3) { border-inline-start-color: var(--koel); }
.functie h3 { margin-bottom: 0.45rem; }
.functie 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: start; }

.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; }
.kader h3 { margin-bottom: 0.4rem; }
.kader p:last-child, .kader ul:last-child { margin-bottom: 0; }
.kader-koel { border-inline-start-color: var(--koel); }
.kader-veilig { border-inline-start-color: var(--goud); }
.kader-veilig h3::before { content: "!"; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-inline-end: 0.55rem; border-radius: 50%; background: var(--goud); color: #2b2550; font-weight: 800; font-size: 1rem; vertical-align: 0.1em; }
.kader-veilig p { margin-bottom: 0.5em; }

/* Gratis of 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-radius: 16px; padding: 1.4rem 1.4rem 1rem; }
.prijs-vol { border-color: var(--accent); }
.prijs h3 { margin-bottom: 0.2rem; }
.prijs .ondertitel { color: var(--zacht); font-size: 1rem; }
.bedrag { font-family: var(--kop); font-weight: 800; font-size: 1.6rem; color: var(--licht); margin: 0.2rem 0 0.6rem; }
.bedrag .per { font-family: inherit; font-weight: 600; font-size: 1rem; color: var(--zacht); }

/* 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-family: var(--kop); 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(2rem, 4.6vw, 2.7rem); }
.tekst h2 { font-size: 1.45rem; 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); }

/* 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; }
.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-family: var(--kop); font-weight: 700; color: var(--licht); font-size: 1.1rem; }
.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)); }
}
@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); }
}
@media (forced-colors: active) {
  .lampje, .kader-veilig h3::before { background: CanvasText; color: Canvas; }
  .kop::after { background: CanvasText; }
}
@media (prefers-reduced-motion: no-preference) {
  .knop { transition: filter 0.15s ease; }
}
