:root { --radius: 2px; }
body[data-stil="papier"] { --bg:#FBFAF7; --fl:#FBFAF7; --tx:#1C1B19; --le:#76736C; --ak:#24513F; --auf:#fff; --li:#DAD6CC; --ma:#B0451F; --titel: "New York", "Iowan Old Style", Georgia, serif; --radius:2px; color-scheme: light; }
body[data-stil="markt"]  { --bg:#EEF2EA; --fl:#fff;    --tx:#17301F; --le:#5E7263; --ak:#2F7A3E; --auf:#fff; --li:#D3DDD0; --ma:#D9480F; --titel: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; --radius:14px; color-scheme: light; }
body[data-stil="abend"]  { --bg:#15171B; --fl:#1F2228; --tx:#EDEBE6; --le:#9A9890; --ak:#E5B53E; --auf:#15171B; --li:#2E3138; --ma:#7FC8A9; --titel: system-ui, -apple-system, sans-serif; --radius:6px; color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.4 -apple-system, system-ui, "Segoe UI", sans-serif; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
h1, h2, h3, .titel { font-family: var(--titel); font-weight: 600; margin: 0; }
h1 { font-size: 32px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: var(--ak); background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .4; }
#kopf { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 20px 8px; display: flex; align-items: center; gap: 12px; min-height: 52px; }
#kopf .mitte { flex: 1; font-weight: 600; text-align: center; }
#kopf .gross { flex: 1; font-family: var(--titel); font-size: 30px; font-weight: 700; }
.knopf-r { border: 1px solid var(--li); border-radius: 999px; padding: 7px 14px; background: var(--fl); }
.leise { color: var(--le); } .klein { font-size: 13px; } .mark { color: var(--ma); } .akz { color: var(--ak); }
.flaeche { background: var(--fl); }
.block { padding: 0 20px; }
.haupt { display: block; width: 100%; padding: 14px; background: var(--ak); color: var(--auf); font-weight: 600; border-radius: var(--radius); text-align: center; }
.tage > a { display: flex; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--li); align-items: flex-start; }
.tage > a:last-child { border-bottom: 0; }
.wt { width: 38px; text-align: center; flex: none; } .wt b { font-family: var(--titel); display: block; }
.gericht { font-family: var(--titel); font-size: 17px; font-weight: 500; margin: 2px 0 5px; }
.etiketten { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.et { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--ak); border: 1px solid color-mix(in srgb, var(--ak) 60%, transparent); border-radius: min(var(--radius), 4px); padding: 1px 6px; white-space: nowrap; }
.et.m { color: var(--ma); border-color: color-mix(in srgb, var(--ma) 60%, transparent); }
.pfeil { margin-left: auto; color: var(--li); }
.gruppe { margin: 18px 0 0; }
.gruppe > .ueber { padding: 0 20px 6px; font-size: 13px; color: var(--le); text-transform: uppercase; letter-spacing: .3px; }
.gruppe > .ueber.t { text-transform: none; font-family: var(--titel); font-size: 16px; color: var(--tx); letter-spacing: 0; font-weight: 600; }
.liste { background: var(--fl); margin: 0 16px; border-radius: var(--radius); }
body[data-stil="papier"] .liste { margin: 0; border-top: 1px solid var(--li); border-bottom: 1px solid var(--li); }
.zeile { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--li); min-height: 46px; }
.zeile:last-child { border-bottom: 0; }
.zeile > .rest { flex: 1; min-width: 0; }
.fuss { padding: 6px 20px 0; font-size: 13px; color: var(--le); }
input, select { font: inherit; color: var(--tx); background: transparent; border: 0; text-align: right; min-width: 0; }
input[type=text], input[type=number] { text-align: left; width: 100%; }
input.rechts { text-align: right; width: auto; }
input[type=time] { background: color-mix(in srgb, var(--le) 15%, transparent); border-radius: 8px; padding: 4px 8px; }
.schalter { appearance: none; width: 51px; height: 31px; border-radius: 99px; background: color-mix(in srgb, var(--le) 35%, transparent); position: relative; flex: none; cursor: pointer; transition: .2s; }
.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.schalter:checked { background: var(--ak); } .schalter:checked::after { left: 22px; }
.seg { display: flex; border: 1px solid var(--li); border-radius: 9px; overflow: hidden; }
.seg button { flex: 1; padding: 7px 4px; color: var(--tx); }
.seg button.an { background: var(--ak); color: var(--auf); }
.stepper button { width: 34px; height: 30px; border: 1px solid var(--li); border-radius: 8px; font-size: 18px; }
#reiter { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--fl) 94%, transparent); border-top: 1px solid var(--li); backdrop-filter: blur(12px); z-index: 6; }
#reiter a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--le); gap: 2px; min-width: 64px; }
#reiter a.an { color: var(--ak); font-weight: 600; }
#reiter svg { width: 24px; height: 24px; }
.rezept h1 { font-size: 26px; margin: 4px 0 10px; }
.zutat { display: flex; gap: 10px; padding: 5px 0; font-size: 15px; align-items: baseline; }
.zutat .m { width: 86px; flex: none; color: var(--le); } .zutat .a { margin-left: auto; font-size: 12px; color: var(--ma); white-space: nowrap; }
.schritt { display: flex; gap: 10px; margin: 8px 0; } .schritt b { font-family: var(--titel); color: var(--ak); }
.unten { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; padding: 12px 20px; background: var(--bg); border-top: 1px solid var(--li); }
#blatt { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; }
#blatt > .innen { background: var(--bg); width: 100%; max-width: 640px; margin: 0 auto; max-height: 92vh; overflow: auto; border-radius: 14px 14px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
#blatt .kopf { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; position: sticky; top: 0; background: var(--bg); z-index: 2; border-bottom: 1px solid var(--li); }
.abgehakt { color: var(--le); text-decoration: line-through; }
.kreis { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--le); flex: none; display: grid; place-items: center; }
.kreis.an { background: var(--ak); border-color: var(--ak); color: var(--auf); font-size: 13px; }
.hinweis { margin: 12px 16px 0; padding: 10px 14px; border: 1px solid var(--li); border-radius: var(--radius); font-size: 13px; color: var(--le); }
[hidden] { display: none !important; }
