/* MijnBodemCheck — stijlblad
   Lettertypen staan zelf op de server (geen Google Fonts), zodat bezoekers
   niet naar externe partijen worden doorgestuurd. Licentie: SIL OFL 1.1. */

@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* bodemlagen, van maaiveld naar ondergrond */
  --maaiveld: #F3EEE4;
  --laag-1: #EAE2D3;
  --laag-2: #DFD4C0;
  --laag-3: #D3C5AC;
  --laag-4: #C7B697;
  --ondergrond: #2E241B;

  --inkt: #1F2A1C;
  --inkt-zacht: #3A3F35;
  --blad: #2F5D3A;
  --blad-donker: #1E3F27;
  --papier: #FFFDF8;
  --lijn: #8E7D62;
  --stippel: #9C917F;
  --licht-op-donker: #F3EEE4;
  --gedempt-op-donker: #D6CBB8;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --marge: clamp(20px, 7vw, 120px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--maaiveld);
  color: var(--inkt);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blad); text-underline-offset: 0.15em; }
a:hover { color: var(--blad-donker); }

:focus-visible { outline: 3px solid var(--blad); outline-offset: 3px; }

p { margin: 0; }

.visueel-verborgen {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- kopregel ---------- */

.kop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px var(--marge);
}
.woordmerk {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--inkt);
  text-decoration: none;
}
.woordmerk:hover { color: var(--inkt); }
.kop nav { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.kop nav a { color: var(--inkt); text-decoration: none; }
.kop nav a:hover { text-decoration: underline; }
.kop .knop-lijn {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--inkt); border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.kop .knop-lijn:hover { background: var(--inkt); color: var(--maaiveld); text-decoration: none; }
@media (max-width: 720px) {
  .kop nav .alleen-breed { display: none; }
  .woordmerk { font-size: 1.375rem; }
  .kop .knop-lijn { padding: 0 14px; font-size: 0.9375rem; }
}

/* ---------- lagen en diepteschaal ---------- */

.laag { padding: clamp(56px, 7vw, 96px) var(--marge); }
.laag-1 { background: var(--laag-1); }
.laag-2 { background: var(--laag-2); }
.laag-3 { background: var(--laag-3); }
.laag-4 { background: var(--laag-4); }
.laag.maaiveld { padding-top: clamp(24px, 4vw, 64px); }

.profiel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 60px;
  max-width: 1200px;
}

.diepte {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1.5px solid var(--inkt);
  font-family: var(--mono);
}
.diepte b { font-size: 0.9375rem; font-weight: 500; }
.diepte span { font-size: 0.8125rem; color: var(--inkt-zacht); }

