/* Küchen-Oma: Grundaufbau. Ganz unten liegt die Ebene „OMA-LOOK“ mit Farben, Schriften und Oma-Figur aus dem Mama-Team. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dmsans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dmsans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Alfima */
  --rose: #FCE1EA;        /* große Hintergrundflächen */
  --rose-2: #FCE3EC;
  --paper: #FFF8F5;       /* cremefarbene Karten */
  --card: #FFFFFF;
  --ink: #291E21;
  --ink-2: #6E5D61;
  --line: #F1DFE2;
  --line-2: #E6C9D0;
  --berry: #A3385F;       /* Hauptschaltflächen, aktive Zustände */
  --berry-hover: #8C2F51;
  --berry-ink: #7A2747;
  --berry-soft: #FDEBEF;
  --butter: #FEE0B0;
  --butter-soft: #FFF1DA;
  --butter-pin: #FFF6D8;
  --butter-line: #F6D9A8;
  --butter-ink: #7A5520;
  /* Simulation bewusst neutral-lila, damit sie nie wie echte Funktion aussieht */
  --sim-bg: #F1ECF7; --sim-ink: #4F3F72; --sim-line: #DCD2EA;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(41,30,33,.05), 0 10px 28px rgba(41,30,33,.08);
  --shadow-lift: 0 2px 4px rgba(41,30,33,.06), 0 16px 36px rgba(41,30,33,.13);
  --r: 18px;
  --tap: 52px;
  --nav-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--rose); color: var(--ink);
  font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: 40px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--berry); font-weight: 400; }
p { margin: .4rem 0; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.muted { color: var(--ink-2); font-size: 16px; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(255,248,245,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 34px; flex: none; }
.proto-tag {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--butter-ink);
  background: var(--butter-soft); border: 1px solid var(--butter-line); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}

/* Omas Notizzettel */
.oma {
  position: relative; max-width: 1080px; margin: 18px auto 0; width: calc(100% - 32px);
  padding: 14px 16px 14px 56px; background: var(--butter-soft); border: 1px solid var(--butter-line);
  border-radius: 14px; font-size: 16px; line-height: 1.45; color: var(--ink);
  transform: rotate(-.6deg); box-shadow: 0 1px 2px rgba(122,85,32,.08);
}
.oma::before {
  content: ""; position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--berry) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5'/%3E%3Cpath d='M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 2px 4px rgba(122,39,71,.25);
}
.oma b { font-weight: 600; }
.oma:empty { display: none; }

main { padding: 20px 16px 16px; max-width: 1080px; margin: 0 auto; }

/* Navigation unten */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.tabs button {
  border: 0; background: none; color: var(--ink-2); font: 500 13px/1.1 var(--sans); min-height: 56px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-current="page"] { color: var(--berry-ink); background: var(--berry-soft); font-weight: 700; }
.tabs button[aria-current="page"] svg { stroke-width: 2.2; }
.tabs button:focus-visible { outline: 3px solid var(--berry); outline-offset: -3px; }
@media (min-width: 760px) {
  .tabs { left: 50%; right: auto; transform: translateX(-50%); width: 560px; bottom: 14px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift); padding-bottom: 6px; }
}

/* Grundbausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 12px 0; box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
  padding: 10px 20px; border-radius: 14px; border: 1.5px solid var(--berry); background: var(--berry); color: #fff;
  font: 600 16px/1.2 var(--sans); cursor: pointer; text-decoration: none; width: 100%; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--berry-hover); border-color: var(--berry-hover); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.secondary { background: var(--card); color: var(--berry-ink); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--berry-soft); }
.btn.quiet { background: transparent; border-color: var(--line-2); color: var(--ink); font-weight: 600; }
.btn.quiet:hover { background: var(--paper); }
.btn.danger { background: transparent; border-color: #C9A1AC; color: #8C2F51; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.stack > * + * { margin-top: 10px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=number], textarea, select {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px;
}
textarea { min-height: 72px; resize: vertical; overflow: hidden; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(163,56,95,.28); border-color: var(--berry); outline-offset: 0; }
.btn:focus-visible, summary:focus-visible, .seg button:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 500; margin: 0; }
.check input { width: 24px; height: 24px; accent-color: var(--berry); flex: none; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin: 2px 4px 2px 0; color: var(--ink-2); }
.badge.warn { background: var(--butter-soft); color: var(--butter-ink); border-color: var(--butter-line); }
.badge.sim { background: var(--sim-bg); color: var(--sim-ink); border-color: var(--sim-line); }
.badge.today { background: var(--berry); color: #fff; border-color: var(--berry); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.note { background: var(--butter-soft); color: var(--ink); border: 1px solid var(--butter-line); border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: 16px; }
.note strong { color: var(--butter-ink); }
.note.allergy { background: var(--berry-soft); border-color: #F2C9D4; display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.note.allergy svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--berry-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note.allergy strong { color: var(--ink); }
.sim-note { background: var(--sim-bg); color: var(--sim-ink); border: 1px solid var(--sim-line); border-radius: 14px; padding: 10px 14px; margin: 12px 0; font-size: 16px; }
.missing { border-color: #D9A441 !important; background: var(--butter-soft) !important; }
.unclear { background: var(--butter-soft); color: var(--butter-ink); border-radius: 6px; padding: 0 5px; font-weight: 600; }
.empty { text-align: center; padding: 28px 12px; }
.empty .big { font-size: 40px; }

/* ---------- Woche ---------- */
.week-head { margin: 4px 0 18px; }
.week-head h1 { margin-bottom: 10px; }
.week-head .lede { color: var(--ink-2); font-size: 16px; max-width: 36ch; margin: 0; }
.week-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0; align-items: start; }
@media (min-width: 720px) { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; } }
@media (min-width: 1040px) { .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.week-grid > details[open] { grid-column: 1 / -1; }

/* Angehefteter Rezeptzettel */
.slip {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); margin: 0; transition: box-shadow .2s, transform .2s;
}
.slip::before {
  /* Magnet-Pin oben */
  content: ""; position: absolute; top: -7px; left: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--berry); box-shadow: 0 2px 3px rgba(122,39,71,.35), inset 0 -2px 0 rgba(0,0,0,.12); z-index: 1;
}
.slip:nth-child(3n+2)::before { background: var(--butter); box-shadow: 0 2px 3px rgba(122,85,32,.3), inset 0 -2px 0 rgba(0,0,0,.08); }
.slip:nth-child(3n)::before { background: #E6C9D0; }
.slip > summary { list-style: none; cursor: pointer; padding: 18px 18px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; -webkit-tap-highlight-color: transparent; }
.slip > summary::-webkit-details-marker { display: none; }
.slip > summary::after {
  content: ""; width: 34px; height: 34px; border-radius: 50%; grid-column: 2; grid-row: 1 / span 3; align-self: center;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A2747' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid var(--line);
}
.slip[open] { box-shadow: var(--shadow-lift); }
.slip[open] > summary::after {
  background: var(--berry-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A2747' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: #F2C9D4;
}
.slip .day { grid-column: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--berry-ink); }
.slip .dish-title { grid-column: 1; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.slip .meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 4px; }
.slip.empty-day { background: var(--paper); border-style: dashed; border-color: var(--line-2); box-shadow: none; padding: 18px; }
.slip.empty-day::before { display: none; }
.slip.empty-day .day { margin-bottom: 4px; }
.slip.empty-day .btn { margin-top: 12px; }

/* Geöffnetes Rezept */
.sheet { border-top: 1px dashed var(--line-2); }
.sheet-head { background: var(--butter-soft); border-bottom: 1px solid var(--butter-line); padding: 16px 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--butter-ink); }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.facts dd small { font-family: var(--sans); font-size: 13px; color: var(--ink-2); font-weight: 400; display: block; }
.facts dd.open { color: var(--butter-ink); font-style: italic; }
.sheet-body { padding: 6px 18px 18px; }
.sheet-cols { display: grid; grid-template-columns: 1fr; gap: 4px 36px; }
@media (min-width: 720px) { .sheet-cols { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.sheet h3 { font-size: 20px; margin: 18px 0 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sheet h3 small { font-family: var(--sans); font-size: 13px; color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
ul.ings { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
ul.ings li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
ul.ings .qty { font-weight: 700; font-variant-numeric: tabular-nums; }
ul.ings .qty.soft { font-weight: 500; color: var(--ink-2); font-size: 16px; }
ul.ings .name { min-width: 0; }
ul.ings .name .muted { font-size: 13px; }
ul.ings li.none { display: block; color: var(--ink-2); }
ol.steps { list-style: none; padding: 0; margin: 4px 0 0; counter-reset: s; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 10px 0; }
ol.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--berry); color: #fff; font-weight: 700; font-size: 13px; margin-top: 1px;
}
ol.steps li.none::before { display: none; }
ol.steps li.none { display: block; color: var(--ink-2); }
.check-list { margin: 14px 0 4px; }
.check-list ul { margin: 4px 0 0; padding-left: 18px; }

/* Aktionen im geöffneten Rezept */
.sheet-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.seg-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.seg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--rose-2); border-radius: 14px; }
.seg button {
  min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
  font: 600 13px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.seg button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--berry-ink); box-shadow: 0 1px 2px rgba(41,30,33,.08), 0 0 0 1.5px var(--berry); cursor: default; }
