/* Brain Pilot – Grundgestaltung der Kundenseiten (ohne externe Schriften, DSGVO-freundlich) */

:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #5b6478;
    --line: #e2e6ef;
    --line-strong: #c5ccdb;
    --input-bg: #ffffff;
    --input-border: #cfd5e2;
    --accent: #2f5bea;
    --accent-dark: #1f44c0;
    --accent-soft: #e8eeff;
    --on-accent: #ffffff;
    --success: #12805c;
    --success-soft: #e3f6ee;
    --danger: #c0352b;
    --danger-soft: #fdecea;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(23, 32, 51, .06), 0 8px 24px rgba(23, 32, 51, .06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dunkles Design: per Schalter (data-theme="dark") ... */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1420;
    --surface: #171e2d;
    --text: #e6e9f2;
    --muted: #9aa3b8;
    --line: #273149;
    --line-strong: #3a4664;
    --input-bg: #111827;
    --input-border: #33405c;
    --accent: #6d8dff;
    --accent-dark: #8ea7ff;
    --accent-soft: #1d2a4d;
    --on-accent: #0b1020;
    --success: #4cc79a;
    --success-soft: #11342a;
    --danger: #ff8378;
    --danger-soft: #3d1c1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ... oder automatisch, wenn das Gerät dunkel eingestellt ist und nichts gewählt wurde */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0f1420;
        --surface: #171e2d;
        --text: #e6e9f2;
        --muted: #9aa3b8;
        --line: #273149;
        --line-strong: #3a4664;
        --input-bg: #111827;
        --input-border: #33405c;
        --accent: #6d8dff;
        --accent-dark: #8ea7ff;
        --accent-soft: #1d2a4d;
        --on-accent: #0b1020;
        --success: #4cc79a;
        --success-soft: #11342a;
        --danger: #ff8378;
        --danger-soft: #3d1c1a;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    transition: background-color .2s, color .2s;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2rem; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 460px; }

/* Kopfzeile */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #6b4ce6);
    display: grid; place-items: center; color: #fff; font-size: .95rem; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav form { margin: 0; }

/* Hauptbereich */
main { flex: 1; padding: 40px 0 56px; }

/* Knöpfe */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface); }
.btn-link { background: none; border: none; color: var(--muted); padding: 10px 8px; }
.btn-link:hover { color: var(--text); }
.btn-block { width: 100%; }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card + .card { margin-top: 20px; }
.card-title { margin-bottom: 4px; }
.card-subtitle { color: var(--muted); margin-bottom: 24px; }

/* Formulare */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.input, select.input {
    width: 100%; padding: 11px 13px; font: inherit; color: var(--text);
    background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[readonly] { background: var(--bg); color: var(--muted); }
.input.is-invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: .85rem; margin-top: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); }
.form-footer { margin-top: 20px; text-align: center; color: var(--muted); font-size: .92rem; }

/* Hinweise */
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: .95rem; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--accent-soft); color: var(--accent-dark); }

/* Startseite */
.hero { text-align: center; padding: 32px 0 48px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 760px; margin: 0 auto .4em; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }

/* Prüfungskatalog */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.vendor { margin-bottom: 28px; }
.vendor h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.exam { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.exam .code { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; align-self: flex-start; }
.exam .name { font-weight: 650; }
.exam .meta { color: var(--muted); font-size: .88rem; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.badge-soon { font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; align-self: flex-start; margin-top: 6px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 720px) {
    .features { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .card { padding: 22px; }
    .nav .btn-ghost { display: none; }
}

/* Umschalter hell/dunkel */
.theme-toggle {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
    background: transparent; color: var(--muted); cursor: pointer;
    display: inline-grid; place-items: center; padding: 0;
    transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ===== Übungsmodus ===== */

/* Sprache: nur die gewählte Fassung zeigen */
:root:not([data-lang="de"]) .lang-de { display: none !important; }
:root[data-lang="de"] .lang-en { display: none !important; }

.lead { color: var(--muted); margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.grid-2 .card + .card { margin-top: 0; }
.stack { display: grid; gap: 10px; }
.back-link { display: inline-block; color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.btn-sm { padding: 7px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Prüfungskarten als Links */
.exam-link { color: var(--text); transition: border-color .15s, transform .15s; }
.exam-link:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.exam-cta { margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--accent); }

/* Listen (Weitermachen, Ergebnisse) */
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; overflow: hidden; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text); }
.list-row:last-child { border-bottom: none; }
.card .list-row { padding: 12px 0; }
.list-link:hover { text-decoration: none; background: var(--accent-soft); }
.card .list-link:hover { background: none; color: var(--accent); }
.pill { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

/* Prüfungsseite */
.exam-head { margin-bottom: 28px; }
.exam-head .code { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px 9px; display: inline-block; margin-bottom: 10px; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; }
.facts div { display: flex; flex-direction: column; }
.facts strong { font-size: 1.35rem; }
.facts span { color: var(--muted); font-size: .88rem; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 8px 16px; border: 1px solid var(--input-border); border-radius: 10px; cursor: pointer; font-weight: 600; background: var(--input-bg); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.alert-info.flex-between .btn { flex-shrink: 0; }

/* Frage */
.practice { max-width: 860px; }
.practice-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.practice-actions { display: flex; gap: 10px; align-items: center; }
.practice-actions form { margin: 0; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-toggle button { border: none; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .85rem; padding: 7px 12px; cursor: pointer; }
:root:not([data-lang="de"]) .lang-toggle [data-set-lang="en"],
:root[data-lang="de"] .lang-toggle [data-set-lang="de"] { background: var(--accent); color: var(--on-accent); }

.steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.step { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.step:hover { text-decoration: none; border-color: var(--line-strong); color: var(--text); }
.step.is-correct { background: var(--success-soft); color: var(--success); border-color: transparent; }
.step.is-wrong { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.step.is-current { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--text); }

.question-card { padding: 30px; }
.question-meta { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.question-body { font-size: 1.08rem; margin-bottom: 8px; }
.selection-hint { font-weight: 600; color: var(--accent); font-size: .92rem; margin: 6px 0 4px; }
.question-image { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 10px 0; }

.rich p { margin: 0 0 .5em; }
.rich p:last-child { margin-bottom: 0; }
.rich strong { font-weight: 700; }
.rich em { font-style: italic; }
.rich u { text-decoration: underline; }
.rich s { text-decoration: line-through; }
.rich code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); }
.rich ul { list-style: disc; padding-left: 1.4em; margin: 0 0 .5em; }
.rich ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 .5em; }

.options { display: grid; gap: 10px; margin-top: 18px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--input-border); border-radius: 12px; background: var(--input-bg); cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--accent); }
.option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option.is-disabled { opacity: .55; cursor: not-allowed; }
.option-letter { font-weight: 800; color: var(--muted); min-width: 1.2em; }
.option-text { flex: 1; }
.option.is-locked { cursor: default; }
.option.is-locked:hover { border-color: var(--input-border); }
.option.is-correct, .option.is-correct:hover { border-color: var(--success); background: var(--success-soft); }
.option.is-wrong, .option.is-wrong:hover { border-color: var(--danger); background: var(--danger-soft); }
.option.is-chosen .option-letter { color: var(--text); }
.option-mark { font-weight: 800; min-width: 1em; text-align: right; }
.option.is-correct .option-mark { color: var(--success); }
.option.is-wrong .option-mark { color: var(--danger); }

.verdict { border-radius: 12px; padding: 12px 16px; margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.verdict-correct { background: var(--success-soft); color: var(--success); }
.verdict-wrong { background: var(--danger-soft); color: var(--danger); }
.verdict-open { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.explanation { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.explanation > strong { display: block; margin-bottom: 6px; }
.question-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.question-footer form { margin: 0; }

/* Auswertung */
.result-hero { display: flex; gap: 28px; align-items: center; margin-bottom: 20px; border-left: 6px solid var(--danger); }
.result-hero.is-passed { border-left-color: var(--success); }
.result-score { display: flex; flex-direction: column; align-items: center; min-width: 140px; }
.result-points { font-size: 3rem; font-weight: 800; line-height: 1; }
.result-hero.is-passed .result-points { color: var(--success); }
.result-hero.is-failed .result-points { color: var(--danger); }
.topic-row { margin-bottom: 14px; }
.bar { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; border-radius: 999px; }
.bar .good { background: var(--success); }
.bar .mid { background: #d99a1e; }
.bar .low { background: var(--danger); }
.wrong-list .list-row span:first-child { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 760px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-2 .card + .card { margin-top: 0; }
    .result-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
    .result-score { align-items: flex-start; }
    .question-card { padding: 20px; }
}

/* ===== Prüfungssimulation ===== */
.badge-mode { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; margin-right: 8px; vertical-align: middle; }
.result-hero .badge-mode { margin-bottom: 8px; }
.sim-card { margin-bottom: 20px; border-top: 4px solid var(--accent); }
.text-danger { color: var(--danger); }

.timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); min-width: 96px; justify-content: center; }
.timer svg { width: 17px; height: 17px; }
.timer.is-warning { color: #b7791f; border-color: #e3b04b; }
.timer.is-critical { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }

button.step { font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.step.is-answered { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.step.is-flagged { position: relative; }
.step.is-flagged::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #e3a008; border: 2px solid var(--bg); }

.flag-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .85rem; color: var(--muted); user-select: none; }
.flag-toggle input { accent-color: #e3a008; width: 16px; height: 16px; }
.flag-toggle:has(input:checked) { color: #b7791f; font-weight: 600; }

.overview-grid { display: grid; gap: 8px; }
.overview-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.overview-item:hover { text-decoration: none; border-color: var(--accent); }
.overview-no { font-weight: 800; color: var(--muted); }
.overview-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-state { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.overview-item.is-answered .overview-state { color: var(--accent); }
.overview-item.is-open { border-color: var(--danger); background: var(--danger-soft); }
.overview-item.is-open .overview-state { color: var(--danger); }
.overview-item.is-flagged .overview-state { color: #b7791f; }

/* Strenger Prüfungsmodus */
.strict-note { font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.progress { height: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }

/* Fragennummer */
.qid { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; white-space: nowrap; cursor: help; }
.list-row .qid, .overview-text .qid { margin-right: 6px; cursor: inherit; }

/* Fehler melden */
.report { margin-top: 14px; }
.report summary { cursor: pointer; color: var(--muted); font-size: .88rem; display: inline-block; padding: 4px 0; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--text); }
.report[open] summary { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.report-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.report-form .field { margin-bottom: 12px; }
.report-feedback { font-size: .88rem; margin-bottom: 10px; }
.report-feedback:empty { display: none; }
textarea.input { resize: vertical; min-height: 70px; }

/* ===== Rechtliches & Cookie-Hinweis ===== */
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 48px; }
.legal-card h1 { margin-bottom: .3em; }
.legal-card h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal-card p, .legal-card li { line-height: 1.65; }
.legal-card ul, .legal-card ol { padding-left: 1.3em; }
.legal-card .muted, .legal-stand { color: var(--muted); }
.legal-stand { font-size: .9rem; margin-top: 0; }
.legal-inhalt { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: .95rem; }
.legal-inhalt ol { margin: 8px 0 0; columns: 2; column-gap: 28px; }
.legal-inhalt li { break-inside: avoid; }
@media (max-width: 640px) { .legal-inhalt ol { columns: 1; } }
.legal-tabelle-wrap { overflow-x: auto; margin: 12px 0 16px; }
.legal-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-tabelle th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-strong); padding: 8px 10px; }
.legal-tabelle td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.legal-tabelle code { font-size: .85em; background: var(--accent-soft); color: var(--accent-dark); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.legal-zusatz { margin-top: 1.8em; padding-top: 1.2em; border-top: 1px solid var(--line); }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { pointer-events: auto; width: 100%; max-width: 860px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 18px 20px; display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.cookie-text { flex: 1 1 380px; font-size: .93rem; }
.cookie-text p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.cookie-details { margin-top: 12px; display: grid; gap: 8px; }
.cookie-details[hidden] { display: none; }
.cookie-option { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.cookie-option input { margin-top: 3px; accent-color: var(--accent); }
.cookie-buttons { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-buttons [hidden] { display: none; }
@media (max-width: 640px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
    .cookie-buttons { width: 100%; }
    .cookie-buttons .btn-primary { flex: 1 1 0; }
}
.site-footer nav a[data-cookie-einstellungen] { cursor: pointer; }

/* ===== Verkauf: Herstellerseite, Testzugang, Gutscheine ===== */
.shop { padding-top: 8px; padding-bottom: 48px; }
.shop-head { margin-bottom: 24px; }
.shop-head .code { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px 9px; display: inline-block; margin-bottom: 10px; }
.shop-head .lead { margin-bottom: 0; max-width: 760px; }
.shop-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.shop-grid .card + .card { margin-top: 20px; }
@media (max-width: 860px) { .shop-grid { grid-template-columns: 1fr; } }
.shop h2 { font-size: 1.2rem; margin-bottom: 14px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); transition: border-color .15s, background .15s; height: 100%; }
.plan:hover .plan-body { border-color: var(--line-strong); }
.plan input:checked + .plan-body { border-color: var(--accent); background: var(--accent-soft); }
.plan input:focus-visible + .plan-body { box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-laufzeit { font-weight: 650; }
.plan-preis { font-size: 1.35rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.plan-preis s { font-size: .95rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; margin-bottom: 16px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.btn-kaufen { font-size: 1.02rem; padding-top: 13px; padding-bottom: 13px; }
.kauf-hinweis { margin-top: 12px; line-height: 1.5; }
.gutschein { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; }
.gutschein summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.gutschein-form { display: flex; gap: 8px; margin-top: 10px; }
.gutschein-form .input { flex: 1; text-transform: uppercase; }
.gutschein-aktiv { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--success-soft); color: var(--success); border-radius: 10px; padding: 8px 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.shop-exam { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.shop-exam:last-child { border-bottom: none; }
.shop-exam .code { font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.test-card select.input { width: 100%; }
.test-leiste { background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: .92rem; }
.test-leiste .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.erfolg-card { text-align: center; max-width: 820px; margin: 24px auto 0; }
.erfolg-card .exam-grid { text-align: left; margin-top: 14px; }
.erfolg-card .lead { margin-bottom: 8px; }
.erfolg-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 1.8rem; font-weight: 700; display: grid; place-items: center; margin: 0 auto 12px; }
.widerruf-formular { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 14px 18px; margin-top: 10px; }
.widerruf-formular p { margin: 6px 0; }
.formular-zeile { border-bottom: 1px solid var(--line-strong); height: 1.4em; margin-bottom: 12px !important; }

/* ===== Startseite: Bühne mit Bild ===== */
.hero-split { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; padding: 32px 0 56px; }
.hero-split .hero-bild { order: -1; }
.hero-split .hero-text { max-width: 760px; }
.hero-split h1 { margin: 0 auto .45em; max-width: none; font-size: clamp(2rem, 4.5vw, 3rem); }
.hero-split p { margin: 0 auto 26px; max-width: 36em; }
.hero-split .actions { justify-content: center; }
.hero-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.hero-split .hero-hinweis { font-size: .9rem; color: var(--muted); margin: 16px auto 0; }
.hero-bild { margin: 0; position: relative; width: 100%; max-width: 920px; }
.hero-bild::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 20px; background: var(--accent-soft); z-index: 0; }
.hero-bild img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 512 / 218; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 900px) {
    .hero-split { gap: 28px; padding-top: 20px; }
    .hero-bild { width: calc(100% - 14px); }
}

/* Kopf- und Fußbereich auf schmalen Bildschirmen ohne seitliches Scrollen */
.site-footer nav { flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 560px) {
    .site-header .container { height: auto; min-height: 64px; flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
    .site-header .nav .btn { padding: 8px 12px; font-size: .9rem; white-space: nowrap; }
    .hero-kicker { font-size: .72rem; }
}
/* ===== Ende Startseite ===== */
/* ===== Farben: zartes Blau statt Weiß (nur helles Design) ===== */
:root[data-theme="light"] {
    --bg: #e5eefa;
    --bg-verlauf: linear-gradient(180deg, #d8e5f8 0, #e3ecfa 420px, #ebf1fc 100%);
    --line: #d0dbee;
    --line-strong: #b5c4de;
    --kopf-bg: rgba(255, 255, 255, .55);
    --kopf-linie: rgba(47, 91, 234, .14);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #e5eefa;
        --bg-verlauf: linear-gradient(180deg, #d8e5f8 0, #e3ecfa 420px, #ebf1fc 100%);
        --line: #d0dbee;
        --line-strong: #b5c4de;
        --kopf-bg: rgba(255, 255, 255, .55);
        --kopf-linie: rgba(47, 91, 234, .14);
    }
}
body { background: var(--bg-verlauf, var(--bg)); background-color: var(--bg); background-attachment: fixed; }
.site-header { background: var(--kopf-bg, var(--surface)); border-bottom-color: var(--kopf-linie, var(--line)); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-footer { background: var(--kopf-bg, var(--surface)); border-top-color: var(--kopf-linie, var(--line)); }
/* ===== Ende Farben ===== */

/* ===== PayPal-Knopf ===== */
.btn-paypal { background: #ffc439; color: #111827; border: 1px solid #f0b524; display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; font-weight: 650; }
.btn-paypal:hover:not([disabled]) { background: #f5b62a; color: #111827; }
.btn-paypal:focus-visible { outline: 3px solid rgba(0, 48, 135, .35); outline-offset: 2px; }
.btn-paypal .pp-logo { height: 22px; width: auto; display: block; }
.btn-paypal .pp-text { font-weight: 800; }
/* ===== Ende PayPal-Knopf ===== */

/* ===== Drag & Drop ===== */
:root {
    --dz-item-bg: #e3efff;
    --dz-item-line: #b9d2fb;
    --dz-item-text: #13336e;
    --dz-zone-bg: #fff5eb;
    --dz-zone-line: #f0c9a2;
    --dz-zone-titel: #9a4d0e;
}
:root[data-theme="dark"] {
    --dz-item-bg: #1b2b4f;
    --dz-item-line: #33508f;
    --dz-item-text: #dbe6ff;
    --dz-zone-bg: rgba(251, 146, 60, .07);
    --dz-zone-line: rgba(251, 146, 60, .32);
    --dz-zone-titel: #fdba74;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --dz-item-bg: #1b2b4f;
        --dz-item-line: #33508f;
        --dz-item-text: #dbe6ff;
        --dz-zone-bg: rgba(251, 146, 60, .07);
        --dz-zone-line: rgba(251, 146, 60, .32);
        --dz-zone-titel: #fdba74;
    }
}
.dz { margin-top: 18px; }
.dz-hint { margin: 0 0 14px; font-weight: 600; }
.dz-hint-touch { display: block; font-weight: 400; margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .dz-hint-touch { display: none; } }
.dz-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.dz-spalte { display: grid; gap: 12px; align-content: start; min-width: 0; }
.dz-ueberschrift { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dz-pool { display: flex; flex-direction: column; gap: 8px; min-height: 64px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--bg); transition: border-color .15s, background .15s; }
.dz-leer { display: none; padding: 8px 4px; text-align: center; }
.dz.is-pool-leer .dz-leer { display: block; }

/* Ziehbare Begriffe */
.dz-item, .dz-zone { -webkit-tap-highlight-color: transparent; }
.dz-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--dz-item-text); background: var(--dz-item-bg); border: 1px solid var(--dz-item-line); border-radius: 10px; padding: 10px 12px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: box-shadow .15s, border-color .15s, opacity .15s, transform .15s; }
.dz-item:hover { border-color: var(--accent); }
.dz-item:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-color: var(--accent); }
.dz-item .rich p { margin: 0; }
.dz-text { flex: 1; min-width: 0; line-height: 1.4; }
.dz-griff { flex: none; width: 10px; height: 16px; opacity: .45; background-image: radial-gradient(currentColor 1.2px, transparent 1.3px); background-size: 5px 5px; }
.dz-item.is-gewaehlt { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dz-item.is-gezogen { opacity: .35; }
.dz-geist { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; cursor: grabbing; box-shadow: 0 12px 28px rgba(15, 23, 42, .22); border-color: var(--accent); transform-origin: 0 0; }
.dz.is-ziehen, .dz.is-ziehen * { cursor: grabbing; }

/* Zielfelder */
.dz-zone { border: 2px solid var(--dz-zone-line); background: var(--dz-zone-bg); border-radius: 14px; padding: 12px; min-height: 92px; transition: border-color .15s, background .15s, box-shadow .15s; outline: none; }
.dz-zone-titel { font-weight: 750; color: var(--dz-zone-titel); margin-bottom: 8px; }
.dz-zone-titel p { margin: 0; }
.dz-zone-inhalt { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.dz.is-waehlen .dz-drop { cursor: pointer; }
.dz.is-waehlen .dz-zone, .dz.is-waehlen .dz-pool { border-color: var(--accent); }
.dz-drop.is-ueber, .dz-drop:focus-visible { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Drop Zone: sichtbare Ablagefläche in jedem Zielfeld */
.dz-ablage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 64px; padding: 8px; border: 2px dashed var(--dz-zone-line); border-radius: 10px; background: var(--surface); color: var(--dz-zone-titel); text-align: center; transition: border-color .15s, background .15s, color .15s, min-height .15s; }
.dz-ablage-titel { font-weight: 750; font-size: .9rem; letter-spacing: .02em; }
.dz-ablage-text { font-size: .78rem; opacity: .8; }
.dz-zone:not(.is-leer) .dz-ablage { min-height: 40px; flex-direction: row; gap: 8px; }
.dz-zone:not(.is-leer) .dz-ablage-text { display: none; }
.dz.is-waehlen .dz-ablage, .dz.is-ziehen .dz-ablage { border-color: var(--accent); color: var(--accent); }
.dz-drop.is-ueber .dz-ablage { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Reihenfolge */
.dz-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: dz-nr; }
.dz-platz { display: flex; align-items: center; gap: 10px; counter-increment: dz-nr; }
.dz-platz::before { content: counter(dz-nr); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--dz-zone-titel); background: var(--surface); border: 1px solid var(--dz-zone-line); }
.dz-plaetze { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dz-plaetze:empty { display: none; }
.dz-platzhalter { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: .85rem; }
.dz-platzhalter::after { content: ""; flex: 1; height: 42px; border: 1px dashed var(--dz-zone-line); border-radius: 10px; }
.dz-reihe .dz-liste:empty + .dz-plaetze { margin-top: 0; }

/* Auflösung */
.dz-loesung .dz-item, .dz-item.is-fest { cursor: default; touch-action: auto; }
.dz-item.is-fest:hover { border-color: var(--dz-item-line); }
.dz-board-loesung { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dz-loesung .dz-item:has(.dz-bei) { flex-wrap: wrap; row-gap: 4px; }
.dz-loesung .dz-item:has(.dz-bei) .dz-text { flex-basis: 100%; }
.dz-loesung .dz-item:has(.dz-bei) .dz-marke { flex-basis: 100%; }
.dz-item.is-richtig { background: var(--success-soft); border-color: var(--success); color: var(--text); }
.dz-item.is-falsch { background: var(--danger-soft); border-color: var(--danger); color: var(--text); }
.dz-item.is-fehlt { background: var(--surface); border: 1px dashed var(--success); color: var(--text); }
.dz-marke { flex: none; font-weight: 800; display: inline-flex; gap: 6px; align-items: baseline; }
.dz-item.is-richtig .dz-marke { color: var(--success); }
.dz-item.is-falsch .dz-marke { color: var(--danger); }
.dz-item.is-fehlt .dz-marke { color: var(--muted); }
.dz-bei { font-weight: 500; font-size: .8rem; }
.dz-zone.is-fest { border-style: solid; }
.dz-zone-ablenker { background: var(--bg); border-color: var(--line-strong); }
.dz-zone-ablenker .dz-zone-titel { color: var(--muted); }
.dz-liste-loesung { counter-reset: dz-nr; }

@media (max-width: 720px) {
    .dz-board { grid-template-columns: 1fr; }
    .dz-pool { position: sticky; top: 8px; z-index: 5; max-height: 45vh; overflow: auto; box-shadow: var(--shadow); background: var(--surface); }
}
/* ===== Ende Drag & Drop ===== */

/* ===== Lernthemen ===== */
.lt-suche { margin-bottom: 10px; }
.lt-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 280px; overflow: auto; padding: 2px; }
.lt-chip { position: relative; }
.lt-chip[hidden] { display: none; }
.lt-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lt-chip > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--input-border); border-radius: 999px; background: var(--input-bg); cursor: pointer; font-size: .92rem; line-height: 1.3; transition: border-color .15s, background .15s; user-select: none; }
.lt-chip > span:hover { border-color: var(--accent); }
.lt-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.lt-chip input:checked + span::before { content: "✓"; color: var(--accent); font-weight: 800; }
.lt-chip input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
.lt-anzahl { font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 7px; }
.lt-ergebnis { margin-top: 24px; }
.lt-zeile { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.lt-zeile:first-of-type { border-top: 0; }
.lt-zeile-text { flex: 1; min-width: 0; }
.lt-zeile .bar { margin-top: 6px; }
/* ===== Ende Lernthemen ===== */

/* ===== Gutschein-Knopf ===== */
.gutschein { margin-top: 14px; padding-top: 0; border-top: 0; }
.gutschein details > summary.btn-gutschein { list-style: none; }
.gutschein details > summary.btn-gutschein::-webkit-details-marker { display: none; }
.gutschein summary.btn-gutschein {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; box-sizing: border-box; padding: 11px 16px; border-radius: 10px;
    background: var(--surface, #fff); color: var(--success, #12805c);
    border: 2px dashed #10b981; font-weight: 650; font-size: 1rem; cursor: pointer; user-select: none;
    transition: background .15s;
}
.gutschein summary.btn-gutschein:hover { background: var(--success-soft, #e3f6ee); }
.gutschein summary.btn-gutschein:focus-visible { outline: 3px solid rgba(16, 185, 129, .35); outline-offset: 2px; }
.gutschein details[open] > summary.btn-gutschein { background: var(--success-soft, #e3f6ee); border-style: solid; }
.btn-gutschein .gs-logo { width: 30px; height: 30px; flex-shrink: 0; }
.btn-gutschein .gs-pfeil { width: 16px; height: 16px; opacity: .7; transition: transform .2s; }
.gutschein details[open] .gs-pfeil { transform: rotate(180deg); }
/* ===== Ende Gutschein-Knopf ===== */

/* ===== Breite ===== */
.container:not(.narrow):not(.legal) { max-width: 1440px; padding-left: 28px; padding-right: 28px; }
.hero-bild { max-width: 1360px; }
.hero-split .hero-text { max-width: 860px; }
@media (max-width: 720px) { .container:not(.narrow):not(.legal) { padding-left: 16px; padding-right: 16px; } }
/* ===== Ende Breite ===== */

/* ===== Logo schlicht ===== */
.brand.brand-schlicht { gap: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--text); }
.brand-schlicht .brand-4 { color: var(--accent); }
.brand-schlicht .brand-me { color: var(--muted); font-weight: 600; }
/* ===== Ende Logo schlicht ===== */

/* ===== Sprachwahl ===== */
.sprachwahl { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.flagge {
    display: inline-grid; place-items: center; width: 30px; height: 22px; padding: 2px;
    border-radius: 5px; border: 1px solid transparent; opacity: .55;
    transition: opacity .15s, border-color .15s, transform .15s;
}
.flagge svg { display: block; width: 100%; height: 100%; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.flagge:hover, .flagge:focus-visible { opacity: 1; transform: translateY(-1px); }
.flagge.aktiv { opacity: 1; border-color: var(--accent); }
.sprach-hinweis { margin: 16px auto 0; }
@media (max-width: 720px) {
    .sprachwahl { gap: 2px; margin-left: 0; }
    .flagge { width: 26px; height: 19px; }
}
/* ===== Ende Sprachwahl ===== */

/* ===== Zurück zur Prüfung ===== */
.pruefung-zurueck {
    display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
    margin-bottom: 20px; padding: 7px 18px 7px 7px;
    background: var(--surface); color: var(--text); text-decoration: none;
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pruefung-zurueck:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 4px 14px rgba(47, 91, 234, .14); transform: translateY(-1px); }
.pruefung-zurueck .pz-pfeil {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--accent); color: var(--on-accent, #fff); transition: transform .15s;
}
.pruefung-zurueck .pz-pfeil svg { width: 18px; height: 18px; }
.pruefung-zurueck:hover .pz-pfeil { transform: translateX(-3px); }
.pruefung-zurueck .pz-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pruefung-zurueck .pz-label { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pruefung-zurueck .pz-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.pruefung-zurueck .pz-code {
    flex: none; padding: 1px 7px; border-radius: 6px; font-size: .82rem; font-weight: 700;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.pruefung-zurueck .pz-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Ende Zurück zur Prüfung ===== */

/* ===== Startknöpfe auf einer Höhe ===== */
@media (min-width: 761px) {
    .grid-2:has(.uebung-oben) > .card > .card-subtitle, .grid-2:has(.uebung-oben) .sim-card > .card-subtitle { min-height: 3.2em; }
}
.sim-card { padding-top: 25px; }
/* ===== Ende Startknöpfe auf einer Höhe ===== */

/* ===== Simulation ohne Strich ===== */
.sim-card { border-top: 1px solid var(--line); padding-top: 28px; }
/* ===== Ende Simulation ohne Strich ===== */

/* ===== Prüfungskopf Infos neben Titel ===== */
.exam-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 761px) {
    /* Kopf als Karte über die ganze Breite: links Name, rechts die Infos –
       die Infos beginnen auf einer Linie mit dem Text der Karte „Prüfungssimulation“ */
    .exam-head {
        display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        column-gap: 87.2px; align-items: center;   /* 2,2 × 20px Kartenabstand + 1,2 × 36px Innenabstand */
        padding: 28px;
    }
    .exam-head > * { grid-column: 1 / -1; }
    .exam-head > .code { justify-self: start; }
    .exam-head > h1 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
    .exam-head > .facts { grid-column: 2; grid-row: 2; justify-self: start; flex-wrap: wrap; gap: 14px 48px; }
    .exam-head > .facts strong { font-size: 2rem; line-height: 1.25; letter-spacing: -.02em; }
    .exam-head > .facts span { white-space: nowrap; }
    .exam-head > .lead { margin: 14px 0 0; }
}
/* ===== Ende Prüfungskopf Infos neben Titel ===== */

/* ===== Zugangs-Marke ===== */
.exam .exam-kopf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.exam .exam-kopf .code { align-self: auto; }
.zugang-marke {
    font-size: .8rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; line-height: inherit;
    background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted);
}
.zugang-marke.ist-frei { background: var(--success-soft); color: var(--success); }
.zugang-marke.ist-test { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
:root[data-theme="dark"] .zugang-marke.ist-test { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zugang-marke.ist-test { color: #fbbf24; } }
/* ===== Ende Zugangs-Marke ===== */

/* ===== Update-Fenster ===== */
.update-flug {
    position: fixed; left: 50%; top: 50%; z-index: 60;
    display: flex; flex-direction: column; gap: 12px;
    min-width: 620px; max-width: calc(100vw - 32px); padding: 40px 52px;
    /* satiniertes Glas: halbdurchsichtig, dahinter verschwommen */
    background: color-mix(in srgb, var(--surface) 52%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    color: var(--text); text-decoration: none;
    border: 1px solid color-mix(in srgb, #fff 45%, transparent); border-left: 9px solid var(--accent); border-radius: 26px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, .22), 0 8px 24px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: translate(calc(50vw + 100%), -50%);
    visibility: hidden; pointer-events: none;
}
.update-flug.fliegt { visibility: visible; animation: update-flug 7.2s both; }
.update-flug:hover { text-decoration: none; }
.update-flug .uf-kopf { display: flex; align-items: center; gap: 12px; }
.update-flug .uf-punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 7px var(--success-soft); }
.update-flug .uf-kicker { font-size: 1.05rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.update-flug .uf-titel { font-size: 2.7rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.update-flug .uf-code { color: var(--accent); }
.update-flug .uf-zeile { color: var(--muted); font-size: 1.4rem; }
.update-flug .uf-zeile strong { color: var(--text); font-size: 2rem; }
.update-flug .uf-datum { font-size: 1.15rem; }
@media (max-width: 700px) {
    .update-flug { min-width: 0; width: calc(100vw - 32px); padding: 26px 26px; gap: 8px; }
    .update-flug .uf-titel { font-size: 1.8rem; }
    .update-flug .uf-zeile { font-size: 1.1rem; }
    .update-flug .uf-zeile strong { font-size: 1.5rem; }
}
@keyframes update-flug {
    0%   { transform: translate(calc(50vw + 100%), -50%); animation-timing-function: cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
    17%  { transform: translate(-50%, -50%); pointer-events: auto; }
    86%  { transform: translate(-50%, -50%); animation-timing-function: cubic-bezier(.7, 0, .84, 0); pointer-events: auto; }
    100% { transform: translate(calc(-50vw - 100%), -50%); pointer-events: none; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    .update-flug.fliegt { animation-name: update-flug-ruhig; }
    @keyframes update-flug-ruhig {
        0%   { transform: translate(-50%, -50%); opacity: 0; }
        8%   { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
        90%  { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
        100% { transform: translate(-50%, -50%); opacity: 0; visibility: hidden; }
    }
}
:root[data-theme="dark"] .update-flug { border-color: rgba(255, 255, 255, .12); border-left-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .update-flug { border-color: rgba(255, 255, 255, .12); border-left-color: var(--accent); } }
/* Ältere Browser ohne Glas-Effekt: fast deckend, damit es lesbar bleibt */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .update-flug { background: color-mix(in srgb, var(--surface) 94%, transparent); } }
/* ===== Ende Update-Fenster ===== */

/* ===== Gründer-Fenster ===== */
.update-flug.uf-geschichte { width: min(780px, calc(100vw - 32px)); min-width: 0; gap: 14px; padding: 44px 56px 40px; }
.update-flug.uf-geschichte.fliegt { animation: geschichte-flug 23s both; }
/* Maus darauf: anhalten, damit man in Ruhe zu Ende lesen kann */
.update-flug.uf-geschichte.fliegt:hover { animation-play-state: paused; }
.uf-geschichte .ug-text { font-size: 1.28rem; line-height: 1.6; color: var(--text); }
.uf-geschichte .ug-wende { font-weight: 700; }
.uf-geschichte .ug-voila { margin-top: 6px; font-size: 2.4rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--text); }
.uf-geschichte .ug-marke { color: var(--accent); white-space: nowrap; }
.uf-geschichte .ug-support { margin-top: 4px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); font-size: 1.08rem; color: var(--muted); }
.uf-geschichte .ug-vier { display: inline-block; margin: 0 .04em; padding: 0 .18em; border-radius: .22em; background: var(--accent); color: #fff; transform: rotate(-4deg); }
@keyframes geschichte-flug {
    0%   { transform: translate(calc(50vw + 100%), -50%); animation-timing-function: cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
    7%   { transform: translate(-50%, -50%); pointer-events: auto; }
    95%  { transform: translate(-50%, -50%); animation-timing-function: cubic-bezier(.7, 0, .84, 0); pointer-events: auto; }
    100% { transform: translate(calc(-50vw - 100%), -50%); pointer-events: none; visibility: hidden; }
}
@media (max-width: 700px) {
    .update-flug.uf-geschichte { padding: 26px 24px; gap: 10px; }
    .uf-geschichte .ug-text { font-size: 1.02rem; line-height: 1.5; }
    .uf-geschichte .ug-voila { font-size: 1.7rem; }
    .uf-geschichte .ug-support { font-size: .92rem; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .update-flug.uf-geschichte.fliegt { animation-name: update-flug-ruhig; }
}
/* ===== Ende Gründer-Fenster ===== */

/* ===== User Requests ===== */
.ur-raster { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .ur-raster { grid-template-columns: 1fr; } }
.ur-formular { position: sticky; top: 88px; }
@media (max-width: 860px) { .ur-formular { position: static; } }
.ur-fehler { color: var(--danger, #dc2626); font-size: .88rem; margin-top: 6px; }
.ur-liste { display: grid; gap: 14px; }
.ur-eintrag { display: grid; gap: 12px; }
.ur-eintrag.ur-neu { box-shadow: 0 0 0 2px var(--success, #16a34a), 0 8px 24px rgba(15, 23, 42, .08); }
.ur-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ur-betreff { font-size: 1.08rem; }
.ur-text { white-space: pre-line; line-height: 1.55; overflow-wrap: anywhere; }
.ur-antwort { border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.ur-antwort-kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.pill.pill-warning { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
.pill.pill-info { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
:root[data-theme="dark"] .pill.pill-warning { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.pill-warning { color: #fbbf24; } }
/* Menüpunkt mit Zahl neuer Antworten */
.nav .ur-zahl { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.35em; padding: 0 .35em; margin-left: .35em; border-radius: 999px; background: var(--success, #16a34a); color: #fff; font-size: .75em; font-weight: 700; line-height: 1; }
/* ===== Ende User Requests ===== */

/* ===== Flugfenster mobil aus ===== */
/* Auf Smartphones verdecken die Fenster den Inhalt – dort ganz ausblenden */
@media (max-width: 767px) {
    .update-flug-bahn, .update-flug, .update-flug.fliegt { display: none !important; animation: none !important; }
}
/* ===== Ende Flugfenster mobil aus ===== */

/* ===== STATISCHE UEBUNG ===== */
.statisch-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.statisch-hinweis { margin-top: 6px; color: #b45309; }
.statisch-marke { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .78em; font-weight: 600; background: rgba(47, 91, 234, .12); color: #2f5bea; vertical-align: 1px; }
[data-theme="dark"] .statisch-marke { color: #9db4ff; background: rgba(157, 180, 255, .16); }
.statisch-springen { display: flex; gap: 6px; align-items: center; margin: 0; }
.statisch-springen label { white-space: nowrap; }
.statisch-springen input { width: 6.5em; padding: 4px 8px; min-height: 0; }
@media (max-width: 640px) { .statisch-springen label { display: none; } }
/* ===== /STATISCHE UEBUNG ===== */

/* ===== STATISCHE UEBUNG BLAETTERN ===== */
.steps.statisch-blaettern { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 6px; overflow-x: auto; }
.statisch-blaettern .step { flex: 0 0 auto; }
.statisch-blaettern .statisch-pfeil { font-weight: 700; font-size: 1.05em; }
.statisch-blaettern .statisch-pfeil.is-aus { opacity: .35; cursor: default; }
@media (max-width: 520px) { .statisch-blaettern .statisch-weit { display: none; } }
/* ===== /STATISCHE UEBUNG BLAETTERN ===== */

/* ===== UEBUNG ZURUECK WEITER ===== */
.uebung-blaettern { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.uebung-blaettern .is-aus { opacity: .4; pointer-events: none; cursor: default; }
/* ===== /UEBUNG ZURUECK WEITER ===== */

/* ===== UEBUNG ZURUECK WEITER OBEN ===== */
.uebung-blaettern { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.uebung-blaettern .is-aus { opacity: .4; pointer-events: none; cursor: default; }
.uebung-blaettern-oben { justify-content: center; margin: 4px 0 14px; }
/* ===== /UEBUNG ZURUECK WEITER OBEN ===== */

/* ===== UEBUNG ZUR UEBERSICHT ===== */
.btn.uebung-zur-uebersicht { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 600; white-space: nowrap; }
.btn.uebung-zur-uebersicht:hover, .btn.uebung-zur-uebersicht:focus-visible { background: #15803d; border-color: #15803d; color: #fff; }
.practice-bar { flex-wrap: wrap; gap: 10px; }
/* ===== /UEBUNG ZUR UEBERSICHT ===== */

/* ===== STATISCHE UEBUNG BEREICH ===== */
.statisch-bereich { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.statisch-bereich label { display: flex; gap: 6px; align-items: center; white-space: nowrap; font-size: .9em; }
.statisch-bereich input { width: 5.5em; padding: 4px 8px; min-height: 0; }
/* ===== /STATISCHE UEBUNG BEREICH ===== */

/* ===== LERNSTATISTIK ===== */
.ls-seite .section-title { margin-top: 22px; }
.ls-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 860px) { .ls-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ls-kachel { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; margin: 0; }
.ls-wert { font-size: 1.7rem; font-weight: 700; line-height: 1.15; color: #2f5bea; }
[data-theme="dark"] .ls-wert { color: #9db4ff; }
.ls-name { font-weight: 600; }
.ls-zusatz { font-size: .85em; opacity: .7; }
.ls-serie.is-aktiv .ls-wert { color: #ea580c; }
.ls-serie.is-aktiv .ls-wert::before { content: "🔥 "; }
.ls-trend { font-size: .85em; font-weight: 600; }
.ls-trend.ls-auf { color: #16a34a; }
.ls-trend.ls-ab { color: #dc2626; }
.ls-trend.ls-gleich { opacity: .7; }
.ls-zeile { margin: 4px 0 18px; }
.ls-verlauf-karte { margin-top: 6px; }
.ls-verlauf { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; margin-top: 10px; }
.ls-tag { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .78em; min-width: 0; }
.ls-saeule { width: 100%; max-width: 34px; height: 120px; display: flex; align-items: flex-end; border-radius: 6px; background: rgba(127, 127, 127, .10); overflow: hidden; }
.ls-saeule span { display: block; width: 100%; background: #2f5bea; border-radius: 6px 6px 0 0; }
.ls-tag.is-heute .ls-saeule span { background: #16a34a; }
.ls-tag.is-heute .ls-tag-name { font-weight: 700; }
.ls-tag-zeit { min-height: 1.2em; font-weight: 600; }
.ls-tag-fragen, .ls-tag-name { opacity: .75; white-space: nowrap; }
@media (max-width: 560px) { .ls-verlauf { gap: 3px; } .ls-tag { font-size: .66em; } }
.ls-pruefung { margin-bottom: 16px; }
.ls-pruefung-kopf { gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ls-fortschritt { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(127, 127, 127, .18); }
.ls-fortschritt span { display: block; height: 100%; }
.ls-f-sitzt { background: #16a34a; }
.ls-f-falsch { background: #dc2626; }
.ls-f-offen { background: rgba(127, 127, 127, .35); }
.ls-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .9em; }
.ls-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.ls-sim { margin: 14px 0 4px; padding: 10px 12px; border-radius: 8px; background: rgba(127, 127, 127, .08); font-size: .92em; line-height: 1.7; }
.ls-pruefung-raster { margin-top: 12px; }
.ls-zwischen { font-size: 1rem; margin: 8px 0 10px; }
.ls-schwach { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(127, 127, 127, .18); }
.ls-schwach form { margin: 0; }
.ls-hinweis { margin-top: 18px; }
.ls-konto { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; text-decoration: none; color: inherit; margin: 12px 0 18px; }
.ls-konto:hover { border-color: #2f5bea; }
.ls-konto-link { font-weight: 600; color: #2f5bea; white-space: nowrap; }
[data-theme="dark"] .ls-konto-link { color: #9db4ff; }
/* ===== /LERNSTATISTIK ===== */

/* ===== FENSTER-SCHLIESSEN ===== */
.update-flug .uf-zu {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .08);
    color: inherit;
    font: 700 18px/26px system-ui, sans-serif;
    text-align: center;
    cursor: pointer;
    opacity: .75;
}
.update-flug .uf-zu:hover,
.update-flug .uf-zu:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, .18);
    outline: none;
}
/* Fenster bleibt stehen, solange die Maus auf dem „×“ liegt */
.update-flug:has(.uf-zu:hover) { animation-play-state: paused; }
/* ===== FENSTER-SCHLIESSEN ENDE ===== */

/* ===== NEWS-FENSTER ===== */
.update-flug.uf-news .uf-titel { display: block; font-weight: 700; margin: .25rem 0 .35rem; }
.update-flug.uf-news .un-link { display: inline-block; margin-top: .5rem; font-weight: 600; }
/* Fenster, die gerade nicht fliegen, fangen keine Klicks ab (sonst trifft man das „×“ eines anderen Fensters) */
.update-flug-bahn .update-flug:not(.fliegt) { pointer-events: none; }
/* ===== NEWS-FENSTER ENDE ===== */

/* ===== NEWS-FORMATIERUNG ===== */
.update-flug.uf-news .un-text { display: block; }
.update-flug.uf-news .un-text p { margin: 0 0 .45em; }
.update-flug.uf-news .un-text > :last-child { margin-bottom: 0; }
.update-flug.uf-news .un-text h2,
.update-flug.uf-news .un-text h3 { font-size: 1.05em; font-weight: 700; margin: .2em 0 .35em; }
.update-flug.uf-news .un-text ul,
.update-flug.uf-news .un-text ol { margin: .2em 0 .45em; padding-left: 1.3em; }
.update-flug.uf-news .un-text ul { list-style: disc; }
.update-flug.uf-news .un-text ol { list-style: decimal; }
.update-flug.uf-news .un-text li { margin: .1em 0; }
.update-flug.uf-news .un-text li > p { margin: 0; }
.update-flug.uf-news .un-text strong, .update-flug.uf-news .un-text b { font-weight: 700; }
.update-flug.uf-news .un-text em, .update-flug.uf-news .un-text i { font-style: italic; }
.update-flug.uf-news .un-text u { text-decoration: underline; }
.update-flug.uf-news .un-text s { text-decoration: line-through; }
.update-flug.uf-news .un-text a { text-decoration: underline; font-weight: 600; }
/* ===== NEWS-FORMATIERUNG ENDE ===== */

/* ===== COURIER-SCHRIFT ===== */
.rich code, .rich pre, .rich pre code,
.explanation code, .explanation pre,
.question-body code, .question-body pre {
    font-family: "Courier New", Courier, "Liberation Mono", "Nimbus Mono PS", monospace;
    font-variant-ligatures: none;
}
.rich :not(pre) > code {
    font-size: 1em;
    padding: 0 .25em;
    border-radius: 4px;
    background: rgba(128, 128, 128, .15);
}
.rich pre {
    white-space: pre-wrap;
    overflow-x: auto;
    font-size: .95em;
    line-height: 1.45;
    margin: .4em 0 .7em;
    padding: .6em .8em;
    border-radius: 6px;
    background: rgba(128, 128, 128, .12);
    color: inherit;
}
.rich pre code { padding: 0; background: none; font-size: 1em; line-height: inherit; color: inherit; }
/* ===== /COURIER-SCHRIFT ===== */

/* ===== ANLEITUNG-DOWNLOAD ===== */
.frage-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 6px; padding: 10px 14px; border: 1px dashed rgba(22, 163, 74, .5); border-radius: 10px; background: rgba(22, 163, 74, .06); }
.frage-downloads-titel { font-weight: 600; font-size: .92em; }
.frage-downloads-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.frage-downloads .muted.small { flex-basis: 100%; }
.frage-downloads .alert { flex-basis: 100%; margin: 4px 0 0; }
[data-theme="dark"] .frage-downloads { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .07); }
@media (max-width: 640px) { .frage-downloads { flex-direction: column; align-items: flex-start; } }
/* ===== /ANLEITUNG-DOWNLOAD ===== */

/* ===== HERSTELLERFARBEN ===== */
/* Prüfungskacheln im Farbton des Herstellers (--hf kommt aus Admin › Hersteller) */
.exam.exam-hf {
    border-color: color-mix(in srgb, var(--hf) 32%, var(--line));
    border-top: 4px solid var(--hf);
    background: color-mix(in srgb, var(--hf) 7%, var(--surface));
}
.exam.exam-hf .code {
    color: color-mix(in srgb, var(--hf) 62%, var(--text));
    background: color-mix(in srgb, var(--hf) 18%, var(--surface));
}
.exam.exam-hf .exam-cta { color: color-mix(in srgb, var(--hf) 62%, var(--text)); }
.exam-link.exam-hf:hover { border-color: var(--hf); }
/* ===== /HERSTELLERFARBEN ===== */

/* ===== FEHLER MELDEN ===== */
.qid-gruppe { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fehler-melden-knopf { font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.4; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.fehler-melden-knopf:hover, .fehler-melden-knopf:focus-visible { color: var(--danger); border-color: var(--danger); outline: none; }
.fehler-melden-knopf.is-gemeldet { color: var(--success); border-color: var(--success); }
.question-meta .fehler-melden-knopf { margin-left: 6px; }
.question-meta .qid-gruppe .fehler-melden-knopf { margin-left: 0; }
.fehler-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.fehler-dialog::backdrop { background: rgba(10, 15, 30, .55); }
.fehler-dialog .report-form { border: 0; border-radius: 0; background: transparent; padding: 18px 20px 20px; }
.fehler-dialog .input { width: 100%; }
.fehler-dialog textarea.input { resize: vertical; min-height: 96px; }
.fehler-dialog-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.fehler-dialog-kopf h3 { margin: 0; font-size: 1.05rem; }
.fehler-dialog-zu { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; padding: 0 4px; cursor: pointer; }
.fehler-dialog-zu:hover { color: var(--text); }
.fehler-dialog-frage { margin-bottom: 14px; }
.fehler-dialog-knoepfe { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ===== TRAINING STARTEN ===== */
.btn.btn-training { background: #6cc04a; border-color: #6cc04a; color: #10300a; font-weight: 700; }
.btn.btn-training:hover, .btn.btn-training:focus-visible { background: #5cae3b; border-color: #5cae3b; color: #10300a; outline: none; box-shadow: 0 0 0 3px rgba(108, 192, 74, .35); }
/* ===== /TRAINING STARTEN ===== */

/* ===== REIHENFOLGE-SCHALTER ===== */
.rf-schalter, .field .rf-schalter { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; font-size: .92rem; font-weight: 500; cursor: pointer; user-select: none; }
.rf-schalter input { position: absolute; left: 0; top: 50%; width: 40px; height: 22px; margin: -11px 0 0; opacity: 0; cursor: pointer; }
.rf-bahn { display: inline-block; flex: none; position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
.rf-bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.rf-schalter input:checked + .rf-bahn { background: var(--accent); }
.rf-schalter input:checked + .rf-bahn::after { transform: translateX(18px); }
.rf-schalter input:focus-visible + .rf-bahn { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ===== /REIHENFOLGE-SCHALTER ===== */

/* ===== Gumroad-Kasse ===== */
.btn-gumroad { background: #ff90e8; color: #000; border: 1px solid #000; display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; font-weight: 700; box-shadow: 3px 3px 0 #000; }
.btn-gumroad:hover:not([disabled]) { background: #ff70e0; color: #000; }
.btn-gumroad:focus-visible { outline: 3px solid rgba(0, 0, 0, .35); outline-offset: 2px; }
.btn-gumroad[disabled] { box-shadow: none; opacity: .6; }
.btn-gumroad .gr-text { font-weight: 800; }
.gr-kasse { max-width: 560px; margin: 0 auto; }
.gr-kasse h1 { margin-top: 0; }
.gr-warten { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; padding: 12px 14px; border-radius: 10px; background: rgba(128, 128, 128, .08); font-size: .95rem; line-height: 1.45; }
.gr-kreis { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(128, 128, 128, .3); border-top-color: #ff90e8; animation: gr-dreh 1s linear infinite; }
@keyframes gr-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gr-kreis { animation: none; } }
/* ===== Ende Gumroad-Kasse ===== */

/* ===== Digistore24-Kasse ===== */
.btn-digistore { background: #ffc439; color: #111; border: 1px solid rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.btn-digistore:hover:not([disabled]) { background: #f2b52a; color: #111; }
.btn-digistore:focus-visible { outline: 3px solid rgba(0, 0, 0, .35); outline-offset: 2px; }
.btn-digistore[disabled] { opacity: .6; }
.ds-zahlarten { text-align: center; margin: 6px 0 0; }
.ds-kasse { max-width: 560px; margin: 0 auto; }
.ds-kasse h1 { margin-top: 0; }
.ds-kasse .btn-digistore { margin-top: 14px; }
.ds-warten { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; padding: 12px 14px; border-radius: 10px; background: rgba(128, 128, 128, .08); font-size: .95rem; line-height: 1.45; }
.ds-warten[hidden] { display: none; }
.ds-kreis { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(128, 128, 128, .3); border-top-color: #ffc439; animation: ds-dreh 1s linear infinite; }
@keyframes ds-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ds-kreis { animation: none; } }
/* ===== Ende Digistore24-Kasse ===== */

/* ===== Öffentliche Preisseite ===== */
main .container.preise-seite:not(.narrow):not(.legal) { max-width: 1100px; }
.preise-seite { padding-top: 24px; padding-bottom: 48px; }
.preise-banner { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b1020; }
.preise-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.preise-kopf { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.preise-kopf h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; }
.preise-kopf .lead { color: var(--muted); margin: 0; font-size: 1.05rem; }
.preise-hersteller { margin-bottom: 40px; }
.preise-hersteller-kopf { text-align: center; margin-bottom: 20px; }
.preise-hersteller-kopf h2 { margin: 0 0 10px; font-size: 1.35rem; }
.preise-pruefungen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.preise-pruefungen li { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.preise-pruefungen .code { font-weight: 700; color: var(--accent); }
.preise-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: stretch; }
.preis-karte { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 20px 20px; text-align: center; }
.preis-karte.ist-bester { border: 2px solid var(--accent); }
.preis-marke { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; font-weight: 700; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 3px 12px; }
.preis-laufzeit { margin: 0 0 8px; font-size: 1.1rem; }
.preis-betrag { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.preis-mwst { margin: 4px 0 10px; }
.preis-monat { margin: 0 0 18px; font-weight: 600; color: var(--success); }
.preis-karte .btn { margin-top: auto; }
.preise-hersteller .ds-zahlarten { margin-top: 12px; }
.preise-inhalt, .preise-ablauf { margin-bottom: 36px; }
.preise-inhalt h2, .preise-ablauf h2 { font-size: 1.3rem; margin: 0 0 14px; }
.preise-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.preise-liste li { position: relative; padding-left: 28px; }
.preise-liste li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.preise-schritte { list-style: none; counter-reset: schritt; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.preise-schritte li { counter-increment: schritt; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.preise-schritte li::before { content: counter(schritt); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.preise-schritte span { color: var(--muted); font-size: .95rem; }
.preise-test { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.preise-test h2 { margin: 0 0 4px; font-size: 1.2rem; }
.preise-test p { margin: 0; color: var(--muted); }
.preise-test .btn { flex: none; }
.preise-rechtliches p { margin: 0 0 6px; }
@media (max-width: 760px) {
    .preise-seite { padding-top: 16px; }
    .preise-banner { margin-bottom: 20px; }
    .preise-liste, .preise-schritte { grid-template-columns: 1fr; }
    .preise-test { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 640px) {
    /* Auf dem Handy reicht der Link im Footer – die Kopfzeile ist schon voll */
    .site-header .nav .nav-preise { display: none; }
}
/* ===== Ende Öffentliche Preisseite ===== */

/* ===== DISKUSSION ===== */
.diskussion { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.diskussion-knopf { list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; font-weight: 600; color: var(--accent); user-select: none; }
.diskussion-knopf::-webkit-details-marker { display: none; }
.diskussion-knopf::marker { content: ""; }
.diskussion-knopf:hover { color: var(--accent-dark); }
.diskussion-knopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.diskussion-icon { flex-shrink: 0; }
.diskussion-zahl { min-width: 22px; text-align: center; font-size: .78rem; font-weight: 700; line-height: 1.5; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.diskussion-wartend-zahl { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(245, 158, 11, .16); color: #9a6700; }
.diskussion-pfeil { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.diskussion[open] .diskussion-pfeil { transform: rotate(-135deg); }
.diskussion-inhalt { padding: 2px 14px 14px; border-top: 1px solid var(--line); }
.diskussion-meldung { margin: 12px 0 0; }
.diskussion-leer { color: var(--muted); margin: 12px 0; }
.diskussion-beitrag { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.diskussion-beitrag.is-admin { margin: 10px -8px 0; padding: 12px 10px; border: 1px solid rgba(108, 192, 74, .55); border-left: 4px solid #6cc04a; border-radius: 10px; background: rgba(108, 192, 74, .08); }
.diskussion-beitrag.is-wartend { opacity: .8; }
.diskussion-avatar { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.is-admin .diskussion-avatar { background: #6cc04a; color: #10300a; }
.diskussion-koerper { flex: 1; min-width: 0; }
.diskussion-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; }
.ccnp-abzeichen { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px 1px 7px; border-radius: 999px; background: #6cc04a; color: #10300a; font-size: .75rem; font-weight: 700; white-space: nowrap; cursor: help; }
.diskussion-zeit, .diskussion-sprache { color: var(--muted); font-size: .8rem; }
.diskussion-sprache { border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: .7rem; font-weight: 600; }
.diskussion-wartet { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(245, 158, 11, .16); color: #9a6700; }
.diskussion-gemeldet { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); }
:root[data-theme="dark"] .diskussion-wartet, :root[data-theme="dark"] .diskussion-wartend-zahl { color: #f5c26b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .diskussion-wartet, :root:not([data-theme="light"]) .diskussion-wartend-zahl { color: #f5c26b; } }
.diskussion-text { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.diskussion-aktionen { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; margin-top: 6px; }
.diskussion-aktionen form { margin: 0; }
.diskussion-link { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; list-style: none; }
.diskussion-link::-webkit-details-marker { display: none; }
.diskussion-link:hover, .diskussion-link:focus-visible { color: var(--danger); text-decoration: underline; outline: none; }
.diskussion-link.is-gut:hover, .diskussion-link.is-gut:focus-visible { color: var(--success); }
.diskussion-melden-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.diskussion-melden-form .input { width: auto; max-width: 100%; padding-top: 4px; padding-bottom: 4px; font-size: .85rem; }
.diskussion-form { margin-top: 14px; }
.diskussion-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.diskussion-form textarea.input { width: 100%; min-height: 96px; resize: vertical; }
.diskussion-form-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; margin-top: 8px; }
.diskussion-regeln { flex: 1 1 260px; margin: 0; color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) {
    .diskussion-inhalt { padding: 2px 10px 12px; }
    .diskussion-avatar { width: 28px; height: 28px; font-size: .7rem; }
    .diskussion-beitrag { gap: 9px; }
    .diskussion-form-fuss .btn { width: 100%; }
}
/* ===== Ende DISKUSSION ===== */

/* ===== BEISPIELFRAGEN ===== */
main .container.bsp-seite:not(.narrow):not(.legal) { max-width: 860px; }
.bsp-seite { padding-top: 24px; padding-bottom: 48px; }
.bsp-kopf { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.bsp-kopf h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; }
.bsp-kopf .lead { color: var(--muted); margin: 0; }
.bsp-gruppe { margin-bottom: 28px; }
.bsp-gruppe h2 { font-size: 1.2rem; margin: 0 0 12px; }
.bsp-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bsp-link { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; color: inherit; text-decoration: none; transition: border-color .15s; }
.bsp-link:hover, .bsp-link:focus-visible { border-color: var(--accent); }
.bsp-text { display: block; font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.bsp-pfad { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.bsp-titel { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px; }
.bsp-unterueberschrift { font-weight: 700; margin: 16px 0 8px; }
.bsp-begriffe { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.bsp-begriffe li > p { margin: 0; }
.bsp-zuordnung { margin: 0; }
.bsp-zuordnung dt { font-weight: 700; margin-top: 10px; }
.bsp-zuordnung dd { margin: 2px 0 0 18px; }
.bsp-zuordnung dt > p, .bsp-zuordnung dd > p { margin: 0; }
.bsp-loesung { margin-top: 20px; }
.bsp-loesung > summary { list-style: none; display: inline-flex; cursor: pointer; }
.bsp-loesung > summary::-webkit-details-marker { display: none; }
.bsp-loesung[open] > summary { display: none; }
.bsp-frage:has(.bsp-loesung[open]) .bsp-option[data-richtig="1"] { border-color: var(--success); background: var(--success-soft); }
.bsp-frage:has(.bsp-loesung[open]) .bsp-option[data-richtig="1"] .option-mark { color: var(--success); }
.bsp-frage:has(.bsp-loesung[open]) .bsp-option[data-richtig="1"] .option-mark::after { content: "✓"; }
.bsp-blaettern { margin-top: 20px; }
.bsp-werbung { margin-top: 28px; text-align: center; }
.bsp-werbung h2 { margin: 0 0 8px; font-size: 1.25rem; }
.bsp-werbung .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 10px; }
.bsp-marke { margin: 6px 0 0; }
@media (max-width: 640px) {
    .site-header .nav .nav-beispiele { display: none; }
    .bsp-link { padding: 12px 14px; }
}
/* ===== Ende BEISPIELFRAGEN ===== */

/* ===== NEUIGKEITEN ===== */
main .container.news-seite:not(.narrow):not(.legal) { max-width: 820px; }
.news-seite { padding-top: 24px; padding-bottom: 48px; }
.news-kopf { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.news-kopf h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; }
.news-kopf .lead { color: var(--muted); margin: 0; }
.news-liste { display: grid; gap: 14px; }
.news-eintrag { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: border-color .15s; }
.news-eintrag:hover, .news-eintrag:focus-within { border-color: var(--accent); }
.news-eintrag h2 { font-size: 1.2rem; line-height: 1.3; margin: 4px 0 8px; overflow-wrap: anywhere; }
.news-eintrag h2 a { color: inherit; text-decoration: none; }
.news-eintrag h2 a:hover { color: var(--accent); }
.news-auszug { margin: 0 0 10px; color: var(--muted); overflow-wrap: anywhere; }
.news-weiter { font-weight: 600; text-decoration: none; }
.news-nur-sprache { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.news-datum { display: block; }
.news-blaettern { margin-top: 20px; gap: 10px; flex-wrap: wrap; }
.news-pfad { margin: 0 0 14px; }
.news-vorschau { margin: 0 0 14px; }
.news-artikel h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; margin: 6px 0 16px; overflow-wrap: anywhere; }
.news-text { line-height: 1.65; overflow-wrap: anywhere; }
.news-text p { margin: 0 0 1em; }
.news-text h2 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.news-text h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.news-text ul, .news-text ol { margin: 0 0 1em; }
.news-text li { margin: .2em 0; }
.news-text li > p { margin: 0; }
.news-text blockquote { margin: 0 0 1em; padding: 6px 0 6px 16px; border-left: 4px solid var(--accent); color: var(--muted); }
.news-text a { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) {
    .site-header .nav .nav-news { display: none; }
    .news-eintrag { padding: 14px 16px; }
}
/* ===== Ende NEUIGKEITEN ===== */

/* ===== NEUIGKEITEN-BILD ===== */
.news-eintrag.mit-bild { padding-top: 0; overflow: hidden; }
.news-bild-link { display: block; margin: 0 -22px 14px; }
.news-bild { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent-soft); }
.news-artikel.mit-bild { padding-top: 0; overflow: hidden; }
.news-titelbild { display: block; width: calc(100% + 56px); max-width: none; margin: 0 -28px 20px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent-soft); }
@media (max-width: 640px) {
    .news-bild-link { margin: 0 -16px 12px; }
    .news-titelbild { width: calc(100% + 44px); margin: 0 -22px 16px; }
}
/* ===== Ende NEUIGKEITEN-BILD ===== */

/* ===== NEUIGKEITEN-KOPFBILD ===== */
.news-kopf.mit-kopfbild { max-width: none; }
.news-kopfbild-titel { margin: 0 0 14px; line-height: 0; }
.news-kopfbild { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--accent-soft); }
/* ===== Ende NEUIGKEITEN-KOPFBILD ===== */

/* ===== SPRACHKNOPF FRAGE ===== */
/* sprachKnopfUmrandung: nur Umrandung und Buchstaben in Cisco-Grün, Hintergrund durchsichtig */
.question-meta > span:first-child { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.frage-sprache-knopf { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 30px; height: 30px; min-width: 30px; padding: 0; margin-right: 8px; border: 1.5px solid #6cc04a; border-radius: 6px; background: transparent; color: #3d8f22; font: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .03em; line-height: 1; cursor: pointer; flex-shrink: 0; transition: box-shadow .15s, border-color .15s; }
.frage-sprache-knopf:hover, .frage-sprache-knopf:focus-visible { border-color: #4a9a2c; outline: none; box-shadow: 0 0 0 3px rgba(108, 192, 74, .3); }
:root[data-theme="dark"] .frage-sprache-knopf { color: #8fd772; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .frage-sprache-knopf { color: #8fd772; } }
@media (max-width: 640px) { .frage-sprache-knopf { width: 34px; height: 34px; min-width: 34px; font-size: .78rem; } }
/* ===== /SPRACHKNOPF FRAGE ===== */

/* ===== FREIGESCHALTETE-PRUEFUNGEN ===== */
/* Kopfzeile: Classroom mit Untermenü */
.nav-untermenue { position: relative; display: inline-flex; align-items: center; }
.nav-untermenue > .btn { padding-right: 4px; }
.nav-untermenue-pfeil { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 30px; padding: 0; margin-right: 2px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.nav-untermenue-pfeil svg { width: 15px; height: 15px; transition: transform .15s; }
.nav-untermenue-pfeil:hover, .nav-untermenue-pfeil:focus-visible { color: var(--accent); background: var(--accent-soft); }
.nav-untermenue-liste { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 230px; margin-top: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.nav-untermenue-liste::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-untermenue-liste a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-untermenue-liste a:hover, .nav-untermenue-liste a:focus-visible, .nav-untermenue-liste a.aktiv { background: var(--accent-soft); color: var(--accent); }
.nav-untermenue.offen .nav-untermenue-liste, .nav-untermenue:focus-within .nav-untermenue-liste { display: block; }
.nav-untermenue.offen .nav-untermenue-pfeil svg { transform: rotate(180deg); }
@media (hover: hover) {
    .nav-untermenue:hover .nav-untermenue-liste { display: block; }
}
/* Seite „Freigeschaltete Prüfungen“ */
.fp-pfad { margin: 0 0 6px; }
.fp-pfad a { color: var(--muted); }
.fp-zugang { margin-top: 26px; }
.fp-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fp-kopf h2 { margin: 0 0 2px; }
.fp-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-pill-bald { background: #fff4dc; color: #9a5b00; }
.fp-pill-geplant { background: var(--accent-soft); color: var(--accent); }
.fp-balken { height: 6px; margin-bottom: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fp-balken span { display: block; height: 100%; border-radius: 999px; background: var(--success); }
.fp-liste { margin-bottom: 0; }
.fp-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
[data-theme="dark"] .fp-pill-bald { background: rgba(251, 191, 36, .16); color: #fcd34d; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .fp-pill-bald { background: rgba(251, 191, 36, .16); color: #fcd34d; }
}
@media (max-width: 560px) {
    .site-header .nav .nav-untermenue > .btn { padding-right: 2px; }
    .nav-untermenue-pfeil { width: 22px; margin-right: 0; }
}
@media (max-width: 640px) {
    .fp-liste .list-row { flex-direction: column; align-items: flex-start; }
    .fp-knoepfe { justify-content: flex-start; }
}
/* ===== /FREIGESCHALTETE-PRUEFUNGEN ===== */

/* ===== Digistore24-Danke ===== */
.ds-danke-schritte { text-align: left; max-width: 560px; margin: 18px auto; padding-left: 1.3em; line-height: 1.55; }
.ds-danke-schritte li { margin: 6px 0; }
.ds-danke-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 14px; }
/* ===== Ende Digistore24-Danke ===== */

/* ===== Gutschein-Laufzeit ===== */
.plan-gutschein-nicht { color: var(--muted); font-style: italic; line-height: 1.35; }
/* ===== Ende Gutschein-Laufzeit ===== */

/* ===== SPANNENDE-FRAGEN ===== */
/* Knopf „☆ Spannend“ neben der Fragennummer (Übung und Simulation) */
.spannend-knopf { font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.4; color: #7a4b00; background: transparent; border: 1px solid #e0a526; border-radius: 999px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.spannend-knopf:hover, .spannend-knopf:focus-visible { background: #fff4dc; outline: none; box-shadow: 0 0 0 3px rgba(224, 165, 38, .3); }
.spannend-knopf.is-an { color: #3d2600; background: #f5b82e; border-color: #f5b82e; }
.spannend-knopf:disabled { opacity: .6; cursor: progress; }
.question-meta .spannend-knopf { margin-left: 6px; }
.question-meta .qid-gruppe .spannend-knopf { margin-left: 0; }
:root[data-theme="dark"] .spannend-knopf { color: #fcd34d; border-color: #b7861c; }
:root[data-theme="dark"] .spannend-knopf:hover { background: rgba(251, 191, 36, .14); }
:root[data-theme="dark"] .spannend-knopf.is-an { color: #2a1a00; background: #f5b82e; border-color: #f5b82e; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .spannend-knopf { color: #fcd34d; border-color: #b7861c; }
    :root:not([data-theme="light"]) .spannend-knopf:hover { background: rgba(251, 191, 36, .14); }
    :root:not([data-theme="light"]) .spannend-knopf.is-an { color: #2a1a00; background: #f5b82e; border-color: #f5b82e; }
}
/* Seite Classroom › Spannende Fragen */
.sf-seite .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sf-karte { margin-top: 20px; }
.sf-karte h2 { margin: 0 0 6px; font-size: 1.2rem; }
.sf-feld { width: 100%; min-height: 84px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }
.sf-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sf-hinweis { margin: 10px 0 0; }
.sf-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sf-kopf form { margin: 0; }
.sf-anzahl { background: var(--accent-soft); color: var(--accent); vertical-align: middle; margin-left: 4px; }
.sf-kopieren { display: flex; gap: 10px; align-items: stretch; }
.sf-kopieren .btn { white-space: nowrap; flex-shrink: 0; }
.sf-liste { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }
.sf-seite .sf-liste[readonly] { background: var(--input-bg); color: var(--text); }
.sf-kopiert { margin: 8px 0 0; color: var(--success); }
.sf-tabelle { margin-top: 14px; border-top: 1px solid var(--line); }
.sf-zeile { align-items: center; }
.sf-zeile form { margin: 0; flex-shrink: 0; }
.sf-text { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sf-auszug { flex: 1 1 260px; min-width: 0; color: var(--text); }
@media (max-width: 560px) {
    .sf-kopieren { flex-direction: column; }
    .sf-knoepfe .btn { width: 100%; }
}
/* ===== /SPANNENDE-FRAGEN ===== */

/* ===== BEISPIELFRAGEN LEER ===== */
.bsp-leer { margin-top: 8px; }
.bsp-leer > p { max-width: 560px; margin-left: auto; margin-right: auto; }
/* ===== Ende BEISPIELFRAGEN LEER ===== */

/* ===== PT-LABOR ===== */
/* Seite Classroom › PT-Labor */
.ptl-liste { display: grid; gap: 20px; }
.ptl-karte { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.card.ptl-karte + .card.ptl-karte { margin-top: 0; }
.ptl-bild a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.ptl-bild img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; transition: transform .2s ease; }
.ptl-bild a:hover img, .ptl-bild a:focus-visible img { transform: scale(1.02); }
.ptl-ohne-bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 800; font-size: 1.6rem; letter-spacing: .08em; background: var(--bg); }
.ptl-inhalt { min-width: 0; }
.ptl-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ptl-kopf h2 { margin: 0; font-size: 1.25rem; }
.ptl-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ptl-pruefung { background: var(--accent-soft); color: var(--accent); }
.ptl-entwurf { background: #fff4dc; color: #7a4b00; }
.ptl-text { overflow-wrap: anywhere; }
.ptl-text > :first-child { margin-top: 0; }
.ptl-text pre, .ptl-text code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
.ptl-text pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.ptl-aktion { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ptl-aktion .btn { display: inline-flex; align-items: center; gap: 8px; }
.ptl-datei { overflow-wrap: anywhere; }
.ptl-hilfe { margin-top: 24px; }
.ptl-hilfe h2 { margin: 0 0 8px; font-size: 1.1rem; }
.ptl-hilfe ol { margin: 0; padding-left: 1.3em; }
.ptl-hilfe li + li { margin-top: 4px; }
:root[data-theme="dark"] .ptl-entwurf { background: rgba(251, 191, 36, .16); color: #fcd34d; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ptl-entwurf { background: rgba(251, 191, 36, .16); color: #fcd34d; }
}
@media (max-width: 760px) {
    .ptl-karte { grid-template-columns: 1fr; gap: 16px; }
    .ptl-aktion .btn { width: 100%; justify-content: center; }
}
/* ===== /PT-LABOR ===== */

/* ===== PT-LABOR-TITELBILD ===== */
/* Titelbild über die ganze Breite, bleibt beim Scrollen oben stehen */
.ptl-titelbild { position: sticky; top: 0; z-index: 20; margin: -40px 0 32px; height: clamp(130px, 17vw, 220px); overflow: hidden; background: #0f1420; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }
.ptl-titelbild picture, .ptl-titelbild img { display: block; width: 100%; height: 100%; }
.ptl-titelbild img { object-fit: cover; object-position: 60% 8%; }
/* Das Untermenü im Seitenkopf liegt über dem Bild */
body:has(.ptl-titelbild) .site-header { position: relative; z-index: 40; }
/* Sprungziele (#lab-…) nicht unter dem Bild verstecken */
.ptl-karte { scroll-margin-top: calc(clamp(130px, 17vw, 220px) + 16px); }
@media (max-width: 700px) {
    .ptl-titelbild { height: 110px; margin-bottom: 24px; }
    .ptl-titelbild img { object-position: 66% 6%; }
    .ptl-karte { scroll-margin-top: 126px; }
}
/* ===== /PT-LABOR-TITELBILD ===== */
