/* Kochen – Hell = Küchentisch, Dunkel = Abendessen. Keine Bewegung. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #FBF6EE; --card: #FFFDF9; --soft: #F4EADB; --ink: #2B2420; --muted: #6E6158; --accent: #B8402A; --accent-soft: #F8DED3; --herb: #5B7A4C; --herb-soft: #E3EBD9; --ring: #E9DDCB;
  color-scheme: light;
  --display: "Fraunces", Georgia, serif; --text: "Figtree", system-ui, sans-serif; --fs: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #221A15; --card: #2B221C; --soft: #352A22; --ink: #F3E7D7; --muted: #C2B3A2; --accent: #F2915F; --accent-soft: #4A3022; --herb: #B9CB8C; --herb-soft: #33392A; --ring: #43362C; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #221A15; --card: #2B221C; --soft: #352A22; --ink: #F3E7D7; --muted: #C2B3A2; --accent: #F2915F; --accent-soft: #4A3022; --herb: #B9CB8C; --herb-soft: #33392A; --ring: #43362C; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html.koch { --fs: 23px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--fs); line-height: 1.6; -webkit-text-size-adjust: 100%; }
.wrap { max-width: 940px; margin: 0 auto; padding-inline: 18px; padding-block: max(18px, env(safe-area-inset-top)) 72px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.nw { white-space: nowrap; }

/* Kopf */
.leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.kopf { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; flex: none; }
.logo svg { width: 24px; height: 24px; }
.kopf .name { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.5rem; font-weight: 650; line-height: 1.1; }
.thema { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.thema svg { width: 21px; height: 21px; }

/* Startseite */
.gruss { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(1.9rem, 6vw, 2.7rem); font-weight: 600; line-height: 1.1; margin: 0 0 14px; }
.suche input { font: inherit; width: 100%; padding: 14px 20px; border-radius: 999px; border: 2px solid var(--ring); background: var(--card); color: var(--ink); }
.suche input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.chip { font: inherit; font-size: .9rem; font-weight: 500; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--soft); color: var(--ink); cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.chips.gaenge { margin-bottom: 10px; }
.chips.tags { margin-top: 0; gap: 6px; }
.chips.tags .chip { font-size: .82rem; padding: 6px 13px; min-height: 36px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ring); }
.chips.tags .chip[aria-pressed="true"] { background: var(--herb); color: var(--bg); box-shadow: none; }
.treffer { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.karten a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 var(--ring); min-height: 92px; }
.karten a:hover { background: var(--soft); }
.mono { width: 68px; height: 68px; border-radius: 16px; flex: none; display: grid; place-items: center; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 2rem; font-weight: 650; object-fit: cover; }
.m0 { background: var(--accent-soft); color: var(--accent); } .m1 { background: var(--herb-soft); color: var(--herb); }
.kt { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.12rem; line-height: 1.25; display: block; }
.kk { font-size: .85rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.leer { color: var(--muted); }

/* Rezeptseite */
.zurueck { display: inline-flex; gap: 6px; align-items: center; font-size: .95rem; font-weight: 500; text-decoration: none; margin-bottom: 14px; }
.held { display: block; width: 100%; aspect-ratio: 16 / 7; max-height: min(38vh, 320px); object-fit: cover; border-radius: 24px; margin-bottom: 20px; background: var(--soft); }
h1 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: calc(var(--fs) * 2); font-weight: 650; line-height: 1.08; margin: 0 0 12px; text-wrap: balance; }
.beschr { font-family: var(--display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.12em; color: var(--muted); margin: 0 0 16px; max-width: 60ch; }
.beschr p { margin: 0 0 .5em; }
.pillen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pillen li { display: inline-flex; gap: 7px; align-items: center; background: var(--soft); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }
.pillen svg { width: 17px; height: 17px; flex: none; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.btn { font: inherit; font-size: .95rem; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 20px; min-height: 48px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; background: var(--accent); color: var(--bg); }
.btn.zwei { background: var(--soft); color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--herb); color: var(--bg); }
.btn svg { width: 18px; height: 18px; }
.hinweis { font-size: .85rem; color: var(--muted); margin: 4px 0 0; min-height: 1.3em; }
.rezept { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 36px; margin-top: 10px; }
@media (min-width: 860px) { .rezept { grid-template-columns: 20rem minmax(0, 1fr); } .zut { position: sticky; top: 14px; align-self: start; } }
h2 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: calc(var(--fs) * 1.45); font-weight: 650; margin: 22px 0 10px; }
.zut { background: var(--card); border-radius: 24px; padding: 4px 20px 14px; box-shadow: 0 1px 0 var(--ring); align-self: start; }
.zut h3 { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--herb); margin: 14px 0 2px; }
.zl { list-style: none; margin: 0; padding: 0; }
.zl label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; min-height: 44px; cursor: pointer; }
.zl input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ring); background: var(--bg); flex: none; margin: 2px 0 0; cursor: pointer; display: grid; place-items: center; }
.zl input:checked { background: var(--herb); border-color: var(--herb); }
.zl input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.menge { font-family: var(--display); font-variation-settings: "SOFT" 100; font-style: italic; font-weight: 600; color: var(--accent); white-space: nowrap; }
.zl input:checked + span { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.zuruecksetzen { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px 0 0; cursor: pointer; }
ol.schritte { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 6px; }
ol.schritte li { counter-increment: s; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 8px; border-radius: 18px; cursor: pointer; max-width: 66ch; }
ol.schritte li::before { content: counter(s); font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 1.9em; line-height: 1; color: var(--accent); text-align: right; }
ol.schritte li:hover { background: var(--soft); }
ol.schritte li.aktiv { background: var(--accent-soft); }
.tipp { background: var(--herb-soft); border-radius: 20px; padding: 14px 18px; margin-top: 18px; max-width: 66ch; }
.tipp b { font-family: var(--display); font-variation-settings: "SOFT" 100; color: var(--herb); display: block; }
.tipp p { margin: .3em 0; }
.frei { max-width: 66ch; margin-top: 10px; }
.frei p { margin: 0 0 1em; }
figure { margin: 18px 0; }
figure img { border-radius: 18px; display: block; }
.quelle { font-size: .85rem; color: var(--muted); margin-top: 18px; overflow-wrap: anywhere; }
html.koch .ausblenden { display: none; }
html.koch ol.schritte li { padding-block: 16px; }
@media print { .aktionen, .hinweis, .zurueck, .zuruecksetzen, .thema, .suche, .chips { display: none; } .held { max-height: 200px; } }