.seg-hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.proto-foot { text-align: center; font-size: 13px; color: var(--ink-2); margin: 22px 0 4px; }
.proto-foot b { color: var(--sim-ink); font-weight: 600; }

/* ---------- Gemeinsame Seitenbausteine ---------- */
.page-head { margin: 4px 0 18px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lede { color: var(--ink-2); font-size: 16px; max-width: 40ch; margin: 0; }
.form-card h3 { margin: 0 0 4px; }
.form-card > .btn { margin-top: 14px; }
.savebar {
  position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 4;
  display: flex; gap: 10px; padding: 10px; margin: 16px -6px 0; border-radius: 18px;
  background: rgba(255,248,245,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.savebar .btn { flex: 1; }
@media (min-width: 760px) { .savebar { bottom: calc(var(--nav-h) + 30px); } }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn:hover { color: var(--berry-ink); border-color: var(--berry); }
.icon-btn:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }

/* Auswahl-Pillen: gut erkennbarer aktiver Zustand */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.pill { position: relative; display: inline-flex; margin: 0; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); font-size: 16px; line-height: 1.25;
}
.pill span::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; background: var(--card);
}
.pill input:checked + span { background: var(--berry); border-color: var(--berry); color: #fff; font-weight: 600; }
.pill input:checked + span::before {
  border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3385F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pill input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.pill:hover span { border-color: var(--berry); }
.pill.small span { min-height: 36px; padding: 5px 12px; font-size: 13px; }
.pill.small span::before { width: 15px; height: 15px; }
.pill.wide { display: flex; margin-top: 14px; }
.pill.wide span { width: 100%; border-radius: 14px; }

/* Plus-Minus für Personen */
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; margin-top: 10px; max-width: 320px; }
.step-btn { height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--rose-2); color: var(--berry-ink); cursor: pointer; display: grid; place-items: center; }
.step-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.step-btn:hover { border-color: var(--berry); }
.step-btn:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.stepper input { text-align: center; font-family: var(--serif); font-size: 28px; font-weight: 500; min-height: 56px; background: var(--card); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg.seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 4px; }

