/* ikwilvanmijnvriendenaf.nl — zomerse stijl, alles self-hosted (geen externe requests) */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/baloo-2-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/baloo-2-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/karla-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/karla-latin-700-normal.woff2') format('woff2');
}

:root {
  --kool: #2a1c14;
  --kool-70: rgba(42, 28, 20, 0.7);
  --vuur: #e04324;
  --zon: #ffb627;
  --limoen: #7cb518;
  --lucht: #0f9baa;
  --room: #fff6e8;
  --papier: #fffdf7;
  --lijn: rgba(42, 28, 20, 0.14);

  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ruimte: clamp(1rem, 4vw, 2rem);
  --radius: 18px;
  --schaduw: 0 10px 0 rgba(42, 28, 20, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--room);
  color: var(--kool);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* Het tafelkleed: rood-wit geblokt, de enige achtergrond-decoratie die we ons veroorloven */
.doek {
  background-image:
    repeating-linear-gradient(90deg, rgba(224, 67, 36, 0.13) 0 26px, transparent 26px 52px),
    repeating-linear-gradient(0deg, rgba(224, 67, 36, 0.13) 0 26px, transparent 26px 52px);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--vuur); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--kool); }

:focus-visible {
  outline: 3px solid var(--lucht);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); font-weight: 700; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vuur);
  margin: 0 0 0.6rem;
}

.wrap { width: min(72rem, 100% - 2 * var(--ruimte)); margin-inline: auto; }
.smal { width: min(46rem, 100% - 2 * var(--ruimte)); margin-inline: auto; }

/* ---------- kop ---------- */

.site-kop {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--kool);
}

.site-kop .balk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}

.merk {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--kool);
  text-decoration: none;
  margin-right: auto;
}
.merk svg { flex: none; }

.menu {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  display: block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--kool);
  text-decoration: none;
}
.menu a:hover { background: var(--zon); }
.menu a[aria-current='page'] { background: var(--kool); color: var(--room); }

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

.hero { padding: clamp(2.5rem, 9vw, 5.5rem) 0 clamp(2rem, 6vw, 4rem); }

.hero .doorgehaald {
  position: relative;
  display: inline;
  color: var(--kool-70);
}
.hero .doorgehaald::after {
  content: '';
  position: absolute;
  left: -0.5%;
  right: -0.5%;
  top: 52%;
  height: 0.09em;
  background: var(--vuur);
  transform: rotate(-1.6deg);
  border-radius: 999px;
}

.correctie {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  color: var(--vuur);
  line-height: 1.05;
  margin: 0.2em 0 0.6em;
}

.lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); max-width: 34em; }

/* ---------- knoppen ---------- */

.knoppen { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.knop {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border: 2px solid var(--kool);
  border-radius: 999px;
  background: var(--zon);
  color: var(--kool);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--kool);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.knop:hover { color: var(--kool); transform: translateY(-2px); box-shadow: 0 6px 0 var(--kool); }
.knop:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--kool); }
.knop.vuur { background: var(--vuur); color: var(--room); }
.knop.vuur:hover { color: var(--room); }
.knop.stil { background: var(--papier); }

/* ---------- secties & kaarten ---------- */

.sectie { padding: clamp(2.2rem, 7vw, 4.5rem) 0; }
.sectie.streep { border-top: 2px solid var(--kool); }
.sectie.aqua { background: var(--lucht); color: var(--papier); }
.sectie.aqua .eyebrow { color: var(--zon); }
.sectie.aqua a { color: var(--zon); }

.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.kaart {
  background: var(--papier);
  border: 2px solid var(--kool);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: var(--schaduw);
}
.kaart h3 { margin-bottom: 0.35rem; }
.kaart p { margin: 0 0 0.8rem; }
.kaart > :last-child { margin-bottom: 0; }

a.kaart { text-decoration: none; color: var(--kool); display: block; }
a.kaart:hover { background: var(--zon); }

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--limoen);
  color: var(--kool);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- calculator ---------- */

.stel {
  background: var(--papier);
  border: 2px solid var(--kool);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--schaduw);
}

.personen { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.personen label { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }

.stapper { display: inline-flex; align-items: center; gap: 0.4rem; }

.stapper button {
  width: 2.9rem;
  height: 2.9rem;
  border: 2px solid var(--kool);
  border-radius: 50%;
  background: var(--zon);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--kool);
  cursor: pointer;
}
.stapper button:active { background: var(--vuur); color: var(--papier); }

.stapper input {
  width: 4.5rem;
  height: 2.9rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--kool);
  background: var(--room);
  border: 2px solid var(--kool);
  border-radius: 12px;
}

.keuzes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 2px solid var(--kool);
  border-radius: 999px;
  background: var(--papier);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--limoen); }
.chip:has(input:focus-visible) { outline: 3px solid var(--lucht); outline-offset: 3px; }

