/* Kochkasse – Design „Frischbon“: runde, bunte Kacheln; wo es um Geld geht, Bonpapier. Schriften liegen
   bei uns (keine fremden Quellen, DSGVO). Maskottchen Topfi kommt als SVG-Sprite aus index.html. */
@font-face { font-family: "Fredoka"; src: url(fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/spacemono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/spacemono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --grund: #fff5ea; --karte: #ffffff; --papier: #ffffff; --tinte: #2d2833; --leise: #77707c; --linie: #f0e3d3;
  --strich: #cfc3b4; --gruen: #1f8050; --gruen-voll: #3fb277; --gruen-hell: #dcf3e6; --tomate: #d8421f; --tomate-voll: #ff6b4a;
  --tomate-hell: #ffe2d9; --gelb: #ffd36b; --gelb-hell: #fff1cc; --auf-tinte: #fff5ea;
  --schatten: 0 8px 18px -12px rgba(80, 40, 20, .45);
  --rund: 20px; --schrift: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1b181e; --karte: #27222b; --papier: #2e2833; --tinte: #f4eee7; --leise: #a9a0ad; --linie: #3a333f;
    --strich: #554c5a; --gruen: #6fd6a0; --gruen-voll: #3fb277; --gruen-hell: #1f3a2c; --tk: #37a56e; --td: #2b8758; --tl: #4cc487; --tt: #1d6a44; --th: #8be0b3; --tomate: #ff8c70; --tomate-voll: #ff6b4a;
    --tomate-hell: #4a271f; --gelb: #f2c14e; --gelb-hell: #3f3520; --auf-tinte: #1b181e;
    --schatten: 0 8px 18px -12px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 16px/1.45 var(--schrift); overflow-x: hidden; }
a { color: var(--tomate); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.02rem; }
button, input, select { font: inherit; color: inherit; }
.leise { color: var(--leise); font-size: .9rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.topfi { display: block; flex: none; overflow: visible; }
/* Topfi bewegt sich: jede Laune hat ihre eigene kleine Bewegung (Teile siehe topfi.js) */
.topfi .ganz { animation: t-wipp 3.2s ease-in-out infinite; transform-origin: 50px 96px; }
.topfi .augen-auf { animation: t-blinzel 4.4s infinite; transform-origin: 50px 63px; }
.topfi .arm-l { transform-origin: 17px 62px; } .topfi .arm-r { transform-origin: 83px 62px; }
.topfi .deckel { transform-origin: 16px 43px; }
.topfi .funken { transform-box: fill-box; transform-origin: center; animation: t-funkel 1.1s ease-in-out infinite alternate; }
.topfi .funken:nth-of-type(2n) { animation-delay: .4s; }
.topfi .dampf { animation: t-dampf 2.2s ease-in-out infinite; } .topfi .spaet { animation-delay: .9s; }
.topfi .zzz { animation: t-zzz 2.8s ease-in-out infinite; }
.topfi .frage { transform-box: fill-box; transform-origin: center; animation: t-frage 1.4s ease-in-out infinite alternate; }
.topfi .schweiss { animation: t-tropfen 1.3s ease-in infinite; }
.t-winkt .arm-l, .t-zwinker .arm-l { animation: t-wink .55s ease-in-out infinite alternate; }
.t-koch .arm-l { animation: t-wink 1s ease-in-out infinite alternate; }
.t-einkauf .arm-r { animation: t-schlenker 1.5s ease-in-out infinite alternate; }
.t-laden .deckel { animation: t-deckel .42s ease-in-out infinite alternate; }
.t-laden .ganz { animation: t-wipp .84s ease-in-out infinite; }
.t-heiss .ganz { animation: t-zitter .16s linear infinite; }
.t-heiss .deckel { animation: t-klapper .14s linear infinite alternate; }
.t-schlaf .ganz { animation: t-atmen 3.6s ease-in-out infinite; }
.t-jubel .ganz, .t-plus .ganz { animation: t-huepf .55s ease-in-out infinite alternate; }
.t-jubel .muenze { animation: t-muenzhuepf .55s ease-in-out infinite alternate; }
.t-wow .ganz { animation: t-staun 1.6s ease-in-out infinite; }
.t-muenze .muenze { animation: t-einwurf 1s cubic-bezier(.5, 0, .9, .5) 1 both; }
.t-muenze .ganz { animation: t-rums .3s ease-out .9s 1; }
.t-traurig .ganz { animation: t-atmen 4.5s ease-in-out infinite; }
@keyframes t-wipp { 50% { transform: translateY(-1.6px); } }
@keyframes t-blinzel { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.08); } }
@keyframes t-wink { from { transform: rotate(-10deg); } to { transform: rotate(18deg); } }
@keyframes t-schlenker { from { transform: rotate(-6deg); } to { transform: rotate(7deg); } }
@keyframes t-deckel { to { transform: rotate(-9deg) translateY(-1.5px); } }
@keyframes t-klapper { to { transform: rotate(-4deg) translateY(-2px); } }
@keyframes t-zitter { 0%, 100% { transform: translateX(-.8px); } 50% { transform: translateX(.8px); } }
@keyframes t-atmen { 50% { transform: scale(1.025, .975); } }
@keyframes t-huepf { to { transform: translateY(-8px); } }
@keyframes t-muenzhuepf { to { transform: translateY(-10px) rotate(20deg); } }
@keyframes t-staun { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.06, .95); } 24% { transform: scale(.97, 1.04) translateY(-3px); } 40% { transform: scale(1); } }
@keyframes t-einwurf { 0% { transform: translateY(-34px); opacity: 0; } 18% { opacity: 1; } 70% { transform: translateY(0); } 100% { transform: translateY(15px); } }
@keyframes t-rums { 40% { transform: scale(1.05, .93); } }
@keyframes t-funkel { from { opacity: .15; transform: scale(.5) rotate(0); } to { opacity: 1; transform: scale(1.15) rotate(45deg); } }
@keyframes t-dampf { 0% { opacity: 0; transform: translateY(5px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-7px); } }
@keyframes t-zzz { 0% { opacity: 0; transform: translate(3px, 5px); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-4px, -7px); } }
@keyframes t-frage { from { transform: rotate(-12deg) scale(.9); } to { transform: rotate(10deg) scale(1.1); } }
@keyframes t-tropfen { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
@media (prefers-reduced-motion: reduce) { .topfi * { animation: none !important; } }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--tinte); color: var(--auf-tinte); font-weight: 600; padding: 11px 20px; border-radius: 999px; text-decoration: none;
  min-height: 46px; transition: transform .06s, opacity .15s; }