/* Rezept-Editor */
.scan-sources { margin: 12px 0 16px; font-size: 13px; color: var(--ink-2); }
.scan-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 4px; }
.scan-thumbs button { flex: none; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.reread-btn { margin-top: 12px; }
.reread-note { display: block; margin-top: 6px; }
.reread-busy { margin: 12px 0 0; font-size: 16px; color: var(--ink); font-weight: 700; }
.scan-viewer { position: fixed; inset: 0; z-index: 40; background: #1A1A1A; display: flex; flex-direction: column; }
.scan-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; color: #fff; font-size: 16px; font-weight: 700; }
.scan-viewer-bar .btn { width: auto; min-height: 44px; padding: 0 18px; }
.scan-viewer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
.scan-viewer-body img { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto 12px; }
body.no-scroll { overflow: hidden; }
.scan-thumbs img { display: block; width: 84px; height: 150px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.legend { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin: 0 0 4px; }
.legend .swatch { width: 18px; height: 18px; border-radius: 5px; background: var(--butter-soft); border: 1.5px solid #D9A441; flex: none; }
.ing-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ing-row .ing-name-field { grid-column: 1 / -1; }
.ing-row .fix-hint, .ing-row .ing-note { grid-column: 1 / -1; }
.ing-name { display: flex; gap: 6px; align-items: flex-start; }
.ing-name > input, .ing-name > textarea { flex: 1; min-width: 0; }
.fix-hint { margin: 6px 0 0; font-size: 16px; line-height: 1.4; color: #7A4B00; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fix-hint .btn.small { width: auto; min-height: 44px; padding: 0 14px; font-size: 16px; }
.ing-note { margin: 4px 0 0; font-size: 13px; }
.ing-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ing-tools .muted { font-size: 13px; }
.step-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--berry); color: #fff; font-weight: 700; font-size: 13px; margin-top: 10px; }

/* Import und Kontingent */
.note.rule { background: var(--butter-soft); border-color: var(--butter-line); font-size: 16px; transform: rotate(-.4deg); }
.note.rule strong { color: var(--ink); }
.quota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quota-big { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.quota-big small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.meter { height: 10px; border-radius: 99px; background: var(--rose-2); overflow: hidden; margin: 10px 0 0; }
.meter > i { display: block; height: 100%; background: var(--berry); border-radius: 99px; }
.quota-est { margin: 14px 0 0; font-size: 16px; }
.fine { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 150px; padding: 20px; margin: 0; border: 2px dashed #E6A9BE; border-radius: 16px; background: var(--berry-soft);
  color: var(--berry-ink); cursor: pointer; font-weight: 500;
}
.dropzone svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: 16px; }
.dropzone span { font-size: 13px; color: var(--ink-2); font-weight: 400; }
.dropzone:hover { border-color: var(--berry); }
.upload .stack { margin-top: 14px; }
.cost { margin: 6px 0 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 14px 0 0; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.thumbs figcaption { font-size: 13px; text-align: center; color: var(--ink-2); }
ul.ticks { list-style: none; padding: 0; margin: 8px 0 0; }
ul.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.ticks li:last-child { border-bottom: 0; }
ul.ticks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  background: var(--berry-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3385F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
ul.ticks.sim li::before { background-color: var(--sim-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F3F72' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.7 3h10.6a2 2 0 0 0 1.7-3l-5-9V3'/%3E%3C/svg%3E"); background-size: 13px; }
.sim-card { background: var(--sim-bg); border-color: var(--sim-line); box-shadow: none; }
.sim-card h3 { color: var(--sim-ink); }
.sim-card ul.ticks li { border-color: var(--sim-line); }
.proto-grid { display: grid; gap: 0 14px; margin-top: 4px; }
@media (min-width: 720px) { .proto-grid { grid-template-columns: 1fr 1fr; } .quota-grid { gap: 32px; } }

/* Einkaufszettel */
.shop-grid { display: grid; gap: 18px; margin: 18px 0; align-items: start; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.slip.shop { padding: 18px 18px 8px; }
.slip.open-qty { background: var(--butter-soft); border-color: var(--butter-line); }
.slip.open-qty::before { background: var(--butter); }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.shop-head h3 { margin: 0; }
.progress { font-size: 13px; font-weight: 600; color: var(--berry-ink); background: var(--berry-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.shop ul { list-style: none; padding: 0; margin: 0; }
.shop li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.shop li:last-child { border-bottom: 0; }
.shop input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--card); cursor: pointer; flex: none;
}
.shop input[type=checkbox]:checked {
  background: var(--berry) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--berry);
}
.shop input[type=checkbox]:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.shop .txt { display: block; margin: 0; font-weight: 400; cursor: pointer; }
.shop .item { display: block; font-weight: 600; }
.shop .from { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.shop li.done .item { text-decoration: line-through; text-decoration-color: var(--berry); color: var(--ink-2); font-weight: 500; }

/* Rest */
.link-btn { background: none; border: 0; color: var(--berry-ink); font: inherit; font-size: 13px; cursor: pointer; padding: 6px; min-height: 36px; }
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); z-index: 20; max-width: 520px; margin: 0 auto;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(41,30,33,.3);
}
.conditions h3 { margin-bottom: 2px; }

@media (prefers-reduced-motion: reduce) { .slip { transition: none; } }

/* ---------- Familienclan: Kühlschranktür und Charaktere ---------- */
.brand span { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: .02em; }
.slip.away-day { background: repeating-linear-gradient(-45deg, var(--paper), var(--paper) 10px, #FBF1EC 10px, #FBF1EC 20px); padding: 18px; }
.away-text { font-family: var(--serif); font-size: 20px; margin: 4px 0 2px; }
.pin-from { margin: 0; font-size: 13px; color: var(--ink-2); }
.badge.pin { background: var(--butter-pin); border-color: var(--butter-line); color: var(--butter-ink); }
.door-note { background: var(--butter-pin); }
.pins { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.pin-note { position: relative; background: var(--who, var(--butter-pin)); border-radius: 6px; padding: 12px 44px 12px 14px; box-shadow: 0 2px 6px rgba(41,30,33,.12); transform: rotate(-.6deg); display: grid; gap: 2px; }
.pin-note:nth-child(2n) { transform: rotate(.5deg); }
.pin-kind { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.pin-text { font-family: var(--serif); font-size: 16px; }
.pin-date { font-size: 13px; color: var(--ink-2); }
.pin-note .btn { position: absolute; top: 6px; right: 6px; min-height: 36px; min-width: 36px; padding: 6px; }
.pin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.pin-form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.pin-form .wide, .pin-form .btn { grid-column: 1 / -1; }
.pin-form input, .pin-form select { min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px; font: inherit; background: #fff; color: var(--ink); }
.dev-row { margin-top: 12px; }
.member { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.member-head { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.member-head h4 { margin: 0; font-family: var(--serif); font-size: 16px; }
.member-head p { margin: 2px 0 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--who); border: 1px solid rgba(41,30,33,.15); margin-top: 3px; }
.tiers { list-style: none; padding: 0; margin: 10px 0 0 32px; display: grid; gap: 6px; }
.tier { display: grid; grid-template-columns: 92px 1fr; gap: 0 10px; font-size: 16px; }
.tier-name { font-weight: 700; color: var(--ink-2); grid-row: span 2; }
.tier-state { color: var(--ink-2); font-size: 13px; }
.tier.mine .tier-state { color: var(--berry-ink); font-weight: 700; }
.tier.st-geplant { opacity: .65; }

/* =====================================================================
   OMA-LOOK (01.11.2026): wie die Oma im Mama-Team und im Karussell.
   Pfirsich-Grund, knalliges Pink, Handschrift für Omas Stimme,
   fette Poppins, schwarze Pill-Buttons, ein Hauch Leo.
   Diese Ebene überschreibt den alten Rosa-Look oben.
   Seit dem Clan-Look (docs/AUFTRAG-clan-design.md) gilt sie nur in der
   Oma-Welt: body[data-character="oma"]. Kopfzeile und Navigation gehören
   dem Clan-Rahmen (ganz unten).
   ===================================================================== */
@font-face { font-family: "Gochi Hand"; font-weight: 400; font-display: swap; src: url(fonts/gochi-hand-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(fonts/poppins-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url(fonts/lora-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 700; font-display: swap; src: url(fonts/lora-latin-700-normal.woff2) format("woff2"); }

body[data-character="oma"] {
  --peach: #FCDBC2;        /* Omas Hintergrund */
  --peach-soft: #FDE7D6;
  --cream: #FFF7F0;
  --hot: #FF4F8B;          /* Pink aus „Wieder keine Idee.“ und an(KI) */
  --magenta: #E0157C;      /* Omas Blazer */
  --orange: #F26B21;       /* Perlenkette */
  --gold: #D9A23A;         /* Armreifen, Ohrringe */
  --pot: #FDC3C1;          /* rosa Topf */

  --rose: var(--peach); --rose-2: var(--peach-soft);
  --paper: var(--cream); --card: #FFFFFF;
  --ink: #2A221E; --ink-2: #6B5A50;
  --line: #F3D9C6; --line-2: #EBC3A8;
  --berry: var(--magenta); --berry-hover: #C20F69; --berry-ink: #B3105F; --berry-soft: #FFE3EC;
  --butter: #FFE2A8; --butter-soft: #FFF2DC; --butter-pin: #FFF6E2; --butter-line: #F4D49A; --butter-ink: #7A5520;
  --serif: "Lora", Georgia, serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Gochi Hand", "Bradley Hand", cursive;
  --leo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23F7EFE6'/%3E%3Cg fill='none' stroke='%232A221E' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M5 7c3-3 7-2 8 1'/%3E%3Cpath d='M24 4c4 0 6 3 5 6'/%3E%3Cpath d='M8 24c-2 3 0 7 3 7'/%3E%3Cpath d='M27 22c3-2 7 0 7 3'/%3E%3Cpath d='M17 33c3 2 6 1 7-2'/%3E%3C/g%3E%3Cg fill='%232A221E'%3E%3Ccircle cx='18' cy='15' r='2.2'/%3E%3Ccircle cx='34' cy='35' r='1.8'/%3E%3Ccircle cx='3' cy='16' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(42,34,30,.06), 0 12px 30px rgba(42,34,30,.10);
  --r: 22px;
}
body { font: 16px/1.55 var(--sans); }
body[data-character="oma"] { background: var(--peach); }

/* Überschriften: Omas Handschrift, zweite Zeile knallpink */
[data-character="oma"] h1 { font-family: var(--hand); font-weight: 400; font-size: 40px; line-height: 1.0; letter-spacing: 0; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--hot); font-weight: inherit; }
h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.01em; }
.label { font-family: var(--sans); font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.lede { font-family: var(--serif); font-size: 16px; color: var(--ink); }

/* Omas Sprechblase: weiß, Handschrift, ihr Gesicht daneben */
.oma {
  transform: none; background: #fff; border: 0; border-radius: 22px 22px 22px 6px;
  padding: 14px 18px 18px 74px; min-height: 76px;
  font-family: var(--hand); font-size: 20px; line-height: 1.15; color: var(--ink);
  box-shadow: var(--shadow);
}
.oma::before {
  left: 12px; top: 12px; width: 50px; height: 50px; box-shadow: none; padding: 2px;
  background: url(img/oma-avatar.webp) center / cover no-repeat, var(--leo) 0 0 / 20px;
  background-clip: content-box, border-box; background-origin: content-box, border-box;
}
.oma::after { content: "KI-generiert"; position: absolute; left: 12px; bottom: 4px; width: 50px; text-align: center; font: 500 13px/1 var(--sans); color: var(--ink-2); }

/* Buttons: schwarze Pillen wie auf der Mama-Team-Seite */
.btn { border-radius: 999px; background: var(--ink); border-color: var(--ink); font: 700 16px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: #000; border-color: #000; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--cream); }
.btn.quiet { background: transparent; border-color: rgba(42,34,30,.35); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 700; }
.btn.danger { text-transform: none; letter-spacing: 0; border-color: var(--magenta); color: var(--berry-ink); }
input:focus, textarea:focus, select:focus { outline-color: rgba(224,21,124,.28); }

/* Wochenkarten: weiß, rund, ohne Deko-Magnete; Gericht in Lora */
.slip { border-radius: var(--r); border-color: transparent; box-shadow: var(--shadow); }
.slip::before { display: none; }
.slip .day { font-family: var(--sans); font-weight: 800; letter-spacing: .12em; color: var(--magenta); }
.dish-title { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.badge { font-family: var(--sans); background: var(--cream); border-color: var(--line); }
.badge.today { background: var(--leo) 0 0 / 22px; color: var(--ink); border: 2px solid var(--ink); font-weight: 800; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.badge.pin, .door-note { background: var(--pot); border-color: transparent; color: var(--ink); }
.note { border-radius: 18px; }
.slip.away-day { background: repeating-linear-gradient(-45deg, #fff, #fff 12px, var(--peach-soft) 12px, var(--peach-soft) 24px); }
.away-text { font-family: var(--hand); font-size: 28px; line-height: 1.1; }

/* Karten und Clan */
.card { border: 0; }
.card h3 { font-family: var(--sans); font-weight: 800; }
.pin-text { font-family: var(--hand); font-size: 20px; line-height: 1.1; }
.member-head h4 { font-family: var(--sans); font-weight: 800; }

/* Oma-Bühne (leere Woche, Clan-Seite) */
.oma-stage { position: relative; display: grid; grid-template-columns: 1fr 44%; align-items: end; gap: 8px; margin: 0 -16px 8px; padding: 8px 0 0 16px; overflow: hidden; }
.oma-stage img { width: 100%; height: auto; display: block; }
.oma-stage .ki { position: absolute; right: 10px; top: 8px; font: 500 13px/1 var(--sans); color: var(--ink-2); }
.oma-stage h1 { margin-bottom: .4rem; }
.oma-stage { grid-template-columns: 1fr 52%; align-items: center; }
.oma-stage h1 { font-size: 40px; }
.oma-stage img { margin-right: -10px; }
.oma-stage .label { font-size: 13px; }
.sheet-head { background: var(--peach-soft); border-bottom-color: var(--line); }
.shop-stage { margin-bottom: -6px; }
.shop-stage > :first-child { align-self: center; }

/* Login und Haushalt */
.login-form { display: grid; gap: 10px; margin-top: 10px; }
.login-form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.login-form input { min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; font: inherit; background: #fff; color: var(--ink); }
.people { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.people li { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; overflow-wrap: anywhere; }
.people li span { flex: 1 1 auto; min-width: 0; }
.people li small { flex: 0 0 auto; }
.people li .btn { flex: 0 0 auto; width: auto; min-width: 0; }

/* =====================================================================
   CLAN-RAHMEN (02.11.2026, docs/AUFTRAG-clan-design.md)
   Gehört allen: Kopfzeile, Navigation, Login, Clan-Seite, Kühlschranktür.
   Creme, Fast-Schwarz, Poppins. Pink nur für „KI“ im Logo, den aktiven Tab
   und einen Haupt-Button pro Seite. Kein Pfirsich, kein Leo, keine Oma.
   Die Welten der Figuren setzen --welt-bg und --welt-accent.
   ===================================================================== */
:root {
  --clan-bg: #FCEEDB; --clan-ink: #1A1A1A; --clan-pink: #FF4F8B;
  --rose: var(--clan-bg); --rose-2: #FFF6EA;
  --paper: #FFF9F1; --card: #FFFFFF; --cream: #FFF9F1;
  --ink: var(--clan-ink); --ink-2: #5F574F;
  --line: #EEDFC9; --line-2: #E0CBAC;
  --berry: var(--clan-ink); --berry-hover: #000; --berry-ink: var(--clan-ink); --berry-soft: #F6E6CF;
  --hot: var(--clan-pink);
  --serif: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Gochi Hand", "Bradley Hand", cursive;
  --shadow: 0 1px 2px rgba(26,26,26,.05), 0 10px 26px rgba(26,26,26,.08);
  --r: 22px;
  --welt-bg: var(--clan-bg); --welt-accent: var(--clan-pink);
}
body { background: var(--clan-bg); color: var(--ink); }
body:not([data-character]) h1 { font-family: var(--sans); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1.05; }
body:not([data-character]) h1 em { font-style: normal; color: inherit; }

/* Welten der Figuren: Hintergrund und Signalfarbe */
[data-character="oma"] { --welt-bg: #FCDBC2; --welt-accent: #FD40A4; }
[data-character="opa"] { --welt-bg: #A4DFFC; --welt-accent: #FE9232; --welt-accent-2: #0169E5; }
[data-character="patentante"] { --welt-bg: #C5ACE9; --welt-accent: #790D8D; --welt-accent-2: #F8C8F4; }
[data-character="kita-tante"] { --welt-bg: #DEECD3; --welt-accent: #2F8F5B; --welt-accent-2: #F06C9B; }

/* Kopfzeile: Logo Hey an(KI), rechts die Figuren */
.top { background: rgba(252,238,219,.95); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.brand { gap: 0; color: var(--clan-ink); text-decoration: none; }
.brand > span { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand .logo { display: block; white-space: nowrap; font: 800 20px/1.1 var(--sans); letter-spacing: -.01em; }
.logo b { color: var(--clan-pink); font-weight: 800; }
.brand-sub { font: 500 13px/1.3 var(--sans); color: var(--ink-2); letter-spacing: .02em; }
.clan-avatars { display: flex; align-items: center; gap: 0; }
.clan-avatars .av { position: relative; width: 34px; height: 34px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--clan-bg); background: var(--av-bg, #eee); flex: none; }
.clan-avatars .av:first-child { margin-left: 0; }
.clan-avatars .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.clan-avatars .av.locked img { filter: grayscale(1); opacity: .45; }
.clan-avatars .av.locked::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--clan-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* Navigation: gehört dem Rahmen, der aktive Tab trägt die Farbe der Welt */
.tabs { background: rgba(255,249,241,.97); border-top: 0; box-shadow: 0 -1px 0 var(--line); }
.tabs button { font-family: var(--sans); color: var(--ink-2); }
.tabs button[aria-current="page"] { color: #fff; background: var(--welt-accent); }
.tabs .tab-split { border-left: 1px solid var(--line); }

/* Haupt-Button der Seite in Clan-Pink */
.btn.main { background: var(--clan-pink); border-color: var(--clan-pink); color: #fff; }
.btn.main:hover { background: #F0397A; border-color: #F0397A; }

/* Clan-Startseite */
.clan-hero { position: relative; margin: -20px -16px 14px; }
/* Gruppenbild: Seitenverhältnis fest, keine Höhenbegrenzung. So ist der Ausschnitt bei jeder Breite gleich
   und die Köpfe (im Bild etwa zwischen 20 und 60 % der Höhe) sind immer ganz drauf. */
.clan-hero img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 52%; }
/* Abgemeldet flacher, damit „Anmelden“ ohne Scrollen zu sehen ist */
body.logged-out .clan-hero img { aspect-ratio: 16 / 9; object-position: center 33%; }
/* Breite Bildschirme: Bild nicht über die ganze Breite ziehen, sonst wird es riesig */
@media (min-width: 760px) { .clan-hero { max-width: 680px; margin: -20px auto 18px; } .clan-hero img { border-radius: 0 0 28px 28px; } }
.clan-hero .ki, .figur .ki { position: absolute; right: 10px; bottom: 8px; font: 500 13px/1 var(--sans); color: var(--ink-2); background: rgba(255,255,255,.8); padding: 3px 6px; border-radius: 999px; }
.clan-intro { margin-bottom: 18px; }
.clan-intro .label { color: var(--ink-2); }
.figuren { display: grid; gap: 12px; margin: 0 0 18px; }
@media (min-width: 760px) { .figuren { grid-template-columns: 1fr 1fr; } }
.figur { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 4px 14px; align-items: start; padding: 16px; border-radius: var(--r); background: var(--welt-bg); color: var(--clan-ink); border: 2px solid transparent; }
.figur.mine { border-color: var(--welt-accent); }
.figur-bild { position: relative; grid-row: span 3; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid var(--welt-accent); background: #fff; }
.figur-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figur h3 { margin: 0; font: 800 20px/1.2 var(--sans); }
.figur .job { margin: 0; font-size: 16px; }
.figur .voice { margin: 4px 0 0; font-family: var(--hand); font-size: 20px; line-height: 1.1; }
.figur-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.75); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--welt-accent); }
.status.bald { color: var(--ink-2); }
.status.bald::before { background: transparent; border: 2px solid var(--welt-accent); width: 6px; height: 6px; }
.figur-foot .btn { width: auto; min-height: 44px; padding: 8px 18px; }
.figur-foot a.more { color: var(--clan-ink); font-weight: 700; font-size: 16px; }
.clan-foot { margin: 22px 0 6px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* Kühlschranktür: Creme-Tür, Zettel in der Farbe ihrer Figur, Mama in Weiß mit schwarzem Rand */
.card.door { background: var(--paper); border: 2px solid var(--line-2); }
.pin-note { background: var(--note-bg, #fff); border: 2px solid var(--note-line, var(--clan-ink)); border-radius: 8px; box-shadow: 0 2px 6px rgba(26,26,26,.10); }
.pin-note.from-mama { --note-bg: #fff; --note-line: var(--clan-ink); }
.pin-kind { color: var(--clan-ink); opacity: .75; }
.pin-note { padding-right: 52px; }
.pin-note .btn { width: 36px; height: 36px; padding: 0; background: rgba(255,255,255,.85); }

/* Woche: Tauschen direkt auf der Karte, ohne sie aufzuklappen */
.slip > summary .swap-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  font: 700 13px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.slip > summary .swap-chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slip > summary .swap-chip:hover { background: var(--cream); }
.slip > summary .swap-chip:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }

/* Einkauf: für welche Gerichte */
.slip.shop-for { padding: 18px 18px 12px; margin: 18px 0 0; }
.for-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.for-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; }
.for-day { font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--berry-ink); }
.shop-for .link-btn { white-space: nowrap; }

/* „Bitte prüfen“: direkt nachtragen */
.check-list .fix-btn { margin-top: 10px; width: auto; min-height: 44px; }
.slip > summary .chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Gericht selbst aussuchen */
.pick-search input { width: 100%; min-height: 52px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 20px; font: 500 16px/1.2 var(--sans); background: #fff; color: var(--ink); }
.pick-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pick-item { width: 100%; display: grid; gap: 2px; text-align: left; padding: 14px 18px; border-radius: 18px; border: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.pick-item:hover { outline: 2px solid var(--ink); }
.pick-item:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.pick-item.now { outline: 2px solid var(--welt-accent); }
.pick-item.off { background: rgba(255,255,255,.55); box-shadow: none; cursor: default; color: var(--ink-2); }
.pick-title { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.pick-meta { font-size: 13px; color: var(--ink-2); }

/* ---------- Einkauf (Paket 1): im Laden mit einer Hand ---------- */
.shop-head-row h1 { font-size: 40px; margin-bottom: 4px; }
.view-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0 8px; background: rgba(255,255,255,.6); border-radius: 999px; }
.view-tabs button { min-height: 48px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 13px/1.15 var(--sans); cursor: pointer; padding: 6px 10px; }
.view-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.view-tabs .count, .aisle .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: var(--peach-soft, #FDE7D6); color: var(--ink); font: 700 13px/1 var(--sans); }
.view-tabs button[aria-selected="true"] .count { background: #fff; }
.shop-progress { margin: 4px 2px 10px; font-size: 16px; color: var(--ink-2); font-weight: 600; }
.shop-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); margin: 0 0 10px; overflow: hidden; }
.aisle > summary, .shop-recipe > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 18px; font: 800 16px/1.2 var(--sans); }
.aisle > summary::-webkit-details-marker, .shop-recipe > summary::-webkit-details-marker { display: none; }
.aisle > summary::after, .shop-recipe > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .15s; flex: none; }
.aisle[open] > summary::after, .shop-recipe[open] > summary::after { transform: rotate(-135deg); }
.shop-list { list-style: none; margin: 0; padding: 0 0 4px; }
.shop-row { position: relative; border-top: 1px solid var(--line); }
.shop-row > label { font-weight: 400; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.shop-row .txt { flex: 1; min-width: 0; }
.shop-row .item { font-weight: 700; }
.shop-row .qty { font-weight: 500; color: var(--ink); }
.shop-row .from { display: block; font: 500 13px/1.35 var(--sans); color: var(--ink-2); margin-top: 1px; }
.shop-row .tick { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick-box { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; background: #fff; }
.tick-box svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.shop-row .tick:checked + .tick-box { background: var(--ink); }
.shop-row .tick:checked + .tick-box svg { opacity: 1; }
.shop-row .tick:focus-visible + .tick-box { outline: 3px solid var(--berry); outline-offset: 2px; }
.shop-row.done .item, .shop-row.done .qty { text-decoration: line-through; color: var(--ink-2); font-weight: 500; }
.in-cart { opacity: .75; }
.shop-row .extra-del { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); }
.pantry-row .txt { padding: 12px 18px; display: block; color: var(--ink-2); }
.shop-card.pantry { padding: 14px 18px; }
.pantry-head { margin: 0 0 6px; font: 800 16px/1.2 var(--sans); }
.pantry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pantry-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; color: var(--ink-2); }
.pantry-list .link-btn { min-height: 44px; font-weight: 700; }
.shop-actions { margin: 16px 0 96px; }
.shop-recipe .sr-txt { display: grid; gap: 2px; min-width: 0; }
.shop-recipe .sr-title { font: 700 16px/1.2 var(--serif); }
.shop-recipe .from { font: 500 13px/1.3 var(--sans); color: var(--ink-2); }

/* Runder Plus-Knopf unten rechts, über der Navigation */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 9;
  width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(26,26,26,.28); cursor: pointer; }
.fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (min-width: 760px) { .fab { right: calc(50% - 300px); bottom: 100px; } }

/* Rezeptbilder: Foto oder Oma-Platzhalter in Pfirsich mit Topf */
.thumb { flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #FCDBC2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.small { width: 52px; height: 52px; }
.thumb.medium { width: 76px; height: 76px; border-radius: 16px; }
.thumb.placeholder svg { width: 62%; height: auto; }

/* Unteres Blatt für Menüs und kleine Formulare */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(26,26,26,.35); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 8px; box-shadow: 0 -10px 30px rgba(26,26,26,.18); }
.sheet-panel h3 { margin: 0 0 4px; font: 800 20px/1.2 var(--sans); }
.sheet-panel .login-form input { font-size: 16px; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 52px; width: 100%; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 600 16px/1.2 var(--sans); text-align: left; cursor: pointer; }
.menu-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-item.danger { color: #B3105F; }

/* ---------- Rezeptliste ---------- */
.recipe-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .recipe-list { grid-template-columns: 1fr 1fr; } }
.recipe-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.recipe-card:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.rc-txt { display: grid; gap: 4px; min-width: 0; }
.rc-title { font: 700 16px/1.25 var(--serif); }
.rc-meta { font-size: 13px; color: var(--ink-2); }
.rc-open { color: #8a5a00; font-weight: 700; }
.fav-dot { color: var(--welt-accent); }

/* ---------- Rezeptseite (Paket 2) ---------- */
body.on-recipe main { padding-top: 0; }
body.on-recipe .oma { display: none; }
.rp-photo { --shrink: 0; position: relative; margin: 0 -16px; height: calc(320px - 140px * var(--shrink)); overflow: hidden; background: #FCDBC2; transition: height .05s linear; }
.rp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-placeholder { height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ink-2); font: 600 13px/1 var(--sans); }
.rp-placeholder svg { width: 120px; height: auto; }
@media (min-width: 760px) { .rp-photo { margin: 0; border-radius: 0 0 28px 28px; } }
.rp-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: #FCDBC2; box-shadow: 0 1px 0 var(--line); transform: translateY(-110%); transition: transform .18s ease; }
.rp-bar.on { transform: none; }
.rp-bar-title { flex: 1; min-width: 0; font: 800 16px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-bar .icon-btn, .rp-cta .icon-btn { min-width: 44px; min-height: 44px; }
.rp-bar .icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rp-bar .icon-btn.on svg { fill: var(--welt-accent); stroke: var(--welt-accent); }
.rp { padding: 18px 2px 140px; }
.rp-title { font-family: var(--serif) !important; font-weight: 700 !important; font-size: 28px !important; line-height: 1.12 !important; margin: 0 0 10px; }
.rp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rp-fact { padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 16px; }
.rp-fact.open { background: #FFF2DC; color: #7A5520; }
.rp-sec { margin-top: 22px; }
.rp-sec h2 { font: 800 20px/1.2 var(--sans); margin: 0; }
.rp-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rp-persons { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.rp-persons button { min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 800 16px/1 var(--sans); cursor: pointer; }
.rp-persons button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rp-persons button:disabled { opacity: 1; }
.rp-hint { margin: 2px 0 8px; font-size: 13px; color: var(--ink-2); }
.rp-ings { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.rp-ing { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 18px; border-top: 1px solid var(--line); }
.rp-ing:first-child { border-top: 0; }
.rp-ing-name { display: grid; gap: 2px; font-weight: 600; min-width: 0; }
.rp-ing-name small { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.rp-ing-qty { flex: none; text-align: right; font-weight: 500; white-space: nowrap; }
.rp-ing-qty.missing { color: #8a5a00; font-style: italic; }
.rp-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.rp-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.rp-n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 16px/1 var(--sans); }
.rp-steps p { margin: 4px 0 0; font-size: 16px; line-height: 1.55; }
.rp-steps strong { font-weight: 800; background: #FFE3EC; padding: 0 3px; border-radius: 4px; }
.rp-notes { margin-top: 18px; }
.rp-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 9; display: flex; gap: 10px;
  padding: 0 16px; max-width: 560px; margin: 0 auto; }
.rp-cta .btn { box-shadow: 0 8px 22px rgba(42,34,30,.25); }
.rp-cta .main-oma { flex: 1; background: var(--welt-accent); border-color: var(--welt-accent); color: #fff; }
.rp-cta .rp-more { flex: none; width: 56px; padding: 0; background: #fff; }
.rp-cta .rp-more svg, .rp-cta .main-oma svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-cta .rp-more svg circle { fill: currentColor; }
@media (min-width: 760px) { .rp-cta { bottom: 100px; } }
.menu-item small { margin-left: auto; font-weight: 400; }
.rp-float { position: absolute; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(26,26,26,.18); }
.rp-float.left { left: 16px; } .rp-float.right { right: 16px; }
.rp-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rp-float.on svg { fill: var(--welt-accent); stroke: var(--welt-accent); }

/* ---------- Woche (Paket 3): Heute, Morgen, dann Tage mit Datum ---------- */
.wk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wk-cal { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.wk-cal svg, .wk-more svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wk-more svg circle { fill: currentColor; }
.wk-list { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 14px; }
.wk-day { margin: 0 4px 6px; font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.wk-day.today { color: var(--berry-ink); }
.wk-dish { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 6px 10px 10px; }
.wk-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.wk-txt { display: grid; gap: 4px; min-width: 0; }
.wk-title { font: 700 20px/1.2 var(--serif); }
.wk-meta { font-size: 13px; color: var(--ink-2); }
.wk-more { flex: none; min-width: 44px; min-height: 44px; }
.wk-away { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--note-bg, #fff); border: 2px solid var(--note-line, var(--ink)); transform: rotate(-.4deg); }
.wk-empty { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); border: 2px dashed var(--line-2); background: rgba(255,255,255,.5); }
.wk-empty-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wk-empty-btns .btn { width: auto; min-height: 44px; }
.wk-past { margin: 0 0 16px; }
.wk-past > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--ink-2); }
.wk-past .wk-dish, .wk-past .wk-empty { opacity: .6; }
.glance { list-style: none; margin: 0 0 6px; padding: 0; display: grid; }
.glance li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--line); }
.glance li.past { opacity: .5; }
.gl-day { font: 800 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Design-Check (02.11.2026): eindeutige Fixes ---------- */
/* Ab 16 px zoomt das iPhone beim Antippen nicht in Eingabefelder. */
input, select, textarea, .pin-form input, .pin-form select, .login-form input { font-size: 16px; }
/* Tippflächen mindestens 44 px */
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.figur-foot a.more { display: inline-flex; align-items: center; min-height: 44px; }
.icon-btn { min-width: 44px; min-height: 44px; }
/* Pink mit dunkler Schrift: Weiß auf Pink hatte nur 3,1 : 1 */
.btn.main, .btn.main:hover, .rp-cta .main-oma { color: var(--clan-ink); }
.tabs button[aria-current="page"] { color: var(--clan-ink); }
/* Oma-Welt: zweite Überschriftzeile in Omas Blazer-Pink, auf Pfirsich gut lesbar (3,5 : 1 statt 2,4 : 1) */
[data-character="oma"] h1 em, [data-character="oma"] h2 em, [data-character="oma"] h3 em { color: #E0157C; }
/* Abgemeldet: Gruppenbild flacher, damit „Anmelden“ ohne Scrollen zu sehen ist */
/* Symbole statt Emoji */
.ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.fav-dot svg { width: 15px; height: 15px; fill: var(--welt-accent); stroke: var(--welt-accent); vertical-align: -2px; }
label.btn { cursor: pointer; }

/* Figuren oben rechts (Design-Frage 1): Ring statt Schloss, die ganze Reihe ist ein Knopf */
.clan-avatars { min-height: 44px; padding: 4px 2px; border: 0; background: none; cursor: pointer; border-radius: 999px; }
.clan-avatars:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.clan-avatars .av { border: 2px solid var(--clan-bg); box-shadow: 0 0 0 2px var(--av-ring, var(--ink)); margin-left: -2px; }
.clan-avatars .av.soon { box-shadow: 0 0 0 1.5px var(--av-ring, var(--ink)); }
.clan-avatars .av.soon img { filter: saturate(.55); opacity: .85; }
.clan-avatars .av.locked::after, .clan-avatars .av::after { content: none; }
.glance-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--av-ring); }
.glance-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glance-txt { display: grid; gap: 2px; }
.glance-txt small { font-weight: 400; color: var(--ink-2); }
.glance-txt small { margin-left: 0; }

/* Rechtstexte (Entwurf) und Links darauf */
.legal { max-width: 680px; padding-bottom: 40px; }
.legal h2 { font: 800 20px/1.25 var(--sans); margin: 24px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ink); font-weight: 700; }
.clan-foot a, .legal-links a, .legal .legal-back { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.legal-links { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
/* „KI-generiert“ unter Omas Bild: in 13 px passt es nicht unter das Bild, deshalb links unten in der Blase */
.oma { padding-bottom: 28px; }
.oma::after { left: 14px; bottom: 6px; width: auto; text-align: left; white-space: nowrap; font: 500 13px/1 var(--sans); }
/* Abgemeldet auf breiten Bildschirmen: Ausschnitt höher, damit die Köpfe ganz drauf sind */

/* Einkauf: Rezepte abwählen und eigene Sachen direkt dazuschreiben */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.recipe-pick .pick-note { margin: 0; padding: 0 18px 10px; font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.pick-row .thumb { flex: none; }
.pick-row.off .item { color: var(--ink-2); font-weight: 500; }
.pick-row.off .thumb { opacity: .45; }
.extra-inline { display: flex; gap: 8px; margin: 0 0 14px; }
.extra-inline input { flex: 1; min-width: 0; font-size: 16px; min-height: 48px; }
.extra-inline .btn { flex: none; min-height: 48px; margin: 0; }
.recipe-pick > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 18px; font: 800 16px/1.2 var(--sans); }
.recipe-pick > summary::-webkit-details-marker { display: none; }
.recipe-pick > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .15s; flex: none; }
.recipe-pick[open] > summary::after { transform: rotate(-135deg); }
.extra-head { margin: 0; padding: 14px 18px 6px; font: 800 16px/1.2 var(--sans); }
.extra-inline .btn { width: auto; padding: 0 22px; }
.extra-inline input { width: auto; }
.recipe-pick > summary .count { white-space: nowrap; }

/* Familienclan: gemeinsame Designwerte und ruhige Arbeitsflächen. */
:root, body, body[data-character="oma"] {
  --cream: #FFF8EF; --paper: #FFF8EF; --card: #FFFEFA;
  --ink: #281F1B; --ink-2: #72655C; --line: #E5D9CC; --line-2: #C9BBAA;
  --pink: #D90070; --lilac: #E8D8F4; --peach: #FCDBC2;
  --rose: var(--cream); --rose-2: var(--card);
  --berry: var(--pink); --berry-hover: #B5005D; --berry-ink: #B5005D; --berry-soft: #FBE6EF;
  --clan-bg: var(--cream); --clan-ink: var(--ink); --clan-pink: var(--pink);
  --welt-bg: var(--cream); --welt-accent: var(--pink); --magenta: var(--pink); --hot: var(--pink);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--sans); --hand: "Gochi Hand", cursive;
  --r: 10px; --tap: 48px; --nav-h: 76px;
  --shadow: none; --shadow-lift: 0 4px 16px #281f1b0d;
}
html { scroll-padding-top: 90px; }
body, body[data-character="oma"] { background: var(--cream); font: 400 16px/1.55 var(--sans); }
body { padding-bottom: calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
body h1, body:not([data-character]) h1, body[data-character="oma"] h1 {
  font: 900 clamp(2rem, 4vw, 3rem)/1.06 var(--sans); letter-spacing: -.045em; text-wrap: pretty;
}
body h2 { font: 800 1.45rem/1.2 var(--sans); letter-spacing: -.025em; }
body h3 { font: 800 1.15rem/1.25 var(--sans); letter-spacing: -.015em; }
body h1 em, body h2 em, body h3 em, body[data-character="oma"] h1 em { font: inherit; color: inherit; }
body .label { color: var(--ink-2); font: 800 .7rem/1.5 var(--sans); letter-spacing: .12em; }
body .lede { font: 400 1rem/1.6 var(--sans); color: var(--ink-2); max-width: 42em; }
body main, body.on-recipe main { max-width: 1040px; padding: 28px 28px 24px; }
body main > * { min-width: 0; }
h1, h2, h3, p, button, a, .item, .rc-title, .wk-title { overflow-wrap: anywhere; }
button, a, input, summary, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
[hidden] { display: none !important; }
a { color: var(--berry-ink); }
body .top { position: relative; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: none; padding: 15px max(24px, calc((100vw - 984px)/2)); }
body .brand { color: var(--ink); }
body .brand .logo { font: 900 26px/1.05 var(--sans); letter-spacing: -.06em; }
body .brand-sub { font: 500 .7rem/1.5 var(--sans); letter-spacing: 0; margin-top: 4px; }
body .clan-avatars { gap: 5px; }
body .clan-avatars .av { width: 32px; height: 32px; margin: 0; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); }
body .clan-avatars .av.soon img { filter: none; opacity: 1; }
body .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px max(12px, calc((100vw - 680px)/2)) calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: none; }
body .tabs button { min-height: 62px; border-radius: 8px; font-size: .75rem; font-weight: 600; }
body .tabs button[aria-current="page"] { color: var(--pink); background: #FBE6EF; font-weight: 800; }
body .tabs svg { width: 22px; height: 22px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 60; background: var(--ink); color: white; padding: 12px; }
.skip-link:focus { top: 12px; }
body .btn, body .btn.main, body .rp-cta .main-oma { background: var(--pink); border: 1px solid var(--pink); border-radius: 7px; color: white; font: 700 .9375rem/1.35 var(--sans); text-transform: none; letter-spacing: 0; padding: 12px 18px; min-height: 48px; }
body .btn:hover, body .btn.main:hover { background: var(--berry-hover); border-color: var(--berry-hover); color: white; }
body .btn.secondary { background: var(--card); border-color: var(--line-2); color: var(--ink); }
body .btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
body .btn.quiet:hover { color: var(--ink); background: #F1E9E0; }
body .btn.danger { background: transparent; color: var(--berry-ink); border-color: var(--line-2); }
body .icon-btn { border-radius: 8px; }
body .page-head, body .week-head { margin-bottom: 24px; }
body .oma-stage { display: block; padding: 0; margin: 0 0 20px; overflow: visible; }
body .oma-stage > img, body .oma-stage > .ki { display: none; }
body .oma-stage h1 { font-size: clamp(2rem, 4vw, 3rem); }
body .oma, .personal-note { background: var(--lilac); border: 0; border-radius: 3px 10px 10px 3px; padding: 16px 20px; box-shadow: none; transform: none; color: var(--ink); font: 400 1.45rem/1.25 var(--hand); width: 100%; margin: 26px 0 6px; max-width: none; }
body .oma { min-height: 0; }
body .oma::before { content: 'Die Küchen-Oma'; display: block; position: static; width: auto; height: auto; padding: 0; margin: 0 0 7px; background: none; font: 800 .65rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .1em; box-shadow: none; border: 0; }
body .oma::after { content: none; }
.personal-note > span { display: block; font: 800 .65rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 7px; }
.personal-note p { margin: 0; }
body .kitchen-context { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .75rem; margin: -8px 0 6px; flex-wrap: wrap; }
.kitchen-context a, .back-link { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-2); }
.kitchen-context a::after { content: '/'; color: var(--line-2); margin-left: 8px; }
.kitchen-context svg, .back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.local-nav { display: flex; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.local-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-size: .875rem; }
.local-nav a[aria-current="page"] { background: var(--lilac); color: var(--ink); font-weight: 800; }
.today-meal { padding: 28px; border: 1px solid var(--ink); border-radius: 10px; box-shadow: 0 5px 0 var(--pink); background: var(--card); margin: 8px 0 30px; }
body .today-meal h2, body .today-meal h1 { font: 900 clamp(1.875rem, 4vw, 2.75rem)/1.06 var(--sans); letter-spacing: -.045em; max-width: 20em; margin: 14px 0 22px; }
.today-meal > p:not(.label) { color: var(--ink-2); margin: 12px 0 18px; }
.meal-facts { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 20px; font-size: .875rem; font-weight: 700; }
.meal-facts span { display: inline-flex; gap: 6px; align-items: center; }
.meal-facts svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; }
.today-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.today-actions .btn { flex: 1 1 180px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin: 30px 0 12px; }
body .section-heading h2 { font-size: 1.125rem; margin: 0; }
.section-heading > span { color: var(--ink-2); font-size: .8rem; }
.section-heading a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 700; text-decoration: none; }
body .wk-list { gap: 0; margin: 0 0 24px; }
body .wk-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
body .wk-day { font-size: .7rem; margin: 0 0 8px; }
body .wk-dish { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
body .wk-title { font: 800 1.1rem/1.25 var(--sans); letter-spacing: -.015em; }
body .wk-empty { padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--card); }
body .wk-away { transform: none; }
body .wk-cal { border: 1px solid var(--line); border-radius: 8px; }
body .clan-intro { margin: 0 0 28px; }
.clan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.clan-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.clan-card:hover { border-color: var(--ink-2); box-shadow: var(--shadow-lift); }
.clan-card-image { aspect-ratio: 1.45; overflow: hidden; background: var(--peach); }
.clan-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.clan-card[data-member="patentante"] img { object-position: center 36%; }
.clan-card[data-member="opa"] img { object-position: center 20%; }
.clan-card-copy { padding: 22px 24px; }
body .clan-card h2 { font-size: 1.4rem; margin: 0 0 6px; }
.clan-card-copy p { font-size: .875rem; color: var(--ink-2); margin-bottom: 16px; }
.member-state { display: block; color: var(--berry-ink); font-size: .75rem; font-weight: 800; }
.clan-card:not([data-member="oma"]) .member-state { color: var(--ink-2); }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shortcut { position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 5px 14px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); text-decoration: none; }
.shortcut svg { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: var(--pink); stroke-width: 1.8; }
.shortcut strong { font-size: 1rem; padding-right: 14px; }
.shortcut span { grid-column: 2; font-size: .8rem; color: var(--ink-2); }
.shortcut b { position: absolute; right: 14px; top: 18px; color: var(--pink); }
.future-list { margin-top: 28px; padding: 24px; border-radius: 10px; background: #DDEFF9; }
.availability { display: inline-block; font: 700 .7rem/1.5 var(--sans); border: 1px solid var(--ink-2); border-radius: 5px; padding: 4px 8px; margin-bottom: 18px; color: var(--ink); }
.future-banner { display: grid; grid-template-columns: 1fr 45%; gap: 24px; background: var(--lilac); border-radius: 12px; overflow: hidden; margin: 14px 0 28px; align-items: center; }
.future-banner > div { padding: 28px; }
.future-banner > img { width: 100%; height: 100%; object-fit: cover; }
.future-banner[data-member="opa"] { background: #DDEFF9; }
.future-banner[data-member="kita-tante"] { background: #E3EEDB; }
.device-settings, .import-conditions { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 12px 18px; margin: 24px 0 12px; }
.device-settings summary, .import-conditions summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 700; }
body .collection-tools { margin: 24px 0 10px; }
.collection-tools > label { font-size: .8rem; }
input[type=search] { appearance: none; width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink); }
.recipe-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.recipe-filters button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink-2); font: 600 .85rem var(--sans); cursor: pointer; }
.recipe-filters [aria-pressed="true"] { color: var(--ink); background: var(--lilac); border-color: var(--lilac); font-weight: 800; }
#recipe-count { font-size: .8rem; }
body .recipe-list { gap: 0 28px; }
body .recipe-card { background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); padding: 22px 0; box-shadow: none; min-height: 100%; align-items: flex-start; }
.recipe-number { font: 700 .75rem/1.5 var(--sans); color: var(--ink-2); padding-top: 4px; min-width: 24px; }
body .rc-title { font: 800 1.25rem/1.2 var(--sans); letter-spacing: -.025em; }
body .rc-meta { font-size: .8rem; margin-top: 5px; }
body .recipe-card::after { content: '↗'; font-size: 1.125rem; color: var(--pink); margin-left: auto; }
body .thumb { border-radius: 7px; background: transparent; }
body .thumb.medium { width: 76px; height: 76px; border-radius: 7px; }
body .rp-bar { display: none; }
.recipe-tools { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.recipe-tools .btn { width: auto; padding-left: 0; }
.recipe-tools > .icon-btn { flex: none; border: 1px solid var(--line); background: var(--card); }
.recipe-tools svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.recipe-tools .on { color: var(--pink); }
body .rp-photo { margin: 0 0 24px; height: 300px; border-radius: 10px; }
body .rp { padding: 0; max-width: none; }
body .rp-title { font: 900 clamp(2rem, 4vw, 3rem)/1.08 var(--sans) !important; letter-spacing: -.045em; margin: 12px 0 20px; }
body .rp-facts { padding: 12px 0; border-block: 1px solid var(--line); border-radius: 0; }
body .rp-fact { padding: 4px 14px 4px 0; background: transparent; font-size: .875rem; border-radius: 0; }
body .rp-sec { margin-top: 30px; }
body .rp-sec h2 { font-size: 1.25rem; }
body .rp-ings { background: var(--card); border: 1px solid var(--line); box-shadow: none; border-radius: 8px; }
body .rp-ing { padding: 14px 16px; }
body .rp-ing-qty { font-weight: 700; font-variant-numeric: tabular-nums; white-space: normal; max-width: 45%; }
body .rp-ing-name { font-weight: 500; }
body .rp-n { background: transparent; color: var(--pink); border-radius: 0; font-size: .875rem; width: 26px; height: 30px; }
body .rp-steps { gap: 22px; max-width: 72ch; }
body .rp-steps li { grid-template-columns: 26px minmax(0, 1fr); }
body .rp-cta { position: static; padding: 0; margin: 32px 0 0; max-width: none; }
body .rp-cta .btn { box-shadow: none; }
body.on-recipe { padding-bottom: calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
body .card, body .shop-card { border: 1px solid var(--line); border-radius: 8px; box-shadow: none; background: var(--card); }
body .shop-row .tick-box { border-radius: 5px; width: 28px; height: 28px; border-width: 1.5px; }
body .shop-row .tick:checked + .tick-box { background: var(--pink); border-color: var(--pink); }
body .shop-row label { min-height: 64px; }
body .shop-row .item, body .shop-recipe .sr-title { font-family: var(--sans); }
body .shop-row .qty { font-weight: 700; font-variant-numeric: tabular-nums; }
body .shop-progress { font-weight: 700; color: var(--ink-2); }
body .shop-actions { margin-bottom: 12px; }
body .fab { position: static; width: 48px; height: 48px; margin: 20px 0 0 auto; border-radius: 8px; box-shadow: none; background: var(--pink); }
body label.fab { display: flex; align-items: center; justify-content: center; }
body .savebar { position: static; background: transparent; padding: 16px 0; border: 0; box-shadow: none; }
body .sheet-panel { max-height: 90dvh; overflow-y: auto; border-radius: 12px 12px 0 0; background: var(--card); }
body .form-card { padding: 20px; }
body input[type=text], body input[type=number], body textarea, body select { border-radius: 7px; background: var(--card); }
.import-progress { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0 0 20px; font: 700 .75rem/1.5 var(--sans); color: var(--ink-2); }
.import-progress [aria-current="step"] { color: var(--pink); }
body .upload { background: var(--lilac); border: 1px dashed var(--ink-2); padding: 24px; }
body .dropzone { border: 0; background: transparent; padding: 10px 0 20px; margin: 0; }
body .dropzone strong { font: 800 1.25rem/1.3 var(--sans); }
body .dropzone span { color: var(--ink-2); font-size: .875rem; }
.accessible-file { display: block; max-width: 100%; width: 100%; min-height: 44px; margin-bottom: 12px; color: var(--ink); font: .8rem var(--sans); }
.accessible-file::file-selector-button { font: 700 .8rem var(--sans); background: var(--card); color: var(--ink); border: 1px solid var(--ink-2); border-radius: 6px; padding: 12px; margin-right: 10px; cursor: pointer; }
body .import-conditions .card { border: 0; padding: 12px 0; }
body .fix-hint { color: #754B00; font: 500 .85rem/1.5 var(--sans); }
body .legend, body .sim-note { font-family: var(--sans); font-size: .875rem; }
body .pin-text, body .away-text { font-family: var(--sans); font-size: 1rem; }
@media (min-width: 800px) {
  body[data-page="heute"] main, body[data-page="woche"] main, body[data-page="import"] main, body[data-page="rezept"] main, body[data-page="familie"] main, body[data-page="einkauf"] main { max-width: 860px; }
  .clan-grid { gap: 28px; }
  .clan-card-image { aspect-ratio: 1.55; }
}
@media (max-width: 600px) {
  body main, body.on-recipe main { padding: 20px 18px 24px; }
  body .top { padding: 12px 18px; gap: 8px; }
  body .brand .logo { font-size: 24px; }
  body .clan-avatars { gap: 0; }
  body .clan-avatars .av { width: 28px; height: 28px; margin-left: -3px; }
  .local-nav { gap: 4px; margin-bottom: 20px; }
  .local-nav a { padding: 10px 12px; flex: 1; font-size: .8rem; }
  .today-meal { padding: 20px; }
  .today-actions { gap: 4px; }
  .today-actions .btn { flex-basis: 100%; }
  .clan-grid { gap: 12px; }
  .clan-card-image { aspect-ratio: .92; }
  .clan-card-copy { padding: 14px 12px 16px; }
  body .clan-card h2 { font-size: 1.05rem; letter-spacing: -.03em; }
  .clan-card-copy p { font-size: .75rem; margin-bottom: 12px; }
  .member-state { font-size: .65rem; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .future-banner { grid-template-columns: 1fr; gap: 0; }
  .future-banner > div { padding: 24px; }
  .future-banner > img { max-height: 280px; object-position: center 25%; }
  .recipe-list { grid-template-columns: 1fr; }
  body .rp-photo { height: 220px; }
  body .form-card { padding: 16px; }
  body .upload { padding: 18px; }
  body .recipe-card .thumb.medium { width: 60px; height: 60px; }
}
@media (max-width: 360px) {
  body main, body.on-recipe main { padding-inline: 14px; }
  body .top { padding-inline: 14px; }
  body .clan-avatars .av { width: 24px; height: 24px; }
  body .brand-sub { font-size: .625rem; }
  .today-meal { padding: 18px 16px; }
  .clan-grid { gap: 10px; }
  .clan-card-copy { padding: 12px 10px; }
  body .clan-card h2 { font-size: 1rem; }
  body .ing-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  body .ing-row .ing-name-field { grid-column: 1 / -1; }
  body .extra-inline .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

.today-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.today-top .label { margin: 0; }
.today-top .icon-btn { border: 1px solid var(--line); background: transparent; flex: none; }
.today-top svg { width: 20px; height: 20px; fill: currentColor; }
/* Große Schrift darf die Kopfzeile umbrechen. Arbeitsinhalte bleiben im Fluss. */
body .top { flex-wrap: wrap; }
body .top > * { min-width: 0; }
body .shop-row .txt, body .step-row > div { min-width: 0; }
body input, body select, body textarea { max-width: 100%; }
body main:focus { outline: none; }
/* Gedämpfter Text auf Flieder braucht etwas mehr Tiefe als auf Creme. */
.personal-note > span, body .dropzone span { color: #5E5048; }
body .tabs button[aria-current="page"] { color: #B5005D; }

/* Leere Einkaufsliste: Abstand zwischen Hauptknopf und Dazuschreiben */
.extra-title { margin: 32px 0 10px; font-size: 1.05rem; }

/* Leiser Hinweis zu Unverträglichem */
.small { font-size: 14px; }
.allergy-line { margin: 16px 0 0; }

/* Hinweis: App auf den Home-Bildschirm legen */
.install-hint { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0; padding: 18px; background: var(--white, #FFFEFA); border: 1px solid var(--line, #E5D9CC); border-radius: 12px; }
.install-hint img { flex: none; width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--line, #E5D9CC); }
.install-hint h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.install-hint p { margin: 0 0 10px; }
.install-hint .btn { margin-top: 4px; }
.install-hint .link-btn { margin: 6px 0 0 -6px; min-height: 44px; }
.install-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.install-steps .ic { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-again { margin: 24px 0 0; }
.install-again summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.install-again .install-hint { margin-top: 8px; }
@media (max-width: 359px) { .install-hint { flex-direction: column; } }
