/* ==========================================================================
   Notewriter – Aufgaben im neuen Rahmen (Meldo-Designsystem, Rahmen C)
   v3.219.0 · Etappe 1: Fläche, Antworten, Knöpfe – nur Form, kein Verhalten.

   Wird nur geladen, wenn der Schalter «Aussehen der Aufgaben» es erlaubt
   (Einstellung mnw_aufgabe_rahmen: aus · admins · alle). style.css bleibt
   unverändert. Regeln mit :not(#m-x), damit sie die !important-Regeln
   aus style.css ohne Umbau überstimmen. Keine neuen Klassen im Markup.
   ========================================================================== */

:root {
    --mnwr-tuerkis: var(--mnwd-akzent, #3D7C85);
    --mnwr-tuerkis-hell: #EEF3F4;
    --mnwr-getoent: #F4F7F7;
    --mnwr-tinte: #111416;
    --mnwr-leise: #5A6668;
    --mnwr-gut: #1F8A4C;
    --mnwr-gut-hell: #E5F5EC;
    --mnwr-falsch: #C2412D;
    --mnwr-falsch-hell: #FCEBE7;
    --mnwr-schatten: 0 1px 2px rgba(17, 35, 37, .04), 0 8px 24px rgba(17, 35, 37, .07);
}

/* ---------- Fläche der Aufgabe: ohne Strich, Radius 24, weicher Schatten ---------- */
.mnw-task-card:not(#m-x) {
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 24px !important;
    box-shadow: var(--mnwr-schatten) !important;
    background: #fff !important;
}

/* ---------- «Aufgabe 4 / 35»: ruhige Zeile statt Verlaufsabzeichen ---------- */
.mnw-task-badge:not(#m-x) {
    background: none !important;
    color: var(--mnwr-leise) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
}
.mnw-task-badge:not(#m-x) span {
    color: var(--mnwr-tinte) !important;
}

/* ---------- Bilder, Audio, Video zur Aufgabe: Fläche ohne Strich und Rand ---------- */
.mnw-task-media:not(#m-x) {
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 24px !important;
    box-shadow: var(--mnwr-schatten) !important;
    background: #fff !important;
}
.mnw-task-media:not(#m-x) .mnw-media-image-btn {
    border: 0 !important;
    border-radius: 16px !important;
    background: var(--mnwr-getoent) !important;
    box-shadow: none !important;
}

/* ---------- Frage in Textschrift ---------- */
.mnw-task-text:not(#m-x) {
    color: var(--mnwr-tinte) !important;
}

/* ---------- Antworten (Multiple Choice, Text): gleich breite Zeilen ---------- */
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    justify-content: stretch !important;
    margin: 18px 0 !important;
}
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-quiz-choice {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 56px !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: var(--mnwr-getoent) !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: left !important;
    font-family: inherit !important;
    color: var(--mnwr-tinte) !important;
}
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-choice-head {
    flex: none !important;
}
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-choice-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-choice-text {
    font-weight: 500 !important;
    color: inherit !important;
}

/* Raster mit Bildern/Audio/Video: gleiche Fläche, ohne Rand */
.mnw-quiz-choices-grid:not(#m-x) .mnw-quiz-choice {
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--mnwr-getoent) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Hover (nur Maus) */
@media (hover: hover) {
    .mnw-quiz-choices:not(:has(.correct, .wrong, .correct-answer)) .mnw-quiz-choice:not(#m-x):not(#m-y):not(.selected):not(.disabled):hover {
        background: var(--mnwr-tuerkis-hell) !important;
        transform: none !important;
        box-shadow: none !important;
    }
}
@media (hover: hover) {
    .mnw-quiz-choices:has(.correct, .wrong, .correct-answer) .mnw-quiz-choice:not(#m-x):not(#m-y):not(.correct):not(.wrong):not(.correct-answer):hover {
        background: var(--mnwr-getoent) !important;
    }
}
.mnw-quiz-choice:not(#m-x):focus-visible {
    outline: 3px solid var(--mnwr-tuerkis) !important;
    outline-offset: 2px !important;
}

/* Buchstabe als ruhiges Tastenkärtchen */
.mnw-quiz-choice:not(#m-x) .mnw-choice-letter {
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--mnwr-leise) !important;
    box-shadow: 0 1px 0 rgba(26, 52, 56, .12) !important;
    font-family: inherit !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
}

/* Einfachauswahl: kein zusätzlicher Radioknopf (Buchstabe reicht).
   Mehrfachauswahl behält ihr Kästchen. */
.mnw-quiz-choice:not(#m-x) .mnw-choice-indicator-single {
    display: none !important;
}

/* Gewählt */
.mnw-quiz-choice.selected:not(#m-x):not(#m-y) {
    background: var(--mnwr-tuerkis-hell) !important;
    box-shadow: inset 0 0 0 2px var(--mnwr-tuerkis) !important;
}
.mnw-quiz-choice.selected:not(#m-x):not(#m-y) .mnw-choice-letter {
    background: var(--mnwr-tuerkis) !important;
    color: #fff !important;
}

