/* VDEF Aufgabenkatalog – gemeinsames Design */
:root {
    --vdef-blau: #0b4a7a;
    --vdef-blau-hell: #e8f1f8;
}
body { background: #f5f7fa; font-size: .95rem; }
.bg-vdef { background: var(--vdef-blau); }
.karte { background: #fff; border-radius: .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 1rem; }
.seitenkopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.seitenkopf h1 { font-size: 1.35rem; margin: 0; color: var(--vdef-blau); }

/* Status-Abzeichen */
.status { display: inline-block; padding: .15rem .5rem; border-radius: 1rem; font-size: .8rem; white-space: nowrap; }
.status-entwurf      { background: #e9ecef; color: #495057; }
.status-zur_pruefung { background: #fff3cd; color: #7a5a00; }
.status-beanstandet  { background: #f8d7da; color: #842029; }
.status-freigegeben  { background: #d1e7dd; color: #0f5132; }
.status-archiviert   { background: #dee2e6; color: #6c757d; text-decoration: line-through; }

.zustand-synchron            { color: #0f5132; }
.zustand-uebertragen         { color: #0b4a7a; font-weight: 600; }
.zustand-konflikt            { color: #b02a37; font-weight: 600; }
.zustand-extern_neu, .zustand-wartet_auf_freigabe { color: #7a5a00; }
.zustand-geloescht, .zustand-nicht_freigegeben     { color: #6c757d; }

/* Aufgabenvorschau */
.vorschau-frage { border-left: 4px solid var(--vdef-blau); background: var(--vdef-blau-hell); padding: .75rem 1rem; border-radius: .25rem; }
.vorschau-frage img, .vorschau-antwort img { max-width: 100%; height: auto; }
.vorschau-antwort { padding: .35rem .5rem; border-radius: .25rem; margin-bottom: .25rem; border: 1px solid #e3e6ea; }
.vorschau-antwort.richtig { background: #e9f7ef; border-color: #a3cfbb; }
.vorschau-antwort.teilweise { background: #fff8e1; border-color: #f0d58a; }
.vorschau-feedback { font-size: .85rem; color: #6c757d; }
.xml-ansicht { font-family: Consolas, monospace; font-size: .8rem; white-space: pre-wrap; max-height: 60vh; overflow: auto; background: #1e1e1e; color: #ddd; padding: .75rem; border-radius: .25rem; }
#detailPanel { width: min(900px, 95vw); }

/* Tabellen */
table.dataTable td.text-kurz { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.dataTable tbody tr { cursor: default; }
.badge-moodle { background: #f98012; }

/* TinyMCE in Editor-Formularen */
div.DTE .tox-tinymce { border-radius: .375rem; }
div.DTE_Field_Type_datatable div.dt-container { font-size: .9rem; }

/* Anmeldung */
.login-box { max-width: 420px; margin: 8vh auto; }
