/* Wissens-Trainer */
.wi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.wi-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; text-align: center; }
.wi-stats b { display: block; font: 800 clamp(1.6rem, 4vw, 2.2rem)/1 var(--f-display); color: var(--c-dark, var(--lila-dark)); }
.wi-stats span { font-weight: 700; color: var(--muted); font-size: .9rem; }
.wi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wi-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 2px solid var(--line); border-radius: 22px; text-decoration: none; color: inherit; box-shadow: 0 4px 0 var(--line); transition: transform .15s, border-color .15s; }
.wi-card:hover { transform: translateY(-2px); border-color: var(--c, var(--blau)); }
.wi-ic { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--c-soft, var(--blau-soft)); color: var(--c-dark, var(--blau-dark)); }
.wi-ic .ic { width: 30px; height: 30px; }
.wi-txt { display: grid; gap: 3px; min-width: 0; }
.wi-txt b { font: 800 1.25rem/1.15 var(--f-display); }
.wi-txt small { color: var(--muted); line-height: 1.35; }
.wi-meta { font-weight: 700; font-size: .88rem; color: var(--c-dark, var(--nacht)); }
.wi-done { color: #8a5a00; }
.wi-card > .ic:last-child { margin-left: auto; flex: none; color: var(--muted); }
.wi-qn { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--c-dark, var(--muted)); white-space: nowrap; }
.wi-other { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wi-other a, .wc-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--c-dark, var(--nacht)); }
.wi-intro { font-size: 1.08rem; margin: 0 0 8px; }
.wi-facts { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; }
.wi-q { font-size: clamp(1.15rem, 3vw, 1.5rem) !important; line-height: 1.35 !important; text-align: left; padding-right: 58px; }
.wi-choices { display: grid; gap: 10px; margin-top: 14px; }
.wi-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--line), 0 4px 0 var(--line); font: 700 1.06rem/1.3 inherit; color: var(--nacht); text-align: left; cursor: pointer; transition: transform .1s; }
.wi-choice:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--c, var(--blau)), 0 4px 0 var(--c, var(--blau)); }
.wi-choice:disabled { cursor: default; }
.wi-letter { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c-soft, #eef1fd); color: var(--c-dark, var(--nacht)); font: 800 .95rem var(--f-display); }
.wi-choice.is-ok { background: var(--gruen); color: #fff; box-shadow: 0 4px 0 var(--gruen-dark); }
.wi-choice.is-ok .wi-letter { background: rgba(255, 255, 255, .25); color: #fff; }
.wi-choice.is-no { background: var(--rot-soft); color: var(--rot-dark); animation: mgShake .35s; }
.wi-choice:disabled:not(.is-ok):not(.is-no) { opacity: .55; }
.wi-why { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--sonne-soft); color: #4a3500; line-height: 1.45; }
.wi-review { text-align: left; max-width: 620px; margin: 0 auto 16px; }
.wi-review h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.wi-review ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wi-review li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.wi-review small { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wi-choice.is-no { animation: none; } }
/* Themensuche */
.wi-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 14px; box-shadow: 0 3px 0 var(--line); }
.wi-search:focus-within { border-color: var(--c, #6b4fd8); }
.wi-search > .ic { width: 22px; height: 22px; color: var(--muted); flex: none; }
.wi-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: 8px 0; }
.wi-search .btn { flex: none; }
.wi-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wi-hit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--c); border-radius: 16px; text-decoration: none; color: inherit; }
.wi-hit:hover { border-color: var(--c); }
.wi-hit-emoji { font-size: 1.7rem; flex: none; }
.wi-hit-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wi-hit-txt b { color: var(--nacht); }
.wi-hit-meta { display: flex; align-items: center; gap: 4px; color: var(--c-dark); font-weight: 600; }
.wi-hit-meta .ic { width: 15px; height: 15px; }
.wi-hit > .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.kid-search { margin: 0 0 12px; }
/* Kompi als Mitspieler: Serie, Krone, Joker */
.mg-coach { position: relative; }
.wi-streak { position: absolute; top: -6px; right: 4px; z-index: 2; background: #fff3e0; color: #b34700; border: 2px solid #ffb35c; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .95rem; box-shadow: 0 2px 0 #ffcf99; }
.wi-streak.is-hot { background: linear-gradient(135deg, #ff9a3c, #ff5e3a); color: #fff; border-color: #e8452a; box-shadow: 0 0 0 4px rgba(255, 120, 60, .25); }
.wi-streak.pop { animation: wiPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wiPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.wi-crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 2.6rem; z-index: 2; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .2)); animation: wiCrown .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wiCrown { 0% { transform: translate(-50%, -40px) scale(.3); opacity: 0; } 100% { transform: translateX(-50%) rotate(-8deg) scale(1); opacity: 1; } }
.wi-tools { display: flex; justify-content: center; margin: 4px 0 2px; }
.wi-joker.is-used { opacity: .45; }
.wi-choice.is-gone { opacity: .3; text-decoration: line-through; transition: opacity .4s; }
@media (prefers-reduced-motion: no-preference) {
  .kompi.k-flip { animation: kFlip .9s cubic-bezier(.4, 0, .3, 1) 1; transform-origin: 50% 60%; }
  .kompi.k-pat { animation: kPat .9s ease-in-out 1; transform-origin: 50% 90%; }
}
@keyframes kFlip { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-40px) rotate(180deg); } 80% { transform: translateY(0) rotate(360deg); } 100% { transform: rotate(360deg); } }
@keyframes kPat { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-3deg); } }
.mg-coach:has(.wi-crown:not([hidden])) .v-xp { display: none; }
/* Wissens-Sammelkarten */
.wc-count { display: grid; justify-items: center; background: #fff; border: 3px solid var(--c); border-radius: 22px; padding: 10px 18px; box-shadow: 0 4px 0 var(--c); min-width: 110px; }
.wc-count b { font: 800 2.2rem/1 var(--f-display); color: var(--c-dark); }
.wc-count span { font-weight: 700; color: var(--muted); }
.wc-count small { font-weight: 800; color: #b07a00; }
.wc-bar { height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wc-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8f6ee8, #e86ed8, #ffb84d); min-width: 14px; }
.wc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.wi-other a .ic, .wc-jump a .ic { width: 18px; height: 18px; }
.wc-jump small { font-weight: 700; opacity: .7; }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.wcard { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; align-items: center; gap: 4px; aspect-ratio: 5 / 7; padding: 10px 8px; border-radius: 16px; text-decoration: none; color: var(--nacht); text-align: center;
  background: linear-gradient(170deg, var(--c-soft), #fff 70%); border: 4px solid var(--c); box-shadow: 0 5px 0 var(--c-dark), inset 0 0 0 3px #fff; overflow: hidden; transition: transform .15s; }
.wcard:hover { transform: translateY(-4px) rotate(-1deg); }
.wcard-top { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c-dark); }
.wcard-emo { font-size: 3rem; line-height: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .1)); }
.wcard-title { font: 800 .92rem/1.15 var(--f-display); }
.wcard-foot { font-size: .72rem; font-weight: 700; color: var(--muted); }
.wcard-perf { position: absolute; top: 6px; right: 6px; font-size: .65rem; font-weight: 800; background: #fff; border-radius: 999px; padding: 1px 6px; color: #b07a00; border: 1px solid #f0d27a; }
.wcard.is-locked { background: repeating-linear-gradient(135deg, #f4f5f9 0 10px, #eceef4 10px 20px); border: 3px dashed #c5cad8; box-shadow: none; color: #8a90a2; }
.wcard.is-locked .wcard-emo { font: 800 2.6rem var(--f-display); color: #c5cad8; filter: none; }
.wcard.is-locked .wcard-top { color: #9aa0b2; }
.wcard-stars span { color: #d5d9e4; } .wcard-stars span.on { color: #f5b700; }
.wcard.is-glitter { border-color: #f5c542; box-shadow: 0 5px 0 #c9971a, inset 0 0 0 3px #fff, 0 0 18px rgba(245, 197, 66, .55); }
.wcard.is-glitter::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 45%, rgba(255, 170, 230, .5) 50%, rgba(140, 220, 255, .5) 55%, transparent 65%); animation: wcShine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes wcShine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
/* Neue Karte am Ende einer Runde */
.wi-newcard { display: grid; justify-items: center; gap: 10px; margin: 6px auto 18px; perspective: 900px; }
.wi-newcard-h { margin: 0; font: 800 1.35rem var(--f-display); color: var(--c-dark); }
.wi-newcard .wcard { width: 170px; animation: wcFlip 1.1s cubic-bezier(.3, 1.3, .5, 1) 1 both; }
@keyframes wcFlip { 0% { transform: rotateY(180deg) scale(.4); opacity: 0; } 60% { transform: rotateY(-12deg) scale(1.08); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .wcard.is-glitter::after, .wi-newcard .wcard { animation: none; } }
/* Fach-Illustrationen */
.subj-art { display: block; flex: none; }
.head-badge.head-art { background: #fff; padding: 8px; }
.head-badge.head-art .subj-art { width: 100%; height: 100%; }
.wi-ic .subj-art { width: 46px; height: 46px; }
.wc-jump .subj-art { width: 22px; height: 22px; }

/* Fach-Übersicht: alle Themen aller Klassenstufen als Liste (auch für Suchmaschinen) */
.wi-all { margin-top: 26px; }
.wi-all h2 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); margin: 0 0 6px; }
.wi-all h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.wi-all ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.wi-all a { font-weight: 700; }
