/*
Theme Name: GaarErvoor
Description: Thema voor GaarErvoor
Version: mwqrxpx2
Requires PHP: 8.0
Text Domain: gaarervoor
License: Eigen gebruik
*/
/* GaarErvoor: huisstijl versie 2. Papier en bloemwit, olijfgroen voor tekst, tomaatrood voor logo, knoppen en links, oker en salie als vlakken.
   Letters: Fraunces (koppen, zachte stand) en Figtree (tekst), beide SIL OFL en zelf gehost.
   Contrast: olijf op papier 12,0:1, tomaat op papier 5,8:1, gedempt op papier 5,5:1, olijf op oker 6,9:1. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-soft-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --olijf: #253A2F;
  --olijf-licht: #3c5446;
  --tomaat: #B43A26;
  --tomaat-donker: #962f1e;
  --oker: #F2B94E;
  --oker-licht: #fbe6bb;
  --salie: #B8C4AD;
  --salie-licht: #e4eadf;
  --bloem: #FAF3E7;
  --papier: #FFFDF8;
  --gedempt: #5E6B60;
  --lijn: #E3D8C6;
  --kop: "Fraunces", Georgia, serif;
  --letter: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 44rem;
  --breed: 72rem;
  --rond: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--papier); color: var(--olijf); font-family: var(--letter); font-size: 1.08rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
a { color: var(--tomaat); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--tomaat-donker); }
:focus-visible { outline: 3px solid var(--oker); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; top: 0; background: var(--papier); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Kop */
.site-header { background: var(--papier); border-bottom: 1px solid var(--lijn); position: relative; z-index: 5; }
.site-header .inner { max-width: var(--breed); margin: 0 auto; padding: .9rem 1.25rem; display: flex; align-items: center; gap: .75rem 2rem; }
.logo { display: block; margin-right: auto; text-decoration: none; }
.logo svg { width: 9.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.35rem; }
.site-nav a { color: var(--olijf); text-decoration: none; font-weight: 700; font-size: .98rem; padding: .35rem 0; display: inline-block; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--tomaat); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--tomaat); }

/* Opbouw en typografie */
main { max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem 4.5rem; }
main.wide { max-width: var(--breed); }
.crumbs { font-size: .9rem; color: var(--gedempt); margin: 1rem 0 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li::before { content: "›"; margin: 0 .4rem 0 .15rem; color: var(--gedempt); }
.crumbs a { color: var(--gedempt); }
h1, h2, h3, h4 { color: var(--olijf); line-height: 1.15; font-family: var(--kop); font-variation-settings: "SOFT" 100; letter-spacing: -.012em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3rem); font-weight: 700; margin: .3rem 0 .8rem; letter-spacing: -.022em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); font-weight: 650; margin: 2.8rem 0 .8rem; }
h3 { font-size: 1.3rem; font-weight: 650; margin: 1.9rem 0 .5rem; }
h4 { font-family: var(--letter); font-size: 1.02rem; font-weight: 800; margin: 1rem 0 .35rem; letter-spacing: 0; }
.lead { font-size: 1.22rem; line-height: 1.6; }
.meta { font-size: .93rem; color: var(--gedempt); margin-bottom: 1.4rem; }
p, ul, ol, dl { margin: 0 0 1.05rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 800; }
hr { border: 0; border-top: 1px solid var(--lijn); margin: 2rem 0; }