.knopf:hover { opacity: .9; } .knopf:active { transform: scale(.97); }
.knopf.zweit { background: var(--gelb); color: #2d2833; }
.knopf.rand { background: var(--karte); color: var(--tinte); box-shadow: inset 0 0 0 2px var(--linie); }
.knopf.gross { width: 100%; font-size: 1.08rem; padding: 14px 20px; min-height: 52px; }
.knopf.klein { min-height: 36px; padding: 6px 14px; font-size: .92rem; }
.knopf.warn { background: var(--tomate-voll); color: #fff; }
.knopf:disabled { opacity: .5; cursor: default; }
.textknopf { background: none; border: 0; color: var(--tomate); font-weight: 600; cursor: pointer; padding: 6px; }
.rundknopf { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; background: var(--karte); color: var(--tinte);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.rundknopf svg { width: 18px; height: 18px; }
:focus-visible { outline: 3px solid var(--tomate-voll); outline-offset: 2px; }

/* Formular */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .98rem; }
input, select { border: 2px solid var(--linie); background: var(--karte); border-radius: 14px; padding: 11px 14px; min-height: 46px; width: 100%; }
input:focus, select:focus { outline: 0; border-color: var(--tinte); }
.formular { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--linie); background: var(--karte); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--tinte); user-select: none; }
.chip.an { background: var(--tinte); border-color: var(--tinte); color: var(--auf-tinte); }
.chip.ruhig { cursor: default; background: var(--gelb-hell); border-color: transparent; }
.chip.nein.an { background: var(--tomate-voll); border-color: var(--tomate-voll); color: #fff; }
.stepper { display: flex; align-items: center; border: 2px solid var(--linie); border-radius: 999px; background: var(--karte); width: max-content; }
.stepper button { width: 46px; height: 44px; border: 0; background: none; font-size: 1.35rem; cursor: pointer; color: var(--tomate); border-radius: 50%; }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.schalter { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.schalter input { width: 48px; min-height: 28px; height: 28px; appearance: none; background: var(--strich); border-radius: 99px; position: relative; cursor: pointer; border: 0; padding: 0; flex: none; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.schalter input:checked { background: var(--gruen-voll); } .schalter input:checked::after { left: 23px; }

/* App-Gerüst */
.app { max-width: 760px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); position: relative; }
.app::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 240px; top: -110px; left: -90px; background: var(--gelb);
  border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%; opacity: .85; }
@media (prefers-color-scheme: dark) { .app::before { opacity: .16; } }
.kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.35rem; color: var(--tinte); text-decoration: none; }
.logo .topfi, .logo img { width: 38px; height: 38px; }
.plus-marke { font-size: .7rem; font-weight: 700; background: var(--tinte); color: var(--gelb); padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; }
.kopf-knopf { background: var(--karte); color: var(--tinte); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; text-decoration: none; box-shadow: var(--schatten); }
.navi { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(430px, calc(100% - 24px));
  background: var(--tinte); border-radius: 999px; display: flex; padding: 6px; z-index: 20; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.navi a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px;
  color: var(--auf-tinte); opacity: .62; text-decoration: none; font-size: .72rem; font-weight: 500; position: relative; border-radius: 999px; }
