/* 't Wolhoekje – stijl A "Atelier"
   Kleuren en lettertypes: zie BRANDGUIDE.md. Pas ze hier aan, niet in de pagina's. */
:root {
  --wol: #F5EFE6;        /* achtergrond */
  --papier: #FFFDF9;     /* kaarten */
  --bosgroen: #2E4636;   /* tekst, knoppen */
  --terracotta: #A84B24; /* accent, spaarzaam */
  --taupe: #5E5548;      /* bijtekst */
  --lijn: #DCD2C2;
  --lijn-sterk: #CDBFA9;
  --ok: #2E6B45;
  --ink-donker: #22362A; /* hover van knoppen */
  --badge: var(--papier);      /* achtergrond van "Nieuw"-labels */
  --blok: var(--papier);       /* achtergrond van blokken (patronen, staaltjes, contact) */
  --op-donker: var(--wol);     /* accentkleur op donkere vlakken (infobalk) */
  --font-titel: "Newsreader", Georgia, serif;
  --font-tekst: "Inter", system-ui, sans-serif;
  --breed: 1200px;
  --hoek: 4px;
}

/* Alternatieve kleurpaletten. Kies er een in content/site.json ("palet") of bekijk ze met ?palet=<naam>.
   Namen van de variabelen blijven die van Atelier: --bosgroen = hoofdkleur, --terracotta = accent. */
[data-palet="mos"] {    /* Atelier met mosgroen als accent in plaats van terracotta */
  --terracotta: #4F6B12; --ok: #4F6B12; --let-op: #A84B24;
}
[data-palet="logo"] {   /* grijs + limoen uit het logo */
  --wol: #F5F5F0; --papier: #FFFFFF; --bosgroen: #3A3B3D; --ink-donker: #2A2B2D; --terracotta: #557313;
  --taupe: #606165; --lijn: #DEDED8; --lijn-sterk: #C9C9C2; --ok: #557313;
}
[data-palet="heide"] {  /* pruim + oudroze */
  --wol: #F7F1EE; --papier: #FFFCFA; --bosgroen: #4A2B3F; --ink-donker: #38202F; --terracotta: #A3475F;
  --taupe: #6E5A63; --lijn: #E7DAD5; --lijn-sterk: #D6C4BE; --ok: #2E6B45;
}
[data-palet="fjord"] {  /* inktblauw + oker */
  --wol: #F2F3F1; --papier: #FFFFFF; --bosgroen: #1F3550; --ink-donker: #16273C; --terracotta: #9A5B12;
  --taupe: #56606B; --lijn: #DADFE2; --lijn-sterk: #C3CBD1; --ok: #2E6B45;
}
[data-palet="klei"] {   /* warm bruin + petrol */
  --wol: #F4EEE6; --papier: #FFFDF9; --bosgroen: #47332A; --ink-donker: #35251E; --terracotta: #2B7471;
  --taupe: #6A5A50; --lijn: #E2D7CA; --lijn-sterk: #CFC0B0; --ok: #2B7471;
}
[data-palet="logo"] { --op-donker: #B0E630; --badge: #EEF7D8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wol); color: var(--bosgroen); font: 16px/1.6 var(--font-tekst); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--bosgroen); }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-titel); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: clamp(24px, 3vw, 30px); }
p { margin: 0; }
.container { max-width: var(--breed); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.sectie { padding-block: clamp(48px, 7vw, 80px); }
.label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.bijtekst { color: var(--taupe); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bosgroen); color: var(--wol); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid var(--bosgroen); background: var(--bosgroen); color: var(--wol);
  font: 600 15px/1 var(--font-tekst); text-decoration: none; cursor: pointer; }
.knop:hover { background: var(--ink-donker); color: var(--wol); }
.knop--lijn { background: transparent; color: var(--bosgroen); }
.knop--lijn:hover { background: var(--bosgroen); color: var(--wol); }
.knop:disabled { opacity: .5; cursor: default; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--lijn-sterk); background: transparent;
  color: var(--bosgroen); font: 14px/1 var(--font-tekst); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--bosgroen); border-color: var(--bosgroen); color: var(--wol); font-weight: 500; }
.pijl { font-weight: 600; }

/* Header */
.header { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 22px; }
.logo { display: flex; align-items: center; gap: 12px; font: 600 26px/1 var(--font-titel); text-decoration: none; }
.logo img { width: auto; height: 54px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a[aria-current="page"] { border-bottom: 1.5px solid var(--terracotta); }
.lijstje-link { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; }
.lijstje-link .teller { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--terracotta); color: var(--papier);
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.lijstje-link .teller[data-leeg] { background: var(--lijn); color: var(--taupe); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 32px 72px; }
.hero__tekst { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__tekst > p:not(.label) { font-size: 18px; color: var(--taupe); max-width: 480px; }
.hero__knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero__fotos { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero__fotos .foto:first-child { grid-row: span 2; }
.foto { border-radius: var(--hoek); overflow: hidden; background: var(--lijn); min-height: 200px; }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* Infobalk */
.infobalk { background: var(--bosgroen); color: var(--wol); }
.infobalk .container { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; padding-block: 18px; font-size: 15px; }
.infobalk a { color: var(--wol); }
.status-open { font-weight: 600; }
.infobalk .status-open { color: var(--op-donker); }

/* Kaarten / productraster */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 42vw), 1fr)); gap: 36px clamp(14px, 3vw, 24px); }
.product { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.product__foto { aspect-ratio: 4 / 5; border-radius: var(--hoek); overflow: hidden; background: var(--kleur, #D8C7A8); }
.product__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product:hover .product__foto img { transform: scale(1.03); }
.product__kop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.product__naam { font: 400 21px/1.2 var(--font-titel); }
.product__prijs { font-weight: 600; white-space: nowrap; }
.product__meta { font-size: 14px; color: var(--taupe); }
.bolletjes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--taupe); }
.bolletje { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(46, 70, 54, .2); background: var(--kleur); }
.nieuw { position: absolute; top: 12px; left: 12px; background: var(--badge); color: var(--terracotta); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.voorraad { font-size: 13px; font-weight: 500; color: var(--ok); }
.voorraad--weinig { color: var(--let-op, var(--terracotta)); }
.voorraad--nee { color: var(--taupe); }

/* Inspiratie */
.inspiratie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 42vw), 1fr)); gap: 28px clamp(14px, 3vw, 24px); }
.inspiratie figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.inspiratie .foto { aspect-ratio: 4 / 5; min-height: 0; }
.inspiratie figcaption { font-size: 14px; color: var(--taupe); }

