/* mijnboom.be: stijlblad
   Kleuren en lettertype volgen het brandbook:
   antracietgroen #1F2A24, gebroken wit #F4F5F2, aardegrijs #8C918C, houtbruin #6B5E52 (max. 5%).
   Geen heldergroen, geen blauw. Lettertype: Inter. */

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

:root {
  --groen: #1F2A24;          /* hoofdkleur: tekst, logo, navigatie */
  --groen-2: #2E3B34;        /* hover op donkere vlakken */
  --wit: #F4F5F2;            /* achtergrond */
  --papier: #FBFBF9;         /* kaarten, iets lichter dan de achtergrond */
  --grijs: #8C918C;          /* lijnen, decor */
  --grijs-tekst: #5E645E;    /* secundaire tekst (donkerder dan aardegrijs voor leesbaarheid) */
  --lijn: #D9DBD5;           /* dunne scheidingslijnen */
  --hout: #6B5E52;           /* accent, spaarzaam */
  --fout: #8A3B2E;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --breed: 1120px;
  --smal: 720px;
  --rand: 20px;
  --radius: 6px;
  --sectie: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wit);
  color: var(--groen);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--hout); }
:focus-visible { outline: 2px solid var(--hout); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
small, .klein { font-size: .875rem; }
.meta { color: var(--grijs-tekst); font-size: .9rem; }
.inleiding { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--groen); max-width: 40em; }
.label {
  display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  color: var(--hout); margin-bottom: .75rem;
}
.getal { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--breed); margin: 0 auto; padding: 0 var(--rand); }
.wrap--smal { max-width: var(--smal); }
.sectie { padding: var(--sectie) 0; }
.sectie + .sectie { border-top: 1px solid var(--lijn); }
.sectie--licht { background: var(--papier); }
.sectie--donker { background: var(--groen); color: var(--wit); }
.sectie--donker .meta, .sectie--donker .label { color: #B9BDB7; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--groen); color: var(--wit); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Kop ---------- */
.kop { border-bottom: 1px solid var(--lijn); background: var(--wit); position: sticky; top: 0; z-index: 50; }
.kop__binnen { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.kop__logo img { height: 26px; width: auto; }
.kop__nav { display: flex; align-items: center; gap: 28px; }
.kop__nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.kop__nav li { margin: 0; }
.kop__nav ul a { text-decoration: none; font-size: .95rem; color: var(--groen); padding: 6px 0; border-bottom: 1px solid transparent; }
.kop__nav ul a:hover, .kop__nav ul a[aria-current="page"] { border-bottom-color: var(--groen); }
.kop__menuknop { display: none; }

@media (max-width: 900px) {
  .js .kop__menuknop {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--lijn);
    border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--groen); cursor: pointer;
  }
  .js .kop__nav { display: none; }
  .js .kop.open .kop__nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; background: var(--wit);
    border-bottom: 1px solid var(--lijn); flex-direction: column; align-items: stretch; padding: 8px var(--rand) 20px; gap: 12px;
  }
  .kop__nav ul { flex-direction: column; gap: 0; }
  .kop__nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--lijn); }
  html:not(.js) .kop__binnen { flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .kop__nav { flex-wrap: wrap; }
}

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--groen); color: var(--wit); border: 1px solid var(--groen);
  border-radius: var(--radius); padding: 13px 22px; font: inherit; font-weight: 500; font-size: 1rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s;
}
.knop:hover { background: var(--groen-2); }
.knop--rand { background: transparent; color: var(--groen); }
.knop--rand:hover { background: rgba(31, 42, 36, .06); }
.knop--klein { padding: 9px 16px; font-size: .92rem; }
.sectie--donker .knop { background: var(--wit); color: var(--groen); border-color: var(--wit); }
.sectie--donker .knop--rand { background: transparent; color: var(--wit); border-color: rgba(244,245,242,.5); }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pijl::after { content: "→"; margin-left: 6px; }
.tekstlink { font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; }
.hero__tekst { max-width: 760px; }
.hero h1 { margin-bottom: .4em; }
.hero__beeld { margin-top: clamp(40px, 6vw, 72px); }
.hero__beeld img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .hero__beeld img { aspect-ratio: 4 / 3; } }
.bijschrift { font-size: .85rem; color: var(--grijs-tekst); margin-top: 10px; }

