:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172b46;background:#f3f6fa;font-size:16px;line-height:1.6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.topbar{height:88px;border-bottom:1px solid #dce3ed;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1280px)/2));background:white}.brand{display:flex;align-items:center;gap:12px;color:#152d50;text-decoration:none;font-size:1.2rem;font-weight:750}.mark{display:grid;place-items:center;background:#152d50;color:white;width:40px;height:40px;border-radius:10px;font:30px Georgia,serif}.course{color:#647287;font-size:.9rem}main{max-width:1328px;margin:auto;padding:42px 24px 60px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:750;color:#65758b;margin:0 0 10px}.heading .eyebrow{color:#315fbb}h1{font-size:clamp(1.55rem,3vw,2rem);letter-spacing:-.045em;line-height:1.25;margin:0;font-weight:650}.practice{font-size:.875rem;background:#e6edfa;color:#31558c;padding:7px 13px;border-radius:7px;white-space:nowrap}.workspace{display:grid;grid-template-columns:1.05fr 1fr;gap:28px;align-items:start}.case-panel,.answer-panel{background:#fff;border:1px solid #dce3ed;border-radius:14px;padding:32px;min-width:0}.case-panel{border-top:4px solid #1c3558}.case-panel .eyebrow{display:flex;gap:10px;flex-wrap:wrap}.case-panel .eyebrow span{color:#315fbb}h2{font-size:1.4rem;letter-spacing:-.025em;line-height:1.35;margin:0 0 24px}.case-text{color:#44546b;overflow-wrap:anywhere}.case-text p{margin:0 0 20px;white-space:pre-line}.case-text ul{padding-left:22px;margin:0}.case-text li{padding-left:5px;margin:0 0 18px}.case-text li::marker{color:#7290b9}.source{font-size:.8rem;color:#647287;border-top:1px solid #e3e9f1;padding-top:20px;margin:28px 0 0}.answer-panel{position:sticky;top:24px}.question-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:16px}.question-meta .eyebrow{margin:0}.points{font-size:.875rem;color:#31558c;background:#edf2fa;border-radius:6px;padding:4px 10px;white-space:nowrap}.question-text{margin:0 0 30px;color:#334761;white-space:pre-line}label{display:block;font-size:.9rem;font-weight:650;margin-bottom:10px}textarea{display:block;resize:vertical;width:100%;min-height:235px;padding:17px;border:1px solid #b8c6d8;border-radius:8px;background:#fbfcfe;color:#172b46;font:inherit;line-height:1.65}textarea::placeholder{color:#738297}textarea:focus{outline:3px solid #d9e6ff;border-color:#315fbb}button{cursor:pointer;font:inherit;border:0;border-radius:8px}#submit{position:relative;display:flex;align-items:center;justify-content:center;width:100%;padding:13px 20px;background:#2455a8;color:white;font-weight:650}#submit:hover{background:#1b4388}button:disabled{opacity:.65;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #6698ee;outline-offset:4px}.note{font-size:.875rem;color:#647287;line-height:1.5;margin:12px 0 24px}.status:empty{display:none}.status{margin-bottom:16px;color:#31558c}.status.error{color:#9c2929}.retry{padding:10px 18px;background:#e0e9f8;color:#173865;margin-bottom:22px}footer{max-width:1280px;margin:0 auto;padding:24px 0;border-top:1px solid #dce3ed;display:flex;justify-content:space-between;color:#647287;font-size:.8rem}[hidden]{display:none!important}@media(max-width:850px){.workspace{grid-template-columns:1fr}.answer-panel{position:static}.case-panel,.answer-panel{padding:24px}.heading{align-items:flex-start}.practice{display:none}main{padding-top:28px}footer{margin:0 24px;gap:20px}.topbar{height:72px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}

