:root {
  --accent: #4e7a46;
  --accent-deep: #2f5a31;
  --bg: #faf9f6;
  --card: #ffffff;
  --border: #e2e0d8;
  --text: #23261f;
  --text-secondary: #5b5f54;
  --text-faint: #8a8d81;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 28px;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---------- login ---------- */

.login-scherm {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-kaart {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-kaart .hint {
  margin: 0 0 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.login-kaart input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
}

.login-kaart button {
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.fout {
  margin: 0;
  color: #b3403a;
  font-size: 14px;
}

/* ---------- app-layout ---------- */

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kop input[type="search"] {
  height: 44px;
  min-width: 220px;
  flex: 1;
  max-width: 320px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
}

.hint { color: var(--text-faint); }

/* ---------- receptenlijst ---------- */

.recepten-lijst {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.recept-kaart {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  padding: 0;
}

.recept-kaart .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--border);
  display: block;
}

.recept-kaart .thumb-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
}

.recept-kaart .info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recept-kaart .titel {
  font-weight: 600;
  font-size: 15px;
}

.recept-kaart .cats {
  color: var(--text-faint);
  font-size: 12px;
}

/* ---------- detail ---------- */

.terug-knop {
  border: none;
  background: none;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
  padding: 0 0 12px;
}

#detail-inhoud h2 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 26px;
}

.detail-meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.detail-fotos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.detail-fotos img {
  height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px;
}

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.sectie-label {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 10px;
}

.ingredienten-lijst {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ingredienten-lijst .kopje {
  margin: 12px 0 2px;
  font-weight: 600;
  font-size: 14px;
}

.ingredienten-lijst li {
  font-size: 15px;
}

.stappen-lijst {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stappen-lijst li {
  display: flex;
  gap: 12px;
  font-size: 15px;
}

.stappen-lijst .nr {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.stappen-lijst .kopje {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 8px 0 -4px;
}

.notities {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  white-space: pre-wrap;
}
