/* Rezepte — Gestaltung.
   Grundsatz: Inhalt zuerst. Papier statt Karten, ein Akzent, eine Hauptaktion je Seite.
   Aufbau: Schriften · Farben · Grundlage · Bausteine · Kopf/Fuss · Uebersicht · Rezept */

@font-face {
    font-family: "Fraunces";
    src: url("schrift/fraunces-opsz-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("schrift/source-sans-3-latin.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("schrift/source-sans-3-latin-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: light;
    --papier: #faf6ef;
    --flaeche: #fffdf9;
    --flaeche-2: #f1eadd;
    --linie: #e3dac8;
    --linie-stark: #cdc1aa;
    --tinte: #221c15;
    --tinte-2: #584d40;
    --tinte-3: #766a5b;
    --akzent: #b3401f;
    --akzent-dunkel: #96330f;
    --akzent-tinte: #fffaf5;
    --akzent-weich: #f7e3d9;
    --gruen: #2a5f4a;
    --gruen-weich: #dbeae2;
    --gefahr: #a3261a;
    --schatten: 0 1px 2px rgba(60, 40, 15, 0.06), 0 8px 24px rgba(60, 40, 15, 0.08);
    --radius: 14px;
    --radius-s: 10px;
    --breite: 1160px;
    --rand: 20px;
    --schrift-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --schrift-titel: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-thema="hell"]) {
        color-scheme: dark;
        --papier: #15120e;
        --flaeche: #1e1a15;
        --flaeche-2: #29241d;
        --linie: #383127;
        --linie-stark: #4d4437;
        --tinte: #f2ebe0;
        --tinte-2: #c2b6a4;
        --tinte-3: #9b8f7e;
        --akzent: #ec7c54;
        --akzent-dunkel: #f39a78;
        --akzent-tinte: #1c110a;
        --akzent-weich: #3a2318;
        --gruen: #86c9a9;
        --gruen-weich: #1e3229;
        --gefahr: #f08a7c;
        --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    }
}
:root[data-thema="dunkel"] {
    color-scheme: dark;
    --papier: #15120e;
    --flaeche: #1e1a15;
    --flaeche-2: #29241d;
    --linie: #383127;
    --linie-stark: #4d4437;
    --tinte: #f2ebe0;
    --tinte-2: #c2b6a4;
    --tinte-3: #9b8f7e;
    --akzent: #ec7c54;
    --akzent-dunkel: #f39a78;
    --akzent-tinte: #1c110a;
    --akzent-weich: #3a2318;
    --gruen: #86c9a9;
    --gruen-weich: #1e3229;
    --gefahr: #f08a7c;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 106.25%; } /* 1rem = 17px */
body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: var(--schrift-text);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 560; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bausteine ---------- */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 44px; padding: 0 1.15rem;
    border: 1px solid var(--linie-stark); border-radius: 999px;
    background: var(--flaeche); color: var(--tinte);
    font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.knopf:hover { border-color: var(--tinte-3); }
.knopf:active { transform: scale(0.98); }
.knopf--haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-tinte); }
.knopf--haupt:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf--gross { min-height: 52px; padding: 0 1.5rem; font-size: 1.06rem; }
.knopf--rund { width: 44px; padding: 0; }
.knopf--still { border-color: transparent; background: transparent; }
.knopf--still:hover { background: var(--flaeche-2); border-color: transparent; }

.chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 40px; padding: 0 0.95rem;
    border: 1px solid var(--linie); border-radius: 999px;
    background: transparent; color: var(--tinte-2);
    font-weight: 600; font-size: 0.95rem; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--linie-stark); color: var(--tinte); }
.chip[aria-current="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.chip__zahl { font-weight: 500; opacity: 0.65; font-variant-numeric: tabular-nums; }

.ueberzeile { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tinte-3); }

/* ---------- Kopf ---------- */
.kopf {
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--papier) 95%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--linie);
}
.kopf__innen { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.marke { display: inline-flex; align-items: baseline; gap: 0.1rem; font-family: var(--schrift-titel); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.marke__punkt { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--akzent); }
.suche { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.suche .icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--tinte-3); pointer-events: none; }
.suche input {
    width: 100%; min-height: 44px; padding: 0 1rem 0 2.75rem;
    border: 1px solid var(--linie); border-radius: 999px;
    background: var(--flaeche); outline-offset: 0;
}
.suche input::placeholder { color: var(--tinte-3); }
.suche input:focus-visible { border-color: var(--akzent); outline: 3px solid var(--akzent-weich); }
.kopf__aktionen { display: flex; align-items: center; gap: 0.5rem; }
.zaehler {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.4rem; height: 1.4rem; padding: 0 0.4rem; border-radius: 999px;
    background: var(--akzent); color: var(--akzent-tinte); font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.konto {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie);
    background: var(--flaeche-2); font-weight: 700; color: var(--tinte-2); cursor: pointer;
}

/* Fussleiste: nur am Handy, Daumenreichweite */
.fussleiste { display: none; }

