:root{--bg: #f7f6f3;--surface: #ffffff;--border: #d9d5cd;--text: #1c1a17;--muted: #6b665e;--accent: #2f6b4f;--accent-soft: #e6f0ea;--warn: #8a5a00;--warn-soft: #fdf1dc;--error: #a3241f;--error-soft: #fbe9e8;--radius: 12px;--nav-height: 68px}@media(prefers-color-scheme:dark){:root{--bg: #16181a;--surface: #1f2224;--border: #34383c;--text: #f1efec;--muted: #a5a29b;--accent: #6cc59a;--accent-soft: #21332b;--warn: #f0c070;--warn-soft: #33291a;--error: #f28b84;--error-soft: #3a2220}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%}.shell{padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom))}.page{max-width:44rem;margin:0 auto;padding:1rem 1rem 2rem}.page-centered{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;gap:1rem}h1{font-size:1.5rem;margin:.5rem 0 1rem}h2{font-size:1.1rem;margin:0 0 .5rem}h3{font-size:1rem;margin:.75rem 0 .5rem}.page-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.lead{color:var(--muted)}.muted{color:var(--muted);font-size:.9rem}.hint{color:var(--muted);font-size:.85rem;margin:.25rem 0 0}.big{font-size:2rem;font-weight:700;margin:.25rem 0}.break{word-break:break-all}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}.card.highlight{border-color:var(--accent);background:var(--accent-soft)}.note{border-radius:var(--radius);padding:.75rem 1rem;margin:.75rem 0;border:1px solid var(--border)}.note-error{background:var(--error-soft);border-color:var(--error)}.note-warn{background:var(--warn-soft);border-color:var(--warn)}.note-info{background:var(--accent-soft);border-color:var(--accent)}.note p{margin:0 0 .5rem}.note p:last-child{margin-bottom:0}.empty{text-align:center;padding:2rem 1rem;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}.toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--nav-height) + 1rem + env(safe-area-inset-bottom));background:var(--text);color:var(--bg);padding:.75rem 1.25rem;border-radius:999px;font-size:.9rem;z-index:20}.field{margin-bottom:1rem}label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.35rem}input,select,textarea{width:100%;min-height:48px;padding:.6rem .75rem;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px}textarea{min-height:72px;resize:vertical}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}input[aria-invalid=true]{border-color:var(--error);border-width:2px}.error{color:var(--error);font-size:.85rem;margin:.35rem 0 0;font-weight:600}.number-row{display:flex;gap:.5rem;align-items:stretch}.number-input{position:relative;flex:1}.number-input .suffix{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}.number-input input{padding-right:3.5rem}.stepper{min-width:48px;font-size:1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;color:var(--text)}.switch{display:flex;align-items:center;gap:.6rem;font-weight:500;margin:.5rem 0}.switch input{width:24px;height:24px;min-height:24px;flex:none}button{font:inherit;cursor:pointer;border-radius:10px;min-height:48px;padding:.6rem 1rem;border:1px solid transparent;background:transparent;color:var(--text)}button:disabled{opacity:.55;cursor:default}.primary{background:var(--accent);color:#fff;font-weight:600;width:100%}.secondary{background:var(--surface);border-color:var(--accent);color:var(--accent);font-weight:600}.ghost{border-color:var(--border);background:var(--surface)}.ghost.small{min-height:40px;padding:.35rem .75rem;font-size:.85rem}.danger{color:var(--error);border-color:var(--error)}.link{background:none;border:none;color:var(--accent);text-decoration:underline;padding:0;min-height:0}.actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.actions>button{flex:1 1 10rem}.sticky-action{position:sticky;bottom:calc(var(--nav-height) + .5rem)}.fab{position:fixed;right:1rem;bottom:calc(var(--nav-height) + 1rem + env(safe-area-inset-bottom));width:60px;height:60px;border-radius:50%;background:var(--accent);color:#fff;font-size:1.75rem;border:none;box-shadow:0 4px 14px #00000040;z-index:15}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:flex;background:var(--surface);border-top:1px solid var(--border);z-index:10}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;min-height:100%;border-radius:0;color:var(--muted);font-size:.75rem}.nav-item.active{color:var(--accent);font-weight:700;box-shadow:inset 0 3px 0 var(--accent)}.nav-icon{font-size:1.35rem;line-height:1}.person-picker{display:flex;gap:.75rem;flex-wrap:wrap}.person{flex:1 1 8rem;border:2px solid var(--border);background:var(--surface);font-weight:600;min-height:64px}.person.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.week-nav{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.week-nav button{min-height:40px;min-width:40px;padding:0}.day-chips{display:flex;gap:.4rem;overflow-x:auto;padding:.25rem 0 .75rem;scrollbar-width:thin}.day-chip{flex:1 0 3.5rem;display:flex;flex-direction:column;align-items:center;gap:.15rem;background:var(--surface);border:1px solid var(--border);min-height:68px;font-size:.8rem}.day-chip.selected{border-color:var(--accent);border-width:2px;background:var(--accent-soft)}.day-name{font-weight:700}.day-dot{width:8px;height:8px;border-radius:50%;border:1px solid var(--muted)}.day-dot.full{background:var(--accent);border-color:var(--accent)}.slot-head{display:flex;justify-content:space-between;align-items:baseline}.slot-empty{width:100%;border:1px dashed var(--border);color:var(--muted);min-height:56px}.entry{border-top:1px solid var(--border);padding:.75rem 0 .5rem}.entry:first-of-type{border-top:none}.entry-main{display:flex;flex-direction:column}.entry-title{font-weight:600}.entry-meta{color:var(--muted);font-size:.85rem}.totals{margin-bottom:1rem}.progress-line{display:flex;flex-direction:column;gap:.35rem;margin:.5rem 0 1rem}.progress-track,.macro-track{height:10px;background:var(--border);border-radius:999px;overflow:hidden}.progress-fill,.macro-fill{display:block;height:100%;background:var(--accent)}.slot-setting{border-top:1px solid var(--border);padding-top:.5rem}.slot-setting-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;padding-left:2rem}.slot-setting-row select{width:auto;min-width:5rem}.macro-bar{margin-bottom:.75rem}.macro-head{display:flex;justify-content:space-between;gap:.5rem;font-size:.9rem;margin-bottom:.25rem}.macro-label{font-weight:600}.macro-note{font-size:.8rem;margin:.25rem 0 0;font-weight:600}.macro-unter .macro-fill{background:var(--warn)}.macro-unter .macro-note{color:var(--warn)}.macro-ueber .macro-fill{background:var(--error)}.macro-ueber .macro-note{color:var(--error)}.recipe-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.recipe-card{width:100%;text-align:left;background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:.2rem;align-items:flex-start;min-height:64px}.recipe-title{font-weight:600}.recipe-meta{color:var(--muted);font-size:.85rem}.badge{display:inline-block;font-size:.72rem;font-weight:700;padding:.1rem .5rem;border-radius:999px;border:1px solid var(--border);color:var(--muted);margin-top:.25rem}.badge.ok{color:var(--accent);border-color:var(--accent)}.badge.draft{color:var(--muted)}.badge.warn{color:var(--warn);border-color:var(--warn)}.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.chip{border:1px solid var(--border);background:var(--surface);min-height:44px;font-size:.9rem}.chip.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.ingredient-row{border-top:1px solid var(--border);padding:.75rem 0}.ingredient-row:first-of-type{border-top:none}.ingredient-meta{display:flex;gap:.5rem;margin-top:.5rem}.ingredient-meta .amount{max-width:6rem}.ingredient-actions{display:flex;gap:.5rem;margin-top:.5rem}.issues{list-style:none;padding:0;margin:.5rem 0;display:flex;flex-direction:column;gap:.35rem}.issue{display:flex;gap:.5rem;align-items:baseline;font-size:.85rem;padding:.4rem .6rem;border-radius:8px;border:1px solid var(--border)}.issue-tag{font-weight:700;white-space:nowrap}.issue-warnung{background:var(--error-soft);border-color:var(--error)}.issue-warnung .issue-tag{color:var(--error)}.issue-hinweis{background:var(--warn-soft);border-color:var(--warn)}.issue-hinweis .issue-tag{color:var(--warn)}.shop-section{margin-bottom:1.5rem}.sticky-heading{position:sticky;top:0;background:var(--bg);padding:.5rem 0;margin:0;z-index:5;border-bottom:1px solid var(--border)}.shop-list{list-style:none;padding:0;margin:0}.shop-row{width:100%;min-height:60px;display:flex;align-items:center;gap:.85rem;text-align:left;border:none;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.shop-row.done{opacity:.55}.shop-row.done .shop-name{text-decoration:line-through}.check{width:26px;height:26px;flex:none;border:2px solid var(--muted);border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700}.check.checked{background:var(--accent);border-color:var(--accent);color:#fff}.shop-text{display:flex;flex-direction:column;flex:1}.shop-name{font-weight:600}.shop-amount{color:var(--muted);font-size:.85rem}.done-block summary{cursor:pointer;padding:.6rem 0;color:var(--muted);font-size:.9rem}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.entry-group{border-top:1px solid var(--border);padding-top:.5rem;margin-top:.5rem}.entry-group:first-of-type{border-top:none;margin-top:0}.entry-group h3{margin:0 0 .35rem;font-size:.9rem;color:var(--muted)}.passphrase{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:1.05rem;letter-spacing:.02em;background:var(--accent-soft);border:1px solid var(--accent);border-radius:8px;padding:.6rem .75rem;margin:.5rem 0;word-break:break-all;-webkit-user-select:all;user-select:all}