.navi a svg { width: 22px; height: 22px; }
.navi a.an { opacity: 1; background: color-mix(in srgb, var(--auf-tinte) 16%, transparent); }
.navi .zahl { position: absolute; top: 1px; left: 50%; margin-left: 8px; background: var(--tomate-voll); color: #fff; font-size: .66rem; border-radius: 99px; padding: 0 5px; min-width: 17px; text-align: center; font-weight: 600; }
.ansicht { display: flex; flex-direction: column; gap: 16px; }

/* Karten */
.karte { background: var(--karte); border-radius: var(--rund); padding: 16px; box-shadow: var(--schatten); }
.karte.flach { box-shadow: none; border: 2px solid var(--linie); }
.abschnitt { display: flex; flex-direction: column; gap: 12px; }
.zeile { display: flex; align-items: center; gap: 10px; }
.zeile.zwischen { justify-content: space-between; }
.zeile.umbruch { flex-wrap: wrap; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Topfi spricht */
.sprech { display: flex; align-items: flex-end; gap: 6px; }
.sprech .topfi { width: 92px; height: 92px; }
.blase { background: var(--karte); border-radius: 22px 22px 22px 6px; padding: 11px 14px; box-shadow: var(--schatten); font-size: 1.02rem; line-height: 1.3; margin-bottom: 22px; }
.blase b { color: var(--tomate); font-weight: 600; }
.sprech.rechts { flex-direction: row-reverse; }
.sprech.rechts .blase { border-radius: 22px 22px 6px 22px; flex: 1; }

/* Start */
.held h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 700; }
.vorteile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vorteile div { border-radius: 18px; padding: 12px; font-size: .86rem; color: var(--tinte); }
.vorteile div:nth-child(1) { background: var(--gelb-hell); } .vorteile div:nth-child(2) { background: var(--tomate-hell); } .vorteile div:nth-child(3) { background: var(--gruen-hell); }
.vorteile b { display: block; font-size: .98rem; font-weight: 600; }
@media (max-width: 480px) { .vorteile { grid-template-columns: 1fr; } }

/* Bon: Papier mit Zackenkante. Zahlen in Schreibmaschinenschrift. */
.bon { position: relative; background: var(--papier); border-radius: 18px 18px 0 0; padding: 14px 16px 14px; font-family: var(--mono); font-size: .86rem;
  box-shadow: var(--schatten); margin-bottom: 8px; }
.bon::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px;
  background: conic-gradient(from -45deg at bottom, var(--papier) 90deg, transparent 0) 0 0 / 12px 100%; }