/* ---------- Uebersicht ---------- */
.seite { padding-block: 1.75rem 4rem; }
.leiste { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.chips { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.sortierung { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--tinte-2); font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.sortierung select { border: 0; background: transparent; font-weight: 600; min-height: 40px; cursor: pointer; }

.rezepte { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 2.25rem 1.5rem; }
.karte { display: flex; flex-direction: column; gap: 0.7rem; }
.karte__bild { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--flaeche-2); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.karte:hover .karte__bild img { transform: scale(1.035); }
.karte__bild--leer { display: grid; place-items: center; color: var(--linie-stark); }
.karte__bild--leer .icon { width: 2.5rem; height: 2.5rem; stroke-width: 1.25; }
.karte__text { display: grid; gap: 0.2rem; }
.karte h2 { font-size: 1.24rem; text-wrap: balance; }
.karte:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--akzent); }
.karte__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.5rem; color: var(--tinte-2); font-size: 0.95rem; }
.karte__meta .trenner { color: var(--linie-stark); }
.sterne { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--akzent); font-weight: 700; }
.sterne .icon { width: 0.95em; height: 0.95em; fill: currentColor; stroke: none; }

/* ---------- Rezept ---------- */
.zurueck { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; color: var(--tinte-2); font-weight: 600; font-size: 0.98rem; }
.zurueck:hover { color: var(--tinte); }

.rezeptkopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; margin: 0.5rem 0 3rem; }
.rezeptkopf__text { display: grid; gap: 1.1rem; justify-items: start; }
.rezeptkopf h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 520; letter-spacing: -0.022em; text-wrap: balance; }
.rezeptkopf__bild { margin: 0; }
.rezeptkopf__bild img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--schatten); }
.rezeptkopf__bild figcaption { margin-top: 0.4rem; font-size: 0.8rem; color: var(--tinte-3); text-align: right; }

.eckdaten { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 0; padding: 0; list-style: none; color: var(--tinte-2); }
.eckdaten li { display: flex; align-items: center; gap: 0.5rem; }
.eckdaten .icon { color: var(--tinte-3); }
.eckdaten strong { color: var(--tinte); font-weight: 650; }
.eckdaten small { display: block; font-size: 0.88rem; color: var(--tinte-3); line-height: 1.2; }

.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }

.rezeptkoerper { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.abschnitt-titel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.abschnitt-titel h2 { font-size: 1.6rem; }

.zutaten { position: sticky; top: 84px; padding: 1.4rem 1.4rem 0.8rem; border: 1px solid var(--linie); border-radius: 18px; background: var(--flaeche); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--papier); }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--tinte-2); }
.stepper button:hover { background: var(--flaeche-2); color: var(--tinte); }
.stepper output { min-width: 6.2rem; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

.zutatenliste { list-style: none; margin: 0; padding: 0; }
.zutatenliste__gruppe { margin: 1.1rem 0 0.2rem; }
.zutat { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 40px; gap: 0.75rem; align-items: center; padding: 0.5rem 0; border-top: 1px solid var(--linie); }
.zutat:first-child { border-top: 0; }
.zutat__menge { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zutat__name { line-height: 1.35; }
.zutat__name small { display: block; font-size: 0.88rem; color: var(--tinte-3); }
.zutat__liste { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linie); background: transparent; color: var(--tinte-3); display: grid; place-items: center; cursor: pointer; justify-self: end; }
.zutat__liste:hover { border-color: var(--akzent); color: var(--akzent); }
.zutat__liste[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: var(--papier); }
.zutaten__fuss { margin: 0.6rem -1.4rem 0; padding: 0.75rem 1.4rem; border-top: 1px solid var(--linie); }
.zutaten__fuss .knopf { width: 100%; }

.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 1.6rem; }
.schritt { counter-increment: schritt; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.5rem; }
.schritt::before { content: counter(schritt); font-family: var(--schrift-titel); font-size: 2rem; font-weight: 480; line-height: 1; color: var(--akzent); font-variant-numeric: lining-nums; }
.schritt p { font-size: 1.1rem; line-height: 1.6; max-width: 62ch; }
.schritt strong { font-weight: 680; }
.schritte__gruppe { font-family: var(--schrift-text); }

.notiz { margin-top: 3rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--flaeche-2); display: grid; gap: 0.8rem; max-width: 70ch; }
.notiz h2 { font-size: 1.3rem; }
.notiz dl { margin: 0; display: grid; gap: 0.7rem; }
.notiz dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tinte-2); }
.notiz dd { margin: 0.1rem 0 0; color: var(--tinte-2); }
.notiz__quelle { font-size: 0.92rem; color: var(--tinte-2); }
.notiz__quelle a { text-decoration: underline; text-underline-offset: 0.15em; }
/* Ohne Netz (R3-6): schmale Zeile unter dem Kopf; Vormerkungen auf der Einkaufsliste */
.ohne-netz { border-top: 1px solid var(--linie); background: var(--akzent-weich); color: var(--tinte); }
.ohne-netz__innen { display: flex; align-items: center; gap: 0.6rem; min-height: 40px; padding-block: 0.3rem; font-size: 0.95rem; line-height: 1.35; }
.ohne-netz__innen p { flex: 1; }
.ohne-netz__innen strong { font-weight: 650; }
.ohne-netz--wieder .icon { display: none; }
.ohne-netz__knopf { min-height: 36px; padding: 0 0.9rem; font-size: 0.95rem; }
.vormerkung { margin: 0 0 1rem; padding: 0.65rem 0.95rem; border-radius: var(--radius-s); background: var(--akzent-weich); color: var(--tinte); font-size: 0.95rem; }
.vormerkung a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; color: var(--akzent-dunkel); font-weight: 650; text-decoration: underline; text-underline-offset: 0.15em; }
@media (max-width: 640px) {
    .ohne-netz__knopf { min-height: 44px; }
}

