/* OhneKorn.de – Stylesheet
   Regel: Text immer dunkel auf hellem Grund (Kontrast ≥ 4,5:1). Gelb und helles Grün nur als Fläche. */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-variabel.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Farben & Maße ---------- */
:root {
  --bg: #fffaf0;
  --flaeche: #ffffff;
  --flaeche-2: #f6efe2;
  --text: #1c1917;
  --text-2: #4a433b;
  --rand: #d9d0c1;
  --akzent: #b8320f;          /* Tomatenrot – auch als Linkfarbe */
  --knopf-bg: #b8320f;
  --knopf-text: #ffffff;
  --knopf2-bg: #1a6b35;
  --knopf2-text: #ffffff;
  --gelb-flaeche: #ffc83d;
  --gruen-flaeche: #d4efbf;
  --rot-flaeche: #ffd8cb;
  --ampel-gruen: #1a6b35;
  --ampel-gruen-bg: #e2f3e5;
  --ampel-gelb: #7a4f00;
  --ampel-gelb-bg: #fff0c7;
  --ampel-rot: #b03a2e;
  --ampel-rot-bg: #fde1dc;
  --fokus: #1d4ed8;
  --schatten: 0 2px 0 rgba(28, 25, 23, .9);
  --radius: 14px;
  --max: 1160px;
  --schrift-text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dunkel"] {
  --bg: #17140f;
  --flaeche: #221e18;
  --flaeche-2: #2c2720;
  --text: #f5efe6;
  --text-2: #d6ccbd;
  --rand: #4d453a;
  --akzent: #ff9a7a;
  --knopf-bg: #ff9a7a;
  --knopf-text: #1c1917;
  --knopf2-bg: #8fd19e;
  --knopf2-text: #10200f;
  --gelb-flaeche: #6b5210;
  --gruen-flaeche: #23412a;
  --rot-flaeche: #4a2419;
  --ampel-gruen: #8fd19e;
  --ampel-gruen-bg: #1d3323;
  --ampel-gelb: #f2c661;
  --ampel-gelb-bg: #3a2e10;
  --ampel-rot: #ff9f93;
  --ampel-rot-bg: #42201b;
  --fokus: #93b4ff;
  --schatten: 0 2px 0 rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--schrift-text); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--schrift-titel); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--akzent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }
code { background: var(--flaeche-2); padding: .1em .35em; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--knopf-bg); color: var(--knopf-text); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }
h1[tabindex="-1"]:focus { outline: none; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; gap: .4em; font: 700 1rem/1.2 var(--schrift-text); background: var(--knopf-bg); color: var(--knopf-text);
  border: 2px solid var(--text); border-radius: 999px; padding: .65em 1.2em; cursor: pointer; text-decoration: none; box-shadow: var(--schatten); transition: transform .12s, box-shadow .12s; }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--text); }
