/* Existing discovery, photo, art and learning families: larger scenes, stable controls. */
.aufbau--scenic .aufbau__buehne{position:relative;isolation:isolate;overflow:hidden;padding:0;background-color:#d9e8df;background-position:center;background-size:cover;border:3px solid #9fb8c9;box-shadow:0 8px 22px #203a5820}
.aufbau--scenic .aufbau__gruppe{display:block;position:absolute;inset:0;height:100%}.aufbau--scenic .aufbau__motiv{position:absolute;display:flex;width:20%;height:29%;padding:0;background:none;border-radius:0;filter:drop-shadow(0 8px 6px #20354c35);animation:refresh-object-arrive .45s cubic-bezier(.2,.8,.2,1) both}
.aufbau--scenic .aufbau__motiv img{width:100%;height:100%;max-height:none;object-fit:contain}.aufbau--scenic[data-scene-motion=float] .aufbau__motiv img{animation:refresh-object-float 5s ease-in-out infinite;animation-delay:var(--object-delay,0s)}
.aufbau__progress{display:block;flex:none;appearance:none;width:100%;height:10px;border:0;border-radius:99px;accent-color:#488477;background:#e2eaf1;overflow:hidden}.aufbau__progress::-webkit-progress-bar{background:#e2eaf1}.aufbau__progress::-webkit-progress-value{background:linear-gradient(90deg,#5290a1,#86bfa5);border-radius:99px}
.aufbau--complete .aufbau__buehne{border-color:#7fae82;box-shadow:0 0 0 4px #aed5a938,0 8px 22px #203a5820}
@keyframes refresh-object-arrive{from{opacity:0;transform:translateY(-20%) scale(.65)}to{opacity:1;transform:none}}@keyframes refresh-object-float{50%{transform:translateY(-8%) rotate(3deg)}}
.signalspiel__ziel{position:relative;background:radial-gradient(ellipse at 50% 15%,#38577b,#172c4a);isolation:isolate;box-shadow:inset 0 0 0 1px #ffffff1a,0 8px 24px #152b4820;overflow:hidden}.signalspiel__ziel:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 15% 80%,#779fc622,transparent 40%),radial-gradient(circle at 85% 20%,#779fc633,transparent 35%)}
.signalspiel__ampel{display:flex;flex-direction:column;justify-content:center;gap:clamp(10px,2vh,22px);padding:clamp(12px,2vw,24px);border:3px solid #627a93;border-radius:28px;background:#142337;box-shadow:0 10px 0 #0d1b2d;flex:none}.signalspiel__lampe{width:clamp(28px,5vw,70px);aspect-ratio:1;border-radius:50%;background:#384c62;border:2px solid #50647d;box-shadow:inset 0 3px 6px #07152366}
.signalspiel__ampel[data-phase="0"] .signalspiel__lampe:nth-child(1),.signalspiel__ampel[data-phase="3"] .signalspiel__lampe:nth-child(1){background:#ed8c83;border-color:#f6cbc2;box-shadow:0 0 20px #ea6c4f44}.signalspiel__ampel[data-phase="1"] .signalspiel__lampe:nth-child(2){background:#f2d078;border-color:#ffe4ac;box-shadow:0 0 20px #f4c24e55}.signalspiel__ampel[data-phase="2"] .signalspiel__lampe:nth-child(3){background:#8ddaaf;border-color:#bbf2d1;box-shadow:0 0 24px #6dde9c66}
.signalspiel__ziel--los{background:radial-gradient(ellipse at 50% 15%,#387767,#1d5247);border-color:#a7d6bf}.signalspiel__ziel img{width:min(42%,420px);height:65%;max-height:none;filter:drop-shadow(0 12px 9px #102d3d35)}.signalspiel__wort{min-width:170px;text-align:center;font-size:clamp(34px,6vw,84px)}
.learning-refresh{position:relative}.learning-progress{display:flex;flex:none;justify-content:center;gap:7px;padding:3px 0 8px;min-height:27px}.learning-progress__stop{display:flex;justify-content:center;align-items:center;width:28px;height:28px;box-sizing:border-box;border:2px solid #c4d2df;border-radius:50%;background:#f2f6fa;color:#60768b;font-size:12px;font-weight:800}.learning-progress__stop.is-complete{background:#558779;border-color:#558779;color:#fff}
.learning-refresh .denkbild{position:relative;background:linear-gradient(#f5f9f6e8,#f5f9f6e8),var(--activity-scenery,none) center/cover;border:2px solid #ccdbdf;box-shadow:0 8px 22px #19355115;isolation:isolate;overflow:hidden}.learning-refresh .denkbild__motiv{max-width:88%;height:78%;filter:drop-shadow(0 10px 8px #23465f20)}.learning-refresh .denkbild strong{padding:5px 18px;border-radius:99px;background:#ffffffdd;color:#274c6b;font-size:clamp(18px,2.4vw,32px)}
.learning-refresh .sortier__mini{width:clamp(50px,7vw,90px);height:clamp(50px,7vw,90px)}.learning-refresh .brettspiel__panel .kunst-knopf:has(.sortier__mini)>svg{display:none}.learning-refresh .brettspiel__panel .kunst-knopf:has(.sortier__mini){min-height:110px;border-radius:20px;background:linear-gradient(#fff,#eef4f7);border-color:#c7d8e4}
.learning-refresh .musterreihe{padding:18px;background:linear-gradient(#edf3f7ed,#edf3f7ed),var(--activity-scenery,none) center/cover;border-radius:24px;border:2px solid #cadae7;box-shadow:0 8px 22px #19355115;align-content:center;gap:12px;box-sizing:border-box}.learning-refresh .musterreihe img{height:clamp(75px,17vh,145px);background:#fffffff0;border:2px solid #d6e1eb;border-radius:18px;filter:drop-shadow(0 4px 4px #25405d15)}.learning-refresh .musterreihe__frage{min-height:clamp(75px,17vh,145px);border-radius:18px;background:#fff3d5;border:3px dashed #b39352;color:#876a2e;font-size:clamp(40px,6vw,70px)}
.learning-refresh--complete .musterreihe__frage{border-style:solid;background:#e0f2e5;border-color:#699d77;color:#357248}.learning-complete{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;gap:20px;background:radial-gradient(#f8fff9,#e1eee7);border-radius:18px;color:#356a51;text-align:center;padding:20px;box-sizing:border-box}.learning-complete svg{width:clamp(60px,12vw,150px);height:clamp(60px,12vw,150px);stroke-width:1.5}.learning-complete strong{font-size:clamp(22px,3vw,38px)}
.learning-refresh .wegebrett{background:linear-gradient(#8db5b873,#8db5b873),var(--activity-scenery,none) center/cover;box-shadow:0 10px 25px #203c5b20;border:3px solid #8ca9be;padding:8px;gap:5px}.learning-refresh .wegebrett__feld{background:#f6fcf0e8;border:1px solid #e1e8dd;box-shadow:inset 0 1px 0 #fff;border-radius:9px}.learning-refresh .wegebrett__mauer{background:linear-gradient(135deg,#3a5968,#253d4b);border:1px solid #2d4b5c;box-shadow:inset 0 3px 0 #65808a}.learning-refresh .wegebrett__ich{background:radial-gradient(circle at 30% 25%,#96d1fa,#3d82b8 60%,#275c88);border:3px solid #fff;box-shadow:0 3px 0 #1b4a70,0 5px 9px #18374c35}.learning-refresh .wegebrett__punkt{border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff0a1,#e4b43c);border:2px solid #a87b1c;box-shadow:0 3px 0 #87611655}.learning-refresh--complete .wegebrett{border-color:#609a71;box-shadow:0 0 0 4px #a6d4aa55,0 8px 24px #203c5b20}
.atelier__area{box-shadow:0 8px 24px #17345324;border:2px solid #344c6b}.atelier__meter{width:100%;height:9px;flex:none;accent-color:#5f9584;margin:0;border:0;border-radius:99px}.atelier__meter[hidden]{display:none}.atelier--foto .atelier__cell--deckel{background:linear-gradient(135deg,#426b8c,#294567);border:2px solid #a9c9df;color:#fff8e5;box-shadow:inset 0 1px 0 #ffffff33,0 3px 7px #0e203d26;position:relative;overflow:hidden;font-weight:800;transition:opacity .3s,scale .3s}.atelier--foto .atelier__cell--deckel:after{content:'';position:absolute;inset:7px;border:1px solid #ffffff20;border-radius:5px;pointer-events:none}.atelier--foto .atelier__cell--offen{scale:.9;opacity:0}.atelier--complete .atelier__area{border-color:#77a994;box-shadow:0 0 0 3px #b7dbc14d,0 8px 24px #17345324}@media(max-width:700px){.signalspiel__ziel{gap:12px;padding:16px}.signalspiel__ampel{padding:12px;gap:12px}.signalspiel__wort{min-width:0;width:100%;font-size:36px}.signalspiel__ziel img{width:60%;height:52%}.learning-progress{gap:5px}.learning-progress__stop{width:23px;height:23px;font-size:10px}.learning-refresh .brettspiel__panel .kunst-knopf:has(.sortier__mini){min-height:96px}.learning-refresh .sortier__mini{height:43px;width:60px}.learning-refresh .musterreihe{padding:10px;gap:7px}.learning-refresh .musterreihe img,.learning-refresh .musterreihe__frage{height:76px;min-height:76px}.learning-refresh .denkbild strong{font-size:20px}.aufbau--scenic .aufbau__motiv{width:22%;height:26%}.atelier__bar .kunst-knopf{gap:3px}}
@media(max-height:650px) and (min-width:701px){.signalspiel__ampel{padding:12px;gap:12px}.signalspiel__lampe{width:40px}.signalspiel__wort{font-size:48px}.learning-progress{padding-bottom:3px}.learning-progress__stop{width:22px;height:22px}.learning-refresh .brettspiel__panel .kunst-knopf:has(.sortier__mini){min-height:96px}.learning-refresh .sortier__mini{height:55px;width:65px}.learning-refresh .musterreihe img,.learning-refresh .musterreihe__frage{height:85px;min-height:85px}}
[data-activity-backgrounds="off"] .aufbau--scenic .aufbau__buehne{background-image:none!important}[data-activity-backgrounds="off"] .learning-refresh{--activity-scenery:none!important}
[data-activity-animations="off"] .aufbau__motiv,[data-activity-animations="off"] .aufbau__motiv img{animation:none!important}[data-activity-animations="off"] .atelier__cell{transition:none!important}
[data-theme=cvi] .learning-refresh .denkbild,[data-theme=cvi] .learning-refresh .musterreihe,[data-theme=cvi] .learning-refresh .wegebrett{background:#000;color:#fff;border-color:#fff}[data-theme=cvi] .learning-refresh .wegebrett__feld{background:#000;border-color:#fff}[data-theme=cvi] .learning-refresh .wegebrett__mauer{background:#fff}[data-theme=cvi] .learning-refresh .wegebrett__ich{background:#ffdf00;border-color:#000}[data-theme=cvi] .signalspiel__ziel{background:#000;border-color:#fff}
@media(prefers-reduced-motion:reduce){.aufbau__motiv,.aufbau__motiv img{animation:none!important}.atelier__cell{transition:none!important}}

.screen-runner .learning-refresh .musterreihe{height:100%;min-height:0;max-height:100%;align-self:stretch;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}.screen-runner .learning-refresh .musterreihe img,.screen-runner .learning-refresh .musterreihe__frage{height:100%;min-height:0;max-height:none}.screen-runner .learning-refresh .musterreihe img{min-width:0}
/* Core families: scenery stays behind high-contrast task objects. */
.core-refresh .core-progress{position:relative;flex:none;padding:6px 0 15px;font-size:14px;min-height:18px}.core-progress:before,.core-progress:after{content:'';position:absolute;left:0;bottom:0;height:7px;border-radius:99px}.core-progress:before{width:100%;background:#dce7ee}.core-progress:after{width:var(--core-progress,0%);background:linear-gradient(90deg,#4b809a,#79b69c);transition:width .25s}
.core-refresh .scan-prompt{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;line-height:1.3}.core-target-preview{width:clamp(44px,6vw,76px);height:clamp(44px,6vw,76px);object-fit:contain;padding:5px;background:#f0f5f8;border:2px solid #c9dce8;border-radius:18px;box-sizing:border-box}
.core-refresh .scan-grid{max-width:1120px!important;flex:1;min-height:0;align-content:stretch;align-items:stretch;gap:14px;margin:0 auto!important;padding:8px;box-sizing:border-box;background:linear-gradient(#f0f5f5e8,#f0f5f5e8),var(--activity-scenery,none) center/cover;border:2px solid #d5e2e9;border-radius:26px;overflow:hidden}
.core-refresh .scan-grid .scan-card{min-height:0!important;min-width:0;max-height:100%;gap:7px;padding:12px;border-radius:22px;border:2px solid #c4d8e6;background:#fffffff2;box-shadow:0 4px 0 #9cb4c229;overflow:hidden}.core-refresh .scan-grid .scan-card__emoji{display:flex;width:100%;height:100%;max-height:calc(100% - 30px);flex:1;min-height:0;min-width:0}.core-refresh .scan-grid .scan-card__img{width:100%;height:100%;max-height:none;object-fit:contain;filter:drop-shadow(0 5px 5px #294b6220)}.core-refresh .scan-grid .scan-card__label,.core-card-label{font-size:clamp(13px,1.7vw,22px);font-weight:750;line-height:1.2;max-width:100%;flex:none}.core-refresh .scan-grid .scan-card--leer{opacity:0;pointer-events:none}
.core-refresh .scan-grid .scan-card.core-answer--chosen{background:#e3f1e7;border-color:#619780;box-shadow:inset 0 0 0 3px #a0c8b1}.core-refresh .scan-grid .scan-card.core-answer--retry{border-color:#bd8e50;background:#fff1dc}
.core-memory .scan-card[data-open=false]{background:linear-gradient(135deg,#466a8d,#2f4e72);border-color:#abc4d9;color:#fff}.core-memory .scan-card__ruecken{display:block;position:relative;width:55%;height:65%;border:3px solid #cfdfed80;border-radius:25%;background:radial-gradient(circle,#b9d3e044 2px,transparent 3px) 0 0/17px 17px;box-shadow:inset 0 0 0 8px #ffffff0a}.core-memory .scan-card.memory-card--matched{background:#e1f0e7;border-color:#72a38a;opacity:.9}.core-memory .scan-card.memory-card--new{animation:refresh-memory-reveal .28s ease-out}@keyframes refresh-memory-reveal{from{transform:scaleX(.5);opacity:.5}to{transform:none;opacity:1}}
.core-refresh.scan-stage--sequence{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(250px,.42fr);grid-template-rows:auto minmax(0,1fr) auto;gap:12px;min-height:0}.core-refresh.scan-stage--sequence>.scan-prompt,.core-refresh.scan-stage--sequence>.scan-progress{grid-column:1/-1}.core-refresh.scan-stage--sequence .seq-output{display:grid!important;grid-template-columns:repeat(var(--sequence-columns,3),minmax(0,1fr));grid-template-rows:repeat(var(--sequence-rows,2),minmax(0,1fr));align-items:stretch!important;align-content:stretch;gap:12px!important;margin:0!important;padding:22px!important;height:100%;min-height:0!important;min-width:0;box-sizing:border-box;background:linear-gradient(#ffffff3b,#ffffff26),var(--activity-scenery,none) center/cover!important;border-radius:24px!important;border:2px solid #a8c2cf;box-shadow:0 10px 22px #1c3d5420;overflow:hidden}.core-refresh .seq-out-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:0;animation:refresh-object-arrive .35s ease-out;filter:drop-shadow(0 6px 6px #24445b35)}.core-refresh .seq-out-item .scan-card__img{width:100%;height:calc(100% - 30px);object-fit:contain;min-height:0}.seq-out-label{font-size:clamp(12px,1.5vw,20px);font-weight:800;padding:4px 12px;background:#ffffffe6;border-radius:99px;max-width:100%;box-sizing:border-box;line-height:1.2}.core-refresh.scan-stage--sequence .scan-grid{width:100%!important;height:100%;max-width:none!important;gap:8px;border-radius:20px;padding:6px;overflow:hidden}.core-refresh.scan-stage--sequence .scan-card{position:relative;padding:7px;border-radius:16px;gap:3px}.core-refresh.scan-stage--sequence .scan-card__emoji{max-height:calc(100% - 21px)}.core-refresh.scan-stage--sequence .core-card-label{font-size:13px}.seq-card-count{position:absolute;right:5px;top:5px;min-width:22px;height:22px;border-radius:50%;background:#2d6a5d;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;font-weight:800}.seq-card-count[hidden]{display:none}.core-refresh.scan-stage--sequence .scan-card[aria-pressed=true]{border-color:#5e927f;background:#e6f1e9}
.core-refresh.scan-stage--cause{background:linear-gradient(#16335c50,#10244885),var(--activity-scenery,none) center/cover,#182e4b}.core-refresh .timing-scene{border-radius:26px;border:2px solid #9db8cb;background:linear-gradient(#15325055,#15325055),var(--activity-scenery,none) center/cover,#22425f;min-height:0;box-shadow:0 8px 24px #193c5725}.core-refresh .timing-obj{position:relative;max-height:85%;filter:drop-shadow(0 8px 8px #15283b55);z-index:1}.timing-guide{position:absolute;width:clamp(150px,30vw,380px);height:auto;max-height:85%;aspect-ratio:1;border:5px dashed #d3e7f0aa;border-radius:50%;box-shadow:0 0 0 16px #ffffff10,inset 0 0 30px #d8eeff18;box-sizing:border-box}.timing-scene--ready .timing-guide{border-color:#c1f2d2;box-shadow:0 0 0 16px #b6e9ce20,inset 0 0 35px #b6e9ce30}
@media(max-width:700px){.core-refresh .scan-grid{gap:7px;padding:6px;border-radius:20px}.core-refresh .scan-grid .scan-card{padding:6px;border-radius:14px;gap:4px}.core-refresh .scan-grid .scan-card__emoji{max-height:calc(100% - 22px)}.core-refresh .scan-grid .scan-card__label,.core-card-label{font-size:12px}.core-refresh .scan-prompt{font-size:17px}.core-target-preview{width:47px;height:47px;flex:none;border-radius:12px}.core-refresh.scan-stage--sequence{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(180px,1fr) minmax(210px,.7fr) auto;gap:8px}.core-refresh.scan-stage--sequence .scan-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;max-height:none}.core-refresh.scan-stage--sequence .seq-output{padding:10px!important;gap:8px!important}.core-refresh.scan-stage--sequence .core-card-label{font-size:11px}.core-refresh.scan-stage--sequence .seq-out-item .scan-card__img{height:calc(100% - 26px)}.seq-out-label{font-size:11px;padding:3px 8px}.seq-card-count{min-width:18px;height:18px;right:3px;top:3px;font-size:10px}.core-refresh.scan-stage--sequence .scan-card__emoji{max-height:calc(100% - 18px)}}
@media(max-height:650px) and (min-width:701px){.core-target-preview{width:45px;height:45px}.core-refresh .scan-grid{gap:8px}.core-refresh .scan-grid .scan-card{padding:7px;border-radius:15px}.core-refresh.scan-stage--sequence .core-card-label{font-size:12px}.core-refresh .scan-grid .scan-card__label,.core-card-label{font-size:14px}.core-refresh.scan-stage--sequence .seq-output{padding:12px!important}}
[data-activity-backgrounds=off] .core-refresh{--activity-scenery:none!important}[data-activity-animations=off] .core-refresh .seq-out-item,[data-activity-animations=off] .core-memory .memory-card--new{animation:none!important}[data-theme=cvi] .core-refresh .scan-grid,[data-theme=cvi] .core-refresh .timing-scene,[data-theme=cvi] .core-refresh .seq-output{background:#000!important;border-color:#fff}[data-theme=cvi] .core-refresh .scan-grid .scan-card{background:#000;color:#fff;border-color:#fff}[data-theme=cvi] .core-memory .scan-card[data-open=false]{background:#000;border-color:#ffdf00}
@media(prefers-reduced-motion:reduce){.core-refresh .seq-out-item,.core-memory .memory-card--new{animation:none!important}}

.core-refresh .scan-dim{opacity:.82}
/* 31.10.2026 Kontrast: Fortschrittsziffern 12px brauchen 4,5:1 (vorher 4,3:1); Klar-Modus Gelb auf Schwarz. */
.learning-progress__stop{color:#4a5f73}.learning-progress__stop.is-complete{background:#3f6f62;border-color:#3f6f62}
[data-theme=cvi] .learning-progress__stop{background:#000;border-color:#ffe600;color:#ffe600}[data-theme=cvi] .learning-progress__stop.is-complete{background:#ffe600;border-color:#ffe600;color:#000}

/* Schmale Bildschirme: Aufteilung Szene/Bedienfeld uebernimmt das Brett-Geruest (data-lage=unten,
   Blaettern statt Scrollen). Der fruehere scrollende Bedienbereich entfiel am 31.10.2026. */
