/* =====================================================================
   Heute, Woche, Einkauf, Bewerten, Einstellungen, Kochmodus
   Baut auf den Tokens in app.css auf.
   ===================================================================== */

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Heute ---------- */
.today { display: flex; flex-direction: column; gap: 1.5rem; }
.today-plate { display: block; color: inherit; text-decoration: none; padding-top: .5rem; }
.today-plate .dish-plate { animation: plate-arrive .9s var(--ease-out) both; }
.today-plate .cutlery { height: min(12rem, 48vw); }

.today-text { display: flex; flex-direction: column; gap: .6rem; }
.today-kicker { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--ink-soft); }
.today-text h1 { font-size: clamp(2.6rem, 12vw, var(--step-5)); }
.why { font-size: var(--step--1); }

.facts-left { justify-content: flex-start; }
.locked-chip { background: var(--saffron-tint) !important; box-shadow: none !important; }

.today-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.today-actions .btn:first-child { flex: 1 1 12rem; }

.rate-card,
.hint-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-m);
    color: inherit;
    text-decoration: none;
    transition: transform .25s var(--spring);
}
.rate-card { background: var(--basil-tint); }
.hint-card { background: var(--saffron-tint); margin: 1.5rem 0 0; }
.rate-card:active, .hint-card:active { transform: scale(.98); }
.rate-card .grow, .hint-card .grow { display: flex; flex-direction: column; font-size: var(--step--1); }
.rate-card strong, .hint-card strong { font-size: var(--step-0); }
.rate-faces { font-size: 1.8rem; }
.hint-card > svg:first-child { width: 1.6rem; height: 1.6rem; flex: none; }
.prep-tomorrow { margin-top: 1.5rem; margin-bottom: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.next-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.next-list a { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; padding: .25rem 0; }
.next-list .grow { display: flex; flex-direction: column; }
.next-day { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.next-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; }

.mini-plate-empty {
    width: 3.5rem;
    height: 3.5rem;
    flex: none;
    border-radius: 50%;
    border: 2px dashed var(--line);
}

/* Alternativen im „Keine Lust“-Sheet */
.alt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.alt {
    display: flex; align-items: center; gap: .9rem; width: 100%;
    padding: .5rem .75rem; border: 0; border-radius: var(--radius-m);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.alt:hover { background: var(--surface-sunk); }
.alt .grow { display: flex; flex-direction: column; }
.alt .muted { font-size: var(--step--1); }

/* ---------- Woche ---------- */
.locked-title { display: flex; align-items: center; gap: .4rem; }
.locked-title svg { width: 1.1rem; height: 1.1rem; }

.week-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }

.day-row {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: var(--radius-m);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .2s, transform .25s var(--spring);
}

.day-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .55rem .75rem;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: inherit;
}

.day-date { display: flex; flex-direction: column; align-items: center; width: 2.4rem; flex: none; line-height: 1.1; }
.day-name { font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.day-num { font-family: var(--font-display); font-size: var(--step-1); font-weight: 800; }

.day-text { display: flex; flex-direction: column; min-width: 0; }
.day-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; }
.day-meta { font-size: var(--step--1); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.day-row.is-today { box-shadow: inset 0 0 0 2px var(--basil); }
.day-row.is-today .day-name { color: var(--basil-deep); }
.day-row.is-locked { box-shadow: inset 4px 0 0 var(--saffron), inset 0 0 0 1px var(--line); }
.day-row.is-locked.is-today { box-shadow: inset 4px 0 0 var(--saffron), inset 0 0 0 2px var(--basil); }
.day-row.is-requested .day-meta { color: var(--basil-deep); font-weight: 600; }
.day-row.is-off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.day-row.skeleton { height: 4.75rem; animation: pulse 1.4s ease-in-out infinite; }
.day-row .dish-plate { box-shadow: 0 4px 12px -6px rgba(42, 27, 48, .35); }

.drag-handle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    align-self: stretch;
    color: var(--ink-faint);
    cursor: grab;
    touch-action: none;
}
.drag-handle svg { width: 1.25rem; height: 1.25rem; }
.drag-ghost { opacity: .35; }
.drag-chosen { box-shadow: 0 18px 40px -14px rgba(42, 27, 48, .45), inset 0 0 0 2px var(--basil); transform: scale(1.02); }