/* Blokken */
.notice { font-size: .93rem; color: var(--gedempt); background: var(--bloem); border-radius: 10px; padding: .55rem .9rem; margin: 0 0 1rem; }
.tip { background: var(--oker-licht); border-radius: var(--rond); padding: 1rem 1.2rem; margin: 1.6rem 0; }
.tip strong:first-child { color: var(--olijf); }
.toc { background: var(--bloem); border-radius: var(--rond); padding: 1rem 1.3rem .8rem; margin: 1.6rem 0 2.2rem; }
.toc h2 { font-size: 1.1rem; margin: 0 0 .45rem; }
.toc ol { margin: 0; padding-left: 1.3rem; font-size: .98rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.toc a { color: var(--olijf); }
.toc a:hover { color: var(--tomaat); }
.sources { font-size: .93rem; color: var(--gedempt); padding-left: 1.2rem; }
.sources li { word-break: break-word; }

/* Gaarlabel: het vaste blok bij elk recept. De balk is een thermometer: rauw, bijna, gaar. */
.gaarlabel { background: var(--olijf); color: var(--bloem); border-radius: var(--rond); padding: 1.1rem 1.3rem 1.25rem; margin: 1.6rem 0 2.2rem; max-width: 26rem; }
.gl-kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; margin: 0 0 .7rem; font-family: var(--kop); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.12rem; line-height: 1.3; }
.gl-kop span:first-child { color: var(--oker); }
.gaarlabel dl { margin: 0; }
.gl-rij { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px solid rgba(250, 243, 231, .14); }
.gl-rij dt { color: var(--salie); }
.gl-rij dd { margin: 0; font-weight: 800; text-align: right; }
.gl-meter { position: relative; height: .5rem; border-radius: 99px; margin-top: .8rem; background: linear-gradient(90deg, var(--salie) 0 40%, var(--oker) 40% 72%, var(--tomaat) 72% 100%); }
.gl-meter i { position: absolute; left: 86%; top: -.35rem; width: 3px; height: 1.2rem; background: var(--bloem); border-radius: 2px; }

/* Recepten */
.ingredienten { background: var(--bloem); border-radius: var(--rond); padding: 1rem 1.2rem 1rem 2.3rem; }
.ingredienten li { margin-bottom: .25rem; }
.stappen { counter-reset: stap; list-style: none; padding: 0; }
.stappen > li { counter-increment: stap; position: relative; padding-left: 2.9rem; margin-bottom: 1.1rem; }
.stappen > li::before { content: counter(stap); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tomaat); color: var(--papier); font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.7rem; border: 1px solid var(--lijn); border-radius: var(--rond); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; background: var(--papier); }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
thead th { background: var(--bloem); color: var(--olijf); font-weight: 800; font-size: .93rem; }
tbody th { font-weight: 700; color: var(--gedempt); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
caption { font-size: .88rem; color: var(--gedempt); }

/* Producten in koopgidsen */
.product { border: 1px solid var(--lijn); border-radius: var(--rond); padding: 1.2rem 1.35rem 1.35rem; margin: 2rem 0; background: var(--papier); }
.product h3 { margin-top: .1rem; }
.product .specs { list-style: none; padding: 0; margin: .7rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; }
.product .specs li { margin: 0; background: var(--bloem); border-radius: 99px; padding: .25rem .75rem; }
.procon { display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; }
@media (min-width: 40rem) { .procon { grid-template-columns: 1fr 1fr; } }
.procon h4 { margin: .5rem 0 .3rem; }
.procon > div:first-child h4 { color: #2F6B3F; }
.procon > div:last-child h4 { color: var(--tomaat); }
.procon ul { padding-left: 1.15rem; font-size: .98rem; }
.knop, .btn, a.bol {
  display: inline-block; background: var(--tomaat); color: var(--papier); text-decoration: none; font-weight: 800; font-size: 1rem;
  padding: .72rem 1.25rem; border-radius: 8px; border: 0; cursor: pointer; line-height: 1.25;
}
.knop:hover, .btn:hover, a.bol:hover { background: var(--tomaat-donker); color: var(--papier); }
.knop.tweede, .btn.secondary { background: transparent; color: var(--olijf); box-shadow: inset 0 0 0 2px var(--olijf); }
.knop.tweede:hover, .btn.secondary:hover { background: var(--bloem); color: var(--olijf); }

/* Overzichten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.card { position: relative; background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--rond); padding: 1rem 1.15rem 1.15rem; transition: border-color .15s; }
.card:hover { border-color: var(--olijf); }
.card h3 { margin: .15rem 0 .35rem; font-size: 1.2rem; }
.card h3 a { color: var(--olijf); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; font-size: .97rem; color: var(--gedempt); }
.tag { display: inline-block; font-size: .85rem; font-weight: 800; color: var(--tomaat); margin-bottom: .1rem; }

/* Homepage */
main.home { max-width: var(--breed); padding-top: 0; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch; margin: 0 -1.25rem 3rem; background: var(--bloem); }
.hero-tekst { min-width: 0; padding: 3.2rem 2.5rem 3.2rem 1.25rem; align-self: center; max-width: 36rem; justify-self: end; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.02; margin: 0 0 1rem; letter-spacing: -.03em; }
.hero .lead { margin-bottom: 1.5rem; }
.hero-tekst p:last-child { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.hero-beeld { min-height: 22rem; min-width: 0; background: var(--oker); overflow: hidden; }
.hero-beeld img { width: 100%; height: 100%; object-fit: cover; }
.tegels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin: 1rem 0 3rem; }
.tegel { display: block; color: var(--olijf); text-decoration: none; }
.tegel img { border-radius: var(--rond); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--salie); transition: transform .25s ease; }
.tegel:hover img { transform: scale(1.015); }
.tegel-titel { display: block; font-family: var(--kop); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.3rem; margin: .65rem 0 .1rem; }
.tegel:hover .tegel-titel { color: var(--tomaat); }
.tegel-tekst { display: block; font-size: .95rem; color: var(--gedempt); line-height: 1.5; }
main.home > h2, main.home > p, main.home > ul, main.home > ol, main.home > .gaarlabel, main.home > .grid { max-width: var(--max); }
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; margin: 0 -1.25rem 2rem; }
  .hero-beeld { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .hero-tekst { padding: 1.6rem 1.25rem 2rem; justify-self: start; }
  .tegels { grid-template-columns: repeat(2, 1fr); }
}
.artikel-foto { border-radius: var(--rond); overflow: hidden; margin: 0 0 1.8rem; aspect-ratio: 16 / 9; background: var(--bloem); }
.artikel-foto img { width: 100%; height: 100%; object-fit: cover; }
.artikel-foto figcaption { font-size: .88rem; color: var(--gedempt); }