/* Fette Namen ohne Zutat (R3-5): ruhige Zeile unter der Zubereitung, nur fuer wer bearbeiten darf */
.ohne-zutat { margin-top: 1.6rem; display: flex; gap: 0.6rem; align-items: flex-start; max-width: 70ch; font-size: 0.95rem; color: var(--tinte-2); }
.ohne-zutat .icon { margin-top: 0.15em; color: var(--tinte-3); }
/* Tippflaeche 44 px ueber Innenabstand, ohne die Zeilenhoehe zu aendern */
.ohne-zutat a { padding-block: 0.75rem; color: var(--akzent); font-weight: 650; text-decoration: underline; text-underline-offset: 0.15em; white-space: nowrap; }

/* ---------- Schmal ---------- */
@media (max-width: 860px) {
    :root { --rand: 16px; }
    .rezeptkopf { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
    .rezeptkopf__bild { order: -1; margin: 0 calc(var(--rand) * -1); }
    .rezeptkopf__bild img { border-radius: 0; box-shadow: none; }
    .rezeptkopf__bild figcaption { padding: 0 var(--rand); }
    .rezeptkoerper { grid-template-columns: 1fr; gap: 2.25rem; }
    .zutaten { position: static; }
    .zurueck--schwebend { position: absolute; top: 12px; left: 12px; z-index: 5; width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--papier) 88%, transparent); backdrop-filter: blur(8px); color: var(--tinte); }
    .zurueck--schwebend span { display: none; }
    .seite.rezeptseite { position: relative; padding-block-start: 0; }
    .rezeptseite .rezeptkopf { margin-top: 0; }
}

@media (max-width: 640px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .kopf__innen { flex-wrap: wrap; gap: 0.5rem 0.75rem; padding-block: 0.55rem 0.7rem; min-height: 0; }
    .kopf__aktionen .nur-breit { display: none; }
    .suche { order: 3; flex-basis: 100%; max-width: none; }
    .kopf__aktionen { margin-left: auto; }
    .kopf--schlank .suche { display: none; }

    .seite { padding-block-start: 1rem; }
    .leiste { margin: 0 calc(var(--rand) * -1) 1.1rem; }
    .chips { padding: 2px var(--rand); margin: 0; }
    .chip { min-height: 44px; }
    .sortierung { display: none; }
    .rezepte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0.85rem; }
    .karte { gap: 0.5rem; }
    .karte h2 { font-size: 1.05rem; }
    .karte__meta { font-size: 0.86rem; }
    .karte .ueberzeile { font-size: 0.78rem; }

    .aktionen .knopf--haupt { flex: 1; }
    .schritt { grid-template-columns: 2.3rem minmax(0, 1fr); }
    .schritt::before { font-size: 1.7rem; }
    .zutaten { margin: 0 calc(var(--rand) * -1); border-radius: 0; border-left: 0; border-right: 0; padding-left: var(--rand); padding-right: var(--rand); }
    .zutaten__fuss { margin-left: calc(var(--rand) * -1); margin-right: calc(var(--rand) * -1); padding-left: var(--rand); padding-right: var(--rand); }
    .zutat__liste { width: 44px; height: 44px; }
    .zutat { grid-template-columns: 4.4rem minmax(0, 1fr) 44px; }

    .fussleiste {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: grid; grid-template-columns: repeat(3, 1fr);
        padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px);
        border-top: 1px solid var(--linie);
    }
    .fussleiste a { position: relative; display: grid; justify-items: center; gap: 0.1rem; padding: 0.55rem 0 0.5rem; min-height: 64px; color: var(--tinte-3); font-size: 0.8rem; font-weight: 600; }
    .fussleiste a[aria-current="page"] { color: var(--akzent); }
    .fussleiste .icon { width: 1.5rem; height: 1.5rem; }
    .fussleiste .zaehler { position: absolute; top: 0.35rem; left: calc(50% + 0.45rem); min-width: 1.2rem; height: 1.2rem; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Seitentitel ---------- */
.seitentitel { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.seitentitel h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 520; letter-spacing: -0.02em; }
.seitentitel p { color: var(--tinte-2); margin-top: 0.2rem; }
.schmal { max-width: 760px; }

/* ---------- Felder ---------- */
.feld { display: grid; gap: 0.3rem; min-width: 0; }
.feld > span, .feld > label { font-size: 0.86rem; font-weight: 650; color: var(--tinte-2); }
.eingabe {
    width: 100%; min-height: 46px; padding: 0.55rem 0.8rem;
    border: 1px solid var(--linie-stark); border-radius: var(--radius-s);
    background: var(--flaeche); outline-offset: 0;
}
.eingabe::placeholder { color: var(--tinte-3); }
.eingabe:focus-visible { border-color: var(--akzent); outline: 3px solid var(--akzent-weich); }
textarea.eingabe { resize: vertical; line-height: 1.5; }
.eingabe--titel { font-family: var(--schrift-titel); font-size: 1.7rem; font-weight: 540; min-height: 60px; letter-spacing: -0.015em; }
.eingabe--zahl { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Einkaufsliste ---------- */
.hinzu { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.hinzu .eingabe { border-radius: 999px; padding-left: 1.1rem; }
.kaufgruppe { margin-bottom: 1.75rem; }
.kaufgruppe__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--linie-stark); }
.kaufgruppe__kopf h2 { font-size: 1.2rem; }
.kaufgruppe__kopf span { color: var(--tinte-3); font-size: 0.9rem; white-space: nowrap; }
.kaufliste { list-style: none; margin: 0; padding: 0; }
.posten { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 0.35rem; min-height: 56px; border-bottom: 1px solid var(--linie); }
.posten__haken { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.posten__haken input { appearance: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--linie-stark); border-radius: 50%; background: var(--flaeche); cursor: pointer; display: grid; place-items: center; }
.posten__haken input:checked { background: var(--gruen); border-color: var(--gruen); }
.posten__haken input:checked::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--papier); border-bottom: 2.5px solid var(--papier); transform: translateY(-1.5px) rotate(-45deg); }
.posten__text { padding: 0.5rem 0; line-height: 1.3; cursor: text; }
.posten__text strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.posten__text small { display: block; font-size: 0.86rem; color: var(--tinte-3); }
.posten--erledigt .posten__text { color: var(--tinte-3); text-decoration: line-through; }
.posten .knopf--rund { border-color: transparent; background: transparent; color: var(--tinte-3); }
.posten .knopf--rund:hover { color: var(--gefahr); background: var(--flaeche-2); }
.erledigt { margin-top: 2.5rem; }
.erledigt summary { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--tinte-2); font-weight: 650; cursor: pointer; list-style: none; }
.erledigt summary::-webkit-details-marker { display: none; }

