@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg:       #ffffff;
  --surface:  #f7f5f2;
  --surface2: #edeae5;
  --border:   #ddd9d3;
  --accent:   #c3001a;
  --accent-dim: #9e0015;
  --text:     #1a1a1a;
  --muted:    #6b6160;
  --green:    #2d7a40;
  --orange:   #b85c00;
  --red:      #c3001a;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Full-width paginamodus (recept, gerechten, logboek) ── */
body.recept-actief header,
body.gerechten-actief header,
body.logboek-actief header,
body.account-actief header { display: none; }

body.recept-actief main,
body.gerechten-actief main,
body.logboek-actief main,
body.account-actief main { max-width: none; padding: 0; }

.recept-content,
.pagina-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 40px 80px;
}

/* ── Pagina hero (gerechten & logboek) ── */
.pagina-hero {
  width: 100%;
  background: var(--text);
  color: #fff;
  padding: 56px 40px;
  text-align: center;
}
.pagina-hero h1 {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

/* ── Nav ── */
#app-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--text);
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 0;
  height: 100%;
}

.nav-btn {
  background: none;
  color: var(--text);
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: unset;
  height: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.nav-btn:hover {
  background: none;
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: none;
}

.nav-uitlog {
  background: none;
  color: var(--muted);
  padding: 0 0 0 16px;
  font-size: 0.75rem;
  font-weight: 400;
  min-height: unset;
  border-radius: 0;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-uitlog:hover {
  background: none;
  color: var(--accent);
  transform: none;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  min-height: unset;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-avatar:hover { opacity: 0.85; transform: none; background: inherit; }

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Header ── */
header {
  text-align: center;
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--border);
  margin: 0 -24px 32px;
  background: var(--surface);
}

.header-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

header h1 {
  font-family: 'Lora', serif;
  font-size: 2.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
}

header p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Knoppen ── */
button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s, transform 0.1s;
}

button:hover  { background: var(--accent-dim); }
button:active { transform: scale(0.98); }

/* ── Auth ── */
#login-scherm { padding: 16px 0 0; }

.auth-kaart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-kaart h2 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.auth-fout {
  color: var(--red);
  font-size: 0.85rem;
  background: #fff5f5;
  border: 1px solid #fdc5c5;
  border-radius: 4px;
  padding: 10px 12px;
}

.auth-kaart input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 13px 14px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

.auth-kaart input:focus { border-color: var(--text); }
.auth-kaart input::placeholder { color: #b0aaa5; }

.auth-scheider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-scheider::before, .auth-scheider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  min-height: 48px;
}
.google-btn:hover { background: var(--surface); border-color: var(--text); }

.auth-wissel {
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  min-height: unset;
  padding: 4px 0;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-wissel:hover { background: none; color: var(--text); transform: none; }

/* ── Rol & gezin keuze ── */
.rol-keuze, .gezin-keuze {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.rol-btn {
  flex: 1;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  font-size: 0.9rem;
  min-height: unset;
}

.rol-btn.actief {
  background: #fff;
  color: var(--text);
  border-color: var(--text);
  font-weight: 600;
}

.rol-btn:hover { background: var(--surface); color: var(--text); transform: none; }
.rol-btn.actief:hover { background: #fff; }

/* ── Upload ── */
#upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  min-height: 240px;
  transition: border-color 0.2s;
}

#upload-label:hover { border-color: var(--text); }

#upload-tekst {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 40px;
}

.upload-icoon {
  font-size: 2.4rem;
  line-height: 1;
}

#upload-tekst span { font-size: 0.9rem; }
#upload-tekst .hint { font-size: 0.75rem; color: #b0aaa5; }

#preview {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

#analyseer-btn {
  margin-top: 14px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Laden ── */
#laden-scherm {
  text-align: center;
  padding: 80px 0;
}

.spinner-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

#laden-scherm p {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* ── Fout ── */
#fout-scherm {
  text-align: center;
  padding: 60px 0;
}

#fout-tekst {
  color: var(--red);
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 16px;
  background: #fff5f5;
  border: 1px solid #fdc5c5;
  border-radius: 4px;
}

/* ── Onzeker ── */
#onzeker-scherm h2 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.zichtbaar-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

#zichtbaar-lijst {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 16px 16px 36px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#zichtbaar-lijst li {
  font-size: 0.9rem;
  color: var(--muted);
}

