/* Vokumi · Foto-Magie (fotoscan.js): Blatt → Kartenstapel → Topf */
.fsOverlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 90% at 50% 0%, #f4fbf6 0%, #e7f4ec 60%, #d9eee1 100%);
  animation: fsIn 220ms ease-out;
  overflow: hidden;
}
@keyframes fsIn { from { opacity: 0; } }
.fsStage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 16px;
  align-items: center;
  width: min(560px, 100%);
}
.fsSheet {
  --fs-h: 260px;
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 160px;
  max-height: 340px;
  padding: 14px 14px 18px;
  border-radius: 6px 18px 18px 6px;
  background: repeating-linear-gradient(180deg, #fffdf6 0 29px, #e9eef9 29px 30px);
  box-shadow: 0 14px 34px rgba(30, 60, 40, 0.18), inset 4px 0 0 #f0b9a8;
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.fsBeam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26px;
  background: linear-gradient(180deg, rgba(63, 157, 93, 0), rgba(63, 157, 93, 0.35), rgba(63, 157, 93, 0));
  pointer-events: none;
}
.fsLine {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  flex: none;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1d2b24;
  transition: opacity 200ms ease-out;
}
.fsLine .fsA { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsLine .fsB { color: #3f6d55; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsLine.fsFlown { opacity: 0.18; }
.fsFly {
  position: fixed;
  z-index: 2;
  margin: 0;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}
.fsMore { font-size: 13px; color: #5d7066; font-weight: 700; padding: 0 8px; }
.fsRight { display: grid; justify-items: center; gap: 14px; }
.fsDeck { position: relative; width: 84px; height: 108px; }
.fsCard {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #cfe6d7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.fsCard.c2 { transform: rotate(-6deg) translate(-4px, 3px); }
.fsCard.c3 { transform: rotate(7deg) translate(5px, 4px); }
.fsCount {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  color: #247a4c;
  font-variant-numeric: tabular-nums;
}
.fsPot { width: 88px; height: 88px; transition: transform 420ms cubic-bezier(.3, 1.4, .5, 1); }
.fsDone .fsPot { transform: translateY(-40px) scale(1.35); }
.fsDone .fsDeck { opacity: 0; }
.fsPot .fsBud { transform: scale(0); transform-origin: 32px 17px; }
.fsPot.fsGrow .fsBud { animation: fsBud 420ms 700ms cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes fsBud { to { transform: scale(1); } }
.fsCalm .fsBud { transform: none; animation: none !important; }
.fsPot svg { width: 100%; height: 100%; overflow: visible; }
.fsPot .fsSprout { stroke-dasharray: 90; stroke-dashoffset: 90; }
.fsPot.fsGrow .fsSprout { animation: fsSprout 900ms cubic-bezier(.3, 1.3, .5, 1) forwards; }
.fsPot.fsGrow { animation: fsPotHop 500ms ease-out; }
@keyframes fsSprout { to { stroke-dashoffset: 0; } }
@keyframes fsPotHop { 30% { transform: translateY(-8px); } 60% { transform: translateY(0) scaleY(.94); } }
.fsText { display: grid; justify-items: center; gap: 8px; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 260ms ease-out, transform 260ms ease-out; }
.fsDone .fsText { opacity: 1; transform: none; }
.fsTitle { margin: 0; font-size: 22px; font-weight: 800; color: #1d2b24; }
.fsSub { margin: 0; color: #4b6457; font-weight: 600; }
.fsActs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.fsActs .fsGo { min-height: 52px; }
.fsCalm .fsSheet { transform: none; }
.fsCalm .fsPot .fsSprout { stroke-dashoffset: 0; }
.fsCalm .fsLine { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fsOverlay, .fsPot.fsGrow, .fsPot.fsGrow .fsSprout { animation: none !important; }
  .fsPot .fsSprout { stroke-dashoffset: 0; }
}
@media (max-width: 420px) {
  .fsStage { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
  .fsDeck { width: 70px; height: 92px; }
}
/* Pflanze aus dem Garten (Stufe „Keim“) statt des einfachen Topfs */
.fsPlantPic { width: 100%; height: 100%; transform: scale(.25); opacity: 0; transform-origin: 50% 100%; }
.fsPlantPic svg { width: 100%; height: 100%; }
.fsPot.fsGrow .fsPlantPic { animation: fsPop 700ms cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes fsPop { to { transform: none; opacity: 1; } }
.fsCalm .fsPlantPic { transform: none; opacity: 1; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .fsPlantPic { transform: none; opacity: 1; } }
/* z31: Midjourney-Topf statt gezeichnetem Gesichts-Topf */
.fsPot.fsArtPot { width: 96px; height: 120px; display: grid; place-items: end center; }
.fsPot.fsArtPot .vPot { height: 120px; width: auto; }

/* ===== z60g: EIN Foto-Knopf – Ablauf Foto → Erkennung → „Stimmt's?“ → Ziel (foto.js) ===== */
.fotoBtnWrap { display: grid; gap: 6px; margin: 8px 0 12px; }
#journeyHub .fotoBtn { width: 100%; min-height: 56px; font-size: 1.1rem; }
#journeyHub .fotoBtn.fotoBig { min-height: 64px; font-size: 1.25rem; }
.fotoHint { margin: 0; font-size: 0.9rem; }
.fotoCard { background: #fff; border: 1px solid #e4ece7; border-radius: 18px; padding: 16px; display: grid; gap: 12px; justify-items: center; }
.fotoCard .fotoKumi { width: 96px; height: 96px; }
.fotoCard .fotoBtnWrap { width: 100%; margin: 0; }
.fotoSubjLine { margin: 0; font-weight: 700; color: #3f5148; }
.fotoLockText { margin: 0; font-size: 1.05rem; line-height: 1.45; text-align: center; }
.fotoThumbs { justify-content: center; }
.fotoConsent { width: 100%; }
.fotoStatus { margin: 0; text-align: center; }
.fotoPic { position: relative; width: min(100%, 260px); }
.fotoPic img { width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid #e4ece7; display: block; }
.fotoKindBadge { position: absolute; right: -8px; bottom: -8px; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid #e4ece7; display: grid; place-items: center; font-size: 26px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.fotoSentence { margin: 6px 0 0; font-size: 1.15rem; font-weight: 700; text-align: center; line-height: 1.4; }
.fotoYoung .fotoSentence { font-size: 1.3rem; }
.fotoSure { margin: 0; font-size: 1.1rem; text-align: center; }
.fotoYesNo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
#journeyHub .fotoYesNo button { min-height: 56px; margin: 0; width: 100%; }
.fotoYoung .fotoYesNo { grid-template-columns: 1fr; }
#journeyHub .fotoYoung .fotoYesNo button { min-height: 56px; height: 56px; font-size: 1.15rem; } /* z60r F3: Hauptknöpfe überall 56 px */
#journeyHub .fotoRead { min-height: 44px; }
.fotoQ { margin: 4px 0 0; font-size: 1.05rem; justify-self: start; }
.fotoKinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
#journeyHub .fotoKind { display: grid; justify-items: center; gap: 4px; min-height: 76px; padding: 8px 4px; border: 2px solid #cfe3d8; border-radius: 14px; background: #fff; color: #1f2b24; font: inherit; font-weight: 700; font-size: 0.82rem; line-height: 1.15; text-align: center; margin: 0; }
#journeyHub .fotoKind.on { border-color: #2f6fb5; background: rgba(47,111,181,.12); }
.fotoKindIcon { font-size: 28px; line-height: 1; }
.fotoYoung .fotoKinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#journeyHub .fotoYoung .fotoKind { min-height: 92px; font-size: 0.95rem; }
.fotoSubjects { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
#journeyHub .fotoSubj { min-height: 44px; padding: 6px 14px; border-radius: 22px; border: 2px solid #cfe3d8; background: #fff; color: #1f2b24; font: inherit; font-weight: 700; margin: 0; }
#journeyHub .fotoSubj.on { border-color: #2f6fb5; background: rgba(47,111,181,.12); }
.fotoOther { width: 100%; }
#journeyHub .fotoGo { width: 100%; min-height: 52px; }
#journeyHub .fotoAgain { min-height: 44px; }
.fotoActs { width: 100%; }
@media (min-width: 700px) { .fotoCard { max-width: 640px; margin: 0 auto; } .fotoKinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.anFlow .fotoH1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* z60h: nur der (versteckte) Titel → kein leerer Kasten über dem Ablauf */
body.anFlow .vHeading:has(> .fotoH1:only-child) { display: contents; }
/* z60m (Punkt 10): Kumi erinnert vor jeder Arbeit ans Abdecken von Note und Namen */
.fotoCover { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 10px 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff7e6; border: 2px solid #e8c27a; color: #3b2a10; text-align: left; }
.fotoCover .fotoCoverKumi { width: 56px; height: 56px; flex: 0 0 56px; }
.fotoCover .fotoCoverText { flex: 1 1 180px; margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.fotoCover .fotoCoverRead, .fotoCover .fotoCoverAgain { min-height: 44px; }
.fotoCover .fotoCoverAgain { flex-basis: 100%; }
.fotoCover[hidden] { display: none; }

/* z60m (Nachtrag 21a + Punkt 17): Arten als Zeilen untereinander, Bild 64 px links (object-fit: contain, 2× Auflösung) */
.fotoKinds, .fotoYoung .fotoKinds { display: flex !important; flex-direction: column; gap: 8px; width: 100%; max-width: 640px; }
@media (min-width: 700px) { .fotoKinds { grid-template-columns: none; } }
#journeyHub .fotoKind, #journeyHub .fotoYoung .fotoKind { display: grid; grid-template-columns: 64px minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 6px 12px; text-align: left; border: 1px solid var(--calm-line, #e3e0d8); font-size: 1.05rem; font-weight: 700; }
#journeyHub .fotoKind.on { border: 2px solid #2f6fb5; }
.fotoKindArt { width: 64px; height: 64px; object-fit: contain; display: block; font-size: 0; }
.fotoFound { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.fotoFoundArt { width: 64px; height: 64px; object-fit: contain; flex: none; }
/* z60n (Punkt 19): ruhiges Warten – Kumi wiegt sich sanft, ohne Zahlen */
.fotoCard .fotoWait { animation: fotoSway 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes fotoSway { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .fotoCard .fotoWait { animation: none; } }
.fotoWaitText { font-size: 1.05rem; color: #3f5148; }
/* z60n (Punkt 8): Kumi-Sätze statt technischer Meldungen */
.fotoSay { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.45; text-align: center; color: #1f2b24; }
.fotoTooMany { margin: 0; padding: 8px 12px; border-radius: 12px; background: #f4efe2; color: #3d3320; font-weight: 700; text-align: center; width: 100%; box-sizing: border-box; }
#journeyHub .fotoRetry, #journeyHub .fotoSelf { width: 100%; min-height: 52px; margin: 0; }
.fotoErr .fotoActs, .fotoUnsure .fotoSelf { display: grid; gap: 10px; }
/* z60n (Punkt 20): zwei Bild-Knöpfe */
.fotoAsk { margin: 0; }
.fotoKinds.fotoTwo { grid-template-columns: 1fr 1fr; }
#journeyHub .fotoTwo .fotoKind { min-height: 112px; font-size: 1rem; }
/* z60n (Punkt 18): Seite mit Zifferntasten */
.fotoPageL { display: grid; grid-template-columns: auto 6.5em; align-items: center; gap: 10px; justify-self: start; font-weight: 700; }
.fotoPage { min-height: 44px; font-size: 1.1rem; text-align: center; }
/* z60n (Punkt 1): „Stimmen die Wörter?“ */
.fotoWords { justify-items: stretch; }
.fotoWordList { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fotoWordHead { margin: 8px 0 0; font-weight: 800; color: #3f5148; }
.fotoWord { display: flex; gap: 6px; align-items: stretch; }
#journeyHub .fotoWordBtn { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; min-height: 48px; margin: 0; padding: 8px 12px; border: 1px solid #e4ece7; border-radius: 12px; background: #fff; color: #1f2b24; font: inherit; font-size: 1.05rem; text-align: left; }
.fotoWordA { font-weight: 800; overflow-wrap: anywhere; }
.fotoWordB { color: #3f5148; overflow-wrap: anywhere; }
#journeyHub .fotoWord.unsure .fotoWordBtn { background: #fff4c7; border-color: #e0b84a; }
#journeyHub .fotoHear { min-width: 48px; min-height: 48px; margin: 0; padding: 0; font-size: 1.2rem; }
.fotoWord.editing { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border: 2px solid #2f6fb5; border-radius: 12px; }
.fotoEditA, .fotoEditB { min-height: 44px; font-size: 1.05rem; }
.fotoEditActs { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
#journeyHub .fotoEditActs button { min-height: 44px; margin: 0; }
.fotoWordsMore { margin: 4px 0 0; }
.fotoWordsBar { position: sticky; bottom: calc(var(--an-tabbar, 64px) + var(--an-safe-b, 0px) + 8px); z-index: 3; padding: 10px 0 2px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 30%); }
body.anFlow .fotoWordsBar { bottom: calc(var(--an-safe-b, 0px) + 8px); }
#journeyHub .fotoWordsGo { width: 100%; min-height: 56px; margin: 0; font-size: 1.15rem; }
/* z60n (Punkt 1): Rückfall-Scanner für Kl. 1–4 – „Liste 2 Spalten“, keine Balken, keine Sprachauswahl */
body.scanSimple #cropHandles, body.scanSimple #divider, body.scanSimple #divider2, body.scanSimple .cropHelp, body.scanSimple .cropFine, body.scanSimple label[for="layout"], body.scanSimple #layout, body.scanSimple .languagePair, body.scanSimple #aiVocabTip { display: none !important; }
.fotoWordsQ { margin: 0; font-size: 1.25rem; justify-self: start; }
.fotoWordsLead { margin: 0; color: #3f5148; line-height: 1.4; }
.fotoHearGap { flex: 0 0 48px; }
.fotoMore .fotoActs { justify-content: center; } /* z60o: „Noch eine Seite?“ – Knöpfe mittig unter dem Bild */
/* z60q (Scan 6): Bildwörter – das ergänzte deutsche Wort ist beschriftet; Lernwörter haben nur eine Spalte */
.fotoWordAdded { grid-column: 1 / -1; justify-self: start; padding: 2px 8px; border-radius: 999px; background: #f6dd8a; color: #5a4300; font-size: .85rem; font-weight: 700; }
#journeyHub .fotoLw .fotoWordBtn { grid-template-columns: 1fr; font-family: Andika, inherit; font-size: 1.2rem; }

/* z60q Scan 10: Fotoqualität – Kumis Satz, „Noch einmal“ (Haupt-Knopf), „Trotzdem nehmen“ (Link) */
#journeyHub .fotoQuality { display: grid; gap: 12px; justify-items: stretch; }
#journeyHub .fotoQualityImg { justify-self: center; max-width: 160px; max-height: 200px; border-radius: 12px; border: 1px solid var(--fu-e3e8e5, #e3e8e5); object-fit: cover; }
#journeyHub .fotoQualityMsg { margin: 0; font-size: 1.15rem; line-height: 1.5; font-weight: 700; }
#journeyHub .fotoQualityAnyway { justify-self: stretch; width: 100%; box-sizing: border-box; min-height: 48px; } /* z60z-2 (H4): kartenbreit wie alle Nebenknöpfe */

/* z60r (Layout-Abnahme z60q F7): „Stimmen die Wörter?“ – jede Zeile über die volle Kartenbreite, der Lautsprecher (48 px)
   steht rechts IN der Zeile (nicht daneben); Zeilen ohne Lautsprecher reichen genauso weit. */
#journeyHub .fotoWord:not(.editing) { display: flex; align-items: center; gap: 0; border: 1px solid #e4ece7; border-radius: 12px; background: #fff; }
#journeyHub .fotoWord.unsure:not(.editing) { background: #fff4c7; border-color: #e0b84a; }
#journeyHub .fotoWord:not(.editing) .fotoWordBtn { border: 0; background: transparent; border-radius: 12px; }
#journeyHub .fotoWord .fotoHear { flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; margin: 0 4px 0 0; display: grid; place-items: center; }
#journeyHub .fotoWord .fotoHear .vSym, #journeyHub .fotoWord .fotoHear svg { width: 22px; height: 22px; }
#journeyHub .fotoWord:not(.editing) .fotoHearGap { display: block; flex: 0 0 52px; } /* gleiche Spalten wie Zeilen mit Lautsprecher */
/* F7: Haupt- und Nebenknopf nach dem Foto überall gleich – volle Breite, untereinander (Vokabeln, Buchseite, Heftseite) */
#journeyHub .fotoWordsBar { display: grid; gap: 10px; }
#journeyHub .fotoWordsBar > button, #journeyHub .fYoungActs > button { width: 100%; min-height: 56px; margin: 0; }
#journeyHub .fYoungActs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
/* F7: gleiche Höhen auf allen drei Ergebnis-Bildschirmen – Hauptknopf 56 px, Nebenknopf 48 px (--h-main / --h-side) */
#journeyHub .fotoWordsBar > button.primary, #journeyHub .fYoungActs > button.primary { min-height: 56px; height: 56px; }
#journeyHub .fotoWordsBar > button.secondary, #journeyHub .fYoungActs > button.secondary { min-height: 48px; height: 48px; }

/* z60r-2 N2: von Kumi verbessertes Wort – klein und ruhig, was im Heft stand; darüber ein ruhiger Satz (kein Rot, kein Lob) */
/* z60r-2 N2 (Grafik Abschnitt 6): Hinweis oben und „Im Heft: …“ in der Wortzeile – ruhig, ohne Rot, ohne Durchstreichen */
#journeyHub .fotoWordsFixed { display: flex; align-items: center; gap: 10px; min-height: 48px; box-sizing: border-box; margin: 0 0 8px; padding: 12px 16px; border-radius: 14px; background: var(--c-hint-bg, #EEF4FB); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--c-text, #1F2A24); }
#journeyHub .fotoWordsFixed .fotoFixSym { width: 20px; height: 20px; flex: 0 0 auto; color: var(--c-hint-line, #2F6FB5); }
#journeyHub .fotoWordFixed { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sub, 14px); font-weight: 400; font-style: normal; text-decoration: none; color: var(--c-text-soft, #4A5750); }
#journeyHub .fotoWordFixed .fotoFixSym { width: 14px; height: 14px; flex: 0 0 auto; }
#journeyHub .fotoWord.fixed { min-height: 48px; }
#journeyHub .fotoWord.fixed .fotoHear { align-self: center; }
/* z60z (Punkt 5): Foto-Anleitung in der Rückfrage – drei kurze Zeilen mit Häkchen */
#journeyHub .fotoTips { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
#journeyHub .fotoTips li { position: relative; padding-left: 28px; line-height: 1.45; overflow-wrap: anywhere; }
#journeyHub .fotoTips li::before { content: "✓"; position: absolute; left: 4px; top: 0; font-weight: 700; color: var(--area-ink, #17693a); }
