/* ==========================================================
   Imkerij Depoorter – Buckfastteelt
   Eén stylesheet voor alle pagina's. Kleuren en lettertypes
   staan bovenaan als variabelen: pas ze daar aan.
   ========================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Heide van Dartmoor (Sherberton, het bevruchtingsstation van broeder Adam) + stuifmeel */
  --heide: #2a1f2d;
  --heide-2: #45334b;
  --mauve: #9a6e94;
  --mauve-licht: #e9dfe8;
  --stuifmeel: #e6a817;
  --stuifmeel-licht: #fbf0d2;
  --papier: #f3f1f4;
  --wit: #ffffff;
  --lijn: #d9d2db;
  --tekst: #2a1f2d;
  --zacht: #5f5566;
  --ok: #3f7a4f;
  --fout: #a2342c;

  --display: "Bricolage", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Serif", "Iowan Old Style", Georgia, serif;

  --maat: 1.125rem;          /* basistekst */
  --breed: 72rem;            /* max. paginabreedte */
  --leesbreed: 38rem;        /* max. regellengte lopende tekst */
  --r-klein: 4px;
  --r-groot: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tekst);
  font-family: var(--body);
  font-size: var(--maat);
  line-height: 1.62;
  font-optical-sizing: auto;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--heide-2); text-decoration-color: var(--mauve); text-underline-offset: 0.18em; }
a:hover { color: var(--heide); text-decoration-color: var(--stuifmeel); }
:focus-visible { outline: 3px solid var(--stuifmeel); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-stretch: 82%; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-stretch: 88%; }
h3 { font-size: 1.35rem; font-stretch: 95%; }
h4 { font-size: 1.05rem; font-stretch: 100%; }
p { margin: 0 0 1em; }
.lead { font-size: 1.28rem; line-height: 1.5; color: var(--zacht); max-width: 34rem; }
.klein { font-size: 0.92rem; color: var(--zacht); }

.wrap { width: min(100% - 2.5rem, var(--breed)); margin-inline: auto; }
.lees { max-width: var(--leesbreed); }
.sectie { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sectie + .sectie { border-top: 1px solid var(--lijn); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--wit); padding: .5rem 1rem; }

/* ---------- kop & navigatie ---------- */
.kop {
  background: var(--heide);
  color: var(--papier);
  position: sticky; top: 0; z-index: 20;
}
.kop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.merk { display: flex; align-items: center; gap: .7rem; color: var(--papier); text-decoration: none; }
.merk svg { width: 34px; height: 34px; flex: none; }
.merk span { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.2rem; line-height: 1; }
.merk small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; opacity: .7; margin-top: .2rem; }
.merk:hover { color: var(--wit); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: var(--r-klein);
  color: var(--papier); text-decoration: none;
  font-family: var(--display); font-size: 1rem; font-weight: 500;
}
.nav a:hover { background: var(--heide-2); color: var(--wit); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--stuifmeel); border-radius: 0; }
.nav a.knop-nav { background: var(--stuifmeel); color: var(--heide); font-weight: 650; margin-left: .5rem; }
.nav a.knop-nav:hover { background: #f2bc36; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid var(--heide-2); color: var(--papier);
    font: 500 1rem var(--display); padding: .45rem .8rem; border-radius: var(--r-klein); cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--heide); display: none; padding: .5rem 1.25rem 1.25rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .8rem .4rem; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--stuifmeel); padding-left: .9rem; }
  .nav a.knop-nav { margin: .6rem 0 0; text-align: center; }
}

