﻿/* =====================================================================
   oberflaeche.css – Bausteine der Bedienoberfläche des Prüfungsportals (Okt. 2026):
   Navigation, Brotkrumen, Rückmeldungen (Toasts mit „Rückgängig“), Leerzustände, Auswahlkarten,
   Schalter mit Hilfetext, Ablageflächen, Mitteilungseditor, Arbeitsliste, Zeitleiste, Statistik, Protokoll.
   Farben ausschließlich über die Variablen aus theme.css/bedienelemente.css (hell/dunkel).
   Keine Inline-Stile im Markup (CSP style-src 'self').
   ===================================================================== */

/* ---------- Fokus und Tastaturbedienung ---------- */
:focus-visible { outline: 3px solid var(--up-orange); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible { box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); outline: 0; }
.visually-hidden-focusable:focus { z-index: 2000; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Hauptnavigation (rollenbasiert, Views/Shared/_Navigation.cshtml) ---------- */
.app-nav { border-bottom: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.app-nav-inner { display: flex; gap: .25rem; padding: 0 .75rem; overflow-x: auto; scrollbar-width: none; }
.app-nav-inner::-webkit-scrollbar { display: none; }
.app-nav-inner > a, .app-nav-menue > a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .8rem; white-space: nowrap;
    color: var(--bs-secondary-color); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.app-nav-inner > a:hover, .app-nav-menue > a:hover { color: var(--bs-emphasis-color); background: var(--up-soft); }
.app-nav-inner > a[aria-current=page], .app-nav-menue > a[aria-current=page] { color: var(--bs-emphasis-color); border-bottom-color: var(--up-orange); }
.app-nav .zahl { min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--up-orange); color: var(--up-on-orange); font-size: .75rem; text-align: center; }
.app-nav-menue .dropdown-item[aria-current=page] { box-shadow: inset 3px 0 0 var(--up-orange); font-weight: 600; }

/* ---------- Brotkrumen (Views/Shared/_Brotkrumen.cshtml) ---------- */
.brotkrumen { margin: 0 0 1rem; }
.brotkrumen .breadcrumb { --bs-breadcrumb-divider-color: var(--bs-secondary-color); --bs-breadcrumb-item-active-color: var(--bs-secondary-color);
    margin: 0; font-size: .875rem; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.brotkrumen .breadcrumb::-webkit-scrollbar { display: none; }
.brotkrumen .breadcrumb-item + .breadcrumb-item::before { content: "›"; }
.brotkrumen a { color: var(--bs-secondary-color); text-decoration: none; }
.brotkrumen a:hover { color: var(--bs-emphasis-color); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Seitenkopf ---------- */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.seitenkopf h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.seitenkopf .untertitel { margin: .15rem 0 0; color: var(--bs-secondary-color); }
.seitenkopf-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Hinweisbänder ---------- */
.band { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem; border: 1px solid var(--bs-border-color); border-left: 4px solid var(--up-orange); border-radius: var(--bs-border-radius); background: var(--up-soft); }
.band > .fa-solid, .band > .fa-duotone { margin-top: .2rem; color: var(--up-orange-icon); font-size: 1.25rem; }
.band-inhalt { flex: 1 1 auto; min-width: 0; }
.band-inhalt :last-child { margin-bottom: 0; }
.band-warnung { border-left-color: var(--bs-danger); background: var(--bs-danger-bg-subtle); }
.band-warnung > .fa-solid, .band-warnung > .fa-duotone { color: var(--ui-danger-fg); }
.band-info { border-left-color: var(--bs-info); background: var(--bs-info-bg-subtle); }
.band-info > .fa-solid, .band-info > .fa-duotone { color: var(--ui-info-fg); }

/* Unterscheidung echte Prüfungen / Probeprüfungen (Startseite, Anmeldung) */
.pruefungsart { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.pruefungsart > div { padding: 1rem 1.25rem; border-radius: var(--bs-border-radius-lg); border: 1px solid var(--bs-border-color); }
.pruefungsart .hier { border: 2px solid var(--up-orange); background: var(--up-soft); }
.pruefungsart h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.pruefungsart p { margin: 0; font-size: .95rem; }

/* ---------- Rückmeldungen (Toasts; app.js) ---------- */
#toasts { z-index: 1090; max-width: min(30rem, calc(100vw - 1rem)); }
.app-toast { --bs-toast-max-width: 100%; width: 100%; overflow: hidden; padding: .75rem .9rem; border: 1px solid var(--bs-border-color); border-left: 4px solid var(--bs-success);
    background: var(--bs-body-bg); color: var(--bs-body-color); box-shadow: var(--up-shadow); }
.app-toast-error { border-left-color: var(--bs-danger); }
.app-toast-warning { border-left-color: var(--bs-warning); }
.app-toast-info { border-left-color: var(--bs-info); }
.app-toast-symbol { margin-top: .2rem; font-size: 1.1rem; color: var(--ui-success-fg); }
.app-toast-error .app-toast-symbol { color: var(--ui-danger-fg); }
.app-toast-warning .app-toast-symbol { color: var(--ui-warning-fg); }
.app-toast-info .app-toast-symbol { color: var(--ui-info-fg); }
.app-toast .toast-body { font-size: .95rem; }
.app-toast-aktion { white-space: nowrap; }
.app-toast-zeit { height: 3px; margin: .6rem -.9rem -.75rem; background: var(--up-track); }
.app-toast-zeit span { display: block; height: 100%; background: var(--up-orange); transform-origin: left; animation: toast-zeit linear forwards; }
@keyframes toast-zeit { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Leerzustände (Views/Shared/_Leer.cshtml) ---------- */
.leer { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; text-align: center;
    border: 1px dashed var(--bs-border-color); border-radius: var(--bs-border-radius-lg); color: var(--bs-secondary-color); }
.leer-symbol { font-size: 2.25rem; color: var(--up-orange-icon); }
.leer-titel { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--bs-body-color); }
.leer p { margin: 0; max-width: 40rem; }
.leer .btn { margin-top: .5rem; }
.leer-kompakt { flex-direction: row; justify-content: center; padding: 1rem; gap: .75rem; text-align: left; }
.leer-kompakt .leer-symbol { font-size: 1.5rem; }
.leer-kompakt .btn { margin-top: 0; }

/* ---------- Formulare: Schalter mit Hilfetext, Auswahlkarten, Datum mit Restzeit ---------- */
.schalter { margin-bottom: 1rem; }
.schalter .form-check-input { width: 2.6em; height: 1.4em; margin-top: .1em; cursor: pointer; }
.schalter .form-check-label { font-weight: 600; cursor: pointer; padding-left: .35rem; }
.schalter .form-text { margin: .15rem 0 0 3.1em; }
.feldgruppe { padding: 1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); }
.feldgruppe > legend, .feldgruppe > h2, .feldgruppe > h3 { float: none; width: auto; padding: 0 .35rem; margin: 0 0 .5rem -.35rem; font-size: 1.05rem; font-weight: 700; }
.form-text { color: var(--bs-secondary-color); }
.restzeit { font-variant-numeric: tabular-nums; }

.auswahlkarten { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin-bottom: 1rem; }
.auswahlkarte { position: relative; display: flex; gap: .75rem; padding: .9rem 1rem; border: 2px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg); cursor: pointer; background: var(--bs-body-bg); transition: border-color .15s, background-color .15s; }
.auswahlkarte:hover { border-color: var(--up-grey); }
.auswahlkarte input { position: absolute; opacity: 0; pointer-events: none; }
.auswahlkarte-symbol { flex: none; font-size: 1.5rem; color: var(--up-orange-icon); width: 1.75rem; text-align: center; }
.auswahlkarte-titel { display: block; font-weight: 700; }
.auswahlkarte-text { display: block; font-size: .9rem; color: var(--bs-secondary-color); }
.auswahlkarte:has(input:checked) { border-color: var(--up-orange); background: var(--up-soft); }
.auswahlkarte:has(input:checked)::after { content: "\f00c"; font: var(--fa-font-solid); position: absolute; top: .5rem; right: .6rem; color: var(--up-orange-icon); }
.auswahlkarte:has(input:focus-visible) { outline: 3px solid var(--up-orange); outline-offset: 2px; }
.auswahlkarte:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* ---------- Ablagefläche und Dateifeld (komponenten.js) ---------- */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.75rem 1rem;
    border: 2px dashed color-mix(in srgb, var(--up-orange) 55%, var(--bs-border-color)); border-radius: var(--bs-border-radius-lg);
    background: var(--up-soft); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--up-orange); background: color-mix(in srgb, var(--up-orange) 16%, var(--bs-body-bg)); }