/* Ein Bon ist immer weißes Papier mit dunkler Schrift – auch im Dunkelmodus */
@media (prefers-color-scheme: dark) {
  .bon { --papier: #fffdf8; --tinte: #2d2833; --leise: #77707c; --strich: #cfc3b4; --linie: #f0e3d3; --gruen: #1f8050; --tomate: #d8421f; color: var(--tinte); }
}
.bz { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; }
.bz.gross { font-size: 1.15rem; font-weight: 700; border-top: 2px dashed var(--strich); margin-top: 7px; padding-top: 7px; align-items: baseline; }
.bz.gross b.gut { color: var(--gruen); } .bz.gross b.schlecht { color: var(--tomate); }
.bon small { color: var(--leise); font-size: .76rem; display: block; margin-top: 4px; }
.bon .gespart { color: var(--tomate); font-weight: 700; }
.bon-kopf { display: flex; align-items: center; gap: 10px; font-family: var(--schrift); border-bottom: 2px dashed var(--strich); padding-bottom: 10px; margin-bottom: 4px; }
.bon-kopf .topfi { width: 46px; height: 46px; }
.bon-kopf b { font-size: 1.15rem; font-weight: 600; display: block; line-height: 1.1; }
.bon-kopf span { font-size: .86rem; color: var(--leise); }
.bon-trenn { border: 0; border-top: 2px dashed var(--strich); margin: 8px 0; }
.plan-bon { margin-top: -22px; }

/* Budget in Zehnteln */
.seg { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 9px; }
.seg i { height: 11px; border-radius: 4px; background: var(--linie); }
.seg i.an { background: var(--gruen-voll); }
.seg.drueber i { background: var(--tomate-voll); }
.status { font-size: .88rem; color: var(--leise); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--gelb); display: inline-block; flex: none; }
.punkt.ok { background: var(--gruen-voll); } .punkt.laedt { animation: puls 1s infinite; }
@keyframes puls { 50% { opacity: .3; } }
.serie { display: inline-flex; align-items: center; gap: 6px; background: var(--karte); border-radius: 999px; padding: 3px 11px 3px 5px; font-size: .84rem; font-weight: 500; box-shadow: var(--schatten); }
.muenze { width: 18px; height: 18px; border-radius: 50%; background: #f4c430; box-shadow: inset 0 -2px 0 #c99619; display: inline-block; flex: none; }

/* Gerichte als Kacheln */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 620px) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kachel { --f: #e0a030; background: color-mix(in srgb, var(--f) 17%, var(--karte)); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 7px; min-height: 148px; min-width: 0; }
.kachel-kopf { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tag { width: 34px; height: 34px; border-radius: 12px; background: var(--f); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.kachel h3 { font-size: 1.02rem; font-weight: 500; cursor: pointer; flex: 1; overflow-wrap: anywhere; hyphens: auto; }
.kachel .kmeta { font-size: .8rem; color: var(--leise); display: flex; gap: 4px 8px; flex-wrap: wrap; }
.kachel-fuss { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kachel-fuss b { font-family: var(--mono); font-size: .84rem; }
.marke-angebot { background: var(--karte); color: var(--tomate); font-weight: 600; font-size: .74rem; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.marke-gruen { background: var(--gruen-hell); color: var(--gruen); font-weight: 600; font-size: .76rem; border-radius: 99px; padding: 2px 8px; }
.kachel.neu { animation: aufleuchten 1.1s; }
.kachel-kopf .symbol { width: 54px; height: 54px; margin: -8px -4px -6px 0; flex: none; }
.rundknopf.koch { box-shadow: inset 0 0 0 2px var(--linie); }
.rundknopf.koch path { stroke: var(--strich); }
.rundknopf.koch.an { background: var(--gruen-voll); box-shadow: none; animation: plopp .35s; }
.rundknopf.koch.an path { stroke: #fff; }
@keyframes plopp { 0% { transform: scale(.7); } 70% { transform: scale(1.15); } 100% { transform: none; } }
.kachel.gekocht h3 { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--tinte) 45%, transparent); }
.kachel.gekocht .symbol, .kachel.gekocht h3, .kachel.gekocht .kmeta { opacity: .6; }
/* Freigestellte Gerichtsfotos: der Teller liegt auf der Kachelfarbe, ein weicher Lichthof in der Typfarbe
   hält ihn im Dunkelmodus appetitlich (kein weißer Fotohintergrund, der im Dunkeln blendet). */
.kachel.mit-bild { padding-top: 4px; }
.kachel-bild { position: relative; aspect-ratio: 5 / 4; margin: 0 -6px -2px; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--f) 26%, transparent), transparent); }
.kachel-bild img, .rezept-bild img, .mini-bild img { width: 100%; height: 100%; object-fit: contain; user-select: none;
  filter: drop-shadow(0 10px 10px rgba(70, 35, 10, .22)); transition: transform .25s; }
.kachel-bild:hover img { transform: scale(1.04) rotate(-2deg); }
.kachel-bild .tag { position: absolute; top: 8px; left: 6px; }
.kachel.gekocht .kachel-bild img { opacity: .55; filter: grayscale(.5); }
.rezept-bild { --f: #e0a030; height: min(46vw, 260px); margin: -4px 0 10px; display: grid; place-items: center; border-radius: 22px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--f) 30%, transparent), transparent), color-mix(in srgb, var(--f) 12%, var(--karte)); }
.rezept-bild img { width: auto; max-width: 100%; }
.mini-bild { width: 48px; height: 48px; flex: none; display: block; }
@media (prefers-color-scheme: dark) {
  .kachel { background: color-mix(in srgb, var(--f) 13%, var(--karte)); }
  .kachel-bild { background: radial-gradient(closest-side, color-mix(in srgb, var(--f) 34%, transparent), transparent); }
  .kachel-bild img, .rezept-bild img, .mini-bild img { filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .55)); }
}
.mahlzeit-titel { font-size: 1.05rem; font-weight: 600; margin: 8px 2px -4px; }
.rezept-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rezept-kopf .symbol { width: 64px; height: 64px; flex: none; }
.portionen { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.portionen .stepper button { width: 38px; height: 36px; }
.bon-bild { display: block; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 16px; box-shadow: var(--schatten); }
@keyframes aufleuchten { 0% { transform: scale(.94); box-shadow: 0 0 0 4px var(--gelb); } 100% { transform: none; box-shadow: 0 0 0 0 transparent; } }

/* Einkaufsbon */
.gang-titel { font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--leise); margin: 12px 0 2px; }
.posten { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; }
.haken { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2.5px solid var(--strich); background: var(--papier); cursor: pointer; display: grid; place-items: center; padding: 0; }
.haken svg { width: 16px; height: 16px; display: none; }
.posten.erledigt .haken { background: var(--gruen-voll); border-color: var(--gruen-voll); }
.posten.erledigt .haken svg { display: block; }
.posten .was { cursor: pointer; font-family: var(--schrift); font-size: 1rem; font-weight: 500; line-height: 1.2; min-width: 0; }
.posten .was small { color: var(--leise); font-size: .82rem; font-weight: 400; margin: 0; font-family: var(--schrift); }
.posten .was small .ang { color: var(--tomate); font-weight: 500; }
.posten.erledigt .was { color: var(--leise); }
.posten.erledigt .was > span { text-decoration: line-through; }
.posten .preis { font-size: .86rem; text-align: right; white-space: nowrap; }
.posten .weg { background: none; border: 0; color: var(--leise); cursor: pointer; font-size: 1.2rem; padding: 2px 6px; }
.liste-neu { display: flex; gap: 8px; }
.liste-neu input { flex: 1; border-radius: 999px; }
.liste-neu .knopf { width: 46px; padding: 0; font-size: 1.4rem; }