/* ---------- Rasters ---------- */
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.twee--midden { align-items: center; }
.drie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.vier { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .vier { grid-template-columns: 1fr 1fr; } .drie { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .twee { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .vier { grid-template-columns: 1fr; } }
.kop-sectie { max-width: 680px; margin-bottom: 48px; }
.beeld img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Stappen ---------- */
.stappen { list-style: none; padding: 0; margin: 0; counter-reset: stap; }
.stappen > li { border-top: 1px solid var(--groen); padding-top: 18px; margin: 0; }
.stappen .nr { display: block; font-size: .85rem; color: var(--hout); font-weight: 500; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stappen h3 { margin-bottom: .4em; }
.stappen p { color: var(--groen); font-size: .98rem; }

/* ---------- Lijsten met icoon ---------- */
.lijst { list-style: none; padding: 0; margin: 0; }
.lijst li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--lijn); margin: 0; }
.lijst li:first-child { border-top: 1px solid var(--lijn); }
.lijst svg { width: 22px; height: 22px; margin-top: 2px; stroke: var(--groen); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lijst--nee svg { stroke: var(--grijs-tekst); }

/* ---------- Feiten ---------- */
.feiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--lijn); margin: 0; }
.feiten > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--lijn); }
.feiten dt { font-size: .85rem; color: var(--grijs-tekst); margin-bottom: 4px; }
.feiten dd { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.feiten dd small { font-weight: 400; color: var(--grijs-tekst); font-size: .85rem; }

/* ---------- Tabel ---------- */
.tabel { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .98rem; }
.tabel th, .tabel td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.tabel th { font-weight: 500; color: var(--grijs-tekst); font-size: .85rem; }
.tabel .bedrag { text-align: right; white-space: nowrap; padding-right: 0; }
.tabel tr.totaal td { border-top: 1px solid var(--groen); border-bottom: none; font-weight: 600; }
.tabel tr.tussen td { font-weight: 600; }
.tabel-wrap { overflow-x: auto; }

/* ---------- Kader (de ene disclaimer) ---------- */
.kader { border: 1px solid var(--groen); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); background: var(--papier); }
.kader h2, .kader h3 { margin-top: 0; }
.kader--zacht { border-color: var(--lijn); }

/* ---------- Vragen ---------- */
.vragen details { border-bottom: 1px solid var(--lijn); }
.vragen details:first-of-type { border-top: 1px solid var(--lijn); }
.vragen summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative;
}
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; font-weight: 300; }
.vragen details[open] summary::after { content: "−"; }
.vragen details > div { padding: 0 0 20px; max-width: 46em; }
.vragen h2 { margin-top: 56px; font-size: 1.35rem; }
.vragen h2:first-child { margin-top: 0; }

/* ---------- Kaarten (bomen) ---------- */
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.boomkaart { background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s; }
.boomkaart:hover { border-color: var(--groen); }
.boomkaart__foto { aspect-ratio: 4 / 3; background: #E6E8E2; display: grid; place-items: center; }
.boomkaart__foto img { width: 100%; height: 100%; object-fit: cover; }
.boomkaart__foto svg { width: 40px; height: 40px; stroke: var(--grijs); fill: none; stroke-width: 1.2; }
.boomkaart__tekst { padding: 14px 16px 16px; }
.boomkaart__nr { font-weight: 600; font-variant-numeric: tabular-nums; }
.boomkaart__naam { color: var(--grijs-tekst); font-size: .92rem; margin: 2px 0 8px; }
.boomkaart__maat { font-size: .88rem; color: var(--groen); font-variant-numeric: tabular-nums; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--grijs-tekst); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grijs); }
.status--groeit::before { background: var(--groen); }
.status--geoogst::before { background: var(--hout); }