.dropzone.is-invalid { border-color: var(--bs-danger); background: var(--bs-danger-bg-subtle); }
.dropzone .dropzone-symbol { font-size: 2rem; color: var(--up-orange-icon); }
.dropzone .dropzone-titel { font-weight: 700; }
.dropzone .dropzone-text { font-size: .875rem; color: var(--bs-secondary-color); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-kompakt { flex-direction: row; flex-wrap: wrap; padding: .75rem 1rem; text-align: left; }
.dropzone.is-busy { opacity: .65; pointer-events: none; }
.dropzone.is-busy::after { content: ""; position: absolute; inset: auto 1rem .5rem; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--up-orange), transparent); background-size: 200% 100%; animation: dropzone-laden 1.2s linear infinite; }
@keyframes dropzone-laden { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.dateifeld { position: relative; display: flex; align-items: center; width: 100%; }
.dateifeld-flaeche { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.25rem; padding: .5rem 2.5rem .5rem .9rem;
    border: 1.5px dashed var(--up-grey); border-radius: var(--bs-border-radius); cursor: pointer; }
.dateifeld-flaeche:hover, .dateifeld.is-dragover .dateifeld-flaeche { border-color: var(--up-orange); background: var(--up-soft); }
.dateifeld-flaeche:focus-within { outline: 3px solid var(--up-orange); outline-offset: 2px; }
.dateifeld input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dateifeld-symbol { color: var(--up-orange-icon); font-size: 1.2rem; flex: none; }
.dateifeld-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dateifeld-titel { font-size: .9rem; font-weight: 600; }
.dateifeld-name { font-size: .8rem; color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dateifeld.hat-datei .dateifeld-flaeche { border-style: solid; border-color: var(--up-orange); }
.dateifeld.hat-datei .dateifeld-name { color: var(--bs-body-color); }
.dateifeld-weg { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); }

/* Erfolgsband */
.band-erfolg { border-left-color: var(--bs-success); background: var(--bs-success-bg-subtle); }
.band-erfolg > .fa-solid, .band-erfolg > .fa-duotone { color: var(--ui-success-fg, var(--bs-success)); }

/* ---------- Mitteilungseditor (mitteilung-editor.js) ---------- */
.mitteilung-editor { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: var(--bs-body-bg); }
.mitteilung-editor:focus-within { border-color: var(--up-orange); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.mitteilung-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem; padding: .25rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0; }
.mitteilung-leiste .btn { --bs-btn-padding-x: .45rem; border-radius: .375rem; }
.mitteilung-leiste .btn.active { background: var(--up-soft); color: var(--bs-emphasis-color); box-shadow: inset 0 -2px 0 var(--up-orange); }
/* Rückgängig/Wiederholen ohne Verlauf (disabled): ohne Rahmen wie die übrigen Knöpfe der Leiste – sonst zeichnet Bootstrap mangels
   --bs-btn-disabled-border-color einen Rahmen in Textfarbe */
.mitteilung-leiste .btn-quiet { --bs-btn-disabled-color: var(--bs-body-color); --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-opacity: .4; }
.mitteilung-trenner { width: 1px; align-self: stretch; margin: .2rem .25rem; background: var(--bs-border-color); }
.mitteilung-link { padding: .4rem; border-bottom: 1px solid var(--bs-border-color); }
.mitteilung-blatt { min-height: 10rem; border: 0; border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius); box-shadow: none !important; overflow-wrap: anywhere; }
.mitteilung-blatt:focus { outline: 0; }
.mitteilung-blatt p { margin: 0 0 .6rem; }
.mitteilung-blatt ul, .mitteilung-blatt ol { margin: 0 0 .6rem; padding-left: 1.5rem; }
.mitteilung-blatt[data-platzhalter]:has(> p:only-child > br:only-child)::before { content: attr(data-platzhalter); position: absolute; color: var(--bs-secondary-color); pointer-events: none; }