/* Blatt */
.blatt-hinter { position: fixed; inset: 0; background: rgba(30, 20, 30, .5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.blatt { background: var(--grund); width: 100%; max-width: 680px; max-height: 92vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .blatt-hinter { align-items: center; } .blatt { border-radius: 28px; max-height: 86vh; } }
.blatt-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.zu { background: var(--karte); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; flex: none; box-shadow: var(--schatten); }
.zutaten, .einkauf { list-style: none; padding: 0; margin: 0; }
.zutaten { background: var(--papier); border-radius: 18px; padding: 6px 14px; }
.zutaten li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 2px dashed var(--linie); }
.zutaten li:last-child { border-bottom: 0; }
.zutaten li > span:first-child { min-width: 92px; font-family: var(--mono); font-size: .86rem; font-weight: 700; }
.zutaten li.vorrat { color: var(--leise); }
.schritte { padding-left: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; list-style: none; counter-reset: s; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.schritte li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--gelb); color: #2d2833; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }

/* Hinweise, Plus */
.hinweis { background: var(--gelb-hell); border-radius: 18px; padding: 14px; font-size: .96rem; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hinweis.gruen { background: var(--gruen-hell); }
.hinweis.rot { background: var(--tomate-hell); }
.plus-karte { background: var(--tinte); color: var(--auf-tinte); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.plus-karte h2 { display: flex; align-items: center; gap: 8px; }
.plus-karte h2 .topfi { width: 44px; height: 44px; }
.plus-karte ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.plus-karte .knopf { background: var(--gelb); color: #2d2833; }
.tarife { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tarif { background: color-mix(in srgb, var(--auf-tinte) 12%, transparent); border: 2px solid transparent; border-radius: 18px; padding: 12px; cursor: pointer; color: inherit; text-align: left; font-size: .9rem; }
.tarif.an { border-color: var(--gelb); }
.tarif b { display: block; font-size: 1.2rem; font-family: var(--mono); }
.zustimmung { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .85rem; }
.zustimmung input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 2px; }
.plus-karte a { color: var(--gelb); }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--tinte); color: var(--auf-tinte);
  padding: 11px 18px; border-radius: 999px; z-index: 60; max-width: calc(100% - 32px); font-size: .95rem; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); text-align: center; }
.laden { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; color: var(--leise); }
.laden .topfi { width: 96px; height: 96px; }
@media (prefers-reduced-motion: reduce) { .punkt.laedt, .kachel.neu, .rundknopf.koch.an { animation: none; } }
.leer { text-align: center; color: var(--leise); padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.leer .topfi { width: 96px; height: 96px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle td { padding: 8px 4px; border-bottom: 2px dashed var(--linie); }
.tabelle td:last-child { text-align: right; font-family: var(--mono); font-weight: 700; font-size: .88rem; }
.tabelle tr.bester td { color: var(--gruen); }
.mitglied { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 8px; }
.code { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .12em; font-weight: 700; background: var(--gelb-hell); padding: 4px 12px; border-radius: 99px; }
details summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.fuss { text-align: center; font-size: .82rem; color: var(--leise); padding: 8px 0 20px; }
.fuss a { color: var(--leise); }

/* Server-Seiten (Recht, Planseiten, Rezepte) */
.seite { padding: 0 16px; }
.seite-kopf { max-width: 760px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.seite-inhalt { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 30px; }
.seite-inhalt h1 { font-weight: 700; }
.seite-inhalt h2 { margin-top: 12px; }
.seite-inhalt p { margin: 0; }
.einleitung { font-size: 1.08rem; color: var(--leise); }
.seite-fuss { max-width: 760px; margin: 0 auto; padding: 20px 0 40px; font-size: .85rem; color: var(--leise); border-top: 2px dashed var(--linie); }
.seite-fuss a { color: var(--leise); }
.plan-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-zeile { background: var(--karte); border-radius: 18px; padding: 12px 14px; display: grid; grid-template-columns: 96px 1fr; gap: 2px 10px; box-shadow: var(--schatten); }
.plan-zeile .tag { font-weight: 600; color: var(--tomate); grid-row: span 2; width: auto; height: auto; background: none; display: block; font-size: 1rem; border-radius: 0; }
.einkauf { background: var(--papier); border-radius: 18px; padding: 6px 14px; font-size: .95rem; }
.einkauf li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 6px 0; border-bottom: 2px dashed var(--linie); }
.einkauf li:last-child { border-bottom: 0; }
.rezept-liste { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rahmen { background: var(--karte); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--schatten); }
@media (max-width: 480px) { .plan-zeile { grid-template-columns: 1fr; } .plan-zeile .tag { grid-row: auto; } }
@media print { .navi, .kopf-knopf, .rundknopf, .liste-neu, .textknopf, .weg, .knopf, .fuss, .app::before { display: none !important; } body { background: #fff; } .karte, .bon { box-shadow: none; } }

.mit-topfi { display: flex; align-items: center; gap: 8px; margin-top: 16px; } .mit-topfi .topfi { width: 44px; height: 44px; }
.blatt-kopf .zeile .topfi { width: 52px; height: 52px; }

/* Gerade im Angebot */
.angebote-karte h3 { margin: 0; }
.angebot-reihe { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: 0 -4px; }
.angebot { flex: none; scroll-snap-align: start; width: 128px; border: 0; border-radius: 16px; padding: 10px; text-align: left; cursor: pointer;
  background: color-mix(in srgb, var(--tomate) 9%, var(--karte)); color: var(--tinte); display: flex; flex-direction: column; gap: 3px; font: inherit; }
.angebot .prozent { color: var(--tomate); font-family: var(--mono); font-size: 1.05rem; }
.angebot .zutat { font-weight: 600; line-height: 1.2; }
.angebot .leise { font-size: .78rem; }
.angebot .marke-gruen { align-self: flex-start; }
.karte.treffer { display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer; border: 0; width: 100%; font: inherit; color: inherit; }
.karte.treffer .symbol { width: 44px; height: 44px; flex: none; }

/* Formular in drei Schritten */
.schritt { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.schritt + .schritt { border-top: 2px dashed var(--linie); padding-top: 16px; }
.schritt-titel { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.08rem; padding: 0; margin: 0; }
.schritt-titel i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--gelb); color: #2d2833; display: grid; place-items: center; font-size: .9rem; }
.unterzeile { margin: -4px 0 0; color: var(--leise); font-size: 1.02rem; }

/* Plan: auf dem Handy eine Spalte (Bon oben, dann Kacheln, dann der Rest) */
.plan-raster { display: flex; flex-direction: column; gap: 16px; }
.plan-seite { display: contents; }
.plan-seite > * { order: 5; }
.plan-seite > .sprech { order: 1; } .plan-seite > .plan-bon { order: 2; } .plan-seite > .status { order: 3; }
.plan-kacheln { order: 4; display: flex; flex-direction: column; gap: 16px; }

/* Große Bildschirme: Navigation im Kopf, Inhalte nebeneinander */
@media (min-width: 980px) {
  .app { max-width: 1180px; padding: 0 32px 40px; }
  .app::before { left: -140px; top: -130px; }
  .kopf { padding: 18px 0 22px; }
  .navi { position: static; transform: none; width: auto; background: var(--karte); box-shadow: var(--schatten); padding: 5px; gap: 2px; }
  .navi a { flex-direction: row; gap: 7px; padding: 8px 16px; font-size: .95rem; color: var(--tinte); opacity: .7; }
  .navi a svg { width: 19px; height: 19px; }
  .navi a.an { background: var(--tinte); color: var(--auf-tinte); opacity: 1; }
  .navi .zahl { position: static; margin: 0; }
  body:not([data-route="plan"]) .ansicht { max-width: 760px; margin: 0 auto; }
  .start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
  .start .held { position: sticky; top: 24px; padding-top: 24px; gap: 18px; }
  .start .held h1 { font-size: 3rem; line-height: 1.05; }
  .start .vorteile { grid-template-columns: 1fr; }
  .start .vorteile div { padding: 14px 16px; }
  .formular-karte { padding: 24px; }
  .plan-raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  .plan-seite { display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 1; }
  .plan-kacheln { grid-column: 1; grid-row: 1; }
  .plan-kacheln .mahlzeit-titel:first-child { margin-top: 0; }
  .plan-seite .sprech .topfi { width: 78px; height: 78px; }
  .fuss { text-align: center; }
  .plan-seite .status { display: block; }
  .plan-seite .status .punkt { display: inline-block; margin-right: 6px; vertical-align: 1px; }
}

@media (max-width: 600px) {
  .vorteile { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .vorteile div { flex: none; padding: 8px 12px; border-radius: 99px; font-size: 0; }
  .vorteile b { font-size: .88rem; }
}

.knopf.google { background: var(--karte); color: var(--tinte); box-shadow: inset 0 0 0 2px var(--linie); display: flex; align-items: center; justify-content: center; gap: 10px; }

/* App installieren: kräftige Karte (gelb wie Topfis Münze), auf der Startseite direkt unter der Überschrift */
.app-holen { position: relative; display: flex; gap: 12px; align-items: center; background: var(--tinte); color: var(--auf-tinte);
  border-radius: 24px; padding: 14px 16px; box-shadow: var(--schatten); }
.app-holen .topfi { width: 74px; height: 74px; flex: none; }
.app-holen-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.app-holen b { font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.app-holen span { font-size: .9rem; opacity: .85; line-height: 1.3; }
.app-holen .knopf.gelb, .knopf.gelb { background: var(--gelb); color: #2d2833; margin-top: 4px; }
.app-holen .zu.klein { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; font-size: 1rem; background: transparent; color: inherit; box-shadow: none; opacity: .7; }
.app-holen.plan { padding-right: 40px; }
.app-holen[hidden] { display: none; }
.app-schritte li { margin-bottom: 6px; }
@media (max-width: 380px) { .app-holen .topfi { width: 56px; height: 56px; } }
