/* Möbelhaus-Optik: Blau, Gelb, Schwarz auf Weiß. Eine Optik für hell und dunkel, bewusst ohne Dunkelmodus. */
:root {
  color-scheme: light;
  --blau: #0058A3;
  --blau-dunkel: #004F93;
  --gelb: #FFDB00;
  --schwarz: #111111;
  --text: #111111;
  --text-2: #484848;
  --text-3: #767676;
  --linie: #DFDFDF;
  --flaeche: #F5F5F5;
  --weiss: #FFFFFF;
  --gruen: #0A8A00;
  --rot: #CC0008;
  --orange: #B35C00;
  --rest-bg: #FFF4B3;
  --box-bg: #E6EEF7;
  --neu-bg: #EAF5E8;
  --fehlt-bg: #FDECEC;
  --radius: 4px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--weiss); }
html.dialog-offen { overflow: hidden; }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; touch-action: manipulation; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--weiss); }
.ic { width: 18px; height: 18px; flex: none; }
.logo { width: 64px; height: auto; flex: none; display: block; }
.logo-gross { width: 120px; }

/* Kopf, reicht unter die Statusleiste des iPhones */
.kopf { background: var(--blau); color: var(--weiss); padding-top: env(safe-area-inset-top, 0px); }
.kopf-innen { max-width: 1480px; margin: 0 auto; padding: 12px var(--gutter-r) 12px var(--gutter-l); display: flex; align-items: center; gap: 14px; }
.kopf-text { flex: 1; min-width: 0; }
.kopf h1 { margin: 0; font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.kopf p { margin: 2px 0 0; color: #DCE8F4; font-size: 14px; }

.leiste { border-bottom: 1px solid var(--linie); background: var(--weiss); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--blau); }
.leiste-innen { max-width: 1480px; margin: 0 auto; padding: 10px var(--gutter-r) 10px var(--gutter-l); display: flex; flex-wrap: wrap; gap: 8px; }
.tagwahl-wrap { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 10px 20px; min-height: 44px; font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-klein { padding: 6px 14px; min-height: 36px; font-size: 13px; }
.btn-schwarz { background: var(--schwarz); color: var(--weiss); }
.btn-schwarz:disabled { background: #929292; cursor: not-allowed; }
.btn-blau { background: var(--blau); color: var(--weiss); }
.btn-weiss { background: var(--weiss); border-color: var(--text-3); }
.btn-geist { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.6); }
@media (hover: hover) {
  .btn-schwarz:not(:disabled):hover { background: #333; }
  .btn-blau:hover { background: var(--blau-dunkel); }
  .btn-weiss:hover { border-color: var(--schwarz); }
  .icon-btn:hover { background: var(--flaeche); color: var(--schwarz); }
  .gericht:hover { text-decoration: underline; }
}
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--text-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.like.an { color: var(--rot); }
.like.an .ic { fill: var(--rot); }
.link { border: 0; background: none; padding: 8px 0; color: var(--blau); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Wochen-Tabs */
.haupt { max-width: 1480px; margin: 0 auto; padding: 14px var(--gutter-r) calc(96px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.wochen-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 2px solid var(--linie); }
.tab-btn { border: 0; background: none; padding: 10px 6px; margin-bottom: -2px; font-weight: 700; color: var(--text-2); border-bottom: 3px solid transparent; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 44px; }
.tab-btn.an { color: var(--schwarz); border-bottom-color: var(--blau); }
.tab-neu { color: var(--blau); }

.status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill.ok { background: var(--neu-bg); color: var(--gruen); }
.pill.warn { background: var(--fehlt-bg); color: var(--rot); }
/* Mehrzeilige Warnung: kleine Ecken statt Pille, damit die Rundung keinen Text anschneidet */
.pill.warn { border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.45; padding: 8px 12px; }
.legende { display: flex; flex-wrap: wrap; gap: 6px; }

/* Woche */
.woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1439px) { .woche { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .woche { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tag { border: 1px solid #C8C8C8; border-radius: var(--radius); background: var(--weiss); display: flex; flex-direction: column; min-width: 0; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.tag.heute { border-color: var(--gelb); box-shadow: 0 0 0 2px var(--gelb); }
.tag.blink { animation: blink .9s ease-out; }
@keyframes blink { 0% { background: var(--rest-bg); } 100% { background: var(--weiss); } }
@media (prefers-reduced-motion: reduce) { .tag.blink { animation: none; } }
.tag-kopf > div { white-space: nowrap; }
.tag-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; background: var(--blau); color: var(--weiss); border-bottom: 4px solid var(--gelb); }
.tag.heute .tag-kopf { background: var(--gelb); color: var(--schwarz); border-bottom-color: var(--blau); }
.tag-kopf .datum { color: #DCE8F4; }
.tag.heute .tag-kopf .datum { color: var(--schwarz); }
.btn-hell { background: var(--weiss); color: var(--blau); }
.tag.heute .btn-hell { background: var(--schwarz); color: var(--weiss); }
.wtag { font-weight: 800; font-size: 18px; }
.datum { color: var(--text-2); }
.heute-mark { background: var(--schwarz); color: var(--gelb); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px; vertical-align: 2px; }

.mahlzeit { position: relative; border-bottom: 1px solid var(--linie); overflow: hidden; }
.mahlzeit .mz { position: relative; z-index: 1; background: var(--weiss); padding: 10px; display: flex; flex-direction: column; gap: 6px; touch-action: pan-y; transition: transform .2s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mahlzeit .mz.zieht { transition: none; }
.mahlzeit.ist-rest .mz { background: #FFFBE0; }
.swipe-hinter { position: absolute; inset: 0; display: none; align-items: center; gap: 8px; padding: 0 18px; font-weight: 800; font-size: 14px; }
.swipe-hinter.links { background: var(--blau); color: var(--weiss); justify-content: flex-start; }
.swipe-hinter.rechts { background: var(--gruen); color: var(--weiss); justify-content: flex-end; }
.mahlzeit.zeige-links .swipe-hinter.links, .mahlzeit.zeige-rechts .swipe-hinter.rechts { display: flex; }
.mahlzeit.bereit .swipe-hinter { font-size: 16px; }
.mahlzeit.bereit .swipe-hinter .ic { width: 22px; height: 22px; }
.wisch-hinweis { display: none; margin: 0; font-size: 12px; color: var(--text-2); flex-basis: 100%; }
.mahlzeit.ist-gekocht .gericht { color: var(--text-2); }
.slot-zeile { display: flex; justify-content: space-between; align-items: center; margin: -6px -6px -4px 0; }
.slot { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.slot-aktionen { display: flex; }
.gericht { all: unset; cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1.3; }
.gericht:focus-visible { outline: 2px solid var(--blau); }
.meta { font-size: 12px; color: var(--text-2); }
.st { color: var(--schwarz); letter-spacing: 1px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badges:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 2px; line-height: 1.3; }
.badge .ic { width: 13px; height: 13px; }
.badge-rest { background: var(--gelb); color: var(--schwarz); }
.badge-box { background: var(--box-bg); color: var(--blau); }
.badge-neu { background: var(--neu-bg); color: var(--gruen); }
.badge-wagen { background: var(--fehlt-bg); color: var(--rot); }
.badge-pruefen { background: #FFF1E0; color: var(--orange); border: 0; cursor: pointer; font-family: inherit; }
.badge-saison { background: var(--neu-bg); color: var(--gruen); }
.icon-btn.wagen { color: var(--rot); }
.icon-btn.wagen .ic { width: 20px; height: 20px; }
.gekocht-info { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--gruen); }
.mahlzeit .btn-schwarz { align-self: flex-start; }

.tag-summe { margin-top: auto; padding: 10px; background: var(--flaeche); display: grid; gap: 8px; }
.summe-zeile { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.summe-zeile.klein { font-size: 12px; color: var(--text-2); }
.bar { height: 6px; background: #E0E0E0; border-radius: 3px; overflow: hidden; margin: 3px 0 2px; }
.bar i { display: block; height: 100%; background: var(--blau); }
.bar i.knapp { background: #E08600; }

/* Handy: Tage untereinander, Tagesleiste springt */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .kopf p { display: none; }
  .logo { width: 52px; }
  .leiste-innen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .leiste-innen::-webkit-scrollbar { display: none; }
  .tagwahl-wrap { display: block; border-top: 1px solid var(--linie); }
  .tagwahl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 6px var(--gutter-r) 8px var(--gutter-l); }
  .chip-tag { border: 1px solid var(--linie); background: var(--weiss); border-radius: var(--radius); padding: 4px 0; min-height: 44px; display: grid; place-items: center; line-height: 1.1; cursor: pointer; }
  .chip-tag b { font-size: 14px; }
  .chip-tag span { font-size: 11px; color: var(--text-2); }
  .chip-tag.heute { border-color: var(--blau); border-width: 2px; }
  .chip-tag.an { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
  .chip-tag.an span { color: #DCE8F4; }
  .legende .badge { display: none; }
  .wisch-hinweis { display: block; }
  .haupt { padding-left: 0; padding-right: 0; }
  .wochen-tabs, .status { margin-left: var(--gutter-l); margin-right: var(--gutter-r); }
  .woche { grid-template-columns: 1fr; gap: 22px; }
  .tag { border-left: 0; border-right: 0; border-radius: 0; box-shadow: 0 -1px 0 var(--linie); }
  .tag-kopf, .mahlzeit .mz, .tag-summe { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .mahlzeit .mz { padding-top: 14px; padding-bottom: 14px; }
  .gericht { font-size: 17px; }
  .icon-btn { width: 44px; height: 44px; }
  .wochen-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab-btn { white-space: nowrap; }
}
@media (pointer: coarse) { .nur-maus { display: none !important; } }

/* Dialog: auf dem Handy als Vollbild-Blatt */
.dialog { border: 0; border-radius: var(--radius); padding: 28px 24px 22px; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.25); color: var(--text); background: var(--weiss); overscroll-behavior: contain; }
.dialog::backdrop { background: rgba(17,17,17,.55); }
@media (max-width: 640px) {
  .dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
  /* kein extra top: das Dialog-Padding enthält die Safe-Area schon */
  .dlg-aktionen { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); background: var(--weiss); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); margin-bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linie); }
  .dlg-aktionen .btn { flex: 1; }
}
.dialog h2 { margin: 0 44px 4px 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.dialog h3 { margin: 22px 0 6px; font-size: 16px; padding-top: 10px; border-top: 4px solid var(--gelb); }
.dialog h4 { margin: 14px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.sub { color: var(--text-2); font-weight: 400; font-size: 13px; }
.dialog p.sub { margin: 0 0 12px; }
.tab-wrap { overflow-x: auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.tab th, .tab td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--linie); }
.tab th { font-size: 12px; color: var(--text-3); }
.tab td:not(:first-child), .tab th:not(:first-child) { text-align: right; white-space: nowrap; }
.tab tr.zwischen td { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding-top: 14px; }
.naehr { font-weight: 700; margin: 10px 0 4px; }
.hinweis { color: var(--text-3); font-size: 12px; margin: 4px 0; }
.schritte { padding-left: 22px; margin: 8px 0; }
.schritte li { margin-bottom: 8px; }
.dlg-aktionen { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.like-gross.an { border-color: var(--rot); color: var(--rot); }
.like-gross.an .ic { fill: var(--rot); }
.liste { padding-left: 18px; }
.liste li { margin-bottom: 4px; }
.warn-text { color: var(--rot); }

/* Segment-Schalter */
/* nur der Frage-Kasten, nicht das Status-Symbol .zs.frage im Rezept */
div.frage { background: var(--flaeche); border-radius: var(--radius); padding: 12px; margin: 10px 0; }
div.frage p { margin: 0 0 8px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--text-3); border-radius: 22px; overflow: hidden; background: var(--weiss); max-width: 100%; }
div.frage .seg { display: grid; width: 100%; }
.seg button { border: 0; background: none; padding: 8px 10px; line-height: 1.2; min-height: 44px; font-weight: 700; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--linie); }
.seg button.an { background: var(--schwarz); color: var(--weiss); }
.seg-klein button { padding: 6px 12px; min-height: 36px; font-size: 13px; }
.seg-klein button.an.kaufen { background: var(--rot); }
.link-zeile { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }

/* Formulare */
.feld { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 4px; }
.dialog input:not([type=checkbox]), .dialog select, .dialog textarea, .sperre-box input:not([type=checkbox]) { border: 1px solid var(--text-3); border-radius: var(--radius); padding: 10px 12px; width: 100%; min-height: 44px; }
.zeile { display: flex; gap: 8px; }
.zeile input { flex: 1; min-width: 0; }
.zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zeile2 > div { min-width: 0; }
.manuell-form { margin: 6px 0 4px; }
fieldset.person { border: 1px solid var(--linie); border-radius: var(--radius); margin: 10px 0; padding: 4px 12px 12px; }
fieldset.person legend { font-weight: 800; padding: 0 4px; }
textarea.md { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px !important; background: var(--flaeche) !important; }
code { background: var(--flaeche); padding: 1px 4px; border-radius: 2px; font-size: 12px; }

.sterne-wahl { display: flex; gap: 4px; margin: 10px 0 16px; }
.stern { font-size: 40px; line-height: 1; border: 0; background: transparent; color: #CCCCCC; cursor: pointer; padding: 2px; min-width: 44px; }
.stern.an { color: var(--gelb); -webkit-text-stroke: 1px var(--schwarz); }

/* Einkaufsliste */
.einkauf { list-style: none; padding: 0; margin: 0; }
.einkauf li { border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 6px; }
.einkauf label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; flex: 1; min-width: 0; }
.einkauf input[type=checkbox] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blau); flex: none; }
.einkauf input:checked + .posten { text-decoration: line-through; color: var(--text-3); }
.einkauf li.manuell > .posten { padding: 10px 0; flex: 1; }
.posten { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.posten .badges { margin-top: 3px; }
.vorratliste { list-style: none; padding: 0; margin: 0; }
.vorratliste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.ordnung { list-style: none; padding: 0; margin: 0; counter-reset: o; }
.ordnung li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 4px 0; border-bottom: 1px solid var(--linie); counter-increment: o; }
.ordnung li > span:first-child::before { content: counter(o) '. '; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ord-knoepfe { display: flex; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 200%); background: var(--schwarz); color: var(--weiss); padding: 12px 18px; border-radius: var(--radius); max-width: calc(100vw - 32px); font-weight: 700; transition: transform .25s; z-index: 50; visibility: hidden; }
.toast.an { transform: translate(-50%, 0); visibility: visible; }

/* Rechnen-Hinweis */
.lade { position: fixed; inset: 0 0 auto; height: calc(4px + env(safe-area-inset-top, 0px)); z-index: 60; pointer-events: none; display: none; }
.lade span { display: block; height: 4px; margin-top: env(safe-area-inset-top, 0px); background: var(--gelb); animation: lade 1s linear infinite; transform-origin: left; }
body.rechnet .lade { display: block; }
body.rechnet { cursor: progress; }
@keyframes lade { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* Sperre */
.sperre { display: none; }
body.gesperrt > :not(.sperre) { display: none !important; }
body.gesperrt .sperre { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; background: var(--blau); padding: 16px var(--gutter-r) 16px var(--gutter-l); }
.sperre-box { background: var(--weiss); border-radius: var(--radius); padding: 28px 24px; width: min(360px, 100%); display: grid; gap: 8px; }
.sperre-box .logo { margin: 0 auto 8px; }
.sperre-box label { font-weight: 700; }
.sperre-box .merken { font-weight: 400; display: flex; gap: 10px; align-items: center; min-height: 44px; }
.sperre-box .merken input { width: 22px; height: 22px; margin: 0; accent-color: var(--blau); }
.fehler { color: var(--rot); min-height: 1.2em; margin: 0; font-size: 13px; }

details.vorrat-da { margin-top: 8px; }
details.vorrat-da summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--blau); min-height: 44px; }
@media (max-width: 640px) { .wochen-tabs { flex-wrap: nowrap; overflow-x: auto; } .tab-btn { white-space: nowrap; } }

/* Leiste: Zähler am Einkaufsliste-Knopf */
.zahl { background: var(--gelb); color: var(--schwarz); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; display: inline-grid; place-items: center; margin-left: 4px; }

/* Einkaufsliste */
.seg-tabs { display: grid; width: 100%; margin: 6px 0 4px; }
.seg-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button .ic { width: 16px; height: 16px; }
.seg-klein button { display: inline-flex; align-items: center; gap: 4px; }
.seg-klein button.an.liste { background: var(--rot); }
.seg-mini button { padding: 4px 10px; min-height: 32px; font-size: 12px; }
.kat-ic { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; color: var(--blau); }
.dialog h4 { display: flex; align-items: center; }
.posten-zeile { flex-direction: column; align-items: stretch !important; }
.pz-oben { display: flex; align-items: center; gap: 6px; }
.posten-zeile .haken { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; flex: 1; min-width: 0; }
.posten-zeile.ist-gekauft .posten b { text-decoration: line-through; color: var(--text-3); }
.posten .menge { font-weight: 400; color: var(--text-2); font-size: 13px; }
.kauf-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 10px 34px; }
.chip-angebot { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--text-3); background: var(--weiss); border-radius: 999px; padding: 4px 12px; min-height: 32px; font-size: 12px; font-weight: 700; cursor: pointer; }
.chip-angebot.an { background: var(--gelb); border-color: var(--schwarz); }
.chip-angebot .ic { width: 14px; height: 14px; }
.pruef-box { background: #FFF6EB; border-radius: var(--radius); padding: 10px 12px; margin: 10px 0; }
.pruef-box p { margin: 0 0 4px; }
.manuell-form { margin: 18px 0 4px; padding-top: 10px; border-top: 4px solid var(--gelb); }
.manuell-form .feld { display: flex; align-items: center; }
.ord-name { display: inline-flex; align-items: center; }
.ordnung li > span:first-child::before { margin-right: 4px; }
.dlg-aktionen.links { justify-content: flex-start; }

/* Status je Zutat im Rezept */
.zs { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; vertical-align: -4px; }
.zs .ic { width: 16px; height: 16px; }
.zs.da { color: var(--gruen); }
.zs.fehlt { color: var(--rot); }
.zs.frage { color: var(--orange); }
.legende-zs { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.posten-zeile.ist-gekauft .posten .sub { text-decoration: none; }
.kauf-info { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.kauf-info::-webkit-scrollbar { display: none; }
.seg-mini { flex: none; }
.seg-mini button { padding: 4px 8px; }
.chip-angebot { flex: none; }
.einkauf input:checked + .posten { text-decoration: none; color: inherit; }

/* Schließen-Knopf: klebt oben rechts im Dialog */
.dlg-leiste { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; z-index: 3; }
.dialog-zu { width: 40px; height: 40px; margin: -10px -10px 0 0; border-radius: 50%; border: 0; background: var(--flaeche); color: var(--schwarz); display: grid; place-items: center; cursor: pointer; }
.dialog-zu:focus:not(:focus-visible) { outline: none; }
.dialog h2:focus { outline: none; }

/* Vorrat: nur Symbole */
.vk { display: inline-flex; gap: 6px; flex: none; }
.vk-btn { width: 44px; height: 40px; border-radius: 999px; border: 1px solid var(--text-3); background: var(--weiss); display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.vk-btn .ic { width: 20px; height: 20px; }
.vk-btn.an.da { background: var(--gruen); border-color: var(--gruen); color: var(--weiss); }
.vk-btn.an.liste { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.pruef-box .sub .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* Wochenansicht */
.like-mark { color: var(--rot); display: inline-grid; place-items: center; width: 28px; height: 40px; }
.like-mark .ic { width: 16px; height: 16px; fill: var(--rot); }
.gaeste-mark { background: var(--weiss); color: var(--blau); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px; vertical-align: 2px; }
.tag.heute .gaeste-mark { background: var(--schwarz); color: var(--gelb); }
.ziel { font-weight: 400; color: var(--text-3); font-size: 11px; margin-left: 4px; }
.ziel.aus { color: var(--orange); }

/* Kochen */
.gaeste-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--flaeche); border-radius: var(--radius); padding: 8px 12px; margin: 12px 0; }
.gaeste-zeile > span:first-child { display: flex; flex-direction: column; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper b { min-width: 24px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.stepper .icon-btn { border: 1px solid var(--text-3); background: var(--weiss); }
.alles-da { display: flex; align-items: center; gap: 6px; color: var(--gruen); font-weight: 700; }
.naehr-tab td:first-child { font-weight: 700; }

/* Suche */
.treffer-liste { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.treffer { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; padding: 8px 10px; border-radius: var(--radius); }
.treffer .ic { margin-top: 2px; }
.treffer.liste { background: var(--fehlt-bg); color: var(--rot); }
.treffer.liste b, .treffer.ok b { color: var(--schwarz); }
.treffer.ok { background: var(--neu-bg); color: var(--gruen); }
.treffer.neu { background: var(--flaeche); color: var(--text-2); }
.manuell-form { margin-top: 10px; padding-top: 0; border-top: 0; }
.manuell-form input[type=search] { -webkit-appearance: none; appearance: none; }

/* Gekaufte Posten und Archiv */
.posten-zeile .chip-angebot { margin-left: auto; }
.chip-angebot { white-space: nowrap; }
.archiv { margin-top: 16px; }
.archiv summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; color: var(--text-2); }
.link-weg { float: right; color: var(--rot); padding: 0; margin-top: -2px; }
.posten-zeile .chip-angebot { min-height: 28px; padding: 2px 9px; font-size: 11px; border-color: var(--linie); color: var(--text-3); font-weight: 700; }
.posten-zeile .chip-angebot .ic { width: 12px; height: 12px; }
.posten-zeile .chip-angebot.an { background: var(--gelb); border-color: var(--gelb); color: var(--schwarz); }
.dialog-zu { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.badge-gast { background: var(--box-bg); color: var(--blau); }

/* Formatierungs-Korrekturen */
/* Legende unter der Zutatentabelle: Symbol direkt am Text, Abstand nur zwischen den Paaren */
.legende-zs { column-gap: 0; }
.legende-zs .zs:not(:first-child) { margin-left: 14px; }
/* Segment-Schalter in Knopf-Schriftgröße, damit „Auch nächste Woche“ auf dem Handy nicht umbricht */
.seg button { font-size: 14px; }
.seg-tabs { margin-bottom: 10px; }
/* „Da?“-Badge ist ein <button>: Text links wie bei den anderen Badges */
.badge-pruefen { text-align: left; }
/* Tageskopf: wird es eng (7 Spalten, „Heute“), rutscht „Tag neu“ rechtsbündig in eine zweite Zeile statt abgeschnitten zu werden */
.tag-kopf { flex-wrap: wrap; row-gap: 6px; }
.tag-kopf .btn { flex: none; margin-left: auto; }
@media (min-width: 1440px) { .tag-kopf .btn-klein { padding-left: 10px; padding-right: 10px; gap: 4px; } }
/* Fokusring auf blauem bzw. gelbem Grund sichtbar */
.kopf :focus-visible, .tag-kopf :focus-visible { outline-color: var(--weiss); }
.tag.heute .tag-kopf :focus-visible { outline-color: var(--schwarz); }
/* Abstand vor „Noch prüfen:“ nach einer Liste */
.dialog ul + p.sub { margin-top: 12px; }
/* keine Doppellinie am Listenende (vor Aktionsleiste bzw. Kastenrand) */
.vorratliste li:last-child { border-bottom: 0; }
/* „Zu Hause“: Posten ohne Haken bekommen denselben Zeilenabstand */
.einkauf li.posten-zeile > .posten { padding: 10px 0; }
/* Reihenfolge: Nummern rechtsbündig, damit Symbole ab „10.“ nicht springen */
.ordnung li > span:first-child::before { display: inline-block; min-width: 1.6em; text-align: right; }
/* „Entfernen“ in Personen-Kasten: gleiche Größe und Höhe wie das Feld-Label */
.link-weg { font-size: 13px; margin-top: 12px; line-height: 1.45; }
@media (max-width: 640px) {
  /* Wochen-Tabs passen nebeneinander, „Nächste Woche planen“ wird nicht abgeschnitten */
  .tab-btn { font-size: 14px; padding-left: 4px; padding-right: 4px; }
}
/* Zutatentabelle: Status-Symbol hängt links neben dem Namen, auch wenn der Name umbricht */
.tab td { vertical-align: baseline; }
.tab td:first-child:has(> .zs) { position: relative; padding-left: 32px; }
.tab td:first-child > .zs { position: absolute; left: 6px; top: 7px; margin: 0; }
@media (max-width: 640px) {
  /* Mengen wie „¼ Dose (95 g)“ dürfen umbrechen, damit „Gesamt“ ohne Seitwärts-Scrollen sichtbar bleibt */
  .tab td:not(:first-child) { white-space: normal; min-width: 4.2em; }
}

/* Vorrat-Knöpfe: feste runde Größe, schrumpfen nicht neben langen Namen */
.vk-btn { flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; -webkit-appearance: none; appearance: none; line-height: 0; }
.vk-btn .ic { display: block; margin: auto; }
.vorratliste li > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* Wischen nach rechts: Auswahl Alternative oder Ausfallen */
.mahlzeit.offen .swipe-hinter.links { display: flex; }
.swipe-hinter.links { padding: 0; gap: 0; align-items: stretch; }
.wisch-knopf { flex: 0 0 105px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: 13px; color: var(--weiss); cursor: pointer; }
.wisch-knopf .ic { width: 22px; height: 22px; }
.wisch-knopf.alt { background: var(--blau); }
.wisch-knopf.aus { background: var(--text-2); }

/* Ausgefallenes Gericht: blass und schmal */
.mahlzeit.ist-aus .mz { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding-top: 6px; padding-bottom: 6px; background: var(--flaeche); opacity: .75; }
.mahlzeit.ist-aus .slot { flex: none; }
.mahlzeit.ist-aus .aus-name { flex: 1 1 120px; min-width: 0; font-size: 13px; color: var(--text-2); text-decoration: line-through; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mahlzeit.ist-aus .aus-tag { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--weiss); border: 1px solid var(--linie); padding: 1px 6px; border-radius: 2px; }
.mahlzeit.ist-aus .btn { min-height: 32px; padding: 4px 12px; font-size: 12px; }
.mahlzeit.ist-aus .swipe-hinter.links { background: var(--blau); color: var(--weiss); padding: 0 18px; }
.aus-hinweis { margin: 0; font-size: 12px; color: var(--text-2); }

/* Einkaufsliste: Zeilen wischen (links = von der Liste nehmen, rechts = zurück) */
.posten-zeile { position: relative; overflow: hidden; }
.posten-zeile .pz-oben { position: relative; z-index: 1; background: var(--weiss); touch-action: pan-y; transition: transform .2s; }
.posten-zeile .pz-oben.zieht { transition: none; }
.pruef-box .posten-zeile .pz-oben { background: transparent; }
.posten-zeile .swipe-hinter { position: absolute; inset: 0; display: none; align-items: center; gap: 8px; padding: 0 16px; font-weight: 800; font-size: 13px; color: var(--weiss); }
.posten-zeile .swipe-hinter.rechts { background: var(--text-2); justify-content: flex-end; }
.posten-zeile .swipe-hinter.links { background: var(--blau); justify-content: flex-start; }
.posten-zeile.zeige-rechts .swipe-hinter.rechts, .posten-zeile.zeige-links .swipe-hinter.links { display: flex; }
.posten-zeile.ist-entfernt .pz-oben { padding: 8px 0; gap: 10px; }
.posten-zeile.ist-entfernt .posten b { color: var(--text-3); font-weight: 700; }
.posten-zeile .pz-oben > .btn { flex: none; }
.treffer-liste.einkauf { gap: 0; }
.treffer-vorrat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.treffer-vorrat > span { flex: 1 1 auto; min-width: 0; }

/* Wischen mit Bestätigung: Knöpfe bleiben stehen, bis man tippt */
.offen-l > .swipe-hinter.links, .offen-r > .swipe-hinter.rechts { display: flex; }
.swipe-hinter.rechts { padding: 0; gap: 0; align-items: stretch; justify-content: flex-end; }
.mahlzeit .swipe-hinter.rechts { background: transparent; }
.posten-zeile .swipe-hinter { padding: 0; align-items: stretch; background: transparent; }
.wisch-knopf.koch { background: var(--gruen); }
.wisch-knopf.streich { background: var(--rot); }
.posten-zeile .wisch-knopf { flex-basis: 96px; font-size: 12px; }
.mahlzeit.ist-aus .swipe-hinter.links { padding: 0; background: transparent; }
/* Gestrichene Artikel: durchgestrichen und blass an ihrem Platz */
.posten-zeile.ist-entfernt .posten b { text-decoration: line-through; color: var(--text-3); }
.posten-zeile.ist-entfernt .posten .sub { color: var(--text-3); }
.posten-zeile.ist-entfernt .pz-oben { padding: 10px 0 10px 34px; }
.posten-zeile .swipe-hinter.rechts, .posten-zeile .swipe-hinter.links { background: transparent; }

/* Fakten zum Gericht */
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0; }
.fakten > div { background: var(--flaeche); border-radius: var(--radius); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.fakten b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Wer isst mit */
.mitesser { border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px 12px; margin: 12px 0; display: grid; gap: 8px; }
.mitesser-kopf { display: flex; flex-direction: column; gap: 2px; }
.mitesser-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--text-3); background: var(--weiss); font-weight: 700; cursor: pointer; color: var(--text-3); text-decoration: line-through; }
.person-chip .ic { width: 16px; height: 16px; }
.person-chip.an { background: var(--blau); border-color: var(--blau); color: var(--weiss); text-decoration: none; }
.gaeste-stepper { margin-left: auto; }
.gaeste-stepper .sub { margin-right: 2px; }

/* Kochen */
.fehlt-box { background: var(--fehlt-bg); border-radius: var(--radius); padding: 2px 12px 10px; margin: 12px 0; }
.fehlt-box h3 { border-top: 0; padding-top: 6px; margin-top: 6px; color: var(--rot); }
.brauchst { list-style: none; padding: 0; margin: 0; }
.brauchst li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.brauchst li b { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brauchst li:last-child { border-bottom: 0; }
.geraete { margin: 0; color: var(--text-2); }
.btn-gross { width: 100%; min-height: 56px; font-size: 17px; margin-top: 16px; }
.btn-gelb { background: var(--gelb); color: var(--schwarz); }
.alle-schritte { margin-top: 14px; }
.alle-schritte summary { cursor: pointer; font-weight: 700; color: var(--blau); min-height: 44px; padding: 10px 0; }

/* Schritt für Schritt: Vollbild mit Karten. Drei Farben: Gelb, Schwarz (weiße Karten), OLED dunkel (dunkle Karten) */
.schritt-modus {
  --sm-grund: #FFDB00; --sm-karte: #fff; --sm-text: #111; --sm-text2: #484848; --sm-linie: #e2e6eb;
  --sm-blau: #0058A3; --sm-blau-d: #004F93; --sm-rot: #CC0008; --sm-rot-text: #CC0008;
  --sm-streifen: #0058A3; --sm-fort: #fff; --sm-fort-fertig: #0058A3; --sm-zu-bg: #0058A3; --sm-zu-fg: #fff; --sm-zu-schatten: 0 2px 0 #004F93;
  --sm-tipp: #e6eef7; --sm-chip: #fff; --sm-timer-bg: #0058A3; --sm-timer-fg: #fff; --sm-timer-ring: #FFDB00; --sm-timer-schatten: 0 3px 0 #004F93;
  --sm-schatten: 0 12px 28px rgba(80,60,0,.22); --sm-rahmen: none; --sm-lob-text: #111; --sm-lob-sub: #0058A3; --sm-mark: #FFDB00;
  position: fixed; inset: 0; z-index: 45; background: var(--sm-grund); color: var(--sm-text); overflow: hidden; overscroll-behavior: contain;
}
.schritt-modus.sm-schwarz { --sm-grund: #000; --sm-fort: #2e2e2e; --sm-fort-fertig: #4da3ff; --sm-zu-bg: #1c1c1c; --sm-zu-fg: #FFDB00; --sm-zu-schatten: none; --sm-schatten: none; --sm-lob-text: #fff; --sm-lob-sub: #FFDB00; }
.schritt-modus.sm-oled { --sm-grund: #000; --sm-karte: #0b0b0b; --sm-text: #f2f2f2; --sm-text2: #a8a8a8; --sm-linie: #262626; --sm-blau: #4da3ff; --sm-rot-text: #ff5a66;
  --sm-streifen: #FFDB00; --sm-fort: #2e2e2e; --sm-fort-fertig: #4da3ff; --sm-zu-bg: #1c1c1c; --sm-zu-fg: #FFDB00; --sm-zu-schatten: none;
  --sm-tipp: #161616; --sm-chip: transparent; --sm-timer-bg: #FFDB00; --sm-timer-fg: #000; --sm-timer-ring: #000; --sm-timer-schatten: none;
  --sm-schatten: none; --sm-rahmen: 1px solid #262626; --sm-lob-text: #fff; --sm-lob-sub: #FFDB00; --sm-mark: #FFDB00; color-scheme: dark; }
.schritt-modus[hidden] { display: none; }
.sm-app { position: absolute; inset: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.sm-leiste { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter-r) 0 var(--gutter-l); }
.sm-fortschritt { flex: 1; display: flex; gap: 5px; }
.sm-fortschritt i { flex: 1; height: 6px; border-radius: 3px; background: var(--sm-fort); transition: background .3s; }
.sm-fortschritt i.fertig { background: var(--sm-fort-fertig); }
.sm-fortschritt i.jetzt { background: var(--sm-rot); }
.sm-zu { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sm-zu-bg); color: var(--sm-zu-fg); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sm-zu-schatten); }
.sm-zu .ic { width: 22px; height: 22px; }
.sm-timer { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px var(--gutter-r) 0 var(--gutter-l); }
.sm-timer:empty { display: none; }
.sm-uhr { display: inline-flex; align-items: center; gap: 8px; background: var(--sm-rot); color: #fff; font-weight: 800; padding: 4px 4px 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.sm-uhr::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: sm-puls 1s ease-in-out infinite; }
.sm-uhr.fertig { animation: puls 1s ease-in-out infinite; }
@keyframes sm-puls { 50% { opacity: .25; } }
@keyframes puls { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sm-uhr.fertig, .sm-uhr::before { animation: none; } .sm-karte { transition: none !important; } }
.sm-uhr button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: inherit; display: grid; place-items: center; cursor: pointer; }
.sm-uhr button .ic { width: 14px; height: 14px; }
.sm-stapel { position: relative; flex: 1; min-height: 0; margin: 14px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sm-karte { position: absolute; inset: 0; background: var(--sm-karte); color: var(--sm-text); border-radius: 18px; border: var(--sm-rahmen); box-shadow: var(--sm-schatten); overflow: hidden; display: flex; flex-direction: column; will-change: transform; transform-origin: 50% 110%; }
.sm-karte::before { content: ""; display: block; height: 8px; background: var(--sm-streifen); flex: none; }
.sm-griff { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--sm-linie); margin: 8px auto 0; flex: none; }
.sm-innen { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 22px; overscroll-behavior: contain; }
.sm-zu-text { position: absolute; left: 0; right: 0; top: -2px; text-align: center; font-size: 13px; font-weight: 800; color: var(--sm-blau); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 3; }
.sm-schwarz .sm-zu-text, .sm-oled .sm-zu-text { color: #FFDB00; }
.sm-nr { margin: 0 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--sm-blau); }
.sm-text { margin: 0 0 16px; font-size: clamp(23px, 6.4vw, 30px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; text-wrap: pretty; }
.sm-text .menge-neu { background: var(--sm-mark); color: #111; padding: 0 4px; border-radius: 4px; }
.sm-text .menge-grund { font-size: .55em; color: var(--sm-text2); }
.sm-liste li { font-size: 17px; border-color: var(--sm-linie); }
.sm-karte .sub, .sm-karte .tab th { color: var(--sm-text2); }
.sm-karte .tab th, .sm-karte .tab td { border-color: var(--sm-linie); }
.sm-oled .aufteilung tr.box td { background: #161616; }
.sm-oled .auf-gewicht { background: #161616; color: var(--sm-text); border: 1px solid #3a3a3a; }
.sm-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-chips li { background: var(--sm-chip); color: var(--sm-blau); border: 2px solid var(--sm-blau); padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.sm-chips b { color: var(--sm-text); }
.sm-timer-btn, .sm-fertig-btn { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--sm-timer-bg); color: var(--sm-timer-fg); font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: var(--sm-timer-schatten); display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.sm-timer-btn::before { content: ""; width: 18px; height: 18px; border: 3px solid var(--sm-timer-ring); border-radius: 50%; box-sizing: border-box; }
.sm-fertig-btn { margin-top: 18px; }
.sm-vorbereitung { display: flex; gap: 10px; align-items: flex-start; background: var(--sm-tipp); border-left: 4px solid var(--sm-rot); padding: 10px 12px; margin: 14px 0 0; border-radius: 0 8px 8px 0; font-size: 15px; }
.sm-vorbereitung b { color: var(--sm-rot-text); }
.sm-vorbereitung .ic { flex: none; margin-top: 2px; color: var(--sm-rot-text); }
.sm-hinweis { margin: 12px 0 0; color: var(--sm-text2); }
.sm-naechster { margin-top: 20px; padding-top: 14px; border-top: 2px dashed var(--sm-linie); color: var(--sm-text2); font-size: 15px; }
.sm-naechster-titel { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sm-blau); }
.sm-naechster p { margin: 4px 0 0; }
.sm-lob { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; text-align: center; background: var(--sm-grund); transition: opacity .4s; }
.sm-lob[hidden] { display: none; }
.sm-lob.weg { opacity: 0; }
.sm-lob-innen { max-width: 340px; padding: 0 24px; animation: sm-rein .45s cubic-bezier(.2,.8,.2,1); }
.sm-lob-zeichen { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sm-rot); color: #fff; margin-bottom: 14px; }
.sm-lob-zeichen .ic { width: 30px; height: 30px; }
.sm-lob-text { font-size: 26px; line-height: 1.25; font-weight: 800; margin: 0; color: var(--sm-lob-text); text-wrap: balance; }
.sm-lob-sub { margin: 10px 0 0; color: var(--sm-lob-sub); font-weight: 700; }
@keyframes sm-rein { from { transform: translateY(20px) scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sm-lob-innen { animation: none; } }
/* Startknopf im Kochen-Dialog zeigt die gewählte Farbe; lange drücken wechselt */
.koch-start { display: flex; align-items: center; justify-content: center; gap: 10px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .15s, background .2s; }
.koch-start.drueckt { transform: scale(.98); }
.koch-stil-name { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.koch-stil-gelb { background: var(--gelb); color: var(--blau); box-shadow: inset 0 0 0 3px var(--blau); }
.koch-stil-gelb .koch-stil-name { background: var(--blau); color: var(--weiss); }
.koch-stil-schwarz { background: #000; color: #fff; }
.koch-stil-schwarz .koch-stil-name { background: #fff; color: #000; }
.koch-stil-oled { background: #0b0b0b; color: var(--gelb); box-shadow: inset 0 0 0 2px #333; }
.koch-stil-oled .koch-stil-name { background: var(--gelb); color: #000; }
.fehlt-box .posten-zeile .pz-oben { background: transparent; }

/* Laufende Kochtimer: oben in der Leiste und in Dialogen */
.timer-leiste { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px var(--gutter-r) 0 var(--gutter-l); max-width: 1480px; margin: 0 auto; }
.timer-leiste[hidden] { display: none; }
.g-uhr { display: inline-flex; align-items: stretch; border-radius: 999px; background: var(--schwarz); color: var(--gelb); max-width: 100%; min-width: 0; }
.g-uhr.fertig { background: var(--rot); color: var(--weiss); animation: puls 1s ease-in-out infinite; }
.g-uhr-auf { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; padding: 8px 6px 8px 12px; min-height: 40px; cursor: pointer; min-width: 0; text-align: left; font-size: 13px; }
.g-uhr-auf .ic { width: 18px; height: 18px; flex: none; }
.g-uhr-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-uhr-text b { font-variant-numeric: tabular-nums; font-size: 15px; }
.g-uhr-weg { border: 0; background: rgba(255,255,255,.15); color: inherit; width: 34px; margin: 4px 4px 4px 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.g-uhr-weg .ic { width: 14px; height: 14px; }
/* Im Dialog: eigene kompakte Zeile über dem Inhalt, scrollt mit und überdeckt nichts */
.dlg-timer { position: static; padding: 0 0 8px; margin: 0 52px 8px 0; border-bottom: 1px solid var(--flaeche); gap: 4px; }
.dlg-timer .g-uhr-auf { min-height: 34px; padding: 5px 4px 5px 10px; font-size: 12px; }
.dlg-timer .g-uhr-text b { font-size: 13px; }
.dlg-timer .g-uhr-weg { width: 28px; }
@media (max-width: 640px) { .timer-leiste:not(.dlg-timer) { padding-top: 6px; } }
.sm-uhr-schritt { width: auto !important; padding: 0 10px; border-radius: 999px !important; font-size: 12px; font-weight: 800; }

/* Angebot beim Hinzufügen und gemerkte Angebote */
.angebot-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.angebot-wahl .seg-mini { display: inline-grid; }
.angebot-preis { flex: 1 1 140px; min-width: 0; border: 1px solid var(--text-3); border-radius: var(--radius); padding: 8px 12px; min-height: 40px; }
.badge-angebot-merk { background: var(--gelb); color: var(--schwarz); white-space: nowrap; }
.posten .sub .badge { vertical-align: 1px; }

/* Einkaufsliste: neuer Kopf */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ek-suche { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; border: 1px solid var(--text-3); border-radius: 999px; padding: 0 4px 0 14px; background: var(--weiss); min-height: 48px; }
.ek-suche:focus-within { border-color: var(--blau); box-shadow: 0 0 0 2px var(--blau); }
.ek-suche > .ic { color: var(--text-3); flex: none; }
.dialog .ek-suche input { border: 0 !important; padding: 10px 0 !important; min-height: 44px; flex: 1; min-width: 0; background: transparent; outline: none; }
.ek-dazu { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--schwarz); color: var(--weiss); display: grid; place-items: center; cursor: pointer; flex: none; }
.ek-optionen { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ek-wahl { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: 1 1 160px; min-width: 0; background: var(--flaeche); border-radius: 999px; padding: 0 12px; min-height: 44px; }
.ek-wahl .ic { width: 16px; height: 16px; color: var(--blau); flex: none; }
.dialog .ek-wahl select { flex: 1; min-width: 0; border: 0 !important; background: transparent; font-weight: 700; font-size: 15px !important; padding: 8px 18px 8px 0 !important; min-height: 44px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ek-wahl::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ek-tipp { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

/* Vorrat prüfen: einklappbar */
details.pruef-box { padding: 0; margin: 12px 0; }
details.pruef-box > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; min-height: 52px; }
details.pruef-box > summary::-webkit-details-marker { display: none; }
details.pruef-box > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .2s; flex: none; }
details.pruef-box[open] > summary::after { transform: rotate(-135deg); }
.pruef-zahl { min-width: 28px; height: 28px; border-radius: 999px; background: var(--orange); color: var(--weiss); font-weight: 800; display: grid; place-items: center; font-size: 13px; padding: 0 6px; flex: none; }
.pruef-text { display: flex; flex-direction: column; }
.pruef-text .sub .ic { width: 13px; height: 13px; vertical-align: -2px; }
details.pruef-box .vorratliste { padding: 0 12px 6px; }

/* Langdruck: keine Textauswahl, Angebots-Fenster */
.posten-zeile .pz-oben { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.angebot-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(17,17,17,.4); display: flex; align-items: flex-end; justify-content: center; }
.as-karte { background: var(--weiss); width: min(480px, 100%); border-radius: 12px 12px 0 0; padding: 18px var(--gutter-r) calc(18px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.as-titel { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 18px; }
.as-maerkte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.as-markt { min-height: 48px; border-radius: var(--radius); border: 1px solid var(--text-3); background: var(--weiss); font-weight: 800; cursor: pointer; }
.as-markt.an { background: var(--gelb); border-color: var(--schwarz); }
.as-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
@media (min-width: 641px) { .as-karte { border-radius: 12px; margin-bottom: 24px; } }

/* Mengen an Sonderwünschen */
.menge-vorn { font-variant-numeric: tabular-nums; color: var(--blau); }
.mini-stepper { display: inline-flex; gap: 2px; flex: none; }
.mini-stepper .icon-btn { width: 36px; height: 36px; border: 1px solid var(--linie); }
.mini-stepper .icon-btn .ic { width: 16px; height: 16px; }

/* Artikel bearbeiten: Menge und Angebot */
.as-label { margin: 14px 0 6px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.as-menge { display: flex; align-items: center; gap: 8px; }
.as-menge .icon-btn { width: 48px; height: 48px; border: 1px solid var(--text-3); flex: none; }
.as-menge input { width: 84px; min-height: 48px; text-align: center; font-size: 20px; font-weight: 800; border: 1px solid var(--text-3); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.as-menge select { min-height: 48px; border: 1px solid var(--text-3); border-radius: var(--radius); padding: 0 10px; font-weight: 700; background: var(--weiss); }
.as-einheit { font-weight: 700; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.as-maerkte.as-4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.as-4 .as-markt { font-size: 14px; padding: 0 4px; }
.as-preis { width: 100%; margin-top: 8px; border: 1px solid var(--text-3); border-radius: var(--radius); padding: 10px 12px; min-height: 48px; }
.angepasst { color: var(--blau); font-weight: 700; }

/* Garzeiten und Ablaufplan */
.brauchst .garzeit { display: block; font-size: 12px; color: var(--text-3); }
.ablauf { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--linie); }
.ablauf li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 8px 0 8px 10px; position: relative; }
.ablauf li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--blau); }
.ablauf li.passiv::before { background: var(--gelb); border: 2px solid var(--schwarz); width: 9px; height: 9px; }
.ab-zeit { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--blau); }
.ab-lauf { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--orange); }

/* Kopf-Menü */
.menu-wrap { position: relative; margin-left: auto; flex: none; }
.menu-knopf { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--weiss); display: grid; place-items: center; cursor: pointer; }
.menu-knopf .ic { width: 22px; height: 22px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; background: var(--weiss); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 6px; display: grid; }
.menu[hidden] { display: none; }
.menu button { border: 0; background: none; text-align: left; padding: 12px 14px; min-height: 44px; font: inherit; font-weight: 700; color: var(--schwarz); border-radius: calc(var(--radius) - 2px); cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--flaeche); }
.menu button[data-act="abmelden"] { color: #B3261E; border-top: 1px solid var(--linie); border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px); }

/* Runder Einkaufs-Button unten rechts */
.fab { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--blau); color: var(--weiss); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); cursor: pointer; }
.fab .fab-ic { width: 26px; height: 26px; }
.fab .zahl { position: absolute; top: -4px; right: -4px; margin: 0; border: 2px solid var(--weiss); }
.fab .zahl[hidden] { display: none; }
.fab:active { transform: scale(.95); }

.toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }

/* Würfel: flach im App-Stil (Gelb mit blauen Augen), auch beim Werfen */
.wuerfel-knopf { flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.wf-flach { width: 34px; height: 34px; border-radius: 8px; background: var(--gelb); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 5px; transition: transform .15s; }
.wf-flach i { display: block; margin: auto; width: 6px; height: 6px; border-radius: 50%; }
.wf-flach i.p { background: var(--blau); }
.tag.heute .wf-flach { background: var(--blau); }
.tag.heute .wf-flach i.p { background: var(--gelb); }
.wuerfel-knopf { -webkit-touch-callout: none; }
.wuerfel-knopf.laedt .wf-flach { transition: none; box-shadow: 0 0 0 3px rgba(255,218,26,.45); }
.wuerfel-knopf.leer .wf-flach { visibility: hidden; }
.wf-flach.gross { transition: none; width: 72px; height: 72px; border-radius: 16px; padding: 11px; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.wf-flach.gross i { width: 13px; height: 13px; }
.wurf { position: fixed; left: 0; top: 0; z-index: 70; width: 72px; height: 72px; perspective: 600px; pointer-events: none; will-change: transform; }
.wurf-splash { position: fixed; inset: 0; z-index: 75; pointer-events: none; transition: opacity .4s; }
.wurf-splash > i { position: absolute; inset: 0; clip-path: circle(0 at var(--x) var(--y)); transition: clip-path .5s cubic-bezier(.3,.7,.2,1); }
.ws-blau { background: var(--blau); }
.ws-gelb { background: var(--gelb); transition-delay: .12s !important; }
.wurf-splash.an > i { clip-path: circle(150% at var(--x) var(--y)); }
.wurf-splash.weg { opacity: 0; }
.ws-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--blau); opacity: 0; transform: scale(.7); transition: opacity .25s .35s, transform .35s .35s cubic-bezier(.2,.9,.3,1.4); }
.ws-text b { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.ws-text span { font-size: 18px; font-weight: 700; }
.wurf-splash.an .ws-text { opacity: 1; transform: none; }
.wochen-tabs { display: flex; align-items: center; flex-wrap: nowrap; }
.tabs-scroll { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .tab-btn { white-space: nowrap; }
.tab-gruppe { display: inline-flex; align-items: center; flex: none; }
.tab-weg { flex: none; width: 28px; height: 28px; margin-left: 2px; border-radius: 50%; border: 0; background: var(--flaeche); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.tab-weg .ic { width: 14px; height: 14px; }
.tab-plus { color: var(--blau); padding-left: 10px; padding-right: 10px; flex: none; }
.tab-plus .ic { width: 20px; height: 20px; }

/* Tagesplan im Gericht */
.tagesplan { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tagesplan li > button, .tagesplan li > div { width: 100%; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--linie); background: var(--weiss); font: inherit; color: inherit; }
.tagesplan li > button { cursor: pointer; }
.tagesplan li.akt > div { border: 2px solid var(--blau); background: #EEF4FA; }
.tagesplan li.aus { opacity: .5; }
.tagesplan .sub { margin: 0; font-size: 12px; }
.dialog .tag-summe { margin: 0; border-radius: var(--radius); padding: 10px 12px; }

/* Aktionsleiste im Gericht: Icon über Text */
.icon-aktionen { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.icon-aktionen .ia { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 9px 2px; min-height: 60px; min-width: 0; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); color: var(--schwarz); font: inherit; font-size: 12px; line-height: 1.2; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.icon-aktionen .ia .ic { width: 20px; height: 20px; }
.icon-aktionen .ia.primaer { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
.icon-aktionen .ia.like-gross.an { color: #B3261E; }
.icon-aktionen .ia.like-gross.an .ic { fill: currentColor; }
.tabs-scroll .tab-btn:not(.tab-neu):not(.tab-plus) { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
.tab-name { font-size: 14px; }
.tab-datum { font-size: 12px; font-weight: 400; color: var(--text-2); }
.wochen-tabs > .tab-plus { margin-left: 4px; border-left: 1px solid var(--linie); padding-left: 12px; }
.menu-sync { margin: 0; padding: 8px 14px 10px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--linie); word-break: break-all; }

/* Familie: wer ist angemeldet */
.menu-wrap { display: flex; align-items: center; gap: 8px; }
.ich-chip { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--gelb); color: var(--blau); font: inherit; font-weight: 800; font-size: 15px; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.ich-chip[hidden] { display: none; }
.ich-chip.gross { width: 40px; height: 40px; font-size: 18px; }
.menu { min-width: 250px; max-width: calc(100vw - 32px); }
.menu-kopf { border-bottom: 1px solid var(--linie); margin-bottom: 4px; }
.menu-ich { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; }
.menu-ich b { display: block; font-size: 16px; }
.menu-ich span:not(.ich-chip) { display: block; font-size: 12px; color: var(--text-2); word-break: break-all; }
.menu-leute { display: grid; gap: 4px; padding: 4px 14px 8px; }
.menu-titel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.mensch { font-size: 14px; font-weight: 700; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mensch i { width: 8px; height: 8px; border-radius: 50%; background: var(--linie); flex: none; align-self: center; }
.mensch.aktiv i { background: #0A8A00; }
.mensch small { font-weight: 400; color: var(--text-2); font-size: 12px; }
.mensch.leer { font-weight: 400; color: var(--text-2); }
.menu-kopf .menu-sync { border-bottom: 0; padding-top: 0; }
.stat-liste li span { color: var(--text-2); font-size: 13px; }
.menu { color: var(--schwarz); text-align: left; }
/* Kürzel im Kopf: eigenes gelb, andere aktive weiß umrandet */
.ich-chip.gross { width: auto; min-width: 44px; padding: 0 8px; border-radius: 22px; font-size: 15px; }
.menu-ich span:not(.ich-chip) + span { margin-top: 2px; }
/* Nur lesen: fremde Bereiche der Einkaufsliste ausgegraut */
.dialog h4.grau, .dialog ul.einkauf.grau > li:not(.eigen) { opacity: .45; }
.dialog ul.einkauf.grau > li:not(.eigen) input, .dialog ul.einkauf.grau > li:not(.eigen) button { pointer-events: none; }
.pruef-box.grau { opacity: .45; }
/* Menüknopf mit Kürzel statt drei Punkten */
.menu-knopf.mit-kuerzel { position: relative; background: var(--gelb); color: var(--blau); font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.menu-knopf .kuerzel { line-height: 1; }
.aktiv-wer { position: absolute; bottom: -8px; right: -4px; box-shadow: 0 0 0 2px var(--blau); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 2px 7px; border-radius: 9px; background: #0A8A00; color: var(--weiss); font-size: 11px; font-weight: 800; letter-spacing: 0; }
.aktiv-wer i { width: 6px; height: 6px; border-radius: 50%; background: var(--weiss); }
.as-maerkte.as-ziel { grid-template-columns: 1fr 1fr; margin-top: 0; }
.as-ziel .as-markt { font-size: 14px; padding: 0 6px; }
.as-kat { width: 100%; min-height: 44px; margin: 8px 0 4px; border: 1px solid var(--text-3); border-radius: var(--radius); padding: 8px 10px; font: inherit; background: var(--weiss); }
.as-knoepfe .btn[disabled] { opacity: .4; }

/* Personenlisten als farbige Karten */
.pliste { --pf: var(--blau); margin: 14px 0 6px; border: 2px solid var(--pf); border-left-width: 8px; border-radius: var(--radius); background: color-mix(in srgb, var(--pf) 7%, var(--weiss)); padding: 0 12px 4px; }
.dialog .pliste-kopf { display: flex; align-items: center; gap: 10px; margin: 0 -12px; padding: 10px 12px; color: var(--schwarz); font-size: 15px; text-transform: none; letter-spacing: 0; border-bottom: 1px solid color-mix(in srgb, var(--pf) 30%, var(--weiss)); }
.pchip { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--pf, var(--blau)); color: var(--weiss); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.pliste-zahl { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--text-2); }
.pliste ul.einkauf { margin: 0; }
.pliste .posten-zeile .pz-oben { background: color-mix(in srgb, var(--pf) 7%, var(--weiss)); }
/* Manuell eingetragene Artikel in Blau, Plan-Artikel schwarz */
.posten-zeile.ist-manuell .posten b { color: var(--blau); }
/* Wohin-Auswahl */
.as-maerkte.as-ziel { grid-template-columns: 1fr 1fr; }
.as-ziel .as-markt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.as-ziel .pchip { height: 22px; min-width: 34px; font-size: 11px; }
/* WOC: ganze Liste aufklappbar */
.rest-liste { margin-top: 18px; border: 1px solid var(--linie); border-radius: var(--radius); padding: 0 12px; }
.rest-liste > summary { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; cursor: pointer; }
.rest-liste > summary .sub { margin: 0; }
/* Woche fertig geplant: grüner Haken im Tab, Langdruck ohne iOS-Menü */
#wochenTabs .tab-btn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.tab-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; background: #0A8A00; color: var(--weiss); vertical-align: -3px; }
.tab-ok .ic { width: 12px; height: 12px; stroke-width: 3; }
.tab-btn[data-fertig] .tab-datum { color: #0A8A00; }
.posten .frisch { color: #B45309; font-weight: 700; }
.pz-info[hidden] { display: none; }
.as-info { margin: 4px 0 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.as-info .frisch, .as-info .angepasst { font-weight: 700; }
/* Name im Bearbeiten-Fenster umbenennen */
.as-name { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; border-bottom: 2px solid var(--linie); }
.as-name:focus-within { border-bottom-color: var(--blau); }
.as-name .ic { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.as-name input { flex: 1; min-width: 0; border: 0 !important; padding: 8px 0 !important; font: inherit; font-size: 22px !important; font-weight: 800; background: transparent; outline: none; color: var(--schwarz); }
.as-gekauft { margin: 0 0 8px; }
.as-menge input { flex: 0 0 84px; width: 84px !important; }
.as-einheit { flex: 1; overflow: visible; white-space: normal; line-height: 1.2; }
.ab-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: #FDEBD3; color: #9A3412; font-size: 12px; font-weight: 700; vertical-align: 2px; }
/* Wofür eingeplant */
.as-gerichte { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; max-height: 45vh; overflow-y: auto; }
.as-gerichte button { width: 100%; display: grid; gap: 1px; text-align: left; padding: 8px 10px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); font: inherit; color: inherit; cursor: pointer; }
.as-gerichte .sub { margin: 0; font-size: 12px; }
.haus-zeile, .vorratliste li[data-info-ing] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* Vorschläge unter der Suche */
.vorschlag-kopf { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 10px 2px 4px; }
.vorschlag { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linie); padding: 9px 2px; font: inherit; color: inherit; cursor: pointer; }
.vorschlag > span { flex: 1 1 auto; min-width: 0; }
.vorschlag .sub { margin-left: 4px; }
.vorschlag:active { background: var(--flaeche); }
.as-maerkte.as-katfrage { display: flex; flex-wrap: wrap; gap: 8px; }
.as-katfrage .as-markt { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; white-space: nowrap; }

/* Claude schreibt Rezepte */
body.ki-schreibt::after { content: 'Claude schreibt die Rezepte für die Woche. Das dauert etwa eine Minute.'; position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--schwarz); color: var(--weiss); padding: 12px 18px; border-radius: var(--radius); font-weight: 700; z-index: 61; max-width: calc(100vw - 32px); text-align: center; }

/* Vorbereitung am Vorabend: rotes Fähnchen */
.badge-vorabend { background: var(--rot); color: var(--weiss); border: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.vorabend-box { border-left: 4px solid var(--rot); background: var(--fehlt-bg); padding: 10px 12px; margin: 10px 0; border-radius: 2px; }
.vorabend-box p { margin: 4px 0; }
.vorabend-titel { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rot); }
.vorabend-zutaten { margin: 6px 0 10px; padding-left: 18px; }
.hinweis-vorabend { color: var(--rot); }

/* Was ist neu */
.neu-popup { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.35); display: grid; place-items: center; padding: 16px; }
.neu-karte { background: var(--weiss); color: var(--schwarz); border-radius: var(--radius); padding: 18px 18px 14px; width: 100%; max-width: 420px; max-height: 80vh; overflow: auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.neu-titel { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; margin: 0 0 6px; color: var(--blau); }
.neu-datum { font-size: 12px; font-weight: 700; color: var(--text-2); margin: 10px 0 2px; }
.neu-karte ul { margin: 0 0 6px; padding-left: 18px; }
.neu-karte li { margin: 4px 0; }
.neu-karte .btn { width: 100%; margin-top: 10px; }

body.ki-gericht::after { content: 'Claude schreibt ein neues Gericht …'; position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 80; background: var(--schwarz); color: var(--weiss); padding: 12px 18px; border-radius: 22px; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
/* Hab ich da: zu Hause vorhanden */
.wisch-knopf.da { background: #0A7A33; }
.posten-zeile.ist-zuhause .pz-oben { display: flex; align-items: center; gap: 12px; }
.posten-zeile.ist-zuhause .posten b { color: var(--text-2); font-weight: 700; }
.posten-zeile.ist-zuhause .sub { color: #0A7A33; }
.zh-ic { width: 28px; height: 28px; border-radius: 50%; background: #E3F2E8; color: #0A7A33; display: grid; place-items: center; flex: none; margin-left: 2px; }
.zh-ic .ic { width: 16px; height: 16px; }
.as-zuhause .as-zh-wert { min-width: 52px; text-align: center; font-size: 20px; font-weight: 800; }

/* Artikel-Fenster aufgeräumt */
.as-karte { padding-top: 14px; }
.as-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.as-kopf .as-name, .as-kopf .as-titel { flex: 1; min-width: 0; margin: 0; }
.as-kopf .as-name { border-bottom: 1px solid var(--linie); }
.as-name input { font-size: 20px !important; }
.as-zu { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--flaeche); color: var(--schwarz); display: grid; place-items: center; cursor: pointer; }
.as-zu .ic { width: 18px; height: 18px; }
.as-info { margin: 8px 0 12px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.as-mengen { background: var(--flaeche); border-radius: var(--radius); padding: 2px 12px; margin: 10px 0 12px; }
.as-zeile { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.as-zeile + .as-zeile { border-top: 1px solid var(--linie); }
.as-zl { flex: 1; min-width: 0; display: grid; gap: 1px; }
.as-zl b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.as-zl b .ic { width: 16px; height: 16px; color: #0A7A33; }
.as-unter { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.as-st { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--text-3); background: var(--weiss); color: var(--schwarz); display: grid; place-items: center; cursor: pointer; padding: 0; }
.as-st[disabled] { opacity: .35; }
.as-st .ic { width: 16px; height: 16px; }
.as-wert { width: 46px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
input.as-wert { border: 0 !important; background: transparent; padding: 6px 0 !important; min-height: 0 !important; width: 46px !important; }
.as-einheit-wahl { flex: none; min-height: 38px; border: 1px solid var(--text-3); border-radius: var(--radius); padding: 0 6px; font-weight: 700; background: var(--weiss); }
.as-angebot { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.as-label-klein { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-2); flex: none; }
.as-label-klein .ic { width: 14px; height: 14px; }
.as-seg { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--text-3); border-radius: 20px; overflow: hidden; }
.as-seg button { border: 0; background: var(--weiss); font: inherit; font-size: 13px; font-weight: 700; padding: 9px 2px; cursor: pointer; color: var(--schwarz); }
.as-seg button + button { border-left: 1px solid var(--linie); }
.as-seg button.an { background: var(--gelb); }
.as-preis { margin-top: 2px; min-height: 42px; }
.as-speichern { width: 100%; margin-top: 12px; min-height: 48px; }
.as-speichern[disabled] { opacity: .4; }

/* Wochenansicht: eingeklappte Tage (vergangen oder ganz außer Haus) */
.tag.zu { border: 0; }
.tag-zu { width: 100%; display: flex; align-items: baseline; gap: 8px; padding: 10px var(--gutter-r, 16px) 10px var(--gutter-l, 16px); border: 0; border-bottom: 1px solid var(--linie); background: #EEF1F4; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.tag-zu .wtag { font-weight: 800; font-size: 16px; color: var(--schwarz); }
.tag-zu .datum { color: var(--text-2); }
.tag-zu .tz-info { flex: 1; min-width: 0; font-size: 13px; }
.tag-zu .tz-pfeil { align-self: center; display: grid; transition: transform .2s; color: var(--text-3); }
.tag-zu .tz-pfeil .ic { width: 16px; height: 16px; }
.tag-zu[aria-expanded="true"] .tz-pfeil { transform: rotate(180deg); }
.tag.heute .tag-zu { background: #FFF6BF; }
/* Ausgefallene Mahlzeit: eine schmale, blasse Zeile, antippbar */
.mahlzeit.ist-aus .mz { padding-top: 0; padding-bottom: 0; opacity: 1; background: #F7F7F7; }
.aus-zeile { width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border: 0; background: none; font: inherit; color: var(--text-3); text-align: left; cursor: pointer; min-width: 0; }
.aus-zeile .slot { flex: none; font-size: 11px; }
.aus-zeile .aus-name { flex: 1; min-width: 0; font-size: 14px; color: var(--text-3); text-decoration: line-through; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mahlzeit.ist-aus .swipe-hinter.links .wisch-knopf.da { background: #0A7A33; }
/* Vergangene Mahlzeit im aufgeklappten Tag */
.mahlzeit.ist-vorbei .mz { padding-top: 8px; padding-bottom: 8px; gap: 2px; background: #FAFAFA; }
.mahlzeit.ist-vorbei .gericht { font-size: 15px; color: var(--text-2); }
.mahlzeit.ist-vorbei .meta { font-size: 12px; }
.gekocht-klein { display: inline-flex; align-items: center; gap: 4px; color: #0A7A33; font-weight: 700; }
.gekocht-klein .ic { width: 14px; height: 14px; }
.ia.gruen { background: #0A7A33; border-color: #0A7A33; color: var(--weiss); }
@media (prefers-reduced-motion: reduce) { .tag-zu .tz-pfeil { transition: none; } }
/* Neu in der App: kurzes Video zur Änderung */
.neu-video { display: block; width: auto; max-width: 100%; height: 42vh; max-height: 380px; margin: 8px auto 6px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.neu-karte { max-height: 88vh; }
/* Auf gut Glück */
.kopf .logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: none; }
.kopf .logo.haelt { animation: glueckWackeln 3s ease-in forwards; }
@keyframes glueckWackeln {
  0% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-4deg) scale(1.02); } 30% { transform: rotate(4deg) scale(1.04); }
  45% { transform: rotate(-7deg) scale(1.06); } 55% { transform: rotate(7deg) scale(1.08); }
  70% { transform: rotate(-10deg) scale(1.1); } 80% { transform: rotate(10deg) scale(1.12); }
  90% { transform: rotate(-12deg) scale(1.15); } 100% { transform: rotate(0) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) { .kopf .logo.haelt { animation: none; opacity: .6; } }
.glueck-laedt { font-size: 16px; color: var(--text-2); padding: 18px 0; }
.glueck-karte { background: var(--gelb); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 4px; }
.glueck-art { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blau); }
.dialog h3.glueck-name { margin: 4px 0 6px; padding: 0; border: 0; font-size: 22px; line-height: 1.2; }
.glueck-karte p { margin: 0; }
.glueck-aktionen { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.glueck-aktionen .btn { width: 100%; }
.badge-glueck { background: var(--gelb); color: var(--schwarz); }
.dialog .glueck-aktionen { margin-left: 0; margin-right: 0; }
.glueck-aktionen .btn { min-width: 0; padding-left: 8px; padding-right: 8px; font-size: 14px; white-space: normal; line-height: 1.2; }
/* Link zur Einführung unter dem Anmeldefeld */
.einfuehrung-link { justify-self: center; margin-top: 6px; font-size: 14px; color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Spiele ---------- */
html.spiel-offen, html.spiel-offen body { overflow: hidden; }
.spiel { position: fixed; inset: 0; z-index: 400; background: var(--box-bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); color: var(--text); }
.spiel-kopf { display: flex; align-items: center; gap: 12px; background: var(--blau); color: var(--weiss); padding: 10px var(--gutter-r) 10px var(--gutter-l); }
.spiel-titel { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.spiel-titel b { font-size: 17px; }
.spiel-titel span { font-size: 12px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spiel-punkte { background: var(--gelb); color: var(--schwarz); border-radius: 999px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.spiel-punkte b { font-size: 16px; }
.spiel-zu { background: none; border: 0; color: var(--weiss); width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; cursor: pointer; }
.spiel-feld { position: relative; flex: 1; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.spiel-feld canvas { display: block; touch-action: none; }
.spiel-karte-mitte { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 32px)); background: var(--weiss); border-radius: 8px; padding: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); text-align: center; }
.spiel-karte-mitte h3 { margin: 0 0 8px; font-size: 20px; }
.spiel-karte-mitte p { margin: 0 0 10px; }
.spiel-gross { font-size: 34px; font-weight: 700; color: var(--blau); }
.spiel-knoepfe { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.spiel-tasten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px var(--gutter-r) 10px var(--gutter-l); background: var(--box-bg); }
.spiel-tasten button { height: 56px; border: 0; border-radius: 8px; background: var(--blau); color: var(--weiss); display: grid; place-items: center; touch-action: none; cursor: pointer; }
.spiel-tasten button:active { background: var(--blau-dunkel); }
.spiel-tasten svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spiele-liste { display: grid; gap: 10px; margin: 8px 0 16px; padding: 0; list-style: none; }
.spiel-eintrag { border: 1px solid var(--linie); border-radius: 8px; padding: 12px; }
.spiel-eintrag .se-kopf { display: flex; align-items: center; gap: 10px; }
.spiel-eintrag .se-kopf div { flex: 1; }
.spiel-eintrag .se-kopf b { display: block; }
.rangliste { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; }
.rangliste li { display: flex; gap: 8px; padding: 3px 0; }
.rangliste li .rp { width: 22px; color: var(--text-3); }
.rangliste li .rn { flex: 1; }
.rangliste li.ich .rn { font-weight: 700; }
.rang-woche { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* ---------- Personen, Kalorienliste, Bewerten, Reste ---------- */
.check-zeile { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 15px; }
.check-zeile input { width: 20px; height: 20px; accent-color: var(--blau); }
.mz-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.mz-wahl > .sub { flex-basis: 100%; }
.mz-chip { position: relative; }
.mz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mz-chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--linie); border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--weiss); }
.mz-chip input:checked + span { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.mz-chip input:focus-visible + span { outline: 2px solid var(--blau); outline-offset: 2px; }
.tag-bedarf { display: block; font-size: 12px; color: inherit; opacity: 0.85; font-weight: 400; margin-top: 2px; }
.bedarf-hinweis { margin: 0 0 8px; padding: 6px 10px; background: var(--rest-bg); border-radius: var(--radius); font-size: 13px; }
.bewerten-link { margin-left: 8px; font-size: 13px; }
.datei-knopf { cursor: pointer; }
.reste-vorschlag { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--linie); border-left: 4px solid var(--gruen); border-radius: var(--radius); margin: 12px 0; }
.knopf-zeile { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.bedarf-zuordnen { margin: 8px 0 12px; padding: 12px; border: 1px solid var(--linie); border-radius: var(--radius); }

/* Snack an Tagen mit hohem Bedarf: schmale Zeile nach den Mahlzeiten, nur für die eigene Person */
.snack-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; border: 0; border-bottom: 1px solid var(--linie); background: var(--neu-bg); color: var(--text); text-align: left; font: inherit; font-size: 13px; padding: 8px 10px; cursor: pointer; }
.snack-zeile .slot { flex: none; color: var(--gruen); }
.snack-zeile .snack-text { flex: 1 1 160px; min-width: 0; }
.snack-zeile .sub { flex: none; color: var(--text-2); font-size: 12px; }

/* Gemerkte Anmeldung: keine Sperre beim Start, bis Firebase die Anmeldung bestätigt oder ablehnt */
html.vorab body.gesperrt .sperre { display: none; }

/* Zutatentabelle im Gericht: auf dem Handy nur Zutat und Gesamt, pro Person aufklappbar */
.pro-person-knopf { display: none; }
@media (max-width: 640px) {
  .pro-person-knopf { display: inline-flex; align-items: center; min-height: 44px; }
  .zt-wrap:not(.pro-person) .zutaten-tab th:not(:first-child):not(:last-child),
  .zt-wrap:not(.pro-person) .zutaten-tab td:not(:first-child):not(:last-child) { display: none; }
  .zutaten-tab td:first-child { overflow-wrap: anywhere; }
}

/* Eiweißpulver in den Einstellungen und in der Snack-Zeile */
.pulver-feld { margin: 0 0 8px 32px; }
.pulver-feld .sub { margin: 4px 0 0; }
.snack-pulver { white-space: nowrap; color: var(--gruen); font-weight: 700; }

/* Tippflächen mindestens 44 px: „Da?“, Schließen, Stepper */
.badge-pruefen { min-height: 44px; padding: 4px 10px; }
.dialog-zu, .as-zu { width: 44px; height: 44px; }
.stepper .icon-btn, .mini-stepper .icon-btn { width: 44px; height: 44px; }

/* Heute Abend und morgen früh: kompakte Karte oben im heutigen Tag */
.heute-karte { background: var(--box-bg); border-bottom: 1px solid var(--linie); padding: 8px 10px 6px; font-size: 13px; }
.heute-karte .hk-titel { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-weight: 800; color: var(--blau); }
.heute-karte ul { list-style: none; margin: 0; padding: 0; }
.heute-karte li { display: flex; align-items: baseline; gap: 8px; }
.heute-karte .hk-wann { flex: 0 0 4.2em; color: var(--text-3); font-size: 12px; font-weight: 700; }
.heute-karte li button { flex: 1; min-width: 0; min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
@media (max-width: 640px) { .heute-karte { padding-left: var(--gutter-l); padding-right: var(--gutter-r); } }

/* Leere Einkaufsliste: Woche direkt freigeben */
.ek-leer { background: var(--flaeche); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.ek-leer p { margin: 0 0 8px; }
.ek-leer .btn { width: 100%; margin-bottom: 8px; }
.ek-leer .sub { margin: 0; }

/* Zusammengefasste Zeile auf der Einkaufsliste: Teile mit Tag */
.posten .teile { display: block; font-size: 12px; color: var(--text-2); }

/* Paket 5: Rückgängig im Hinweis, Erweitert in den Einstellungen, Geschmacksprofil, Sicherungen */
.toast.mit-knopf { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; }
.toast-knopf { border: 0; border-radius: var(--radius); background: var(--gelb); color: var(--schwarz); font-weight: 800; padding: 8px 12px; min-height: 40px; cursor: pointer; flex: none; }
.dialog details.erweitert { margin-top: 22px; border-top: 4px solid var(--gelb); padding-top: 4px; }
.dialog details.erweitert > summary { cursor: pointer; font-weight: 800; font-size: 16px; padding: 10px 0; min-height: 44px; list-style-position: inside; }
.dialog details.erweitert > h3:first-of-type { margin-top: 8px; }
.dialog .profil-text { white-space: pre-line; background: var(--flaeche); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; }
.dialog .sicherung-liste { list-style: none; margin: 0 0 12px; padding: 0; }
.dialog .sicherung-liste li { padding: 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog .sicherung-liste .btn { margin: 0; }
/* Zutatentabelle pro Person auf dem Handy: Name bleibt lesbar und steht fest links, die Mengen-Spalten lassen sich seitwärts schieben */
@media (max-width: 640px) {
  .zt-wrap.pro-person { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .zt-wrap.pro-person .zutaten-tab { width: max-content; min-width: 100%; }
  .zt-wrap.pro-person .zutaten-tab th:first-child, .zt-wrap.pro-person .zutaten-tab td:first-child { min-width: 9em; max-width: 11em; position: sticky; left: 0; z-index: 1; background: var(--weiss); box-shadow: 1px 0 0 var(--linie); }
  .zt-wrap.pro-person .zutaten-tab th:not(:first-child), .zt-wrap.pro-person .zutaten-tab td:not(:first-child) { white-space: nowrap; min-width: 0; }
  .zutaten-tab td:first-child { overflow-wrap: normal; word-break: normal; hyphens: auto; }
}
.dialog .dlg-aktionen { position: sticky; z-index: 3; }
/* Artikel-Sheet: Beschriftung behält ihren Platz, die Einheit rutscht bei wenig Breite in eine eigene Zeile */
.as-zeile { flex-wrap: wrap; row-gap: 8px; }
.as-zl { min-width: 5.5em; }
.as-zl b { white-space: nowrap; }
.as-einheit-wahl { min-height: 44px; }
@media (max-width: 420px) { .as-zeile:has(.as-einheit-wahl) .as-einheit-wahl { flex: 1 1 100%; } }
.as-karte { max-width: 100%; min-width: 0; box-sizing: border-box; }

/* Tippflächen Einkaufsliste: Abhaken-Zeile und Plus mindestens 44 px */
.posten-zeile .haken { min-height: 44px; box-sizing: border-box; padding: 11px 0; }
.ek-dazu { width: 44px; height: 44px; }

/* Schließen-Leiste: klebt oben im Dialog. Beim Scrollen bekommt sie den Dialog-Hintergrund, der Inhalt läuft darunter durch. */
.dialog { --dlg-pt: 28px; --dlg-pr: 24px; --dlg-pl: 24px; }
@media (max-width: 640px) { .dialog { --dlg-pt: calc(16px + env(safe-area-inset-top, 0px)); --dlg-pr: var(--gutter-r); --dlg-pl: var(--gutter-l); } }
.dlg-leiste { position: sticky; top: calc(-1 * var(--dlg-pt)); height: var(--dlg-pt); margin: calc(-1 * var(--dlg-pt)) calc(-1 * var(--dlg-pr)) 0 calc(-1 * var(--dlg-pl)); display: block; z-index: 4; pointer-events: none; }
.dlg-leiste::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--dlg-pt) + 42px); background: var(--weiss); border-bottom: 1px solid var(--linie); opacity: 0; transition: opacity .15s; }
.dialog.gescrollt .dlg-leiste::before { opacity: 1; }
.dlg-leiste .dialog-zu { position: absolute; top: calc(var(--dlg-pt) - 10px); right: calc(var(--dlg-pr) - 10px); margin: 0; pointer-events: auto; }

/* Hinweis beim Öffnen, solange die neue Woche vom Server kommt */
.lade-hinweis { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius); background: var(--box-bg); color: var(--text-2); font-size: 13px; font-weight: 700; }
.lade-hinweis[hidden] { display: none; }

/* Kürzel pro Person */
.kuerzel-feld:not(:placeholder-shown) { text-transform: uppercase; }
.name-zeile { grid-template-columns: 1fr 7em; }

/* Zusammengefasste Einkaufszeile: Teil wählen */
.teil-wahl { display: grid; gap: 8px; margin-top: 12px; }
.teil-wahl .btn { width: 100%; justify-content: flex-start; margin: 0; min-height: 44px; }
.teil-wahl + .as-knoepfe { grid-template-columns: 1fr; }
@media (max-width: 640px) { .lade-hinweis { margin-left: var(--gutter-l); margin-right: var(--gutter-r); } }
.vorkoch-info { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin: 4px 0 0; }
.vorkoch-info .ic { width: 16px; height: 16px; }
.menge-neu { font-weight: 800; }
.menge-grund { font-size: .8em; font-weight: 400; color: var(--text-3); }
.aufteilung { margin: 16px 0; }
.aufteilung .tab td:first-child { font-weight: 700; }
.aufteilung tr.box td { background: var(--box-bg); }
.koch-start-oben { width: 100%; margin: 4px 0 14px; }

/* Vorbereiten-Karte bei gestrichenem Abendessen */
.vorab-karte .mz { border-left: 4px solid var(--rot); background: var(--fehlt-bg); padding: 12px 14px; }
.vorab-karte .vorabend-titel { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 2px 0 6px; }
.vorab-karte .vorabend-titel .ic { width: 16px; height: 16px; flex: none; }
.vorab-karte p { margin: 4px 0; }
.vorab-karte.erledigt .mz { border-left-color: var(--text-3); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; }
.vorab-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge-vorabend.erledigt { background: var(--box-bg); color: var(--text-2); }
/* Zu Hause: Entfernen */
.weg-wahl, .weg-grund { flex-wrap: wrap; margin-bottom: 10px; }
.weg-wahl button, .weg-grund button { flex: 1 1 auto; min-width: 0; }
.vorab-kompakt { padding: 8px 16px 12px; background: var(--weiss); }
.vorab-kompakt .badge-vorabend { width: 100%; }

/* Einkaufsliste: kleine graue Klappzeilen */
.ek-klein { margin-top: 20px; border-top: 1px solid var(--linie); }
details.kz { border-bottom: 1px solid var(--linie); }
details.kz > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; font-weight: 400; color: var(--text-3); cursor: pointer; }
details.kz > summary::-webkit-details-marker { display: none; }
details.kz > summary::before { content: ""; flex: none; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .15s; }
details.kz[open] > summary::before { transform: rotate(90deg); }
details.kz > summary .ic { width: 14px; height: 14px; flex: none; }
.kz-zahl { margin-left: auto; font-variant-numeric: tabular-nums; }
.kz-warn { color: var(--rot); font-weight: 700; }
.kz-inhalt { list-style: none; margin: 0; padding: 0 0 10px 13px; font-size: 13px; color: var(--text-2); }
.kz-inhalt li { padding: 3px 0; }
.kz-tipp { font-size: 12px; margin: 0 0 4px 13px; }
details.kz .einkauf { font-size: 13px; padding-left: 13px; }
details.kz .einkauf .posten b { font-size: 14px; }
.kz-haus { border-bottom: 0; margin-top: 4px; }
details.kz-haus > summary { color: var(--gruen); }
.kz-zeile { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--linie); }
.kz-zeile:last-child { border-bottom: 0; }
.kz-knopf { margin-left: auto; flex: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--text); border: 1px solid var(--text-3); background: var(--weiss); border-radius: 16px; padding: 5px 12px; min-height: 32px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { details.kz > summary::before { transition: none; } }

/* Brot backen: Infozeile; Zu Hause: Resthaltbarkeit */
.back-info { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 8px; padding: 8px 10px; background: var(--flaeche); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.back-info .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.haelt-bald { color: var(--rot); font-weight: 700; }
.bald-kopf { color: var(--rot) !important; }

/* Gerichte tauschen */
.wisch-knopf.tausch { background: var(--schwarz); }
.tausch-leiste { background: var(--schwarz); color: var(--weiss); padding: 10px 14px; border-radius: var(--radius); margin: 0 52px 10px 0; font-size: 15px; }
.tausch-liste { list-style: none; margin: 0; padding: 0; }
.tausch-woche { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 0 4px; }
.tausch-ziel { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; width: 100%; text-align: left; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--linie); background: none; font: inherit; color: inherit; }
button.tausch-ziel { cursor: pointer; }
button.tausch-ziel:hover, button.tausch-ziel:focus-visible { background: var(--flaeche); }
.tausch-ziel b { font-size: 14px; }
.tausch-ziel.quelle { background: var(--rest-bg); }
.tausch-ziel.zu { opacity: .5; }
.tz-tag { font-weight: 800; font-size: 14px; } .tz-tag small { display: block; font-weight: 400; font-size: 12px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.c-gut { background: var(--neu-bg); color: var(--gruen); } .c-hin { background: #FFF1E0; color: var(--orange); } .c-warn { background: var(--fehlt-bg); color: var(--rot); } .c-grau { background: var(--flaeche); color: var(--text-3); }
.tausch-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tausch-seite { background: var(--flaeche); border-radius: 6px; padding: 10px; min-width: 0; }
.ts-t { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.ts-g { font-weight: 800; font-size: 14px; margin: 2px 0 8px; }
.tausch-seite table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tausch-seite td { padding: 3px 0; } .tausch-seite td.r { text-align: right; }
.tausch-seite td.ok { color: var(--gruen); font-weight: 700; text-align: right; width: 34px; }
.tausch-seite td.dd { color: var(--orange); font-weight: 700; text-align: right; width: 34px; }
.tausch-seite tr.ts-tag td { color: var(--text-2); font-size: 11px; padding-top: 4px; }
.tausch-folgen { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.tausch-folgen li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; }
.tf-p { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.tf-gut { background: var(--gruen); } .tf-hin { background: var(--orange); } .tf-warn { background: var(--rot); }

/* Tageskopf: Ziel grün, Defizit rot, Schokolade */
.ich-ok { border: 2px solid #3DCB4A; border-radius: 4px; padding: 0 6px; white-space: nowrap; }
.ich-def { border: 2px solid #E0201B; border-radius: 4px; padding: 0 6px; font-weight: 700; white-space: nowrap; }
.ich-ohne { font-size: 12px; opacity: .8; white-space: nowrap; }
.ich-weg { font-style: italic; opacity: .85; }
.tag-bedarf { line-height: 1.9; }
.wuerfel-knopf .schoko-wf { width: 100%; height: 100%; display: block; }
.wuerfel-knopf.ist-schoko { background: none; padding: 0; }
:root { --eiw-farbe: #C2610A; }
/* Meine Seite */
.menu-ich { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.menu-ich-mehr { display: block; font-size: 12px; color: var(--blau); font-weight: 700; margin-top: 2px; }
.ms-kopf { display: flex; gap: 14px; align-items: center; margin: 0 52px 10px 0; }
.ms-kopf h2 { margin: 0; } .ms-kopf p { margin: 0; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.ms-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--gelb); color: var(--blau); font-weight: 800; font-size: 18px; display: grid; place-items: center; flex: none; }
.ms-seg { margin-bottom: 6px; }
.ms-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-kacheln > div { background: var(--flaeche); border-radius: 6px; padding: 10px; }
.ms-kacheln > div > span { display: block; font-size: 12px; color: var(--text-2); }
.ms-kacheln b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ms-kacheln small { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.ms-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ms-chart text { font-size: 10px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.ms-chart text.lab { fill: var(--text-2); font-weight: 700; }
.ms-chart .gitter { stroke: #EEEEEE; } .ms-chart .achse { stroke: var(--text-3); }
.ms-chart .zielstrich { stroke: var(--text-2); stroke-width: 2; stroke-dasharray: 4 3; }
.ms-chart .band { fill: var(--box-bg); }
.ms-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.ms-legende i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.ms-legende i.b { width: 10px; height: 10px; background: var(--box-bg); }
.ms-liste { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ms-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #EEEEEE; }
.ms-liste li:last-child { border-bottom: 0; }
.ms-liste li span:last-child { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-stern { color: #B88F00 !important; }
.tag-kopf { flex-wrap: nowrap; }
.tag-kopf > div { white-space: normal; min-width: 0; flex: 1 1 auto; }
.tag-kopf .wuerfel-knopf { flex: none; }

/* Meine Seite: Heute noch frei */
.frei-block { background: var(--blau); color: var(--weiss); border-radius: 10px; padding: 14px; border-bottom: 5px solid var(--gelb); margin: 4px 0 8px; }
.fb-t { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.fb-zahl { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.fb-zahl small { font-size: 16px; font-weight: 700; }
.fb-zahl.klein { font-size: 20px; }
.fb-zahl .schoko-wf { width: 30px; height: 30px; }
.fb-eiw { font-size: 15px; font-variant-numeric: tabular-nums; }
.fb-leer { margin: 4px 0 0; }
.fb-balken { height: 10px; border-radius: 5px; background: rgba(255,255,255,.2); margin: 10px 0 4px; display: flex; gap: 2px; overflow: hidden; }
.fb-balken i { display: block; height: 100%; }
.fb-balken i.plan, .fb-leg i.plan { background: var(--weiss); }
.fb-balken i.ext, .fb-leg i.ext { background: var(--gelb); }
.fb-leg { font-size: 12px; opacity: .9; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fb-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.fb-mahl { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; }
.fb-mahl li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid #EEEEEE; align-items: center; }
.fb-mahl li:last-child { border-bottom: 0; }
.fb-mahl .s { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.fb-mahl .k { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.fb-mahl li.aus > span:nth-child(2) { text-decoration: line-through; color: var(--text-3); }
.fb-mahl li.ext > span:nth-child(2) { font-style: italic; }
.fb-extern { font-size: 11px; font-weight: 700; background: var(--rest-bg); color: var(--text); border-radius: 3px; padding: 1px 6px; }
.fb-weg { border: 1px solid var(--linie); background: var(--weiss); border-radius: 50%; width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0; cursor: pointer; }
.fb-weg .ic { width: 14px; height: 14px; }
.fb-knoepfe { display: flex; gap: 8px; margin-bottom: 12px; }
.fb-knoepfe .btn:first-child { flex: 1; }
.fb-kaffee { flex: none; gap: 4px; }
.fb-kaffee .ic { width: 20px; height: 20px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Rückblick */
.tab-alt { color: var(--text-3); }
.tab-alt .tab-txt { display: grid; line-height: 1.15; text-align: left; }
.tab-alt .tab-txt b { font-size: 12px; font-weight: 700; }
.tab-alt .tab-txt small { font-size: 11px; font-weight: 400; }
.tab-alt.an { color: var(--text); }
.rueck-hinweis { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin: 10px var(--gutter-r, 16px) 6px var(--gutter-l, 16px); }
.rueck-hinweis .ic { width: 16px; height: 16px; flex: none; }
.tag.rueck .tag-kopf { background: var(--text-3); border-bottom-color: var(--linie); }
.rueck-zeile { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px var(--gutter-r, 16px) 10px var(--gutter-l, 16px); border-bottom: 1px solid var(--linie); background: var(--weiss); }
.rueck-zeile .slot { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.rueck-name { font-weight: 700; font-size: 14px; }
.rueck-name .sub { font-weight: 400; font-size: 12px; }
.rueck-zeile.aus .rueck-name { text-decoration: line-through; color: var(--text-3); font-weight: 400; }
.rueck-status { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.rueck-sterne { border: 0; background: none; font: inherit; color: #B88F00; cursor: pointer; white-space: nowrap; padding: 4px; }
.rueck-leer { padding: 10px var(--gutter-l, 16px); color: var(--text-3); font-size: 13px; margin: 0; }

/* Rezept aus Rückblick, nochmal einplanen */
button.rueck-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; font-size: 14px; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.ms-rezept { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.tausch-ziel.einspaltig { grid-template-columns: 1fr; }
.tausch-seite.raus { margin-top: 8px; }
.tausch-seite.raus .ts-g { text-decoration: line-through; color: var(--text-3); margin-bottom: 0; }
.tausch-ziel .sub { font-size: 12px; color: var(--text-3); }

/* Extern: Foto und Schätzung */
.ex-foto-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ex-foto-knoepfe .btn { cursor: pointer; }
.ex-foto { position: relative; margin-top: 10px; }
.ex-foto img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.ex-foto-weg { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ex-foto-weg .ic { width: 16px; height: 16px; }
.btn-blau { background: var(--blau); color: var(--weiss); border-color: var(--blau); }
.ex-schaetzen { width: 100%; margin-top: 12px; }
.ex-ergebnis { background: var(--flaeche); border-radius: 10px; padding: 12px; margin-top: 12px; }
.ex-ergebnis .sub { margin: 6px 0 0; }
.ex-sicher { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #FFF1E0; color: var(--orange); }
.ex-sicher.hoch { background: var(--neu-bg); color: var(--gruen); }
.ex-sicher.niedrig { background: var(--fehlt-bg); color: var(--rot); }
.ex-portion { display: grid; width: 100%; margin-top: 4px; }

/* Wird schlecht: eine Zeile, Details im Fenster */
.abfall-zeile { display: flex; align-items: center; gap: 8px; }
.verderb-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--rot); color: var(--rot); background: var(--weiss); border-radius: 18px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.verderb-chip .ic { width: 15px; height: 15px; }
.hilfe-knopf { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss); color: var(--text-3); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; flex: none; }
.verderb-tab { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.verderb-tab td { padding: 9px 4px; border-bottom: 1px solid #EEEEEE; vertical-align: middle; }
.verderb-tab .vq { display: block; font-size: 12px; color: var(--text-3); }
.verderb-tab .vm { color: var(--text-2); white-space: nowrap; }
.verderb-tab .vt { color: var(--rot); font-weight: 700; white-space: nowrap; }
.verderb-tab .vb { text-align: right; }

.verderb-liste { list-style: none; margin: 4px 0 0; padding: 0; }
.verderb-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EEEEEE; }
.verderb-liste li:last-child { border-bottom: 0; }
.verderb-liste .vl-text { line-height: 1.3; font-size: 15px; }
.verderb-liste .vl-text small { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.verderb-liste .vl-tag { color: var(--rot); font-weight: 700; font-size: 14px; white-space: nowrap; }
.verderb-liste .vl-knopf { flex: none; }

.verderb-liste .vl-tag { font-size: 13px; margin-left: 4px; }
.verderb-liste .vl-text small.vl-kauf { font-size: 11px; color: var(--text-3); }
.verderb-liste .vl-knoepfe { display: flex; gap: 6px; }
.verderb-liste .vl-knoepfe .btn { padding-left: 10px; padding-right: 10px; font-size: 13px; min-height: 36px; }

/* Wird schlecht: Symbole ohne Text, Erklärung */
.vl-titel { display: flex; align-items: center; gap: 8px; }
.vl-hilfe { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss); color: var(--text-3); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; flex: none; padding: 0; }
.vl-hilfe[aria-expanded="true"] { background: var(--text); color: var(--weiss); border-color: var(--text); }
.vl-erkl { background: var(--flaeche); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-2); margin: 6px 0 4px; }
.vl-erkl p { margin: 0 0 6px; }
.vl-erkl ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.vl-erkl li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; }
.vl-erkl .vl-sym { width: 30px; height: 30px; }
.verderb-liste .vl-knoepfe { display: flex; gap: 6px; }
.vl-sym { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss); display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none; }
.vl-sym .ic { width: 19px; height: 19px; }
.vl-sym.verwenden { background: var(--text); border-color: var(--text); color: var(--weiss); }
.vl-sym.gegessen { color: var(--gruen); }
.vl-sym.entsorgt { color: var(--rot); }
.vl-sym:disabled { opacity: .35; cursor: default; }
.verderb-liste li.erledigt { opacity: .5; }
.verderb-liste li.erledigt .vl-text b { text-decoration: line-through; }

/* Leiste unten: Plan, Einkauf, Ich. Nur auf dem Handy; breitere Bildschirme behalten Menü und Einkaufsknopf */
.tab-leiste { display: none; }
@media (max-width: 640px) {
  .tab-leiste { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(250,250,250,.97); border-top: 1px solid var(--linie); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .tl-knopf { border: 0; background: none; font: inherit; font-size: 10px; font-weight: 700; color: #8E8E93; display: grid; justify-items: center; gap: 2px; padding: 2px 0; min-height: 48px; cursor: pointer; }
  .tl-knopf .ic { width: 25px; height: 25px; }
  .tl-knopf.an { color: var(--blau); }
  .tl-ic { position: relative; display: grid; }
  .tl-zahl { position: absolute; top: -4px; left: 16px; background: var(--rot); color: var(--weiss); font-size: 10px; font-weight: 800; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; text-align: center; }
  .tl-zahl[hidden] { display: none; }
  .tl-av { width: 25px; height: 25px; border-radius: 50%; background: var(--gelb); color: var(--blau); font-size: 8.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid transparent; overflow: hidden; }
  .tl-knopf.an .tl-av { border-color: var(--blau); }
  .fab { display: none !important; }
  .kopf .menu-wrap { display: none; }
  .haupt { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .dialog { padding-bottom: calc(24px + 62px + env(safe-area-inset-bottom, 0px)); }
}
/* Ich: bisheriges Menü */
.ich-mehr { border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; margin: 6px 0 12px; }
.ich-mehr button { display: flex; justify-content: space-between; width: 100%; border: 0; border-bottom: 1px solid var(--linie); background: var(--weiss); font: inherit; font-size: 15px; padding: 12px 14px; text-align: left; cursor: pointer; color: var(--text); }
.ich-mehr button:last-child { border-bottom: 0; }
.ich-mehr button span:last-child { color: var(--text-3); }
.ich-mehr button.rot { color: var(--rot); }
.ich-familie { font-size: 14px; margin: 0 0 12px; }

/* Wer ist aktiv: grüne Pille über „Ich“ */
.tl-knopf { position: relative; }
.tl-pille { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: #2DA44E; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 16px; border-radius: 8px; padding: 0 7px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.2); pointer-events: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.tl-pille[hidden] { display: none; }
.tl-pille i { width: 6px; height: 6px; border-radius: 50%; background: #fff; flex: none; }

/* Wer bist du im Plan */
.ich-wahl { display: grid; gap: 8px; margin: 10px 0 14px; }
.ich-wahl button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--text-3); border-radius: 10px; background: var(--weiss); padding: 10px 12px; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.ich-wahl-av { width: 32px; height: 32px; border-radius: 50%; background: var(--gelb); color: var(--blau); font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.ich-wahl-av.leer { background: var(--flaeche); color: var(--text-3); }