/* ---------- Startseite: Arbeitsliste ---------- */
.arbeitsliste { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.aufgabe { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.15rem; border: 1px solid var(--bs-border-color); border-top: 4px solid var(--up-orange);
    border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); box-shadow: var(--up-shadow); }
.aufgabe-kopf { display: flex; align-items: center; gap: .6rem; }
.aufgabe-kopf .fa-solid, .aufgabe-kopf .fa-duotone { font-size: 1.35rem; color: var(--up-orange-icon); }
.aufgabe-kopf h3 { margin: 0; font-size: 1.05rem; }
.aufgabe-zahl { margin-left: auto; font-size: 1.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.aufgabe ul { margin: 0; padding: 0; list-style: none; }
.aufgabe li { display: flex; gap: .5rem; justify-content: space-between; padding: .3rem 0; border-top: 1px solid var(--bs-border-color); font-size: .95rem; }
.aufgabe li:first-child { border-top: 0; }
.aufgabe .mehr { margin-top: auto; }
.aufgabe-ruhig { border-top-color: var(--up-grey); }
.aufgabe-dringend { border-top-color: var(--bs-danger); }

/* ---------- Zeitleiste einer Prüfung (Studierendensicht) ---------- */
.zeitleiste { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: schritt; }
.zeitleiste li { position: relative; flex: 1 1 8rem; padding: .5rem .5rem .5rem 2.25rem; border-radius: var(--bs-border-radius); background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); font-size: .9rem; line-height: 1.3; }
.zeitleiste li::before { counter-increment: schritt; content: counter(schritt); position: absolute; left: .55rem; top: .5rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
    border: 2px solid var(--up-grey); font-size: .75rem; font-weight: 700; text-align: center; line-height: 1rem; }