.knopf:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--text); }
.knopf--gross { font-size: 1.1rem; padding: .85em 1.5em; }
.knopf--klein { font-size: .9rem; padding: .4em .85em; }
.knopf--zweit { background: var(--knopf2-bg); color: var(--knopf2-text); }
.knopf--geist { background: var(--flaeche); color: var(--text); }
.knopf[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.knopf:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Kopf & Navigation ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--text); }
.kopf__innen { max-width: var(--max); margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); margin-right: auto; }
.logo__bild { width: 40px; height: 40px; flex: none; }
.logo__ei { fill: var(--flaeche); stroke: var(--text); stroke-width: 3; }
.logo__dotter { fill: #ffc83d; }
.logo__blatt { fill: #1a6b35; }
.logo__text { font-family: var(--schrift-titel); font-weight: 800; font-size: 1.05rem; line-height: 1.1; max-width: 13em; }
.menue-knopf { display: inline-flex; align-items: center; gap: .5rem; background: var(--flaeche); color: var(--text); border: 2px solid var(--text); border-radius: 999px; padding: .4rem .8rem; font: 700 .95rem var(--schrift-text); cursor: pointer; }
.menue-knopf__striche, .menue-knopf__striche::before, .menue-knopf__striche::after { display: block; width: 18px; height: 2px; background: var(--text); position: relative; content: ""; }
.menue-knopf__striche::before { position: absolute; top: -6px; }
.menue-knopf__striche::after { position: absolute; top: 6px; }
.nav { width: 100%; display: none; order: 3; }
.nav.offen { display: block; }
.nav__liste { list-style: none; margin: 0; padding: .5rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.nav__liste a { display: block; padding: .5rem .75rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; border: 2px solid transparent; }
.nav__liste a:hover { border-color: var(--text); }
.nav__liste a[aria-current="page"] { background: var(--gelb-flaeche); border-color: var(--text); }
.kopf__werkzeuge { display: flex; gap: .4rem; }
@media (min-width: 1240px) {   /* darunter passt das Menü nicht in eine Zeile → Menü-Knopf */
  .menue-knopf { display: none; }
  .nav { display: block; width: auto; order: 0; flex: 1 1 0; min-width: 0; }   /* Menü bricht in sich um, Tour/◐ bleiben rechts */
  .nav__liste { display: flex; flex-wrap: wrap; padding: 0; gap: 0; }
  .nav__liste a { padding: .35rem .4rem; font-size: .9rem; }
  .logo { margin-right: 0; }
  .kopf__werkzeuge { margin-left: auto; }
}

/* ---------- Bereiche ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem 4rem; outline: none; }
.bereich { animation: einblenden .35s ease-out; }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bereich__titel { margin-top: .5rem; }
.bereich__frech, .held__frech { font-family: var(--schrift-titel); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--akzent); margin-bottom: 1.5rem; }
.abschnitt-titel { margin-top: 2.5rem; position: relative; display: inline-block; }
.abschnitt-titel::after { content: ""; display: block; height: 6px; margin-top: .2rem; border-radius: 3px; background: var(--gelb-flaeche); }
.untertitel { color: var(--text-2); }
.hinweis-box { background: var(--flaeche-2); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.2rem; }
.ehrlich { margin-top: 2rem; background: var(--gruen-flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.ehrlich h3 { margin-bottom: .35em; }
.pfeil-link { font-weight: 700; }
.pfeil-link::after { content: " →"; }
.pfeil-link--zurueck::after { content: ""; }
.pfeil-link--zurueck::before { content: "← "; }

/* ---------- Held ---------- */
.held { display: grid; gap: 1.5rem; align-items: center; padding: 1rem 0 1.5rem; }
.held__titel { font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: 1; margin-bottom: .3em; }
.held__satz { font-size: 1.15rem; max-width: 34em; }
.held__knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.held__bild { width: 100%; max-width: 360px; margin: 0 auto; }
.held__bild svg { display: block; width: 100%; height: auto; }
.sticker { display: inline-block; font-family: var(--schrift-titel); font-weight: 800; padding: .25rem .8rem; border: 2px solid var(--text); border-radius: 999px; transform: rotate(-3deg); margin-bottom: 1rem; }
.sticker--gelb { background: var(--gelb-flaeche); color: var(--text); }
.teller__rand { fill: var(--flaeche); stroke: var(--text); stroke-width: 4; }
.teller__mitte { fill: var(--flaeche-2); stroke: var(--rand); stroke-width: 2; }
.teller__ei { fill: #ffffff; stroke: var(--text); stroke-width: 3; }
.teller__dotter { fill: #ffc83d; }
.teller__fisch { fill: #8fb8d8; stroke: var(--text); stroke-width: 3; }
.teller__auge { fill: var(--text); }
.teller__blatt { fill: #4f9a3a; stroke: var(--text); stroke-width: 2.5; }
.teller__blatt--2 { fill: #2f7d3a; }
.teller__brot rect { fill: #e8b56b; stroke: var(--text); stroke-width: 3; }
.teller__brot line { stroke: #b8320f; stroke-width: 9; stroke-linecap: round; }
.teller { animation: wackeln 6s ease-in-out infinite; }
@keyframes wackeln { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@media (min-width: 820px) { .held { grid-template-columns: 1.4fr 1fr; } }

.zahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1rem 0; }
.zahl { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: .9rem; box-shadow: var(--schatten); }
.zahl__wert { display: block; font-family: var(--schrift-titel); font-size: 2rem; font-weight: 800; line-height: 1; }
.zahl__text { color: var(--text-2); font-size: .95rem; }
@media (min-width: 720px) { .zahlen { grid-template-columns: repeat(4, 1fr); } }

.regeln { list-style: none; counter-reset: regel; padding: 0; display: grid; gap: 1rem; margin: 1rem 0 0; }
.regeln li { counter-increment: regel; background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1rem 1rem 4rem; position: relative; box-shadow: var(--schatten); }
.regeln li::before { content: counter(regel); position: absolute; left: 1rem; top: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gelb-flaeche); border: 2px solid var(--text); display: grid; place-items: center; font: 800 1.1rem var(--schrift-titel); color: var(--text); }
.regeln h3 { margin-bottom: .25em; }
.regeln p { margin: 0; }
@media (min-width: 720px) { .regeln { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .regeln { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Karten, Chips, Badges ---------- */
.karten { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .karten:not(.karten--zwei) { grid-template-columns: repeat(3, 1fr); } }
.karte { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--schatten); }
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }
details.karte > summary { cursor: pointer; list-style: none; }
details.karte > summary::-webkit-details-marker { display: none; }
details.karte > summary h3 { display: inline; }
details.karte > summary::after { content: "Mehr lesen ▾"; display: block; margin-top: .5rem; font-weight: 700; color: var(--akzent); font-size: .95rem; }
details.karte[open] > summary::after { content: "Weniger ▴"; }
.karte__urteil { font-weight: 700; margin: .4rem 0 .2rem; }

.badge { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; font-size: .85rem; padding: .15em .6em; border-radius: 999px; border: 2px solid currentColor; white-space: nowrap; }
.badge--gruen { color: var(--ampel-gruen); background: var(--ampel-gruen-bg); }
.badge--gelb { color: var(--ampel-gelb); background: var(--ampel-gelb-bg); }
.badge--rot { color: var(--ampel-rot); background: var(--ampel-rot-bg); }
.badge--neutral { color: var(--text); background: var(--flaeche-2); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }
.chip { display: inline-flex; align-items: center; gap: .35em; background: var(--flaeche); border: 2px solid var(--rand); border-radius: 999px; padding: .25em .7em; font-size: .95rem; color: var(--text); text-decoration: none; }
button.chip { cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--text); }
.legende { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin: .5rem 0 1rem; font-size: .95rem; color: var(--text-2); }
.quellen-zeile { font-size: .9rem; color: var(--text-2); margin-top: .6rem; }
.qlink { font-size: .8rem; font-weight: 700; text-decoration: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 0 .5em; margin-right: .2em; white-space: nowrap; }
.qlink--gruen { color: var(--ampel-gruen); background: var(--ampel-gruen-bg); }
.qlink--gelb { color: var(--ampel-gelb); background: var(--ampel-gelb-bg); }
.qlink--rot { color: var(--ampel-rot); background: var(--ampel-rot-bg); }
.qlink--neutral { color: var(--text); background: var(--flaeche-2); }
.qlink:hover, .qlink:focus-visible { text-decoration: underline; }

/* ---------- Lücken ---------- */
.luecken { display: grid; gap: .8rem; margin-top: 1rem; }
@media (min-width: 720px) { .luecken { grid-template-columns: repeat(2, 1fr); } }
.luecke { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: .9rem 1rem; }
.luecke__status { grid-row: span 3; align-self: start; }
.luecke__name { font-weight: 700; }
.luecke__zahlen { color: var(--text-2); font-size: .95rem; }

/* ---------- Pyramide ---------- */
.pyramide__steuerung { display: grid; gap: .8rem; max-width: 640px; }
.pyramide__steuerung input[type="range"] { width: 100%; accent-color: var(--akzent); }
.pyramide__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.pyramide__name { font-family: var(--schrift-titel); font-weight: 750; font-size: 1.35rem; margin: 1rem 0 .3rem; }
.pyramide__flaeche { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .pyramide__flaeche { grid-template-columns: 1.4fr 1fr; } }
.pyramide__grafik { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fffdf8; border: 2px solid var(--text); border-radius: var(--radius); padding: 14px 10px; }
.ebene { border: 2px solid #1c1917; border-radius: 10px; padding: .55rem .4rem; min-height: 2.9rem; max-width: 100%; font: 700 1rem/1.2 var(--schrift-text); color: #1c1917; cursor: pointer; transition: transform .15s; }
.ebene:hover { transform: scale(1.02); }
.ebene--aktiv { box-shadow: 0 0 0 3px #1c1917; }
.ebene--weg { text-decoration: line-through; text-decoration-color: #b03a2e; text-decoration-thickness: 3px; }
@media (max-width: 600px) { .ebene { font-size: .88rem; } }
.pyramide__info { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.1rem; min-height: 8rem; }
.pyramide__info h3 { margin-bottom: .3em; }

/* ---------- Filter ---------- */
.filter { display: grid; gap: .8rem; background: var(--flaeche-2); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
@media (min-width: 720px) { .filter { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filter { grid-template-columns: repeat(4, 1fr); } .filter--einzeln { grid-template-columns: 1fr; } }
.filter__feld { display: grid; gap: .25rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.filter__feld--breit { grid-column: 1 / -1; }
.filter__feld--check { display: flex; align-items: center; gap: .5rem; }
.filter__feld label, .filter__feld legend { font-weight: 700; font-size: .95rem; padding: 0; }
input[type="search"], input[type="number"], input[type="text"], input[type="email"], select { font: inherit; color: var(--text); background: var(--flaeche); border: 2px solid var(--text); border-radius: 10px; padding: .55rem .7rem; width: 100%; min-width: 0; }
input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--knopf2-bg); }
.segment { display: flex; flex-wrap: wrap; gap: .35rem; }
.segment .knopf { box-shadow: none; }
.treffer { color: var(--text-2); font-weight: 700; }

/* ---------- Kacheln (Ampel) ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.kachel { display: grid; gap: .35rem; align-content: start; text-align: left; background: var(--flaeche); color: var(--text); border: 2px solid var(--text); border-radius: var(--radius); padding: .8rem; cursor: pointer; font: inherit; box-shadow: var(--schatten); transition: transform .12s; }
.kachel:hover { transform: translateY(-3px) rotate(-.5deg); }
.kachel__emoji { font-size: 1.8rem; line-height: 1; }
.kachel__name { font-weight: 700; line-height: 1.25; }
.kachel .badge { justify-self: start; }
.kachel--rot .kachel__name { text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- Dialog ---------- */
.dialog { width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 2px solid var(--text); border-radius: var(--radius); padding: 0; background: var(--bg); color: var(--text); box-shadow: 0 6px 0 var(--text); }
.dialog::backdrop { background: rgba(28, 25, 23, .55); }
.dialog__kopf { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1rem 1.2rem .6rem; background: var(--bg); border-bottom: 2px solid var(--rand); }
.dialog__kopf h2 { margin: 0; font-size: 1.5rem; }
.dialog__inhalt { padding: 1rem 1.2rem 1.4rem; }

/* ---------- Nährwert-Balken ---------- */
.nw-tabelle { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .95rem; }
.nw-tabelle th, .nw-tabelle td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.nw-tabelle td.zahl-spalte { text-align: right; white-space: nowrap; }
.balken { position: relative; height: .7rem; background: var(--flaeche-2); border: 1.5px solid var(--text); border-radius: 999px; overflow: hidden; min-width: 70px; }
.balken__fuellung { position: absolute; inset: 0 auto 0 0; background: var(--ampel-gelb); }
.balken__fuellung--voll { background: var(--ampel-gruen); }
.highlights { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.warnung { color: var(--ampel-rot); font-weight: 700; }

/* ---------- Pflanzen ---------- */
.pflanze { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--schatten); margin: 1rem 0; }
.pflanze__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.pflanze__kopf h2 { margin: 0; }
.pflanze dl { display: grid; gap: .3rem .9rem; margin: 0; }
@media (min-width: 720px) { .pflanze dl { grid-template-columns: 11rem 1fr; } }
.pflanze dt { font-weight: 700; }
.pflanze dd { margin: 0 0 .4rem; }
.pflanzen-gruppe h3 { margin-top: 1.2rem; }

/* ---------- Rezepte ---------- */
.rezeptkarten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rezeptkarte { display: grid; gap: .45rem; align-content: start; background: var(--flaeche); color: var(--text); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem; text-decoration: none; box-shadow: var(--schatten); transition: transform .12s; }
.rezeptkarte:hover { transform: translateY(-3px) rotate(.4deg); }
.rezeptkarte__kategorie { font-size: .85rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.rezeptkarte h2 { font-size: 1.25rem; margin: 0; }
.rezeptkarte__frech { color: var(--akzent); font-weight: 700; margin: 0; }
.rezeptkarte__meta { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; }

.rezept__kopf { border-bottom: 2px solid var(--text); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.rezept__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.rezept__raster { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .rezept__raster { grid-template-columns: 1fr 1.4fr; } }
.portionen { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; }
.portionen__zahl { font: 800 1.6rem var(--schrift-titel); min-width: 2ch; text-align: center; }
.zutaten { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rand); }
.zutaten li { display: flex; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--rand); }
.zutaten__menge { font-weight: 700; min-width: 5.5rem; text-align: right; }
.zutaten__notiz { color: var(--text-2); font-size: .92rem; }
.schritte { padding-left: 1.4rem; }
.schritte li { margin-bottom: .7rem; padding-left: .3rem; }
.schritte li::marker { font: 800 1.1rem var(--schrift-titel); color: var(--akzent); }
.kasten { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.1rem; margin-top: 1rem; }
.kasten h3 { margin-bottom: .4em; }
.planen { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.planen label { display: grid; gap: .2rem; font-weight: 700; font-size: .9rem; }
.planen select { width: auto; }
.meldung { font-weight: 700; color: var(--ampel-gruen); }

/* ---------- Wochenplan ---------- */
.plan-steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.plan-steuerung label { font-weight: 700; }
.plan-steuerung select { width: auto; }
.plan-raster { display: grid; gap: .8rem; }
@media (min-width: 720px) { .plan-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plan-raster { grid-template-columns: repeat(4, 1fr); } }
.plan-tag { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: .8rem; }
.plan-tag h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.plan-slot { display: grid; gap: .2rem; margin-bottom: .5rem; }
.plan-slot label { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.plan-slot select { font-size: .95rem; padding: .4rem .5rem; }
.einkauf { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.2rem; }
.einkauf__gruppe h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.einkauf__liste { list-style: none; padding: 0; margin: 0; }
.einkauf__liste li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--rand); }
.einkauf__liste label { flex: 1; cursor: pointer; }
.einkauf__liste .erledigt { text-decoration: line-through; color: var(--text-2); }
.einkauf__menge { font-weight: 700; white-space: nowrap; }
.einkauf__summe { margin-top: 1rem; font-weight: 700; }
.ziele { margin: 1rem 0 .4rem; background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: .9rem 1rem; }
.ziele__titel { font-size: 1.15rem; margin: 0; }
.ziele__zusatz { font-weight: 400; font-size: .95rem; color: var(--text-2); }
.ziele__felder { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.ziele__felder .filter__feld { flex: 1 1 12rem; }
.ziele__felder .filter__feld--breit { flex: 2 1 20rem; }
.faktor-schalter { display: flex; gap: .5rem; align-items: center; margin: .4rem 0; font-weight: 700; }
.plan-druck { display: none; }
.hinweis-box--sonne { margin: 1rem 0; }
.rechtstext { max-width: 46rem; }
.rechtstext h2 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; }
.rechtstext address { font-style: normal; background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: .8rem 1rem; display: inline-block; }
.kontakt { display: grid; gap: .9rem; max-width: 36rem; background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.2rem; }
.kontakt textarea { font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--text); border-radius: 10px; padding: .55rem .7rem; width: 100%; resize: vertical; }
.kontakt__falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meldung--fehler { color: var(--ampel-rot); font-weight: 700; }
.meldung--ok { color: var(--ampel-gruen); font-weight: 700; }
.fuss__links a { font-weight: 700; }
/* Statische Rezeptseiten (rezepte/*.html) */
.statisch .kopf__innen { justify-content: space-between; }
.statisch .logo { margin-right: 0; }
.statisch__app { margin: 1rem 0 1.5rem; }
.statisch__gruppe ul { columns: 2 18rem; padding-left: 1.2rem; }
.statisch__gruppe li { margin: .25rem 0; break-inside: avoid; }
.teilen__qr { display: flex; justify-content: center; margin: .5rem 0 1rem; }
.teilen__qr svg { width: min(260px, 70vw); height: auto; background: #fff; border: 2px solid var(--text); border-radius: 10px; }
.teilen__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.offline-hinweis { margin: 0; padding: .5rem 1rem; text-align: center; font-weight: 700; background: var(--gelb-flaeche); color: var(--text); border-bottom: 2px solid var(--text); }
.mehr-zeile { text-align: center; margin-top: 1.5rem; }
.einkauf__zusatz { font-weight: 400; font-size: .9rem; color: var(--text-2); }
.einkauf__gruppe--vorrat .einkauf__liste { font-size: .95rem; }
.einkauf__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.plan-generator { background: var(--gelb-flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.plan-generator__knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.plan-generator .untertitel { color: var(--text); margin: 0; }
.plan-generator .meldung { margin: .4rem 0 0; color: var(--text); }
.bilanz { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem 1.2rem; }
.bilanz .nw-tabelle td:last-child { width: 1%; white-space: nowrap; }
.bilanz__regeln { list-style: none; padding: 0; display: grid; gap: .35rem; margin: 1rem 0; }
@media (max-width: 600px) {
  .bilanz { padding: .8rem; }
  .bilanz .balken-spalte { display: none; }
  .bilanz .nw-tabelle th, .bilanz .nw-tabelle td { padding: .35rem .2rem; font-size: .9rem; }
}

/* ---------- Saison ---------- */
.monate { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; max-width: 720px; }
@media (min-width: 720px) { .monate { grid-template-columns: repeat(12, 1fr); } }
.monate .knopf { justify-content: center; padding: .45em .2em; box-shadow: none; }
.saison-gruppe h2 { font-size: 1.3rem; margin-top: 1.5rem; }
.tabelle-scroll { overflow-x: auto; }
.saison-tabelle { border-collapse: collapse; font-size: .85rem; min-width: 640px; background: var(--flaeche); }
.saison-tabelle th, .saison-tabelle td { border: 1px solid var(--rand); padding: .25rem .35rem; text-align: center; }
.saison-tabelle th:first-child { text-align: left; }
.zelle-f { background: var(--ampel-gruen-bg); color: var(--ampel-gruen); font-weight: 700; }
.zelle-l { background: var(--ampel-gelb-bg); color: var(--ampel-gelb); font-weight: 700; }
.aufklapper { margin-top: 2rem; }
.aufklapper summary { cursor: pointer; font-weight: 700; }

/* ---------- Öle ---------- */
.fabrik { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem; }
.fabrik__band { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; counter-reset: schritt; }
@media (min-width: 720px) { .fabrik__band { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .fabrik__band { grid-template-columns: repeat(8, 1fr); } }
.fabrik__band li { counter-increment: schritt; border: 2px solid var(--rand); border-radius: 12px; padding: .5rem; font-size: .9rem; font-weight: 700; background: var(--flaeche-2); transition: background .3s, border-color .3s, transform .3s; }
.fabrik__band li::before { content: counter(schritt); display: block; font: 800 1.3rem var(--schrift-titel); color: var(--text-2); }
.fabrik__band li.aktiv { background: var(--gelb-flaeche); border-color: var(--text); transform: scale(1.05); }
.fabrik__band li.erledigt { border-color: var(--text); }
.fabrik__steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.fabrik__text { margin: 0; flex: 1; min-width: 14rem; }
.fett-ampel { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 900px) { .fett-ampel { grid-template-columns: repeat(3, 1fr); } }
.fett-gruppe { border: 2px solid var(--text); border-radius: var(--radius); padding: 1rem; background: var(--flaeche); }
.fett-gruppe--braten { background: var(--ampel-gruen-bg); }
.fett-gruppe--kalt { background: var(--ampel-gelb-bg); }
.fett-gruppe--meiden { background: var(--ampel-rot-bg); }
.fett-gruppe h3 { margin-bottom: .6rem; }
.fett-gruppe ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.fett-gruppe button { width: 100%; text-align: left; font: 700 1rem var(--schrift-text); color: var(--text); background: var(--flaeche); border: 2px solid var(--text); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; }
.fett-gruppe button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.oel-detail { margin-top: 1rem; }
.fettbalken { display: flex; height: 2.2rem; border: 2px solid var(--text); border-radius: 10px; overflow: hidden; margin: .6rem 0; }
.fettbalken span { display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: #1c1917; overflow: hidden; white-space: nowrap; }
.fb-ges { background: #f2b880; }
.fb-einf { background: #b9dd8a; }
.fb-mehrf { background: #9cc7ef; }
.fb-rest { background: #e6e0d6; }

/* ---------- Spiel & Alternativen ---------- */
.spiel { background: var(--flaeche); border: 2px solid var(--text); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--schatten); }
.spiel__produkt { font-family: var(--schrift-titel); font-size: 1.4rem; font-weight: 800; margin: 0 0 .3rem; }
.etikett { background: #ffffff; color: #1c1917; border: 2px dashed #1c1917; border-radius: 10px; padding: .8rem; margin: .8rem 0; }
.etikett__titel { font-weight: 700; margin: 0 0 .5rem; }
.zutat-chip { font: inherit; font-size: .95rem; color: #1c1917; background: #ffffff; border: 2px solid #8a8174; border-radius: 999px; padding: .25em .7em; margin: .2rem; cursor: pointer; }
.zutat-chip[aria-pressed="true"] { background: #ffc83d; border-color: #1c1917; }
.zutat-chip.richtig { background: #e2f3e5; border-color: #1a6b35; }
.zutat-chip.falsch { background: #fde1dc; border-color: #b03a2e; }
.zutat-chip.verpasst { background: #fff0c7; border-color: #7a4f00; border-style: dashed; }
.spiel__auswertung { font-weight: 700; }
.spiel__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.alternativen { list-style: none; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 720px) { .alternativen { grid-template-columns: repeat(2, 1fr); } }
.alternativen li { display: flex; gap: .6rem; align-items: start; background: var(--flaeche); border: 2px solid var(--rand); border-radius: 12px; padding: .6rem .8rem; }

/* ---------- Quellen ---------- */
.quellen-gruppe h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.quellen-gruppe ol { padding-left: 0; list-style: none; }
.quellen-gruppe li { padding: .35rem .5rem; border-radius: 8px; margin-bottom: .2rem; word-break: break-word; }
.quellen-gruppe li:target, .quellen-gruppe li.markiert { background: var(--gelb-flaeche); outline: 2px solid var(--text); }
.quellen-id { margin-right: .5rem; font-size: .8rem; }
.legende__erklaerung { flex-basis: 100%; margin: .2rem 0 0; }

/* ---------- Tour ---------- */
.tour { position: fixed; z-index: 80; left: 1rem; right: 1rem; bottom: 1rem; max-width: 460px; margin-left: auto; background: var(--gelb-flaeche); color: var(--text); border: 3px solid var(--text); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: 0 6px 0 var(--text); animation: reinhuepfen .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes reinhuepfen { from { transform: translateY(30px) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.tour__schritt { font-weight: 700; font-size: .9rem; margin: 0 0 .2rem; }
.tour__titel { font-size: 1.35rem; margin-bottom: .3rem; }
.tour__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Fuß ---------- */
.fuss { border-top: 2px solid var(--text); background: var(--flaeche-2); }
.fuss__innen { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem; font-size: .95rem; color: var(--text-2); }
.fuss__titel { font-family: var(--schrift-titel); font-weight: 800; color: var(--text); font-size: 1.2rem; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Druck: nur Einkaufsliste ---------- */
@media print {
  body { background: #fff; color: #000; }
  .kopf, .fuss, .tour, .skip, .nicht-drucken, .bereich[hidden] { display: none !important; }
  body.drucke-rezept .bereich[data-route="rezept"] > p:first-child, body.drucke-rezept .faktor-schalter input, body.drucke-rezept .portionen button { display: none !important; }
  body.drucke-rezept .rezept__raster { display: block; }
  body.drucke-rezept .kasten { break-inside: avoid; border: 1px solid #000; }
  body.drucke-rezept .highlights .badge, body.drucke-rezept .rezept__meta .badge { border: 1px solid #000; background: #fff; color: #000; }
  body.drucke-liste .bereich[data-route="wochenplan"] > *:not(#einkaufsliste):not(#h-einkauf) { display: none !important; }
  body.drucke-plan .bereich[data-route="wochenplan"] > *:not(#plan-druck) { display: none !important; }
  body.drucke-plan .plan-druck { display: block; }
  .plan-druck__tabelle { width: 100%; border-collapse: collapse; font-size: 11pt; }
  .plan-druck__tabelle th, .plan-druck__tabelle td { border: 1px solid #000; padding: 6px; text-align: left; vertical-align: top; }
  .plan-druck__tabelle small { color: #000; }
  .einkauf { border: 0; padding: 0; }
  .einkauf__knoepfe { display: none; }
  a { color: #000; }
}