/* Tools */
.tool { background: var(--bloem); border-radius: var(--rond); padding: 1.25rem 1.35rem; margin: 1.3rem 0 1.8rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .9rem 1.1rem; }
label { display: block; font-weight: 750; font-size: .97rem; margin-bottom: .25rem; }
.hint { display: block; font-weight: 500; font-size: .86rem; color: var(--gedempt); }
input[type=number], input[type=text], input[type=search], select {
  width: 100%; font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1.5px solid #b9ad99; border-radius: 8px; background: var(--papier); color: var(--olijf);
}
input:focus, select:focus { border-color: var(--olijf); }
.result { margin-top: 1.2rem; }
.result .big { font-family: var(--kop); font-size: 2rem; font-weight: 700; }

/* FAQ */
.faq { margin-top: 2.8rem; }
.faq details { background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--rond); padding: .8rem 1.1rem; margin: .55rem 0; }
.faq details[open] { background: var(--bloem); border-color: var(--bloem); }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--tomaat); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .55rem 0 .1rem; }

/* Voet: thermometerbalk bovenaan, groot logo, donkere onderrand */
.site-footer { background: var(--olijf); color: var(--salie-licht); font-size: .95rem; margin-top: 4rem; }
.voet-meter { height: 10px; background: linear-gradient(90deg, var(--salie) 0 40%, var(--oker) 40% 72%, var(--tomaat) 72% 100%); }
.voet-top { max-width: var(--breed); margin: 0 auto; padding: 2.2rem 1.25rem 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 3rem; border-bottom: 1px solid rgba(250, 243, 231, .14); }
.voet-logo { display: block; }
.voet-logo svg { width: 15rem; }
.voet-top p { margin: 0; max-width: 30rem; }
.voet-slogan { display: block; font-family: var(--kop); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.35rem; color: var(--oker); line-height: 1.3; }
.site-footer .inner { max-width: var(--breed); margin: 0 auto; padding: 2rem 1.25rem 2.4rem; display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.site-footer h2 { font-size: 1.15rem; margin: 0 0 .6rem; color: var(--bloem); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 .8rem; }
.site-footer a { color: var(--bloem); text-decoration-color: rgba(250, 243, 231, .4); }
.site-footer a:hover { color: var(--oker); }
.voet-onder { background: #1a2a21; padding: .9rem 1.25rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.5rem; color: var(--salie); }

@media (max-width: 40rem) {
  .site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-nav ul { flex-wrap: nowrap; white-space: nowrap; }
  body { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .toc, a.bol { display: none; } }

/* WordPress-aanvullingen */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.lijst-artikelen { list-style: none; padding: 0; }
.lijst-artikelen li { border-top: 1px solid currentColor; padding: .8rem 0 1rem; }
.lijst-artikelen a { font-weight: 700; font-size: 1.1rem; }
.search-form { display: flex; gap: .5rem; margin: 1rem 0; }
.wp-block-image img, .wp-post-image { height: auto; }

/* Productfoto's (bol) in koopgidsen */
.productfoto { display: block; width: min(240px, 70%); height: auto; object-fit: contain; margin: 0 auto 1rem; border-radius: 14px; background: #fff; padding: 10px; box-shadow: 0 0 0 1px var(--lijn), 0 6px 18px rgba(0,0,0,.06); }
@media (min-width: 48rem) {
  .product.heeft-foto { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 30%, 250px); column-gap: 1.75rem; align-items: start; }
  .product.heeft-foto > .productfoto { grid-column: 2; grid-row: 1; width: 100%; margin: .2rem 0 0; position: sticky; top: 1rem; }
  .product.heeft-foto > .product-tekst { grid-column: 1; grid-row: 1; min-width: 0; }
}

/* Menuknop en menupaneel */
.menuknop { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1.5px solid currentColor; border-radius: 10px; color: inherit; font: inherit; font-size: .92rem; font-weight: 600; padding: .4rem .7rem; cursor: pointer; margin-left: auto; }
.menuknop:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.menupaneel { background: var(--papier); color: var(--inkt); border-bottom: 1px solid var(--lijn); box-shadow: 0 10px 18px -12px rgba(0,0,0,.35); }
.menupaneel[hidden] { display: none; }
.menupaneel-binnen { max-width: var(--breed); margin: 0 auto; padding: 1rem 1rem 1.5rem; }
.menuzoek { display: flex; margin: 0 0 1rem; max-width: 36rem; }
.menuzoek input { flex: 1; max-width: none; border-radius: 10px 0 0 10px; padding: .65rem .75rem; font-family: inherit; }
.menuzoek button { border: 0; border-radius: 0 10px 10px 0; padding: 0 1.1rem; font: inherit; font-weight: 700; cursor: pointer; background: var(--plant, var(--kobalt)); color: #fff; }
.menugroepen { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 2rem; }
.menugroep { border-top: 1px solid var(--lijn); padding: .7rem 0 .5rem; }
.menugroep h2 { font-family: inherit; font-size: 1rem; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--lagune, var(--kobalt)); margin: 0 0 .2rem; padding: 0; border: 0; }
.menugroep h2::before { display: none; }
.menugroep ul { list-style: none; margin: 0; padding: 0; }
.menugroep li { margin: 0; }
.menugroep a { display: block; padding: .45rem 0; color: var(--inkt); text-decoration: none; font-weight: 500; }
.menugroep a:hover { color: var(--water, var(--link)); text-decoration: underline; }
@media (max-width: 66rem) {
  .site-nav, .hoofdnav { display: none; }
  .site-header .inner, .kop-binnen { flex-wrap: nowrap; }
  .menugroepen { grid-template-columns: 1fr; }
  .menugroep a { padding: .55rem 0; font-size: 1.02rem; }
}
@media (max-width: 40rem) {
  .crumbs ol, .kruimelpad ol { flex-wrap: nowrap; }
  .crumbs li, .kruimelpad li { white-space: nowrap; }
  .crumbs li:last-child, .kruimelpad li:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
