/* Gabel & Gerber · Öffentliche Rezeptseite und Übersicht (/rezept/<slug>, /rezepte), gerendert im Worker (src/rezept-seite.js)
   Eigene kleine Datei, nicht Teil von styles.css. Look wie die App: Rezeptfarbe, Pastelle, Maskottchen, schwarze Pillen. Canvas „Rezeptseite öffentlich“. */
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage.woff2) format("woff2-variations"), url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
:root {
  --ink: #0e0e0e; --ink-2: #5e5a55; --weiss: #fff; --surface-2: #f5f5f3; --hairline: #e8e6e2;
  --ember: #ff3d00; --gruen: #00875a; --himmel: #ddf1ff; --butter: #fff3c2; --pfirsich: #ffe4d1;
  --shadow: 0 1px 2px rgba(14,14,14,.04), 0 8px 24px rgba(14,14,14,.06);
  --shadow-hoch: 0 16px 40px rgba(14,14,14,.14);
  --max: 1120px; --feder: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--weiss); color: var(--ink); font: 400 16px/1.5 "Bricolage", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
[hidden] { display: none !important; }
.ic { display: inline-block; flex: none; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.rs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 50; }
.rs-skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* Kopf: ruhig, Login klein */
.rs-kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 max(20px, calc((100vw - var(--max)) / 2)); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.rs-kopf.zu { border-color: var(--hairline); }
.rs-logo img { height: 28px; width: auto; }
.rs-nav { display: flex; gap: 20px; font-size: 15px; }
.rs-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.rs-nav a:hover { color: var(--ink); }

.rs { max-width: var(--max); margin: 0 auto; padding: 0 20px 40px; }
.rs-krumen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin: 14px 0 10px; }
.rs-krumen a { text-decoration: none; opacity: .75; }
.rs-krumen a:hover { opacity: 1; text-decoration: underline; }
.rs-krumen [aria-current] { font-weight: 600; }
.rs-sep { display: flex; opacity: .45; font-size: 12px; }
.rs-intro { margin: 0 0 16px; font-size: 18px; opacity: .85; max-width: 52ch; }