.keuze-hint {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

#opties-lijst {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.optie-kaart {
  background: #fff;
  color: var(--text);
  border-radius: 4px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 500;
  border: 1px solid var(--border);
  min-height: unset;
  transition: border-color 0.15s;
  font-size: 0.95rem;
}

.optie-kaart:hover {
  background: #fff;
  border-color: var(--text);
}

.iets-anders-wrap {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.iets-anders-wrap input {
  flex: 1;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}

.iets-anders-wrap input:focus {
  outline: none;
  border-color: var(--text);
}

.iets-anders-wrap button {
  padding: 10px 16px;
  min-height: unset;
  font-size: 1rem;
  border-radius: 6px;
}

/* ── Account scherm ── */
.account-content {
  max-width: 540px;
}

.account-avatar-sectie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}

.account-avatar-groot {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-avatar-groot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-label {
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-sectie {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.account-sectie:last-child {
  border-bottom: none;
}

.account-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.account-veld-rij {
  display: flex;
  gap: 8px;
}

.account-veld-rij input {
  flex: 1;
  min-width: 0;
}

.account-veld-rij button {
  white-space: nowrap;
  min-height: unset;
  padding: 0 20px;
  height: 44px;
  font-size: 0.82rem;
}

.account-feedback {
  font-size: 0.82rem;
  margin-top: 8px;
}

.account-feedback.ok { color: var(--green); }
.account-feedback.fout { color: var(--accent); }

.account-uitlog-sectie {
  padding-top: 24px;
}

.account-uitlog-btn {
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0 20px;
  height: 40px;
  min-height: unset;
  font-size: 0.82rem;
  border-radius: 4px;
}

.account-uitlog-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: none;
}

/* ── Boodschappenlijst ── */
.boodschappen-btn {
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  width: 100%;
}

.boodschappen-btn:hover {
  border-color: var(--text);
  background: none;
  transform: none;
}

.boodschappen-kaart {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 24px 24px;
}

.boodschappen-kaart h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.boodschappen-lijst {
  overflow-y: auto;
  flex: 1;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.boodschappen-onderdeel {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 6px;
}

.boodschappen-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.boodschappen-item:last-child { border-bottom: none; }

.boodschappen-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--text);
  flex-shrink: 0;
  cursor: pointer;
}

.boodschappen-item span { flex: 1; }

.boodschappen-item:has(input:not(:checked)) span {
  text-decoration: line-through;
  color: var(--muted);
}

.deel-fallback {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.deel-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.deel-whatsapp { background: #25D366; color: #fff; }
.deel-whatsapp:hover { background: #1ebe5d; }
.deel-telegram { background: #229ED9; color: #fff; }
.deel-telegram:hover { background: #1a8fc4; }

/* ── Keuze scherm ── */
#keuze-scherm h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

#gerecht-beschrijving {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

#varianten-lijst {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-kaart {
  background: #fff;
  color: var(--text);
  border-radius: 4px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  font-weight: 400;
  width: 100%;
  min-height: unset;
  transition: border-color 0.15s;
}

.variant-kaart:hover { background: #fff; border-color: var(--text); }
.variant-kaart.groen:hover  { border-color: var(--green); }
.variant-kaart.oranje:hover { border-color: var(--orange); }
.variant-kaart.rood:hover   { border-color: var(--red); }

.variant-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.variant-niveau {
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.variant-niveau::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.groen .variant-niveau::before  { background: var(--green); }
.oranje .variant-niveau::before { background: var(--orange); }
.rood .variant-niveau::before   { background: var(--red); }

.groen .variant-niveau  { color: var(--green); }
.oranje .variant-niveau { color: var(--orange); }
.rood .variant-niveau   { color: var(--red); }

.variant-tijd {
  font-size: 0.82rem;
  color: var(--muted);
}

.foto-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: #fff5f5;
  border: 1px solid #fdc5c5;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.variant-teaser {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.variant-ingredienten {
  font-size: 0.78rem;
  color: #b0aaa5;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
}

/* ── Bewerk foto overlay / toevoegen ── */
.recept-foto-wrap { position: relative; }

.bewerk-foto-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  min-height: unset;
  letter-spacing: 0.04em;
}
.bewerk-foto-overlay:hover { background: rgba(0,0,0,0.75); transform: none; }

.bewerk-foto-toevoegen {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 2px dashed var(--border);
  color: var(--muted);
  padding: 28px;
  font-size: 0.88rem;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 28px;
  min-height: unset;
  text-align: center;
}
.bewerk-foto-toevoegen:hover { border-color: var(--accent); color: var(--accent); transform: none; background: var(--surface); }

/* ── Recept hero foto (volledig breed) ── */
.recept-foto-wrap {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--surface);
}

.recept-foto-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  display: block;
}

/* ── Recept header ── */

.portie-rij {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 0;
}

.recept-meta-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 36px;
}

.recept-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.recept-meta-item > span:last-child {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.portie-selector-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.recept-divider {
  height: 2px;
  background: var(--text);
  margin: 36px 0;
}

/* ── Recept ── */
#terug-btn {
  background: none;
  color: var(--muted);
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: auto;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#terug-btn:hover {
  background: none;
  color: var(--text);
  transform: none;
}

#recept-scherm h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  padding-top: 28px;
}

/* ── Onderdelen ── */
.onderdeel { margin-bottom: 48px; }

.onderdeel-naam {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}

.onderdeel-body {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 72px;
  align-items: start;
}

@media (max-width: 720px) {
  .onderdeel-body { grid-template-columns: 1fr; gap: 32px; }
}

.onderdeel-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.ing-lijst {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ing-lijst li {
  font-size: 0.95rem;
  color: var(--text);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  line-height: 1.4;
}

.ing-lijst li strong {
  color: var(--text);
  min-width: 56px;
  flex-shrink: 0;
}

.stap-lijst {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.stap-rij {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.stap-nr {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stap-nr::before {
  content: 'Stap ';
}

.stap-tekst-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stap-tekst {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.75;
  flex: 1;
}

.stap-tijd {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

.stap-actief {
  background: #fff5f5;
  color: var(--accent);
  border: 1px solid #fdc5c5;
}

.stap-passief {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.portie-btn {
  background: #fff;
  color: var(--text);
  border-radius: 4px;
  padding: 0;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.portie-btn:hover { background: var(--surface); border-color: var(--text); }

#portie-getal {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  min-width: 24px;
  text-align: center;
}

/* ── Recept acties ── */
.recept-acties {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.gemaakt-btn {
  background: var(--text);
  color: #fff;
  width: 100%;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gemaakt-btn:hover { background: #333; }

.gemaakt-btn:disabled {
  color: var(--green);
  border: 1px solid var(--green);
  background: #f0faf2;
  cursor: default;
  transform: none;
}

.foto-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.foto-upload-label:hover { border-color: var(--text); }
.foto-upload-label.heeft-foto { border-style: solid; border-color: var(--text); }

#resultaat-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 2px;
}

.opslaan-btn {
  background: var(--accent);
  color: #fff;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}

.opslaan-btn:hover { background: var(--accent-dim); }

.opslaan-btn:disabled {
  background: var(--surface2);
  color: var(--muted);
  cursor: default;
  transform: none;
}

.bewerken-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bewerken-btn:hover { background: var(--surface); border-color: var(--text); }

.opnieuw-btn {
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: unset;
  padding: 10px;
}

.opnieuw-btn:hover { background: none; color: var(--text); transform: none; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ── Mijn gerechten grid ── */
.recepten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .recepten-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .recepten-grid { grid-template-columns: 1fr; gap: 16px; } }

.recept-kaart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.recept-kaart:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); transform: translateY(-2px); }

.recept-kaart-foto {
  aspect-ratio: 4/3;
  background: var(--surface);
  overflow: hidden;
}
.recept-kaart-foto img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.recept-kaart-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.recept-kaart-naam {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.recept-kaart-voet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.recept-kaart-niveau {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.niveau-makkelijk { background: #eaf5ec; color: var(--green); }
.niveau-gemiddeld  { background: #fef3e2; color: var(--orange); }
.niveau-moeilijk   { background: #fff5f5; color: var(--red); }

.recept-kaart-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Logboek ── */
#logboek-scherm h2 { margin-bottom: 20px; }

/* Weekstrip */
.week-strip-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.week-nav-btn {
  background: var(--surface);
  color: var(--text);
  border: none;
  border-radius: 0;
  padding: 0 14px;
  font-size: 1.2rem;
  min-height: 72px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.week-nav-btn:hover { background: var(--surface2); }
.week-nav-btn:first-child { border-left: none; }
.week-nav-btn:last-child  { border-right: none; }

.week-strip {
  display: flex;
  flex: 1;
}

.dag-knop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 4px;
  min-height: unset;
  cursor: pointer;
  transition: background 0.12s;
}

.dag-knop:last-child { border-right: none; }
.dag-knop:hover { background: var(--surface); }

.dag-knop.actief {
  background: var(--text);
}
.dag-knop.actief .dag-naam,
.dag-knop.actief .dag-getal { color: #fff; }

.dag-knop.vandaag .dag-getal {
  font-weight: 700;
  color: var(--accent);
}
.dag-knop.actief.vandaag .dag-getal { color: #fff; }

.dag-naam {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dag-getal {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.dag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 2px;
}

.dag-dot.leeg { background: transparent; }

/* Dag content */
.dag-datum-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.dag-leeg {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 40px 0;
  text-align: center;
}

/* Maaltijd kaart grid */
#dag-maaltijden .dag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 900px) { #dag-maaltijden .dag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { #dag-maaltijden .dag-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Maaltijd kaart */
.maaltijd-kaart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
}

.maaltijd-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.maaltijd-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.maaltijd-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.maaltijd-naam {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.maaltijd-kok {
  font-size: 0.82rem;
  color: var(--muted);
}

.maaltijd-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: var(--accent);
}

.gem-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.gem-aantal {
  font-size: 0.8rem;
  color: var(--muted);
}

.maaltijd-feedbacks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.feedback-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-sterren {
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
}

.feedback-tekst {
  font-size: 0.88rem;
  color: var(--text);
  font-style: italic;
  flex: 1;
}

.feedback-naam {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

.maaltijd-acties {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.rating-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.78rem;
  min-height: unset;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rating-btn:hover { background: var(--surface); border-color: var(--text); transform: none; }

.rating-btn.al-beoordeeld {
  color: var(--accent);
  border-color: #fdc5c5;
  background: #fff5f5;
}

.maaltijd-recept-btn {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 0.78rem;
  min-height: unset;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: auto;
}

.maaltijd-recept-btn:hover { background: #333; }

/* Niveau badges (gedeeld) */
.logboek-niveau {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Rating modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}

.modal-kaart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-kaart h3 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.sterren-kiezer {
  display: flex;
  gap: 8px;
  font-size: 2.2rem;
}

.ster {
  cursor: pointer;
  color: var(--border);
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}

.ster.actief { color: var(--accent); }
.ster:hover  { transform: scale(1.2); }

.modal-kaart textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  resize: none;
  outline: none;
}

.modal-kaart textarea:focus { border-color: var(--text); }
.modal-kaart textarea::placeholder { color: #b0aaa5; }

.modal-acties {
  display: flex;
  gap: 10px;
}

.modal-acties button { flex: 1; }

/* ── Bewerk-modus ── */
.edit-ing-lijst {
  list-style: none;
  padding: 0;
}

.edit-ing-rij {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}

.edit-hoeveelheid {
  width: 64px;
  flex-shrink: 0;
}

.edit-eenheid {
  width: 52px;
  flex-shrink: 0;
}

.edit-naam {
  flex: 1;
  min-width: 0;
}

.edit-ing-rij input,
.edit-stap-rij textarea {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 0.9rem;
  font-family: inherit;
}

.edit-ing-rij input:focus,
.edit-stap-rij textarea:focus {
  outline: none;
  border-color: var(--text);
}

.edit-stap-rij {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.edit-stap {
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}

/* ── Leeg & helpers ── */
.leeg-tekst {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
  padding: 48px 0;
}

@media (max-width: 600px) {
  main { padding: 0 16px 64px; }
  header { padding: 40px 16px 36px; margin: 0 -16px 24px; }
  header h1 { font-size: 2rem; }
  .recept-foto-wrap { aspect-ratio: 4/3; }
  .recept-content, .pagina-content { padding: 24px 16px 64px; }
  .pagina-hero { padding: 40px 16px; }
  .pagina-hero h1 { font-size: 2rem; }
  #keuze-scherm h2, #recept-scherm h2 { font-size: 1.6rem; }
  .nav-btn { padding: 0 10px; font-size: 0.72rem; }
  .recept-meta-bar { gap: 20px; }
}