.week-footer { margin-top: 2rem; }
.locked-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.locked-head .section-title { margin-bottom: .6rem; }

/* ---------- Einladung ---------- */
.invite-box { display: flex; flex-direction: column; gap: .75rem; }
.invite-code, .code-input { font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; font-size: var(--step-1); text-transform: uppercase; }
.code-input::placeholder { text-transform: none; letter-spacing: normal; font-family: var(--font-body); font-weight: 500; font-size: var(--step-0); }
.join-pick {
    display: flex; align-items: center; gap: .9rem; width: 100%; padding: 0; border: 0;
    background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.join-pick svg { width: 1.3rem; height: 1.3rem; color: var(--basil-deep); }

/* ---------- Statistik ---------- */
.stat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.stat-tiles li {
    display: flex; flex-direction: column; gap: .2rem; padding: 1rem;
    border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.stat-tiles strong { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.stat-tiles span { font-size: var(--step--1); color: var(--ink-soft); }

.protein-bar { display: flex; height: 1rem; border-radius: 999px; overflow: hidden; gap: 2px; }
.protein-seg[data-protein="fleisch"], .dot[data-protein="fleisch"] { background: var(--radicchio); }
.protein-seg[data-protein="gefluegel"], .dot[data-protein="gefluegel"] { background: var(--m-carrot); }
.protein-seg[data-protein="fisch"], .dot[data-protein="fisch"] { background: var(--m-sky); }
.protein-seg[data-protein="vegetarisch"], .dot[data-protein="vegetarisch"] { background: var(--basil); }
.protein-seg[data-protein="vegan"], .dot[data-protein="vegan"] { background: var(--saffron); }
.protein-legend { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: var(--step--1); }
.protein-legend li { display: flex; align-items: center; gap: .35rem; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }

.sheet-kicker { font-size: var(--step--1); font-weight: 600; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.why-box { padding: .85rem 1rem; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step--1); }
.why-box ul { margin: .35rem 0 0; padding-left: 1.1rem; }

.day-settings { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.attendees { display: flex; flex-wrap: wrap; gap: .5rem; }
.attendee {
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    padding: .4rem .5rem; border: 0; border-radius: var(--radius-m);
    background: none; color: inherit; font: 600 .8rem/1 var(--font-body); cursor: pointer;
    transition: opacity .2s, transform .25s var(--spring);
}
.attendee[aria-pressed="false"] { opacity: .35; }
.attendee[aria-pressed="false"] .avatar { filter: grayscale(1); }
.attendee:active { transform: scale(.94); }

/* ---------- Rezept: Warteschlange & Bewertungen ---------- */
.queue-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -1rem 0 1rem; }
.queued-note { display: flex; align-items: center; justify-content: center; gap: .35rem; color: var(--basil-deep); font-weight: 700; font-size: var(--step--1); margin-bottom: 1rem; }
.queued-note svg { width: 1.1rem; height: 1.1rem; }

.family-ratings { display: flex; justify-content: center; gap: .9rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.family-ratings li { display: flex; align-items: center; gap: .25rem; font-size: 1.3rem; }

/* ---------- Einkauf ---------- */
.offline-chip {
    display: inline-block; margin-top: .4rem; padding: .2rem .65rem; border-radius: 999px;
    background: var(--saffron-tint); color: var(--aubergine); font-size: var(--step--1); font-weight: 700;
}

.add-item { display: flex; gap: .4rem; margin-bottom: 1rem; }
.add-icon { background: var(--basil); color: var(--on-basil); width: 3.25rem; height: 3.25rem; }
.add-icon:hover { background: var(--basil-deep); color: var(--on-basil); }
.add-icon:disabled { opacity: .4; }

.aisle-title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); margin: 1.4rem 0 .5rem .25rem; }

.shop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }

.shop-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: 100%;
    min-height: 3.75rem;
    padding: .55rem 1rem;
    border: 0;
    border-radius: var(--radius-m);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .2s var(--spring), opacity .25s, background-color .2s;
}
.shop-item:active { transform: scale(.98); }
.shop-item .grow { display: flex; flex-direction: column; min-width: 0; }
.shop-name { font-weight: 700; font-size: 1.1rem; }
.shop-for { font-size: .8rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-qty { font-weight: 700; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.shop-check {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--line);
    transition: background-color .25s, box-shadow .25s;
}
.shop-check svg { width: 1.1rem; height: 1.1rem; color: var(--on-basil); }

.shop-item.is-checked { background: transparent; opacity: .55; }
.shop-item.is-checked .shop-name { text-decoration: line-through; text-decoration-thickness: 2px; }
.shop-item.is-checked .shop-check { background: var(--basil); box-shadow: none; animation: check-pop .35s var(--spring); }
@keyframes check-pop { from { transform: scale(.6); } }

.in-cart, .staples { margin-top: 1.75rem; }
.in-cart summary, .staples summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink-soft);
    padding: .5rem .25rem;
    list-style-position: inside;
}

