.c-teil { color: var(--teil); }
.c-ganzes { color: var(--ganzes); }
.c-anteil { color: var(--anteil); }

/* Spickzettel */
.cheat-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eee;
}
.cheat-row:first-of-type { border-top: none; }
.cheat-head { font-weight: 800; }
.cheat-row.teil .cheat-head { color: var(--teil); }
.cheat-row.ganzes .cheat-head { color: var(--ganzes); }
.cheat-row.anteil .cheat-head { color: var(--anteil); }
.ex { color: var(--muted); }
@media (max-width: 480px) {
  .cheat-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Fortschritt */
.progress-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
#score { color: #e0a100; }
.bar { height: 10px; background: #e2dcff; border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.bar-fill { height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width 0.3s; }

/* Aufgabe */
.task-text { font-size: 1.3rem; line-height: 1.7; }
.question { text-align: center; font-weight: 700; color: var(--muted); margin: 4px 0 10px; }

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  transition: transform 0.05s, opacity 0.2s;
}
.choice .big { font-size: 1.35rem; }
.choice .small { font-size: 0.9rem; font-weight: 600; opacity: 0.85; }
.choice.teil { background: var(--teil); box-shadow: 0 5px 0 #1565c0; }
.choice.ganzes { background: var(--ganzes); box-shadow: 0 5px 0 #c25e00; }
.choice.anteil { background: var(--anteil); box-shadow: 0 5px 0 #1f7a43; }
.choice:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.choice:disabled { cursor: default; opacity: 0.35; }
.choice.right { opacity: 1; outline: 4px solid var(--ok); outline-offset: 3px; }
.choice.wrong { opacity: 1; outline: 4px solid var(--bad); outline-offset: 3px; }
/* Schmale Handys: Buttons untereinander, etwas flacher */
@media (max-width: 420px) {
  .choices { grid-template-columns: 1fr; }
  .choice { flex-direction: row; gap: 8px; min-height: 64px; }
}

/* Rückmeldung */
.feedback.ok { background: var(--ok-bg); }
.feedback.bad { background: var(--bad-bg); }
.fb-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.feedback.ok .fb-title { color: var(--ok); }
.feedback.bad .fb-title { color: var(--bad); }
.fb-way { font-size: 1.15rem; line-height: 1.8; }
#fb-way { font-weight: 700; }

/* Ergebnis */
.result { text-align: center; }
.stars { font-size: 2.6rem; letter-spacing: 4px; color: #f2b600; }
.stars .off { color: #ddd; }
#review-list li { margin-bottom: 14px; line-height: 1.7; }
#review-list .rv-type { font-weight: 800; }
.end-buttons { display: grid; gap: 12px; }

/* ---------- Hund ---------- */
.dog-svg { display: block; width: 100%; max-width: 380px; margin: 8px auto 0; border-radius: 14px; background: #eaf6ff; }
.dog-says { font-weight: 700; color: var(--brand-dark); margin-top: 10px; font-size: 1.1rem; }

.tail { transform-box: fill-box; transform-origin: 100% 100%; }
.leg { transform-box: fill-box; transform-origin: 50% 0; }
.head { transform-origin: 198px 98px; }
.ear { transform-origin: 200px 58px; }
.dog-tilt { transform-origin: 112px 175px; }
.confetti rect, .hearts text, .puff { transform-box: fill-box; transform-origin: center; }

/* Grundzustand: Extras aus */
.confetti, .hearts, .puff, .eye-closed { opacity: 0; }

@keyframes wag { from { transform: rotate(-12deg); } to { transform: rotate(18deg); } }
@keyframes jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }
@keyframes earflap { from { transform: rotate(-12deg); } to { transform: rotate(16deg); } }
@keyframes headtilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
/* hin und her schnüffeln, an den Enden umdrehen */
@keyframes walk {
  0% { transform: translateX(-35px) scaleX(1); }
  45% { transform: translateX(15px) scaleX(1); }
  50% { transform: translateX(15px) scaleX(-1); }
  95% { transform: translateX(-35px) scaleX(-1); }
  100% { transform: translateX(-35px) scaleX(1); }
}
@keyframes step { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes sniffhead { 0%, 100% { transform: rotate(48deg); } 50% { transform: rotate(55deg); } }
@keyframes puff {
  0% { opacity: 0; transform: scale(0.3); }
  40% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(8px, -4px) scale(1.7); }
}
@keyframes fall { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(230px) rotate(540deg); } }
@keyframes floatup {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60px) scale(1.2); }
}

/* Alles richtig: Hund hüpft vor Freude */
.mood-party .dog { animation: jump 0.6s ease-in-out infinite; }
.mood-party .tail { animation: wag 0.15s ease-in-out infinite alternate; }
.mood-party .ear { animation: earflap 0.3s ease-in-out infinite alternate; }
.mood-party .eye-open { opacity: 0; }
.mood-party .eye-closed { opacity: 1; }
.mood-party .confetti { opacity: 1; }
.mood-party .confetti rect { animation: fall 2.2s linear infinite; }
.mood-party .hearts { opacity: 1; }
.mood-party .hearts text { opacity: 0; animation: floatup 1.8s ease-out infinite; }

/* Wenige Fehler: Hund wedelt zufrieden */
.mood-happy .tail { animation: wag 0.3s ease-in-out infinite alternate; }
.mood-happy .head { animation: headtilt 2s ease-in-out infinite; }

/* Viele Fehler: Hund schnüffelt weiter */
.mood-sniff .dog { transform-origin: 170px 120px; animation: walk 10s linear infinite; }
.mood-sniff .dog-tilt { transform: rotate(6deg); }
.mood-sniff .head { animation: sniffhead 0.35s ease-in-out infinite; }
.mood-sniff .leg { animation: step 0.45s ease-in-out infinite alternate; }
.mood-sniff .leg.b { animation-direction: alternate-reverse; }
.mood-sniff .tail { animation: wag 0.9s ease-in-out infinite alternate; }
.mood-sniff .tongue { opacity: 0; }
.mood-sniff .puff { animation: puff 0.9s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .dog-stage * { animation: none !important; }
}