.zeitleiste li.erledigt { color: var(--bs-body-color); }
.zeitleiste li.erledigt::before { content: "\f00c"; font: var(--fa-font-solid); font-size: .7rem; line-height: 1.05rem; border-color: var(--bs-success); background: var(--bs-success); color: #fff; }
.zeitleiste li.aktuell { background: var(--up-soft); color: var(--bs-emphasis-color); font-weight: 600; box-shadow: inset 0 -3px 0 var(--up-orange); }
.zeitleiste li.aktuell::before { border-color: var(--up-orange); }
.zeitleiste small { display: block; font-weight: 400; color: var(--bs-secondary-color); }

/* ---------- Notenstatistik ---------- */
.verteilung { display: grid; grid-template-columns: repeat(var(--spalten, 19), minmax(0, 1fr)); align-items: end; gap: 3px; height: 9rem; }
.verteilung-spalte { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.verteilung-balken { display: block; min-height: 2px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--bs-secondary-color) 45%, transparent); }
.verteilung-wert { margin-top: .25rem; font-size: .7rem; text-align: center; color: var(--bs-secondary-color); }
.verteilung-spalte.ist-eigene .verteilung-balken { background: var(--up-orange); }
.verteilung-spalte.ist-eigene .verteilung-wert { color: var(--up-accent); font-weight: 700; }
.kennzahlen { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.kennzahl { padding: .75rem 1rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); }
.kennzahl-wert { display: block; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kennzahl-text { font-size: .85rem; color: var(--bs-secondary-color); }

/* ---------- Protokoll ---------- */
.protokoll { margin: 0; padding: 0; list-style: none; }
.protokoll li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .25rem 1rem; padding: .5rem 0; border-top: 1px solid var(--bs-border-color); }
.protokoll time { font-variant-numeric: tabular-nums; color: var(--bs-secondary-color); font-size: .9rem; }
.protokoll .wer { font-size: .85rem; color: var(--bs-secondary-color); }
@media (max-width: 575.98px) { .protokoll li { grid-template-columns: 1fr; } }

