@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;500&display=swap');

/* ============== Root / basis ============== */
:root {
  --bg-color: #fafafb;
  --text-color: #a3b98a;          /* groen */
  --accent-color: #e3502c;        /* oranje */
  --accent-light: #fafafb;
  --muted-color: #444;
  --max-width: 1100px;
  --gap: 1.5rem;
  --radius: 10px;                 /* globale kleine ronding */
  --card-bg: #fff;
  --card-border: #f3f3f3;
  font-family: 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

body {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
  background-size: cover;
  background-image: url(Afbeeldingen/Achtergrond.png);
  background-color: rgba(255,255,255,0.9);
  background-blend-mode: lighten;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-image: url(Afbeeldingen/Achtergrond.png);
  background-color: rgba(255,255,255,0.9);
  background-blend-mode: lighten;
  z-index: -1;
}

/* ============== Header / navigatie ============== */
header { 
  background: #a3b98a; 
  backdrop-filter: blur(6px); 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
}
.nav-container { 
  max-width: var(--max-width); 
  margin: 0 auto; 
  padding: 1rem; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem; 
}
.logo { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.9rem; 
  font-weight: 700; 
  color: var(--accent-color); 
  letter-spacing: 1px; 
}
nav { display: contents; }
nav a { 
  padding: 0.5rem 0.75rem; 
  border-radius: var(--radius); 
  transition: background 0.3s, color 0.3s; 
  font-weight: 500; 
  font-size: 1.2rem;
  color: #fff;
}
nav a:hover { background: #fafafb; color: var(--accent-color); }

/* ============== Search + autocomplete ============== */
.search-bar { flex: 1; max-width: 360px; position: relative; }
.search-bar input { 
  width: 100%; 
  padding: 0.5rem 2.5rem 0.5rem 0.75rem; 
  border-radius: var(--radius); 
  border: 1px solid #ddd; 
  font-size: 0.95rem; 
  background:#fff; 
}
.search-bar button { 
  position: absolute; 
  right: 6px; top: 50%; transform: translateY(-50%); 
  border: none; background: var(--accent-color); color: #fff; 
  border-radius: var(--radius); 
  padding: 0.4rem 0.75rem; cursor: pointer; font-size: 0.85rem; 
}
.search-bar button:hover { background: #a3b98a; }

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid #e7e7e7; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08); display: none; max-height: 320px; overflow-y: auto; z-index: 999;
}
.search-results.visible { display: block; }
.search-results .result-item { padding: 0.55rem 0.75rem; cursor: pointer; font-size: 0.95rem; color: #333; }
.search-results .result-item:hover { background: #f6f6f6; }

/* ============== Intro (titels gecentreerd) ============== */
.intro {
  background: rgba(250,250,251,0.6);
  padding: 2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  text-align: center;
}
.intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  color: var(--accent-color);
  text-align: center;
}
.intro--full { 
  max-width: 100%; 
  border-radius: 0; 
  margin: 0 0 .75rem 0; 
}

/* Extra spacing titelvlak → filters/kaarten (gerechten) */
.intro--full + .filter-container { margin-top: 1rem; margin-bottom: 1.2rem; }

/* Landing (optioneel – split layout met ronde foto) */
.intro-landing{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items:center;
  gap:2rem;
  border-radius:24px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(3px);
}
.intro-landing .intro-text h1{
  font-family:'Playfair Display',serif;
  font-size:3.2rem;
  color: var(--accent-color);
  text-align:center;
}
.intro-landing .intro-text p{
  color:#333;
  max-width: 640px;
  margin-left:2rem;
  text-align:center;
  font-size: 1.1rem;
}
.intro-photo{ display:flex; justify-content:center; }
.intro-photo img{
  width: 400px; height: 400px;
  object-fit: contain; 
}

/* ============== Overzicht (grote type-blokken) ============== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: var(--max-width);
  margin: 1.5rem auto 3rem;
  justify-items: center;
}
.type-card {
  width: 100%;
  max-width: 360px;
  height: 180px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--accent-color);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: grid;
  place-items: center;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .3px;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  text-align: center;
}
.type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  background: var(--accent-color);
  color: #fff;
}

/* ============== Categorie-filter (gerechten.html) ============== */
.filter-container {
  margin: 1.25rem auto 1.6rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
}
.filter-btn {
  border: 2px solid var(--accent-color);
  color: #fff;
  background: var(--accent-color);
  border-radius: 9999px;
  padding: 0.48rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: #fff;
  color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============== Recepten grid + kaarten ============== */
.recipes-section { 
  width: 90%; 
  margin: 0 auto 5rem; 
  text-align: center; 
}
#all-recipes-container { margin-bottom: 5rem; } /* extra bodemruimte */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
  justify-content: center;
  gap: 1.2rem;
}
.recipe-card {
  display: flex;
  flex-direction: column;
  width: 260px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s, background-color .2s;
  overflow: hidden;
  background-image: url(Afbeeldingen/Groen.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.card-media {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  background: transparent;
}
.card-media img {
  max-width: 82%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}
.card-content {
  padding: 0.8rem 0.9rem;
  background: var(--accent-light);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-content h3 { margin: 0 0 0.35rem; font-size: 1.12rem; color: var(--muted-color); }
.card-content p  { margin: 0; font-size: 0.95rem; color: var(--accent-color); }

/* ============== Index: “Nieuwe recepten” tussen lijnen ============== */
.index-title-wrap { 
  display:flex; 
  align-items:center; 
  gap: 1rem; 
  margin: 2rem auto 1.25rem; 
  max-width: var(--max-width); 
}
.index-title-wrap hr { 
  flex:1; border: none; border-top: 4px solid var(--accent-color); opacity:.9; 
}
.index-title-wrap h2 { 
  margin:0; font-family:'Playfair Display',serif; color: var(--accent-color); font-size: 3rem; 
}

/* ============== Recept detail ============== */
.recipe-page { 
  max-width: 950px; margin: 2rem auto; 
  background: rgba(255, 255, 255, 0.85); 
  padding: 1.2rem 1.4rem 2rem; 
  border-radius: var(--radius); 
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); 
}

/* Titelband recept */
.recipe-page .recipe-banner h1{
  text-align:center;
  color: var(--accent-color);
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin: .2rem 0 .1rem;
}
.recipe-page .recipe-banner .subtitle{
  text-align:center;
  color: var(--text-color); /* groen */
  margin: .25rem 0 0;
}

/* Hero-kaart (compact, geen witte foto-bg) */
.recipe-page .recipe-hero{
  display: grid; grid-template-columns: 260px 1fr; gap: 1rem; align-items: center;
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.42) 100%),
    url('Afbeeldingen/Groen.png');
  background-repeat:no-repeat;
  background-position:center top;
  background-size:100% auto;
  border:1px solid var(--card-border);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  padding: 0.9rem; margin: 0 auto 1.2rem; max-width: 860px;
}
.hero-img { 
  display: flex; align-items: center; justify-content: center; height: 200px; 
  background: transparent; border-radius: 12px; overflow: hidden; 
}
.hero-img img { max-width: 92%; max-height: 100%; object-fit: contain; display: block; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem .7rem; justify-content: center; }
.meta-chip { 
  background: var(--accent-color); color:#fff; 
  border: 0; 
  border-radius: 999px; padding: .35rem .75rem; font-size: .95rem; font-weight: 600; letter-spacing: .1px;
  box-shadow: 0 6px 14px rgba(227, 80, 44, 0.18); 
}

/* Inhoud – bereiding breder dan ingrediënten */
.recipe-page .recipe-details{
  display:grid;
  grid-template-columns: 1fr 1.6fr; /* bereiding neemt meer ruimte */
  gap:1.6rem;
  margin-top:.6rem;
  margin-bottom:2rem;
}
@media (max-width: 900px){
  .recipe-page .recipe-details{ grid-template-columns: 1fr; }
}
.recipe-page .recipe-details h2 {
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  text-decoration: underline;
}

/* Personen selector (1–6) met pijl in de pill */
.recipe-page .servings-bar{
  display:flex; align-items:center; gap:.75rem;
  padding:.6rem .8rem; background:#fff; border:1px solid var(--card-border);
  border-radius:12px; box-shadow:0 4px 16px rgba(0,0,0,0.06);
  margin:.4rem 0 1rem;
}
.recipe-page .servings-bar label{ color:var(--muted-color); font-weight:600; font-size:.95rem; }
.recipe-page .servings-select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:var(--accent-color); color:#fff; border:none; border-radius:9999px;
  padding:.45rem .9rem; padding-right: 2.2rem; /* ruimte voor pijl */
  font-weight:700; cursor:pointer;
  box-shadow:0 6px 14px rgba(227,80,44,.2);
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'>\
<path d='M7 10l5 5 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}
.recipe-page .servings-select:focus{ outline:3px solid rgba(227,80,44,.25); outline-offset:2px; }
.recipe-page .servings-note{ font-size:.9rem; color:var(--muted-color); opacity:.85; }

/* Ingrediënten — ALTIJD 1 kolom */
.recipe-page .ingredients ul{
  list-style:none; padding-left:0; margin:0;
  display:grid; grid-template-columns: 1fr !important; gap:.4rem;
}
.recipe-page .ingredients li{
  background:#fff; border:1px solid var(--card-border);
  border-radius:10px; padding:.5rem .6rem; color:#333;
}

/* Bereidingswijze — zwarte tekst + stap-badges */
.recipe-page .instructions { color: #000; font-weight: 400;}
.recipe-page .instructions ol{
  list-style:none; counter-reset:step; padding-left:0; display:grid; gap:.7rem;
}
.recipe-page .instructions li{
  counter-increment:step;
  background:#fff; border:1px solid var(--card-border); border-radius:12px;
  padding:.9rem 1rem .9rem 3rem; position:relative; color:#000;
}
.recipe-page .instructions li::before{
  content: counter(step);
  position:absolute; left:.9rem; top:.9rem;
  width:1.9rem; height:1.9rem; border-radius:50%;
  background:var(--accent-color); color:#fff; display:grid; place-items:center; font-weight:700;
  box-shadow:0 6px 14px rgba(227,80,44,.18);
}

/* Serveertips — compacter */
.recipe-page .tips{
  grid-column:1 / -1; background:#fffaf8; border-left:6px solid var(--accent-color);
  padding:.45rem .8rem; border-radius:12px;
  color:black;
}

/* Related titel oranje + grid naast elkaar */
.recipe-page .related-section h2 { 
  color: var(--accent-color);
  text-decoration: underline;
}
.related-section .recipe-grid { 
  grid-template-columns: repeat(auto-fill, minmax(260px, 260px)); 
  justify-content: center;
}
/* ===================== Responsive verbeteringen (alleen small screens) ===================== */

/* <= 900px: recept-hero onder elkaar, kaarten iets compacter, type-tegels full width */
@media (max-width: 900px){
/* Zelfde tekststijl voor beide blokken */
.recipe-page .ingredients li,
.recipe-page .instructions li{
  font-weight: 400;
  color: #333;
}
  /* Titelvlak blijft full-width; al goed via .intro--full */

  /* Recept detail hero stacked */
  .recipe-page .recipe-hero{
    grid-template-columns: 1fr;   /* stack afbeelding boven tekst/meta */
    max-width: 100%;
  }
  .hero-img{
    height: 180px;
  }

  /* Recepten-overzichten: dezelfde kaartbreedte, maar iets kleinere gap */
  .recipe-grid{
    gap: 1rem;
  }

  /* Type-tegels (overzicht.html): breder, één per rij voor rust */
  .type-grid{
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  .type-card{
    max-width: 640px;
    height: 160px;
    margin: 0 auto;
  }

  /* Filterknoppen iets luchtiger */
  .filter-container{
    gap: .6rem;
    padding: 0 .5rem;
  }
  .filter-btn{
    padding: 0.45rem 1rem;
  }

  /* Zoekfold-out breder en boven andere elementen */
  .search-bar{ max-width: 100%; }
  .search-results{
    left: 0; right: 0;
    width: 100%;
    max-width: none;
    z-index: 999;
  }
}

/* <= 700px: kleinere kaarten, grid blijft gecentreerd, typografie iets omlaag */
@media (max-width: 700px){

  /* Koppen iets kleiner zodat ze niet afbreken */
  .intro h1{ font-size: 2.2rem; }
  .index-title-wrap h2{ font-size: 2.2rem; }

  /* Receptkaarten: 240px breed, grid centreert al */
  .recipe-grid{
    grid-template-columns: repeat(auto-fill, minmax(240px, 240px));
    gap: 0.9rem;
  }
  .recipe-card{ width: 240px; }
  .card-media{ height: 9.5rem; }
  .card-media img{ max-width: 85%; }

  /* Detailpagina: wat compacter */
  .recipe-page{
    margin: 1.2rem auto;
    padding: 1rem 0.9rem 1.4rem;
  }
  .recipe-page .recipe-banner h1{
    font-size: 2.1rem;
  }
  .meta-chip{ font-size: .9rem; padding: .3rem .65rem; }

  /* Ingrediënten & bereidingswijze: marges iets kleiner */
  .recipe-page .recipe-details{
    gap: 1rem;
    margin-bottom: 1.3rem;
  }
  .recipe-page .instructions li{
    padding: .8rem .9rem .8rem 2.7rem;
  }
  .recipe-page .instructions li::before{
    left: .75rem; top: .75rem;
    width: 1.7rem; height: 1.7rem;
  }

  /* Serveertips nog iets compacter op small */
  .recipe-page .tips{
    padding: .4rem .75rem;
  }
}

/* <= 480px: 1-koloms focus, grote tap-targets, afbeeldingen netjes binnen kaart */
@media (max-width: 480px){

  /* Receptkaarten: 1-kolom, iets smaller zodat ze mooi passen met padding */
  .recipes-section{ width: 100%; }
  .recipe-grid{
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0 .75rem;
  }
  .recipe-card{
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .card-media{
    height: 9rem;
    padding: .6rem;
  }

  /* Filterknoppen: grotere tap-targets */
  .filter-container{
    gap: .55rem;
    margin: 1rem auto 1.2rem;
  }
  .filter-btn{
    padding: 0.5rem 1rem;
    border-width: 2px;
  }

  /* Hero-foto iets lager zodat hij niet domineert */
  .hero-img{ height: 160px; }
  .hero-img img{ max-width: 90%; }

  /* Zoekfold-out op full width + grotere touchruimte */
  .search-bar input{ padding: 0.55rem 2.4rem 0.55rem 0.75rem; }
  .search-results .result-item{ padding: 0.65rem 0.8rem; }
}

/* Super-small failsafe (<=360px): alles nog iets compacter */
@media (max-width: 360px){
  .recipe-page .recipe-banner h1{ font-size: 1.9rem; }
  .meta-chip{ font-size: .85rem; }
  .card-media{ height: 8.5rem; }
  .recipe-card{ border-radius: 8px; }
}
/* ===== Mobile nav / search (kleine schermen) ===== */
.mobile-actions,
.mobile-search-panel,
.mobile-menu { display: none; }

/* Icon-button basis */
.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  padding: .25rem .5rem;
  cursor: pointer;
  color: #fff;
}

/* Panel basis */
.mobile-search-panel,
.mobile-menu {
  position: fixed;
  left: 0; right: 0;
  top: 64px; /* ongeveer headerhoogte; pas aan als nodig */
  background: rgba(255,255,255,0.98);
  border-top: 1px solid #eee;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  z-index: 998;
  padding: .75rem 1rem;
}

/* Zoekveld in paneel */
.mobile-search-panel .search-wrapper {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}
.mobile-search-panel .js-search-input {
  width: 100%;
  padding: 0.6rem .8rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: #fff;
}
.mobile-search-panel .search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 999;
}
.mobile-search-panel .search-results.visible { display: block; }

/* Uitklap-menu links */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
}
.mobile-menu a {
  display: block;
  padding: .7rem .8rem;
  border-radius: var(--radius);
  color: var(--accent-color);
  font-weight: 600;
}
.mobile-menu a:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Schakel naar mobiele weergave */
@media (max-width: 700px){
  /* Desktop verbergen */
  .desktop-nav,
  .search-bar { display: none; }

  /* Iconen tonen */
  .mobile-actions { display: flex; gap: .4rem; }

  /* Panelen mogen getoond worden */
  .mobile-search-panel[hidden],
  .mobile-menu[hidden] { display: none !important; }
  .mobile-search-panel:not([hidden]) { display: block; }
  .mobile-menu:not([hidden]) { display: flex; }
}

/* Kleine visuele polish op header-hoogte op mini-schermen */
@media (max-width: 420px){
  .icon-btn { font-size: 1.4rem; padding: .2rem .4rem; }
}
/* SVG icoon in mobiele knoppen wit maken */
.icon-btn .icon { width: 22px; height: 22px; fill: #fff; display: block; }
@media (max-width: 420px){ .icon-btn .icon { width: 20px; height: 20px; } }

/* Kaart-achtergrond op kleine schermen altijd volledig bedekken */
@media (max-width: 480px){
  .recipe-card{
    background-size: cover;         /* ipv 100% auto */
    background-position: center;    /* centreren voor betere cover */
  }
  /* Zelfde voor de hero-kaart achtergrond */
  .recipe-page .recipe-hero{
    background-size: cover;
    background-position: center;
  }
}
/* Afvinkbare ingrediënten – zelfde gevoel als de oranje pill */
.recipe-page .ingredients li { padding: .55rem .7rem; font-weight: 400;}

.ing-check{ 
  display:flex; align-items:center; gap:.35rem; width:100%;
}
.ing-check input[type="checkbox"]{
  position:absolute; opacity:0; pointer-events:none;
}
.ing-check .check-ui{
  width: 22px; height: 22px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid var(--accent-color);
  display: grid; place-items: center;
  transition: all .15s ease;
  box-shadow: 0 3px 8px rgba(227,80,44,.15);
}
.ing-check .check-ui::after{
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: transparent; transition: background .15s ease;
}
.ing-check input[type="checkbox"]:checked + .check-ui{
  background: var(--accent-color);
  border-color: var(--accent-color);
}
.ing-check input[type="checkbox"]:checked + .check-ui::after{
  background: #fff;
}

/* Tekstdoorslag als aangevinkt (optioneel: streepje) */
.ing-check input[type="checkbox"]:checked ~ .qty,
.ing-check input[type="checkbox"]:checked ~ .unit,
.ing-check input[type="checkbox"]:checked ~ .name {
  text-decoration: line-through; opacity: .8;
}

/* Zorg dat qty/unit/name netjes naast de checkbox staan */
.recipe-page .ingredients li .qty { min-width: 44px; text-align:left; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-color); }
.recipe-page .ingredients li .unit { color: var(--muted-color); min-width: 36px; }
.recipe-page .ingredients li .name { color:#333; flex:1; }

/* --- Mobile icon hit-area & klikbaarheid --- */
.nav-container { position: relative; }

.mobile-actions { position: relative; z-index: 1100; display: none; } /* blijft hidden op desktop */
.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  width: 44px;                /* grote hit-area */
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1101;              /* boven evt. overlappende elementen */
}
.icon-btn .icon { width: 24px; height: 24px; display: block; fill: none; pointer-events: none; }
@media (max-width: 420px){ .icon-btn .icon { width: 22px; height: 22px; } }

/* Zorg dat niets onzichtbaars eroverheen ligt op mobiel */
@media (max-width: 700px){
  .search-bar { display: none !important; } /* desktop zoekbalk verbergen */
  .desktop-nav { display: none !important; }
  .mobile-actions { display: flex; gap: .4rem; }
}
/* =========================
   Ingrediënten – uitlijning & stijl
   ========================= */

/* 1) Label zelf positioneren en 1 cm ruimte tussen bolletje en tekst */
.recipe-page .ingredients li { position: relative; padding: .5rem .6rem; }
.ing-check{
  position: relative;
  display: flex;
  align-items: center;
  /* exact 1 cm vanaf het rondje tot aan de tekst */
  padding-left: 1cm;
  gap: .35rem;                 /* kleine ruimte tussen qty / unit / naam */
}

/* 2) Het ronde checkbox-ui element vast links plaatsen */
.ing-check .check-ui{
  position: absolute;
  left: .6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 2px solid var(--accent-color);
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(227,80,44,.15);
}

/* 3) Afstand tot bolletje + Typografie: geen opvallende kleur of vetgedrukte cijfers meer */
.recipe-page .ingredients li .qty{
  min-width: auto;            /* geen vaste blokkering meer */
  font-weight: 400;
  color: #333; /* zelfde als overige tekst */
  margin-left: 0.5rem;
}
.recipe-page .ingredients li .unit{
  min-width: auto;
  color: #555;
}
.recipe-page .ingredients li .name{
  color: #333;
  flex: 1;
}

/* 4) Aangevinkt: subtiel doorhalen mag blijven */
.ing-check input[type="checkbox"]:checked ~ .name {
  text-decoration: line-through;
  opacity: .85;
}

/* 5) (Mobiel) hou alles netjes bij small screens */
@media (max-width: 700px){
  .ing-check{ padding-left: calc(1cm - .2rem); } /* mini-correctie voor smalle schermen */
}

/* ==== Kookstand (recepten.html) ==== */
/* --- Mobiele panelen écht weg als hidden --- */
.mobile-search-panel[hidden],
.mobile-menu[hidden]{
  display: none !important;
}

/* --- Hero laag-basis zodat niets er 'boven' zweeft --- */
.recipe-page .recipe-hero{
  position: relative;
  z-index: 0;
}

/* ==== Kookstand (klikbaar + oranje label) ==== */
.recipe-page .kookstand{
  position: relative;
  z-index: 20; /* boven evt. overlappende lagen */
  display:flex; align-items:center; justify-content:center; gap:.6rem;
  margin:.6rem auto 1rem;
}
.recipe-page .kookstand-label{
  color: var(--accent-color);
  font-weight: 700;
}

.recipe-page .kookstand-toggle{
  position: relative;
  display:inline-flex; align-items:center;
  width: 58px; height: 32px; cursor: pointer;
}

.recipe-page .kookstand-toggle input{
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0; margin:0; cursor:pointer; z-index: 2;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  pointer-events: auto;
}

.recipe-page .kookstand-toggle .switch{
  position: relative;
  width:100%; height:100%;
  background:#d8d8d8; border-radius:9999px; border:1px solid #cfcfcf;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
  transition: background .2s, border-color .2s;
}
.recipe-page .kookstand-toggle .switch::after{
  content:"";
  position:absolute; top:2px; left:2px;
  width:28px; height:28px; border-radius:50%;
  background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}

.recipe-page .kookstand-toggle input:checked + .switch{
  background: var(--accent-color);
  border-color: var(--accent-color);
}
.recipe-page .kookstand-toggle input:checked + .switch::after{
  transform: translateX(26px);
}



/* ============== Footer ============== */
footer { 
  background: rgba(251,238,237,0.95); 
  padding: 2rem 1rem; text-align: center; 
  color: var(--muted-color); font-size: 0.9rem; 
  border-top: 3px solid var(--accent-color); 
}

/* ============== Responsive ============== */
@media (max-width: 900px){
  .intro-landing{ grid-template-columns: 1fr; text-align:center; }
  .intro-landing .intro-text h1,
  .intro-landing .intro-text p { text-align:center; margin-left:auto; margin-right:auto; }
  .intro-photo img{ width: 240px; height: 240px; margin: 1rem auto 0; }

  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-details { grid-template-columns: 1fr; }
}
@media (max-width: 700px){
  .intro h1 { font-size: 2.2rem; }
  nav { display: none; }
  .search-bar { max-width: 100%; }
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 240px)); }
  .recipe-card { width: 240px; }
}
