/* FOOD!! – Design „Küchenzettel“
   Schriften liegen lokal (kein Abruf bei Google, DSGVO-freundlich). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Schriften für das Design „Cucina“ – werden nur geladen, wenn es aktiv ist */
@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fonts/roboto-condensed.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gochi Hand';
  src: url('../fonts/gochi-hand.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --ink: #151515;
  --muted: #5F5F5A;
  --line: #E4E2DA;
  --line-strong: #D8D6CD;
  --done: #EFEDE6;
  --accent: #C93A1D;
  --accent-hover: #9E2B13;
  --spark: #FF5A36;
  --radius: 16px;
  --radius-lg: 22px;
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Rollen – vom Design-Umschalter überschrieben */
  --on-ink: #FFFFFF;
  --ink-hover: #333333;
  --on-accent: #FFFFFF;
  --link: var(--accent);
  --link-hover: var(--accent-hover);
  --focus: var(--accent);
  --focus-ring: rgba(201, 58, 29, .25);
  --check: var(--accent);
  --tab-bg: #E9E7E0;
  --brand-bg: var(--ink);
  --brand-fg: var(--spark);
  --brand-font: var(--font-display);
  --brand-weight: 800;
  --brand-size: 26px;
  --brand-tracking: -0.02em;
  --eyebrow-fg: var(--accent);
  --eyebrow-bg: transparent;
  --eyebrow-pad: 0;
  --step-bg: var(--ink);
  --step-fg: #FFFFFF;
  --label-font: var(--font-body);
  --label-transform: none;
  --label-tracking: 0;
  --pill-active-bg: var(--accent);
  --pill-active-fg: #FFFFFF;
}

/* ---------- Design „Cucina“ (Farben von wordpress.slimpickens.de) ---------- */
[data-theme="cucina"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #373940;
  --muted: #6B6D73;
  --line: #EBEBEB;
  --line-strong: #DADADA;
  --done: #FEF6D3;
  --accent: #F9D949;
  --accent-hover: #EFC92A;
  --spark: #F9D949;
  --font-display: 'Inter', system-ui, sans-serif;

  --on-ink: #FFFFFF;
  --ink-hover: #22242A;
  --on-accent: #373940;
  --link: #373940;
  --link-hover: #000000;
  --focus: #373940;
  --focus-ring: rgba(249, 217, 73, .6);
  --check: #373940;
  --tab-bg: #F4F4F4;
  --brand-bg: #F9D949;
  --brand-fg: #373940;
  --brand-font: 'Gochi Hand', 'Inter', cursive;
  --brand-weight: 400;
  --brand-size: 32px;
  --brand-tracking: 0;
  --eyebrow-fg: #373940;
  --eyebrow-bg: #F9D949;
  --eyebrow-pad: 2px 8px;
  --step-bg: #F9D949;
  --step-fg: #373940;
  --label-font: 'Roboto Condensed', 'Inter', sans-serif;
  --label-transform: uppercase;
  --label-tracking: 0.06em;
  --pill-active-bg: #F9D949;
  --pill-active-fg: #373940;
}
[data-theme="cucina"] a:not(.btn):not(.card):not(.brand):not(.back):not(.pill) {
  text-decoration-color: #F9D949; text-decoration-thickness: 3px; text-underline-offset: 3px;
}
[data-theme="cucina"] .display,
[data-theme="cucina"] .h2 { letter-spacing: -0.03em; }
[data-theme="cucina"] .btn,
[data-theme="cucina"] .pill { font-family: var(--label-font); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
[data-theme="cucina"] .btn-accent:hover { color: var(--on-accent); }
[data-theme="cucina"] .site-header { border-bottom: 4px solid #F9D949; }
[data-theme="cucina"] .box-label,
[data-theme="cucina"] .scaler-label,
[data-theme="cucina"] .nutrition-label,
[data-theme="cucina"] .field-label,
[data-theme="cucina"] .search label,
[data-theme="cucina"] .sort-form label,
[data-theme="cucina"] .card-cat,
[data-theme="cucina"] .recipe-hero .cat-label { font-family: var(--label-font); text-transform: uppercase; letter-spacing: var(--label-tracking); }
[data-theme="cucina"] .card { border-color: var(--line); }
[data-theme="cucina"] .card:hover { box-shadow: 0 14px 30px -18px rgba(55, 57, 64, .45); }

/* ---------- Design-Umschalter ---------- */
.theme-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--done); gap: 2px; }
.theme-switch a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.theme-switch a:hover { color: var(--ink); }
.theme-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 21, 21, .15); }
[data-theme="cucina"] .theme-switch a { font-family: var(--label-font); text-transform: uppercase; letter-spacing: 0.05em; }