/* Nach dem Prüfen: richtig / falsch / Lösung – immer mit Zeichen, nie nur Farbe */
.mnw-quiz-choice.correct:not(#m-x):not(#m-y),
.mnw-quiz-choice.correct-answer:not(#m-x):not(#m-y) {
    background: var(--mnwr-gut-hell) !important;
    box-shadow: inset 0 0 0 2px var(--mnwr-gut) !important;
    border-style: solid !important;
}
.mnw-quiz-choice.correct:not(#m-x):not(#m-y) .mnw-choice-letter,
.mnw-quiz-choice.correct-answer:not(#m-x):not(#m-y) .mnw-choice-letter {
    background: var(--mnwr-gut) !important;
    color: #fff !important;
}
.mnw-quiz-choice.wrong:not(#m-x):not(#m-y) {
    background: var(--mnwr-falsch-hell) !important;
    box-shadow: inset 0 0 0 2px var(--mnwr-falsch) !important;
}
.mnw-quiz-choice.wrong:not(#m-x):not(#m-y) .mnw-choice-letter {
    background: var(--mnwr-falsch) !important;
    color: #fff !important;
}
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-quiz-choice.correct:not(#m-y)::after,
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-quiz-choice.correct-answer:not(#m-y)::after,
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-quiz-choice.wrong:not(#m-y)::after {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: none !important;
    width: 22px !important;
    height: 22px !important;
    margin-left: auto !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
    border: 0 !important;
    opacity: 1 !important;
}
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-quiz-choice.correct:not(#m-y)::after,
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-quiz-choice.correct-answer:not(#m-y)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8A4C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important;
}
.mnw-quiz-choices:not(.mnw-quiz-choices-grid):not(#m-x) .mnw-quiz-choice.wrong:not(#m-y)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2412D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") !important;
}

/* Tastaturhinweis: klein, nur am Computer */
.mnw-quiz-hint:not(#m-x) {
    color: var(--mnwr-leise) !important;
    text-align: center !important;
}
@media (hover: none), (max-width: 600px) {
    .mnw-quiz-hint:not(#m-x) { display: none !important; }
}

/* ---------- Knöpfe: Hauptknopf türkis, übrige ruhige Kapseln, keine Verläufe.
   Nur in Aufgaben (Aktionsleiste, Serie, LearnDash-Aufgabe) – nicht in Werkstatt/Editoren. ---------- */
:is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn.mnw-btn-primary:not(#m-x) {
    background: var(--mnwr-tuerkis) !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 46px !important;
    padding: 0 22px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}
:is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn.mnw-btn-primary:not(#m-x):disabled,
:is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn.mnw-btn-primary:not(#m-x)[disabled] {
    opacity: .4 !important;
    cursor: not-allowed !important;
}
:is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn.mnw-btn-primary:not(#m-x) .btn-icon,
:is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn.mnw-btn-primary:not(#m-x) .btn-icon * {
    color: #fff !important;
}
:is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn.mnw-btn-ghost:not(#m-x) {
    background: var(--mnwr-getoent) !important;
    background-image: none !important;
    color: var(--mnwr-tinte) !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    box-shadow: none !important;
}
@media (hover: hover) {
    :is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn.mnw-btn-ghost:not(#m-x):hover { background: var(--mnwr-tuerkis-hell) !important; }
}
:is(.mnw-actionbar, .mnw-container, .mnw-quiz-container, .mnw-free-choice-container, #mnw-quiz-area) .mnw-btn:not(#m-x):focus-visible {
    outline: 2px solid var(--mnwr-tuerkis) !important;
    outline-offset: 3px !important;
}

/* ---------- «Fehler melden»: ruhig, ohne Rahmen ---------- */
.mnw-meldeknopf:not(#m-x) {
    border: 0 !important;
    background: var(--mnwr-getoent) !important;
    color: var(--mnwr-leise) !important;
}

/* ---------- Rückmeldung (Fenster nach «Prüfen»), v3.219.1 ---------- */
.mnw-feedback-overlay:not(#m-x) {
    background: rgba(32, 38, 38, .42) !important;
}
.mnw-feedback-overlay:not(#m-x) .mnw-feedback-card {
    border-radius: 24px !important;
    padding: 36px 32px 28px !important;
    max-width: 400px !important;
    box-shadow: 0 2px 6px rgba(17, 35, 37, .06), 0 24px 60px rgba(17, 35, 37, .18) !important;
}
.mnw-feedback-overlay:not(#m-x) .mnw-feedback-icon {
    width: 64px !important;
    height: 64px !important;
    font-size: 2rem !important;
    margin-bottom: 16px !important;
    background-image: none !important;
}
.mnw-feedback-overlay.success:not(#m-x) .mnw-feedback-icon { background: var(--mnwr-gut) !important; }
.mnw-feedback-overlay.partial:not(#m-x) .mnw-feedback-icon { background: #C97A00 !important; }
.mnw-feedback-overlay.error:not(#m-x) .mnw-feedback-icon { background: var(--mnwr-falsch) !important; }
.mnw-feedback-overlay:not(#m-x) #mnw-feedback-title {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
}
.mnw-feedback-overlay.success:not(#m-x) #mnw-feedback-title { color: var(--mnwr-gut) !important; }
.mnw-feedback-overlay.partial:not(#m-x) #mnw-feedback-title { color: #A86500 !important; }
.mnw-feedback-overlay.error:not(#m-x) #mnw-feedback-title { color: var(--mnwr-falsch) !important; }
.mnw-feedback-overlay:not(#m-x) #mnw-feedback-message {
    color: var(--mnwr-leise) !important;
    margin-bottom: 22px !important;
}
.mnw-feedback-overlay:not(#m-x) .mnw-btn.mnw-btn-primary {
    background: var(--mnwr-tuerkis) !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 46px !important;
    padding: 0 26px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}
.mnw-feedback-overlay:not(#m-x) .mnw-btn.mnw-btn-secondary {
    background: var(--mnwr-getoent) !important;
    background-image: none !important;
    color: var(--mnwr-tinte) !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 46px !important;
    padding: 0 20px !important;
    box-shadow: none !important;
}
.mnw-feedback-overlay:not(#m-x) .mnw-btn:focus-visible {
    outline: 2px solid var(--mnwr-tuerkis) !important;
    outline-offset: 3px !important;
}

/* ---------- Vorspiel / Notenbild über der Aufgabe, v3.219.3 ---------- */
.mnw-prelistening-section:not(#m-x) {
    border: 0 !important;
    border-radius: 24px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: var(--mnwr-schatten) !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-icon {
    display: inline-flex !important;
    color: var(--mnwr-tuerkis) !important;
    font-size: 0 !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-title {
    color: var(--mnwr-tinte) !important;
    font-weight: 600 !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-staff,
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-staff-container {
    border: 0 !important;
    border-radius: 16px !important;
    background: var(--mnwr-getoent) !important;
    box-shadow: none !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-play,
.mnw-prelistening-section:not(#m-x) .mnw-fc-play-prelistening {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--mnwr-tuerkis) !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 46px !important;
    padding: 0 22px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-play .btn-icon,
.mnw-prelistening-section:not(#m-x) .mnw-fc-play-prelistening .btn-icon {
    display: inline-flex !important;
    background: none !important;
    color: #fff !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-loop,
.mnw-prelistening-section:not(#m-x) .mnw-metronome-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--mnwr-getoent) !important;
    background-image: none !important;
    color: var(--mnwr-tinte) !important;
    box-shadow: none !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-loop .btn-icon {
    display: inline-flex !important;
    background: none !important;
    color: inherit !important;
    padding: 0 !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-loop.active,
.mnw-prelistening-section:not(#m-x) .mnw-metronome-toggle.active {
    background: var(--mnwr-tuerkis-hell) !important;
    color: var(--mnwr-tuerkis) !important;
    box-shadow: inset 0 0 0 2px var(--mnwr-tuerkis) !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-btn:disabled {
    opacity: .55 !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-btn:focus-visible {
    outline: 2px solid var(--mnwr-tuerkis) !important;
    outline-offset: 3px !important;
}

/* =====================================================================
   v3.219.8 – Aufgabentypen im neuen Rahmen (Freigabe Manuel «Alle fünf»)
   Nur Form. Zustände (gut/falsch/aktiv/bereit/ueber …) bleiben unberührt.
   ===================================================================== */

/* 1 · Nebenknöpfe «Zurücksetzen» / «Von vorn» der neueren Typen: ruhige Kapsel */
:is(.mnwx-bm, .mnwx-eg, .mnwx-fa, .mnwx-hd, .mnwx-lu, .mnwx-nm, .mnwx-ra, .mnwx-rf, .mnwx-sz, .mnwx-sp, .mnwx-tab, .mnwx-wk, .mnwx-za, .mnwx-zo) .knopf button.neben:not(#m-x) {
    background: var(--mnwr-getoent) !important;
    background-image: none !important;
    color: var(--mnwr-tinte) !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
@media (hover: hover) {
    :is(.mnwx-bm, .mnwx-eg, .mnwx-fa, .mnwx-hd, .mnwx-lu, .mnwx-nm, .mnwx-ra, .mnwx-rf, .mnwx-sz, .mnwx-sp, .mnwx-tab, .mnwx-wk, .mnwx-za, .mnwx-zo) .knopf button.neben:not(#m-x):not(:disabled):hover {
        background: var(--mnwr-tuerkis-hell) !important;
    }
}
:is(.mnwx-bm, .mnwx-eg, .mnwx-fa, .mnwx-hd, .mnwx-lu, .mnwx-nm, .mnwx-ra, .mnwx-rf, .mnwx-sz, .mnwx-sp, .mnwx-tab, .mnwx-wk, .mnwx-za, .mnwx-zo) .knopf:not(#m-x) {
    margin-top: 10px !important;
}
.mnw-piano-reset-btn:not(#m-x) {
    background: var(--mnwr-getoent) !important;
    color: var(--mnwr-tinte) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

/* 2 · Eingabefelder: getönt, runde Ecken, beim Tippen türkiser Rahmen */
:is(.mnwx-za input[type=text], .mnwx-lu input, .mnwx-lu select, .mnwx-hd .felder input, input.mnw-quiz-answer):not(.gut):not(.falsch):not(.schlecht):not(.fast):not(.correct):not(.wrong):not(#m-x) {
    background: var(--mnwr-getoent) !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--mnwr-tinte) !important;
}
:is(.mnwx-za input[type=text], .mnwx-lu input, .mnwx-lu select, .mnwx-hd .felder input, input.mnw-quiz-answer):not(.gut):not(.falsch):not(.schlecht):not(.fast):not(.correct):not(.wrong):not(#m-x):focus {
    background: #fff !important;
    border-color: var(--mnwr-tuerkis) !important;
    box-shadow: 0 0 0 3px rgba(61, 124, 133, .14) !important;
    outline: none !important;
}
.mnwx-za input[type=text]:not(#m-x) {
    min-height: 54px !important;
    font-size: 22px !important;
    min-width: 7ch !important;
}
:is(.mnwx-za input[type=text], .mnwx-lu input, .mnwx-hd input, input.mnw-quiz-answer):is(.gut, .correct):not(#m-x) {
    border-radius: 12px !important;
}
:is(.mnwx-za input[type=text], .mnwx-lu input, .mnwx-hd input, input.mnw-quiz-answer):is(.falsch, .schlecht, .wrong, .fast):not(#m-x) {
    border-radius: 12px !important;
}

/* 3 · Zuordnen und Reihenfolge: Kärtchen weiss mit leichtem Schatten, Ziele getönt */
.mnwx-zo .el:not(.aktiv):not(.gut):not(.schlecht):not(#m-x),
.mnwx-rf .el:not(.aktiv):not(.ueber):not(.gut):not(.schlecht):not(.falsch):not(#m-x) {
    border: 0 !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(17, 35, 37, .08), 0 2px 8px rgba(17, 35, 37, .08) !important;
    color: var(--mnwr-tinte) !important;
}
.mnwx-zo .el:is(.aktiv, .gut, .schlecht):not(#m-x),
.mnwx-rf .el:is(.aktiv, .gut, .schlecht, .falsch):not(#m-x) {
    border-radius: 12px !important;
}
.mnwx-zo .ziel:not(.bereit):not(.ueber):not(#m-x) {
    border: 0 !important;
    background: var(--mnwr-getoent) !important;
    border-radius: 16px !important;
}
.mnwx-zo .ziel:is(.bereit, .ueber):not(#m-x) {
    border-radius: 16px !important;
}
.mnwx-zo .vorrat:not(.ueber):not(#m-x) {
    border: 2px dashed rgba(61, 124, 133, .25) !important;
    border-radius: 16px !important;
    background: #fff !important;
}

/* 4 · Werkzeugleisten (Noteneditor, Satz, Ergänzen): flach, getönte Knöpfe */
:is(#mnw-game, .mnw-free-choice-container, .mnw-quiz-container, #mnw-quiz-area) .mnw-toolbar:not(#m-x) {
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #fff !important;
}
:is(#mnw-game, .mnw-free-choice-container, .mnw-quiz-container, #mnw-quiz-area) .mnw-tool-label:not(#m-x) {
    color: var(--mnwr-leise) !important;
    letter-spacing: .3px !important;
}
:is(#mnw-game, .mnw-free-choice-container, .mnw-quiz-container, #mnw-quiz-area) button.mnw-tool:not(.active):not(#m-x) {
    background: var(--mnwr-getoent) !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
:is(#mnw-game, .mnw-free-choice-container, .mnw-quiz-container, #mnw-quiz-area) button.mnw-tool.active:not(#m-x) {
    border-radius: 10px !important;
}
@media (hover: hover) {
    :is(#mnw-game, .mnw-free-choice-container, .mnw-quiz-container, #mnw-quiz-area) button.mnw-tool:not(.active):not(:disabled):not(#m-x):hover {
        background: var(--mnwr-tuerkis-hell) !important;
    }
}
:is(#mnw-game, .mnw-free-choice-container, .mnw-quiz-container, #mnw-quiz-area) .mnw-key-select:not(#m-x) {
    background: var(--mnwr-getoent) !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
}

/* 5 · Harmoniediktat: Felder an den Nummern über den Noten (JS legt sie dorthin) */
.mnwx-hd .schicht input:not(.gut):not(.falsch):not(#m-x) {
    background: #fff !important;
    border-radius: 8px !important;
}

/* =====================================================================
   v3.220.0 – Kopfzeile der Übungsserie (aufgabe-kopf.js)
   ===================================================================== */
.mnw-kopf:not(#m-x) {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 1px 2px rgba(17, 35, 37, .05), 0 6px 18px rgba(17, 35, 37, .08);
    box-sizing: border-box;
    color: var(--mnwr-tinte);
    font-size: 14px;
    z-index: 60; /* v3.220.2: Menü «⋯» liegt über der Fragekarte (Meldung Manuel) */
}
.mnw-kopf.mnw-kopf-klebt:not(#m-x) {
    box-shadow: 0 2px 6px rgba(17, 35, 37, .08), 0 12px 28px rgba(17, 35, 37, .14);
}
.mnw-kopf .mnw-kopf-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 0 0 auto;
    white-space: nowrap;
}
.mnw-kopf .mnw-kopf-text strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mnw-kopf .mnw-kopf-offen {
    color: var(--mnwr-leise);
    font-size: 12.5px;
}
.mnw-kopf .mnw-kopf-punkte {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mnw-kopf .mnw-kopf-punkte .mnw-tl:not(#m-x) {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto;
    justify-content: center !important;
}
/* Übersicht öffnet über das Menü – der Gitterknopf neben den Punkten entfällt */
.mnw-kopf .mnw-tl-toggle:not(#m-x) {
    display: none !important;
}
.mnw-kopf .mnw-kopf-mehr {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--mnwr-getoent);
    color: var(--mnwr-tinte);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.mnw-kopf .mnw-kopf-mehr:hover,
.mnw-kopf .mnw-kopf-mehr[aria-expanded="true"] {
    background: var(--mnwr-tuerkis-hell);
    color: var(--mnwr-tuerkis);
}
.mnw-kopf .mnw-kopf-mehr:focus-visible,
.mnw-kopf .mnw-kopf-menue button:focus-visible {
    outline: 2px solid var(--mnwr-tuerkis);
    outline-offset: 2px;
}
.mnw-kopf .mnw-kopf-menue {
    position: absolute;
    right: 6px;
    top: calc(100% + 8px);
    z-index: 80;
    min-width: 250px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(17, 35, 37, .08), 0 16px 36px rgba(17, 35, 37, .16);
}
.mnw-kopf .mnw-kopf-menue[hidden] {
    display: none;
}
.mnw-kopf .mnw-kopf-menue button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--mnwr-tinte);
    font: inherit;
    font-size: 14.5px;
    text-align: left;
    cursor: pointer;
}
.mnw-kopf .mnw-kopf-menue button[hidden] {
    display: none;
}
.mnw-kopf .mnw-kopf-menue button svg {
    color: var(--mnwr-leise);
    flex: 0 0 auto;
}
.mnw-kopf .mnw-kopf-menue button:hover {
    background: var(--mnwr-getoent);
}
/* Was jetzt in der Kopfzeile bzw. im Menü steckt, steht nicht doppelt da */
.mnw-hat-kopf .mnw-meldeleiste:not(#m-x),
.mnw-hat-kopf .mnw-task-header .mnw-task-badge:not(#m-x),
.mnw-hat-kopf .mnw-task-header #mnw-octave-info-btn:not(#m-x) {
    display: none !important;
}
.mnw-hat-kopf .mnw-task-header .mnw-task-header-top:not(#m-x):not(:has(> :not(.mnw-task-badge):not(#mnw-octave-info-btn):not([style*="display: none"]):not([style*="display:none"]))) {
    display: none !important;
}
@media (max-width: 600px) {
    .mnw-kopf:not(#m-x) {
        gap: 10px;
        padding: 8px 8px 8px 14px;
    }
    .mnw-kopf .mnw-kopf-text strong { font-size: 13.5px; }
    .mnw-kopf .mnw-kopf-offen { font-size: 12px; }
    .mnw-kopf .mnw-kopf-menue { min-width: 0; width: min(280px, calc(100vw - 40px)); }
    /* Punkte klein, Trefferfläche gross */
    .mnw-kopf .mnw-tl-punkt:not(#m-x) { position: relative; }
    .mnw-kopf .mnw-tl-punkt:not(#m-x)::before {
        content: "";
        position: absolute;
        inset: -10px -3px;
    }
}

/* =====================================================================
   v3.221.0 – Rückmeldung an Ort, Handy-Glasleiste
   ===================================================================== */
/* Leiste mit Ergebnis und «Weiter» (game.js baut sie in die Aktionsleiste) */
#mnw-loesung-weiter:not(#m-x) {
    padding: 4px 4px 4px 8px;
}
#mnw-loesung-weiter:not(#m-x) .mnw-btn {
    min-height: 46px !important;
    padding: 0 24px !important;
}
@media (max-width: 600px) {
    #mnw-game.mnw-hat-kopf:not(#m-x) {
        padding-bottom: 96px !important;
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: var(--mnw-leiste-unten, 12px);
        z-index: 65;
        margin: 0;
        padding: 8px;
        border: 0;
        border-radius: 24px;
        background: rgba(255, 255, 255, .88);
        -webkit-backdrop-filter: saturate(1.4) blur(16px);
        backdrop-filter: saturate(1.4) blur(16px);
        box-shadow: 0 2px 6px rgba(17, 35, 37, .08), 0 12px 32px rgba(17, 35, 37, .16);
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) .mnw-actionbar-inner {
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) .mnw-btn {
        padding: 0 14px !important;
        font-size: 14px !important;
    }
    /* v3.221.6: Leiste wie in Lern-Apps – Zurück als runder Symbolknopf, «Überspringen» als ruhiger
       Textknopf, «Prüfen» füllt den Rest (rechts, mit dem Daumen gut erreichbar). */
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) .mnw-actionbar-inner {
        justify-content: flex-start !important;
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) #mnw-back-btn {
        order: 0;
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 0 !important;
        height: 46px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        gap: 0 !important;
        background: rgba(26, 52, 56, .07) !important;
        color: #111416 !important;
        border: 0 !important;
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) #mnw-back-btn .btn-icon {
        font-size: 20px !important;
        line-height: 1 !important;
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) #mnw-skip-btn {
        order: 1;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 46px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
        background: transparent !important;
        border: 0 !important;
        color: #4A5658 !important;
        box-shadow: none !important;
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) #mnw-skip-btn .btn-icon {
        display: none !important;
    }
    #mnw-game.mnw-hat-kopf #mnw-actionbar:not(#m-x) #mnw-check-btn {
        order: 2;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 46px !important;
        margin: 0 !important;
    }
    #mnw-loesung-weiter:not(#m-x) {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }
    #mnw-loesung-weiter:not(#m-x) > div {
        flex: 1 1 auto;
    }
    #mnw-loesung-weiter:not(#m-x) .mnw-btn {
        flex: 0 0 auto;
        width: auto !important;
        max-width: 46%;
        padding: 0 18px !important;
    }
}

/* =====================================================================
   v3.222.0 – Start- und Ergebnisseite der Übungsserie
   ===================================================================== */
/* Start */
.mnw-set-start:not(#m-x) { padding: 24px 0 !important; }
.mnw-set-start:not(#m-x) .mnw-set-start-box {
    width: 100%; max-width: 560px !important;
    background: #fff !important; border: 0 !important; border-radius: 24px !important;
    box-shadow: 0 1px 2px rgba(17, 35, 37, .05), 0 10px 30px rgba(17, 35, 37, .08) !important;
    padding: 32px 28px 28px !important; text-align: center;
}
.mnw-set-start:not(#m-x) .mnw-set-start-titel {
    font-size: 1.6rem !important; line-height: 1.2 !important; color: #111416 !important; margin: 0 0 12px !important;
}
.mnw-set-start:not(#m-x) .mnw-set-start-info { gap: 8px !important; margin: 0 0 24px !important; }
.mnw-set-start:not(#m-x) .mnw-set-start-info > span:not(:empty) {
    background: #F4F7F7; border-radius: 999px; padding: 5px 12px; font-size: .88rem; color: #4A5658;
}
.mnw-set-start:not(#m-x) .mnw-set-start-info strong { color: #111416 !important; }
.mnw-set-start:not(#m-x) .mnw-set-start-frage {
    font-size: 1.05rem !important; color: #111416 !important; margin: 0 0 14px !important;
}
.mnw-set-start:not(#m-x) .mnw-set-start-wahl { gap: 8px !important; }
.mnw-set-start:not(#m-x) .mnw-set-stufe {
    min-width: 58px !important; height: 50px !important; padding: 0 16px !important;
    border: 0 !important; border-radius: 999px !important; box-shadow: none !important;
    background: #F4F7F7 !important; color: #111416 !important; transform: none !important;
}
.mnw-set-start:not(#m-x) .mnw-set-stufe:hover,
.mnw-set-start:not(#m-x) .mnw-set-stufe:focus-visible {
    background: #EDF1F2 !important; color: #1F737A !important; outline: none;
    box-shadow: inset 0 0 0 2px #3D7C85 !important;
}
.mnw-set-start:not(#m-x) .mnw-set-stufe-alle { background: #3D7C85 !important; color: #fff !important; }
.mnw-set-start:not(#m-x) .mnw-set-stufe-alle:hover { background: #1F737A !important; color: #fff !important; }
.mnw-set-start:not(#m-x) .mnw-set-start-hinweis { color: #6B7778 !important; font-size: .85rem !important; margin: 16px 0 0 !important; }
.mnw-set-start:not(#m-x) .mnw-set-start-weiter {
    flex-direction: column; align-items: stretch; gap: 6px; margin: 24px 0 0 !important;
}
.mnw-set-start:not(#m-x) .mnw-set-start-weiter:not([style*="none"]) { display: flex !important; }
.mnw-set-start:not(#m-x) #mnw-set-fortsetzen {
    height: 52px !important; border: 0 !important; border-radius: 999px !important;
    background: #3D7C85 !important; color: #fff !important; font-size: 1rem !important; box-shadow: none !important;
}
.mnw-set-start:not(#m-x) #mnw-set-fortsetzen:hover { background: #1F737A !important; }
.mnw-set-start:not(#m-x) #mnw-set-neu {
    height: 44px !important; border: 0 !important; background: transparent !important;
    color: #4A5658 !important; box-shadow: none !important; font-weight: 600 !important;
}
.mnw-set-start:not(#m-x) #mnw-set-neu:hover { color: #111416 !important; text-decoration: underline; }
/* Angefangen: zuerst «Weitermachen», die Anzahl erst nach «Neu beginnen» */
.mnw-set-start[data-fortsetzen] .mnw-set-start-frage,
.mnw-set-start[data-fortsetzen] .mnw-set-start-wahl,
.mnw-set-start[data-fortsetzen] .mnw-set-start-hinweis { display: none !important; }
.mnw-set-start[data-fortsetzen] .mnw-set-start-weiter { margin-top: 8px !important; }

/* Ergebnis */
#mnw-game.mnw-fertig #mnw-kopf,
#mnw-game.mnw-fertig .mnw-kopf-platz { display: none !important; }
.mnw-summary.mnw-erg:not(#m-x) {
    padding: 8px 0 24px !important; text-align: center; background: none !important;
    max-width: 640px !important; margin: 0 auto !important;
}
.mnw-erg:not(#m-x) .mnw-erg-kopf,
.mnw-erg:not(#m-x) .mnw-erg-liste,
.mnw-erg:not(#m-x) .mnw-summary-no-details {
    background: #fff !important; border: 0 !important; border-radius: 24px !important;
    box-shadow: 0 1px 2px rgba(17, 35, 37, .05), 0 10px 30px rgba(17, 35, 37, .08) !important;
}
.mnw-erg:not(#m-x) .mnw-erg-kopf { padding: 32px 24px 26px; }
.mnw-erg-ringbox { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.mnw-erg-ring { width: 132px; height: 132px; display: block; }
.mnw-erg-ring circle { fill: none; stroke-width: 10; }
.mnw-erg-ring-spur { stroke: #EDF2F2; }
.mnw-erg-ring-wert { stroke: #3D7C85; stroke-linecap: round; animation: mnw-erg-ring .9s ease-out backwards; }
.mnw-erg[data-ton="mittel"] .mnw-erg-ring-wert { stroke: #B07D12; }
.mnw-erg[data-ton="tief"] .mnw-erg-ring-wert { stroke: #C2553D; }
@keyframes mnw-erg-ring { from { stroke-dashoffset: 326.7; } }
@media (prefers-reduced-motion: reduce) { .mnw-erg-ring-wert { animation: none; } }
.mnw-erg-prozent {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--mnwd-schrift-titel, 'Akko', sans-serif); color: #111416;
}
.mnw-erg-prozent b { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.mnw-erg-prozent span { font-size: 1.1rem; font-weight: 700; margin: 6px 0 0 2px; color: #4A5658; }
.mnw-erg:not(#m-x) .mnw-summary-title { font-size: 1.5rem !important; margin: 0 0 6px !important; color: #111416 !important; }
.mnw-erg:not(#m-x) .mnw-summary-subtitle { font-size: 1rem !important; color: #4A5658 !important; margin: 0 0 16px !important; }
.mnw-erg-zahlen { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.mnw-erg-zahlen span { background: #F4F7F7; border-radius: 999px; padding: 6px 12px; font-size: .88rem; color: #4A5658; }
.mnw-erg-zahlen b { color: #111416; }
.mnw-erg:not(#m-x) .mnw-erg-aktionen {
    display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px !important; margin: 0 !important; padding: 0 !important;
}
.mnw-erg:not(#m-x) .mnw-erg-aktionen .mnw-btn {
    height: 50px !important; padding: 0 22px !important; border: 0 !important; border-radius: 999px !important;
    font-size: 1rem !important; box-shadow: none !important;
}
.mnw-erg:not(#m-x) .mnw-erg-nochmal { background: #3D7C85 !important; color: #fff !important; }
.mnw-erg:not(#m-x) .mnw-erg-nochmal:hover { background: #1F737A !important; }
.mnw-erg:not(#m-x) .mnw-erg-falsche { background: rgba(26, 52, 56, .07) !important; color: #111416 !important; }
.mnw-erg:not(#m-x) .mnw-erg-falsche:hover { background: rgba(26, 52, 56, .12) !important; }
.mnw-erg:not(#m-x) .mnw-erg-liste { margin-top: 16px !important; padding: 20px 14px 12px !important; text-align: left; }
.mnw-erg:not(#m-x) .mnw-summary-tasks-title {
    font-size: 1.05rem !important; color: #111416 !important; margin: 0 10px 2px !important; text-align: left !important;
}
.mnw-erg-hinweis { font-size: .82rem; color: #6B7778; margin: 0 10px 10px; }
.mnw-erg:not(#m-x) .mnw-summary-task.mnw-erg-zeile {
    display: grid !important; grid-template-columns: 32px 1fr auto 14px; align-items: center; gap: 12px;
    width: 100%; min-height: 58px; margin: 0 !important; padding: 8px 10px !important;
    background: transparent !important; border: 0 !important; border-radius: 14px !important;
    box-shadow: none !important; opacity: 1 !important; text-align: left; cursor: pointer; font: inherit; color: #111416;
}
.mnw-erg:not(#m-x) .mnw-summary-task.mnw-erg-zeile + .mnw-erg-zeile { box-shadow: inset 0 1px 0 #EDF2F2 !important; }
.mnw-erg:not(#m-x) .mnw-summary-task.mnw-erg-zeile:hover,
.mnw-erg:not(#m-x) .mnw-summary-task.mnw-erg-zeile:focus-visible { background: #F4F7F7 !important; outline: none; }
.mnw-erg-zeichen {
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; background: #EEF1F1; color: #6B7778;
}
.mnw-erg-zeile[data-art="passed"] .mnw-erg-zeichen { background: #E6F4EA; color: #1F8A4C; }
.mnw-erg-zeile[data-art="failed"] .mnw-erg-zeichen { background: #FBE9E7; color: #C0392B; }
.mnw-erg-name { display: flex; flex-direction: column; min-width: 0; }
.mnw-erg-name b { font-weight: 600; font-size: .98rem; }
.mnw-erg-name small { font-size: .82rem; color: #6B7778; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mnw-erg-pkt { font-variant-numeric: tabular-nums; font-weight: 600; color: #4A5658; font-size: .92rem; }
.mnw-erg-pfeil { color: #9AA6A6; font-size: 1.2rem; }
.mnw-erg:not(#m-x) .mnw-summary-no-details { margin-top: 16px; padding: 18px 20px; color: #4A5658; }
@media (max-width: 600px) {
    .mnw-set-start:not(#m-x) .mnw-set-start-box { padding: 26px 18px 22px !important; border-radius: 22px !important; }
    .mnw-set-start:not(#m-x) .mnw-set-stufe { min-width: 0 !important; flex: 1 1 0; padding: 0 8px !important; }
    .mnw-set-start:not(#m-x) .mnw-set-start-wahl { flex-wrap: nowrap !important; }
    .mnw-erg:not(#m-x) .mnw-erg-kopf { padding: 26px 16px 20px; }
    .mnw-erg:not(#m-x) .mnw-erg-aktionen .mnw-btn { flex: 1 1 100%; }
}

/* v3.222.0: Vorspiel kompakt – eine Zeile wie in Audio-Apps (Bild Manuel: Knöpfe untereinander am Handy) */
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-controls {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
.mnw-prelistening-section:not(#m-x) .mnw-prelistening-controls > * { margin: 0 !important; }
.mnw-prelistening-section:not(#m-x) .mnw-metronome-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mnw-prelistening-section:not(#m-x) .mnw-metronome-toggle:has(input:checked),
.mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-loop.active,
.mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-loop.mnw-active {
    background: #EDF1F2 !important;
    color: #1F737A !important;
    box-shadow: inset 0 0 0 2px #3D7C85 !important;
}
@media (max-width: 600px) {
    .mnw-prelistening-section:not(#m-x) { padding: 14px 14px !important; }
    .mnw-prelistening-section:not(#m-x) .mnw-prelistening-header { margin: 0 0 10px !important; font-size: .95rem !important; }
    .mnw-prelistening-section:not(#m-x) .mnw-prelistening-controls { justify-content: flex-start !important; gap: 8px !important; }
    .mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-play,
    .mnw-prelistening-section:not(#m-x) .mnw-fc-play-prelistening {
        flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important;
        justify-content: center !important;
    }
    .mnw-prelistening-section:not(#m-x) .mnw-btn.mnw-btn-loop,
    .mnw-prelistening-section:not(#m-x) .mnw-metronome-toggle { flex: 0 0 46px !important; }
}
#mnw-game.mnw-fertig:not(#m-x) .mnw-game-area {
    background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
}
.mnw-erg:not(#m-x) .mnw-summary-tasks-title { border: 0 !important; padding: 0 !important; }
.mnw-erg:not(#m-x) p.mnw-erg-hinweis { font-size: .82rem !important; color: #6B7778 !important; margin: 0 10px 10px !important; }

/* v3.222.2: Handy – Blätterpfeile unter das System (lagen über Schlüssel und Noten und fingen Eingaben ab) */
@media (max-width: 760px) {
    #mnw-game .mnw-staff-scroll-container:not(#m-x) {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px 8px !important;
    }
    #mnw-game .mnw-staff-scroll-container:not(#m-x)::after { display: none !important; }
    #mnw-game .mnw-staff-scroll-container:not(#m-x) .mnw-staff-wrapper {
        order: 0; flex: 1 1 100% !important;
    }
    #mnw-game .mnw-staff-scroll-container:not(#m-x) .mnw-scroll-btn {
        order: 1;
        position: static !important;
        transform: none !important;
        width: 40px !important; height: 40px !important; min-width: 40px !important;
        background: rgba(26, 52, 56, .07) !important;
        color: #111416 !important;
        box-shadow: none !important;
        font-size: 22px !important;
        font-weight: 600 !important;
    }
    #mnw-game .mnw-staff-scroll-container:not(#m-x) .mnw-scroll-right { margin-left: auto !important; }
    #mnw-game .mnw-staff-scroll-container:not(#m-x) .mnw-scroll-btn:disabled { opacity: .3 !important; }
}

/* v3.222.3: Werkzeugleiste am Handy kompakt (Bild Manuel) – ohne Gruppentitel, Gruppen nebeneinander,
   Knöpfe 40 px (fingerfreundlich). 282 → ~156 px hoch. */
@media (max-width: 600px) {
    #mnw-game .mnw-toolbar:not(#m-x) { padding: 10px !important; margin-bottom: 8px !important; }
    #mnw-game .mnw-toolbar:not(#m-x) .mnw-tool-row { gap: 8px 14px !important; align-items: center !important; }
    #mnw-game .mnw-toolbar:not(#m-x) .mnw-tool-section {
        padding: 0 !important; margin: 0 !important; min-width: 0 !important; border: 0 !important;
        background: none !important; box-shadow: none !important; gap: 0 !important; flex: 0 0 auto !important; width: auto !important;
    }
    #mnw-game .mnw-toolbar:not(#m-x) .mnw-tool-label { display: none !important; }
    #mnw-game .mnw-toolbar:not(#m-x) .mnw-tool-buttons { gap: 3px !important; flex-wrap: nowrap !important; }
    #mnw-game .mnw-toolbar:not(#m-x) .mnw-tool { width: 40px !important; height: 40px !important; min-width: 40px !important; }
    #mnw-game .mnw-toolbar:not(#m-x) select {
        height: 40px !important; max-width: 150px !important; font-size: 14px !important; padding: 0 28px 0 12px !important;
    }
}

/* ==========================================================================
   v3.222.8 · LearnDash-Überprüfungen im neuen Rahmen + sichtbare Felder
   (Meldung Manuel 17.11.: Textfeld grau auf grau, Antworten ohne Kontrast).
   Nur Farbe, Rand, Schatten, Schrift – keine Grössen, kein overflow, kein
   display: Noteneditor, Klaviatur und alle Typen verhalten sich gleich.
   ========================================================================== */

/* Fragekarte der Überprüfung: weiss, ohne türkisen Rand, weicher Schatten
   (vorher #FAF8F3 mit 2 px Rand aus dem Inline-Stil des Shortcodes) */
.mnw-free-choice-editor:not(#m-x) {
    background: #fff !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: var(--mnwr-schatten) !important;
}

/* «📝 Aufgabe: …» → ruhige Fragezeile wie in der Übungsserie */
.mnw-free-choice-editor .mnw-fc-instruction:not(#m-x) {
    background: none !important;
    border: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--mnwr-tinte) !important;
    font-size: 1.12rem !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}
.mnw-free-choice-editor .mnw-fc-instruction:not(#m-x) > .mnw-fc-icon,
.mnw-free-choice-editor .mnw-fc-instruction:not(#m-x) > .mnw-fc-icon + strong {
    display: none !important;
}

/* Punkte, Schlüssel, Takt: ruhige Chips ohne Verlauf */
.mnw-free-choice-editor .mnw-fc-badge:not(#m-x) {
    background: var(--mnwr-getoent) !important;
    background-image: none !important;
    color: var(--mnwr-leise) !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}
.mnw-free-choice-editor .mnw-fc-badge:not(#m-x) .mnw-fc-emoji {
    display: none !important;
}

/* Antworten: feine Kontur, damit sie sich auch auf hellem Grund abheben.
   Zustände (gewählt, richtig, falsch, Hover) behalten ihre eigenen Regeln. */
.mnw-quiz-choices:not(#m-x) .mnw-quiz-choice:not(.selected):not(.correct):not(.wrong):not(.correct-answer):not(.disabled) {
    box-shadow: inset 0 0 0 1px rgba(26, 52, 56, .13) !important;
}

/* Eingabefelder überall: weiss mit sichtbarem Rand statt getönt ohne Rand */
:is(.mnwx-za input[type=text], .mnwx-lu input, .mnwx-lu select, .mnwx-hd .felder input, input.mnw-quiz-answer):not(.gut):not(.falsch):not(.schlecht):not(.fast):not(.correct):not(.wrong):not(#m-x):not(:focus) {
    background: #fff !important;
    border-color: #BFCCCC !important;
}

/* Knöpfe der Überprüfung (Weiter, Zurück, Beenden …): Meldo-Kapsel statt Lime */
.wpProQuiz_content .wpProQuiz_button:not(#m-x),
.wpProQuiz_content input.wpProQuiz_button:not(#m-x) {
    background: var(--mnwr-tuerkis) !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}
.wpProQuiz_content .wpProQuiz_button:not(#m-x):hover {
    filter: brightness(1.06);
}
/* Reihenfolge/Zuordnen in der weissen Überprüfungs-Karte: feiner Rand, damit weisse Kärtchen sichtbar bleiben */
.mnw-free-choice-editor .mnwx-rf .el:not(#m-x),
.mnw-free-choice-editor .mnwx-zo .vorrat button:not(#m-x){box-shadow:inset 0 0 0 1px rgba(26,52,56,.13),0 1px 2px rgba(17,35,37,.08)!important;}

/* =====================================================================
   v3.222.11 · Aktionsleiste der LearnDash-Überprüfungen
   (Bild Manuel 18.11.: «Tip» und «Weiter» lose und schief unter der Frage.)
   ld-leiste.js fasst die Knöpfe je Frage in .mnw-ld-leiste (bleibt im
   .wpProQuiz_listItem). Feste Glasleiste unten wie in den Übungsserien –
   Computer über der Spalte der Überprüfung, Handy volle Breite.
   ===================================================================== */
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) {
    position: fixed;
    z-index: 65;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(var(--mnw-ld-x, 24px) + max(0px, (var(--mnw-ld-w, 100vw) - 760px) / 2));
    width: min(760px, var(--mnw-ld-w, calc(100vw - 48px)));
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    box-shadow: 0 2px 6px rgba(17, 35, 37, .08), 0 12px 32px rgba(17, 35, 37, .16);
    clear: both;
}
.wpProQuiz_listItem .mnw-ld-leiste[data-leer="1"]:not(#m-x) { display: none; }
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) .mnw-ld-leiste-luft { flex: 1 1 auto; min-width: 0; }
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button {
    float: none !important;
    margin: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    line-height: 46px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background-image: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 0 !important; /* v3.222.12: LearnDash setzt unter 960 px 150 px */
    max-width: none !important;
    cursor: pointer;
    transition: background-color .15s ease, filter .15s ease;
}
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button[data-mnw-rolle="haupt"] {
    background: var(--mnwr-tuerkis, #3D7C85) !important;
    color: #fff !important;
    min-width: 140px !important;
}
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button[data-mnw-rolle="neben"] {
    background: rgba(26, 52, 56, .07) !important;
    color: #111416 !important;
    padding: 0 18px !important;
}
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button[data-mnw-rolle="neben"]:hover {
    background: rgba(26, 52, 56, .12) !important;
}
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button:focus-visible {
    outline: 2px solid #3D7C85 !important;
    outline-offset: 2px !important;
}
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button:disabled { opacity: .55 !important; cursor: default; }

/* Platz unter der Frage, damit nichts hinter der Leiste verschwindet */
html[data-mnw-ld-leiste] .wpProQuiz_content:not(#m-x) {
    padding-bottom: calc(var(--mnw-ld-h, 62px) + 40px) !important;
}

@media (max-width: 760px) {
    .wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) {
        left: 12px;
        width: auto;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 6px;
    }
    .wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) .mnw-ld-leiste-luft { flex: 0 0 0; }
    .wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button[data-mnw-rolle="neben"] {
        flex: 0 0 auto;
        padding: 0 14px !important;
        font-size: 14px !important;
    }
    .wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button[data-mnw-rolle="haupt"] {
        flex: 1 1 auto;
        min-width: 0 !important;
    }
    /* Restzeit (Meldo Quiz Reset) über der Leiste statt darauf */
    html[data-mnw-ld-leiste]:not(#m-x) body .mqi-timer {
        bottom: calc(var(--mnw-ld-h, 62px) + 24px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* v3.222.13: LearnDash richtet Knopftext links aus – alle Knöpfe der Überprüfung zentriert */
.wpProQuiz_content .wpProQuiz_button:not(#m-x),
.wpProQuiz_content input.wpProQuiz_button:not(#m-x) { text-align: center !important; }

/* =====================================================================
   v3.222.14 · Tipp der Überprüfung
   (Meldung Manuel 18.11.: «Tipp öffnet gar nichts».) ld-leiste.js lässt den
   echten Knopf an seinem Platz (LearnDash sucht den Hinweis daneben) und
   setzt einen Stellvertreter in die Leiste. Der Hinweis erscheint als Karte
   über der Leiste.
   ===================================================================== */
.wpProQuiz_listItem input.wpProQuiz_button[data-mnw-ld-vertreten]:not(#m-x) { display: none !important; }
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) input.wpProQuiz_button[data-mnw-ld-tipp][aria-expanded="true"] {
    background: #EEF3F4 !important;
    color: #1F737A !important;
    box-shadow: inset 0 0 0 2px #3D7C85 !important;
}
html[data-mnw-ld-leiste] .wpProQuiz_listItem .wpProQuiz_tipp:not(#m-x) {
    position: fixed !important; /* LearnDash setzt position: relative im Markup */
    z-index: 66;
    top: auto !important;
    bottom: calc(16px + var(--mnw-ld-h, 62px) + 12px + env(safe-area-inset-bottom, 0px)) !important;
    left: calc(var(--mnw-ld-x, 24px) + max(0px, (var(--mnw-ld-w, 100vw) - 760px) / 2)) !important;
    width: min(760px, var(--mnw-ld-w, calc(100vw - 48px))) !important;
    box-sizing: border-box;
    margin: 0 !important;
}
html[data-mnw-ld-leiste] .wpProQuiz_listItem .wpProQuiz_tipp:not(#m-x) > div {
    position: relative !important;
    left: auto !important; right: auto !important; bottom: auto !important; top: auto !important;
    margin: 0 !important;
    width: auto !important;
    max-height: min(50vh, 420px);
    overflow: auto;
    padding: 18px 20px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(17, 35, 37, .08), 0 12px 32px rgba(17, 35, 37, .18) !important;
    color: #111416;
    font-size: 15px;
    line-height: 1.5;
}
html[data-mnw-ld-leiste] .wpProQuiz_listItem .wpProQuiz_tipp:not(#m-x) > div::before { display: none !important; }
html[data-mnw-ld-leiste] .wpProQuiz_listItem .wpProQuiz_tipp:not(#m-x) > div h5 {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1F737A !important;
}
html[data-mnw-ld-leiste] .wpProQuiz_listItem .wpProQuiz_tipp:not(#m-x) > div p:last-child { margin-bottom: 0 !important; }
@media (max-width: 760px) {
    html[data-mnw-ld-leiste] .wpProQuiz_listItem .wpProQuiz_tipp:not(#m-x) {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        bottom: calc(12px + var(--mnw-ld-h, 62px) + 10px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* =====================================================================
   v3.222.15 · Prüfungsmodus (Vollbild)
   (Bild Manuel 18.11.: leere, schmale Leiste + «Weiter →» schwebend rechts.)
   ld-leiste.js hängt den Safari-festen Ersatzknopf #mnw-ac-proxy in die
   Leiste der aktuellen Frage. Hier sieht er aus wie der Hauptknopf.
   ===================================================================== */
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) #mnw-ac-proxy {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    height: 46px !important;
    min-height: 46px !important;
    min-width: 140px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--mnwr-tuerkis, #3D7C85) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) #mnw-ac-proxy:hover { background: #1F737A !important; }
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) #mnw-ac-proxy:focus-visible {
    outline: 2px solid #3D7C85 !important;
    outline-offset: 2px !important;
}
/* Übersichtsseite (keine Frage sichtbar): schwebt weiter, aber als Kapsel */
html[data-mnw-ld-leiste] body > #mnw-ac-proxy:not(#m-x),
body > #mnw-ac-proxy:not(#m-x) {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 46px !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(17, 35, 37, .08), 0 12px 32px rgba(17, 35, 37, .18) !important;
    touch-action: manipulation;
}
@media (max-width: 760px) {
    .wpProQuiz_listItem .mnw-ld-leiste:not(#m-x) #mnw-ac-proxy {
        flex: 1 1 auto;
        min-width: 0 !important;
    }
}

/* v3.222.16 · «Zurück» im Prüfungsmodus
   (Meldung Manuel 18.11.: «Der Zurückbutton fehlt».) quiz-init.js blendet im
   Prüfungsmodus auch LearnDashs «Zurück» per !important aus (seit 3.194, als es nur
   den schwebenden Ersatzknopf gab). In der Leiste wieder zeigen – aber nur, wenn
   LearnDash ihn selbst zeigt (Inline-Stil ohne display:none, also nicht bei Frage 1). */
.wpProQuiz_listItem .mnw-ld-leiste:not(#m-x):not(#m-y) input[name="back"].wpProQuiz_button:not([style*="display: none"]):not([style*="display:none"]) {
    display: inline-block !important;
}
