/* Linguaterra Institute — huisstijl
   Kleuren: papier, inkt, teal (merk), signaalgeel (accent, spaarzaam) */
:root {
  --paper: #F7F6EB;
  --band: #EFEEDC;
  --surface: #FFFFFF;
  --ink: #17262A;
  --muted: #56666A;
  --line: #DDDBC6;
  --teal: #006837;
  --teal-soft: #E3EDD5;
  --signal: #D9E021;
  --signal-ink: #17262A;
  --focus: #B8C20F;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #101A1C;
    --band: #142022;
    --surface: #172427;
    --ink: #E6EDEB;
    --muted: #A2B2B0;
    --line: #2B3C3F;
    --teal: #5CC27B;
    --teal-soft: #17301F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101A1C;
  --band: #142022;
  --surface: #172427;
  --ink: #E6EDEB;
  --muted: #A2B2B0;
  --line: #2B3C3F;
  --teal: #5CC27B;
  --teal-soft: #17301F;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 0.8rem;
}
.brand {
  font-family: var(--display); font-weight: 800; font-stretch: 118%;
  font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { display: block; width: auto; height: 40px; }
.brand-name span { color: var(--teal); font-weight: 500; font-stretch: 100%; }
.nav { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; padding-block: 0.2rem; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); }
.nav .lang { font-size: 0.85rem; border: 1px solid var(--line); padding: 0.1rem 0.5rem; border-radius: 4px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-stretch: 105%;
  padding: 0.8rem 1.3rem; border-radius: 6px; text-decoration: none; font-size: 1rem;
  border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
}
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { filter: brightness(0.95); }
.btn:hover { text-decoration: none; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.2rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .stack { gap: 1.4rem; }
.kicker { color: var(--teal); font-weight: 700; font-size: 1rem; }

/* De werkvloerzin: het kenmerkende element */
.phrase {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.2rem;
}
.phrase-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.level { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.level b { background: var(--signal); color: var(--signal-ink); padding: 0 0.35em; border-radius: 3px; }
.phrase-text { font-family: var(--display); font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 650; line-height: 1.35; }
.phrase-text mark {
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--signal) 70%, transparent) 58%);
  color: inherit; padding: 0 0.05em;
}
.gloss { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.gloss li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; font-size: 0.95rem; }
.gloss dfn { font-style: normal; font-weight: 700; }
.gloss span { color: var(--muted); }

/* Kolommen met punten */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.point { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 3px solid var(--teal); }
.point p { color: var(--muted); }

/* Stappen (echte volgorde) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: stap; }
.steps li { counter-increment: stap; display: flex; flex-direction: column; gap: 0.5rem; }
.steps li::before {
  content: counter(stap); font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--teal); color: var(--paper);
}
.steps p { color: var(--muted); font-size: 0.98rem; }

/* Sectoren */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--teal-soft); color: var(--ink); padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.95rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Feiten-lijst */
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

/* Uitgelicht blok */
.panel { background: var(--teal); color: var(--paper); border-radius: 10px; padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; }
.panel a:not(.btn) { color: inherit; }
.panel .btn { border-color: var(--paper); color: var(--paper); }
.panel .btn-primary { border-color: var(--signal); color: var(--signal-ink); }
.panel p { color: inherit; opacity: 0.92; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* Cursustabel */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 34rem; }
th, td { text-align: left; padding: 0.75rem 0.8rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: 0.95rem; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
.note { font-size: 0.95rem; color: var(--muted); }

/* Formulier */
form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { font-weight: 700; font-size: 0.95rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.8rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { padding: 0.9rem 1rem; border-radius: 6px; background: var(--teal-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-size: 1rem; color: var(--ink); margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.site-footer a { color: var(--muted); }
.site-footer .legal { grid-column: 1 / -1; max-width: none; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: 0.88rem; }

.prose { display: flex; flex-direction: column; gap: 1.1rem; }
.prose h2 { margin-top: 1.2rem; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 0.2rem; }
  .gloss li { grid-template-columns: 1fr; gap: 0.1rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .nav { gap: 0.2rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Voorwaarden */
.terms ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.6rem; max-width: 70ch; }
.terms li { padding-left: 0.3rem; }
.terms h2 { font-size: 1.3rem; margin-top: 1.6rem; }

/* CRKBO-keurmerk */
.crkbo { display: flex; align-items: center; gap: 1rem; }
.crkbo-img { flex: none; width: 96px; height: 96px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.crkbo p { font-size: 0.95rem; color: var(--muted); }

/* Afwisselende banden voor ritme bij het scannen */
main > section:nth-child(even) { background: var(--band); }
main > section:nth-child(even) + section, main > section + section:nth-child(even) { border-top-color: transparent; }

/* Knop voor telefoonnummer */
.reveal-phone { font: inherit; color: var(--teal); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.site-footer .reveal-phone { color: var(--muted); }