.bijgerechten { columns: 2 12rem; column-gap: 1.2rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.bijgerechten li { break-inside: avoid; margin-bottom: 0.35rem; }
.bijgerechten label { display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; }
.bijgerechten input { margin-top: 0.35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--vuur); }

/* Signatuur: het lijstje dat je mee de winkel in neemt */
.lijstje {
  background: var(--papier);
  border: 2px solid var(--kool);
  border-radius: var(--radius);
  box-shadow: 0 12px 0 rgba(42, 28, 20, 0.1);
  overflow: hidden;
}

.lijstje-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--vuur);
  color: var(--room);
  border-bottom: 2px dashed rgba(255, 246, 232, 0.5);
}
.lijstje-kop h3 { margin: 0; color: var(--room); }
.lijstje-kop .teller { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

.lijstje ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.lijstje li + li { border-top: 1px dashed var(--lijn); }

.lijstje .kopje {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kool-70);
  padding: 0.9rem 1.1rem 0.25rem;
  border-top: 1px dashed var(--lijn);
}

.lijstje .regel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  min-height: 3rem;
}
.lijstje .regel input { width: 1.4rem; height: 1.4rem; flex: none; accent-color: var(--limoen); }
.lijstje .regel .wat { flex: 1; font-weight: 700; }
.lijstje .regel .hoeveel { font-family: var(--display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.lijstje .regel .noot { display: block; font-weight: 400; font-size: 0.85rem; color: var(--kool-70); }
.lijstje .regel:has(input:checked) { background: rgba(124, 181, 24, 0.12); }
.lijstje .regel:has(input:checked) .wat,
.lijstje .regel:has(input:checked) .hoeveel { text-decoration: line-through; color: var(--kool-70); }

.lijstje-voet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border-top: 2px solid var(--kool);
  background: var(--room);
}

.melding {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--limoen);
  align-self: center;
}

/* ---------- recepten ---------- */

.recept-kop { padding: clamp(2rem, 6vw, 3.5rem) 0 1rem; }

.recept-raster { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) {
  .recept-raster { grid-template-columns: 22rem 1fr; align-items: start; }
  .recept-raster .ingredienten { position: sticky; top: 5rem; }
}

.ingredienten {
  background: var(--papier);
  border: 2px solid var(--kool);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--schaduw);
}
.ingredienten h2 { font-size: 1.35rem; }
.ingredienten ul { list-style: none; margin: 0; padding: 0; }
.ingredienten li {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--lijn);
}
.ingredienten li:last-child { border-bottom: 0; }
.ingredienten .hoeveel { font-family: var(--display); font-weight: 800; white-space: nowrap; min-width: 5.5rem; }

.stappen { counter-reset: stap; list-style: none; margin: 0; padding: 0; }
.stappen li {
  counter-increment: stap;
  position: relative;
  padding: 0 0 1.1rem 3.1rem;
  min-height: 2.4rem;
}
.stappen li::before {
  content: counter(stap);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--kool);
  border-radius: 50%;
  background: var(--zon);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
}

.let-op {
  border-left: 6px solid var(--vuur);
  background: var(--papier);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}
.let-op p { margin: 0; }

.fotos { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 1.4rem 0; }
.fotos img { border: 2px solid var(--kool); border-radius: var(--radius); }

/* ---------- nieuws ---------- */

.nieuws-lijst { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.bericht {
  background: var(--papier);
  border: 2px solid var(--kool);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
  display: flex;
  flex-direction: column;
}
.bericht img { border-bottom: 2px solid var(--kool); width: 100%; }
.bericht .binnen { padding: 1rem 1.15rem 1.2rem; }
.bericht h3 { margin-bottom: 0.2rem; }
.bericht time { font-size: 0.85rem; font-weight: 700; color: var(--vuur); }
.bericht p { margin: 0.6rem 0 0; white-space: pre-line; }

.leeg {
  border: 2px dashed var(--kool);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: rgba(255, 253, 247, 0.6);
}

/* ---------- formulier ---------- */

.veld { display: block; margin-bottom: 1rem; }
.veld span { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.veld input, .veld textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--kool);
  background: var(--papier);
  border: 2px solid var(--kool);
  border-radius: 12px;
}
.veld textarea { min-height: 8rem; resize: vertical; }
.honk { position: absolute; left: -9999px; }

.overslaan {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  background: var(--kool);
  color: var(--room);
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: 0 0 12px 0;
}
.overslaan:focus { left: 0; color: var(--room); }

/* ---------- voet ---------- */

.site-voet {
  border-top: 2px solid var(--kool);
  background: var(--kool);
  color: var(--room);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
}
.site-voet a { color: var(--zon); }
.site-voet .rijtje { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-bottom: 0.8rem; }
.site-voet p { margin: 0.3rem 0; color: rgba(255, 246, 232, 0.75); }

@media print {
  .site-kop, .site-voet, .lijstje-voet, .stel, .knoppen { display: none; }
  body { background: #fff; }
  .lijstje { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