/* ---------- Rezeptformular ---------- */
.formular { display: grid; gap: 2.75rem; }
.formblock { display: grid; gap: 1rem; }
.formblock > h2 { font-size: 1.5rem; }
.formkopf { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.5rem; align-items: start; }
.formraster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.bildfeld { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--flaeche-2); border: 1px dashed var(--linie-stark); display: grid; place-items: center; color: var(--tinte-3); cursor: pointer; }
.bildfeld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bildfeld__knopf { position: absolute; right: 0.5rem; bottom: 0.5rem; min-height: 38px; font-size: 0.9rem; padding: 0 0.85rem; }

.zeilen { display: grid; }
.zeile { display: grid; grid-template-columns: 28px 5.2rem 6rem minmax(0, 1fr) 40px; gap: 0.5rem; align-items: center; padding: 0.3rem 0; }
.zeile__griff { color: var(--linie-stark); cursor: grab; display: grid; place-items: center; height: 44px; }
.zeile__griff:hover { color: var(--tinte-2); }
.zeile--gruppe { grid-template-columns: 28px minmax(0, 1fr) 40px; margin-top: 0.8rem; }
.zeile--gruppe .eingabe { font-weight: 700; background: var(--flaeche-2); border-color: transparent; }
.zeile .knopf--rund, .schrittfeld .knopf--rund { width: 40px; min-height: 40px; border-color: transparent; background: transparent; color: var(--tinte-3); }
.zeile .knopf--rund:hover, .schrittfeld .knopf--rund:hover { color: var(--gefahr); background: var(--flaeche-2); }
.zeilen__fuss { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; padding-left: 36px; }
.zeilen__fuss .knopf { min-height: 40px; font-size: 0.95rem; }

.schrittfeld { display: grid; grid-template-columns: 28px 2.4rem minmax(0, 1fr) 40px; gap: 0.5rem; align-items: start; padding: 0.4rem 0; }
.schrittfeld__nr { font-family: var(--schrift-titel); font-size: 1.7rem; line-height: 44px; color: var(--akzent); }
.schrifttext { min-height: 76px; padding: 0.65rem 0.85rem; border: 1px solid var(--linie-stark); border-radius: var(--radius-s); background: var(--flaeche); line-height: 1.55; }
.schrifttext:focus-visible { border-color: var(--akzent); outline: 3px solid var(--akzent-weich); }
.schrifttext strong { font-weight: 700; background: var(--akzent-weich); border-radius: 4px; padding: 0 0.15em; }
.werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.4rem; color: var(--tinte-3); font-size: 0.9rem; }
.werkzeuge .chip { min-height: 34px; padding: 0 0.7rem; font-size: 0.88rem; }

.speicherleiste { position: sticky; bottom: 0; z-index: 20; margin-top: 2rem; padding: 0.75rem 0; background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--linie); display: flex; justify-content: flex-end; gap: 0.6rem; }

@media (max-width: 640px) {
    .formkopf { grid-template-columns: 1fr; }
    .bildfeld { max-width: 220px; }
    .formraster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zeile { grid-template-columns: 22px 4.3rem 4.6rem minmax(0, 1fr) 36px; gap: 0.35rem; }
    .zeile--gruppe { grid-template-columns: 22px minmax(0, 1fr) 36px; }
    .schrittfeld { grid-template-columns: 22px 1.7rem minmax(0, 1fr) 36px; gap: 0.35rem; }
    .zeilen__fuss { padding-left: 0; }
    .eingabe { padding-inline: 0.6rem; }
    .eingabe--titel { font-size: 1.4rem; }
    .speicherleiste { bottom: calc(64px + env(safe-area-inset-bottom)); margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); }
    .speicherleiste .knopf--haupt { flex: 1; }
    body.ohne-fussleiste { padding-bottom: 0; }
    body.ohne-fussleiste .fussleiste { display: none; }
    body.ohne-fussleiste .speicherleiste { bottom: 0; padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
}

/* ================================================================== */
/* Ab hier: Bausteine der echten Seiten (nicht im Entwurf enthalten)   */
/* ================================================================== */

.sprung { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; border-radius: var(--radius-s); background: var(--tinte); color: var(--papier); font-weight: 650; }
.sprung:focus { top: 0.5rem; }

