/* linerail.h4it.nl. Zoals de app: amber (de ooglijn) op bijna zwart inkt, met
   koel wit voor de tekst. Wie een licht thema kiest, krijgt lichte kleuren; het
   voorbeeldscherm blijft donker. Geen scripts, geen inline stijl, niets van buiten
   (de CSP in site/.htaccess dwingt dat af). */

:root {
  --bg: #0e0f12;
  --paneel: #16181d;
  --paneel-2: #1a1c22;
  --paneel-3: #22252c;
  --lijn: #2c2f38;
  --lijn-sterk: #4a4f5c;
  --tekst: #e9eaee;
  --licht: #f4f5f7;
  --zacht: #a9adb8;
  --accent: #ffb627;
  --accent-tekst: #ffc75a;
  --op-accent: #241900;
  --koel: #9fb6d6;
  --schaduw: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* Het voorbeeldscherm en het horloge blijven altijd donker. */
  --nacht: #0e0f12;
  --nacht-paneel: #1a1c22;
  --nacht-lijn: #2c2f38;
  --nacht-tekst: #f4f5f7;
  --nacht-zacht: #a9adb8;

  --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: #f6f6f8;
    --paneel: #ffffff;
    --paneel-2: #eeeff2;
    --paneel-3: #e6e7eb;
    --lijn: #dcdde3;
    --lijn-sterk: #a9acb6;
    --tekst: #15171c;
    --licht: #0e0f12;
    --zacht: #4c505b;
    --accent: #8a5a00;
    --accent-tekst: #7a4f00;
    --op-accent: #ffffff;
    --koel: #2b4f6e;
    --schaduw: 0 24px 50px rgba(14, 15, 18, 0.16);
    color-scheme: light;
  }
}

*, *::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; }
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 */
.kop { border-bottom: 1px solid var(--lijn); }
.kop-rij { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; flex-wrap: wrap; padding-block: 0.85rem; }
.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; border-radius: 0.6rem; }
.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; }
.talen { display: flex; flex-wrap: wrap; gap: 0.15rem; margin: 0; padding: 0.15rem; list-style: none; border: 1px solid var(--lijn); border-radius: 1.2rem; }
.talen a { display: block; min-width: 2.4rem; text-align: center; padding: 0.3rem 0.5rem; border-radius: 999px; color: var(--zacht); text-decoration: none; font-size: 0.85rem; font-weight: 650; letter-spacing: 0.04em; }
.talen a:hover { color: var(--tekst); }
.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(--accent); }
.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.08); }
.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 de prompter en het horloge (puur HTML, aria-hidden) */
.toestellen { position: relative; max-width: 24rem; width: 100%; margin-inline: auto; padding-block-end: 7rem; }
.telefoon { background: var(--nacht); color: var(--nacht-tekst); border: 1px solid var(--nacht-lijn); border-radius: 2.2rem; box-shadow: var(--schaduw); padding: 1.6rem 1.3rem 1.1rem; }
.pr-tekst { position: relative; padding-inline: 0.9rem; }
.pr-regel { margin: 0 0 0.35rem; font-family: var(--kop); font-weight: 700; font-size: 1.45rem; line-height: 1.3; color: var(--nacht-tekst); }
.pr-weg { opacity: 0.35; }
.pr-nu { position: relative; color: #ffffff; }
.pr-nu::before, .pr-nu::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-block: 0.45rem solid transparent; transform: translateY(-50%); }
.pr-nu::before { inset-inline-start: -1rem; border-inline-start: 0.6rem solid #ffb627; }
.pr-nu::after { inset-inline-end: -1rem; border-inline-end: 0.6rem solid #ffb627; }
.pr-aanwijzing { color: #ffb627; font-weight: 600; font-size: 0.85em; }
.pr-balk { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 1rem; padding: 0.6rem 0.9rem; border-radius: 1rem; background: var(--nacht-paneel); font-size: 0.92rem; color: var(--nacht-zacht); }
.pr-balk b { color: #ffb627; font-weight: 700; }
.horloge { position: absolute; inset-inline-end: -0.6rem; bottom: 0; width: 7.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--nacht); border: 6px solid #22252c; box-shadow: var(--schaduw); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; color: #ffb627; }
.hl-speel { width: 2.6rem; height: 2.6rem; }
.hl-tempo { font-family: var(--kop); font-size: 0.9rem; font-weight: 800; color: #f4f5f7; }

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

.stappen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: stap; }
.stap { background: var(--paneel); border: 1px solid var(--lijn); border-radius: 16px; padding: 1.35rem 1.3rem 1.25rem; counter-increment: stap; }
.stap::before { content: counter(stap); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.8rem; border-radius: 50%; background: var(--accent); color: var(--op-accent); font-family: var(--kop); font-weight: 800; font-size: 1.2rem; }
.stap h3 { margin-bottom: 0.45rem; }
.stap p { color: var(--zacht); margin: 0; }

.functies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.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 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); }

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

/* 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 { 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; border-radius: 0.45rem; }
.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); }
  .stappen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 38rem) {
  body { font-size: 1.0625rem; }
  .functies { grid-template-columns: minmax(0, 1fr); }
  .menu { gap: 0.2rem 0.9rem; }
  .lead { font-size: 1.15rem; }
  .wrap { padding-inline: 1rem; }
  .toestellen { padding-block-end: 6.2rem; }
  .horloge { width: 6.6rem; inset-inline-end: 0; }
}
@media (forced-colors: active) {
  .lampje { background: CanvasText; }
  .horloge, .pr-aanwijzing, .pr-balk b { color: CanvasText; }
}
@media (prefers-reduced-motion: no-preference) {
  .knop { transition: filter 0.15s ease; }
}