/* Kategoriefarben: Fläche + Schrift (Kontrast ≥ 5:1) */
.cat-cocktails { --tint: #DCE9FB; --tint-ink: #1F4E8C; }
.cat-backen    { --tint: #FCEBD0; --tint-ink: #8A4B00; }
.cat-dessert   { --tint: #FBDDE8; --tint-ink: #9C2C5B; }
.cat-essen     { --tint: #DDEFD7; --tint-ink: #2F6B2A; }
.cat-sonstiges { --tint: #E9E7E0; --tint-ink: #4A4A45; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.container-narrow { max-width: 880px; }
@media (max-width: 640px) { .container { padding-inline: 20px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Kopfzeile ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-bg); color: var(--brand-fg); align-items: center; justify-content: center;
}
.brand-name { font-family: var(--brand-font); font-weight: var(--brand-weight); font-size: var(--brand-size); letter-spacing: var(--brand-tracking); line-height: 1; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink);
}
.btn:hover { color: var(--ink); background: var(--done); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-danger { background: #B42318; color: #FFFFFF; }
.btn-danger:hover { background: #8E1B12; color: #FFFFFF; }
.btn-quiet-danger { color: #B42318; }
.btn-quiet-danger:hover { color: #8E1B12; background: #FBE4E1; }
.btn-lg { min-height: 56px; padding: 0 28px; border-radius: var(--radius); font-size: 17px; }
.btn-block { display: flex; width: 100%; border-radius: var(--radius); min-height: 52px; }

/* ---------- Typografie ---------- */
.eyebrow {
  margin: 0 0 12px; font-size: 14px; font-weight: 600; font-family: var(--label-font);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow-fg);
  display: table; background: var(--eyebrow-bg); padding: var(--eyebrow-pad); border-radius: 4px;
}
.display {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 7vw, 72px); line-height: 0.95; letter-spacing: -0.035em;
}
.display-md { font-size: clamp(40px, 6vw, 60px); margin-bottom: 40px; overflow-wrap: break-word; hyphens: auto; }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.muted { color: var(--muted); }

main { padding-block: 56px 96px; }
@media (max-width: 640px) { main { padding-block: 32px 64px; } }

/* ---------- Hinweise ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #DDEFD7; color: #1F4A1B; }
.alert-danger  { background: #FBDDE8; color: #7A1F44; }
.alert-warning { background: #FCEBD0; color: #6B3A00; }

.danger-box { padding: 18px 20px; border-radius: var(--radius); background: #FBE4E1; color: #6E140B; }

/* ---------- Übersicht ---------- */
.intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 40px;
}
.intro-text { flex: 1 1 520px; min-width: 0; }
.search { flex: 1 1 340px; max-width: 420px; min-width: 0; }
.search label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.search-field {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 16px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.search-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font: inherit; color: var(--ink);
}
.search-field input::placeholder { color: #6B6B66; }
.search-field .btn { min-height: 44px; border-radius: 12px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.list-toolbar .pills { margin-bottom: 0; }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { font-size: 14px; font-weight: 600; color: var(--muted); }
.sort-select {
  min-height: 44px; padding: 0 40px 0 16px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; appearance: none;
}
.sort-select:hover { border-color: var(--ink); }
.sort-select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-date { font-weight: 500; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.pill:hover { color: var(--ink); border-color: var(--ink); }
.pill span { font-weight: 500; opacity: 0.75; }
.pill[aria-current="page"] { background: var(--pill-active-bg); border-color: var(--pill-active-bg); color: var(--pill-active-fg); }
/* Sammlungen (z. B. "else"): fremde Rezepte, optisch von den eigenen Kategorien abgesetzt */
.pill-collection { border-style: dashed; }
.pills-sub { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; padding-left: 14px; border-left: 2px dashed var(--line-strong); }
.pill-sub { min-height: 36px; padding: 0 14px; font-size: 14px; }

.result-info { margin: -16px 0 24px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(21, 21, 21, .35); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card-band {
  position: relative; height: 160px; display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--tint-ink);
}
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tint-ink); }
.card-title {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 23px;
  line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: break-word; hyphens: auto;
}
.card-preview {
  margin: 0; color: var(--muted); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin: auto 0 0; padding-top: 6px; font-size: 13px; font-weight: 600; }
.badge {
  position: absolute; top: 14px; right: 14px; background: var(--ink); color: var(--on-ink);
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}
.empty { padding: 48px 0; color: var(--muted); }

/* ---------- Rezept ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--link-hover); }

.recipe-head { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.recipe-hero {
  flex: 1 1 560px; min-width: 0; min-height: 340px; padding: 40px; border-radius: 28px;
  background: var(--tint); color: var(--tint-ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.recipe-hero { position: relative; overflow: hidden; }
.recipe-hero > * { position: relative; }
.recipe-hero.has-image { min-height: 440px; background: var(--ink); }
.recipe-hero .recipe-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.has-image .cat-label { background: var(--surface); color: var(--tint-ink); padding: 8px 14px; border-radius: 999px; }
.has-image .recipe-title-wrap {
  align-self: flex-start; max-width: 100%; background: var(--surface);
  padding: 16px 24px 20px; border-radius: 20px;
}
.has-image .recipe-title { font-size: clamp(34px, 4.5vw, 60px); }
@media (max-width: 640px) { .recipe-hero.has-image { min-height: 360px; } }
.recipe-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.recipe-hero .cat-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.recipe-title {
  margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 800;
  font-size: clamp(42px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.04em; overflow-wrap: break-word; hyphens: auto;
}
@media (max-width: 640px) { .recipe-hero { padding: 24px; min-height: 0; gap: 28px; border-radius: 22px; } }

.recipe-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.box-label { margin: 0; font-size: 13px; color: var(--muted); }
.box-value { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 34px; }
.box-grow { flex: 1; }
.box-grow p:last-child { margin-bottom: 0; }

.recipe-body { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.ingredients { flex: 1 1 340px; min-width: 0; }
.steps { flex: 1.4 1 420px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.check-item input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--check); }
.check-item .amount { font-weight: 600; min-width: 96px; white-space: nowrap; }
.check-item:has(input:checked) { background: var(--done); }
.check-item input:checked ~ .text { color: #6B6B66; text-decoration: line-through; }
.check-item input:checked ~ .amount { color: #6B6B66; }
.scaler {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: -4px 0 16px;
  padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.scaler.is-scaled { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.scaler-label { font-weight: 600; }
.scaler-form { flex-direction: column; align-items: stretch; }
.scaler-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scaler-form .select-sm { display: inline-block; width: auto; flex: 1 1 200px; max-width: 320px; }
.scaler-factor { font-size: 20px; min-width: 0; }
.scaler-control { display: inline-flex; align-items: center; gap: 4px; }
.scaler-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface);
  font: inherit; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.scaler-btn:hover { border-color: var(--ink); }
.scaler-value { min-width: 56px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.scaler-reset { min-height: 36px; padding: 0 14px; font-size: 14px; }
.scaler-hint { flex-basis: 100%; font-size: 13px; }
.ingredient-heading { margin: 16px 0 4px; font-weight: 600; }

.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step; display: flex; gap: 18px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; overflow-wrap: anywhere;
}
.step-list li::before {
  content: counter(step); flex: none; width: 36px; height: 36px; border-radius: 999px;
  background: var(--step-bg); color: var(--step-fg); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; margin-top: -6px;
}
.prose { font-size: 17px; overflow-wrap: anywhere; }

/* Handy: Zutaten / Zubereitung als Tabs (reines CSS, ohne JavaScript) */
.tabs, .tab-radio { display: none; }
@media (max-width: 720px) {
  .tab-radio {
    display: block; position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
  }
  .tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
    margin: 24px 0 8px; padding: 5px; background: var(--tab-bg); border-radius: var(--radius);
  }
  .tabs label {
    display: flex; align-items: center; justify-content: center; min-height: 44px;
    border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer;
  }
  .recipe-body { margin-top: 8px; gap: 0; }
  .recipe-body .section-head .h2 { display: none; }
  #tab-zutaten:checked ~ .tabs label[for="tab-zutaten"],
  #tab-schritte:checked ~ .tabs label[for="tab-schritte"] {
    background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 21, 21, .15);
  }
  #tab-zutaten:focus-visible ~ .tabs label[for="tab-zutaten"],
  #tab-schritte:focus-visible ~ .tabs label[for="tab-schritte"] { outline: 3px solid var(--focus); }
  #tab-zutaten:checked ~ .recipe-body .steps { display: none; }
  #tab-schritte:checked ~ .recipe-body .ingredients { display: none; }
}

/* ---------- Nährwerte ---------- */
.ampel {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius-lg);
  border: 2px solid; background: var(--surface);
}
.ampel-gruen { border-color: #2F6B2A; background: #EEF7EB; }
.ampel-gelb  { border-color: #8A4B00; background: #FDF4E4; }
.ampel-rot   { border-color: #B42318; background: #FDEDEA; }
.ampel-light { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: var(--ink); flex: none; }
.ampel-light span { width: 18px; height: 18px; border-radius: 50%; background: #3A3A38; }
.ampel-rot .ampel-light span:nth-child(1)   { background: #F04438; }
.ampel-gelb .ampel-light span:nth-child(2)  { background: #FDB022; }
.ampel-gruen .ampel-light span:nth-child(3) { background: #32D583; }
.ampel-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ampel-reasons { margin: 0; padding-left: 18px; }
.ampel-reasons li + li { margin-top: 4px; }

.nutrition-summary { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.nutrition-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: 1 1 480px; }
@media (max-width: 640px) { .nutrition-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nutrition-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.nutrition-label { display: block; font-size: 13px; color: var(--muted); }
.nutrition-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.nutrition-value small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.nutrition-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nutrition-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.nutrition-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nutrition-table tr:last-child td { border-bottom: 0; }
.nutrition-table .num { text-align: right; white-space: nowrap; }
.nutrition-table td:first-child { min-width: 200px; }
.nutrition-table.compact { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.row-ignoriert td { color: #6B6B66; }
.row-fehlt { background: #FFF8F6; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-right: 6px; }
.status-ok        { background: #DDEFD7; color: #1F4A1B; }
.status-unsicher  { background: #FCEBD0; color: #6B3A00; }
.status-klein     { background: #E9E7E0; color: #4A4A45; }
.status-fehlt     { background: #FBDDE8; color: #7A1F44; }
.status-ignoriert { background: #F1F0EC; color: #5F5F5A; }
.food-name { display: block; margin-top: 4px; }
.note { display: block; font-size: 13px; margin-top: 2px; }
.gram-input { display: inline-flex; align-items: center; gap: 6px; }
.gram-input .input { width: 84px; height: 40px; padding: 0 10px; text-align: right; }
.select-sm { height: 40px; padding: 0 10px; font-size: 14px; min-width: 220px; display: block; }
.select-sm + .select-sm { margin-top: 6px; }
.all-values summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.source-note { margin-top: 32px; font-size: 13px; max-width: 760px; }

.nutrition-box { margin-top: 32px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.nutrition-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ampel-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.ampel-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.ampel-chip.gruen { background: #DDEFD7; color: #1F4A1B; } .ampel-chip.gruen::before { background: #2F6B2A; }
.ampel-chip.gelb  { background: #FCEBD0; color: #6B3A00; } .ampel-chip.gelb::before  { background: #C27803; }
.ampel-chip.rot   { background: #FBE4E1; color: #7A1B12; } .ampel-chip.rot::before   { background: #B42318; }

/* ---------- Formular ---------- */
.form { display: flex; flex-direction: column; gap: 28px; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.field-help { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }
.input, .textarea {
  width: 100%; border-radius: var(--radius); border: 1.5px solid var(--line-strong);
  background: var(--surface); font: inherit; color: var(--ink);
}
.input::placeholder, .textarea::placeholder { color: #6B6B66; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
.input-title {
  height: 60px; padding: 0 20px; border-color: var(--ink);
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
}
.textarea { padding: 16px 20px; line-height: 1.6; resize: vertical; min-height: 220px; }
.is-invalid { border-color: #9C2C5B !important; }
.invalid-feedback { margin-top: 6px; color: #9C2C5B; font-size: 14px; font-weight: 600; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.cat-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-tile label {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px;
  border-radius: 18px; background: var(--surface); color: var(--ink); border: 2px solid var(--line);
  cursor: pointer; font-weight: 600; text-align: center;
}
.cat-tile label svg { color: var(--tint-ink); }
.cat-tile label:hover { border-color: var(--tint-ink); }
.cat-tile input:checked + label { background: var(--tint); color: var(--tint-ink); border-color: var(--tint-ink); }
.cat-tile input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.cat-tiles.is-invalid label { border-color: #9C2C5B; }

.backform-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.backform-field [class^="bf-label-"] { display: none; }
.backform-field[data-typ="rund"] .bf-label-rund,
.backform-field[data-typ="eckig"] .bf-label-eckig,
.backform-field[data-typ="kasten"] .bf-label-kasten,
.backform-field[data-typ="muffin"] .bf-label-muffin,
.backform-field[data-typ=""] .bf-label-none { display: inline; }
.backform-field[data-typ=""] .bf-a,
.backform-field[data-typ=""] .bf-b,
.backform-field[data-typ="rund"] .bf-b,
.backform-field[data-typ="kasten"] .bf-b,
.backform-field[data-typ="muffin"] .bf-b { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.toggle {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 20px;
  border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line-strong); cursor: pointer;
}
.toggle input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--check); }
.image-field {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px;
  border-radius: var(--radius); background: var(--surface); border: 1.5px dashed var(--line-strong);
}
.image-field.is-invalid { border-color: #9C2C5B; }
.image-preview { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; }
.image-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; flex: 1; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.inline-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.inline-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--check); }
.password-box { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line-strong); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 8px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 28px; color: var(--muted); font-size: 14px;
}