.knopf--gefahr { background: var(--gefahr); border-color: var(--gefahr); color: var(--papier); }
.knopf--gefahr:hover { border-color: var(--gefahr); filter: brightness(0.92); }
.textknopf { border: 0; padding: 0; background: none; color: var(--akzent); font-weight: 650; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; min-height: 0; }
.kleintext { font-size: 0.88rem; color: var(--tinte-3); display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.kleintext .icon { width: 1.05em; height: 1.05em; }
.fussnote { margin-top: 2.5rem; font-size: 0.86rem; color: var(--tinte-3); }
.hinweis { margin-bottom: 1.25rem; padding: 0.7rem 1rem; border-radius: var(--radius-s); background: var(--akzent-weich); color: var(--tinte); }
.trefferzeile { margin: -0.5rem 0 1.25rem; color: var(--tinte-2); }
.trefferzeile a { margin-left: 0.6rem; color: var(--akzent); font-weight: 650; text-decoration: underline; text-underline-offset: 0.15em; }
.teilen-hinweis { color: var(--gruen); font-weight: 650; font-size: 0.95rem; }
.teilen-hinweis:empty { display: none; }
.leer { display: grid; justify-items: center; gap: 0.9rem; padding: 4rem 1rem; text-align: center; color: var(--tinte-2); }
.leer h1 { font-size: 1.8rem; color: var(--tinte); }
.leer p { max-width: 40ch; }

/* Meldungen */
.meldungen { display: grid; gap: 0.5rem; padding-top: 1rem; }
.meldung { padding: 0.7rem 1rem; border-radius: var(--radius-s); border: 1px solid var(--linie); background: var(--flaeche); font-weight: 600; }
.meldung--success { border-color: transparent; background: var(--gruen-weich); color: var(--gruen); }
.meldung--danger { border-color: transparent; background: color-mix(in srgb, var(--gefahr) 12%, var(--flaeche)); color: var(--gefahr); }
.meldung ul { margin: 0.3rem 0 0; padding-left: 1.1rem; font-weight: 500; }

/* Menues (details) */
.menue { position: relative; }
.menue > summary { list-style: none; cursor: pointer; }
.menue > summary::-webkit-details-marker { display: none; }
.menue__flaeche { position: absolute; z-index: 50; top: calc(100% + 0.4rem); left: 0; min-width: 15rem; padding: 0.4rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); box-shadow: var(--schatten); display: grid; gap: 0.1rem; }
.menue--rechts .menue__flaeche { left: auto; right: 0; }
.menue__kopf { display: grid; padding: 0.5rem 0.7rem 0.6rem; border-bottom: 1px solid var(--linie); margin-bottom: 0.3rem; }
.menue__kopf span { font-size: 0.88rem; color: var(--tinte-3); }
.menue__form { padding: 0.4rem 0.7rem 0.7rem; border-bottom: 1px solid var(--linie); margin-bottom: 0.3rem; display: grid; gap: 0.5rem; }
.menue__eintrag { display: flex; align-items: center; gap: 0.65rem; width: 100%; min-height: 44px; padding: 0 0.7rem; border: 0; border-radius: var(--radius-s); background: none; color: var(--tinte); font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; }
.menue__eintrag:hover { background: var(--flaeche-2); }
.menue__eintrag .icon { color: var(--tinte-3); }
.menue__eintrag--gefahr, .menue__eintrag--gefahr .icon { color: var(--gefahr); }
.menue form { margin: 0; }

