@font-face { font-family: "Anton"; src: url(fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f7f2e7;
  --card: #ffffff;
  --ink: #1e1a15;
  --ink-2: #3b342b;
  --muted: #6a6255;
  --line: #ebe2cf;
  --gold: #e8b100;
  --gold-d: #8a6700;
  --gold-l: #fff1c2;
  --green: #2b8556;
  --green-l: #e2f2e8;
  --rose: #c4573f;
  --dark: #1f1b16;
  --r: 20px;
  --shadow: 0 1px 2px rgba(50, 35, 10, .05), 0 8px 24px rgba(50, 35, 10, .07);
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
#app { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-t) + 12px) 16px calc(var(--tabs-h) + var(--safe-b) + 28px); min-height: 100vh; }
.display { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
h1, h2, h3 { margin: 0; }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; min-height: 44px; }
.top .brand { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.top .brand b { color: var(--gold-d); }
.top h1 { font-size: 30px; }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Tages-Kopf */
.dayhero { background: var(--dark); color: #f7efdc; border-radius: 26px; padding: 16px 14px 18px; box-shadow: 0 10px 30px rgba(30, 20, 5, .25); position: relative; overflow: hidden; }
.dayhero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 177, 0, .22), rgba(232, 177, 0, 0) 70%); pointer-events: none; }
.dh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.dh-nav { width: 48px; height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.dh-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dh-nav:disabled { opacity: .25; }
.dh-mid { text-align: center; flex: 1; }
.dh-tag { font-family: Anton, Impact, sans-serif; text-transform: uppercase; font-size: 46px; line-height: 1; color: var(--gold); letter-spacing: .01em; }
.dh-tag small { font-size: 20px; color: #f7efdc; margin-left: 4px; }
.dh-sub { font-size: 14.5px; white-space: nowrap; color: #d9cfb9; margin-top: 4px; }
.dh-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); margin: 14px 4px 0; overflow: hidden; position: relative; z-index: 1; }
.dh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f3c740, var(--gold)); border-radius: 8px; transition: width .5s ease; }
.dh-line { position: relative; z-index: 1; text-align: center; margin-top: 12px; font-size: 15px; color: #f7efdc; font-weight: 600; }
.today-link { display: block; margin: 10px auto 0; padding: 8px 14px; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 15px; position: relative; z-index: 1; }

/* Hinweis-Kasten */
.remind { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--gold-l); border: 1px solid #f1d57a; }
.remind h3 { font-size: 15px; font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.remind h3 svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.remind ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.remind li { font-size: 16px; }
.remind li b { font-weight: 700; }
.remind a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.install { margin-top: 14px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px dashed #d9c48a; }
.install p { margin: 0; font-size: 15px; flex: 1; }
.install button { font-weight: 700; color: var(--gold-d); }

/* Mahlzeiten */
.meals { display: grid; gap: 12px; margin-top: 16px; }
.meal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; transition: border-color .2s, background .2s; }
.meal.done { border-color: #b9dcc7; background: #fbfefc; }
.m-main { display: flex; gap: 12px; }
.m-img { flex: 0 0 96px; height: 96px; border-radius: 14px; background: #eee7d8 center / cover no-repeat; position: relative; }
.meal.done .m-img::after { content: ""; position: absolute; inset: 0; border-radius: 14px; background: rgba(43, 133, 86, .18); }
.m-body { min-width: 0; flex: 1; }
.m-lab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; letter-spacing: .02em; text-transform: none; font-weight: 700; }
.pill.cook { background: var(--gold); color: var(--ink); }
.pill.prep { background: var(--gold-l); color: var(--gold-d); border: 1px solid #f0d67f; }
.pill.rest { background: var(--green-l); color: var(--green); }
.pill.alt { background: #ece6ff; color: #5b47b5; }
.m-title { display: block; font-size: 17.5px; font-weight: 700; line-height: 1.25; margin-top: 3px; }
.m-kc { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.m-kc b { color: var(--ink-2); font-weight: 700; }
.m-note { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #faf6ec; font-size: 15px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.m-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--gold-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-note button { text-decoration: underline; font-weight: 600; color: var(--gold-d); }
.m-act { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.eat { height: 48px; border-radius: 14px; border: 2px solid #cfe5d8; color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; transition: background .2s, color .2s, transform .1s; }
.eat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.eat.on { background: var(--green); border-color: var(--green); color: #fff; }
.eat:active, .swapbtn:active, .big:active { transform: scale(.98); }
.swapbtn { height: 48px; padding: 0 16px; border-radius: 14px; background: #f3eee2; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.swapbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tagessumme */
.sum { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--dark); color: #fff; }
.sum b { font-size: 20px; }
.sum span { font-size: 14px; color: #d9cfb9; }
.sum .free { background: var(--green); color: #fff; font-weight: 700; padding: 5px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }

/* Checkliste */
.check { margin-top: 16px; padding: 6px 16px 10px; }
.check h2, .sec-h { font-size: 18px; font-weight: 800; padding: 12px 0 6px; }
.ck { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); }
.ck:first-of-type { border-top: 0; }
.ck .ci { flex: 0 0 38px; height: 38px; border-radius: 12px; background: #f6f0e1; display: grid; place-items: center; }
.ck .ci svg { width: 21px; height: 21px; fill: none; stroke: var(--gold-d); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ck .ct { flex: 1; min-width: 0; }
.ck .ct b { display: block; font-weight: 600; }
.ck .ct small { color: var(--muted); font-size: 13.5px; }
.tog { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; border: 2px solid #d9cfbb; display: grid; place-items: center; background: #fff; transition: background .2s, border-color .2s; }
.tog svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.tog.on { background: var(--green); border-color: var(--green); }
.tog.on svg { opacity: 1; }
.step { display: flex; align-items: center; gap: 6px; }
.step button { width: 44px; height: 44px; border-radius: 12px; background: #f3eee2; font-size: 24px; font-weight: 600; line-height: 1; }
.step output { min-width: 62px; text-align: center; font-weight: 700; }
.num { width: 96px; height: 48px; border-radius: 14px; border: 2px solid #d9cfbb; padding: 0 10px; text-align: right; font-weight: 700; background: #fff; }
.num:focus, textarea:focus, .search:focus { outline: none; border-color: var(--gold); }
.unit { color: var(--muted); font-size: 15px; }
textarea { width: 100%; min-height: 84px; border-radius: 14px; border: 2px solid #e4dac6; padding: 10px 12px; resize: vertical; background: #fffdf8; margin: 4px 0 8px; }
.big { width: 100%; height: 58px; border-radius: 18px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; box-shadow: 0 6px 18px rgba(232, 177, 0, .35); transition: transform .1s; }
.big svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.big.done { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(43, 133, 86, .3); }
.big.ghost { background: var(--card); border: 1px solid var(--line); box-shadow: none; font-size: 16px; }
.plus { margin-top: 10px; font-size: 15px; color: var(--ink-2); text-align: center; }

/* Woche */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 15px; white-space: nowrap; }
.chip.on { background: var(--dark); color: var(--gold); border-color: var(--dark); }
.whead { margin-top: 8px; padding: 18px; }
.whead h2 { font-size: 30px; margin-top: 6px; }
.whead .sub { color: var(--muted); margin-top: 4px; }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.goals div { background: #faf6ec; border-radius: 14px; padding: 10px 12px; }
.goals small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.goals b { font-size: 16px; }
.impuls { margin-top: 12px; padding: 4px 18px 16px; }
.impuls p { margin: 12px 0 0; }
.tipbox { margin-top: 12px; background: var(--gold-l); border-radius: 14px; padding: 12px 14px; font-size: 16px; }
.tipbox b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); }
.wdays { display: grid; gap: 10px; margin-top: 12px; }
.wday { padding: 12px 14px; display: block; }
.wday-h { display: flex; justify-content: space-between; align-items: baseline; }
.wday-h b { font-size: 17px; }
.wday-h span { font-size: 14px; color: var(--muted); }
.wday.is-today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-l), var(--shadow); }
.wslots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.wslot { position: relative; aspect-ratio: 1; border-radius: 12px; background: #eee7d8 center / cover; }
.wslot i { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: var(--gold); }
.wslot.ok::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(43, 133, 86, .55); color: #fff; font-weight: 800; font-size: 22px; }
.wnames { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.35; }

/* Einkauf */
.shop-h { margin-top: 14px; padding: 16px 18px; }
.shop-h h2 { font-size: 22px; font-weight: 800; }
.shop-h p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.prog { height: 8px; border-radius: 8px; background: #efe7d6; margin-top: 12px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--green); border-radius: 8px; transition: width .3s; }
.aisle { margin-top: 12px; padding: 4px 0; }
.aisle h3 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); padding: 12px 16px 4px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.item:first-of-type { border-top: 0; }
.item .box { flex: 0 0 30px; height: 30px; border-radius: 9px; border: 2px solid #cdbf9f; display: grid; place-items: center; transition: background .15s; }
.item .box svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.item.on .box { background: var(--green); border-color: var(--green); }
.item.on .box svg { opacity: 1; }
.item .it { flex: 1; min-width: 0; }
.item .it b { font-weight: 600; display: block; }
.item .it small { display: block; color: var(--muted); font-size: 13.5px; }
.item .it small.frz { color: #2f6aa0; }
.item .qty { text-align: right; font-weight: 700; font-size: 15px; white-space: nowrap; }
.item .qty small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.item.on .it b, .item.on .qty { text-decoration: line-through; color: var(--muted); }
.item.stock { opacity: .6; }

/* Rezepte */
.search { width: 100%; height: 52px; border-radius: 16px; border: 2px solid var(--line); padding: 0 16px 0 46px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7163' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") 14px center / 22px no-repeat; }
.rlist { display: grid; gap: 10px; margin-top: 12px; }
.ritem { display: flex; gap: 12px; align-items: center; padding: 10px; }
.ritem .th { flex: 0 0 72px; height: 72px; border-radius: 14px; background: #eee7d8 center / cover; }
.ritem .tt { min-width: 0; flex: 1; }
.ritem .tt small { font-size: 12.5px; font-weight: 800; color: var(--gold-d); letter-spacing: .06em; }
.ritem .tt b { display: block; font-weight: 700; line-height: 1.25; }
.ritem .tt span { font-size: 14px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.rhero { margin: 0 -16px; aspect-ratio: 4 / 3; max-height: 70vh; background: #eee7d8 center / cover; position: relative; }
.rhero .back { position: absolute; left: 16px; top: calc(var(--safe-t) + 12px); box-shadow: var(--shadow); }
.rhero .sym { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 8px; }
.rbody { background: var(--bg); border-radius: 26px 26px 0 0; margin: -26px -16px 0; padding: 22px 16px 0; position: relative; }
.rbody h1 { font-size: 25px; font-weight: 800; line-height: 1.2; margin-top: 6px; }
.rmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rmeta span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.macros div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.macros b { display: block; font-size: 20px; }
.macros small { font-size: 12px; color: var(--muted); }
.macros .g { background: var(--dark); border-color: var(--dark); color: var(--gold); }
.macros .g small { color: #d9cfb9; }
.rinfo { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gold-l); font-size: 15px; }
.rsec { margin-top: 14px; padding: 6px 16px 12px; }
.rsec h2 { font-size: 18px; font-weight: 800; padding: 10px 0 4px; }
.ing { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 0; border-top: 1px solid var(--line); min-height: 48px; }
.ing:first-of-type { border-top: 0; }
.ing .box { flex: 0 0 26px; height: 26px; border-radius: 8px; border: 2px solid #cdbf9f; display: grid; place-items: center; }
.ing .box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ing.on .box { background: var(--green); border-color: var(--green); }
.ing.on .box svg { opacity: 1; }
.ing.on span { color: var(--muted); text-decoration: line-through; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--dark); color: var(--gold); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.inplan { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.inplan a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-weight: 700; color: var(--ink); }

/* Fortschritt */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; }
.stats b { display: block; font-size: 22px; }
.stats small { font-size: 12.5px; color: var(--muted); }
.chart { margin-top: 12px; padding: 14px 12px 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.wlist { margin-top: 12px; padding: 4px 16px; }
.wlist div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.wlist div:first-child { border-top: 0; }

/* Mehr */
.menu { margin-top: 12px; padding: 4px 0; }
.menu > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; min-height: 58px; border-top: 1px solid var(--line); }
.menu > *:first-child { border-top: 0; }
.menu small { display: block; color: var(--muted); font-size: 13.5px; }
.menu .chev { color: var(--muted); font-size: 22px; }
.danger { color: var(--rose); font-weight: 600; }

/* Untere Leiste */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: rgba(255, 253, 248, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs[hidden] { display: none; }
.tabs a { flex: 1; max-width: 112px; height: var(--tabs-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tabs svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--ink); }
.tabs a.on svg { stroke: var(--gold-d); stroke-width: 2.2; }

/* Bottom-Sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(20, 15, 8, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet[hidden] { display: none; }
.sheet .panel { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 16px calc(var(--safe-b) + 20px); animation: up .25s cubic-bezier(.2, .8, .2, 1); }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: #d8ccb3; margin: 4px auto 12px; }
.sheet h2 { font-size: 21px; font-weight: 800; }
.sheet p { margin: 8px 0 0; color: var(--ink-2); }
.opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px; margin-top: 10px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); }
.opt.on { border-color: var(--gold); background: #fffaf0; }
.opt .th { flex: 0 0 64px; height: 64px; border-radius: 12px; background: #eee7d8 center / cover; }
.opt b { display: block; font-weight: 700; line-height: 1.25; color: var(--ink); }
.opt span { font-size: 14px; color: var(--muted); }
.opt .lnk { font-size: 14px; color: var(--gold-d); font-weight: 700; text-decoration: underline; }
.howto { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: h; }
.howto li { counter-increment: h; position: relative; padding: 12px 0 12px 48px; border-top: 1px solid var(--line); }
.howto li:first-child { border-top: 0; }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); font-weight: 800; display: grid; place-items: center; }
.howto svg { width: 20px; height: 20px; vertical-align: -4px; fill: none; stroke: #1a73e8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Start */
.ob { min-height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: center; padding: 10px 0 20px; }
.ob.first { justify-content: flex-start; padding-top: 0; }
.ob .cover { height: 46vh; min-height: 280px; max-height: 420px; margin: calc(-12px - var(--safe-t)) -16px 20px; background: center / cover; border-radius: 0 0 30px 30px; position: relative; }
.ob .cover::after { content: ""; position: absolute; inset: 0; border-radius: 0 0 30px 30px; background: linear-gradient(180deg, rgba(31, 27, 22, 0) 25%, rgba(31, 27, 22, .82)); }
.ob .cover .display { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.ob .cover .display { position: absolute; left: 20px; bottom: 18px; z-index: 1; color: #fff; font-size: 44px; }
.ob .cover .display span { color: var(--gold); display: block; font-size: 64px; }
.ob h1 { font-size: 26px; font-weight: 800; line-height: 1.2; margin-top: 6px; }
.ob p { color: var(--ink-2); margin: 10px 0 0; }
.ob .dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.ob .dots i { width: 8px; height: 8px; border-radius: 8px; background: #dccfb2; }
.ob .dots i.on { width: 24px; background: var(--gold); }
.edcard { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px; margin-top: 12px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); }
.edcard.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-l); }
.edcard .th { flex: 0 0 84px; height: 84px; border-radius: 16px; background: center / cover; }
.edcard b { font-size: 18px; display: block; color: var(--ink); }
.edcard span { color: var(--muted); font-size: 15px; }
.sel { width: 100%; height: 56px; border-radius: 16px; border: 2px solid var(--line); padding: 0 14px; background: var(--card); font-weight: 600; margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 50; box-shadow: var(--shadow); animation: up .25s ease; max-width: 90vw; text-align: center; }
.preview-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; background: var(--rose); color: #fff; border-radius: 6px; padding: 2px 6px; vertical-align: 2px; }
@media (min-width: 600px) { #app { padding-top: 24px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Start / Wissen ---------- */
.shero { padding: 18px; margin-top: 4px; }
.shero h2 { font-size: 24px; font-weight: 800; margin-top: 6px; }
.shero p { margin: 8px 0 0; color: var(--ink-2); }
.shero .pn { font-size: 14px; color: var(--muted); margin-top: 6px; }
.shero .big { text-align: center; padding: 8px 16px; font-size: 16px; height: auto; min-height: 58px; line-height: 1.25; }
.must { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.must a { padding: 14px; min-height: 76px; display: flex; align-items: flex-end; position: relative; background: var(--dark); color: #fff; border-color: var(--dark); }
.must a b { font-size: 16px; line-height: 1.25; }
.must a .rd { position: absolute; right: 10px; top: 8px; font-style: normal; color: var(--gold); font-weight: 800; }
.chap { margin-top: 12px; padding: 6px 0; }
.chap-h { display: flex; gap: 12px; align-items: center; padding: 10px 16px 8px; }
.chap-h .no { font-family: Anton, Impact, sans-serif; font-size: 28px; color: var(--gold-d); }
.chap-h b { display: block; font-size: 17px; }
.chap-h small { color: var(--muted); font-size: 13.5px; }
.arow { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); min-height: 50px; }
.arow .ack { flex: 0 0 24px; height: 24px; border-radius: 8px; border: 2px solid #d9cfbb; display: grid; place-items: center; }
.arow.rd .ack { background: var(--green); border-color: var(--green); }
.arow .ack svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.arow span:nth-child(2) { flex: 1; }
.arow .chev { color: var(--muted); }
.art { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px 20px; box-shadow: var(--shadow); font-size: 16.5px; }
.art .kicker { margin-top: 22px; }
.art .kicker:first-child { margin-top: 0; }
.art h1.display { font-size: 31px; margin: 6px 0 10px; line-height: 1.02; }
.art h2 { font-size: 19px; font-weight: 800; margin: 18px 0 6px; }
.art h3 { font-size: 17px; font-weight: 800; margin: 16px 0 6px; }
.art p { margin: 8px 0; }
.art .lead { font-size: 17.5px; color: var(--ink-2); }
.art .hint, .art .small { font-size: 15px; color: var(--muted); }
.art ul, .art ol { padding-left: 22px; margin: 8px 0; }
.art li { margin: 5px 0; }
.art a { color: var(--gold-d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.art .note, .art .science, .art .lesson, .art .quote, .art .need, .art .kit, .art .calc { background: #faf6ec; border-left: 4px solid var(--gold); border-radius: 12px; padding: 11px 13px; margin: 12px 0; font-size: 15.5px; }
.art .science { border-left-color: #6b8fb5; background: #f1f5fa; }
.art .quote { font-style: italic; }
.art .tipbox { margin: 12px 0; }
.art .steps-list, .art ol.rules { list-style: none; padding: 0; counter-reset: s; }
.art .steps-list li, .art ol.rules li { counter-increment: s; position: relative; padding: 8px 0 8px 40px; border-top: 1px solid var(--line); margin: 0; }
.art .steps-list li:first-child, .art ol.rules li:first-child { border-top: 0; }
.art .steps-list li::before, .art ol.rules li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: var(--gold); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.tw { overflow-x: auto; margin: 10px -4px; -webkit-overflow-scrolling: touch; }
.art table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 300px; }
.art th { background: var(--dark); color: #f7efdc; text-align: left; padding: 8px; font-weight: 700; }
.art td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.art .timeline > div { position: relative; padding: 4px 0 12px 22px; border-left: 3px solid var(--gold-l); margin-left: 6px; }
.art .timeline > div::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.art .timeline b { display: inline-block; margin-right: 8px; }
.art .timeline span { color: var(--gold-d); font-weight: 700; font-size: 14px; }
.art .timeline p { margin: 4px 0 0; font-size: 15.5px; }
.art .two, .art .fields2, .art .daydemo { display: grid; gap: 10px; }
.art .daydemo > div, .art .two > div { background: #faf6ec; border-radius: 12px; padding: 10px 12px; }
.art .field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.art .field b { font-weight: 600; font-size: 15px; }
.wsin { flex: 1; min-width: 120px; height: 44px; border-radius: 12px; border: 2px solid #e4dac6; padding: 0 12px; background: #fffdf8; }
.wsin:focus { outline: none; border-color: var(--gold); }
.wsbox { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #cdbf9f; vertical-align: -6px; margin: 0 4px 0 0; background: #fff; }
.wsbox svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.wsbox.on { background: var(--green); border-color: var(--green); }
.wsbox.on svg { opacity: 1; }
.art .prompt { background: #1f1b16; color: #f7efdc; border-radius: 14px; padding: 14px; margin: 12px 0; font-size: 14.5px; }
.art .prompt b { color: var(--gold); }
.copy { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 700; }
.copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.art .bst { background: #faf6ec; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.art .bst em { display: block; font-style: normal; color: var(--gold-d); font-size: 14px; }
.art .bst p { margin: 4px 0 0; font-size: 15px; }
.art .pill { font-size: 12px; }
.art .ico svg { width: 18px; height: 18px; }
.art .ifthen, .art .legend, .art .ticks { margin: 10px 0; }
.art .faq b { display: block; margin-top: 10px; }
.artnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.artnav a { padding: 12px 14px; }
.artnav a.nx { text-align: right; }
.artnav small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.artnav b { font-size: 15px; line-height: 1.25; display: block; }

/* ---------- Training ---------- */
.trc { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 14px; }
.trc .tri { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--dark); display: grid; place-items: center; }
.trc .tri svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trc > span:nth-child(2) { flex: 1; min-width: 0; }
.trc small { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); }
.trc b { display: block; font-size: 17px; line-height: 1.25; }
.trc em { display: block; font-style: normal; font-size: 14px; color: var(--muted); }
.trc .chev { font-size: 22px; color: var(--muted); }
.trc.done { border-color: #b9dcc7; background: #fbfefc; }
.trc.done .chev { color: var(--green); font-weight: 800; }
.tplan { padding: 16px; margin-top: 12px; }
.tplan h2 { font-size: 21px; font-weight: 800; margin-top: 4px; }
.freq { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.freq span { width: 100%; }
.tbtns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tbtns .chip { display: inline-flex; align-items: center; }
.tleg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 2px 2px 10px; }
.tleg i, .td i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-weight: 800; font-size: 12px; margin-right: 4px; }
.tleg .k, .td.kraft i { background: var(--dark); color: var(--gold); }
.tleg .c, .td.cardio i { background: var(--gold-l); color: var(--gold-d); }
.tleg .r, .td.rest i { background: #efe9dc; color: var(--muted); }
.tleg .t { background: #e3edf8; color: #2f6aa0; }
.tweek { padding: 12px; margin-top: 10px; }
.tw-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tw-h span { font-size: 13.5px; color: var(--muted); text-align: right; }
.tdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.td { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; background: #faf6ec; }
.td small { font-size: 11px; color: var(--muted); font-weight: 700; }
.td i { width: 30px; height: 30px; font-size: 14px; margin: 0; border-radius: 10px; }
.td span { font-size: 11px; color: var(--muted); }
.td em { position: absolute; right: 2px; top: 2px; font-style: normal; font-size: 9.5px; font-weight: 800; background: #2f6aa0; color: #fff; border-radius: 6px; padding: 0 4px; }
.td.now { box-shadow: 0 0 0 2px var(--gold); background: #fff; }
.td.ok i { background: var(--green) !important; color: #fff !important; }
.ptitle { font-size: 25px; font-weight: 800; line-height: 1.2; margin: 6px 0 8px; }
.exl { display: grid; gap: 8px; margin-top: 8px; }
.exr { display: flex; align-items: center; gap: 12px; padding: 8px; }
.exr .exi { flex: 0 0 104px; height: 58px; border-radius: 10px; background: #f6f1e4 center / cover; }
.exr > span:nth-child(2) { flex: 1; min-width: 0; }
.exr b { display: block; font-size: 15.5px; line-height: 1.25; }
.exr em { display: block; font-style: normal; font-size: 14px; color: var(--gold-d); font-weight: 700; }
.exr small { display: block; font-size: 12.5px; color: var(--muted); }
.exr .chev { color: var(--muted); }
.rsec h2 small { font-weight: 600; font-size: 14px; }
.phase { padding: 12px 14px; margin-top: 10px; }
.phase p { margin: 6px 0 0; font-size: 15px; }
.h2i { width: 22px; height: 22px; vertical-align: -4px; margin-right: 6px; fill: none; stroke: var(--gold-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ul { margin: 6px 0; padding-left: 20px; }
.ul li { margin: 5px 0; }
.eximg { position: relative; border-radius: 18px; overflow: hidden; background: #f6f1e4; }
.eximg img { width: 100%; display: block; }
.eximg span { position: absolute; bottom: 8px; font-size: 12px; font-weight: 800; background: rgba(31, 27, 22, .75); color: #fff; padding: 3px 8px; border-radius: 8px; }
.eximg .l1 { left: 8px; }
.eximg .l2 { right: 8px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chips.wrap .chip { display: inline-flex; align-items: center; height: auto; min-height: 40px; white-space: normal; text-align: left; }
.opt.qa { padding: 16px; }
.opt.qa b { font-size: 16.5px; }
.hq { padding: 12px 14px; margin-top: 10px; }
.hq p { margin: 0 0 8px; font-size: 15.5px; }
.yn { display: flex; gap: 8px; }
.note.warn { background: #fdecea; border-left: 4px solid var(--rose); border-radius: 12px; padding: 11px 13px; margin: 12px 0; }
.tvals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tvals label small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tvals .num { width: 100%; text-align: center; }
.tth { display: grid; place-items: center; background: var(--dark) !important; }
.tth svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.dayhero.small { padding: 12px 12px 14px; margin-top: 2px; }
.dayhero.small .dh-tag { font-size: 38px; }
.dayhero.small .dh-line { margin-top: 8px; }

/* ---------- Wochen-Check ---------- */
.wcheck { padding: 10px 16px 14px; margin-top: 12px; }
.amp { margin-top: 10px; border-radius: 14px; padding: 12px 14px; }
.amp b { display: block; font-size: 16px; }
.amp span { font-size: 15px; }
.amp.gruen { background: var(--green-l); }
.amp.gelb { background: #fff4cc; }
.amp.rot { background: #fde3dd; }
.amp.blau { background: #e3edf8; }

/* 6 Reiter */
.tabs a { max-width: 96px; font-size: 11px; }
.tabs svg { width: 24px; height: 24px; }

.sos { height: 44px; padding: 0 14px; border-radius: 14px; background: var(--rose); color: #fff; font-weight: 800; letter-spacing: .06em; display: grid; place-items: center; }
/* Eigener Eintrag „Etwas anderes gegessen“ */
.m-img.oth { display: grid; place-items: center; font-size: 34px; color: var(--gold-d); background: #f3eee2; border: 2px dashed #e2d6bc; }
button.m-title { text-align: left; padding: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 17.5px; font-weight: 700; }
.sum .own { font-size: 12.5px; color: #f3d77a; }
.of { display: block; margin-top: 12px; }
.of > span:first-child { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.of input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); }
.of input:focus { outline: none; border-color: var(--gold); }
.ofgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ofin { position: relative; display: block; }
.ofin input { padding-right: 46px; }
.ofin i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--muted); }
.big.ghost { margin-top: 10px; }
.wslot.oth { background: #f3eee2; }
.wslot.oth::before { content: "✎"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: var(--gold-d); }
/* Freie Rezeptauswahl im Tauschen-Fenster */
.pickic { width: 28px; height: 28px; fill: none; stroke: var(--gold-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pkh { margin: 16px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-d); }
.opt.pk { margin-top: 8px; }
.kd { font-style: normal; font-weight: 700; font-size: 12.5px; padding: 1px 7px; border-radius: 999px; background: #fbeccd; color: #8a5a00; margin-left: 4px; white-space: nowrap; }
.kd.ok { background: #dff1e6; color: #1f6b44; }
.sheet .chips { margin-left: -16px; margin-right: -16px; }
/* Review 2026-10-11: Toast blockiert keine Taps, bessere Tippflächen, schmale Handys (320 px) */
.toast { pointer-events: none; }
.m-note button, .install button { min-height: 36px; padding: 6px 4px; }
.ritem small, .ck .ct small { font-size: 13.5px; }
@media (max-width: 360px) {
  .dh-tag { font-size: 38px; }
  .dh-tag small { font-size: 15px; }
  .dh-row { gap: 6px; }
  .dh-nav { width: 40px; height: 40px; }
  .ck .ct small { font-size: 12.5px; }
  .ck .step output { min-width: 50px; }
  .ck .step button { width: 38px; height: 38px; }
  .ck { gap: 8px; }
}
.stopbox { border-color: #e7b4a8; background: #fff6f3; }
.stopbox h2 { color: #a3321c; }
.swaplist li { margin: 4px 0; }
.swaplist a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.jbadges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.jb { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f3eee2; color: var(--ink-2); }
.jb.schonend { background: #dff1e6; color: #1f6b44; }
.jb.ok { background: #fbeccd; color: #7a5200; }
.jb.vorsicht { background: #f9dcd4; color: #a3321c; }
.chip .lvl { font-size: 12px; font-weight: 800; color: var(--gold-d); margin-right: 2px; }

/* ===== Weiß-Gold-Design (13.10.2026) =====
   Liegt über app.css + app2.css und ändert nur das Aussehen, keine Funktion.
   Zum Zurückschalten auf das alte Design diese Datei entfernen und app_build neu laufen lassen. */
:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --ink: #1b1814;
  --ink-2: #3a342b;
  --muted: #776d5f;
  --line: #efe8d8;
  --gold: #e2ab1b;
  --gold-d: #946f08;
  --gold-l: #fff6dc;
  --green: #2b8556;
  --green-l: #e8f5ec;
  --dark: #1b1814;
  --gg: linear-gradient(135deg, #f8dc7e 0%, #e8b52a 45%, #c48f00 100%);
  --gg-soft: linear-gradient(135deg, #fff9e8 0%, #fdf0c9 100%);
  --r: 22px;
  --shadow: 0 1px 2px rgba(120, 90, 20, .05), 0 10px 28px rgba(120, 90, 20, .08);
}
body { background: radial-gradient(130% 55% at 50% -12%, #fff3d2 0%, rgba(255, 243, 210, 0) 62%) no-repeat, var(--bg); }
.card { border-color: var(--line); }
.display { letter-spacing: .015em; }
.kicker { color: var(--gold-d); }

/* 3D-Symbole */
.i3 { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.i3.sm { display: inline-block; width: 26px; height: 26px; vertical-align: -7px; }
.i3.btn { width: 32px; height: 32px; margin: -6px 0; }
.iconbtn { background: var(--card); border-color: var(--line); padding: 5px; }
.iconbtn .i3 { width: 32px; height: 32px; }

/* Tages-Kopf: hell mit Goldrand */
.dayhero { background: linear-gradient(#fff, #fffdf8) padding-box, var(--gg) border-box; border: 1.5px solid transparent; color: var(--ink); box-shadow: 0 12px 34px rgba(160, 115, 10, .14); }
.dayhero::after { background: radial-gradient(circle, rgba(232, 181, 42, .22), rgba(232, 181, 42, 0) 70%); }
.dh-nav { background: #faf4e4; color: var(--ink); }
.dh-tag { background: var(--gg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dh-tag small { color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); }
.dh-sub { color: var(--muted); }
.dh-bar { background: #f3ecdb; }
.dh-bar i { background: var(--gg); }
.dh-line { color: var(--ink-2); }
.today-link { background: var(--gg); color: var(--ink); box-shadow: 0 6px 16px rgba(200, 145, 0, .25); }

/* Hinweise */
.remind { background: var(--card); border: 1px solid #f1e3b8; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.remind::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gg); }
.install { border-color: #ead9a6; }

/* Mahlzeiten */
.meal { border-radius: 24px; }
.meal.done { border-color: #f0dc9c; background: #fffdf5; }
.m-img { border-radius: 18px; background-color: #f3eee2; }
.meal.done .m-img::after { border-radius: 18px; background: rgba(226, 171, 27, .22); }
.pill.cook { background: var(--gg); color: var(--ink); }
.pill.prep { background: var(--gold-l); color: var(--gold-d); border-color: #f2dc95; }
.pill.rest { background: #f4efe3; color: #6d5a26; }
.pill.alt { background: #fff; color: var(--gold-d); border: 1.5px solid #ebcf7a; }
.m-note { background: #fbf8f0; }
.eat { border-color: #efe0b6; color: var(--gold-d); }
.eat.on { background: var(--gg); border-color: transparent; color: var(--ink); box-shadow: 0 6px 16px rgba(200, 145, 0, .22); }
.swapbtn { background: #f7f2e6; }

/* Tagessumme in Gold */
.sum { background: var(--gg); color: var(--ink); box-shadow: 0 10px 26px rgba(200, 145, 0, .25); }
.sum span { color: #4a3a0e; }
.sum .free { background: rgba(255, 255, 255, .85); color: var(--gold-d); }
.sum .own { color: #4a3a0e; }

/* Checkliste */
.ck .ci { flex: 0 0 46px; height: 46px; border-radius: 14px; background: #fbf7ec; padding: 4px; }
.tog { border-color: #eadfc3; }
.tog.on { background: var(--gg); border-color: transparent; box-shadow: 0 4px 12px rgba(200, 145, 0, .25); }
.tog.on svg { stroke: var(--ink); }
.step button { background: #f7f2e6; }
.num, textarea { border-color: #ebe1cb; background: #fff; }
.big { background: var(--gg); color: var(--ink); box-shadow: 0 8px 22px rgba(200, 145, 0, .32); }
.big.done { background: var(--ink); color: #f6d36a; box-shadow: 0 8px 22px rgba(27, 24, 20, .25); }
.big.ghost { background: var(--card); color: var(--ink); }

/* Woche / Chips */
.chip { border-color: var(--line); }
.chip.on { background: var(--gg); color: var(--ink); border-color: transparent; }
.goals div { background: #fbf8f0; }
.tipbox { background: var(--gg-soft); }
.wday.is-today { border-color: #e8be4a; box-shadow: 0 0 0 3px #fff2c8, var(--shadow); }
.wslot { border-radius: 14px; background-color: #f3eee2; }
.wslot i { background: var(--gg); color: var(--ink); }
.wslot.ok::after { background: rgba(196, 143, 0, .55); }

/* Einkauf */
.prog { background: #f3ecdb; }
.prog i { background: var(--gg); }
.item .box, .ing .box, .arow .ack, .wsbox { border-color: #e3d4ae; }
.item.on .box, .ing.on .box, .arow.rd .ack, .wsbox.on { background: var(--gg); border-color: transparent; }
.item .box svg, .ing .box svg, .arow .ack svg, .wsbox svg { stroke: var(--ink); }

/* Rezepte */
.search { border-color: var(--line); }
.ritem .th, .opt .th, .rhero, .wslot { background-color: #f3eee2; }
.macros .g { background: var(--gg); border-color: transparent; color: var(--ink); }
.macros .g small { color: #4a3a0e; }
.rinfo { background: var(--gg-soft); }
.steps li::before, .art .steps-list li::before, .art ol.rules li::before { background: var(--gg); color: var(--ink); }
.reel { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 14px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--card); border: 1.5px solid #ecd28a; box-shadow: var(--shadow); text-align: left; }
.reel .i3 { width: 52px; height: 52px; flex: 0 0 52px; }
.reel b { display: block; font-size: 16px; } .reel small { color: var(--muted); font-size: 13.5px; }

/* Start (Wissen) */
.shero { background: linear-gradient(#fff, #fffdf8) padding-box, var(--gg) border-box; border: 1.5px solid transparent; }
.must a { background: var(--card); color: var(--ink); border: 1.5px solid #efd99a; box-shadow: var(--shadow); }
.must a .rd { color: var(--gold-d); }
.chap-h .ci3 { flex: 0 0 52px; height: 52px; }
.chap-h .no { font-size: 13px; letter-spacing: .1em; color: var(--gold-d); display: block; font-family: Inter, sans-serif; font-weight: 800; }
.art .note, .art .lesson, .art .quote, .art .need, .art .kit, .art .calc, .art .bst, .art .daydemo > div, .art .two > div { background: #fbf8f0; }
.art th { background: #faf1d6; color: var(--ink); }
.art .prompt { background: #fbf6e9; color: var(--ink); border: 1.5px solid #ecd28a; }
.art .prompt b { color: var(--gold-d); }
.copy { background: var(--gg); }

/* Neue Startseite: Kopf mit Fortschritt + Willkommensvideo */
.shome { margin-top: 2px; padding: 18px 16px 16px; background: linear-gradient(#fff, #fffdf8) padding-box, var(--gg) border-box; border: 1.5px solid transparent; border-radius: 26px; box-shadow: 0 12px 34px rgba(160, 115, 10, .12); display: flex; gap: 16px; align-items: center; }
.shome .ring { position: relative; width: 108px; height: 108px; flex: 0 0 108px; }
.shome .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.shome .ring .bgc { stroke: #f3ecdb; } .shome .ring .fg { stroke: url(#ringgold); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.shome .ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.shome .ring b { font: 400 38px/1 Anton, Impact, sans-serif; background: var(--gg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shome .ring small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.shome .tx small { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.shome .tx h2 { font: 400 26px/1.05 Anton, Impact, sans-serif; text-transform: uppercase; margin: 4px 0 6px; }
.shome .tx p { margin: 0; font-size: 15px; color: var(--ink-2); }
.svideo { position: relative; display: block; width: 100%; margin-top: 14px; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #1b1814 center / cover; box-shadow: var(--shadow); text-align: left; }
.svideo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72)); }
.svideo .pl { position: absolute; z-index: 1; left: 50%; top: 44%; width: 74px; height: 74px; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); animation: svpulse 2.4s ease-in-out infinite; }
@keyframes svpulse { 50% { transform: translate(-50%, -50%) scale(1.06); } }
.svideo .vt { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; color: #fff; }
.svideo .vt b { display: block; font-size: 17px; } .svideo .vt small { font-size: 13px; opacity: .88; }
.svideo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: #000; }

/* Training */
.trc .tri { background: #fbf7ec; padding: 4px; flex: 0 0 52px; height: 52px; }
.trc.done { border-color: #f0dc9c; background: #fffdf5; }
.trc.done .chev { color: var(--gold-d); }
.tleg .k, .td.kraft i { background: var(--gg); color: var(--ink); }
.td.now { box-shadow: 0 0 0 2px #e8be4a; }
.td.ok i { background: var(--ink) !important; color: #f6d36a !important; }
.tth { background: #fbf7ec !important; } .tth svg { stroke: var(--gold-d); }

/* Untere Leiste mit 3D-Symbolen */
.tabs { background: rgba(255, 255, 255, .92); border-top-color: #efe6d0; box-shadow: 0 -6px 24px rgba(120, 90, 20, .06); }
.tabs a { gap: 1px; color: #8d8374; }
.tabs a .i3 { width: 32px; height: 32px; filter: grayscale(.75) opacity(.7); transition: filter .2s, transform .2s; }
.tabs a.on { color: var(--ink); font-weight: 800; }
.tabs a.on .i3 { filter: none; transform: translateY(-2px) scale(1.08); }
.tabs a.on::after { content: ""; display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--gg); margin-top: 2px; }

/* Fenster */
.sheet .panel { background: var(--bg); }
.opt.on { border-color: #e8be4a; background: #fffcf2; }
.ob .dots i.on { background: var(--gg); }
.edcard.on { border-color: #e8be4a; box-shadow: 0 0 0 3px #fff2c8; }
.toast { background: var(--ink); color: #fff; }

/* Persönlicher Kalorienbereich: Hinweis, Extras, halber Snack 2 */
.calcta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 14px; padding: 12px 14px; background: linear-gradient(#fff, #fffdf6) padding-box, var(--gg) border-box; border: 1.5px solid transparent; }
.calcta .ci { flex: 0 0 48px; height: 48px; } .calcta b { display: block; font-size: 16px; } .calcta small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; } .calcta .chev { color: var(--gold-d); font-size: 22px; }
.pluscard { border-style: dashed; border-color: #ecd28a; background: #fffdf7; }
.pluscard .m-img.oth { border: 0; background: #fbf5e3; padding: 14px; }
.pluscard.off { opacity: .75; }
.m-half { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--gold-l); color: var(--gold-d); font-size: 13px; font-weight: 700; }
/* Bereiche zum Antippen */
.tiers { display: grid; gap: 8px; margin-top: 8px; }
.tier { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 2px solid var(--line); }
.tier .tr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier b { font-size: 17px; } .tier small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.tier em { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--gold-l); color: var(--gold-d); white-space: nowrap; }
.tier.on { border-color: transparent; background: linear-gradient(#fffdf5, #fff8e4) padding-box, var(--gg) border-box; box-shadow: 0 6px 16px rgba(200, 145, 0, .18); }
.tier.on b::after { content: " ✓"; color: var(--gold-d); }
/* Zusätze direkt in der Mahlzeit: mehr Beilage oder ein Extra dazu */
.m-plus { display: grid; gap: 6px; margin-top: 10px; }
.mp { position: relative; padding: 9px 12px 9px 42px; border-radius: 14px; background: linear-gradient(#fffdf6, #fff7e2); border: 1px dashed #e6c76d; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.mp::before { content: "+"; position: absolute; left: 11px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gg); color: #fff; font-weight: 800; font-size: 16px; line-height: 22px; text-align: center; }
.mp b { display: block; color: var(--ink); font-size: 14.5px; }
.mp button { text-decoration: underline; font-weight: 600; color: var(--gold-d); min-height: 32px; padding: 2px; }
.mp.off { background: #fbf8f0; border-color: #e9e1cf; } .mp.off::before { content: "–"; background: #e9e1cf; color: var(--muted); }
.ing-plus { display: block; margin-top: 3px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold-d); }
.tipbox.rplus { margin: 14px 0 0; }
.tier .tr { flex-wrap: wrap; } .tier b { white-space: nowrap; }
/* Pause */
.pausecard { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; background: linear-gradient(#fff, #fffdf6) padding-box, var(--gg) border-box; border: 1.5px solid transparent; }
.pausecard .ci { flex: 0 0 46px; height: 46px; } .pausecard b { display: block; font-size: 16.5px; } .pausecard small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
/* Gewichtsverlauf */
.chart .legend { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chart .legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.chart .legend .ld { width: 8px; height: 8px; border-radius: 50%; background: #9a8f7c; } .chart .legend .lw { width: 18px; height: 4px; border-radius: 2px; background: #e8b100; }
.pvempty { text-align: center; } .pvempty svg { width: 100%; height: auto; display: block; } .pvempty p { font-size: 14.5px; color: var(--muted); margin: 4px 6px 12px; line-height: 1.45; }
.wlist small { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-left: 4px; }

/* ===== Training (14.10.2026): Trainingstage, Trainingsmodus, Pausen-Timer, optionale Aufwärmbox ===== */
.td i { position: relative; }
.td em { position: absolute; top: -6px; right: -8px; font-style: normal; font-size: 9px; font-weight: 800; line-height: 13px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--ink); color: #f6d36a; border: 1.5px solid #fff; }
.tleg .t { background: var(--ink); color: #f6d36a; }
button.td { border: 0; font: inherit; color: inherit; cursor: pointer; }
.wdchips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; }
.wdchips .chip { padding: 0; height: 40px; font-size: 14px; }
.freq small.muted { width: 100%; font-size: 13px; line-height: 1.4; }
.tnote { font-size: 14px; margin: 10px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--gold-d); text-decoration: underline; cursor: pointer; }
.optbox { padding: 12px 14px; margin-top: 10px; }
.optbox summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; font-size: 17px; }
.optbox summary::-webkit-details-marker { display: none; }
.optbox summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; transform: rotate(90deg); transition: transform .2s; }
.optbox[open] summary::after { transform: rotate(-90deg); }
.exr small.exlast { color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.tgbar { height: 6px; border-radius: 99px; background: #efe6d1; overflow: hidden; margin: 2px 0 12px; }
.tgbar i { display: block; height: 100%; background: var(--gg); border-radius: 99px; }
.tgrx { font-size: 17px; margin: 2px 0 10px; }
.sets { padding: 10px 12px; margin-top: 10px; }
.seth, .setr { display: grid; grid-template-columns: 34px 1fr 1fr 48px; gap: 8px; align-items: center; }
.seth { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 0 6px; }
.setr { padding: 6px 0; border-top: 1px solid var(--line); }
.setr .sn { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: #faf3e0; color: var(--gold-d); }
.setr input { width: 100%; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font: 600 16px Inter, system-ui, sans-serif; color: var(--ink); }
.setr.on input { background: #fbf6e8; }
.tgnav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.tgnav .big { margin-top: 0; }
.rtimer { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 84px); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); max-width: 536px; margin: 0 auto; }
.rtimer .ri svg { display: block; width: 28px; height: 28px; fill: none; stroke: #f6d36a; stroke-width: 2; stroke-linecap: round; }
.rtimer .rt { flex: 1; display: flex; flex-direction: column; line-height: 1.1; }
.rtimer .rt small { font-size: 12px; color: #cfc4ad; font-weight: 700; }
.rtimer .rt b { font-size: 24px; font-variant-numeric: tabular-nums; }
.rtimer .chip { height: 38px; color: var(--ink); }
.tdelta { margin: 8px 0 0; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.tdelta .up { color: var(--green); }
.tdelta .dn { color: #b4532a; }

/* Woche: gewählter Tag (wie in Heute/Training) gold markiert, heutiger Tag mit kleinem Schild (15.10.2026) */
.wday.is-sel { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(226, 171, 27, .28), var(--shadow); background: linear-gradient(#fffdf6, #fff8e4); }
.wday.is-sel .wday-h b { color: var(--gold-d); }
.wtoday { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: #f6d36a; border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
/* Schritte eintippen in der Tages-Checkliste (15.10.2026) */
.ck .num.steps { width: 86px; flex: 0 0 auto; }
.ck:has(.num.steps) .ct small { white-space: nowrap; }
/* Start · „Das Wichtigste zuerst“: 3D-Symbol über dem Titel (15.10.2026) */
.must a { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 124px; }
.must a .mi { width: 52px; height: 52px; border-radius: 16px; background: #fbf5e3; display: grid; place-items: center; padding: 5px; }
.must a .mi .i3 { width: 100%; height: 100%; }
/* 15.10. Review: Pausen-Timer verdeckt nichts mehr, Toast liegt darüber; Pausen in der Woche */
body.resting #app { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 120px); }
body.resting .toast { bottom: calc(var(--safe-b) + 160px); z-index: 70; }
.wpause { display: flex; align-items: center; gap: 8px; margin: 4px 2px 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .06); color: var(--on-page-2, #4a4034); font-size: 14px; font-weight: 600; }
.wpause svg { width: 18px; height: 18px; flex: none; }
.num.bad { box-shadow: 0 0 0 2px #c0392b inset; }
/* 15.10. Review: Kontrast kleiner Goldschrift ≥ 4,5:1, SOS/Löschen dunkler */
:root { --gold-d: #7f5f00; --rose: #b44a33; }
/* Tippflächen ≥ 40 px */
.optbox summary { min-height: 44px; align-items: center; }
.today-link { min-height: 40px; }
.m-note button, .install button { min-height: 40px; padding: 8px 4px; }
a.m-title { padding: 6px 0; margin: -3px 0 -6px; }
.wsbox { width: 30px; height: 30px; }
.inplan a { min-height: 40px; display: inline-flex; align-items: center; }
/* Einkauf: lange Mengen umbrechen statt aus dem Bild laufen (320–375 px) */
.item .qty { white-space: normal; max-width: 46%; overflow-wrap: anywhere; }
/* Artikel-Navigation: lange Titel umbrechen */
.artnav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.artnav b { overflow-wrap: anywhere; hyphens: auto; }
/* Auswahlfenster: Seite dahinter scrollt nicht mit */
body.sheet-open { overflow: hidden; }
.sheet .panel { overscroll-behavior: contain; }
.sheet .panel:focus { outline: none; }
/* Willkommensvideo: Titel unter die Karte, Play-Knopf in die Ecke (das Vorschaubild hat eigene Schrift) */
.svideo { overflow: visible; margin-bottom: 54px; }
.svideo::after { display: none; }
.svideo .pl { left: auto; top: auto; right: 12px; bottom: 12px; width: 60px; height: 60px; transform: none; animation: svpulse2 2.4s ease-in-out infinite; }
@keyframes svpulse2 { 50% { transform: scale(1.06); } }
.svideo .vt { top: calc(100% + 8px); bottom: auto; left: 4px; right: 4px; color: var(--on-page, #1b1814); }
.svideo .vt small { opacity: 1; color: var(--on-page-2, #4a4034); }
.svideo video { border-radius: inherit; }
/* Schritte-Zeile auf schmalen Handys: Eingabefeld in eigene Zeile unter dem Text (Review M18) */
@media (max-width: 380px) {
  .ck:has(.num.steps) { flex-wrap: wrap; row-gap: 4px; padding: 8px 0; }
  .ck:has(.num.steps) .tog { order: 2; }
  .ck:has(.num.steps) .ct small { white-space: normal; }
  .ck .num.steps { order: 3; flex: 0 0 140px; width: 140px; margin-left: 54px; text-align: left; }
}
/* 2. Prüfung 15.10.: Timer unter Auswahlfenstern, breiter Toast, Übungslisten bei 320 px */
.rtimer { z-index: 35; }
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.exl { grid-template-columns: minmax(0, 1fr); }
.exr b { overflow-wrap: anywhere; }
/* 2. Prüfung (b5/b6) */
:root { color-scheme: only light; }
/* Video: Titel als normaler Block unter dem Bild */
.svideo { margin-bottom: 0; }
.svt { margin: 8px 4px 0; color: var(--on-page, #1b1814); }
.svt b { display: block; font-size: 17px; }
.svt small { display: block; font-size: 13px; color: var(--on-page-2, #4a4034); }
/* Fenster: Schließen-Knopf */
.sheet .panel { position: relative; }
.sheetx { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--muted); background: transparent; }
.sheet .panel > h2:first-of-type { padding-right: 44px; }
.sheet .chips.wrap { margin: 0; }
/* Bildschirmleser */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Einkauf schmal: Name bricht um, Menge bleibt lesbar */
.item .it b { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.item .qty { flex: 0 1 auto; min-width: 0; }
@media (max-width: 380px) { .item .qty { max-width: 42%; font-size: 14px; } }
/* Kontrast */
.tabs a { color: #6f665a; }
#app > .empty, #app .rlist > .empty, #app > .top + .empty { color: var(--on-page-2, #4a4034); }
.item.stock { opacity: 1; }
.item.stock .it b, .item.stock .qty { color: var(--muted); }
.item.stock .box { opacity: .5; }
/* Tippflächen */
.mp button { min-height: 40px; }
.rtimer .chip { height: 40px; }
.ck .step button { width: 40px; height: 40px; }
.pvempty .chip { display: inline-flex; align-items: center; }
[data-act="shopreset"] { min-height: 40px; padding: 8px 2px; }
/* Tageskopf schmal */
.dh-nav { flex: 0 0 auto; }
@media (max-width: 360px) { .dh-sub { white-space: normal; } }
/* Artikel-Navigation: Trennstrich statt Umbruch mitten im Wort */
.artnav b { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 359px) { .artnav b { font-size: 14px; } }
/* Dein Weg zu Tag 1: von der App berechnete Daten */
.field em.wsfix { font-style: normal; font-weight: 700; }
/* 2. Prüfung (b3): Chip-Links mittig, Gewichte nicht umbrechen */
a.chip { display: inline-flex; align-items: center; justify-content: center; }
.wlist b { white-space: nowrap; flex-shrink: 0; }
/* 16.10. Portionen: angepasste Zutaten auf der Rezeptseite */
.ing .ing-sc { font-weight: 700; color: var(--ink); }
/* 16.10. Zusatzmahlzeit: fünftes Feld in der Woche */
.wslots:has(.wslot.zs) { grid-template-columns: repeat(5, 1fr); }
.wslot.zs i { left: auto; right: 4px; }

/* ---------- Diät Starthilfe (Upsell, 22.10.) ---------- */
.shcta { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 0 14px; color: var(--ink); text-decoration: none; background: linear-gradient(135deg, #fffaf0, #fff3d1); border-color: #f1d57a; }
.shcta.on { background: var(--card); border-color: var(--line); }
.shcta > span:nth-child(2) { flex: 1; min-width: 0; }
.shcta b { display: block; font-size: 17px; }
.shcta small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.shcta .chev { color: var(--gold-d); font-size: 22px; }
.shth { display: flex; flex: none; }
.shth i { width: 46px; height: 46px; border-radius: 12px; background: #eee7d8 center / cover no-repeat; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(60, 40, 0, .12); }
.shth i + i { margin-left: -16px; }
.shth.lg { justify-content: center; margin: 4px 0 24px; }
.shth.lg i { width: 104px; height: 104px; border-radius: 22px; border-width: 3px; }
.shth.lg i + i { margin-left: -28px; }
.shth.lg i:nth-child(2) { transform: translateY(-8px); z-index: 1; }
.shhero { text-align: center; padding: 4px 4px 14px; }
.shhero p { color: var(--ink-2); margin: 8px 0 0; }
.shgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shlk { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #eee7d8 center / cover no-repeat; border: 0; padding: 0; cursor: pointer; }
.shlk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 15, 5, .05) 30%, rgba(20, 15, 5, .72)); }
.shlk span { position: absolute; left: 7px; right: 7px; bottom: 6px; z-index: 1; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.2; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shlk em { position: absolute; top: 6px; right: 6px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; }
.shlk em svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.opt.shtease { background: linear-gradient(135deg, #fffaf0, #fff3d1); border-color: #f1d57a; text-decoration: none; color: var(--ink); }
.shok { text-align: center; padding: 40px 8px 20px; }
.shok .okc { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.shok .okc svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.shok p { color: var(--ink-2); margin: 10px 0 18px; }
.rhero.wide { aspect-ratio: 16 / 10; } /* Starthilfe: Fotos aus G-Support und Ernährungsguide sind breiter */
.shcodein { width: 100%; margin-top: 12px; padding: 14px 16px; border: 2px solid #f1d57a; border-radius: 16px; background: #fff; font: 800 28px/1.1 Inter, system-ui, sans-serif; letter-spacing: .18em; text-align: center; text-transform: uppercase; color: var(--ink); }
.shbox { margin: 4px 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--gold-l); border: 1px solid #f1d57a; text-align: left; font-size: 15.5px; color: var(--ink-2); }
.shbox b { display: block; color: var(--ink); margin-bottom: 4px; }
.shbig { display: block; margin-top: 10px; text-align: center; font: 800 34px/1.1 Inter, system-ui, sans-serif; letter-spacing: .2em; color: var(--ink); background: #fff; border-radius: 12px; padding: 10px; user-select: all; }
/* Starthilfe-Fotos sind Querformat (aus den E-Book-Seiten): breitere Vorschaubilder statt quadratischer Ausschnitte */
.ritem .th.shw { flex-basis: 104px; }
.opt .th.shw { flex-basis: 92px; }
.shlk { aspect-ratio: 3 / 2; }
/* Einkauf beim Tauschen (24.10.): Kasten für getauschte Gerichte, ausgegraute Artikel, „Gerichte dieses Einkaufs“, Erinnerung auf „Heute“ */
.swapbox { background: linear-gradient(#fff, #fffdf6) padding-box, var(--gg) border-box; border: 1.5px solid transparent; }
.item.gone { opacity: .55; }
.item.gone .box { border-style: dashed; }
.item.gone .it b, .item.gone .qty { text-decoration: line-through; color: var(--muted); }
.item .it small.lessn { color: #2f6aa0; font-weight: 600; }
.ekfor { margin-top: 12px; padding: 0; overflow: hidden; }
.ekfor summary { list-style: none; cursor: pointer; padding: 14px 16px; display: block; position: relative; padding-right: 44px; }
.ekfor summary::-webkit-details-marker { display: none; }
.ekfor summary::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(90deg); font-size: 24px; color: var(--gold-d); transition: transform .2s; }
.ekfor[open] summary::after { transform: translateY(-50%) rotate(-90deg); }
.ekfor summary b { display: block; font-size: 17px; }
.ekfor summary span { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.ekday { padding: 4px 16px 12px; border-top: 1px solid var(--line); }
.ekday > b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); padding: 10px 0 4px; }
.ekmeal { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 7px 0; }
.ekmeal .th { flex: 0 0 52px; height: 52px; border-radius: 12px; background: #eee7d8 center / cover no-repeat; }
.ekmeal .et { flex: 1; min-width: 0; }
.ekmeal .et small { display: block; color: var(--muted); font-size: 13px; }
.ekmeal .et b { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.ekmeal .sw { flex: 0 0 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; }
.ekmeal .sw svg { width: 19px; height: 19px; fill: none; stroke: var(--gold-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ekcard { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; background: linear-gradient(#fff, #fffdf6) padding-box, var(--gg) border-box; border: 1.5px solid transparent; }
.ekcard .ci { flex: 0 0 46px; height: 46px; }
.ekcard .eb { flex: 1; min-width: 0; }
.ekcard b { display: block; font-size: 16.5px; }
.ekcard small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.ekcard .shth { margin: 10px 0 2px; }
.ekcard .ekbtn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ===== Seitenhintergrund (14.10.2026) =====
   Nur der Hintergrund der Seite bekommt eine eigene Farbe, damit Karten, Buttons und beige Flächen klarer hervortreten.
   Karten, Sheets und Rezeptseiten bleiben hell. Texte direkt auf dem Hintergrund nutzen --on-page / --on-page-2 / --on-page-k.
   Farbe wechseln: nur die Variablen in :root tauschen (Varianten unten). Zum Zurückschalten Datei entfernen und app_build neu laufen lassen.
   Schwarz: --page #0b0a08 · --on-page #f7f1e3 · --on-page-2 #cfc4ad · --on-page-k #e2ab1b · Schimmer rgba(226,171,27,.16)
   Sand: #d8c9ab · Schimmer rgba(255,250,235,.55) · Texte #1b1814 / #4a4034 · Kicker #7a5a05
   Mokka: #3e342a · Schimmer rgba(226,171,27,.14) · Texte #f7f1e3 / #dccfb6 · Kicker #f0c24a
   Taupe (dunkles Beige): #b6a385 · Schimmer rgba(255,245,220,.35) · Texte #1b1814 / #33291f · Kicker #432f02
   AKTIV: Sand, vom User gewählt 14.10. (Variante 2) */
:root { --page: #d8c9ab; --page-glow: rgba(255, 250, 235, .55); --on-page: #1b1814; --on-page-2: #4a4034; --on-page-k: #5c4304; }
html, body { background: var(--page); }
body { background: radial-gradient(120% 45% at 50% -10%, var(--page-glow) 0%, rgba(0, 0, 0, 0) 60%) no-repeat, var(--page); }

/* Texte direkt auf dem Seitenhintergrund (nicht in Karten) */
#app > .top .display, #app > .top h1, #app > .top .brand,
#app > h1, #app > h2, #app > h3, #app > .display, #app > .ptitle, #app > .sec-h { color: var(--on-page); }
#app > p, #app > ul, #app > ol, #app > li, #app > small, #app > label { color: var(--on-page-2); }
#app > p b, #app > p strong, #app > ul b, #app > ol b { color: var(--on-page); }
#app > .muted, #app > p.muted, #app > .sub, #app > .lead { color: var(--on-page-2); }
#app > .kicker, #app > .top .kicker { color: var(--on-page-k); }
#app > .top .brand b, #app > .top .brand span { color: var(--on-page-k); }
#app > .top .muted, #app > .top small, #app > .tleg, #app > .tleg span { color: var(--on-page-2); }
/* Einrichtung beim ersten Start */
.ob > h1, .ob > h2, .ob > h3 { color: var(--on-page); }
.ob > p, .ob > small, .ob > label, .ob > ul, .ob > .muted { color: var(--on-page-2); }
.ob > p b, .ob > p strong { color: var(--on-page); }
.ob > .kicker { color: var(--on-page-k); }
.ob > label.of > span { color: var(--on-page-2); }

/* ===== Premium-Design (28.10.2026) =====
   Liegt als letzte Schicht über app.css + app2.css + theme.css + seite.css und ändert nur das Aussehen, keine Funktion.
   Zwei Welten (wie premium-motion-stil): helles Editorial-Papier mit 2.5D-Karten für Inhalte,
   tiefes Espresso-Dunkel mit Gold für Kopf, Summen und Navigation.
   Handy (< 760 px): App-Look mit schwebender dunkler Leiste. Tablet: breitere Spalte.
   Laptop (≥ 1100 px): Plattform-Look mit Seitenleiste links und Raster je Seite.
   Zum Zurückschalten: Datei entfernen und app_build neu laufen lassen. */
:root {
  --page: #efe9dd; --page-glow: rgba(255, 252, 244, .9);
  --on-page: #17130e; --on-page-2: #4a4136; --on-page-k: #6b4e05;
  --bg: #f7f3ea; --card: #ffffff; --ink: #17130e; --ink-2: #3b3329; --muted: #6e6455; --line: #ebe3d3;
  --gold: #d9a521; --gold-d: #7a5a03; --gold-l: #fbf1d6;
  --gg: linear-gradient(135deg, #f5dc8e 0%, #e2b23a 42%, #b8860f 100%);
  --gg-soft: linear-gradient(135deg, #fffaf0 0%, #fbefcf 100%);
  --night: #15120e; --night-2: #231d16; --night-line: rgba(255, 236, 196, .1);
  --on-night: #f6efe0; --on-night-2: #c9bca4; --gold-t: #f1cf72;
  --r: 22px;
  --edge: #e2d8c4;
  --shadow: 0 1px 0 rgba(23, 19, 14, .04), 0 2px 0 var(--edge), 0 18px 36px -20px rgba(60, 42, 10, .28);
  --shadow-lg: 0 2px 0 var(--edge), 0 30px 60px -28px rgba(60, 42, 10, .38);
  --tabs-h: 64px;
  --side-w: 0px;
}
/* Papier mit feinem Korn */
html, body { background: var(--page); }
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .14 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 50% at 50% -12%, var(--page-glow) 0%, rgba(255, 252, 244, 0) 62%) no-repeat,
    var(--page);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
::selection { background: #f3dc9a; color: var(--ink); }

/* ---------- Karten: weiß, feine Kante, harte Unterkante (2.5D), weicher tiefer Schatten ---------- */
.card, .meal, .art, .opt, .tier { border: 1px solid rgba(23, 19, 14, .06); box-shadow: var(--shadow); }
.card, .meal, .art { border-radius: var(--r); background: var(--card); }
.opt { border-width: 1.5px; }
.opt.on, .tier.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 165, 33, .18), var(--shadow); }
a.card, button.card, .ritem, .must a, .arow { transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s; }
@media (hover: hover) {
  a.card:hover, button.card:hover, .ritem:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
}

/* ---------- Typo ---------- */
.display { letter-spacing: .012em; }
.top h1.display, #app > h1.display { font-size: 34px; }
.kicker, .ritem .tt small, .chap-h .no, .shome .tx small { letter-spacing: .16em; }
.sec-h { font-size: 13px !important; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-page-k); margin: 26px 2px 10px; }
.card .sec-h, .art .sec-h { color: var(--gold-d); margin-top: 4px; }
.top .brand { letter-spacing: .2em; font-size: 12px; }

/* ---------- Knöpfe ---------- */
.big { border-radius: 16px; min-height: 56px; font-weight: 800; letter-spacing: .01em; background: var(--gg); color: var(--night); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 #9c7209, 0 14px 26px -12px rgba(150, 105, 5, .65); }
.big.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 0 var(--edge); }
.big.done { background: var(--night); color: var(--gold-t); box-shadow: 0 2px 0 #000, 0 14px 26px -12px rgba(0, 0, 0, .5); }
.iconbtn, .back { background: var(--card); border: 1px solid rgba(23, 19, 14, .07); box-shadow: 0 2px 0 var(--edge); }
.chip { background: rgba(255, 255, 255, .78); border: 1px solid rgba(23, 19, 14, .08); font-weight: 700; color: var(--ink-2); }
.chip.on { background: var(--night); color: var(--gold-t); border-color: var(--night); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.search { height: 54px; border-radius: 16px; border: 1px solid rgba(23, 19, 14, .08); box-shadow: 0 2px 0 var(--edge), inset 0 1px 2px rgba(0, 0, 0, .03); }
.search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 165, 33, .2); }

/* ---------- Dunkle Welt: Tageskopf, Startkopf, Tagessumme ---------- */
.dayhero, .shome {
  background: radial-gradient(90% 120% at 100% 0%, rgba(226, 178, 58, .22) 0%, rgba(226, 178, 58, 0) 55%), linear-gradient(160deg, #2a221a 0%, var(--night) 70%);
  border: 1px solid rgba(255, 236, 196, .08); color: var(--on-night);
  box-shadow: 0 2px 0 #000, 0 28px 50px -24px rgba(20, 12, 0, .55);
}
.dayhero::after { background: radial-gradient(circle, rgba(241, 207, 114, .16), rgba(241, 207, 114, 0) 70%); }
.dh-nav { background: rgba(255, 255, 255, .07); color: var(--on-night); border: 1px solid rgba(255, 255, 255, .08); }
.dh-tag { background: linear-gradient(180deg, #fbe7a6 0%, #e2b23a 60%, #c4930f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dh-tag small { color: var(--on-night-2); -webkit-text-fill-color: var(--on-night-2); }
.dh-sub, .dh-line { color: var(--on-night-2); }
.dh-bar { background: rgba(255, 255, 255, .09); }
.dh-bar i { background: var(--gg); box-shadow: 0 0 0 1px rgba(255, 220, 140, .25); }
.today-link { background: var(--gg); color: var(--night); box-shadow: none; }
.shome .ring .bgc { stroke: rgba(255, 255, 255, .1); }
.shome .ring small, .shome .tx p { color: var(--on-night-2); }
.shome .tx small { color: var(--gold-t); }
.shome .tx h2 { color: var(--on-night); }
.sum { background: linear-gradient(160deg, #2a221a, var(--night)); color: var(--on-night); box-shadow: 0 2px 0 #000, 0 20px 36px -20px rgba(0, 0, 0, .55); }
.sum b { color: var(--gold-t); font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .01em; }
.sum span { color: var(--on-night-2); }
.sum .free { background: var(--gg); color: var(--night); }
.sum .own { color: var(--on-night-2); }
.macros .g { background: var(--night); color: var(--gold-t); border-color: var(--night); }
.macros .g b { color: var(--gold-t); }
.macros .g small { color: var(--on-night-2); }
.macros div { border: 1px solid rgba(23, 19, 14, .06); box-shadow: 0 2px 0 var(--edge); border-radius: 16px; }
.macros b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .01em; }

/* ---------- Mahlzeiten ---------- */
.meal { padding: 14px; }
.m-img { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.meal.done { background: linear-gradient(#fffdf7, #fff9ea); border-color: rgba(217, 165, 33, .35); }
.eat { border: 1.5px solid #ead9a8; color: var(--gold-d); background: #fff; }
.eat.on { background: var(--night); color: var(--gold-t); border-color: var(--night); box-shadow: none; }
.swapbtn { background: #f5efe2; color: var(--ink-2); }
.pill.cook { background: var(--night); color: var(--gold-t); }

/* ---------- Hinweise ---------- */
.remind, .ekcard, .calcta, .pausecard, .swapbox { background: var(--card); border: 1px solid rgba(23, 19, 14, .06); box-shadow: var(--shadow); }
.remind::before { width: 3px; }
.tipbox, .rinfo { background: var(--gg-soft); border: 1px solid #f1e1b2; border-radius: 16px; }

/* ---------- Rezepte ---------- */
.ritem { padding: 10px; gap: 14px; }
.ritem .th { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.ritem .tt b { font-size: 16.5px; letter-spacing: -.005em; }
.rhero { background-color: #e9e1d1; }
.rbody { background: var(--page); }
.rbody h1 { font-size: 27px; letter-spacing: -.01em; }
.steps li::before { background: var(--night) !important; color: var(--gold-t) !important; font-weight: 800; }
.shcta, .shcta.on { background: linear-gradient(160deg, #2a221a, var(--night)); color: var(--on-night); border-color: transparent; box-shadow: 0 2px 0 #000, 0 22px 40px -22px rgba(0, 0, 0, .6); }
.shcta b { color: var(--on-night); } .shcta small { color: var(--on-night-2); } .shcta .chev { color: var(--gold-t); }
.shcta .shth i { border-color: #2a221a; }

/* ---------- Start / Wissen ---------- */
.shero { background: var(--card); border: 1px solid rgba(23, 19, 14, .06); }
.must a { background: var(--card); border: 1px solid rgba(23, 19, 14, .06); }
.must a .mi { background: var(--gold-l); }
.art { padding: 24px 20px 26px; }
.art h1.display { font-size: 34px; }

/* ---------- Woche / Einkauf / Training ---------- */
.goals div { background: #f8f4ea; border: 1px solid rgba(23, 19, 14, .04); }
.wday.is-today { border-color: var(--gold); }
.wday.is-sel { background: linear-gradient(#fffdf6, #fff8e6); }
.wtoday, .td em, .tleg .t { background: var(--night); color: var(--gold-t); }
.aisle h3 { letter-spacing: .14em; }
.item .box, .ing .box { border-radius: 9px; }
.prog, .tgbar, .dh-bar { border-radius: 99px; }

/* PDF-Downloads unter „Mehr → Deine PDFs" */
a.opt { text-decoration: none; color: var(--ink); }
.opt .th.pdfi { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--gold-l); padding: 6px; }

/* ---------- Fenster ---------- */
.sheet { background: rgba(18, 13, 6, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet .panel { background: var(--bg); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4); }
.toast { background: var(--night); color: var(--on-night); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }

/* ---------- Einrichtung beim ersten Start ---------- */
.ob .cover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.ob .cover::after { background: linear-gradient(180deg, rgba(21, 18, 14, 0) 30%, rgba(21, 18, 14, .88)); }

/* ---------- Leiste: Handy = schwebende dunkle Kapsel ---------- */
.tabs {
  left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); max-width: 540px; margin: 0 auto;
  height: 70px; padding: 0 6px; border-radius: 26px; border: 1px solid rgba(255, 236, 196, .1);
  background: rgba(21, 18, 14, .94); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tabs a { height: 70px; color: #a99d88; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; gap: 2px; }
.tabs a .i3 { width: 30px; height: 30px; filter: saturate(.55) brightness(.92); opacity: .8; }
.tabs a.on { color: var(--gold-t); font-weight: 800; }
.tabs a.on .i3 { filter: none; opacity: 1; transform: translateY(-2px) scale(1.1); }
.tabs a.on::after { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-t); margin-top: 1px; }
#app { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 48px); }
.rtimer { bottom: calc(var(--safe-b) + 92px); }
body.resting .toast { bottom: calc(var(--safe-b) + 170px); }

/* ---------- Tablet ---------- */
@media (min-width: 760px) {
  #app { max-width: 720px; padding-left: 24px; padding-right: 24px; }
  .rhero { margin: 0 -24px; border-radius: 0 0 28px 28px; }
  .rbody { margin: -26px -24px 0; padding: 26px 24px 0; }
  .chips { margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .must { grid-template-columns: repeat(4, 1fr); }
  .sheet { align-items: center; }
  .sheet .panel { border-radius: 26px; max-height: 84vh; max-width: 620px; padding-bottom: 24px; }
}

/* ---------- Laptop: Plattform-Look mit Seitenleiste ---------- */
@media (min-width: 1100px) {
  :root { --side-w: 264px; }
  /* Seitenleiste */
  .tabs {
    left: 0; right: auto; top: 0; bottom: 0; width: var(--side-w); max-width: none; height: auto; margin: 0;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px;
    padding: 30px 16px 24px; border-radius: 0; border: 0; border-right: 1px solid rgba(255, 236, 196, .08);
    background: radial-gradient(140% 40% at 0% 0%, rgba(226, 178, 58, .16) 0%, rgba(226, 178, 58, 0) 60%), linear-gradient(180deg, #221c15 0%, var(--night) 60%);
    box-shadow: none;
  }
  .tabs::before { content: "60 Tage"; order: -2; font: 400 34px/1 Anton, Impact, sans-serif; text-transform: uppercase; color: var(--on-night); padding: 0 12px; letter-spacing: .01em; }
  .tabs::after { content: "Satt abnehmen"; order: -1; font: 400 34px/1 Anton, Impact, sans-serif; text-transform: uppercase; padding: 2px 12px 26px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 236, 196, .1);
    background: linear-gradient(180deg, #fbe7a6 0%, #e2b23a 60%, #c4930f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .tabs a { flex: 0 0 auto; max-width: none; height: 54px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 14px; border-radius: 14px; font-size: 15.5px; font-weight: 600; color: #b9ad97; position: relative; }
  .tabs a .i3 { width: 32px; height: 32px; }
  .tabs a:hover { background: rgba(255, 255, 255, .05); color: var(--on-night); }
  .tabs a.on { background: rgba(241, 207, 114, .12); color: var(--gold-t); }
  .tabs a.on .i3 { transform: none; }
  .tabs a.on::after { position: absolute; left: -16px; top: 12px; bottom: 12px; width: 4px; height: auto; border-radius: 0 4px 4px 0; margin: 0; background: var(--gg); }
  /* Inhalt rechts daneben */
  #app { max-width: none; margin: 0 0 0 var(--side-w); padding: 40px clamp(32px, 4vw, 72px) 72px; display: grid; grid-template-columns: minmax(0, 1120px); justify-content: center; align-content: start; }
  #app > * { min-width: 0; }
  body:has(#tabs[hidden]) #app { margin-left: 0; }
  .top { margin-bottom: 22px; }
  .top h1.display, #app > h1.display { font-size: 46px; }
  .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .rtimer { left: calc(var(--side-w) + 24px); bottom: 24px; }
  .toast { left: calc(50% + var(--side-w) / 2); }

  /* Heute: Kopf über die ganze Breite, links Mahlzeiten, rechts Hinweise und Checkliste */
  #app:has(> .dayhero) { grid-template-columns: minmax(0, 700px) minmax(0, 400px); grid-template-rows: auto auto repeat(9, auto) 1fr auto; column-gap: 28px; }
  #app:has(> .dayhero) > .top, #app:has(> .dayhero) > .dayhero { grid-column: 1 / -1; }
  #app:has(> .dayhero) > * { grid-column: 2; align-self: start; }
  #app:has(> .dayhero) > .meals { grid-column: 1; grid-row: 3 / 13; }
  #app:has(> .dayhero) > .sum { grid-column: 1; grid-row: 13; }
  #app:has(> .dayhero) > .dayhero { padding: 22px 24px 24px; margin-bottom: 18px; }
  #app:has(> .dayhero) > :not(.top):not(.dayhero):not(.meals):not(.sum) { margin-top: 0; margin-bottom: 14px; }
  .dh-tag { font-size: 58px; }
  .meals { display: grid; gap: 14px; }

  /* Start: Kopf und Video nebeneinander, Kapitel mit zweispaltigen Listen */
  #app:has(> .shome) { grid-template-columns: minmax(0, 560px) minmax(0, 540px); column-gap: 24px; }
  #app:has(> .shome) > * { grid-column: 1 / -1; }
  #app:has(> .shome) > .shome { grid-column: 1; grid-row: 2 / span 2; margin: 0; height: 100%; padding: 28px; }
  #app:has(> .shome) > .svideo { grid-column: 2; grid-row: 2; margin: 0; }
  #app:has(> .shome) > .svt { grid-column: 2; grid-row: 3; }
  #app:has(> .shome) > .shero { margin-top: 24px; }
  .shome .ring { width: 150px; height: 150px; flex-basis: 150px; }
  .shome .ring b { font-size: 54px; }
  .shome .tx h2 { font-size: 36px; }
  .must { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .chap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; padding: 8px 8px 12px; }
  .chap > .chap-h { grid-column: 1 / -1; }

  /* Listen (Rezepte, Starthilfe, Trainingspläne): Karten im Raster mit großem Foto */
  .rlist { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
  .rlist > .ritem { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
  .rlist > .ritem .th { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .rlist > .ritem .th.shw { aspect-ratio: 3 / 2; }
  .rlist > .ritem .tt { padding: 14px 16px 16px; }
  .rlist > .ritem .chev { display: none; }
  .rlist > .ritem:not(:has(.th)) { padding: 16px; }
  .rlist > .ritem:has(.tth) { flex-direction: row; align-items: center; padding: 16px 18px; gap: 16px; }
  .rlist > .ritem:has(.tth) .th { flex: 0 0 56px; width: 56px; height: 56px; aspect-ratio: auto; border-radius: 16px; }
  .rlist > .ritem:has(.tth) .tt { padding: 0; }
  #app:has(> .rlist) > .search { max-width: 560px; }
  .shcta { max-width: 560px; }

  /* Rezept: Foto links (mitlaufend), Inhalt rechts */
  #app:has(> .rhero) { grid-template-columns: minmax(0, 560px) minmax(0, 560px); column-gap: 40px; padding-top: 40px; }
  #app:has(> .rhero) > .rhero { margin: 0; border-radius: 26px; position: sticky; top: 40px; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
  #app:has(> .rhero) > .rbody { margin: 0; padding: 4px 0 0; border-radius: 0; background: transparent; }
  .rhero .back { top: 14px; left: 14px; }

  /* Woche: Tage als Raster */
  .wdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .wdays > .wday { margin: 0; }
  #app:has(> .wdays) > .whead { padding: 24px 26px; }
  #app:has(> .wdays) .goals { grid-template-columns: repeat(4, 1fr); }
  #app:has(> .wdays) > .wcheck, #app:has(> .wdays) > .impuls { margin-top: 18px; }

  /* Einkauf: Artikel einer Abteilung zweispaltig */
  .aisle { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; }
  .aisle > h3 { grid-column: 1 / -1; }
  .aisle > .item { border-top: 1px solid var(--line); }
  .aisle > .item:nth-of-type(odd) { border-right: 1px solid var(--line); }
  .aisle > .item:nth-of-type(1), .aisle > .item:nth-of-type(2) { border-top: 0; }

  /* Lesen, Mehr, Gewichtsverlauf: angenehme Lesebreite */
  #app:has(> .art) { grid-template-columns: minmax(0, 780px); }
  #app:has(> .menu) { grid-template-columns: minmax(0, 720px); }
  #app:has(> .chart) { grid-template-columns: minmax(0, 860px); }
  .art { padding: 40px 48px 44px; font-size: 17.5px; }
  .art h1.display { font-size: 46px; }

  /* Fenster in der Mitte */
  .sheet { padding-left: var(--side-w); }
  .sheet .panel { max-width: 640px; padding: 18px 26px 28px; }

  /* Einrichtung: Titelbild links, Inhalt rechts */
  .ob.first { padding: 0 0 0 calc(50vw + 24px); max-width: calc(50vw + 24px + 560px); min-height: 100vh; justify-content: center; }
  .ob.first .cover { position: fixed; left: 0; top: 0; bottom: 0; width: 50vw; height: auto; min-height: 0; max-height: none; margin: 0; border-radius: 0; }
  .ob.first .cover::after { border-radius: 0; }
  .ob.first .cover .display { left: 48px; bottom: 44px; font-size: 64px; }
  .ob.first .cover .display span { font-size: 96px; }
  .ob.first h1 { font-size: 38px; letter-spacing: -.01em; }
  .ob.first p { font-size: 18px; }
  .ob:not(.first) { max-width: 600px; margin: 0 auto; }
  #app > .top .brand { visibility: hidden; } /* Logo steht schon in der Seitenleiste */
  body:has(#tabs[hidden]) #app { display: block; padding: 40px 48px; }
}
@media (min-width: 1500px) {
  #app:has(> .dayhero) { grid-template-columns: minmax(0, 760px) minmax(0, 420px); }
}
