.orthorad-mtr-quiz{border:1px solid #d7e2ec;border-radius:14px;padding:22px;margin:24px 0;background:#fff;box-shadow:0 10px 30px rgba(20,40,70,.08)}
.mtr-quiz-header{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.mtr-quiz-kicker{font-weight:700;color:#385c7c}.mtr-quiz-header h3{margin:.2rem 0}.mtr-quiz-stats{background:#f3f7fb;border-radius:12px;padding:12px 14px;min-width:150px;font-size:.92rem}.mtr-question-meta{font-weight:700;color:#60758a;margin-bottom:8px}.mtr-question h4{font-size:1.25rem;line-height:1.35}.mtr-answers{display:grid;gap:10px;margin:18px 0}.mtr-answer{text-align:left;border:1px solid #ccd8e2;border-radius:10px;padding:12px 14px;background:#f9fbfd;cursor:pointer;transition:.15s}.mtr-answer:hover{background:#eef5fb}.mtr-answer.is-correct{border-color:#4b9f62;background:#effaf2}.mtr-answer.is-wrong{border-color:#c75050;background:#fff1f1}.mtr-answer:disabled{cursor:default}.mtr-feedback{border-left:4px solid #4b9f62;background:#f5fbf6;padding:12px 14px;margin:12px 0;border-radius:8px}.mtr-question-image{margin:14px 0}.mtr-question-image img{max-width:220px;max-height:150px;border-radius:10px;border:1px solid #dce5ed;object-fit:cover;cursor:zoom-in}.mtr-question-image figcaption{font-size:.88rem;color:#657789;margin-top:6px}.mtr-progress{height:12px;background:#edf2f7;border-radius:999px;overflow:hidden;margin:14px 0}.mtr-progress span{display:block;height:100%;background:#3a7da8}.mtr-lightbox{position:fixed;z-index:9999;inset:0;background:rgba(0,0,0,.78);align-items:center;justify-content:center;padding:32px}.mtr-lightbox img{max-width:95%;max-height:90%;border-radius:8px}.mtr-lightbox button{position:absolute;top:18px;right:24px;font-size:40px;color:#fff;background:none;border:0}
@media(max-width:700px){.mtr-quiz-header{display:block}.mtr-quiz-stats{margin-top:12px}.orthorad-mtr-quiz{padding:16px}}

.mtr-marker-stage{position:relative;display:inline-block;max-width:100%;cursor:crosshair;border-radius:10px;overflow:hidden;border:1px solid #ddd;background:#f8f9fa}
.mtr-marker-stage img{display:block;max-width:100%;height:auto}
.mtr-click-marker{position:absolute;width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#dc3545;box-shadow:0 0 0 2px rgba(0,0,0,.35);transform:translate(-50%,-50%);pointer-events:none}
.mtr-marker-hint{margin-top:8px;font-size:.9em}
.mtr-question-type-quality_check .mtr-answer{font-weight:700}

.mtr-marker-open{display:inline-flex;flex-direction:column;gap:8px;align-items:center;border:1px solid #dce5ed;background:#f8fbfd;border-radius:12px;padding:10px;cursor:pointer;color:#234;text-align:center;font-weight:700}.mtr-marker-open:hover{background:#eef5fb}.mtr-marker-open img{display:block;max-width:220px;max-height:150px;object-fit:cover;border-radius:10px}.mtr-marker-lightbox{position:fixed;z-index:10000;inset:0;background:rgba(0,0,0,.82);align-items:center;justify-content:center;padding:26px}.mtr-marker-close{position:absolute;top:18px;right:24px;font-size:40px;color:#fff;background:none;border:0}.mtr-marker-lightbox-inner{max-width:96vw;max-height:92vh;text-align:center;color:#fff}.mtr-marker-lightbox .mtr-marker-stage{background:#111;border-color:rgba(255,255,255,.25);max-width:96vw;max-height:82vh}.mtr-marker-lightbox .mtr-marker-stage img{display:block;max-width:96vw;max-height:82vh;width:auto;height:auto;cursor:crosshair}.mtr-marker-lightbox-hint{margin-top:12px;color:#fff;font-weight:700}.mtr-marker-open img{cursor:pointer}
.mtr-choice-markers{position:absolute;inset:0;pointer-events:none}.mtr-choice-marker{position:absolute;width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.85);background:transparent;color:rgba(255,255,255,.95);font-weight:800;font-size:13px;text-shadow:0 1px 2px rgba(0,0,0,.55);box-shadow:none;transform:translate(-50%,-50%);pointer-events:auto;cursor:pointer;display:flex;align-items:center;justify-content:center}.mtr-choice-marker:hover{background:rgba(255,255,255,.16);transform:translate(-50%,-50%) scale(1.08)}.mtr-choice-marker.is-correct{border-color:rgba(25,135,84,.7);background:rgba(25,135,84,.7);color:#fff}.mtr-choice-marker.is-wrong{border-color:rgba(220,53,69,.7);background:rgba(220,53,69,.7);color:#fff}.mtr-choice-marker:disabled{cursor:default;opacity:1}

.mtr-solution-link-wrap{margin:.75rem 0 0}.mtr-show-solution{font-weight:700}.mtr-solution-marker,.mtr-user-marker{position:absolute;width:28px;height:28px;border:2px solid rgba(255,255,255,.85);border-radius:50%;color:#fff;font-weight:900;font-size:13px;line-height:24px;text-align:center;transform:translate(-50%,-50%);box-shadow:none;pointer-events:none;z-index:5}.mtr-solution-marker{background:rgba(25,135,84,.7);border-color:rgba(25,135,84,.7)}.mtr-user-marker{background:rgba(220,53,69,.7);border-color:rgba(220,53,69,.7)}.mtr-tolerance-circle{position:absolute;border:3px solid rgba(25,135,84,.9);background:rgba(25,135,84,.18);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:4}





/* v1.8.5: Bild und Marker teilen sich denselben Koordinaten-Wrapper */
.mtr-marker-lightbox .mtr-marker-stage{
    position:relative!important;
    display:block!important;
    width:auto!important;
    height:auto!important;
    margin:0 auto!important;
    padding:0!important;
    line-height:0!important;
    overflow:visible!important;
}
.mtr-marker-lightbox .mtr-image-coordinate-box{
    position:relative!important;
    display:inline-block!important;
    max-width:90vw!important;
    max-height:82vh!important;
    line-height:0!important;
    margin:0 auto!important;
    overflow:hidden!important;
    border-radius:8px;
}
.mtr-marker-lightbox .mtr-image-coordinate-box > img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:90vw!important;
    max-height:82vh!important;
    object-fit:contain!important;
}
.mtr-marker-lightbox .mtr-image-coordinate-box .mtr-choice-markers{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    pointer-events:none!important;
}
.mtr-marker-lightbox .mtr-image-coordinate-box .mtr-choice-marker{
    pointer-events:auto!important;
}
.mtr-marker-lightbox .mtr-image-coordinate-box .mtr-solution-marker,
.mtr-marker-lightbox .mtr-image-coordinate-box .mtr-user-marker,
.mtr-marker-lightbox .mtr-image-coordinate-box .mtr-tolerance-circle,
.mtr-marker-lightbox .mtr-image-coordinate-box .mtr-click-marker{
    position:absolute!important;
}


/* v1.8.6: Frontend-Markerfläche exakt wie Admin: Wrapper == sichtbares Bild */
.mtr-marker-lightbox .mtr-image-coordinate-box{
    position:relative!important;
    display:inline-block!important;
    width:auto!important;
    height:auto!important;
    line-height:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#111!important;
}
.mtr-marker-lightbox .mtr-image-coordinate-box > img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:90vw!important;
    max-height:82vh!important;
    object-fit:contain!important;
}
.mtr-marker-lightbox .mtr-image-coordinate-box .mtr-choice-markers{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
}


/* v1.8.8: Chrome/Theme-Overflow-Fix für Quiz */
.orthorad-mtr-quiz,
.orthorad-mtr-quiz *{
    box-sizing:border-box;
}
.orthorad-mtr-quiz{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    clear:both!important;
}
.orthorad-mtr-quiz .mtr-quiz-header{
    display:flex!important;
    flex-wrap:wrap!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}
.orthorad-mtr-quiz .mtr-quiz-header > div:first-child{
    flex:1 1 280px!important;
    min-width:0!important;
    max-width:100%!important;
}
.orthorad-mtr-quiz .mtr-quiz-stats{
    flex:0 0 auto!important;
    max-width:100%!important;
}
.orthorad-mtr-quiz .mtr-question,
.orthorad-mtr-quiz .mtr-result{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
}
.orthorad-mtr-quiz h3,
.orthorad-mtr-quiz h4,
.orthorad-mtr-quiz p,
.orthorad-mtr-quiz .mtr-question-meta{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
}
.orthorad-mtr-quiz .mtr-answers{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}
.orthorad-mtr-quiz .mtr-answer{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
}
.orthorad-mtr-quiz .mtr-question-image{
    max-width:100%!important;
    overflow:hidden!important;
}
.orthorad-mtr-quiz .mtr-question-image img{
    max-width:100%!important;
    height:auto!important;
}
/* Accessibility-Widget-Wrapper darf das Layout nicht sprengen */
.orthorad-mtr-quiz .dvaccess-text{
    display:inline!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
}
@media(max-width:900px){
    .orthorad-mtr-quiz .mtr-quiz-header{display:block!important}
    .orthorad-mtr-quiz .mtr-quiz-stats{margin-top:12px!important}
}


/* v1.8.9: Multiple-Choice-Auswahl */
.mtr-answer.is-selected{border-color:#2f6f9f;background:#eaf4fb;box-shadow:inset 0 0 0 2px rgba(47,111,159,.18)}
.mtr-check-multiple{margin-top:4px}


/* v1.9.0: Endauswertung / Fehleranalyse */
.mtr-result-review{margin-top:18px;display:grid;gap:12px}
.mtr-review-item{border:1px solid #dce5ed;border-radius:10px;padding:12px 14px;background:#f9fbfd}
.mtr-review-item.is-correct{border-color:#8cc89b;background:#f5fbf6}
.mtr-review-item.is-wrong{border-color:#e1a3a3;background:#fff7f7}
.mtr-review-item p{margin:.45rem 0 0}


/* v1.9.4: Single Choice erst beim Weiter-Klick auswerten */
.mtr-answer.is-selected{border-color:#2f6f9f;background:#eaf4fb;box-shadow:inset 0 0 0 2px rgba(47,111,159,.18)}


/* v1.10.8 Phase 7.3 Lernsession */
.mtr-learning-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-left:8px;
    padding:3px 8px;
    border-radius:999px;
    background:#eef4ff;
    border:1px solid #cfe0ff;
    color:#174ea6;
    font-weight:700;
    font-size:.85em;
    white-space:nowrap;
}

/* v1.10.9 Phase 7.4 Spaced Repetition */
.mtr-learning-badge{background:#fff7e6;border-color:#ffd591;color:#7a4b00}


/* v1.16.21: Einklappbarer Lernfragen-Block */
.orthorad-mtr-quiz .mtr-quiz-header{
    align-items:flex-start!important;
    gap:14px!important;
}
.orthorad-mtr-quiz .mtr-quiz-toggle{
    white-space:nowrap;
    margin-left:auto;
}
.orthorad-mtr-quiz .mtr-quiz-collapsible-body{
    margin-top:14px;
}
@media(max-width:900px){
    .orthorad-mtr-quiz .mtr-quiz-toggle{
        margin-top:12px;
        margin-left:0;
        width:100%;
    }
}

/* v1.16.22: Einklappen direkt über Kopfzeilen statt separatem Button */
.orthorad-mtr-quiz .mtr-quiz-header{
    align-items:stretch!important;
}
.orthorad-mtr-quiz .mtr-quiz-header-main{
    display:flex!important;
    align-items:flex-start!important;
    gap:10px!important;
    flex:1 1 320px!important;
    padding:12px 14px!important;
    border:1px solid #d8e4ee!important;
    border-radius:12px!important;
    background:#f8fbfd!important;
    cursor:pointer!important;
    user-select:none!important;
}
.orthorad-mtr-quiz .mtr-quiz-header-main:hover{
    background:#eef6fc!important;
}
.orthorad-mtr-quiz .mtr-collapse-arrow{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:22px!important;
    min-width:22px!important;
    font-weight:900!important;
    color:#385c7c!important;
    margin-top:2px!important;
}
.orthorad-mtr-quiz .mtr-quiz-header-text{
    min-width:0!important;
}
.orthorad-mtr-quiz .mtr-quiz-header-text h3 small{
    font-size:.72em!important;
    color:#60758a!important;
    font-weight:600!important;
    white-space:nowrap!important;
}
.orthorad-mtr-quiz .mtr-quiz-toggle{
    display:none!important;
}
.orthorad-mtr-quiz .mtr-quiz-stats{
    padding:0!important;
    overflow:hidden!important;
}
.orthorad-mtr-quiz .mtr-quiz-stats-head{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    padding:10px 12px!important;
    cursor:pointer!important;
    user-select:none!important;
}
.orthorad-mtr-quiz .mtr-quiz-stats-body{
    padding:0 14px 12px 14px!important;
}
@media(max-width:900px){
    .orthorad-mtr-quiz .mtr-quiz-header-main,
    .orthorad-mtr-quiz .mtr-quiz-stats{
        width:100%!important;
    }
}

/* v1.16.23: Statistik nur innerhalb des ausgeklappten Lernfragen-Bereichs anzeigen */
.orthorad-mtr-quiz .mtr-quiz-stats-inline{
    margin:0 0 16px 0!important;
    padding:12px 14px!important;
    border:1px solid #d8e4ee!important;
    border-radius:12px!important;
    background:#f8fbfd!important;
}
.orthorad-mtr-quiz .mtr-quiz-stats-inline > strong{
    display:block!important;
    margin-bottom:6px!important;
}
.orthorad-mtr-quiz .mtr-quiz-stats-inline .mtr-quiz-stats-body{
    padding:0!important;
}


/* v1.16.25: Hinweis für Gäste nach der Auswertung */
.orthorad-mtr-quiz .mtr-guest-register-box{
    display:flex!important;
    gap:14px!important;
    align-items:flex-start!important;
    margin:18px 0!important;
    padding:16px 18px!important;
    border:1px solid #cfe0ff!important;
    border-radius:14px!important;
    background:#f5f9ff!important;
    box-shadow:0 8px 22px rgba(20,40,70,.06)!important;
}
.orthorad-mtr-quiz .mtr-guest-register-icon{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#e7f0ff!important;
    font-size:22px!important;
}
.orthorad-mtr-quiz .mtr-guest-register-content h4{
    margin:0 0 6px 0!important;
    font-size:1.12rem!important;
    color:#23384d!important;
}
.orthorad-mtr-quiz .mtr-guest-register-content p{
    margin:0 0 10px 0!important;
    color:#4d6276!important;
}
.orthorad-mtr-quiz .mtr-guest-register-content ul{
    margin:0 0 12px 0!important;
    padding-left:18px!important;
    display:grid!important;
    gap:3px!important;
}
.orthorad-mtr-quiz .mtr-guest-register-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
}
@media(max-width:700px){
    .orthorad-mtr-quiz .mtr-guest-register-box{
        display:block!important;
    }
    .orthorad-mtr-quiz .mtr-guest-register-icon{
        margin-bottom:10px!important;
    }
}
