/* Ergänzungen 2026-10: Klassenfilter, große Zahlen, neue Spiele (Kl. 1 Schulanfang, Kl. 3/4) */
.kl-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--te-l); color: var(--te-d); font: 700 .9em var(--ff); padding: 4px 12px; border-radius: 999px; margin: 4px 0; }
/* große Zahlen in Mauern / Dreiecken / Stellentafel */
.slot.brick.wide { width: 4.6em; font-size: .85em; }
.wall.big { font-size: clamp(1em, 3.2cqw, 1.6em); }
.tri .slot.wide { width: 3.9em; font-size: .8em; }
.tcol.HT .thead { background: #DDD6FE; } .tcol.ZT .thead { background: #FBCFE8; }
.tafel.c6 { grid-auto-columns: minmax(64px, 130px); } .tafel.c6 .thead small { font-size: .62em; }
@media (max-width: 640px) { .tafel.c6 { grid-auto-columns: minmax(46px, 1fr); } .tafel.c6 .thead b { font-size: 1.1em; } .tafel.c6 .thead small { display: none; } .tafel.c4 .thead small { font-size: .6em; } }
.zs-wrap svg .zs-lab { font-size: 22px; }
.eq.numseq { flex-wrap: wrap; row-gap: 8px; }
.conv-hint { font: 600 .95em var(--ff); color: var(--mut); background: #F1F5F9; padding: 6px 14px; border-radius: 12px; }
.axwrap { display: flex; flex-direction: column; align-items: center; gap: 4px; } .axwrap small { color: var(--mut); font-weight: 700; }
.cboxes { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; } .cbox { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tally-tab .trow.hl { background: #FFF7E6; border-radius: 12px; box-shadow: 0 0 0 3px var(--or2) inset; }

/* --- A. Würfel-Blitz --- */
.wb-stage { position: relative; min-height: 170px; min-width: 260px; display: grid; place-items: center; background: #FFFBEB; border-radius: 22px; padding: 18px 26px; box-shadow: 0 0 0 3px #FDE68A inset; }
.wb-show.hide > * { visibility: hidden; }
.wb-go { position: absolute; inset: auto; }
.wb-pic { display: flex; gap: 16px; align-items: center; justify-content: center; }
.wb-pic .dice { width: 120px; height: 120px; padding: 14px; gap: 6px; }
.wb-pic.two .dice { width: 100px; height: 100px; }
.wb-pic .fingers { transform: scale(1.15); }
.freedots { width: 150px; height: 150px; }
.choices.wbm .choice { min-height: 120px; } .choices.wbm .dice { width: 64px; height: 64px; } .choices.wbm .freedots { width: 80px; height: 80px; } .choices.wbm .fingers { transform: scale(.8); }
.bignum { font-size: 1.5em; }

/* --- B. Zähl-Zoo --- */
.wimmel.zz { max-width: 520px; }
.zz-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.zz-src, .zz-basket { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 64px; max-width: 560px; padding: 10px; border-radius: 18px; }
.zz-src { background: #F0FDF4; }
.zz-bwrap { display: flex; align-items: center; gap: 10px; }
.zz-basket { background: #FEF3C7; box-shadow: 0 0 0 4px #D97706 inset; min-width: 240px; }
.zz-it { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 0 #D9E1F2; }
.zz-it img.em.md { width: 40px; height: 40px; }
.zz-arrow { font-size: 26px; color: var(--mut); }

/* --- C. Mehr oder weniger? --- */
.vg-two { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.vg-side { display: flex; flex-direction: column; align-items: center; gap: 6px; } .vg-side b { color: var(--mut); }
.vg-plate { display: flex; flex-wrap: wrap; gap: 6px; width: 220px; min-height: 120px; padding: 14px; justify-content: center; align-content: center; background: #fff; border-radius: 50%; box-shadow: 0 0 0 5px #E2E8F0 inset, 0 4px 0 #CBD5E1; }
.vg-plate img.em.md { width: 38px; height: 38px; }
.choices.vg .choice { flex-direction: row; gap: 8px; } .vg-s { font-size: 1.8em; } .choices.vg small { font-size: .55em; color: var(--mut); display: block; }
.vg-pairs { display: grid; grid-template-columns: repeat(var(--n), 46px); gap: 6px 4px; justify-items: center; background: #F8FAFC; padding: 12px; border-radius: 18px; }
.vg-pairs > i { width: 38px; height: 38px; }
.vg-eq { display: inline-flex; gap: 10px; align-items: center; font-size: 1.4em; margin-left: 8px; } .vg-eq i { font-style: normal; color: var(--mut); border: 3px dashed #B8C3DE; border-radius: 10px; padding: 0 8px; }
.vg-sym { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; } .vg-sym > div { display: flex; flex-direction: column; align-items: center; gap: 4px; } .vg-sym b { font: 700 2em var(--ff); color: var(--or-d); }
.field.mini .fcell { width: 18px; height: 18px; } .field.mini .chip { width: 14px; height: 14px; }

/* --- D. Schüttelbox --- */
.sb-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sb-n { font: 700 1.3em var(--ff); display: flex; align-items: center; gap: 6px; } .sb-n b { color: var(--or-d); font-size: 1.3em; }
.sbox { display: grid; grid-template-columns: 1fr 10px 1fr; width: min(440px, 90cqw); min-height: 140px; background: #FDE68A; border-radius: 18px; box-shadow: 0 0 0 5px #B45309 inset, 0 6px 0 #92400E; padding: 10px; }
.sbox.shake { animation: sbshake .5s; }
@keyframes sbshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px) rotate(-2deg); } 40% { transform: translateX(10px) rotate(2deg); } 60% { transform: translateX(-8px); } 80% { transform: translateX(8px); } }
.sb-wall { background: #B45309; border-radius: 4px; }
.sb-half { position: relative; display: grid; place-items: center; padding: 6px; }
.sb-balls { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 170px; } .sb-balls i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF9B9B, #E11D48); box-shadow: 0 2px 0 #9F1239; }
.sb-balls.blue i { background: radial-gradient(circle at 35% 35%, #93C5FD, #2563EB); box-shadow: 0 2px 0 #1E40AF; }
.sb-lid { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #D97706, #D97706 10px, #F59E0B 10px, #F59E0B 20px); border-radius: 12px; color: #fff; font: 800 2.6em var(--ff); text-shadow: 0 3px 0 #92400E; transition: transform .5s, opacity .5s; }
.sb-lid.open { transform: translateY(-70%) rotate(-8deg); opacity: 0; pointer-events: none; }
.sb-lab { font: 700 1.6em var(--ff); color: var(--ink); }
.sb-aid:empty { display: none; }

/* --- E. Zahlen-Zug --- */
.zug-scroll { width: 100%; }
.zug { display: flex; align-items: flex-end; gap: 6px; padding: 8px 6px 4px; min-width: max-content; margin: 0 auto; }
.zug-loc img.em.lg { width: 64px; height: 64px; transform: scaleX(-1); }
.zug-w { display: flex; flex-direction: column; align-items: center; cursor: default; }
.zug-box { min-width: 54px; height: 54px; padding: 0 6px; border-radius: 10px; background: #BFDBFE; box-shadow: 0 0 0 3px #1D4ED8 inset; display: grid; place-items: center; font: 700 1.6em var(--ff); color: var(--ink); }
.zug-w.gap .zug-box { background: #fff; box-shadow: 0 0 0 3px #94A3B8 inset; cursor: pointer; } .zug-w.gap.filled .zug-box { background: #DCFCE7; box-shadow: 0 0 0 3px #16A34A inset; }
.zug-w.hl .zug-box { background: #FDE68A; box-shadow: 0 0 0 3px #D97706 inset; }
.zug-w.bad .zug-box { background: #FFF1F1; box-shadow: 0 0 0 3px var(--red) inset; animation: shake .35s; }
.zug-box b.q { color: var(--mut); }
.zug-box .slot { font-size: .9em; min-width: 1.6em; }
.zug-wh { display: flex; gap: 14px; margin-top: 2px; } .zug-wh i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.zug-cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zcard { min-width: 64px; height: 64px; border-radius: 16px; background: #fff; font: 700 1.8em var(--ff); color: var(--ink); box-shadow: 0 0 0 3px #CBD3E6 inset, 0 4px 0 #CBD3E6; }
.zcard.used { opacity: .3; }
.zahlreihe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .zahlreihe span { font: 700 1.3em var(--ff); padding: 4px 10px; border-radius: 10px; background: #F1F5F9; } .zahlreihe span.hl { background: #FDE68A; }

/* --- F. Formen-Detektiv --- */
.fscene { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 620px; background: #F8FAFC; padding: 14px; border-radius: 20px; }
.fbtn { width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 0 #D9E1F2; }
.fbtn.sel { box-shadow: 0 0 0 4px var(--te) inset, 0 3px 0 var(--te-d); background: var(--te-l); } .fbtn.bad { box-shadow: 0 0 0 4px var(--red) inset; background: #FFF1F1; }
.fs-wrap { display: flex; flex-direction: column; align-items: center; } .fs-cur { min-height: 120px; display: grid; place-items: center; } .fs-cur.shake { animation: shake .35s; } .fs-cnt { color: var(--mut); font-weight: 700; }
.fs-bins { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fs-bin { width: 150px; min-height: 130px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 3px #CBD3E6 inset, 0 5px 0 #CBD3E6; display: flex; flex-direction: column; align-items: center; padding: 8px; gap: 4px; font: 700 1.05em var(--ff); }
.fs-bin:active { transform: translateY(3px); } .fs-in { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.fobj { display: grid; place-items: center; } .fobj img.em.xl { width: 110px; height: 110px; }
.choices.pics .fshape { margin: 0 auto; }

/* --- G. Wo ist was? --- */
.lg-wrap { display: flex; align-items: center; gap: 8px; }
.lg-side { font: 700 1em var(--ff); color: var(--mut); writing-mode: vertical-rl; transform: rotate(180deg); background: #F1F5F9; padding: 10px 4px; border-radius: 10px; }
.lg-side.r { transform: none; }
.lg-shelf { display: grid; grid-template-columns: repeat(var(--c), minmax(64px, 92px)); grid-template-rows: repeat(var(--r), minmax(64px, 86px)); gap: 0; background: #A16207; padding: 8px; border-radius: 14px; box-shadow: 0 6px 0 #713F12; }
.lg-cell { background: #FEF3C7; border: 4px solid #A16207; display: grid; place-items: center; }
.lg-cell img.em.md { width: 48px; height: 48px; }
.lg-cell.ref { background: #FDE68A; box-shadow: 0 0 0 4px #F59E0B inset; } .lg-cell.sel { background: var(--te-l); box-shadow: 0 0 0 5px var(--te) inset; } .lg-cell.put { background: #DCFCE7; box-shadow: 0 0 0 5px #16A34A inset; }
.lg-cell.empty { background: #FFFBEB; }
.lg-hand { display: flex; align-items: center; gap: 10px; font: 700 1.2em var(--ff); background: #fff; padding: 6px 16px; border-radius: 16px; box-shadow: 0 0 0 3px #CBD3E6 inset; }

/* --- H. Schriftlich --- */
.crow.minus::before { content: '−'; }
.coladd.mul .crow span.op { color: var(--or-d); }
.cs-note { color: var(--mut); }
.div-eq { flex-wrap: wrap; } .div-steps { background: #F8FAFC; border-radius: 14px; padding: 10px 16px; font: 600 1.05em var(--ff); color: var(--ink2); display: grid; gap: 4px; }

/* --- I. Messen --- */
.ruler-wrap { width: min(760px, 96cqw); } .ruler { width: 100%; height: auto; } .ruler .rl-lab { font: 700 26px var(--ff); fill: var(--ink); } .ruler .rl-unit { font: 700 22px var(--ff); fill: var(--mut); }
.gauge-wrap { display: flex; justify-content: center; width: min(760px, 96cqw); } .gauge { width: 200px; height: auto; } .gauge.wide { width: 100%; } .gauge .g-lab { font: 700 22px var(--ff); fill: var(--ink); }

/* --- J. Fläche & Umfang --- */
.sgrid.fl .gc { cursor: default; } .sgrid.fl .gc[data-v="1"] { background: #86EFAC; } .sgrid.fl .gc[data-v="2"] { background: #A5F3FC; }
.sgrid.fl .gc { font: 700 .8em var(--ff); display: grid; place-items: center; color: #14532D; }
.sgrid.mini2 { --gs: 22px; }
.fl-two { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; } .fl-two > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fl-cnt { font: 700 1.2em var(--ff); color: var(--te-d); }
.sgrid.fl.rect-part .gc[data-v="0"] { background: #F8FAFC; border-style: dashed; }

@media (max-width: 640px) {
  .lg-shelf { grid-template-columns: repeat(var(--c), minmax(56px, 72px)); grid-template-rows: repeat(var(--r), minmax(56px, 72px)); } .lg-cell img.em.md { width: 40px; height: 40px; }
  .fbtn { width: 70px; height: 70px; } .fs-bin { width: 104px; min-height: 110px; font-size: .9em; }
  .zug-box { min-width: 44px; height: 46px; font-size: 1.3em; } .zcard { min-width: 54px; height: 54px; font-size: 1.5em; }
  .vg-plate { width: 150px; min-height: 100px; } .vg-plate img.em.md { width: 30px; height: 30px; }
  .vg-pairs { grid-template-columns: repeat(var(--n), 32px); } .vg-pairs img.em.md { width: 28px; height: 28px; } .vg-pairs > i { width: 28px; height: 28px; }
  .wb-pic .dice { width: 96px; height: 96px; }
}