/* Dialog */
.dialog { width: min(100% - 2rem, 26rem); padding: 1.4rem; border: 1px solid var(--linie); border-radius: 18px; background: var(--flaeche); color: var(--tinte); box-shadow: var(--schatten); }
.dialog--breit { width: min(100% - 2rem, 34rem); }
.dialog::backdrop { background: rgba(20, 14, 8, 0.5); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.dialog p { color: var(--tinte-2); }
.dialog textarea { margin-top: 0.9rem; }
.dialog__aktionen { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }

/* Filter rechts neben den Chips */
.feinfilter { display: flex; align-items: center; gap: 0.25rem; margin: 0; }
.auswahl select { min-height: 40px; max-width: 11.5rem; padding: 0 0.4rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--tinte-2); font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.auswahl select:hover { border-color: var(--linie); color: var(--tinte); }

/* Anmeldung */
.anmeldung { display: grid; place-items: start center; padding-top: clamp(2rem, 10vh, 6rem); padding-bottom: 3rem; }
.anmeldung__flaeche { width: min(100%, 25rem); display: grid; gap: 1rem; }
.anmeldung__flaeche h1 { font-size: 2.2rem; font-weight: 520; }
.anmeldung__text { color: var(--tinte-2); margin-top: -0.5rem; }
.anmeldung__form { display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.anmeldung__aktionen { display: flex; justify-content: flex-end; gap: 0.6rem; }
.anmeldung .knopf--gross { width: 100%; }

/* Rezeptseite: Ergaenzungen */
.rezeptkopf--ohne-bild { grid-template-columns: 1fr; margin-top: 1.5rem; }
.zutat__form { margin: 0; justify-self: end; }
.zutaten__original { margin: -0.3rem 0 0.6rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-s); background: var(--akzent-weich); font-size: 0.92rem; }
.zutaten__fuss form { margin: 0; }
.eckdaten .sterne { color: var(--akzent); }
.eckdaten .sterne .icon { color: var(--akzent); fill: currentColor; stroke: none; }
.schritte__gruppe { margin-top: 0.6rem; }
.notiz p { color: var(--tinte-2); }

/* Kochmodus: immer dunkel, grosse Schrift, grosse Tippflaechen */
body.kocht { overflow: hidden; }
.kochmodus { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: #15120e; color: #f2ebe0; --tinte: #f2ebe0; --tinte-2: #c2b6a4; --tinte-3: #9b8f7e; --linie: #383127; --linie-stark: #4d4437; --flaeche: #1e1a15; --flaeche-2: #29241d; --akzent: #ec7c54; --akzent-dunkel: #f39a78; --akzent-tinte: #1c110a; --papier: #15120e; --gruen: #86c9a9; }
.kochmodus[hidden] { display: none; }
.kochmodus__kopf { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; padding-top: calc(0.7rem + env(safe-area-inset-top)); border-bottom: 1px solid var(--linie); }
.kochmodus__titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.kochmodus__wach { font-size: 0.8rem; color: var(--gruen); border: 1px solid color-mix(in srgb, var(--gruen) 40%, transparent); border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; }
.kochmodus__zu { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linie-stark); border-radius: 50%; background: transparent; color: var(--tinte); cursor: pointer; }
.kochmodus__inhalt { flex: 1; overflow-y: auto; width: 100%; max-width: 900px; margin: 0 auto; padding: clamp(1.4rem, 5vw, 3.5rem) clamp(1.1rem, 5vw, 3rem); display: flex; flex-direction: column; gap: 1.5rem; cursor: pointer; }
.kochmodus__zaehler { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--akzent); font-variant-numeric: tabular-nums; }
.kochmodus__schritt { font-family: var(--schrift-titel); font-size: clamp(1.55rem, 3.6vw, 2.5rem); font-weight: 420; line-height: 1.35; letter-spacing: -0.01em; }
.kochmodus__schritt strong, .kochmodus__schritt b { font-weight: 620; color: #f6c9a4; }
.kochmodus__zutaten { border-top: 1px solid var(--linie); padding-top: 1.2rem; cursor: default; }
.kochmodus__zutaten .ueberzeile { margin-bottom: 0.7rem; }
.kochmodus__liste { display: grid; gap: 0.5rem; }
.koch-zutat { display: flex; align-items: center; gap: 0.9rem; min-height: 56px; padding: 0.6rem 1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); font-size: clamp(1.05rem, 2vw, 1.25rem); cursor: pointer; }
.koch-zutat__haken { width: 26px; height: 26px; flex: none; border: 2px solid var(--linie-stark); border-radius: 50%; display: grid; place-items: center; }
.koch-zutat__name { flex: 1; }
.koch-zutat__menge { color: var(--tinte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.koch-zutat--fertig { opacity: 0.5; }
.koch-zutat--fertig .koch-zutat__name { text-decoration: line-through; }
.koch-zutat--fertig .koch-zutat__haken { background: var(--gruen); border-color: var(--gruen); }
.koch-zutat--fertig .koch-zutat__haken::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #15120e; border-bottom: 2.5px solid #15120e; transform: translateY(-1.5px) rotate(-45deg); }
.kochmodus__fuss { padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); display: grid; gap: 0.8rem; }
.kochmodus__fortschritt { display: flex; gap: 0.3rem; max-width: 900px; width: 100%; margin: 0 auto; }
.koch-punkt { flex: 1; height: 4px; border-radius: 999px; background: var(--linie-stark); }
.koch-punkt--an { background: var(--akzent); }
.kochmodus__knoepfe { display: flex; gap: 0.7rem; max-width: 900px; width: 100%; margin: 0 auto; }
.kochmodus__knoepfe .knopf { flex: 1; min-height: 58px; background: var(--flaeche-2); border-color: var(--linie-stark); color: var(--tinte); }
.kochmodus__knoepfe .knopf--haupt { flex: 1.6; background: var(--akzent); border-color: var(--akzent); color: var(--akzent-tinte); }
.kochmodus__knoepfe .knopf:disabled { opacity: 0.35; cursor: default; }

/* Einkaufsliste: Ergaenzungen */
.posten__text { display: block; width: 100%; border: 0; background: none; text-align: left; color: inherit; min-height: 44px; }
.posten__weg { margin: 0; }
.posten__bearbeiten { grid-column: 1 / -1; display: grid; grid-template-columns: 6rem 7rem minmax(0, 1fr); gap: 0.6rem; padding: 0.4rem 0 1rem 44px; margin: 0; }
.posten__feld-breit { grid-column: span 3; }
.posten__feld-breit:first-of-type { grid-column: auto; }
.posten__knoepfe { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 0.5rem; }
.erledigt .icon { transition: transform 0.15s ease; }
.erledigt:not([open]) summary .icon { transform: rotate(-90deg); }
.kaufgruppe__kopf h2 a:hover { text-decoration: underline; }

/* Rezeptformular: Ergaenzungen und endgueltige Zeilen */
.formularseite { max-width: 900px; }
.formular { margin-top: 0.75rem; }
.feld--halb { grid-column: span 2; }
.feld--voll { grid-column: 1 / -1; }
.feld > legend { font-size: 0.86rem; font-weight: 650; color: var(--tinte-2); padding: 0; }
fieldset.feld { border: 0; margin: 0; padding: 0; }
.bewertung { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 1rem; }
.bewertung legend { float: left; margin-right: 0.3rem; }
.bewertung__wahl { display: inline-flex; flex-direction: row-reverse; }
.bewertung__wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bewertung__wahl label { width: 40px; height: 40px; display: grid; place-items: center; color: var(--linie-stark); cursor: pointer; }
.bewertung__wahl label .icon { width: 1.6rem; height: 1.6rem; }
.bewertung__wahl input:checked ~ label, .bewertung__wahl label:hover, .bewertung__wahl label:hover ~ label { color: var(--akzent); }
.bewertung__wahl input:checked ~ label .icon { fill: currentColor; }
.bewertung__wahl input:focus-visible + label { outline: 2.5px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
.bewertung__keine, .haken { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; color: var(--tinte-2); font-size: 0.95rem; cursor: pointer; }
.bewertung__keine input, .haken input { width: 18px; height: 18px; accent-color: var(--akzent); }
.bildwahl { gap: 0.5rem; }
.bildfeld__leer { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.bildfeld:focus-within { outline: 2.5px solid var(--akzent); outline-offset: 2px; }
.bildadresse summary { min-height: 40px; display: flex; align-items: center; color: var(--tinte-2); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.bildadresse .eingabe { margin-bottom: 0.4rem; }

.zeile { grid-template-columns: 28px 5.2rem 6.2rem minmax(0, 1fr) 40px 40px; }
.zeile__griff { border: 0; background: none; padding: 0; touch-action: none; }
.zeile__fest { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--linie-stark); cursor: pointer; position: relative; }
.zeile__fest input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.zeile__fest:has(input:checked) { color: var(--gruen); background: var(--gruen-weich); }
.zeile__fest:has(input:focus-visible) { outline: 2.5px solid var(--akzent); outline-offset: 2px; }
.zeile--gruppe { grid-template-columns: 28px minmax(0, 1fr) 40px; }
.zeile--gruppe .zeile__menge, .zeile--gruppe .zeile__einheit, .zeile--gruppe .zeile__fest { display: none; }
.zeile--zieht, .schrittfeld--zieht { opacity: 0.55; background: var(--flaeche-2); border-radius: var(--radius-s); }

.schrittfeld__mitte { min-width: 0; }
.schrittfeld--gruppe .schrittfeld__nr { visibility: hidden; }
.schrittfeld--gruppe .eingabe, .schrittfeld--gruppe .schreibfeld { font-weight: 700; background: var(--flaeche-2); border-color: transparent; min-height: 46px; }
.schreibfeld { min-height: 64px; padding: 0.65rem 0.85rem; border: 1px solid var(--linie-stark); border-radius: var(--radius-s); background: var(--flaeche); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.schreibfeld:empty::before { content: attr(data-platzhalter); color: var(--tinte-3); }
.schreibfeld:focus-visible { border-color: var(--akzent); outline: 3px solid var(--akzent-weich); }
.schreibfeld strong, .schreibfeld b { font-weight: 700; background: var(--akzent-weich); border-radius: 4px; padding: 0 0.15em; }
.werkzeuge { position: sticky; top: 64px; z-index: 10; margin: 0; padding: 0.4rem 0; background: var(--papier); }
.werkzeuge .chip { min-height: 38px; gap: 0.35rem; background: var(--flaeche); }

@media (max-width: 860px) {
    .feinfilter .auswahl select { max-width: 9.5rem; }
}

@media (max-width: 640px) {
    .leiste { flex-wrap: wrap; gap: 0.4rem; }
    .leiste .chips { flex-basis: 100%; }
    .feinfilter { padding: 0 var(--rand); width: 100%; justify-content: space-between; }
    .sortierung { display: none; }
    .menue__flaeche { min-width: 14rem; }
    .aktionen .menue:last-of-type .menue__flaeche { left: auto; right: 0; }
    .rezeptkopf__text { padding-top: 0.25rem; }
    .posten__bearbeiten { grid-template-columns: 5rem minmax(0, 1fr); padding-left: 0; }
    .posten__feld-breit, .posten__feld-breit:first-of-type { grid-column: 1 / -1; }
    .feld--halb { grid-column: span 1; }
    .werkzeuge { top: 0; }
    .werkzeuge .kleintext { display: none; }
    /* Zutatenzeile zweizeilig: oben der Name, darunter Menge und Einheit */
    .zeile { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 40px 40px; grid-template-areas: "griff name name name weg" ". menge einheit fest ."; row-gap: 0.3rem; padding: 0.45rem 0; border-bottom: 1px solid var(--linie); }
    .zeile > .zeile__griff { grid-area: griff; }
    .zeile__name { grid-area: name; }
    .zeile__menge { grid-area: menge; }
    .zeile__einheit { grid-area: einheit; }
    .zeile__fest { grid-area: fest; }
    .zeile > .knopf--rund { grid-area: weg; }
    .zeile--gruppe { grid-template-columns: 24px minmax(0, 1fr) 40px; grid-template-areas: "griff name weg"; }
    .kochmodus__wach { display: none; }
}

/* ---------- Nutzerverwaltung (R3-1) ---------- */
.knopf--warnung { color: var(--gefahr); }
.knopf:disabled { opacity: 0.45; cursor: default; }
.knopf:disabled:active { transform: none; }
.marke-klein { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 0.6rem; border-radius: 999px; background: var(--flaeche-2); color: var(--tinte-2); font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.nutzer-neu { margin-bottom: 2rem; }
.nutzer-neu > summary { list-style: none; }
.nutzer-neu > summary::-webkit-details-marker { display: none; }
.nutzer-neu[open] > summary { display: none; }
.nutzer-neu__form { display: grid; gap: 0.9rem; padding: 1.3rem 1.4rem; border: 1px solid var(--linie); border-radius: 18px; background: var(--flaeche); }
.nutzer-neu__knoepfe { display: flex; justify-content: flex-end; gap: 0.6rem; }
.nutzerliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie-stark); }
.nutzer { border-bottom: 1px solid var(--linie); }
.nutzer__kopf { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; align-items: center; gap: 0.75rem; min-height: 64px; padding: 0.5rem 0; list-style: none; cursor: pointer; }
.nutzer__kopf::-webkit-details-marker { display: none; }
.nutzer__kopf:hover .nutzer__text strong { text-decoration: underline; text-decoration-color: var(--akzent); text-underline-offset: 0.18em; }
.nutzer__zeichen { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--tinte-2); font-weight: 700; }
.nutzer__text { display: grid; min-width: 0; line-height: 1.3; }
.nutzer__text strong { font-weight: 650; }
.nutzer__text > span { font-size: 0.9rem; color: var(--tinte-3); overflow-wrap: anywhere; }
.nutzer__du { font-weight: 500; color: var(--tinte-3); }
.nutzer__auf { grid-column: 4; width: 44px; height: 44px; display: grid; place-items: center; color: var(--tinte-3); }
.nutzer__auf .icon { transition: transform 0.15s ease; }
.nutzer details[open] .nutzer__auf .icon { transform: rotate(180deg); }
.nutzer--gesperrt .nutzer__zeichen, .nutzer--gesperrt .nutzer__text strong { color: var(--tinte-3); }
.nutzer__formulare { display: grid; gap: 1rem; padding: 0.25rem 0 1.4rem calc(44px + 0.75rem); }
.nutzer__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.6rem; margin: 0; }
.nutzer__aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nutzer__aktionen form { margin: 0; }

@media (max-width: 640px) {
    .nutzer-neu__form { margin: 0 calc(var(--rand) * -1); padding-inline: var(--rand); border-radius: 0; border-left: 0; border-right: 0; }
    .nutzer-neu__felder .feld--halb { grid-column: 1 / -1; }
    .nutzer-neu__knoepfe .knopf { flex: 1; }
    .nutzer__formulare { padding-left: 0; }
    .nutzer__zeile { grid-template-columns: 1fr; }
    .nutzer__zeile .knopf, .nutzer__aktionen .knopf, .nutzer__aktionen form { width: 100%; }
}

/* ---------- Rezept von einer Webseite übernehmen (R3-2) ---------- */
.uebernahme { display: grid; gap: 0.45rem; margin: 0.25rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--linie); }
.uebernahme__titel { font-size: 0.86rem; font-weight: 650; color: var(--tinte-2); }
.uebernahme__zeile { display: flex; gap: 0.5rem; }
.uebernahme__zeile .eingabe { flex: 1; min-width: 0; border-radius: 999px; padding-left: 1.1rem; }
.uebernahme .knopf[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.meldung--success ul { color: var(--tinte-2); }
@media (max-width: 640px) {
    .uebernahme__zeile { flex-wrap: wrap; }
    .uebernahme__zeile .eingabe { flex-basis: 100%; }
    .uebernahme__zeile .knopf { flex: 1; }
}

/* ---------- Timer im Kochmodus (R3-3) ---------- */
.kochmodus__zeiten { display: flex; flex-wrap: wrap; gap: 0.6rem; cursor: default; }
.kochmodus .koch-zeit { min-height: 48px; background: var(--flaeche-2); border-color: var(--linie-stark); color: var(--tinte); font-variant-numeric: tabular-nums; }
.kochmodus .koch-zeit .icon { color: var(--akzent); }
.kochmodus .koch-zeit:hover { border-color: var(--akzent); }
.kochmodus .koch-zeit:disabled { opacity: 0.6; cursor: default; }
.kochmodus__timer { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.koch-timer { display: flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0.3rem 0.35rem 0.3rem 0.9rem; border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--papier); }
.koch-timer > .icon { color: var(--akzent); }
.koch-timer__info { display: grid; line-height: 1.15; }
.koch-timer__name { font-size: 0.82rem; font-weight: 600; color: var(--tinte-2); }
.koch-timer__zeit { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.koch-timer__aus { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-width: 44px; height: 44px; padding: 0 0.6rem; border: 0; border-radius: 999px; background: transparent; color: var(--tinte-2); font-weight: 700; cursor: pointer; }
.koch-timer__aus:hover { background: var(--flaeche-2); color: var(--tinte); }
.koch-timer__aus-text:empty { display: none; }
.koch-timer--fertig { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-tinte); animation: timer-puls 1s ease-in-out infinite alternate; }
.koch-timer--fertig > .icon, .koch-timer--fertig .koch-timer__name { color: var(--akzent-tinte); }
.koch-timer--fertig .koch-timer__aus { background: var(--akzent-tinte); color: var(--akzent); padding: 0 0.9rem; }
@keyframes timer-puls { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--akzent) 60%, transparent); } to { box-shadow: 0 0 0 8px color-mix(in srgb, var(--akzent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .koch-timer--fertig { animation: none; } }
@media (max-width: 640px) {
    .kochmodus__timer { padding: 0.5rem var(--rand); }
    .koch-timer { flex: 1 1 100%; }
    .koch-timer__info { flex: 1; }
}
@media (min-width: 641px) {
    /* Timerleiste auf die Breite des Schritttexts ausrichten */
    .kochmodus__timer { padding-inline: max(1rem, calc((100% - 900px) / 2 + clamp(1.1rem, 5vw, 3rem))); }
}

/* ---------- Einkaufsliste zusammengefasst (R3-4) ---------- */
.sichtwahl { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.5rem 0 1.25rem; }
.posten--sammel .posten__text { cursor: default; }
.posten__anzahl { justify-self: center; color: var(--tinte-3); font-size: 0.86rem; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .sichtwahl .chip { flex: 1; justify-content: center; }
}