/* ---------- knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 650; font-size: 1.05rem;
  padding: .85rem 1.4rem; border-radius: var(--r-klein);
  background: var(--stuifmeel); color: var(--heide); text-decoration: none;
  border: 2px solid var(--stuifmeel); cursor: pointer;
}
.knop:hover { background: #f2bc36; border-color: #f2bc36; color: var(--heide); }
.knop.stil { background: transparent; color: inherit; border-color: currentColor; }
.knop.stil:hover { background: rgba(255,255,255,.08); }
.knoppen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- hero met broedraat ---------- */
.hero { background: var(--heide); color: var(--papier); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: var(--wit); }
.hero .lead { color: #d8cfdb; }
.hero .knop.stil { color: var(--papier); }
.raat-figuur { position: relative; }
.raat-figuur figcaption { font-size: .9rem; color: #bcaec0; margin-top: .9rem; max-width: 28rem; }
.raat-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .88rem; color: #d8cfdb; margin-top: .6rem; list-style: none; padding: 0; }
.raat-legende li { display: flex; align-items: center; gap: .45rem; }
.raat-legende i { width: 14px; height: 14px; display: inline-block; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }

.cel { transition: fill .5s ease; }
.cel-open { fill: #5a4661; }
.cel-dicht { fill: #c79a3c; }
.cel-recap { fill: #edd9a3; }
.cel-mijt { fill: var(--mauve); }
.mijt-stip { fill: var(--heide); }
@media (prefers-reduced-motion: no-preference) {
  .raat-anim .cel { opacity: 0; animation: celIn .5s ease forwards; }
  @keyframes celIn { to { opacity: 1; } }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .raat-figuur { max-width: 30rem; }
}

/* ---------- paginakop (subpagina's) ---------- */
.paginakop { background: var(--heide); color: var(--papier); padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.paginakop h1 { color: var(--wit); max-width: 18ch; }
.paginakop .lead { color: #d8cfdb; }
.kruimel { font-size: .9rem; margin-bottom: 1.2rem; color: #bcaec0; }
.kruimel a { color: #d8cfdb; }

/* ---------- raster & blokken ---------- */
.twee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.twee-een { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .twee, .twee-een { grid-template-columns: 1fr; } }

.intro-kolom h2 { max-width: 16ch; }

/* ---------- stamkaart (lijnen) ---------- */
.stamkaart {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-top: 6px solid var(--heide);
  border-radius: 0 0 var(--r-groot) var(--r-groot);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex; flex-direction: column;
}
.stamkaart.goud { border-top-color: var(--stuifmeel); }
.stamkaart .lijnnaam { font-family: var(--display); font-size: 1rem; font-weight: 500; color: var(--zacht); margin: 0 0 .2rem; }
.stamkaart .code {
  font-family: var(--display); font-weight: 750; font-stretch: 75%;
  font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: .95; letter-spacing: -0.02em;
  margin: 0 0 1rem; color: var(--heide);
}
.stamkaart .code sup { font-size: .32em; font-weight: 500; font-stretch: 100%; letter-spacing: 0; vertical-align: .9em; margin-left: .2em; color: var(--zacht); }
.stamkaart p { max-width: 36rem; }
.stamkaart .meer { margin-top: auto; padding-top: 1rem; font-family: var(--display); font-weight: 600; }

.stamboom { margin: .4rem 0 1.4rem; border-left: 2px solid var(--lijn); padding-left: 1rem; }
.stamboom div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; padding: .35rem 0; font-size: .98rem; }
.stamboom dt { font-family: var(--display); font-size: .92rem; color: var(--zacht); }
.stamboom dd { margin: 0; font-variant-numeric: tabular-nums; }
.stamboom code { font-family: var(--display); font-weight: 600; font-size: 1em; background: var(--papier); padding: .05rem .35rem; border-radius: 3px; }
@media (max-width: 480px) { .stamboom div { grid-template-columns: 1fr; gap: 0; } }

.kenmerken { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.kenmerken li { font-family: var(--display); font-size: .9rem; font-weight: 500; background: var(--mauve-licht); color: var(--heide-2); padding: .3rem .7rem; border-radius: 999px; }
.goud .kenmerken li { background: var(--stuifmeel-licht); color: #6b4d05; }

.score {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn);
  padding: .9rem 0; margin: 0 0 1.2rem;
}
.score b { font-family: var(--display); font-weight: 750; font-stretch: 80%; font-size: 2.4rem; line-height: 1; color: var(--heide); }
.score span { font-size: .95rem; color: var(--zacht); max-width: 24rem; }

/* ---------- prijzen ---------- */
.prijzen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 700px) { .prijzen { grid-template-columns: 1fr; } }
.prijs {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r-groot);
  padding: 1.6rem 1.7rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: start;
}
.prijs h3 { margin: 0; }
.prijs .bedrag { font-family: var(--display); font-weight: 750; font-stretch: 80%; font-size: 2.6rem; line-height: 1; color: var(--heide); grid-row: span 2; }
.prijs p { grid-column: 1 / -1; margin: .6rem 0 0; color: var(--zacht); font-size: 1rem; }
.prijs.accent { background: var(--heide); color: var(--papier); border-color: var(--heide); }
.prijs.accent h3, .prijs.accent .bedrag { color: var(--wit); }
.prijs.accent p { color: #d0c5d3; }

.feiten { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
.feiten li { border-top: 2px solid var(--heide); padding-top: .7rem; font-size: 1rem; }
.feiten b { display: block; font-family: var(--display); font-weight: 650; font-size: 1.05rem; margin-bottom: .2rem; }
@media (max-width: 760px) { .feiten { grid-template-columns: 1fr; } }

/* ---------- stappen (echte volgorde) ---------- */
.stappen { list-style: none; counter-reset: stap; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stappen li { counter-increment: stap; position: relative; padding-top: 3.2rem; }
.stappen li::before {
  content: counter(stap);
  position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.2rem;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: var(--heide);
  background: var(--stuifmeel);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.stappen li:not(:last-child)::after { content: ""; position: absolute; top: 1.1rem; left: 3rem; right: -1rem; height: 1px; background: var(--lijn); }
.stappen h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.stappen p { font-size: 1rem; color: var(--zacht); margin: 0; }
@media (max-width: 860px) { .stappen { grid-template-columns: 1fr 1fr; } .stappen li::after { display: none; } }
@media (max-width: 520px) { .stappen { grid-template-columns: 1fr; } }

/* ---------- lange tekst (VSH-pagina) ---------- */
.artikel { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.inhoud { position: sticky; top: 6rem; font-size: .95rem; }
.inhoud p { font-family: var(--display); font-weight: 600; margin-bottom: .5rem; }
.inhoud ol { margin: 0; padding-left: 1.2rem; }
.inhoud li { margin-bottom: .35rem; }
.inhoud a { text-decoration: none; color: var(--zacht); }
.inhoud a:hover { color: var(--heide); text-decoration: underline; }
@media (max-width: 900px) { .artikel { grid-template-columns: 1fr; } .inhoud { position: static; border: 1px solid var(--lijn); border-radius: var(--r-groot); padding: 1rem 1.2rem; background: var(--wit); } }

.tekst { max-width: var(--leesbreed); }
.tekst section { scroll-margin-top: 6rem; padding-bottom: 2.6rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--lijn); }
.tekst section:last-child { border-bottom: 0; }
.tekst h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.tekst h3 { margin-top: 1.8rem; }
.tekst ul, .tekst ol { padding-left: 1.3rem; }
.tekst li { margin-bottom: .45rem; }
.tekst li::marker { color: var(--mauve); }

.kader {
  background: var(--wit); border: 1px solid var(--lijn); border-left: 5px solid var(--stuifmeel);
  border-radius: 0 var(--r-groot) var(--r-groot) 0; padding: 1.2rem 1.4rem; margin: 1.6rem 0;
}
.kader.heide { border-left-color: var(--mauve); }
.kader h3, .kader h4 { margin-top: 0; }
.kader p:last-child, .kader ul:last-child { margin-bottom: 0; }

/* vergelijkende verdeling F1 */
.verdeling { margin: 1.6rem 0; }
.balk { display: flex; height: 2.6rem; border-radius: var(--r-klein); overflow: hidden; font-family: var(--display); font-size: .88rem; font-weight: 600; }
.balk span { display: flex; align-items: center; padding: 0 .7rem; white-space: nowrap; }
.balk .geselecteerd { background: var(--heide); color: var(--wit); }
.balk .lokaal { background: var(--lijn); color: var(--heide); }
.verdeling + .verdeling { margin-top: 1rem; }
.verdeling p { margin: 0 0 .35rem; font-family: var(--display); font-weight: 600; font-size: 1rem; }

.tabel-wrap { overflow-x: auto; margin: 1.4rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; background: var(--wit); }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
th { font-family: var(--display); font-weight: 650; background: var(--mauve-licht); color: var(--heide); }
td code { font-family: var(--display); font-weight: 600; white-space: nowrap; }

details { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r-klein); margin-bottom: .6rem; }
summary { cursor: pointer; padding: .9rem 1.1rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--mauve); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 1.1rem 1rem; }
details > div p:last-child { margin-bottom: 0; }

/* ---------- formulier ---------- */
.formulier { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r-groot); padding: clamp(1.4rem, 3vw, 2.4rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
legend { font-family: var(--display); font-weight: 650; font-size: 1.25rem; margin-bottom: .9rem; padding: 0; }
.velden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.veld { display: flex; flex-direction: column; gap: .35rem; }
.veld.vol { grid-column: 1 / -1; }
@media (max-width: 600px) { .velden { grid-template-columns: 1fr; } }
label, .label { font-family: var(--display); font-weight: 550; font-size: .98rem; }
label .opt { font-weight: 400; color: var(--zacht); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--tekst);
  background: var(--papier); border: 1px solid #c9c0cc; border-radius: var(--r-klein);
  padding: .7rem .8rem; width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--stuifmeel); outline-offset: 0; border-color: var(--heide); background: var(--wit); }
[aria-invalid="true"] { border-color: var(--fout) !important; }
.fouttekst { color: var(--fout); font-size: .9rem; min-height: 1em; }

.keuzes { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .8rem; }
.keuzes.paar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .keuzes.paar { grid-template-columns: 1fr; } }
.keuze { position: relative; }
.keuze input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.keuze label {
  display: block; height: 100%; cursor: pointer;
  border: 2px solid var(--lijn); border-radius: var(--r-groot); padding: 1rem 1.1rem;
  background: var(--papier); font-weight: 400;
}
.keuze label b { display: block; font-family: var(--display); font-weight: 650; font-size: 1.08rem; }
.keuze label small { display: block; font-family: var(--body); color: var(--zacht); font-size: .92rem; margin-top: .2rem; }
.keuze label .p { float: right; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.keuze input:checked + label { border-color: var(--heide); background: var(--wit); box-shadow: inset 0 0 0 1px var(--heide); }
.keuze input:focus-visible + label { outline: 3px solid var(--stuifmeel); outline-offset: 2px; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-family: var(--body); font-weight: 400; font-size: 1rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--heide); flex: none; }
.honing { position: absolute; left: -5000px; }

.raming { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--lijn); padding-top: 1.2rem; margin-top: .4rem; }
.raming b { font-family: var(--display); font-weight: 750; font-size: 1.8rem; }
.melding { border-radius: var(--r-klein); padding: 1rem 1.2rem; margin-top: 1.2rem; display: none; }
.melding.ok { display: block; background: #e3f0e6; color: #1f4a2b; }
.melding.fout { display: block; background: #f6e1df; color: #6d1f19; }

/* ---------- foto-plekken ---------- */
.foto {
  aspect-ratio: 4 / 3; border-radius: var(--r-groot); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--mauve-licht) 0 12px, #efe8ee 12px 24px);
  display: grid; place-items: center; text-align: center; color: var(--zacht); font-size: .95rem; padding: 1rem;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- oproep & voet ---------- */
.oproep { background: var(--stuifmeel); color: var(--heide); }
.oproep .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 2.6rem; }
.oproep h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.oproep p { margin: .3rem 0 0; }
.oproep .knop { background: var(--heide); border-color: var(--heide); color: var(--wit); }
.oproep .knop:hover { background: var(--heide-2); border-color: var(--heide-2); }

.voet { background: var(--heide); color: #cfc4d2; font-size: .95rem; padding-block: 3rem 2rem; }
.voet .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.voet h4 { color: var(--wit); }
.voet a { color: #e8def0; }
.voet ul { list-style: none; padding: 0; margin: 0; }
.voet li { margin-bottom: .35rem; }
.voet .onder { grid-column: 1 / -1; border-top: 1px solid var(--heide-2); padding-top: 1.2rem; margin-top: 1rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .voet .wrap { grid-template-columns: 1fr; } }