/* ---------- Voorbeeldboom op de homepage ---------- */
.voorbeeld { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; background: var(--papier); text-decoration: none; }
.voorbeeld__foto { min-height: 280px; background: #E6E8E2; }
.voorbeeld__foto img { width: 100%; height: 100%; object-fit: cover; }
.voorbeeld__tekst { padding: clamp(24px, 4vw, 40px); }
@media (max-width: 760px) { .voorbeeld { grid-template-columns: 1fr; } }

/* ---------- Boompagina ---------- */
.kruimel { font-size: .9rem; color: var(--grijs-tekst); margin-bottom: 20px; }
.kruimel a { color: var(--grijs-tekst); }
.boomkop { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .boomkop { grid-template-columns: 1fr; } }
.boomkop__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.boomkop__leeg { aspect-ratio: 4 / 3; border-radius: var(--radius); background: #E6E8E2; display: grid; place-items: center; text-align: center; color: var(--grijs-tekst); padding: 24px; }
.boomkop__leeg svg { width: 48px; height: 48px; stroke: var(--grijs); fill: none; stroke-width: 1.2; margin: 0 auto 10px; }
.boomkop h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .2em; }
.eigenaar { font-size: 1.15rem; margin-bottom: 1.2em; }
.boodschap { border-left: 2px solid var(--hout); padding-left: 14px; color: var(--groen); margin: 0 0 1.5em; }

.grafieken { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .grafieken { grid-template-columns: 1fr; } }
.grafiek { position: relative; }
.grafiek h3 { font-size: 1rem; margin-bottom: 2px; }
.grafiek svg { width: 100%; height: auto; overflow: visible; }
.grafiek .as { fill: var(--grijs-tekst); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.grafiek .raster { stroke: var(--lijn); stroke-width: 1; }
.grafiek .basis { stroke: var(--grijs); stroke-width: 1; }
.grafiek .lijn { fill: none; stroke: var(--groen); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafiek .punt { fill: var(--groen); stroke: var(--wit); stroke-width: 2; }
.grafiek .punt.actief { r: 6; }
.grafiek .waarde { fill: var(--groen); font-size: 12px; font-weight: 600; font-family: var(--font); }
.grafiek .doel { fill: transparent; cursor: crosshair; }
.grafiek .kruis { stroke: var(--grijs); stroke-width: 1; stroke-dasharray: 2 3; visibility: hidden; }
.tip {
  position: absolute; pointer-events: none; background: var(--groen); color: var(--wit); font-size: .82rem;
  padding: 6px 10px; border-radius: 4px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px));
  opacity: 0; transition: opacity .1s; font-variant-numeric: tabular-nums;
}
.tip.zichtbaar { opacity: 1; }
@media (max-width: 600px) {
  .grafiek .as { font-size: 17px; }
  .grafiek .waarde { font-size: 18px; }
  .galerij { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.galerij figure { margin: 0; }
.galerij button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.galerij img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.galerij figcaption { font-size: .85rem; color: var(--grijs-tekst); margin-top: 6px; }
dialog.lichtbak { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
dialog.lichtbak::backdrop { background: rgba(20, 26, 22, .88); }
dialog.lichtbak img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 4px; }
dialog.lichtbak p { color: var(--wit); text-align: center; margin: 10px 0 0; font-size: .9rem; }
dialog.lichtbak .sluit { position: fixed; top: 16px; right: 16px; background: var(--wit); color: var(--groen); border: 0; border-radius: var(--radius); padding: 8px 14px; font: inherit; cursor: pointer; }

.logboek { list-style: none; padding: 0; margin: 0; }
.logboek li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--lijn); margin: 0; }
.logboek time { color: var(--grijs-tekst); font-size: .92rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .logboek li { grid-template-columns: 1fr; gap: 2px; } }

.kaart { height: 380px; border-radius: var(--radius); border: 1px solid var(--lijn); z-index: 0; }
.kaart--groot { height: 460px; }

/* ---------- Formulier ---------- */
.formulier { display: grid; gap: 18px; }
.veld label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .95rem; }
.veld .hulp { display: block; font-weight: 400; color: var(--grijs-tekst); font-size: .85rem; margin-top: 4px; }
.veld input[type=text], .veld input[type=email], .veld input[type=tel], .veld input[type=number], .veld textarea, .veld select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--groen); background: #fff; border: 1px solid #BFC3BC;
  border-radius: var(--radius); padding: 11px 12px;
}
.veld textarea { min-height: 90px; resize: vertical; }
.veld input:focus, .veld textarea:focus, .veld select:focus { outline: 2px solid var(--groen); outline-offset: 0; border-color: var(--groen); }
.vinkje { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .95rem; }
.vinkje input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--groen); }
.rij2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .rij2 { grid-template-columns: 1fr; } }
.totaalregel { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--groen); padding-top: 14px; font-weight: 600; font-size: 1.1rem; }
.melding { border-left: 3px solid var(--hout); background: var(--papier); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.melding--fout { border-left-color: var(--fout); }

/* ---------- Tekstpagina's ---------- */
.tekst h2 { margin-top: 2em; font-size: 1.5rem; }
.tekst h3 { margin-top: 1.6em; }
.tekst p, .tekst li { max-width: 42em; }
.concept { background: #EFEAE3; border: 1px dashed var(--hout); padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 32px; }

/* ---------- Voet ---------- */
.voet { background: var(--groen); color: #D6D9D3; padding: 64px 0 32px; margin-top: 0; font-size: .93rem; }
.voet a { color: #EDEFEA; text-decoration: none; }
.voet a:hover { text-decoration: underline; }
.voet__raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .voet__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .voet__raster { grid-template-columns: 1fr; } }
.voet h4 { color: var(--wit); font-size: .9rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.voet ul { list-style: none; padding: 0; margin: 0; }
.voet li { margin-bottom: 8px; }
.voet__logo img { height: 24px; width: auto; margin-bottom: 16px; }
.voet__onder { border-top: 1px solid rgba(244,245,242,.15); margin-top: 48px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #B9BDB7; }

/* ---------- Diversen ---------- */
.verborgen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt-l { margin-top: 48px; }
.leeg { color: var(--grijs-tekst); font-style: normal; }
hr { border: 0; border-top: 1px solid var(--lijn); margin: 40px 0; }

.tabel td.markeer { background: #E6E8E2; font-weight: 600; }

.tabel th.bedrag, .tabel td.bedrag { padding-left: 16px; }
