/* Familien-App – Oberfläche nach Mockup V7, Farben nach Spezifikation 02.6 (WCAG 2.2 AA).
   Keine Inline-Styles: alle Gestaltung steht hier. Breakpoints in em (1 em = 16 px), Teil 02.5:
   XS < 37,5 em · S 37,5–56,25 em · M 56,25–80 em · L ab 80 em. */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --weiss: #ffffff;
  --text: #2d2a26;
  --text-2: #6b6358;
  --primary: #2f5d50;
  --primary-hell: #dfeae6;
  --accent: #b5482f;
  --star: #8a6508;
  --ok-text: #1a7431;
  --ok-bg: #e6f4ea;
  --info-text: #1a56a8;
  --info-bg: #e8f0fe;
  --err-text: #b3261e;
  --err-bg: #fdecea;
  --note-bg: #fff7e6;
  --note-border: #f0d9a8;
  --warn-text: #8a5a00;
  --tag-text: #2f5d50;
  --tag-bg: #e3efe9;
  --control-border: #8a8276;
  --line: #e6ddcf;
  --steps-bg: #efe8dc;
  --th-bg: #f3ece1;
  --focus: #1a56a8;
  --seite-breit: 220px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; margin: 0; }
body {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.rz-nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rz-sprung {
  position: absolute; left: 8px; top: -80px; z-index: 50;
  background: var(--surface); color: var(--primary); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.rz-sprung:focus { top: 8px; }

/* Kopfzeile */
.rz-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 4px 16px; background: var(--primary); color: var(--weiss); font-weight: 600;
}
.rz-top a { color: var(--weiss); }
.rz-top :focus-visible { outline-color: var(--weiss); }
.rz-marke { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; text-decoration: none; }
.rz-markt { margin-left: auto; font-weight: 400; }
.rz-aufklapp { position: relative; }
.rz-aufklapp > summary {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  border-radius: 8px; cursor: pointer; list-style: none;
}
.rz-aufklapp > summary::-webkit-details-marker { display: none; }
.rz-testbetrieb > summary { background: var(--note-bg); color: var(--warn-text); font-size: 13px; font-weight: 700; }
.rz-aufklapp-inhalt {
  position: absolute; top: 100%; left: 0; z-index: 30; width: min(320px, 90vw);
  background: var(--surface); color: var(--text); font-weight: 400;
  border: 1px solid var(--control-border); border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}
.rz-aufklapp-inhalt a { color: var(--primary); }
.rz-aufklapp-inhalt :focus-visible { outline-color: var(--focus); }
.rz-aufklapp-inhalt p { margin: 0; }
.rz-rechts { left: auto; right: 0; }

/* Rahmen: Seitenleiste + Inhalt; nur der Inhalt scrollt (BED-11) */
.rz-lay { display: flex; min-height: 0; }
.rz-side {
  width: var(--seite-breit); flex-shrink: 0; overflow-y: auto; padding: 8px 0;
  background: var(--primary); color: var(--primary-hell);
}
.rz-side ul, .rz-mehr-inhalt ul { list-style: none; margin: 0; padding: 0; }
.rz-side a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px;
  color: var(--primary-hell); text-decoration: none; white-space: nowrap;
}
.rz-side a:hover { background: rgba(255, 255, 255, .08); }
.rz-side a.on { background: var(--bg); color: var(--primary); font-weight: 600; }
.rz-side :focus-visible { outline-color: var(--weiss); outline-offset: -4px; }
.rz-side a.on:focus-visible { outline-color: var(--focus); }
.rz-side .rz-badge { margin-left: auto; }
.rz-nav-kurz { display: none; }
.rz-nav-abstand { margin-top: 14px; }
.rz-badge {
  display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--accent); color: var(--weiss); font-size: 13px; font-weight: 700; line-height: 22px; text-align: center;
}
.rz-main { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; }
.rz-main:focus { outline: none; }
.rz-pad { flex: 1; padding: 16px 20px; }
.rz-fuss { padding: 12px 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.rz-fuss a { color: var(--text-2); }
.rz-unten { display: none; }

/* Schrittleiste (Makro schrittleiste) */
.rz-steps { background: var(--steps-bg); padding: 8px 10px; }
.rz-steps ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rz-step {
  flex: 1; text-align: center; padding: 6px 4px; border-radius: 8px; border: 2px solid transparent;
  background: var(--surface); color: var(--text-2); font-size: 14px;
}
.rz-step b { display: block; font-size: 16px; }
.rz-step.on { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.rz-step.done { background: var(--tag-bg); color: var(--primary); }
.rz-step a { display: block; min-height: 44px; color: inherit; text-decoration: none; }
.rz-steps-text { display: none; margin: 0; font-weight: 600; color: var(--primary); }

/* Text und Hinweise */
.rz-h { font-size: 22px; font-weight: 700; margin: 2px 0 12px; }
.rz-grp { font-size: 18px; font-weight: 700; color: var(--primary); margin: 16px 0 8px; }
.rz-sub { color: var(--text-2); font-size: 14px; font-weight: 400; }
.rz-note { background: var(--note-bg); border: 1px solid var(--note-border); border-radius: 9px; padding: 10px 12px; margin: 10px 0; }
.rz-meldung { margin: 0 0 10px; padding: 10px 12px; border-radius: 9px; font-weight: 600; }
.rz-meldung.ok { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-text); }
.rz-meldung.fehler { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-text); }
.rz-kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rz-tag {
  display: inline-block; margin: 4px 4px 0 0; padding: 1px 8px; border-radius: 999px;
  background: var(--tag-bg); color: var(--tag-text); font-size: 13px; font-weight: 700;
}
.rz-tags { margin: 0; }
.rz-stars { color: var(--star); letter-spacing: 1px; }