/* ---------- Listen und Tabellen ---------- */
.liste-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap;
    border: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.chip-erfolg { border-color: var(--bs-success-border-subtle); background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.chip-warnung { border-color: var(--bs-warning-border-subtle); background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.chip-fehler { border-color: var(--bs-danger-border-subtle); background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.chip-info { border-color: var(--bs-info-border-subtle); background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }
.chip-marke { border-color: var(--up-orange); background: var(--up-soft); color: var(--bs-emphasis-color); }

/* ---------- Hilfsklassen (ersetzen frühere Inline-Stile) ---------- */
.mw-6 { max-width: 6rem; } .mw-8 { max-width: 8rem; } .mw-12 { max-width: 12rem; } .mw-20 { max-width: 20rem; } .mw-30 { max-width: 30rem; } .mw-40 { max-width: 40rem; } .mw-60 { max-width: 60rem; }
.w-5r { width: 5rem; } .w-8r { width: 8rem; } .w-12r { width: 12rem; }
.minh-6 { min-height: 6rem; } .minh-10 { min-height: 10rem; } .minh-20 { min-height: 20rem; } .minh-50vh { min-height: 50vh; }
.maxh-20 { max-height: 20rem; overflow: auto; } .maxh-40 { max-height: 40rem; overflow: auto; } .maxh-70vh { max-height: 70vh; overflow: auto; }
.cursor-pointer { cursor: pointer; }
.text-pre-wrap { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.bild-vorschau { max-width: 100%; max-height: 12rem; object-fit: contain; }
.bild-klein { max-width: 6rem; max-height: 4rem; object-fit: contain; }
.iframe-voll { width: 100%; height: 75vh; border: 0; }
.tabelle-kompakt td, .tabelle-kompakt th { padding: .3rem .5rem; }
.mw-none { max-width: none !important; }

/* ---------- Kopfnavigation: Untermenü und Arbeitsliste ---------- */
.app-nav-menue > a { display: inline-flex; align-items: center; height: 100%; }
.aufgabe .chip { flex: none; }
.aufgabe li a { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sicherheitscode / Zwei-Faktor ---------- */
.code-eingabe { max-width: 12rem; font-size: 1.6rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.qr-code { width: 13.5rem; height: 13.5rem; image-rendering: pixelated; background: #fff; padding: .5rem; border-radius: var(--bs-border-radius); }
.geheimnis { font-family: var(--bs-font-monospace); font-size: 1.05rem; letter-spacing: .05em; word-break: break-all; }

/* ---------- Remonstration ---------- */
.remonstration { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.remonstration-kopf { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.remonstration blockquote { margin: 0 0 .75rem; padding: .5rem .9rem; border-left: 3px solid var(--bs-border-color); white-space: pre-wrap; color: var(--bs-body-color); }

/* ---------- Prüfungsadministration (admin.js) ---------- */
.min-w-0 { min-width: 0; }
.pruefungsliste-filter { display: grid; gap: .5rem; margin-bottom: .75rem; }
.pruefungsliste-eintraege { max-height: calc(100vh - 16rem); overflow: auto; }
@media (max-width: 991.98px) { .pruefungsliste-eintraege { max-height: 22rem; } }
.pruefungsliste-link { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .85rem; color: inherit; text-decoration: none; border-left: 4px solid transparent; }
.pruefungsliste-link:hover { background: var(--up-soft); }
.pruefungsliste-link.active { background: var(--up-soft); border-left-color: var(--up-orange); }
.pruefungsliste-datum { font-size: .8rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.pruefungsliste-titel { font-weight: 700; line-height: 1.25; }
.pruefungsliste-zusatz { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; font-size: .82rem; color: var(--bs-secondary-color); }
.pruefung-kopf { padding: 1rem 1.25rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); }
.pruefung-kopf-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 1rem; }
.pruefung-kopf .zeitleiste { margin-bottom: 0; }
.hinweise { display: grid; gap: .5rem; margin-top: .75rem; }
.band-ruhig { border-left-color: var(--up-grey); background: var(--bs-tertiary-bg); }
.band-ruhig > .fa-solid { color: var(--bs-secondary-color); }
.werkzeugleiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.werkzeugleiste-trenner { width: 1px; align-self: stretch; background: var(--bs-border-color); margin: 0 .25rem; }
.dropzone-knopf { display: inline-flex; flex-direction: row; gap: .4rem; padding: .3rem .7rem; border-width: 1px; font-size: .875rem; border-radius: var(--bs-border-radius); }
.dropzone-knopf .dropzone-symbol { font-size: 1rem; }
.dropzone-knopf .dropzone-titel { font-weight: 600; }
.notenfilter-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .5rem 0 .75rem; }
.notenfilter-leiste [aria-pressed=true] { background: var(--up-soft); border-color: var(--up-orange); color: var(--bs-emphasis-color); }
.notentabelle tbody tr { cursor: pointer; }

/* Einstellungsdialog */
.einstellungen { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.25rem; }
.einstellungen-nav { flex-direction: column; flex-wrap: nowrap; gap: .15rem; align-self: start; position: sticky; top: 0; }
.einstellungen-nav .nav-link { text-align: left; color: var(--bs-body-color); }
.einstellungen-nav .nav-link.active { background: var(--up-soft); color: var(--bs-emphasis-color); box-shadow: inset 3px 0 0 var(--up-orange); }
@media (max-width: 767.98px) {
    .einstellungen { grid-template-columns: 1fr; }
    .einstellungen-nav { flex-direction: row; overflow-x: auto; position: static; }
    .einstellungen-nav .nav-link { white-space: nowrap; }
}
.einstellungen fieldset legend { font-size: 1rem; font-weight: 700; }

/* Mailseite */
.mail-gruppen { display: flex; flex-wrap: wrap; gap: .4rem; }
.mail-gruppen [aria-pressed=true] { background: var(--up-soft); border-color: var(--up-orange); color: var(--bs-emphasis-color); }
.mail-empfaenger .list-group-item { padding: .4rem .75rem; }
