/* ═══ Kennst du das? Farbe und echte App-Screens (21.11.2026) ═══
   Ergaenzt die ks-Regeln in ds/ff-umbau.css, liegt danach. Jede Karte bekommt ihre Themenfarbe (--ks-f):
   Zeit Lila, Geld Orange, Kuehlschrank Cyan, Ernaehrung Pink. Problem bleibt grau, Loesung gruen.
   Dazu je Karte ein Knopf mit Mini-Handy (.ks-echt), der den echten Screenshot gross zeigt (#ksBild, ds/ff-kennst.js).
   Mobil zuerst: Grundregeln fuer 390 px. */

.ffn .ks-zeit{--ks-f:#16A34A}
.ffn .ks-geld{--ks-f:#EA580C}
.ffn .ks-kuehl{--ks-f:#0891B2}
.ffn .ks-essen{--ks-f:#DB2777}

/* Karte: farbige Oberkante, Buehne leicht in der Themenfarbe, Hervorhebung nach Chip-Tipp in derselben Farbe */
.ffn .ks-karte{border-top:4px solid var(--ks-f,var(--ds-kante))}
.ffn .ks-karte .ks-buehne{background:color-mix(in srgb,var(--ks-f) 8%,#fff)}
.ffn .ks-karte.ziel{box-shadow:0 0 0 3px var(--ks-f),0 18px 40px -14px color-mix(in srgb,var(--ks-f) 45%,transparent)}

/* Thema: Icon als farbige Kachel */
.ffn .ks-thema{gap:10px;color:color-mix(in srgb,var(--ks-f) 78%,var(--ds-tinte))}
.ffn .ks-thema .ic{box-sizing:border-box;width:34px;height:34px;padding:8px;border-radius:11px;background:var(--ks-f);color:#fff;
  box-shadow:0 6px 14px -6px color-mix(in srgb,var(--ks-f) 70%,transparent)}

/* Chips: Punkt in der Farbe der Karte, aktiver Chip in dieser Farbe */
.ffn .ks-chips{max-width:900px}
.ffn .ks-chip{display:inline-flex;align-items:center;gap:8px}
.ffn .ks-chip::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--c,var(--ds-gruen))}
.ffn .ks-chip[data-ziel="0"]{--c:#16A34A}
.ffn .ks-chip[data-ziel="1"]{--c:#EA580C}
.ffn .ks-chip[data-ziel="2"]{--c:#0891B2}
.ffn .ks-chip[data-ziel="3"]{--c:#DB2777}
.ffn .ks-chip:hover{border-color:color-mix(in srgb,var(--c) 55%,var(--ds-kante))}
.ffn .ks-chip.an{background:color-mix(in srgb,var(--c) 12%,#fff);border-color:var(--c);color:color-mix(in srgb,var(--c) 70%,var(--ds-tinte))}

/* Knopf mit Mini-Handy: oberer Teil des echten Screens */
.ffn .ks-echt{display:flex;align-items:center;gap:12px;width:calc(100% + 36px);margin:16px 0 0;padding:8px 14px 8px 8px;border-radius:16px;
  border:1px solid color-mix(in srgb,var(--ks-f) 28%,var(--ds-kante));background:color-mix(in srgb,var(--ks-f) 6%,#fff);
  font:inherit;text-align:left;color:var(--ds-tinte);cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.ffn .ks-echt:hover{border-color:var(--ks-f);box-shadow:0 10px 22px -12px color-mix(in srgb,var(--ks-f) 60%,transparent)}
.ffn .ks-echt:active{transform:scale(.985)}
.ffn .ks-echt:focus-visible{outline:3px solid var(--ks-f);outline-offset:2px}
.ffn .ks-echt-handy{flex:none;width:48px;height:66px;border-radius:11px;border:2.5px solid #111827;overflow:hidden;background:#111827}
.ffn .ks-echt-handy img{display:block;width:100%;height:auto}
.ffn .ks-echt-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.3}
.ffn .ks-echt-tx b{font-size:.9rem;font-weight:650}
.ffn .ks-echt-tx small{font-size:.8rem;font-weight:600;color:color-mix(in srgb,var(--ks-f) 80%,var(--ds-tinte))}
.ffn .ks-echt .ic{flex:none;width:18px;height:18px;color:var(--ks-f);transition:transform .2s}
.ffn .ks-echt:hover .ic{transform:translateX(3px)}

/* Grossansicht als Dialog */
.ffn .ks-bild{position:fixed;inset:0;margin:auto;padding:0;border:0;background:transparent;overflow:visible;width:fit-content;height:fit-content;max-width:none;max-height:none}
.ffn .ks-bild::backdrop{background:rgba(17,24,39,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.ffn .ks-bild-handy{width:min(78vw,340px,calc(80vh * .46));aspect-ratio:600/1305;border-radius:42px;border:8px solid #111827;overflow:hidden;
  background:#111827;box-shadow:0 30px 80px rgba(0,0,0,.4)}
.ffn .ks-bild-handy img{display:block;width:100%;height:100%;object-fit:cover}
.ffn .ks-bild-titel{margin:14px 0 0;text-align:center;color:#fff;font-weight:650;font-size:1rem}
.ffn .ks-bild-zu{position:absolute;top:-12px;right:-12px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:0;
  background:#fff;color:var(--ds-tinte);cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.ffn .ks-bild-zu .ic{width:20px;height:20px}
.ffn .ks-bild-zu:focus-visible{outline:3px solid var(--ds-gruen);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){
  .ffn .ks-bild[open]{animation:ks-bild-rein .28s cubic-bezier(.16,1,.3,1)}
  @keyframes ks-bild-rein{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
}

/* ═══ Redesign 21.11. abends (Max) ═══ Naeher am App-Design: Buehne im Creme der App, weisse Karten mit weicher Kante,
   gruene Pillen, Spar-Banner wie in der Einkaufsliste der App. Groesserer Chami am Kopf.
   Neue Bausteine: .ks-spar und .ks-vliste (Liste mit guenstigstem Markt je Artikel), .ks-reiter und .ks-artikel (Ausgaben je
   Produkt), .ks-sprich, .ks-orb, .ks-welle, .ks-erkannt, .ks-tag (Assistent). Alle Werte in den Szenen sind Beispiele. */
.ffn .ks{--ks-h:340px;--app-creme:#F3EFE6;--app-karte:#FFFDF9;--app-kante:#E7E1D4;--app-tinte:#1E2B22;--app-gruen:#22C55E;--app-gruen-tief:#15803D;--app-orange:#EA580C}
.ffn .ks-kopf{gap:6px}
.ffn .ks-chami{width:118px;margin-bottom:-10px}
.ffn .ks-karte{border-top:0;border-radius:28px}
.ffn .ks-karte .ks-buehne{background:linear-gradient(180deg,#F7F4EC,var(--app-creme));box-shadow:inset 0 0 0 1px var(--app-kante);border-radius:22px}
.ffn .ks-app{color:var(--app-tinte)}
.ffn .ks-app .ks-app-kopf b{font-size:1.02rem;letter-spacing:-.01em}
.ffn .ks-app-kopf .ks-beispiel{background:var(--app-karte);border:1px dashed #CFC6B4;color:#6B6455}

/* Liste mit Preisvergleich */
.ffn .ks-spar{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:14px;background:#E6F4EA;font-size:.8rem;font-weight:600;color:#3F5A4B}
.ffn .ks-spar .ic{flex:none;width:18px;height:18px;color:var(--app-gruen-tief)}
.ffn .ks-spar img{height:15px;width:auto}
.ffn .ks-spar b{margin-left:auto;font-size:.95rem;color:var(--app-gruen-tief)}
.ffn .ks-vliste{margin:0;padding:0;list-style:none;border-radius:16px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante),0 6px 16px -10px rgba(60,50,30,.25);overflow:hidden}
.ffn .ks-vliste li{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:.86rem;font-weight:600;border-top:1px solid #EFE9DD}
.ffn .ks-vliste li:first-child{border-top:0}
.ffn .ks-vliste li > i{flex:none;width:18px;height:18px;border-radius:6px;border:2px solid #C9C2B3;background:#fff}
.ffn .ks-vliste li > span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ffn .ks-vliste small{font-weight:500;color:#8A8272;margin-left:2px}
.ffn .ks-vliste em{display:flex;align-items:center;gap:6px;font-style:normal;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.ffn .ks-vliste em img{height:14px;width:auto;max-width:34px;object-fit:contain}
.ffn .ks-vliste em s{font-weight:500;font-size:.72rem;color:#9A9384}
.ffn .ks-vliste li.angebot em{color:var(--app-orange)}
.ffn .ks-vliste li.angebot em::after{content:"Angebot";padding:2px 6px;border-radius:999px;background:#FDE7D8;color:var(--app-orange);font-size:.6rem;font-weight:800;letter-spacing:.02em}
.ffn .ks-app .ks-fertig{background:var(--app-gruen);color:#fff;font-size:.8rem;border-radius:14px;box-shadow:0 4px 0 var(--app-gruen-tief)}

/* Kontoauszug (Problem) */
.ffn .ks-belege li img{height:13px;width:auto;max-width:30px;object-fit:contain}
.ffn .ks-belege li{padding:8px 12px}
.ffn .ks-mehr{display:grid;place-items:center;width:24px;height:16px;border-radius:5px;background:var(--ks-grau-2);font-style:normal;font-size:.62rem;font-weight:800}

/* Ausgaben je Produkt */
.ffn .ks-reiter{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;border-radius:14px;background:#E9E4D8;font-size:.74rem;font-weight:650;color:#6B6455;text-align:center}
.ffn .ks-reiter span{padding:6px 0;border-radius:10px}
.ffn .ks-reiter .an{background:var(--app-karte);color:var(--app-tinte);box-shadow:0 2px 6px -2px rgba(60,50,30,.25)}
.ffn .ks-artikel{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none}
.ffn .ks-artikel li{position:relative;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:7px 10px 12px;border-radius:14px;background:var(--app-karte);
  box-shadow:0 0 0 1px var(--app-kante);font-size:.84rem;font-weight:650}
.ffn .ks-artikel .ks-pbild{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #EFE9DD}
.ffn .ks-artikel .ks-pbild img{width:82%;height:82%;object-fit:contain}
.ffn .ks-artikel small{display:block;font-size:.68rem;font-weight:500;color:#8A8272}
.ffn .ks-artikel b{font-variant-numeric:tabular-nums}
.ffn .ks-artikel li > i{position:absolute;left:54px;right:10px;bottom:6px;height:4px;border-radius:2px;background:#EFE9DD}
.ffn .ks-artikel li > i::after{content:"";position:absolute;inset:0;width:var(--w);border-radius:inherit;background:#9BE3B4}
.ffn .ks-artikel li:first-child > i::after{background:var(--app-gruen)}

/* Assistent */
.ffn .ks-sprich{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;border-radius:22px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante),0 10px 24px -14px rgba(60,50,30,.35)}
.ffn .ks-orb{flex:none;width:30px;height:30px;border-radius:50%;
  background:radial-gradient(circle,#fff 0 1.1px,transparent 1.6px) 0 0/5px 5px,radial-gradient(circle at 35% 30%,#BBF7D0,#22C55E 55%,#15803D);
  box-shadow:0 0 0 3px #E6F4EA}
.ffn .ks-sagt{flex:1;min-width:0;font-size:.82rem;font-weight:600;line-height:1.3;color:var(--app-tinte)}
.ffn .ks-mik{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--app-gruen);color:#fff}
.ffn .ks-mik .ic{width:17px;height:17px}
.ffn .ks-welle{display:flex;align-items:center;justify-content:center;gap:4px;height:22px}
.ffn .ks-welle i{width:4px;height:30%;border-radius:2px;background:var(--app-gruen);opacity:.7}
.ffn .ks-welle i:nth-child(3n){height:70%}.ffn .ks-welle i:nth-child(3n+1){height:45%}
.ffn .ks-erkannt{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none}
.ffn .ks-erkannt li{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:14px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante);font-size:.84rem;font-weight:650}
.ffn .ks-erkannt .ic{flex:none;width:22px;height:22px;padding:4px;border-radius:50%;background:var(--app-gruen);color:#fff;stroke-width:3}
.ffn .ks-erkannt span{flex:1;min-width:0}
.ffn .ks-erkannt small{display:block;font-size:.68rem;font-weight:500;color:#8A8272}
.ffn .ks-erkannt b{white-space:nowrap;color:var(--app-gruen-tief);font-size:.8rem}
.ffn .ks-tag{display:flex;align-items:center;gap:10px;margin-top:auto;padding:10px 12px;border-radius:14px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante);font-size:.74rem;font-weight:650;color:#6B6455}
.ffn .ks-tag i{position:relative;flex:1;height:8px;border-radius:4px;background:#EFE9DD;overflow:hidden}
.ffn .ks-tag i b{position:absolute;inset:0;width:calc(var(--p) * 100%);border-radius:inherit;background:linear-gradient(90deg,#86EFAC,var(--app-gruen))}
.ffn .ks-tag em{font-style:normal;font-weight:750;color:var(--app-tinte);font-variant-numeric:tabular-nums;white-space:nowrap}

@media (prefers-reduced-motion:no-preference){
  .ffn .ks-karte.spielt .ks-artikel li > i::after{animation:ks-balken .8s cubic-bezier(.16,1,.3,1) calc(var(--ks-wechsel) + .4s + var(--i) * .16s) both}
  .ffn .ks-karte.spielt .ks-tag i b{animation:ks-balken 1s cubic-bezier(.16,1,.3,1) calc(var(--ks-wechsel) + 1.5s) both}
  .ffn .ks-karte.spielt .ks-sagt{animation:ks-tippen 1.1s steps(28,end) calc(var(--ks-wechsel) + .2s) both}
  .ffn .ks-karte.spielt .ks-welle i{animation:ks-welle .7s ease-in-out calc(var(--ks-wechsel) + var(--n,0) * .05s) 3 alternate both}
  .ffn .ks-karte.spielt .ks-orb{animation:ks-orb 1.6s ease-in-out calc(var(--ks-wechsel)) 2}
  .ffn .ks-karte.spielt .ks-spar{animation:ks-plopp .45s cubic-bezier(.3,1.6,.5,1) calc(var(--ks-wechsel) + .2s) both}
  .ffn .ks-karte.spielt .ks-vliste li em{animation:ks-rein .4s cubic-bezier(.16,1,.3,1) calc(var(--ks-wechsel) + .5s + var(--i) * .16s) both}
  .ffn .ks-karte.spielt .ks-vliste li.angebot em::after{animation:ks-plopp .4s cubic-bezier(.3,1.6,.5,1) calc(var(--ks-wechsel) + 1.3s) both}
}
.ffn .ks-welle i:nth-child(2){--n:1}.ffn .ks-welle i:nth-child(3){--n:2}.ffn .ks-welle i:nth-child(4){--n:3}.ffn .ks-welle i:nth-child(5){--n:4}.ffn .ks-welle i:nth-child(6){--n:5}
.ffn .ks-welle i:nth-child(7){--n:6}.ffn .ks-welle i:nth-child(8){--n:7}.ffn .ks-welle i:nth-child(9){--n:8}.ffn .ks-welle i:nth-child(10){--n:9}.ffn .ks-welle i:nth-child(11){--n:10}.ffn .ks-welle i:nth-child(12){--n:11}
@keyframes ks-tippen{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes ks-welle{from{transform:scaleY(.4)}to{transform:scaleY(1.6)}}
@keyframes ks-orb{50%{transform:scale(1.12);box-shadow:0 0 0 7px #E6F4EA}}
@media(min-width:960px){
  .ffn .ks{--ks-h:350px}
  .ffn .ks-chami{width:170px;margin-bottom:-16px}
  .ffn .ks-kopf{gap:14px}
}
/* Feinschliff: Ausgaben-Liste passt in die Buehne */
.ffn .ks-artikel{gap:6px}
.ffn .ks-artikel li{padding:6px 10px 11px;grid-template-columns:30px 1fr auto}
.ffn .ks-artikel .ks-pbild{width:30px;height:30px}
.ffn .ks-artikel li > i{left:50px;bottom:5px}
@media(min-width:960px){.ffn .ks{--ks-h:360px}}
/* Kuehlschrank: Kennzahlen unter dem Fach. Assistent: Antwort mit Orb */
.ffn .ks-kstat{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.ffn .ks-kstat span{display:flex;flex-direction:column;align-items:center;padding:8px 4px;border-radius:14px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante);font-size:.66rem;font-weight:600;color:#6B6455;text-align:center}
.ffn .ks-kstat b{font-size:1.15rem;line-height:1.1;color:var(--app-tinte)}
.ffn .ks-kstat .bald b{color:var(--app-orange)}
.ffn .ks-kstat .idee b{color:var(--app-gruen-tief)}
.ffn .ks-antwortblase{display:flex;align-items:flex-start;gap:8px;margin:0;padding:9px 12px;border-radius:16px 16px 16px 6px;background:#E6F4EA;font-size:.8rem;font-weight:600;line-height:1.35;color:#24452F}
.ffn .ks-antwortblase .ks-orb{width:22px;height:22px;box-shadow:none}
/* Handy: Liste mit Preisvergleich kompakter, damit alles in die Karte passt */
@media(max-width:959px){
  .ffn .ks{--ks-h:372px}
  .ffn .ks-spar{font-size:.74rem;padding:8px 10px;white-space:nowrap}
  .ffn .ks-spar b{font-size:.9rem}
  .ffn .ks-vliste li{gap:8px;padding:8px 10px;font-size:.82rem}
  .ffn .ks-vliste small,.ffn .ks-vliste em s{display:none}
  .ffn .ks-vliste em{gap:5px}
  .ffn .ks-vliste li.angebot em::after{content:"%";padding:2px 5px}
  .ffn .ks-app .ks-fertig{font-size:.74rem;white-space:nowrap}
}
@media(max-width:959px){
  .ffn .ks-spar{white-space:normal;line-height:1.25}
  .ffn .ks-spar span{flex:1;min-width:0}
  .ffn .ks-spar b{white-space:nowrap}
  .ffn .ks-app .ks-fertig{white-space:normal;line-height:1.3}
}

/* ═══ 21.11. spaet (Max) ═══ Keine Logos anderer Ketten (nur REWE): Markt als Text-Pille. Haushaltsbuch mit Kategorie und
   aufgeklapptem Produkt mit Durchschnittspreis. Rezeptkarte mit Bild im Kuehlschrank. Assistent: Chami als Profilbild, Foto-Nachricht. */
.ffn .ks-markt{display:inline-block;padding:2px 6px;border-radius:6px;background:#EFE9DD;color:#5B5446;font-size:.62rem;font-weight:750;letter-spacing:.01em;white-space:nowrap}
.ffn .ks-belege .ks-mehr{width:30px;color:#6B6455}

/* Haushaltsbuch */
.ffn .ks-kat{border-radius:16px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante),0 6px 16px -10px rgba(60,50,30,.25);overflow:hidden}
.ffn .ks-kat-kopf{position:relative;display:grid;grid-template-columns:32px 1fr auto 16px;align-items:center;gap:10px;padding:9px 12px 13px;font-size:.86rem;font-weight:700;background:#F2FBF5}
.ffn .ks-kat-kopf::after{content:"";position:absolute;left:54px;right:12px;bottom:6px;height:4px;border-radius:2px;background:var(--app-gruen)}
.ffn .ks-kat-ic{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #E3EFE6}
.ffn .ks-kat-ic img{width:80%;height:80%;object-fit:contain}
.ffn .ks-kat-kopf small{display:block;font-size:.66rem;font-weight:500;color:#6B7F71}
.ffn .ks-kat-kopf .ic{width:16px;height:16px;transform:rotate(90deg);color:var(--app-gruen-tief)}
.ffn .ks-kat-produkte{margin:0;padding:2px 0 4px;list-style:none}
.ffn .ks-kat-produkte li{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:10px;padding:6px 12px 6px 22px;font-size:.78rem;font-weight:650}
.ffn .ks-kat-produkte li + li{border-top:1px dashed #EFE9DD}
.ffn .ks-kat-produkte img{width:24px;height:24px;object-fit:contain}
.ffn .ks-kat-produkte small{display:block;font-size:.64rem;font-weight:500;color:#8A8272}
.ffn .ks-kat-produkte em{font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;color:var(--app-tinte);padding:2px 7px;border-radius:999px;background:#E6F4EA}
.ffn .ks-kat-zu{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.ffn .ks-kat-zu li{display:grid;grid-template-columns:1fr auto 14px;gap:10px;align-items:center;padding:8px 12px;border-radius:12px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante);font-size:.8rem;font-weight:650;color:#4B463B}
.ffn .ks-kat-zu b{font-variant-numeric:tabular-nums;color:var(--app-tinte)}
.ffn .ks-kat-zu .ic{width:14px;height:14px;color:#A39B8A}

/* Rezeptkarte */
.ffn .ks-rezept{display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:12px;margin-top:auto;padding:8px 10px 8px 8px;border-radius:16px;background:var(--app-karte);
  box-shadow:0 0 0 1px var(--app-kante),0 10px 22px -14px rgba(60,50,30,.4)}
.ffn .ks-rezept img{width:62px;height:62px;border-radius:12px;object-fit:cover}
.ffn .ks-rezept small{display:block;font-size:.66rem;font-weight:650;color:var(--app-gruen-tief);text-transform:uppercase;letter-spacing:.04em}
.ffn .ks-rezept b{display:block;font-size:.95rem;color:var(--app-tinte)}
.ffn .ks-rezept em{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:3px;font-style:normal;font-size:.7rem;font-weight:600;color:#6B6455}
.ffn .ks-rezept em i{font-style:normal;padding:1px 6px;border-radius:999px;color:#fff;font-weight:700}
.ffn .ks-rezept em i.rot{background:#EF4444}.ffn .ks-rezept em i.gelb{background:#F59E0B}
.ffn .ks-rezept-los{padding:8px 12px;border-radius:12px;background:var(--app-gruen);color:#fff;font-size:.78rem;font-weight:750;box-shadow:0 3px 0 var(--app-gruen-tief)}

/* Assistent mit Chami */
.ffn .ks-chat-kopf{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 8px;border-radius:20px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante)}
.ffn .ks-profil{flex:none;display:grid;place-items:end center;width:42px;height:42px;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 35%,#DCFCE7,#86EFAC);box-shadow:0 0 0 2px #fff,0 0 0 4px #BBF7D0}
.ffn .ks-profil img{width:86%;height:auto;margin-bottom:-14%}
.ffn .ks-profil.klein{width:26px;height:26px;box-shadow:none}
.ffn .ks-chat-kopf b{display:block;font-size:.92rem}
.ffn .ks-chat-kopf small{display:flex;align-items:center;gap:5px;font-size:.68rem;font-weight:600;color:#6B6455}
.ffn .ks-chat-kopf small i{width:7px;height:7px;border-radius:50%;background:var(--app-gruen)}
.ffn .ks-chat-kopf .ks-mik{margin-left:auto}
.ffn .ks-foto-msg{align-self:flex-end;position:relative;width:46%;border-radius:16px 16px 6px 16px;overflow:hidden;box-shadow:0 0 0 3px var(--ds-knopf,#15803D)}
.ffn .ks-foto-msg img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.ffn .ks-foto-msg span{position:absolute;left:0;right:0;bottom:0;padding:4px 8px;background:var(--ds-knopf,#15803D);color:#fff;font-size:.66rem;font-weight:700}
.ffn .ks-antwortblase{align-items:flex-start}
.ffn .ks-antwortblase b{color:var(--app-gruen-tief)}
.ffn .ks-knoepfe{display:flex;gap:6px}
.ffn .ks-knoepfe span{padding:6px 12px;border-radius:999px;background:var(--app-karte);box-shadow:0 0 0 1px var(--app-kante);font-size:.72rem;font-weight:700;color:#4B463B}
.ffn .ks-knoepfe .ja{background:var(--app-gruen);color:#fff;box-shadow:0 3px 0 var(--app-gruen-tief)}
.ffn .ks-essen .ks-loesung{gap:9px}
@media (prefers-reduced-motion:no-preference){
  .ffn .ks-karte.spielt .ks-kat-kopf::after{animation:ks-balken .8s cubic-bezier(.16,1,.3,1) calc(var(--ks-wechsel) + .4s) both}
  .ffn .ks-karte.spielt .ks-rezept{animation:ks-plopp .5s cubic-bezier(.3,1.6,.5,1) calc(var(--ks-wechsel) + 1.1s) both}
  .ffn .ks-karte.spielt .ks-profil{animation:ks-orb 1.6s ease-in-out calc(var(--ks-wechsel) + .2s) 1}
}
@media(max-width:959px){
  .ffn .ks{--ks-h:390px}
  .ffn .ks-vliste em .ks-markt{font-size:.58rem;padding:2px 5px}
  .ffn .ks-foto-msg{width:52%}
}
@media(min-width:960px){.ffn .ks{--ks-h:380px}}
/* Feinschliff 21.11. spaet: nichts in der Buehne darf schrumpfen, Haushaltsbuch und Chat kompakter */
.ffn .ks-ebene > *{flex:none}
.ffn .ks-geld .ks-loesung{gap:9px}
.ffn .ks-kat-produkte li{padding:5px 12px 5px 20px}
.ffn .ks-kat-zu{flex-direction:row}
.ffn .ks-kat-zu li{flex:1;padding:7px 10px;font-size:.74rem}
.ffn .ks-foto-msg{width:38%}
.ffn .ks-geteilt{display:flex;align-items:center;gap:8px;padding:0 4px;font-size:.72rem;font-weight:650;color:#6B6455}
.ffn .ks-geteilt .ks-leute{margin-left:auto}
.ffn .ks-geteilt .ks-leute i{border-color:var(--app-creme)}
@media(max-width:959px){
  .ffn .ks-kat-zu{flex-direction:column}
  .ffn .ks-foto-msg{width:44%}
}
@media(max-width:959px){
  .ffn .ks-kat-produkte li{grid-template-columns:1fr auto;padding:5px 12px;font-size:.74rem}
  .ffn .ks-kat-produkte img{display:none}
  .ffn .ks-kat-produkte span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ffn .ks-kat-zu li + li{display:none}
  .ffn .ks-rezept{grid-template-columns:56px 1fr}
  .ffn .ks-rezept img{width:56px;height:56px}
  .ffn .ks-rezept-los{display:none}
}

/* ═══ Bon-Stapel (22.11.) ═══ Jede Karte ist ein Kassenbon: Papier mit Zackenkante oben und unten (Maske auf ::before,
   Schatten per drop-shadow folgt der Kante), Kopf "Bon Nr." mit Strichcode, gestrichelte Trennlinie zum Text.
   Die Karten stapeln sich beim Scrollen (position:sticky, Hoehe je Karte setzt ds/ff-kennst.js als --ks-top),
   die neue fliegt leicht gedreht rein (--rein), die verdeckte schrumpft etwas (--zu). Die Chips bleiben oben stehen.
   Ohne Skript: Karten liegen untereinander, ohne Bewegung. */
.ffn .ks{--ks-nav:76px;--ks-papier:#FFFDF7;--ks-naht:#E2D9C6}
@media (min-width:960px){.ffn .ks{--ks-nav:96px}}

/* Chips als schwebende Leiste, am Handy in einer Zeile zum Wischen */
.ffn .ks-chips{position:sticky;top:var(--ks-nav);z-index:30;flex-wrap:nowrap;justify-content:flex-start;gap:6px;width:fit-content;max-width:100%;
  margin:22px auto 26px;padding:6px;box-sizing:border-box;overflow-x:auto;scrollbar-width:none;border-radius:999px;
  background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);
  box-shadow:0 0 0 1px rgba(17,24,39,.06),0 14px 30px -18px rgba(17,24,39,.35)}
.ffn .ks-chips::-webkit-scrollbar{display:none}
.ffn .ks-chip{flex:none;min-height:40px;padding:0 14px;border:0;background:transparent;white-space:nowrap}
.ffn .ks-chip:hover{background:color-mix(in srgb,var(--c) 8%,#fff)}
.ffn .ks-chip.an{background:var(--c);color:#fff;border:0}
.ffn .ks-chip.an::before{background:#fff}

/* Liste als Stapel */
.ffn .ks-liste{display:block;margin:0;padding:0 0 4px;overflow:visible}
.ffn .ks-punkte{display:none}
.ffn .ks-karte{position:sticky;top:var(--ks-top,calc(var(--ks-nav) + 70px));max-width:560px;margin:0 auto 34px;padding:12px 0 16px;
  background:none;border:0;border-radius:0;box-shadow:none;overflow:visible;isolation:isolate;transform-origin:50% 0;
  filter:drop-shadow(0 1px 1px rgba(60,50,30,.12)) drop-shadow(0 16px 24px rgba(60,50,30,.16))}
.ffn .ks-karte::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#FFFEFA,var(--ks-papier) 40%,#FBF6EA);
  -webkit-mask:linear-gradient(#000 0 0) center/100% calc(100% - 16px) no-repeat,
    conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) top/16px 8px repeat-x,
    conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/16px 8px repeat-x;
  mask:linear-gradient(#000 0 0) center/100% calc(100% - 16px) no-repeat,
    conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) top/16px 8px repeat-x,
    conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/16px 8px repeat-x}
.ffn .ks-karte.ziel{box-shadow:none;filter:drop-shadow(0 0 10px color-mix(in srgb,var(--ks-f) 60%,transparent)) drop-shadow(0 16px 24px rgba(60,50,30,.16))}

/* Kopf des Bons */
.ffn .ks-bon-kopf{display:flex;align-items:center;gap:10px;height:34px;margin:0 18px 12px;padding-bottom:10px;border-bottom:2px dashed var(--ks-naht);box-sizing:border-box;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#8A8272}
.ffn .ks-bon-kopf b{font-weight:800;color:var(--ks-f)}
.ffn .ks-bon-kopf b::before{content:"·";margin-right:10px;color:#C9BFAB}
.ffn .ks-strichcode{margin-left:auto;width:62px;height:16px;opacity:.6;
  background:repeating-linear-gradient(90deg,#3B362C 0 2px,#0000 2px 3px,#3B362C 3px 4px,#0000 4px 7px,#3B362C 7px 10px,#0000 10px 11px,#3B362C 11px 12px,#0000 12px 14px)}

/* Buehne und Text auf dem Papier */
.ffn .ks-karte .ks-buehne{margin:0 12px}
.ffn .ks-text{margin:16px 18px 0;padding:16px 44px 6px 2px;border-top:2px dashed var(--ks-naht)}
.ffn .ks-wieder{top:calc(var(--ks-h) + 80px);right:16px}
.ffn .ks-echt{width:calc(100% + 30px)}

@media (min-width:960px){
  .ffn .ks-karte{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-template-rows:auto 1fr;max-width:1000px;padding:14px 0 20px;margin-bottom:40px}
  .ffn .ks-bon-kopf{grid-column:1 / -1;margin:0 24px 14px}
  .ffn .ks-karte .ks-buehne{grid-column:1;margin:0 0 0 20px}
  .ffn .ks-text{grid-column:2;display:flex;flex-direction:column;justify-content:center;margin:0 0 0 26px;padding:8px 64px 8px 30px;border-top:0;border-left:2px dashed var(--ks-naht)}
  .ffn .ks-text h3{font-size:1.65rem;line-height:1.12;letter-spacing:-.03em}
  .ffn .ks-antwort{font-size:1.02rem}
  .ffn .ks-wieder{top:70px;right:22px}
  .ffn .ks-echt{width:100%}
}

/* Bewegung im Stapel (Werte setzt das Skript) */
.ffn .ks-karte:nth-child(odd){--dreh:-3deg}
.ffn .ks-karte:nth-child(even){--dreh:2.5deg}
@media (prefers-reduced-motion:no-preference){
  .ffn .ks-stapel .ks-karte{transform:translateY(calc((1 - var(--rein,1)) * 70px)) rotate(calc((1 - var(--rein,1)) * var(--dreh))) scale(calc(1 - var(--zu,0) * .06));will-change:transform}
  .ffn .ks-stapel .ks-karte > :not(.ks-wieder){transition:opacity .2s linear;opacity:calc(1 - var(--zu,0) * .45)}
}

/* Bon-Stapel am Handy: Karte so kompakt, dass sie zwischen Chips und Warteliste-Knopf passt */
.ffn .ks{overflow-x:clip}
@media (max-width:959px){
  .ffn .ks-karte{padding:10px 0 12px;margin-bottom:28px}
  .ffn .ks-bon-kopf{height:28px;margin:0 16px 10px;padding-bottom:7px;font-size:.66rem}
  .ffn .ks-strichcode{height:13px}
  .ffn .ks-text{margin:12px 16px 0;padding:12px 40px 2px 2px}
  .ffn .ks-text .ks-thema{display:none}
  .ffn .ks-text h3{margin-top:0;font-size:1.12rem}
  .ffn .ks-antwort{margin-top:8px;font-size:.9rem;line-height:1.4}
  .ffn .ks-echt{width:100%;min-height:44px;margin-top:10px;padding:6px 12px;border-radius:12px;box-sizing:border-box}
  .ffn .ks-echt-handy{display:none}
  .ffn .ks-echt-tx{flex-direction:row;align-items:baseline;gap:6px}
  .ffn .ks-echt-tx b{font-size:.84rem}
  .ffn .ks-echt-tx small{font-size:.76rem}
  .ffn .ks-wieder{top:calc(var(--ks-h) + 58px);right:14px;width:34px;height:34px}
}
@media (max-width:959px){.ffn .ks-echt-tx b{display:none}.ffn .ks-echt-tx small{font-size:.84rem}}