/* Blokken */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.blok { background: var(--blok); border-radius: var(--hoek); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.blok p { color: var(--taupe); }

/* Catalogus */
.cat-kop { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.zoek { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--taupe); }
.veld, .zoek input, select.veld { min-height: 48px; padding: 0 18px; border: 1.5px solid var(--lijn-sterk); border-radius: 999px; background: var(--papier);
  font: 15px var(--font-tekst); color: var(--bosgroen); width: 100%; }
textarea.veld { border-radius: 16px; padding: 14px 18px; min-height: 120px; resize: vertical; }
.zoek input { width: min(300px, 80vw); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kleurfilter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.kleurknop { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--lijn-sterk); background: var(--kleur); cursor: pointer; padding: 0; }
.kleurknop[aria-pressed="true"] { outline: 2px solid var(--bosgroen); outline-offset: 3px; }
.resultaat { font-size: 14px; color: var(--taupe); margin-bottom: 20px; }
.leeg { padding: 48px 0; color: var(--taupe); }

/* Garen-detail */
.detail { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 24px 72px; }
.detail__fotos { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.detail__hoofdfoto { aspect-ratio: 4 / 5; border-radius: var(--hoek); overflow: hidden; background: var(--kleur, #D8C7A8); }
.detail__hoofdfoto img { width: 100%; height: 100%; object-fit: cover; }
.detail__duimpjes { display: flex; gap: 10px; flex-wrap: wrap; }
.detail__duimpjes button { width: 72px; height: 72px; padding: 0; border: 1.5px solid transparent; border-radius: var(--hoek); overflow: hidden; cursor: pointer; background: var(--lijn); }
.detail__duimpjes button[aria-current="true"] { border-color: var(--bosgroen); }
.detail__duimpjes img { width: 100%; height: 100%; object-fit: cover; }
.detail__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail__prijs { font-size: 22px; font-weight: 600; }
.kleurkeuze { display: flex; flex-wrap: wrap; gap: 10px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; padding: 20px 0; border-block: 1px solid var(--lijn); }
.specs dt { color: var(--taupe); }
.specs dd { margin: 0; }
.aantal { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.aantal input { width: 90px; text-align: center; }
.melding { font-size: 14px; color: var(--ok); min-height: 22px; }
.breadcrumb { font-size: 14px; color: var(--taupe); padding-top: 8px; }

/* Calculator */
.calc { background: var(--blok); border-radius: var(--hoek); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.calc__velden { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--taupe); }
.calc__uitkomst { font: 400 26px/1.2 var(--font-titel); }

/* Patronen */
.galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.patroon button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.patroon button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.patroon__foto { aspect-ratio: 2 / 3; border-radius: var(--hoek); overflow: hidden; background: var(--lijn); }
.patroon__foto img { width: 100%; height: 100%; object-fit: cover; }
.patroon__naam { font: 400 21px/1.2 var(--font-titel); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
.lightbox::backdrop { background: rgba(20, 20, 20, .85); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--hoek); }
.lightbox__balk { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; color: var(--wol); }
.lightbox__balk button { min-width: 48px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--wol); background: transparent; color: var(--wol); font: 600 15px var(--font-tekst); cursor: pointer; }

/* Bezoek & formulieren */
.uren { display: grid; grid-template-columns: 130px 1fr; row-gap: 8px; margin: 0; }
.uren dt { color: var(--taupe); }
.uren dd { margin: 0; }
.uren .vandaag { font-weight: 600; color: var(--bosgroen); }
.kaart { border-radius: var(--hoek); overflow: hidden; min-height: 340px; background: var(--lijn); }
.kaart iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.formulier { display: grid; gap: 14px; max-width: 560px; }
.formulier label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--taupe); }
.lijst-regel { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--lijn); }
.lijst-regel__kleur { width: 56px; height: 56px; border-radius: var(--hoek); background: var(--kleur); flex: none; overflow: hidden; }
.lijst-regel__kleur img { width: 100%; height: 100%; object-fit: cover; }
.lijst-regel__naam { flex: 1 1 200px; }
.lijst-regel input { width: 80px; text-align: center; }
.linkknop { background: none; border: 0; padding: 8px; font: inherit; color: var(--taupe); text-decoration: underline; cursor: pointer; }
.tekst { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.tekst h2 { margin-top: 24px; font-size: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--lijn); }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-block: 28px; font-size: 14px; color: var(--taupe); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--taupe); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
