/* Rhythmusdiktat */
.rf-diktat .rfw__gruppe:has(input[name="rf-takt"]) .rfw__optionen { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-diktat .rfw__gruppe:has(input[name="rf-takt"]) .rfw__option > span { min-height: 0; width: 64px; padding: 7px 4px; border-radius: 10px; }
.rf-diktat .rfw__gruppe:has(input[name="rf-takt"]) .rfw__option strong { font-size: 1.15rem; }
.rf-diktat .rfw__gruppe:has(input[name="rf-takt"]) .rfw__option small { display: none; }
.rf-diktat .rf-schalter.is-aus { opacity: .45; cursor: not-allowed; }
.rf-diktat [data-pro] { position: relative; }
.rf-diktat .rfw__option[data-pro]::after, .rf-diktat .rf-schalter[data-pro]::after { content: "App"; position: absolute; top: -6px; right: -4px; background: #002c5d; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .03em; padding: 1px 5px; border-radius: 6px; line-height: 1.4; }
.rf-diktat .rf-schalter[data-pro]::after { position: static; display: inline-block; margin-left: 8px; vertical-align: middle; }
.rf-diktat__frei-hinweis { font-size: .9rem; color: #4a5a70; margin: 14px 0 0; }
.rf-diktat__noten .rf-diktat__takt { cursor: inherit; transition: fill .15s; }
.rf-diktat__noten .rf-diktat__takt.is-ziel { fill: rgba(10, 149, 31, .14) !important; stroke: #0a951f; stroke-width: 1.5; stroke-dasharray: 6 4; }
.rfv .rf-diktat__noten .rf-diktat__baustein { cursor: pointer; }
.rf-diktat__bausteine, .rf-diktat__pruefen, .rf-diktat__ergebnis { display: none; }
.rf-diktat.ist-bereit .rf-diktat__bausteine, .rfv .rf-diktat__bausteine { display: block; margin: 12px 0 0; }
.rf-diktat.ist-bereit .rf-diktat__pruefen, .rfv .rf-diktat__pruefen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.rf-diktat.ist-bereit .rf-diktat__ergebnis { display: block; }
.rf-diktat__hinweis { font-size: .88rem; color: #4a5a70; margin: 0 0 8px !important; }
.rfv .rf-diktat__hinweis { display: none; }
.rf-diktat__leiste { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-diktat__teil { width: 64px; height: 64px; padding: 4px; border: 2px solid #002c5d; border-radius: 12px; background: #fff; color: #002c5d; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 #002c5d; }
.rf-diktat__teil:active { cursor: grabbing; }
.rf-diktat__teil svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.rf-diktat__geist { position: fixed; z-index: 100100; pointer-events: none; opacity: .85; box-shadow: 0 8px 18px rgba(0, 30, 60, .3); transform: scale(1.06); }
.rf-diktat__info { font-size: .9rem; font-weight: 700; color: #002c5d; flex-basis: 100%; min-height: 1.2em; }
.rfv .rfv__fuss .rf-diktat__bausteine, .rfv .rfv__fuss .rf-diktat__pruefen { max-width: 900px; margin: 0 auto 10px !important; }
.rfv .rfv__fuss .rf-diktat__leiste { justify-content: center; }
.rfv .rfv__fuss .rf-diktat__pruefen { justify-content: center; }
.rfv .rfv__fuss .rf-diktat__info { text-align: center; }
@media (max-width: 480px) {
	.rf-diktat__teil { width: 54px; height: 54px; border-radius: 10px; }
	.rfv .rf-diktat__pruefen .rf-button { padding: 8px 12px; font-size: .85rem; }
}
/* „Neue Übung“ nur in der großen Ansicht (rechts neben „Leeren“) */
.rf-diktat__neu { display: none !important; }
.rfv .rf-diktat__neu { display: inline-flex !important; }
/* Ein- und Ausblenden der Übung */
.rf-blende-aus { opacity: 0 !important; transition: opacity .25s ease; }
.rf-blende-ein { animation: rf-diktat-ein .42s ease both; }
@keyframes rf-diktat-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rf-blende-aus { transition: none; } .rf-blende-ein { animation: none; } }
/* Takte auszählen */
.rf-az__silbe { font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.rf-az-slot rect { fill: #fff; stroke: #8aa0b8; stroke-width: 1.2; stroke-dasharray: 4 3; }
.rf-az-slot { cursor: pointer; }
.rf-az-slot text { fill: #1a5fb4; font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif; font-weight: 800; pointer-events: none; }
.rf-az-slot.is-aktiv rect { stroke: #de2a29; stroke-width: 1.8; fill: rgba(222, 42, 41, .06); }
.rf-az-slot.is-voll rect { stroke-dasharray: none; stroke: #b8c6d6; }
.rf-az-slot.is-ziel rect { stroke: #0a951f; stroke-width: 2; fill: rgba(10, 149, 31, .12); }
.rf-az-slot.is-richtig rect { stroke: #0a951f; fill: rgba(10, 149, 31, .14); stroke-dasharray: none; }
.rf-az-slot.is-richtig text { fill: #0a951f; }
.rf-az-slot.is-falsch rect { stroke: #de2a29; fill: rgba(222, 42, 41, .12); stroke-dasharray: none; }
.rf-az-slot.is-falsch text { fill: #de2a29; }
.rf-az-slot.is-loesung text { fill: #0a951f; }
.rf-az .rf-rhythmus__feld.rfv-zoom svg, .rfv .rf-az__noten { cursor: zoom-in; }
.rfv .rf-az__noten { cursor: default; }
/* Sterne in der Kurzmeldung wie im Ergebnis */
.rf-diktat__sterne { display: inline-flex; align-items: center; gap: 1px; font-size: 1.15em; vertical-align: -1px; color: var(--rfw-linie, #d5e9cd); }
.rf-diktat__sterne .is-an { color: #f5b301; }
.rf-diktat__sterne .rf-erfolg__krone { width: 1.3em; height: auto; margin-left: 3px; }
.rfv .rf-az__noten { touch-action: none; }
/* Grundbewegungen */
.rf-gb__noten .rf-gb-hand { fill: #6b7a8c; font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif; font-weight: 700; }
/* Videoanalyse (Pro) */
.rf-gb .rf-schalter[data-nurpro] { position: relative; opacity: .5; cursor: not-allowed; }
.rf-gb .rf-schalter[data-nurpro]::after { content: "App"; display: inline-block; margin-left: 8px; vertical-align: middle; background: #002c5d; color: #fff; font-size: .62rem; font-weight: 800; padding: 1px 5px; border-radius: 6px; line-height: 1.4; }
.rf-gb__videoschalter { margin-top: 14px; }
.rf-gb-video { margin: 12px 0 0; padding: 12px; border: 2px solid var(--rfw-linie, #d5e9cd); border-radius: 14px; background: #fff; }
.rf-gb-video__bild { position: relative; width: 100%; max-width: 640px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 4 / 3; }
.rf-gb-video__bild video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.rf-gb-video__ebene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rf-gb-video__schritt { margin: 10px 0 0 !important; font-size: .95rem; color: #002c5d; }
.rf-gb-video__hand { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.rf-gb-video__hand span { flex: 1 1 200px; padding: 6px 10px; border-radius: 10px; background: #f1f4f7; font-size: .88rem; font-weight: 700; color: #002c5d; }
.rf-gb-video__hand span:empty { display: none; }
.rf-gb-video__hand span.is-ok { background: rgba(10, 149, 31, .12); color: #0a6e18; }
.rf-gb-video__hand span.is-falsch { background: rgba(222, 42, 41, .12); color: #b51f1e; }
.rf-gb-video__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 !important; }
.rf-gb-video__knoepfe [hidden] { display: none !important; }
.rf-gb-video__hinweis { margin: 8px 0 0 !important; font-size: .78rem; color: #6b7a8c; }
.rf-gb-video.is-spielen .rf-gb-video__hand { visibility: hidden; }
/* Animation */
.rf-gb-anim { position: fixed; inset: 0; z-index: 100080; background: rgba(0, 30, 60, .55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.rf-gb-anim__karte { background: #fff; border-radius: 16px; width: 100%; max-width: 980px; max-height: 100%; overflow: auto; padding: 14px 16px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.rf-gb-anim__kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #002c5d; font-size: 1.1rem; }
.rf-gb-anim__bild { display: block; width: 100%; height: auto; background: #f6f8f5; border-radius: 10px; margin-top: 10px; }
.rf-gb-anim__titel { font: 800 22px "Source Sans 3", Arial, sans-serif; fill: #002c5d; }
.rf-gb-anim__bew { font: 800 22px "Source Sans 3", Arial, sans-serif; fill: #0a951f; }
.rf-gb-anim__info { font: 700 17px "Source Sans 3", Arial, sans-serif; fill: #de2a29; }
.rf-gb-anim__seite.is-falsch .rf-gb-anim__bew { fill: #de2a29; }
.rf-gb-anim__folge { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.rf-gb-anim__folge span { min-width: 44px; padding: 4px 6px; border: 2px solid #d5e9cd; border-radius: 10px; text-align: center; line-height: 1.1; color: #002c5d; }
.rf-gb-anim__folge b { display: block; font-size: 1.2rem; }
.rf-gb-anim__folge small { font-size: .7rem; color: #6b7a8c; }
.rf-gb-anim__folge span.is-falsch { border-color: #de2a29; }
.rf-gb-anim__folge span.is-falsch small { color: #de2a29; }
.rf-gb-anim__folge span.is-an { background: #0a951f; border-color: #0a951f; color: #fff; }
.rf-gb-anim__folge span.is-an small { color: #e8f5ea; }
.rf-gb-anim__knoepfe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0 !important; }
.rf-gb-anim__tempo { font-weight: 700; color: #002c5d; }
.rf-gb-anim__tempo select { margin-left: 6px; }
/* Handsatz in den Farben der Schule: R rot, L blau */
.rf-gb__noten .rf-gb-hand--R { fill: #da2e2a; }
.rf-gb__noten .rf-gb-hand--L { fill: #0070b9; }
.rf-gb-anim__folge small { font-weight: 700; }
