/* ==========================================================================
   Klesis — design tokens (gegenereerd uit het Klesis-designsysteem)
   Alle variabelen hebben het voorvoegsel --kl- zodat ze niet botsen met
   Bootstrap of andere bibliotheken.

   Thema's:
   - standaard licht
   - donker via <html data-theme="donker">, of automatisch volgens de
     systeeminstelling zolang er geen data-theme="licht" op <html> staat.
   - Website, e-mails en Portal: ALTIJD <html data-theme="licht">.
     Het automatische donkere thema is alleen bedoeld voor Beheer.
   ========================================================================== */

@font-face {
  font-family: "Fraunces Klesis";
  src: url("../fonts/Fraunces-Klesis.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* --- Kleur: licht (standaard) ------------------------------------------ */
:root,
[data-theme="licht"] {
  --kl-linnen: #faf6ef;
  --kl-wit: #ffffff;
  --kl-zand: #f1e8d9;
  --kl-lijn: #e3d8c6;
  --kl-lijn-sterk: #7d857f;
  --kl-veld-alleen-lezen: #f4efe6;
  --kl-inkt: #1c2b29;
  --kl-inkt-zacht: #56635f;
  --kl-inkt-uit: #949d98;
  --kl-dennen: #1f4d48;
  --kl-dennen-zacht: #dfeae5;
  --kl-dennen-diep: #17332f;
  --kl-op-dennen: #faf6ef;
  --kl-klei: #a24a2b;
  --kl-klei-zacht: #f7e3d8;
  --kl-op-klei: #ffffff;
  --kl-salie: #8fb09c;
  --kl-succes: #2d6a3e;
  --kl-succes-zacht: #e2efe4;
  --kl-waarschuwing: #8a5a00;
  --kl-waarschuwing-zacht: #f8ecd0;
  --kl-fout: #b3261e;
  --kl-fout-zacht: #f9e0dd;
  --kl-focus: var(--kl-dennen);
  --kl-link: var(--kl-dennen);
  --kl-schaduw-zacht: 0 1px 2px rgba(28,43,41,0.06), 0 4px 16px rgba(28,43,41,0.06);
  color-scheme: light;
}

/* --- Kleur: donker (expliciet) ----------------------------------------- */
[data-theme="donker"] {
  --kl-linnen: #131b1a;
  --kl-wit: #1b2624;
  --kl-zand: #1c2523;
  --kl-lijn: #2e3b39;
  --kl-lijn-sterk: #667571;
  --kl-veld-alleen-lezen: #172120;
  --kl-inkt: #eef1ec;
  --kl-inkt-zacht: #a6b3ad;
  --kl-inkt-uit: #5e6d69;
  --kl-dennen: #86c3b6;
  --kl-dennen-zacht: #1e3834;
  --kl-dennen-diep: #2a524c;
  --kl-op-dennen: #0f1615;
  --kl-klei: #e8906d;
  --kl-klei-zacht: #3d251b;
  --kl-op-klei: #131b1a;
  --kl-salie: #7fa08c;
  --kl-succes: #8fd3a0;
  --kl-succes-zacht: #1a3322;
  --kl-waarschuwing: #e8b85a;
  --kl-waarschuwing-zacht: #3a2c10;
  --kl-fout: #f2a097;
  --kl-fout-zacht: #3d1a17;
  --kl-focus: var(--kl-dennen);
  --kl-schaduw-zacht: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.25);
  color-scheme: dark;
}

/* --- Kleur: donker (volgt systeem, tenzij licht is afgedwongen) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="licht"]) {
    --kl-linnen: #131b1a;
    --kl-wit: #1b2624;
    --kl-zand: #1c2523;
    --kl-lijn: #2e3b39;
    --kl-lijn-sterk: #667571;
    --kl-veld-alleen-lezen: #172120;
    --kl-inkt: #eef1ec;
    --kl-inkt-zacht: #a6b3ad;
    --kl-inkt-uit: #5e6d69;
    --kl-dennen: #86c3b6;
    --kl-dennen-zacht: #1e3834;
    --kl-dennen-diep: #2a524c;
    --kl-op-dennen: #0f1615;
    --kl-klei: #e8906d;
    --kl-klei-zacht: #3d251b;
    --kl-op-klei: #131b1a;
    --kl-salie: #7fa08c;
    --kl-succes: #8fd3a0;
    --kl-succes-zacht: #1a3322;
    --kl-waarschuwing: #e8b85a;
    --kl-waarschuwing-zacht: #3a2c10;
    --kl-fout: #f2a097;
    --kl-fout-zacht: #3d1a17;
    --kl-focus: var(--kl-dennen);
    --kl-schaduw-zacht: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.25);
    color-scheme: dark;
  }
}

/* --- Ruimte, hoeken, letters ------------------------------------------- */
:root {
  --kl-ruimte-1: 4px;
  --kl-ruimte-2: 8px;
  --kl-ruimte-3: 12px;
  --kl-ruimte-4: 16px;
  --kl-ruimte-6: 24px;
  --kl-ruimte-8: 32px;
  --kl-ruimte-12: 48px;
  --kl-ruimte-16: 64px;
  --kl-hoek-klein: 6px;
  --kl-hoek-midden: 12px;
  --kl-hoek-groot: 20px;
  --kl-hoek-rond: 9999px;
  --kl-font-koppen: "Fraunces Klesis", Fraunces, Georgia, "Times New Roman", serif;
  --kl-font-tekst: Figtree, "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --- Typografiestijlen ------------------------------------------------- */
.kl-display {
  font-family: var(--kl-font-koppen);
  font-size: 48px;
  line-height: 52px;
  font-weight: 480;
  letter-spacing: -0.015em;
}

.kl-display-mobiel {
  font-family: var(--kl-font-koppen);
  font-size: 36px;
  line-height: 40px;
  font-weight: 480;
  letter-spacing: -0.01em;
}

.kl-kop-1 {
  font-family: var(--kl-font-koppen);
  font-size: 32px;
  line-height: 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.kl-kop-1-mobiel {
  font-family: var(--kl-font-koppen);
  font-size: 28px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.kl-kop-2 {
  font-family: var(--kl-font-koppen);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
}

.kl-cijfer {
  font-family: var(--kl-font-koppen);
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.kl-kop-3 {
  font-family: var(--kl-font-tekst);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.kl-tekst-groot {
  font-family: var(--kl-font-tekst);
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
}

.kl-tekst {
  font-family: var(--kl-font-tekst);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

.kl-tekst-klein {
  font-family: var(--kl-font-tekst);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

.kl-label {
  font-family: var(--kl-font-tekst);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kl-knop {
  font-family: var(--kl-font-tekst);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.kl-knop-klein {
  font-family: var(--kl-font-tekst);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.kl-social-kop {
  font-family: var(--kl-font-koppen);
  font-size: 88px;
  line-height: 92px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.kl-social-subkop {
  font-family: var(--kl-font-koppen);
  font-size: 56px;
  line-height: 62px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.kl-social-tekst {
  font-family: var(--kl-font-tekst);
  font-size: 36px;
  line-height: 48px;
  font-weight: 400;
}

.kl-social-label {
  font-family: var(--kl-font-tekst);
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Onder 640px schalen de grote koppen automatisch naar hun mobiele maat */
@media (max-width: 640px) {
  .kl-display { font-size: 36px; line-height: 40px; }
  .kl-kop-1 { font-size: 28px; line-height: 34px; }
}
