/* Lernmodi: Lernkarte und Quiz. */

.lernbereich { max-width: 44rem; }

/* Sitzungsleiste über Karte bzw. Frage */
.sitzungsleiste {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}

.sitzungsleiste .balken { flex: 1; min-width: 8rem; margin: 0; }
.sitzungsleiste .meta { margin: 0; white-space: nowrap; }

/* ---------- Lernkarte ---------- */

.lernkarte {
    background: var(--verlauf-flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius-gross);
    padding: 2.75rem 2.25rem;
    box-shadow: var(--schatten-hoch);
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.lernkarte .frage { font-size: 1.25rem; font-weight: 550; line-height: 1.45; letter-spacing: -0.01em; }
.lernkarte .frage > :first-child { margin-top: 0; }
.lernkarte .frage > :last-child { margin-bottom: 0; }

.lernkarte .antwort {
    margin-top: 1.65rem;
    padding-top: 1.65rem;
    border-top: 1px solid var(--rand);
    text-align: left;
    color: var(--text-weich);
}

.lernkarte .antwort > :first-child { margin-top: 0; }
.lernkarte .antwort > :last-child { margin-bottom: 0; }
.lernkarte .antwort table, .lernkarte .antwort ul, .lernkarte .antwort ol { text-align: left; }

[hidden] { display: none !important; }

.bewertung { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.35rem; }
.bewertung .knopf { min-width: 6.5rem; }

kbd {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    font-family: inherit;
    font-size: 0.78em;
    font-weight: 550;
    color: var(--text-weich);
    background: var(--flaeche);
    border: 1px solid var(--rand-stark);
    border-bottom-width: 2px;
    border-radius: 5px;
}

/* ---------- Quiz ---------- */

.quizfrage { font-size: 1.2rem; line-height: 1.45; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.35rem; }
.quizfrage > :first-child { margin-top: 0; }
.quizfrage > :last-child { margin-bottom: 0; }

.optionen { list-style: none; padding: 0; margin: 1.35rem 0; display: grid; gap: 0.55rem; }

.optionen label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 1.15rem;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius-klein);
    box-shadow: var(--schatten-fein);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.optionen label:hover { border-color: var(--akzent); background: var(--akzent-weich); }
.optionen label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-weich); }
.optionen label:focus-within { outline: 2px solid var(--akzent); outline-offset: 2px; }

.optionen label.richtig { background: var(--gut-weich); border-color: var(--gut); color: var(--text); }
.optionen label.falsch { background: var(--schlecht-weich); border-color: var(--schlecht); color: var(--text); }
.optionen label.richtig:hover, .optionen label.falsch:hover { background: inherit; }

.optionen input { margin-top: 0.35rem; accent-color: var(--akzent-tief); flex: none; }
.optionen .zeichen { flex: none; width: 1.15rem; font-weight: 700; text-align: center; }
.optionen label.richtig .zeichen { color: var(--gut); }
.optionen label.falsch .zeichen { color: var(--schlecht); }

.rueckmeldung {
    margin: 1.35rem 0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-klein);
    border: 1px solid var(--rand);
    background: var(--flaeche);
}

.rueckmeldung.richtig { background: var(--gut-weich); border-color: color-mix(in srgb, var(--gut) 40%, transparent); }
.rueckmeldung.falsch { background: var(--schlecht-weich); border-color: color-mix(in srgb, var(--schlecht) 40%, transparent); }
.rueckmeldung strong { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }
.rueckmeldung.richtig strong { color: var(--gut); }
.rueckmeldung.falsch strong { color: var(--schlecht); }
.rueckmeldung > :last-child { margin-bottom: 0; }

/* ---------- Leerer Zustand ---------- */

.leer {
    text-align: center;
    color: var(--gedimmt);
    padding: 3.5rem 1.5rem;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius-gross);
    box-shadow: var(--schatten-fein);
    max-width: 38rem;
    margin: 0 auto;
}

.leer h1 { color: var(--text); }
.leer .knopf { margin-top: 0.85rem; }

.leer-zeichen {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.15rem;
    color: #fff;
    background: var(--verlauf-primaer);
    border-radius: var(--radius);
    box-shadow: var(--schatten-akzent);
}

.leer-zeichen svg { width: 1.75rem; height: 1.75rem; }

/* Trefferquote-Ring in der Quiz-Auswertung */
.quote {
    display: grid;
    place-items: center;
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: conic-gradient(var(--akzent) calc(var(--wert) * 1%), var(--bg-tief) 0);
}

.quote > span {
    display: grid;
    place-items: center;
    width: 5.6rem;
    height: 5.6rem;
    background: var(--flaeche);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 650;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
