/*
 * Mathe-Trainer Plugin Styles - Version 4.0 - FINAL OHNE MODAL
 * Author: Ihr Name
 */

/* ========================================= */
/* 1. Allgemeine Basis-Styles & Container    */
/* ========================================= */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Haupt-Container des Trainers */
.mathe-trainer-container { 
    background-color: #f7f9fc;
    border: 1px solid #e0e6ed;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    padding: 35px; 
    max-width: 600px;
    margin: 40px auto; 
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    isolation: isolate; 
    position: relative;
}

.mathe-trainer-container:hover {
    transform: translateY(-5px); 
}

/* ========================================= */
/* 2. Info- und Aufgabenbereich            */
/* ========================================= */

/* Klasseninfo und Zähler */
.mathe-info {
    font-size: 1.2em;
    color: #4a5568; 
    margin-bottom: 25px;
    border-bottom: 3px solid #b3cde0; 
    padding-bottom: 15px;
    font-weight: 700; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-color: #eaf1f8; 
    padding: 10px 15px;
    border-radius: 8px;
}
.mathe-info .aufgabe-zaehler, .mathe-info .anzahl-gesamt {
    font-weight: 900;
    color: #1a75ff;
    font-size: 1.3em;
    padding: 2px 8px;
    background-color: #ffffff; 
    border-radius: 4px;
}

/* Aufgabenfrage */
.mathe-frage {
    font-size: 1.8em; 
    color: #2c3e50; 
    font-weight: 800; 
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #e6f7ff);
    border-radius: 10px;
    border: 2px solid #b3cde0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}
.mathe-frage strong {
    font-size: 1em;
}

/* Eingabebereich und Button-Gruppe */
.eingabe-bereich {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

/* ========================================= */
/* 3. Eingabefeld und Buttons              */
/* ========================================= */

.mathe-eingabe {
    flex-grow: 1;
    max-width: 220px; 
    padding: 15px;
    border: 3px solid #1a75ff; 
    border-radius: 10px;
    font-size: 1.5em; 
    text-align: center;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.mathe-eingabe:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2); 
}

/* Allgemeine Button-Styles */
.pruef-button, .neue-aufgabe-button { 
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.15em;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
}

/* Prüf-Button */
.pruef-button {
    background-color: #1a75ff;
}
.pruef-button:hover:not(:disabled) {
    background-color: #005ce6;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
.pruef-button:disabled {
    background-color: #a0b0c0;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* ========================================= */
/* 4. Feedback-Nachrichten                 */
/* ========================================= */

.ergebnis-feedback { 
    margin-top: 25px;
    padding: 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.4em; 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); 
}

.feedback.korrekt {
    background-color: #e9fbe9;
    color: #2e8b57;
    border: 2px solid #2e8b57;
}

.feedback.fehler {
    background-color: #fee9e9;
    color: #c93737;
    border: 2px solid #c93737;
}

/* ========================================= */
/* 5. Einstellungsformular                 */
/* ========================================= */

.mathe-einstellungen {
    padding: 30px;
    border: 2px solid #b3cde0;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mathe-einstellungen h4 {
    font-size: 1.6em;
    color: #1a75ff;
    margin-bottom: 25px;
    font-weight: 800;
}

.einstell-option {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.einstell-option label {
    font-size: 1.2em;
    font-weight: 600;
    color: #4a5568;
}

.anzahl-input {
    width: 80px;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 1.2em;
    text-align: center;
    -moz-appearance: textfield; 
}
.anzahl-input::-webkit-outer-spin-button,
.anzahl-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.start-test-button {
    background-color: #28a745;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.2em;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.start-test-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================= */
/* 6. Endergebnis- und Protokoll-Styles    */
/* ========================================= */

/* Container für das Endergebnis */
.end-ergebnis-bereich {
    text-align: center;
    padding: 30px 10px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.end-ergebnis {
    font-size: 1.8em;
    color: #dc3545; 
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ergebnis-summary {
    font-size: 2.2em; 
    color: #2e8b57; 
    font-weight: 900;
    margin-top: 10px;
    line-height: 1.2;
    padding: 10px 0;
    border-bottom: 2px solid #b3cde0;
    margin-bottom: 20px;
}

.aufgaben-protokoll {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    text-align: left;
}

.aufgaben-protokoll h4 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.protokoll-eintrag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    transition: background-color 0.2s;
}

.protokoll-korrekt {
    background-color: #f0fff0; 
    border-left: 6px solid #2e8b57;
}

.protokoll-fehler {
    background-color: #fff0f0; 
    border-left: 6px solid #c93737;
}

.protokoll-eintrag strong {
    flex-grow: 1;
    font-weight: 700;
    color: #444;
}

.protokoll-eintrag span {
    font-weight: 600;
    margin-left: 20px;
    white-space: nowrap; 
}

/* ========================================= */
/* 7. Modal / Popup Styles (ENTFERNT)      */
/* ========================================= */
/* Alle Modal-Styles werden entfernt, um Konflikte zu vermeiden. */
.mathe-modal-overlay, .mathe-modal-content {
    display: none !important; 
}