.cart-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.5rem 0; }
.cart-done-icon {
    display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
    background: var(--basil); color: var(--on-basil); animation: check-pop .5s var(--spring);
}
.cart-done-icon svg { width: 2rem; height: 2rem; }

.shop-footer { margin-top: 2rem; }

.cover-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cover-list li { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; }
.cover-list li + li { border-top: 1px solid var(--line); }
.cover-list .is-covered { opacity: .55; }
.cover-day { width: 3rem; font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); }

.draft-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.draft-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .5rem .45rem .9rem;
    border-radius: var(--radius-m);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: opacity .2s;
}
.draft-row.is-skipped { opacity: .5; }
.draft-row.is-skipped .shop-name { text-decoration: line-through; }
.draft-toggle { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; cursor: pointer; }
.draft-toggle input { width: 1.4rem; height: 1.4rem; accent-color: var(--basil); flex: none; }
.draft-toggle .grow { display: flex; flex-direction: column; min-width: 0; }
.draft-qty { display: flex; align-items: center; gap: .3rem; flex: none; }
.draft-qty .input { width: 4.75rem; min-height: 2.6rem; padding: 0 .6rem; text-align: right; border-radius: var(--radius-s); }
.draft-qty .unit { width: 3.2rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Vorlieben ---------- */
.big-check { align-items: flex-start; padding: 1rem; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.big-check span { display: flex; flex-direction: column; }
.big-check small { font-weight: 500; }

.picker { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    display: inline-flex; align-items: center; gap: .3rem;
    min-height: 2.25rem; padding: 0 .55rem 0 .85rem; border: 0; border-radius: 999px;
    font: 700 var(--step--1)/1 var(--font-body); cursor: pointer;
}
.chip svg { width: .9rem; height: .9rem; }
.chip[data-tone="hard"] { background: var(--radicchio-tint); color: var(--radicchio); }
.chip[data-tone="soft"] { background: var(--saffron-tint); color: var(--aubergine); }

.picker-hits {
    list-style: none; margin: .25rem 0 0; padding: .3rem;
    border-radius: var(--radius-m); background: var(--surface);
    box-shadow: 0 12px 30px -12px rgba(42, 27, 48, .35), inset 0 0 0 1px var(--line);
}
.picker-hits button {
    display: flex; justify-content: space-between; gap: 1rem; width: 100%;
    padding: .6rem .75rem; border: 0; border-radius: var(--radius-s);
    background: none; color: inherit; font: 600 var(--step-0)/1.2 var(--font-body); text-align: left; cursor: pointer;
}
.picker-hits button:hover { background: var(--surface-sunk); }
.picker-hits .muted { font-weight: 500; font-size: var(--step--1); }

/* ---------- Einstellungen ---------- */
.effort-week { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.effort-week li { display: flex; align-items: center; gap: .75rem; }
.effort-week .day-name { width: 1.75rem; font-size: var(--step--1); }
.effort-week .segmented { flex: 1; }
.segmented.small button { min-height: 2.2rem; font-size: .8rem; }

.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rule-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem .6rem .6rem 1rem; flex-wrap: wrap; }
.rule-list li + li { border-top: 1px solid var(--line); }
.counter span { min-width: 7.5rem; }
.input.time { width: 7.5rem; min-height: 2.75rem; }
.push-switch { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }

/* ---------- Bewerten ---------- */
.rate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.rate h1 { font-size: clamp(2rem, 9vw, var(--step-4)); }
.rate .sticky-actions { width: 100%; }
.rate-members { list-style: none; margin: 1rem 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: .6rem; }
.rate-members li {
    display: flex; flex-direction: column; gap: .6rem; padding: .9rem;
    border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .25s;
}
.rate-members li.is-rated { box-shadow: inset 0 0 0 2px var(--basil); }
.rate-who { display: flex; align-items: center; gap: .6rem; }
.faces { display: flex; justify-content: space-between; gap: .25rem; }
.face {
    flex: 1; aspect-ratio: 1; max-width: 3.25rem;
    display: grid; place-items: center;
    border: 0; border-radius: 50%; background: var(--surface-sunk);
    font-size: 1.6rem; cursor: pointer;
    filter: grayscale(.85); opacity: .7;
    transition: transform .3s var(--spring), filter .2s, opacity .2s, background-color .2s;
}
.face:hover { filter: none; opacity: 1; }
.face[aria-checked="true"] { filter: none; opacity: 1; background: var(--basil-tint); transform: scale(1.18); }
.face.never[aria-checked="true"] { background: var(--radicchio-tint); }

/* ---------- Kochmodus ---------- */
.cook {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    background: var(--kalk);
    padding: calc(.5rem + var(--safe-top)) var(--gutter) calc(1rem + var(--safe-bottom));
    max-width: 44rem;
    margin: 0 auto;
}

.cook-head { display: flex; align-items: center; gap: .75rem; }
.cook-progress { flex: 1; display: flex; gap: .3rem; }
.cook-progress span { flex: 1; height: .35rem; border-radius: 999px; background: var(--line); transition: background-color .3s; }
.cook-progress .done { background: var(--basil); }
.cook-progress .current { background: color-mix(in srgb, var(--basil) 45%, var(--line)); }

.cook-timers { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.cook-timers li {
    display: flex; align-items: center; gap: .6rem; padding: .35rem .35rem .35rem .9rem;
    border-radius: 999px; background: var(--saffron-tint); font-variant-numeric: tabular-nums;
}
.cook-timers li span { flex: 1; font-size: var(--step--1); }
.cook-timers li svg { width: 1.1rem; height: 1.1rem; }
.cook-timers .is-done { background: var(--basil); color: var(--on-basil); animation: pulse 1s ease-in-out infinite; }
.cook-timers .is-done .icon-btn { color: var(--on-basil); }

.cook-step {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
    animation: vt-in .35s var(--ease-out);
}
.cook-number { font-weight: 700; color: var(--ink-soft); }
.cook-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.25;
    max-width: 30ch;
}
.timer-btn { align-self: flex-start; }
.cook-used { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cook-used li { padding: .35rem .8rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step--1); }
.cook-done { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }

.cook-nav { display: flex; gap: .5rem; }
.cook-nav .grow { flex: 1; }
.cook .sheet { z-index: 42; }
.cook .sheet-backdrop { z-index: 41; }