/* Startseite */
.rz-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; list-style: none; margin: 12px 0; padding: 0; }
.rz-kachel {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none;
}
.rz-kachel b { color: var(--primary); font-size: 18px; }
.rz-kachel-sym { font-size: 28px; }

/* Filter-Chips und Suche */
.rz-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 12px; padding: 0; }
.rz-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--control-border); color: var(--text); font-size: 14px; text-decoration: none;
}
.rz-chip.on { background: var(--primary); border-color: var(--primary); color: var(--weiss); }
.rz-suche { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.rz-suche .rz-feld { flex: 1 1 260px; margin-bottom: 0; }

/* Formulare */
.rz-feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rz-feld label, .rz-label { font-weight: 600; }
fieldset { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; }
legend { padding: 0 4px; }
.rz-feld-zeile { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], select, textarea {
  max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--control-border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit;
}
textarea { width: 100%; min-height: 160px; resize: vertical; }
[aria-invalid="true"] { border: 2px solid var(--err-text); }
.rz-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.rz-check input { width: 22px; height: 22px; flex-shrink: 0; }
.rz-feldfehler { margin: 0; color: var(--err-text); font-size: 14px; font-weight: 600; }
.rz-gesperrt { color: var(--text-2); }
.rz-liste-def { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.rz-liste-def dt { font-weight: 600; }
.rz-liste-def dd { margin: 0; white-space: pre-line; }

/* Knöpfe: Ziele mindestens 44 px, Hauptknöpfe 48 px, Abstand 8 px (BED-17) */
.rz-b {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--primary); border-radius: 8px; background: var(--surface); color: var(--primary);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.rz-b.p { background: var(--primary); color: var(--weiss); }
.rz-big {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px;
  border: 0; border-radius: 10px; background: var(--accent); color: var(--weiss);
  font: inherit; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.rz-big.g { background: var(--primary); }
.rz-b[disabled], .rz-big[disabled] { opacity: .6; cursor: not-allowed; }
.rz-knopfreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.rz-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.rz-btns .rz-b { flex: 1; }

/* Rezeptkarten: Symbol statt Foto, Raster wächst mit (BED-11) */
.rz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.rz-c { display: flex; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.rz-ico {
  position: relative; display: flex; align-items: center; justify-content: center; height: 56px; margin-bottom: 6px;
  border-radius: 8px; background: var(--th-bg); font-size: 30px;
}
.rz-ico.k-pasta { background: #fde6d8; }
.rz-ico.k-suppe { background: #e8efd9; }
.rz-ico.k-fleisch { background: #ecdcd0; }
.rz-ico.k-fisch { background: #dcecf2; }
.rz-ico.k-vegetarisch { background: #e3efd6; }
.rz-ico.k-backen { background: #f3e3cf; }
.rz-ico.k-fruehstueck { background: #fbeccd; }
.rz-ico.k-dessert { background: #fbe1dc; }
.rz-ico.k-sonst { background: #f3ece1; }
.rz-ico.hat-bild { height: 130px; padding: 0; overflow: hidden; font-size: 0; }
.rz-ico .rz-bild { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.rz-detail-bild { margin: 0 0 10px; max-width: 360px; }
.rz-detail-bild img { width: 100%; height: auto; border-radius: 10px; display: block; border: 1px solid var(--line); }
.rz-detail-bild figcaption { margin-top: 4px; }
/* Stufe 3: Einkaufen (Produktsuche) + Produktbild in der Liste */
.o2-bild { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; vertical-align: middle; margin-right: 6px; }
.ek-add { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.ek-menge { display: flex; gap: 6px; }
.ek-menge input { width: 68px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; }
.ek-menge select { flex: 1; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ek-paktext { align-self: center; color: var(--text-2); font-size: 14px; white-space: nowrap; }
.rz-portionen { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 12px; }
.rz-portionen input { width: 72px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; }
.ek-korb, .ek-off, .ek-katalog { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.rz-herz-form { position: absolute; top: 2px; right: 2px; margin: 0; }
.rz-herz { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 18px; cursor: pointer; }
.rz-t {
  min-height: 2.6em; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rz-t a { color: var(--text); text-decoration: none; }
.rz-r { margin: 4px 0 0; color: var(--star); font-size: 14px; }
.rz-r .rz-sub { color: var(--text-2); }

/* Zeilen, Tabellen, zwei Spalten */
.rz-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 6px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
}
.rz-wachsen { flex: 1; }
.rz-tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 9px; overflow: hidden; font-size: 15px; }
.rz-tbl th, .rz-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rz-tbl thead th { background: var(--th-bg); font-size: 14px; }
.rz-tbl tbody th { font-weight: 400; }
.rz-vor { color: var(--text-2); text-decoration: line-through; }
.rz-zwei { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.rz-gast-neu { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0; }
.rz-gast-neu label { width: 100%; font-weight: 600; }

/* Stufe M: 56,25 bis unter 80 em */
@media (max-width: 79.99em) {
  :root { --seite-breit: 200px; }
}

/* Stufe S: 37,5 bis unter 56,25 em – schmale Seitenleiste, Symbol mit kurzer Beschriftung */
@media (max-width: 56.24em) {
  :root { --seite-breit: 88px; }
  .rz-side a { position: relative; flex-direction: column; gap: 2px; padding: 10px 4px; font-size: 13px; font-weight: 700; text-align: center; white-space: normal; }
  .rz-side .rz-nav-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .rz-side .rz-nav-kurz { display: block; }
  .rz-side .rz-nav-sym { font-size: 22px; }
  .rz-side .rz-badge { position: absolute; top: 4px; right: 6px; margin: 0; }
  .rz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rz-zwei { grid-template-columns: 1fr; }
}

/* Stufe XS: unter 37,5 em – untere Leiste mit „Mehr“, eine Spalte, Schritte als Text */
@media (max-width: 37.49em) {
  body { grid-template-rows: auto 1fr auto; }
  .rz-side, .rz-markt, .rz-testbetrieb { display: none; }
  .rz-unten { position: relative; display: flex; background: var(--primary); }
  .rz-unten > a, .rz-mehr > summary {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 56px; color: var(--primary-hell); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; list-style: none;
  }
  .rz-mehr { flex: 1; display: flex; }
  .rz-mehr > summary::-webkit-details-marker { display: none; }
  .rz-unten > a.on { background: var(--bg); color: var(--primary); }
  .rz-unten :focus-visible { outline-color: var(--weiss); outline-offset: -4px; }
  .rz-unten .rz-nav-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .rz-unten .rz-nav-kurz { display: block; }
  .rz-unten .rz-badge { position: absolute; top: 4px; right: 8px; }
  .rz-mehr-inhalt {
    position: absolute; bottom: 100%; left: 0; right: 0; z-index: 30; padding: 8px 16px;
    background: var(--surface); color: var(--text); border-top: 2px solid var(--primary);
  }
  .rz-mehr-inhalt a { display: flex; align-items: center; gap: 8px; min-height: 48px; color: var(--primary); text-decoration: none; }
  .rz-mehr-inhalt .rz-nav-kurz { display: none; }
  .rz-mehr-inhalt :focus-visible { outline-color: var(--focus); }
  .rz-steps ol { display: none; }
  .rz-steps-text { display: block; }
  .rz-grid, .rz-zwei, .rz-knopfreihe { grid-template-columns: 1fr; }
  .rz-pad { padding: 12px 16px; }
  .rz-fuss { padding: 12px 16px; }
}

/* Bewegung reduzieren (BED-25): keine Übergänge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Abschnitt 08: Wochenplan, Einkaufsliste, Bestellungen, Rechtliches ---- */
.o2-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.o2-wochennav, .o2-knoepfe, .o2-aktionen, .o2-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.o2-woche { table-layout: fixed; width: 100%; border-collapse: collapse; background: var(--surface); }
.o2-woche th, .o2-woche td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.o2-woche thead th { background: var(--th-bg); font-weight: 600; }
.o2-woche td.e a { color: var(--text-2); }
.o2-woche th.d { text-align: left; color: var(--primary, #2f5d50); width: 4.5em; }
.o2-woche th.o2-sonntag { color: var(--accent, #b5482f); }
.o2-feld a { display: block; min-height: 44px; color: inherit; overflow-wrap: anywhere; }
.o2-personen { font-size: 13px; font-weight: 700; margin-right: 6px; }
.o2-gaeste { font-size: 13px; font-weight: 700; color: var(--accent, #b5482f); }
.o2-vergangen .o2-feld { opacity: .7; }
.o2-mahlzeit { display: none; font-size: 14px; color: var(--text-2, #6b6358); }
.o2-formular { display: grid; gap: 8px; max-width: 40rem; margin: 8px 0; }
.o2-gruppe { border: 1px solid var(--control-border, #8a8276); border-radius: 9px; padding: 8px; }
.o2-fehler { border-color: var(--err-text, #b3261e); color: var(--err-text, #b3261e); background: var(--err-bg, #fdecea); }
.o2-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o2 button { font: inherit; cursor: pointer; }
.o2 button[disabled] { opacity: .55; cursor: not-allowed; }
.o2 select, .o2 input, .o2 textarea { font: inherit; min-height: 44px; }
@media (max-width: 37.5em) {
  .o2-woche, .o2-woche tbody, .o2-woche tr, .o2-woche th, .o2-woche td { display: block; width: auto; }
  .o2-woche th.d { width: auto; }
  .o2-woche thead { display: none; }
  .o2-mahlzeit { display: block; }
}
/* Einkaufsliste (Task 17): Kästchen „Ersatz ok“ in Zeile mit Text, Vorratszeile nur am Namen durchgestrichen (<s>) */
.o2-aktionen label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.o2-aktionen input[type="checkbox"] { min-height: 0; width: 20px; height: 20px; }
.o2 .rz-vor { text-decoration: none; }
/* E36 Mengen-Vorrat: kompakte „habe ich / genug / brauche doch“-Steuerung je Zutat */
.o2-mv { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.o2-mv-form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.o2-mv-da { white-space: nowrap; }
.o2-mv-form input[type="text"] { width: 4.5rem; min-height: 44px; }
.o2-mv-form select { min-height: 44px; }
.o2-mv-block { margin-top: 20px; }
.o2-mv-reset { margin: 12px 0; }
/* ---- Abschnitt 08 (Task 18): Bestellungen und Rechtsseiten ---- */
.o2 pre.rz-mail { white-space: pre-wrap; overflow-wrap: anywhere; }
.o2 .rz-tbl select, .o2 .rz-tbl input { max-width: 100%; }
.o2-rechtlich { max-width: 50rem; margin: 0 auto; padding: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.o2-entwurf { background: var(--note-bg, #fff7e6); border: 2px solid var(--accent, #b5482f); border-radius: 9px; padding: 8px 12px; font-weight: 700; }
.o2-rechtlich h1 { font-size: 1.5rem; }
/* Übernahme-Hülle (Teilsystem C1): schmale Einzelseite ohne Navigation */
.o2-uebernahme { max-width: 40rem; margin: 0 auto; padding: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.rz-mail { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 1.45; }
.rz-st { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.rz-st.ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-text); }
.rz-st.er { background: var(--info-bg); color: var(--info-text); border-color: var(--info-text); }
.rz-st.no { background: var(--err-bg); color: var(--err-text); border-color: var(--err-text); }
@media (max-width: 37.49em) {
  .o2-tbl, .o2-tbl tbody, .o2-tbl tr, .o2-tbl td { display: block; }
  .o2-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .o2-tbl tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .o2-tbl td { border: 0; padding: 2px 10px; }
  .o2-tbl td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; }
}
.o2-haken { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.o2-haken input { width: 20px; height: 20px; }

/* ---- Teilsystem B: Internet-Treffer und Anbieter-Links (Rezeptsuche) ---- */
.rz-web { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.rz-web-h { font-size: 18px; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.rz-web-hinweis { background: var(--note-bg); border: 1px solid var(--note-border); color: var(--warn-text); padding: 10px 12px; border-radius: 9px; margin: 6px 0 12px; }
.rz-web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; margin: 8px 0 0; padding: 0; }
.rz-web-c { display: flex; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.rz-web-bild { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: var(--steps-bg); }
.rz-web-t { font-size: 16px; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; }
.rz-web-t a { color: var(--text); text-decoration: none; }
.rz-web-t a:hover, .rz-web-t a:focus-visible { text-decoration: underline; }
.rz-web-q { color: var(--text-2); font-size: 14px; margin: 0 0 6px; }
.rz-web-b { font-size: 14px; margin: 0 0 8px; overflow-wrap: anywhere; }
/* Übernahme-Hinweis (Teilsystem C1, BED-40): natives <dialog>, geöffnet von static/app.js */
.rz-dlg { width: min(30em, calc(100% - 32px)); padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.rz-dlg::backdrop { background: rgba(45, 42, 38, .55); }
.rz-dlg .rz-grp { margin-top: 0; }
.rz-dlg ol { padding-left: 22px; margin: 8px 0 12px; }
.rz-dlg li { margin-bottom: 6px; }
.rz-dlg-zu { margin: 12px 0 0; }
.rz-dlg-zu .rz-b { width: 100%; }
.rz-anbieter { margin-top: 24px; }
.rz-anbieter-liste { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
/* EDEKA-Direktlinks (reine Klick-Links) */
.rz-edeka { margin-top: 24px; }
.rz-edeka .rz-chip { overflow-wrap: anywhere; }
.o2-edeka-angebote { margin: 4px 0 12px; }
.o2-aktionen a.o2-edeka { display: inline-flex; align-items: center; min-height: 44px; }
/* Einkaufsliste: eigenen Artikel bearbeiten (natives <details>, aufgeklappt in eigener Zeile) */
.o2-bearbeiten > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--primary); border-radius: 8px; background: var(--surface); color: var(--primary);
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
}
.o2-bearbeiten > summary::-webkit-details-marker { display: none; }
.o2-bearbeiten[open] { flex-basis: 100%; }
@media (max-width: 37.49em) {
  .rz-web-grid { grid-template-columns: 1fr; }
}
/* Einkaufen: Warengruppen-Kacheln + Gruppenansicht */
.ek-kachel { display: block; text-decoration: none; color: inherit; }
.ek-krume { color: var(--text-2); margin: 0 0 10px; }
.ek-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
/* Einkaufen: prominentes Suchfeld der Übersicht + Blättern in den Open-Food-Facts-Treffern (Stufe 2c) */
.ek-suche { margin: 4px 0 20px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ek-suche .rz-grp { margin-top: 0; }
.ek-blaettern { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 16px 0 4px; }
.ek-seite { color: var(--text-2); font-size: 14px; }
