/*
 * Bestand  : basis.css
 * Project  : Kantoorruimte Dijkhuizen
 * Datum    : 2026-10-01
 * Doel     : CSS-reset en typografie-basis — bouwt voort op de tokens uit variabelen.css
 */

@import url('variabelen.css');


/* ─── Reset ────────────────────────────────────────────────────────────────── */

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


/* ─── Scroll-gedrag ────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  /* Sticky nav mag ankerlinks niet overlappen */
  scroll-padding-top: 96px;
}

[id] { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ─── Body-basis ───────────────────────────────────────────────────────────── */

html,
body {
  /* clip i.p.v. hidden zodat position:sticky blijft werken */
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
}

body {
  font-family: var(--font-tekst);
  font-size: var(--tekst-base);
  color: var(--kleur-tekst);
  /* Lichte ondergrond; de inhoud staat in witte panelen en fotovlakken
     daarbovenop — zoals in alle drie de references. */
  background: var(--kleur-licht);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ─── Kopregels h1–h6 ──────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-kop);
  color: var(--kleur-accent);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--tekst-4xl); font-weight: 800; margin-bottom: var(--ruimte-3); }
h2 { font-size: var(--tekst-3xl); font-weight: 700; margin-bottom: var(--ruimte-3); }
h3 { font-size: var(--tekst-2xl); font-weight: 700; margin-bottom: var(--ruimte-2); }
h4 { font-size: var(--tekst-xl);  font-weight: 600; margin-bottom: var(--ruimte-1); }
h5 { font-size: var(--tekst-lg);  font-weight: 600; margin-bottom: var(--ruimte-1); }

/* Koppen in donkere secties en in de footer worden wit */
.sectie--donker h2,
.sectie--donker h3,
.sectie--donker h4,
footer h2,
footer h3,
footer h4 { color: var(--kleur-wit); }


/* ─── Links ────────────────────────────────────────────────────────────────── */

a {
  color: var(--kleur-accent);
  text-decoration: none;
  transition: color var(--overgang);
}

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--kleur-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--afronding-klein);
  background: var(--kleur-donker);
  color: var(--kleur-wit);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--overgang);
}

.skip-link:focus-visible {
  color: var(--kleur-wit);
  transform: translateY(0);
}


/* ─── Tekstelementen ───────────────────────────────────────────────────────── */

p { margin-bottom: var(--ruimte-3); }
p:last-child { margin-bottom: 0; }

strong { color: var(--kleur-tekst-sterk); font-weight: 600; }

ul, ol { margin-bottom: var(--ruimte-3); padding-left: var(--ruimte-3); }
li { margin-bottom: var(--ruimte-1); }

small { font-size: var(--tekst-sm); }

abbr[title] { text-decoration: underline dotted; cursor: help; }


/* ─── Afbeeldingen & embeds ────────────────────────────────────────────────── */

img, svg, iframe {
  max-width: 100%;
  display: block;
}

/* Houd de oorspronkelijke beeldverhouding intact wanneer een afbeelding
   door de beschikbare breedte wordt verkleind. Fotoframes overschrijven dit
   bewust met height: 100% en object-fit: cover. */
img { height: auto; }

iframe { border: 0; }


/* ─── Formulier-basis ──────────────────────────────────────────────────────── */

button { font-family: inherit; cursor: pointer; }


/* ─── Hulpklassen ──────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gecentreerd { text-align: center; }

.tekst-smal {
  max-width: var(--container-tekst);
}

.gecentreerd.tekst-smal,
.tekst-smal--midden {
  margin-left: auto;
  margin-right: auto;
}