/* Knöpfe */
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 99px; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s var(--feder), background .15s; }
.rs-btn:active { transform: scale(.97); }
.rs-btn-p { background: var(--ink); color: #fff; }
.rs-btn-p:hover { background: #2a2a2a; }
.rs-btn-w { background: #fff; color: var(--ink); }
.rs-btn-w:hover { background: #f1efec; }
.rs-btn.klein { min-height: 40px; padding: 0 18px; font-size: 15px; }
.rs-ib { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; font-size: 20px; text-decoration: none; }
.rs-ib:hover { background: #f1efec; }
.rs-ib.klein { width: 36px; height: 36px; font-size: 16px; }
.rs-link { font-weight: 600; font-size: 15px; }

/* Maskottchen und Blasen. Bewegung per CSS, die Gabel im Rezept Kopf tauscht rezept.js gegen die Lottie „winkt“. */
.rs-fig { width: auto; height: 96px; max-width: none; flex: none; transform-origin: 50% 100%; }
.rs-blase { position: relative; max-width: 230px; padding: 10px 14px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(14,14,14,.12); font-size: 15px; font-weight: 600; line-height: 1.3; animation: rs-pop .5s var(--feder) .6s both; }
.rs-blase small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.rs-blase::after { content: ""; position: absolute; left: -6px; bottom: 16px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
@keyframes rs-huepf { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px) rotate(-3deg); } 55% { transform: translateY(0) scaleY(.94); } 65% { transform: translateY(0); } }
@keyframes rs-wackel { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(5deg); } }
@keyframes rs-peek { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes rs-pop { from { opacity: 0; transform: scale(.8) translateY(8px); } to { opacity: 1; transform: none; } }
.rs-huepf { animation: rs-huepf 2.4s var(--feder) infinite; }
.rs-wackel { animation: rs-wackel 3.2s ease-in-out infinite; }
.rs-peek { animation: rs-peek 3.6s ease-in-out infinite; }
.rs-fig-app { animation: rs-wackel 3.6s ease-in-out infinite; }
.rs-lf { flex: none; display: block; }
.rs-lf svg { display: block; }

/* Rezept Kopf in Rezeptfarbe: Foto oben, darunter Titel. Desktop: Text links, Foto rechts. */
.rs-hero { background: var(--c); color: var(--ci); }
.rs-hero-in { max-width: var(--max); margin: 0 auto; padding: 0 20px 32px; display: grid; gap: 18px; }
.rs-foto { position: relative; margin: 0 -20px; aspect-ratio: 4 / 3; }
.rs-foto > img, .rs-foto > .rs-typ { width: 100%; height: 100%; object-fit: cover; }
.rs-typ { display: grid; place-items: center; padding: 24px; background: rgba(255,255,255,.18); font-size: clamp(28px, 7vw, 48px); font-weight: 800; text-align: center; letter-spacing: -.02em; }
.rs-foto-crew { position: absolute; left: 8px; bottom: -22px; display: flex; align-items: flex-end; gap: 2px; z-index: 2; }
.rs-foto-crew .rs-fig, .rs-foto-crew .rs-lf { height: 130px; width: 130px; object-fit: contain; }
.rs-foto-crew .rs-blase { margin-left: -14px; }
.rs-foto-crew .rs-blase { margin-bottom: 64px; font-size: 14px; max-width: 210px; }
.rs-titel { padding-top: 18px; }
.rs-titel h1 { font-size: clamp(32px, 8vw, 56px); font-weight: 800; text-wrap: balance; margin-bottom: 10px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.rs-sterne .ic { color: #e0a100; }
.rs-sterne span { color: var(--ink-2); font-weight: 400; }
.rs-herkunft { display: flex; align-items: center; gap: 6px; margin: 12px 0 18px; font-size: 14px; opacity: .85; }
.rs-akt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* App Karte (Topf, Brokkoli): Pastell, Figur bewegt sich leicht */
.rs-app { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; padding: 20px; border-radius: 24px; background: var(--bg, var(--butter)); }
.rs-app .rs-fig { height: 88px; }
.rs-app-t { flex: 1 1 240px; min-width: 0; }
.rs-app-t p { margin: 0; font-size: 15px; opacity: .85; }
.rs-app-t .rs-app-h { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.15; opacity: 1; }
.rs-app-k { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Zutaten und Zubereitung */
.rs-spalten { display: grid; gap: 36px; margin-top: 36px; }
.rs-spalten h2, .rs-h2 { font-size: 28px; font-weight: 800; }
.rs-zutaten { padding: 20px; border-radius: 24px; background: color-mix(in srgb, var(--c) 16%, #fff); align-self: start; }
.rs-zk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rs-port { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.rs-port b { font-variant-numeric: tabular-nums; }
.rs-gr { font-size: 15px; font-weight: 700; margin: 18px 0 4px; color: var(--ink-2); }
.rs-zl { list-style: none; margin: 0; padding: 0; }
.rs-zl li { border-bottom: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.rs-zl label { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.rs-zl input { position: absolute; opacity: 0; pointer-events: none; }
.rs-ck { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b9b4ad; background: #fff; color: transparent; font-size: 13px; transition: background .15s, border-color .15s; }
.rs-zn { flex: 1; }
.rs-zm { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-zl input:checked ~ .rs-ck { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.rs-zl input:checked ~ .rs-zn, .rs-zl input:checked ~ .rs-zm { text-decoration: line-through; color: var(--ink-2); }
.rs-zl input:focus-visible ~ .rs-ck { outline: 3px solid var(--ink); outline-offset: 2px; }
.rs-kr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.rs-kr a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rs-kr .ic { color: var(--ink); }
.rs-ersatz { margin-top: 24px; }
.rs-ersatz h3 { font-size: 18px; margin-bottom: 8px; }
.rs-ersatz dl { margin: 0; display: grid; gap: 10px; }
.rs-ersatz dt { font-weight: 600; font-size: 15px; }
.rs-ersatz dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.rs-klein { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.rs-nw { margin-top: 24px; border-radius: 16px; padding: 0 16px; background: #fff; }
.rs-nw summary { display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; list-style: none; }
.rs-nw summary::-webkit-details-marker { display: none; }
.rs-nw summary span { margin-left: auto; color: var(--ink-2); font-size: 14px; }
.rs-nw summary .ic:last-child { transition: transform .2s; }
.rs-nw[open] summary .ic:last-child { transform: rotate(180deg); }
.rs-nw dl { margin: 0; }
.rs-nw dl div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--hairline); font-size: 15px; }
.rs-nw dl .sub { padding-left: 14px; color: var(--ink-2); }
.rs-nw dd { margin: 0; }
.rs-nw .rs-klein { padding-bottom: 14px; }
.rs-sl { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 22px; }
.rs-sl li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.rs-nr { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: var(--ci); font-weight: 700; font-size: 15px; }
.rs-sl p { margin: 4px 0 0; font-size: 17px; line-height: 1.6; }
.rs-zeit { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 99px; background: var(--pfirsich); color: #a32600; font-weight: 600; white-space: nowrap; }
.rs-zeit .ic { font-size: 14px; }
.rs-tipp { margin: 28px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--c); }
.rs-tipp-k { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rs-serif { margin: 4px 0 0; font: italic 400 20px/1.45 "Newsreader", Georgia, serif; }

/* Karten im Cherrypick Stil */
.rs-mehr { margin-top: 56px; }
.rs-mehr h2 { margin-bottom: 16px; }
.rs-kl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rs-k { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px; border-radius: 22px; background: var(--k); text-decoration: none; transition: transform .2s var(--feder); }
.rs-k:hover { transform: translateY(-3px); }
.rs-k-b { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.5); }
.rs-k-b img { width: 100%; height: 100%; object-fit: cover; }
.rs-k-typ { display: grid; place-items: center; height: 100%; padding: 12px; font-weight: 800; font-size: 18px; text-align: center; }
.rs-k-t { padding: 0 4px; font-weight: 800; font-size: 17px; line-height: 1.2; }
.rs-k-m { padding: 0 4px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #3b3833; }
.rs-k-u { padding: 0 4px; font-size: 14px; color: #3b3833; line-height: 1.35; }
.rs-k-u b { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.rs-k-u span { font: italic 400 15px/1.35 "Newsreader", Georgia, serif; }
.rs-alle { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; text-decoration: none; }
.rs-ende { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.rs-ende .rs-fig { height: 56px; }
.rs-ende p { margin: 0; font-size: 15px; color: var(--ink-2); }
.rs-ende a { color: var(--ink); font-weight: 700; }

/* Übersicht: Hero in Himmel mit Rezept der Woche, Crew empfiehlt */
.rs-uhero { background: var(--himmel); overflow: hidden; }
.rs-uhero-in { max-width: var(--max); margin: 0 auto; padding: 0 20px 40px; display: grid; gap: 24px; }
.rs-uhero h1 { font-size: clamp(36px, 9vw, 60px); font-weight: 800; margin: 6px 0 10px; }
.rs-uhero .rs-intro { color: #2b3b47; opacity: 1; }
.rs-such { display: flex; align-items: center; gap: 10px; max-width: 480px; height: 56px; padding: 0 8px 0 18px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); }
.rs-such > span { display: flex; color: var(--ink-2); font-size: 20px; }
.rs-such input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.rs-buehne { position: relative; padding-bottom: 8px; }
.rs-buehne .rs-peek { position: absolute; top: 64px; right: 14px; height: 88px; z-index: 0; }
.rs-buehne .rs-nurdesk { display: none; }
.rs-crew { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 6px; margin-bottom: -18px; }
.rs-crew .rs-fig { height: 88px; }
.rs-crew .rs-blase { margin-bottom: 40px; }
.rs-woche { position: relative; z-index: 1; max-width: 400px; padding: 12px 12px 16px; border-radius: 26px; background: var(--c); color: var(--ci); box-shadow: var(--shadow-hoch); }
.rs-woche-b { position: relative; }
.rs-woche-b img, .rs-woche-b .rs-typ { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.rs-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
.rs-woche h2 { margin: 12px 4px 4px; font-size: 22px; font-weight: 800; line-height: 1.15; }
.rs-woche-m { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 4px 12px; font-size: 14px; opacity: .85; }
.rs-woche-m span { display: inline-flex; align-items: center; gap: 4px; }
.rs-woche-k { display: flex; gap: 8px; margin: 0 4px; }
.rs-woche-k .rs-btn { flex: 1; }
.rs-h2 { margin: 40px 0 14px; }
.rs-kats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rs-kat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 20px; background: var(--bg); text-decoration: none; font-weight: 700; font-size: 15px; text-align: center; transition: transform .2s var(--feder); }
.rs-kat:hover { transform: translateY(-3px); }
.rs-kat.an { outline: 2px solid var(--ink); }
.rs-kat img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.rs-kat-l { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; font-size: 28px; }
.rs-leer { color: var(--ink-2); }

/* Leiste unten am Handy, erst nach den Knöpfen oben */
.rs-leiste { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 10px; padding: 8px; border-radius: 99px; background: #fff; box-shadow: 0 8px 30px rgba(14,14,14,.16); transform: translateY(140%); transition: transform .3s var(--feder); }
.rs-leiste.an { transform: none; }
.rs-leiste .rs-btn { flex: 1; min-height: 44px; }
.rs-leiste .rs-ib { width: 44px; height: 44px; border: 1px solid var(--hairline); }

/* KI Knopf nur mit Konto */
.rs-ki { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 31; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.rs-ki::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; background: conic-gradient(#ff3d3d, #ff8a00, #7fe0c2, #a98bff, #8fd3ff, #ff3d3d); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
body.leiste-an .rs-ki { bottom: calc(80px + env(safe-area-inset-bottom)); }

.rs-hinweis { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 15px; }

.rs-fuss { max-width: var(--max); margin: 32px auto 0; padding: 28px 20px calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: 14px; }
.rs-fuss img { height: 24px; width: auto; margin-bottom: 8px; }
.rs-fuss nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.rs-fuss a { text-decoration: none; }
.rs-fuss a:hover { text-decoration: underline; }

@media (max-width: 400px) { .rs-logo img { height: 24px; } .rs-nav { gap: 14px; } }
@media (max-width: 899px) { .rs-akt [data-koch] { flex: 1 0 100%; } .rs-akt [data-merk] { flex: 1; } }
@media (min-width: 900px) {
  .rs-hero-in { grid-template-columns: 1fr minmax(380px, 44%); column-gap: 48px; align-items: center; padding-top: 8px; padding-bottom: 48px; }
  .rs-foto { grid-column: 2; grid-row: 1; margin: 24px 0 0; aspect-ratio: 1; }
  .rs-foto > img, .rs-foto > .rs-typ { border-radius: 28px; box-shadow: var(--shadow-hoch); }
  .rs-foto-crew { left: -28px; }
  .rs-titel { grid-column: 1; grid-row: 1; padding-top: 0; }
  .rs-spalten { grid-template-columns: minmax(320px, 400px) 1fr; gap: 64px; }
  .rs-zutaten { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; scrollbar-width: thin; }
  .rs-kl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rs-leiste { display: none; }
  .rs-fuss { padding-bottom: 48px; }
  body.leiste-an .rs-ki, .rs-ki { right: 24px; bottom: 24px; }
  .rs-uhero-in { grid-template-columns: 1fr minmax(380px, 440px); align-items: center; column-gap: 48px; padding-bottom: 56px; }
  .rs-buehne .rs-nurdesk { display: block; position: absolute; right: -14px; bottom: 0; height: 84px; z-index: 2; }
  .rs-woche { margin-left: auto; }
  .rs-kats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

@media print {
  .rs-kopf, .rs-akt, .rs-kr, .rs-app, .rs-mehr, .rs-ende, .rs-leiste, .rs-ki, .rs-fuss nav, .rs-port button, .rs-krumen, .rs-foto-crew { display: none !important; }
  body { font-size: 12pt; }
  .rs-hero { background: none; color: var(--ink); }
  .rs-foto { max-width: 8cm; aspect-ratio: 1; margin: 0; }
  .rs-spalten { grid-template-columns: 7cm 1fr; gap: 1cm; }
  .rs-zutaten { position: static; max-height: none; overflow: visible; background: none; padding: 0; }
  .rs-nw { display: none; }
  .rs-fuss { padding: 12px 0 0; margin-top: 16px; }
}