.answer-panel{position:static}.next{width:100%;margin-top:20px;padding:13px 20px;background:#e0e9f8;color:#173865;font-weight:650}.result{margin-top:30px;border-top:2px solid #dce3ed;padding-top:26px;overflow-wrap:anywhere}.score{font-size:1.5rem;font-weight:750;color:#2455a8}.criterion{border-top:1px solid #dce3ed;padding-top:18px;margin-top:22px}.criterion h3{font-size:1rem;line-height:1.5}.criterion h4{font-size:.875rem;margin:14px 0 4px}.criterion p,.criterion ul{font-size:.9rem;margin:8px 0;padding-left:0}.criterion ul{padding-left:22px}.criterion li{margin-bottom:6px}

/* Homepage und Navigation */
.back-link{display:inline-block;margin-bottom:26px;color:#31558c;text-decoration:none;font-weight:600;font-size:.9rem}
.back-link:hover{text-decoration:underline}
.intro{padding:24px 0 42px;max-width:980px}
.intro .eyebrow{color:#315fbb}
.intro h1{font-size:clamp(2rem,4.5vw,3.5rem);max-width:780px;letter-spacing:-.045em}
.intro-text{max-width:790px;color:#44546b;font-size:1.08rem;margin:24px 0 30px}
.practice-steps{display:flex;flex-wrap:wrap;gap:16px 28px;list-style:none;padding:0;margin:0;color:#44546b;font-size:.9rem}
.practice-steps li{display:flex;align-items:center;gap:10px}
.practice-steps span{font-size:.75rem;font-weight:750;color:#31558c;background:#e6edfa;border-radius:50%;padding:5px 8px}
.subjects{border-top:1px solid #dce3ed;padding-top:36px}
.subjects h2{margin:0}
.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.subject-card{display:flex;flex-direction:column;align-items:flex-start;padding:26px;border:1px solid #dce3ed;border-radius:14px;min-width:0;text-decoration:none}
.subject-card h3{margin:0 0 8px;font-size:1.3rem;line-height:1.3;overflow-wrap:anywhere}
.subject-card p{margin:0 0 24px;font-size:.95rem}
.availability{font-size:.75rem;font-weight:650;padding:4px 9px;border-radius:5px}
.card-action{margin-top:auto;font-size:.9rem;font-weight:650}
.available{background:#fff;color:#172b46;border:2px solid #315fbb}
.available p{color:#44546b}
.available .availability{background:#e6edfa;color:#2455a8}
.available .card-action{color:#2455a8;display:flex;width:100%;justify-content:space-between}
.available:hover{background:#f5f8ff;border-color:#193f80}
.unavailable{background:#edf0f4;color:#68717e}
.unavailable .availability{background:#e1e5ea;color:#596271}
.grading-details{border:1px solid #dce3ed;border-radius:8px;padding:14px 16px;margin-top:20px}
.grading-details summary{cursor:pointer;color:#2455a8;font-weight:650}
.grading-details summary:focus-visible{outline:3px solid #6698ee;outline-offset:4px}
.grading-details[open] summary{padding-bottom:4px}
@media(max-width:1000px){.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.subject-grid{grid-template-columns:1fr}.intro{padding-top:8px}.intro-text{font-size:1rem}.practice-steps{flex-direction:column;gap:14px}.topbar .course{font-size:.75rem}.topbar{gap:12px}.subject-card{padding:24px}}

/* Fallerfassung */
.import-invitation{margin-top:36px;padding:26px;background:#fff;border:1px solid #dce3ed;border-radius:14px}
.import-invitation h2{margin-bottom:12px}.import-invitation .back-link{margin-bottom:0}
.import-page{max-width:1000px}.import-panel{background:#fff;border:1px solid #dce3ed;border-radius:14px;padding:28px;margin:24px 0}
#import-fields{border:0;padding:0;margin:0;min-width:0}
.import-page input,.import-page select{display:block;width:100%;min-width:0;padding:11px 12px;margin-top:7px;border:1px solid #b8c6d8;border-radius:8px;background:#fbfcfe;color:#172b46;font:inherit}
.import-page label{margin-bottom:20px}.import-page textarea{margin-top:7px;min-height:150px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.editor-heading h2{margin:0}
.primary,.secondary{padding:11px 18px;font-weight:650}.primary{background:#2455a8;color:white}.secondary{background:#e0e9f8;color:#173865}
.criterion-editor{border-top:1px solid #dce3ed;padding:18px 0}.criterion-editor textarea{min-height:90px}.criterion-editor input{max-width:160px}
.import-status{margin-top:24px;white-space:pre-wrap}.api-help{margin-top:32px}.api-help pre{overflow:auto;background:#edf2fa;padding:16px;border-radius:8px}
.import-page input:focus-visible,.import-page select:focus-visible{outline:3px solid #d9e6ff;border-color:#315fbb}
@media(max-width:600px){.form-row{grid-template-columns:1fr;gap:0}.editor-heading{align-items:flex-start;flex-direction:column}.import-panel{padding:20px}}
#backup-list{overflow-wrap:anywhere;margin-bottom:20px}#backup-list li{margin-bottom:12px}#backup-list a{color:#2455a8}.import-page pre{white-space:pre-wrap;overflow-wrap:anywhere}
/* Gemeinsamer, reduzierter Header mit Kontomenü. */
.topbar{height:auto;min-height:76px;gap:16px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.topbar .course{display:none}
.account-nav{margin-left:auto;font-size:.9rem;min-width:0}
.account-nav .login-link{display:inline-flex;align-items:center;min-height:40px;padding:8px 0;color:#173865;text-decoration:none;font-weight:600}
.account-nav .login-link:hover{color:#2455a8;text-decoration:underline;text-underline-offset:4px}
.profile-menu{position:relative}
.profile-menu>summary{display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 12px;cursor:pointer;list-style:none;color:#173865;font-weight:600;border-radius:6px}
.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu>summary:hover,.profile-menu[open]>summary{background:#edf2f8}
.profile-menu>summary:focus-visible{outline:3px solid #6698ee;outline-offset:2px}
.profile-menu>summary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.account-label{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:224px;max-width:calc(100vw - 32px);padding:6px;background:white;border:1px solid #dce3ed;border-radius:10px;box-shadow:0 8px 24px #172b461a}
.profile-dropdown a,.profile-dropdown button{display:block;width:100%;padding:10px 12px;border-radius:5px;text-align:left;text-decoration:none;background:white;color:#173865;font:inherit}
.profile-dropdown a:hover,.profile-dropdown button:hover{background:#edf2f8}
.menu-divider{height:1px;margin:5px 6px;background:#e4e9f0}
.session-status{flex-basis:100%;text-align:right;color:#9c2929;font-size:.875rem}.session-status:empty{display:none}
@media(max-width:650px){.topbar{min-height:68px}.account-label{max-width:110px}.profile-menu>summary{padding:8px;gap:6px}}
.login-page{max-width:600px}.login-page input{display:block;width:100%;padding:12px;margin:8px 0 20px;border:1px solid #b8c6d8;border-radius:8px;font:inherit}.login-page h1{margin-bottom:20px}

/* Kompakte Verwaltungslisten mit ausklappbarer Kontobearbeitung. */
.admin-page{max-width:1200px}
.list-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin-top:24px}
.list-filters label{flex:1;min-width:150px;margin:0}.list-filters label:first-child{flex:2;min-width:220px}
.compact-list{border:1px solid #dce3ed;border-radius:10px;background:white;margin-bottom:20px;overflow:hidden}
.compact-list:empty{display:none}.compact-list>p{padding:0 18px}
.case-row,.user-row{border-bottom:1px solid #dce3ed}.case-row:last-child,.user-row:last-child{border-bottom:0}
.case-row{display:flex;align-items:center;gap:20px;padding:14px 18px}
.case-info{flex:1;min-width:0}.case-info h2{font-size:1rem;margin:0;overflow-wrap:anywhere}.case-info p{font-size:.82rem;color:#647287;margin:4px 0 0;overflow-wrap:anywhere}
.row-actions{display:flex;gap:8px;align-items:center;flex-shrink:0;font-size:.85rem}
.user-row{display:flex;align-items:center;gap:12px;padding:12px 18px;min-width:520px}
.user-name{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:650}.badge{font-size:.8rem;padding:2px 8px;background:#edf2fa;border-radius:5px;white-space:nowrap}
.user-actions{display:flex;gap:8px;margin-left:8px;flex-shrink:0}
.icon-button{border-radius:8px;text-decoration:none;display:grid;place-items:center;width:36px;height:36px;padding:7px;background:#e6edfa;color:#2455a8}.icon-button:hover:not(:disabled){background:#d5e2f8}.icon-button:disabled{cursor:not-allowed;opacity:.4}
.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#user-list{overflow-x:auto}
.import-page input,.import-page select{height:48px;min-height:48px;margin:7px 0 0;padding:10px 12px;line-height:24px;appearance:none;-webkit-appearance:none}
.import-page select{padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23647287' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:18px;background-position:right 12px center}
.admin-intro h1{margin:0}.admin-intro p{margin:12px 0 0}.admin-create{margin-top:20px}
.create-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 16px;border-radius:8px;background:#2455a8;color:white;font-size:.9rem;font-weight:650;line-height:24px;text-decoration:none;cursor:pointer;list-style:none}
.create-action::-webkit-details-marker{display:none}.create-action:hover{background:#1b4388}.create-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.create-account .import-panel{margin:16px 0 0}
@media(max-width:650px){.case-row{align-items:flex-start;flex-direction:column;gap:10px}.row-actions{align-self:flex-end}.list-filters label{min-width:120px}.list-filters label:first-child{flex-basis:100%}}

.admin-page summary:focus-visible{outline:3px solid #6698ee;outline-offset:-3px;border-radius:5px}

footer{gap:20px;flex-wrap:wrap}footer nav{display:flex;gap:12px 24px;flex-wrap:wrap}footer a{color:inherit;text-decoration:none}footer a:hover{text-decoration:underline}
.info-page{max-width:900px}.info-page section{margin-top:30px;padding:24px;background:white;border:1px solid #dce3ed;border-radius:10px}.info-page h2{margin-bottom:14px}.info-page p:last-child{margin-bottom:0}.placeholder-note{padding:16px 20px;background:#fff4d9;border-left:3px solid #c59527;color:#735416;border-radius:6px}.info-page a{color:#2455a8}

.submit-spinner{display:none;width:22px;height:22px;border:3px solid rgba(255,255,255,.35);border-top-color:white;border-radius:50%;animation:submit-spin .8s linear infinite}
#submit[aria-busy="true"] .submit-label{visibility:hidden}
#submit[aria-busy="true"] .submit-spinner{display:block;position:absolute;left:calc(50% - 11px);top:calc(50% - 11px)}
@keyframes submit-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.submit-spinner{animation:none}}

#draft-status:empty{display:none}

.statistics-page{max-width:1150px}.intro-copy{color:#647287}.stat-cards{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px;margin:28px 0}.stat-cards section,.subject-stat{background:white;border:1px solid #dce3ed;border-radius:10px;padding:22px}.stat-cards h2{font-size:.85rem;color:#647287;margin:0 0 10px}.stat-cards p{font-size:1.3rem;font-weight:650;margin:0}.statistics-section{margin-top:36px}.statistics-section h2{margin-bottom:14px}.subject-stat{margin-bottom:16px}.stat-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.stat-heading h3{margin:0}.stat-heading a{color:#2455a8}.topic-stat{padding-top:16px;margin-top:16px;border-top:1px solid #e4e9f0}.topic-stat h4,.topic-stat p{margin:0 0 8px}.topic-stat p,.topic-assessment{font-size:.85rem;color:#52637b}.topic-stat meter{display:block;width:100%;height:14px;margin-bottom:8px}.recent-stat{padding:16px 20px;border-bottom:1px solid #e4e9f0}.recent-stat:last-child{border:0}.recent-stat p{margin:4px 0;font-size:.9rem}.recent-stat time{font-size:.8rem;color:#647287}.delete-user{color:#a03232}
@media(max-width:650px){.stat-cards{grid-template-columns:1fr 1fr}.stat-cards section:last-child{grid-column:1/-1}.stat-cards p{font-size:1.1rem}}

/* Auswahlfragen und ihre Erfassung. */
.choice-answer,.choice-editor{border:0;padding:0;margin:0 0 20px;min-width:0}.choice-answer legend,.choice-editor legend{font-weight:650;margin-bottom:12px}
.choice-option{display:flex;align-items:flex-start;gap:12px;margin:10px 0;padding:14px;border:1px solid #c9d4e2;border-radius:8px;background:#fbfcfe;cursor:pointer;font-weight:400}.choice-option:has(input:checked){border-color:#2455a8;background:#edf3ff}.choice-option input{flex-shrink:0;width:18px;height:18px;margin:3px 0 0;accent-color:#2455a8}.choice-option span{overflow-wrap:anywhere}.choice-answer:disabled .choice-option{cursor:default}
.option-editor{display:grid;grid-template-columns:120px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:16px 0;border-top:1px solid #dce3ed}.option-editor textarea{min-height:90px}.option-editor .option-correct{display:flex;gap:8px;align-items:center;white-space:nowrap}.import-page .option-correct input{appearance:auto;-webkit-appearance:checkbox;width:18px;height:18px;min-height:18px;padding:0;margin:0;accent-color:#2455a8}.option-editor label{margin:0}#feedback{white-space:pre-wrap}
@media(max-width:650px){.option-editor{grid-template-columns:1fr 1fr}.option-editor>label:nth-child(2){grid-column:1/-1;grid-row:2}}
/* Kontosicherheit und Freigaben */
.security-secret{overflow-wrap:anywhere;padding:16px;background:var(--surface,#f4f7fb);border-radius:8px;font-family:monospace}
.security-secret:empty{display:none}.report-row{border-top:1px solid #e3e9f1;padding:18px 0}.report-row:last-child{padding-bottom:0}.report-row h3{font-size:1rem;margin:0 0 4px}.report-row .report-meta{font-size:.82rem;color:#647287;margin:0}.report-row p{white-space:pre-wrap;overflow-wrap:anywhere}
#account-status{position:sticky;bottom:12px;background:#fff}#account-status:empty{display:none}#report-form textarea{min-height:100px}#mfa-form .row-actions{flex-wrap:wrap}
@media(max-width:600px){.case-row{align-items:flex-start;flex-wrap:wrap}.case-row .row-actions{width:100%;justify-content:flex-end}.status-switch{margin-right:auto}.list-filters{grid-template-columns:1fr}}

/* Einheitliche Feinkorrekturen */
a{color:#2455a8;text-underline-offset:3px}
footer{max-width:none;margin:0 max(24px,calc((100vw - 1280px)/2))}
.import-page :is(input,select,textarea),.login-page :is(input,select,textarea),label :is(input,select,textarea){font-weight:400}
legend{padding:0}
button:disabled{cursor:not-allowed}#submit[aria-busy="true"]{cursor:wait}
#mfa-form .row-actions{font-size:inherit}
.import-panel>:first-child,.subject-stat>:first-child,.info-page section>:first-child{margin-top:0}
.import-panel>:last-child,.subject-stat>:last-child,.info-page section>:last-child{margin-bottom:0}
#health p{margin:0 0 6px}#health .health-warning{margin-top:12px;color:#9c2929}
#health+button{margin-top:18px}

/* Kompakte Fallverwaltung mit Statusumschalter */
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.page-head .note{margin:6px 0 0;max-width:720px}.page-head .create-action{flex-shrink:0}
.compact-admin .list-filters{margin-top:20px;gap:12px}.compact-admin .list-filters label{font-size:.82rem}
.compact-admin .list-filters :is(input,select){height:40px;min-height:40px;margin-top:4px;padding-top:6px;padding-bottom:6px}
.compact-admin #list-count{margin:12px 0}
.compact-admin .case-row{padding:9px 16px;gap:16px}
.compact-admin .case-info h2{font-size:.95rem;line-height:1.4}.compact-admin .case-info p{font-size:.78rem;margin-top:1px}
.compact-admin .icon-button{width:32px;height:32px;padding:6px}.compact-admin .icon-button svg{width:19px;height:19px}
.status-switch{display:inline-flex;border:1px solid #c9d4e2;border-radius:8px;overflow:hidden;background:#fff}
.status-switch button{padding:5px 10px;border-radius:0;background:transparent;color:#52637b;font-size:.8rem;font-weight:600;line-height:20px;white-space:nowrap}
.status-switch button+button{border-left:1px solid #c9d4e2}
.status-switch button:hover:not([aria-pressed="true"]):not(:disabled){background:#f1f5fb;color:#173865}
.status-switch button:focus-visible{outline-offset:-3px}
.status-switch [data-status="draft"][aria-pressed="true"]{background:#e9edf2;color:#334155}
.status-switch [data-status="review"][aria-pressed="true"]{background:#fdf0d5;color:#7a5410}
.status-switch [data-status="published"][aria-pressed="true"]{background:#dff3e6;color:#1d6b3a}
.status-switch button:disabled{cursor:wait}
@media(max-width:650px){.page-head{flex-direction:column;gap:12px}.compact-admin .case-row{gap:8px}.status-switch{flex:1;min-width:0}.status-switch button{flex:1;padding:6px 4px;font-size:.75rem}}

.case-subject{flex:0 0 150px;min-width:0;font-size:.85rem;color:#44546b}
.case-exam{flex:0 0 220px;min-width:0;font-size:.85rem;line-height:1.35;color:#44546b}
.compact-admin .case-info p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case-head{display:flex;gap:16px;padding:8px 16px;border-bottom:1px solid #dce3ed;background:#f7f9fc;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#647287}
.case-head>span:first-child{flex:1}.case-head>span:nth-child(2){flex:0 0 150px}.case-head>span:nth-child(3):not(:last-child){flex:0 0 220px}.case-head>span:last-child,.compact-admin .case-row>.row-actions{flex:0 0 350px;justify-content:flex-start}
@media(max-width:1000px){.case-subject,.case-head>span:nth-child(2){flex-basis:130px}.case-exam,.case-head>span:nth-child(3):not(:last-child){flex-basis:180px}}
@media(max-width:650px){.compact-admin .case-row>.row-actions{flex-basis:auto}.compact-admin .case-info p{white-space:normal}.case-head{display:none}.case-subject{flex-basis:auto;width:100%;font-size:.8rem}.case-subject::before{content:'Fach: ';font-weight:650}.case-exam{flex-basis:auto;width:100%;font-size:.8rem}.case-exam::before{content:'Prüfung: ';font-weight:650}}

/* Gemeinsame kompakte Verwaltungsseiten */
.page-head .back-link{margin-bottom:6px;font-size:.85rem}
.compact-admin :is(input,select){height:40px;min-height:40px;margin-top:4px;padding-top:6px;padding-bottom:6px}
.compact-admin label{font-size:.85rem;margin-bottom:14px}.compact-admin .list-filters label{margin:0}
.compact-admin textarea{margin-top:4px}
/* Benutzerverwaltung */
.create-user{margin:16px 0 0;padding:20px 22px}.create-user h2{font-size:1.05rem;margin-bottom:12px}
.create-user-row{grid-template-columns:1.2fr 1.2fr .8fr auto;gap:12px;align-items:end}.create-user-row label{margin:0}.create-user-row .primary{height:40px;padding:0 18px}
.users-page .user-row{min-width:0;padding:9px 16px;gap:16px}
.users-page .user-name{flex:1;font-size:.95rem}
.users-page .user-cell{flex:0 0 120px}
.users-page .user-actions{flex:0 0 168px;margin:0;justify-content:flex-start}
.users-page .case-head>span:first-child{flex:1}.users-page .case-head>span:nth-child(2),.users-page .case-head>span:nth-child(3){flex:0 0 120px}.users-page .case-head>span:last-child{flex:0 0 168px}
.badge[data-role="admin"]{background:#e3ebfb;color:#1f4b96}.badge[data-role="user"]{background:#eef1f5;color:#44546b}
.badge[data-state="active"]{background:#dff3e6;color:#1d6b3a}.badge[data-state="locked"]{background:#f6e3e3;color:#8e2a2a}.badge[data-state="deletion"]{background:#fdf0d5;color:#7a5410}.badge[data-state="pending"]{background:#e6edfa;color:#31558c}
/* Fall bearbeiten */
.edit-page .import-panel{padding:22px 24px;margin:16px 0}
.edit-page .import-panel h2{font-size:1.15rem;margin-bottom:16px}
.edit-page .editor-heading{margin-bottom:14px}
.case-meta-row{grid-template-columns:2fr 1fr;gap:12px}
.question-meta-row{grid-template-columns:1fr 1fr 1.4fr 1.4fr;gap:12px}
.edit-page .form-row label{margin-bottom:14px}
.edit-page textarea{min-height:110px}.edit-page textarea[name="case_text"]{min-height:200px}
.edit-page .note{margin:6px 0 14px}
.edit-page .criterion-editor textarea,.edit-page .option-editor textarea{min-height:70px}
#json-editor{min-height:65vh;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2}
.view-switch{flex-shrink:0;margin-top:30px}.view-switch [aria-pressed="true"]{background:#2455a8;color:#fff}
.save-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:12px;margin:16px -24px 0;padding:12px 24px;background:#f3f6faf2;border-top:1px solid #dce3ed;backdrop-filter:blur(4px)}
.save-info{flex:1;min-width:0}.save-info .status{margin:0 0 2px;font-size:.9rem}.save-info .note{margin:0;font-size:.8rem}
.save-bar .primary,.save-bar .secondary{flex-shrink:0}
@media(max-width:900px){.users-page .user-cell,.users-page .case-head>span:nth-child(2),.users-page .case-head>span:nth-child(3){flex-basis:100px}}
@media(max-width:650px){
 .create-user-row,.case-meta-row{grid-template-columns:1fr}.question-meta-row{grid-template-columns:1fr 1fr}
 .users-page .user-row{flex-wrap:wrap;gap:8px}.users-page .user-name{flex-basis:100%}.users-page .user-cell{flex:0 0 auto}.users-page .user-actions{flex:0 0 auto;margin-left:auto}
 .case-meta-row,.question-meta-row{row-gap:0}.edit-page .editor-heading{flex-direction:row;align-items:center}.save-info .note{display:none}
 .view-switch{margin-top:0;align-self:flex-start}.save-bar{padding:10px 24px;flex-wrap:wrap}.save-info{flex-basis:100%}
}

/* Tabellen im Sachverhalt */
.case-text .table-wrap{overflow-x:auto;margin:0 0 20px;border:1px solid #e3e9f1;border-radius:8px}
.case-text table{border-collapse:collapse;width:100%;font-size:.9rem;font-variant-numeric:tabular-nums}
.case-text th,.case-text td{padding:7px 12px;border-bottom:1px solid #e3e9f1;text-align:left;vertical-align:top}
.case-text th{background:#f7f9fc;color:#334761;font-weight:650}.case-text tr:last-child td{border-bottom:0}
.case-text .align-right{text-align:right;white-space:nowrap}.case-text .align-center{text-align:center}

/* Vorschau beim Erfassen und Bearbeiten */
.preview-dialog{width:min(1280px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid #dce3ed;border-radius:14px;background:#f3f6fa;color:inherit}
.preview-dialog::backdrop{background:#172b4680}
.preview-bar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;background:#fff;border-bottom:1px solid #dce3ed}
.preview-bar h2{margin:0;font-size:1.05rem}
.preview-body{display:grid;grid-template-columns:1.05fr 1fr;gap:24px;align-items:start;padding:24px}
.preview-questions{display:grid;gap:16px}.preview-question{position:static;padding:24px}.preview-question .question-text{margin-bottom:16px}
.preview-options,.preview-criteria{margin:0 0 12px;padding-left:20px;font-size:.9rem;color:#44546b}.preview-options li.correct{font-weight:650;color:#1f6a3a}
.preview-question details .question-text{margin-top:12px;font-size:.9rem}
@media(max-width:850px){.preview-body{grid-template-columns:1fr;padding:16px}.preview-bar{padding:10px 16px}.preview-question,.preview-dialog .case-panel{padding:20px}}

/* Sortierbare Spaltenköpfe */
.sort-button{display:inline-flex;align-items:center;gap:5px;padding:2px 4px;margin:-2px -4px;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;border-radius:5px;text-align:left}
.sort-button:hover{color:#2455a8;background:#e6edfa}.sort-button .sort-icon{font-size:.85rem;letter-spacing:0;opacity:.45}
.sort-button:not([data-sort="none"]){color:#2455a8}.sort-button:not([data-sort="none"]) .sort-icon{opacity:1}
.case-text th .sort-button{text-transform:none;letter-spacing:0;font-weight:inherit;margin:-2px -4px}
.case-text th.align-right .sort-button{flex-direction:row-reverse}

/* Training: ganzer Fall mit allen Teilfragen */
.case-questions{margin-bottom:8px}
.case-question{border-top:1px solid #dce3ed;padding-top:22px;margin-top:22px}.case-question:first-child{border-top:0;padding-top:0;margin-top:0}
.case-question .question-meta{margin-bottom:10px}.case-question .question-text{margin-bottom:16px}
.case-question textarea{min-height:170px}.case-question label{margin-bottom:0}
.question-result{margin-top:14px;padding:14px 16px;border-radius:8px;border-left:4px solid #9fb3cf;background:#f5f8fc;overflow-wrap:anywhere}
.question-result[data-state="full"]{border-left-color:#2f8a52;background:#f0f8f3}.question-result[data-state="partial"]{border-left-color:#d49a22;background:#fdf8ee}
.question-result[data-state="none"]{border-left-color:#c24848;background:#fcf2f2}
.question-score{margin:0 0 6px;font-weight:750;color:#172b46}.question-feedback{margin:0;font-size:.92rem;color:#334761;white-space:pre-line}
.question-result .grading-details{margin-top:12px;background:#fff}
.result .score{margin:6px 0 4px}#result-summary{margin:0 0 6px;color:#334761}
#case-title:focus{outline:none}
@media(min-width:851px){.workspace>.case-panel{position:sticky;top:24px;max-height:calc(100vh - 48px);overflow-y:auto}}

/* Startseite: häufige Fragen */
.home-faq{margin-top:56px}.home-faq h2{margin-bottom:20px}
.faq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.faq-grid>div{background:#fff;border:1px solid #dce3ed;border-radius:12px;padding:22px 24px}
.faq-grid h3{font-size:1.02rem;margin:0 0 8px}.faq-grid p{margin:0;color:#44546b;font-size:.94rem}
.register-hint{margin:18px 0 0;font-size:.95rem}.register-hint a{color:#2455a8;font-weight:650;text-decoration:none}.register-hint a:hover{text-decoration:underline}
.account-nav .register-link{margin-right:22px;font-weight:500;color:#44546b}