@media (max-width: 900px) {
  .profiel { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .diepte { flex-direction: row; align-items: baseline; gap: 12px; padding-top: 8px; width: max-content; }
}

.horizon { display: block; width: 100%; height: 36px; }

/* ---------- typografie ---------- */

h1, h2, h3 { margin: 0; font-weight: 500; }
h1 {
  font-family: var(--serif);
  font-size: clamp(2.625rem, 6.4vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h3 { font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }

.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--inkt-zacht); max-width: 34em; }
.zacht { color: var(--inkt-zacht); }
.klein { font-size: 0.875rem; }
.mono { font-family: var(--mono); }

.stapel { display: flex; flex-direction: column; gap: 16px; }
.stapel-groot { display: flex; flex-direction: column; gap: 48px; }

/* ---------- knoppen en invoer ---------- */

.knop {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--blad); color: #FFFFFF;
  border: 0; border-radius: 4px;
  font: 600 1.0625rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
}
.knop:hover { background: var(--blad-donker); color: #FFFFFF; }
.knop-licht { background: var(--licht-op-donker); color: var(--ondergrond); }
.knop-licht:hover { background: #FFFFFF; color: var(--ondergrond); }

label { font-size: 0.9375rem; font-weight: 600; }

.schrijflijn {
  width: 100%;
  min-height: 56px;
  padding: 0 2px;
  font: 400 1.75rem/1.2 var(--mono);
  color: var(--inkt);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--inkt); border-radius: 0;
}
.schrijflijn.tekst { font: 400 1.125rem/1.2 var(--sans); min-height: 52px; }
.schrijflijn::placeholder { color: #8A8274; }
.schrijflijn:focus-visible { outline-offset: 6px; }

/* ---------- hero ---------- */

.hero-inhoud { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.hero-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 72px;
  align-items: start;
}
@media (max-width: 1000px) { .hero-raster { grid-template-columns: minmax(0, 1fr); row-gap: 48px; } }

.etiket {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px 32px 32px;
  background: var(--papier);
  border: 1.5px solid var(--inkt);
  border-radius: 4px;
}
.etiket-kop {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--stippel);
  font-family: var(--mono); font-size: 0.8125rem;
}
@media (max-width: 480px) { .etiket { padding: 22px 20px 24px; } }

/* voorbeeldblad */
.blad {
  display: flex; flex-direction: column; gap: 20px;
  padding: 32px 36px;
  background: var(--papier);
  border: 1px solid #CBBFA9;
  border-radius: 4px;
  transform: rotate(1deg);
  box-shadow: 0 18px 36px -26px rgba(46, 36, 27, 0.45);
}
@media (max-width: 1000px) { .blad { transform: none; } }
@media (max-width: 480px) { .blad { padding: 24px 20px; } }
.blad-titel { font-family: var(--serif); font-size: 1.875rem; line-height: 1.1; letter-spacing: -0.01em; }
.leiders { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 0.875rem; }
.leider { display: flex; align-items: baseline; gap: 8px; }
.leider i { flex: 1; border-bottom: 1.5px dotted var(--stippel); }
.leider b { font-weight: 500; }
.gewasrij {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 0; border-top: 1px solid #E3DACB;
}
.gewasrij:last-child { border-bottom: 1px solid #E3DACB; }
.gewasrij .naam { font-family: var(--serif); font-size: 1.25rem; }
.gewasrij .advies { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; text-align: right; }
.meter { flex-shrink: 0; }

/* ---------- gewassen ---------- */

.gewassen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 40px; }
.gewas { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1.5px solid var(--inkt); }
.gewas .soorten { font-family: var(--mono); font-size: 0.875rem; }
@media (max-width: 900px) { .gewassen { grid-template-columns: minmax(0, 1fr); } }

.doorsnede { display: block; width: 100%; height: auto; }

/* ---------- rijen (wat je krijgt, vragen) ---------- */

.rijen { display: flex; flex-direction: column; }
.rij {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 10px;
  padding: 24px 0; border-top: 1px solid var(--lijn);
}
.rij:last-child { border-bottom: 1px solid var(--lijn); }
.rij p { color: var(--inkt-zacht); }
.laag-4 .rij p { color: #2E3329; }
.laag-4 .rij { border-color: #7E6E54; }
@media (max-width: 800px) { .rij { grid-template-columns: minmax(0, 1fr); } }

.stappen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-family: var(--mono); font-size: 0.9375rem; }

/* ---------- wel / niet ---------- */

.tweeluik { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; row-gap: 40px; }
.welniet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
.welniet ul { list-style: none; margin: 0; padding: 0; }
.welniet li { padding: 14px 0; border-top: 1px solid var(--lijn); font-size: 1rem; line-height: 1.55; }
.welniet h3 { font-family: var(--mono); font-size: 0.9375rem; font-weight: 500; padding-bottom: 12px; }
@media (max-width: 1000px) { .tweeluik { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .welniet { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ondergrond (slot) ---------- */

.ondergrond { background: var(--ondergrond); color: var(--licht-op-donker); padding: clamp(56px, 7vw, 96px) var(--marge) 32px; }
.ondergrond .diepte { border-color: var(--licht-op-donker); }
.ondergrond .diepte span { color: var(--gedempt-op-donker); }
.ondergrond h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); max-width: 18ch; }
.voet {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 24px;
  border-top: 1px solid #54473A;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--gedempt-op-donker);
}
.voet a { color: var(--gedempt-op-donker); }
.voet a:hover { color: var(--licht-op-donker); }
.voet nav { display: flex; gap: 24px; }

/* ---------- formulierpagina's en tekstpagina's ---------- */

.smal { max-width: 640px; }
.melding {
  padding: 14px 16px;
  background: #F6E3D6; color: #5C2710;
  border-left: 0; border-radius: 4px;
  font-weight: 500;
}
.melding[hidden] { display: none; }

.tekst h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 40px; }
.tekst p, .tekst ul { max-width: 38em; margin-top: 12px; }
.tekst ul { padding-left: 1.2em; }
.tekst li { margin-top: 6px; }

/* ---------- uitgebreid voorbeeldblad ---------- */

.blad-deel { display: flex; flex-direction: column; gap: 12px; }
.blad-kop { font-size: 0.9375rem; font-weight: 700; padding-top: 4px; }
.legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.8125rem; color: var(--inkt-zacht); }
.doen { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.doen li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid #E3DACB;
  font-size: 0.9375rem; line-height: 1.5;
}
.doen li:last-child { border-bottom: 1px solid #E3DACB; }
.doen li::before {
  content: "";
  position: absolute; left: 2px; top: 18px;
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--blad); border-bottom: 1.5px solid var(--blad);
  transform: rotate(-45deg);
}
.legenda span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* formulier blijft in beeld naast het lange voorbeeldblad */
@media (min-width: 1001px) {
  .hero-links { position: sticky; top: 24px; }
  .blad { transform: rotate(0.6deg); }
}
