/* Automatisch erzeugt – Teil der persistenten CSS-Architektur V377.
 * Quelle: assets/style.sources.css; Reihenfolge im Browser:
 * foundation -> interactive (nur Übungen) -> finishing.
 * CSS-Dateien nicht direkt bearbeiten; neu bauen mit --write.
 */

/* START: 00-base.css */
* {
    box-sizing: border-box;
}

:root {
    --anthracite: #1b2a40;
    --anthracite-2: #2c3c53;
    --blue: #126abb;
    --blue-dark: #17538b;
    --blue-soft: #eef6ff;
    --page: #ffffff;
    --surface: #ffffff;
    --line: #d3dfeb;
    --text: #1f2937;
    --muted: #6b7280;
    --red: #cf3f3f;
    --green: #2f9b63;
    --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.12);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    background: #ffffff;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
}

/* Gemeinsamer Header/Navigation werden nur in 140-layout-refinements.css gestaltet. */

.container {
    max-width: 1320px;
    margin: 34px auto;
    padding: 0 30px 40px 30px;
}

.dashboard-shell {
    padding-top: 6px;
}

.narrow {
    max-width: 580px;
}

.panel,
.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 24px;
    margin: 18px 0;
    box-shadow: var(--shadow);
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

h2 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

label {
    display: block;
    margin-bottom: 16px;
    font-weight: 650;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    font-size: 1rem;
    background: #ffffff;
}

button,
.button {
    display: inline-block;
    border: 0;
    background: var(--blue-dark);
    color: #ffffff;
    padding: 12px 17px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.button:hover {
    background: #204f81;
    transform: translateY(-1px);
    box-shadow: 0 8px 17px rgba(28,75,123,0.16);
}

.button.secondary {
    background: #e8f0f9;
    color: #24578d;
    border: 1px solid #afc6df;
}

.links {
    margin-top: 18px;
}

a {
    color: #1d4ed8;
}

.alert {
    padding: 13px 15px;
    border-radius: 3px;
    margin: 16px 0;
}

.alert.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.alert.success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: white;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    vertical-align: top;
}

.inline-form,
.module-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 56px 20px;
    text-align: center;
    background: #f8fafc;
    color: #64748b;
    font-weight: 800;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.big {
    font-size: 2.4rem;
    font-weight: 850;
    margin: 0 0 18px 0;
}

code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 3px 6px;
    border-radius: 6px;
}

.code-list {
    list-style: none;
    padding: 0;
}

.code-list li {
    margin: 8px 0;
    font-size: 1.1rem;
}

.progress-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.progress-title {
    margin-bottom: 12px;
    font-size: 1rem;
}

.progress-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.progress-dot {
    height: 14px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 5px 12px rgba(207,63,63,0.15);
}

.progress-dot.completed {
    background: var(--green);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), 0 5px 12px rgba(47,155,99,0.16);
}

.progress-dot.current {
    background: var(--blue);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), 0 5px 12px rgba(30,115,190,0.22);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.module-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: #ffffff;
    border: 1px solid #dce5f1;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    min-height: 500px;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(30,115,190,0.32);
}

.module-card.completed {
    border-color: rgba(47,155,99,0.30);
}

.module-card.locked {
    background: #f3f6fb;
    border-color: #dbe4ee;
    color: #8a94a3;
    cursor: not-allowed;
    box-shadow: none;
}

.module-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.module-card-inner {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    height: 100%;
}

.module-card-head {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #ffffff;
}

.module-card.locked .module-card-head {
    background: linear-gradient(135deg, #9aa6b7, #7f8b9c);
}

.module-card.completed .module-card-head {
    background: linear-gradient(135deg, #2f9b63, #267f51);
}

.module-card-title {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.module-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 24px 20px;
    background: #ffffff;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid rgba(30,115,190,0.12);
}

.module-card.completed .badge {
    background: #e8f7ef;
    color: #206f47;
    border-color: rgba(47,155,99,0.14);
}

.module-card.locked .badge {
    background: #eef2f7;
    color: #6f7d91;
    border-color: rgba(111,125,145,0.14);
}

.module-card-image-wrap {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 258px;
}

.module-card-image {
    display: block;
    width: 100%;
    max-width: 240px;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(15, 23, 42, 0.08));
}

.module-card.locked .module-card-image {
    opacity: 0.55;
    filter: grayscale(0.15) drop-shadow(0 10px 12px rgba(15, 23, 42, 0.04));
}

.module-page {
    max-width: 900px;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-page-head h1 {
    margin: 0 0 4px 0;
}

.admin-page-head p {
    margin: 0;
}

.progress-user-list {
    display: grid;
    gap: 14px;
}

.user-progress-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.user-progress-card summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.user-progress-card summary::-webkit-details-marker {
    display: none;
}

.user-progress-card summary::after {
    content: "aufklappen";
    color: var(--blue);
    font-weight: 750;
    font-size: 0.9rem;
}

.user-progress-card[open] summary::after {
    content: "zuklappen";
}

.user-progress-card summary strong {
    display: block;
    font-size: 1.05rem;
}

.user-progress-card summary .muted {
    display: block;
    margin-top: 2px;
}

.user-progress-meta {
    color: var(--muted);
    white-space: nowrap;
}

.user-progress-card table {
    margin: 0;
    border-top: 1px solid var(--line);
}

.user-progress-empty {
    padding: 0 20px 18px 20px;
}


.module-card-body {
    padding-top: 16px;
}

.module-card-image-wrap {
    margin-top: 0;
}

.module-card-topic {
    display: block;
    width: 100%;
    text-align: center;
    color: #3f4754;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.15em;
    padding: 0 6px;
}

.module-card-description {
    min-height: 4.2em;
}

.module-card.locked .module-card-topic {
    color: #6f7a89;
}

.module-card-description {
    display: block;
    width: 100%;
    text-align: center;
    color: #5f6875;
    font-size: 0.94rem;
    line-height: 1.45;
    padding: 0 4px;
    margin-top: 4px;
}

.module-card.locked .module-card-description {
    color: #7e8897;
}

.progress-panel {
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .brand-inner,
    .nav-inner,
    .container {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .progress-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-page-head {
        display: block;
    }

    .admin-page-head .button {
        margin-top: 14px;
    }

    .user-progress-card summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .module-card,
    .module-card-inner {
        min-height: 450px;
    }

    .module-card-image-wrap {
        min-height: 220px;
    }
}


/* Dashboard welcome */
.welcome-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 52px);
    max-width: 900px;
    margin: 0 auto;
}

.welcome-card h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.welcome-card p {
    max-width: 760px;
    color: #4b5563;
    font-size: 1.06rem;
    margin-bottom: 16px;
}

.welcome-card .button {
    margin-top: 12px;
}

.module-card-topic {
    margin-bottom: -2px;
}


.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-toolbar {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.search-label {
    margin: 0;
}

.search-label input {
    margin-top: 8px;
}

.search-count {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
}

.button.danger,
.danger-button {
    background: #b42318;
}

.button.danger:hover,
.danger-button:hover {
    background: #8f1d14;
}

.danger-panel {
    border-color: #fecaca;
}

.filter-item[hidden] {
    display: none !important;
}

@media (max-width: 780px) {
    .admin-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }
}


.module-container {
    max-width: 1180px;
}

.module-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 42px);
}

.h5p-module-panel {
    max-width: 1080px;
    margin: 0 auto;
}

.module-header-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 8px 0;
    color: var(--blue);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.h5p-activity-block {
    max-width: 980px;
    margin: 0 auto 28px auto;
}


.activity-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.activity-title-row.centered {
    justify-content: center;
    text-align: center;
}

.activity-title-row h2 {
    margin-bottom: 6px;
}

.h5p-card {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.hotspot-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px;
}


.h5p-frame {
    display: block;
    width: 100%;
    border: 0;
    background: #ffffff;
}

.hotspot-frame {
    height: min(60vh, 620px);
    min-height: 460px;
    max-height: 620px;
    border-radius: 18px;
    overflow: hidden;
}


.module-section-divider {
    width: min(860px, 92%);
    height: 1px;
    margin: 8px auto 30px auto;
    background: linear-gradient(90deg, transparent, rgba(43, 113, 184, 0.42), transparent);
}

.module-gate-feedback {
    max-width: 760px;
    margin: 12px auto 0 auto;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 650;
    text-align: center;
}

.module-gate-feedback.notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.module-gate-feedback.success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.module-complete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

.disabled-button,
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .module-header-row {
        flex-direction: column;
    }

    .activity-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-title-row.centered {
        text-align: left;
    }

    

    .hotspot-frame {
        height: 520px;
        min-height: 420px;
        max-height: 520px;
    }

    
}



/* Version 86 – Hinweise zu Kennwortanforderungen */
.password-requirements {
    line-height: 1.55;
}

.password-requirements strong {
    display: inline;
    margin-right: 4px;
}

/* Patch 362: allgemeine Inhaltsresilienz – Formulare, Bilder, Tabellen, Karten. */
body { min-width: 0; }
body > main, body > .container { min-width: 0; }
main :is(.panel, .card, .module-card, .course-content-card, .learning-workspace-panel,
    .group-card, .dashboard-course-overview, .admin-page-head, .public-info-card) { min-width: 0; }
main :is(img, svg, video, canvas) { max-width: 100%; }
main :is(input, textarea, select) { max-width: 100%; min-width: 0; }
main :is(h1, h2, h3, h4, p, .card-title, .module-card-title) { overflow-wrap: break-word; }
main :is(.table-scroll, .table-responsive, .table-wrap, .assessment-table-wrap,
    .module-review-table-wrap) { max-width: 100%; overflow-x: auto; }
@media (min-width: 901px) and (max-width: 1550px) {
    .container { margin-top: clamp(16px, 1.8vw, 30px); }
    .panel, .card { padding: clamp(15px, 1.35vw, 24px); }
    .grid { gap: clamp(12px, 1.25vw, 18px); }
    .big { font-size: clamp(1.9rem, 2.25vw, 2.4rem); }
    main h1 { font-size: clamp(1.65rem, 2.3vw, 2.5rem); }
    main h2 { font-size: clamp(1.22rem, 1.65vw, 1.9rem); }
    main :is(input,select,textarea) { padding: 10px 12px; }
    main :is(button,.button) { padding: 10px 14px; }
}
@media (max-width: 900px) {
    .container { margin: 16px auto; padding: 0 12px 22px; }
    .panel, .card { padding: clamp(12px, 2.3vw, 20px); margin: 12px 0; }
    .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
    main h1 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
    main h2 { font-size: clamp(1.2rem, 2.55vw, 1.65rem); }
    .big { font-size: clamp(1.7rem, 4vw, 2.2rem); }
    main :is(button, .button) { max-width: 100%; white-space: normal; }
    main :is(input, select, textarea) { padding: 10px 12px; }
}
@media (max-width: 600px) {
    main :is(h1,h2,h3) { overflow-wrap: anywhere; }
    .panel, .card { padding: 12px; }
    .inline-form, .module-actions { gap: 8px; }
}

/* ENDE: 00-base.css */

/* START: 10-lecturer-account.css */
/* Struktur Version 22: Dozenten- und Ergebnisansichten */
.table-wrap {
    overflow-x: auto;
}

.button.small {
    padding: 8px 12px;
    font-size: 0.86rem;
}

.submission-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    margin-bottom: 14px;
}

.submission-text {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--line);
}


.documentation-tool {
    max-width: 1080px;
    margin: 0 auto;
}

.doc-context-card,
.doc-final-review,
.doc-stage {
    max-width: 920px;
    margin: 0 auto 18px auto;
    background: #ffffff;
    border: 1px solid rgba(43, 113, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.doc-context-card {
    padding: 24px;
}

.doc-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.doc-meta-grid div {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
}

.doc-meta-grid strong,
.doc-meta-grid span {
    display: block;
}

.doc-meta-grid strong {
    color: var(--blue);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.guiding-question {
    font-size: 1.18rem;
    font-weight: 800;
    color: #172033;
}

.doc-stage {
    overflow: hidden;
}

.doc-stage summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    padding: 18px 22px;
    background: #eef6ff;
    color: #172033;
    font-weight: 850;
}

.doc-stage summary small {
    color: #58708f;
    font-weight: 700;
}

.doc-stage-body {
    padding: 22px;
}

.dialogue-box {
    background: #f8fafc;
    border-left: 4px solid var(--blue);
    border-radius: 16px;
    padding: 16px 18px;
    margin: 12px 0 18px 0;
    line-height: 1.6;
}

.hint-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 16px 0;
}

.doc-input-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.doc-field span {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
}

.doc-field input,
.doc-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    font: inherit;
    background: #ffffff;
}

.doc-field textarea {
    resize: vertical;
    min-height: 120px;
}

.sample-solution {
    margin-top: 16px;
    border: 1px dashed rgba(43, 113, 184, 0.35);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fbfdff;
}

.sample-solution summary {
    cursor: pointer;
    color: var(--blue);
    font-weight: 800;
}

.sample-solution div {
    margin-top: 12px;
    color: #334155;
    line-height: 1.6;
}

.doc-final-review {
    padding: 22px;
    margin-top: 26px;
}

.full-dialogue {
    max-height: 420px;
    overflow: auto;
}

.documentation-submit-row {
    max-width: 920px;
    margin: 24px auto 0 auto;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.doc-review-stage {
    max-width: 980px;
}

@media (max-width: 820px) {
    .doc-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doc-stage summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .doc-meta-grid {
        grid-template-columns: 1fr;
    }
}


/* Universität-Siegen-Logo im Kopfbereich */
.brand-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.uni-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    line-height: 0;
    margin-left: auto;
    margin-right: 0;
    background: transparent;
}

.uni-logo {
    display: block;
    width: auto;
    height: 78px;
    max-width: min(28vw, 360px);
    object-fit: contain;
    background: transparent;
}

@media (max-width: 900px) {
    .brand-inner {
        padding: 12px 20px;
        gap: 18px;
    }

    .uni-logo {
        height: 62px;
        max-width: 220px;
    }

    .site-title {
        font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    }
}

@media (max-width: 760px) {
    .brand-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .uni-logo-link {
        margin-left: 0;
        align-self: flex-end;
    }

    .uni-logo {
        height: 54px;
        max-width: 190px;
    }
}


.compact-doc-card {
    box-shadow: none;
    margin-bottom: 0;
}

.action-list {
    margin: 14px 0 0 0;
    padding-left: 1.25rem;
}

.action-list li {
    margin-bottom: 8px;
}


.restart-button {
    margin-top: 0;
}


.module-gate-feedback,
.alert,
.alert strong,
.alert li {
    font-weight: 400;
}


.phase-help {
    margin: 16px 0;
}

.phase-help summary {
    display: inline-flex;
    cursor: pointer;
    border: 1px solid rgba(43, 113, 184, 0.26);
    background: #ffffff;
    color: var(--blue-dark);
    border-radius: 999px;
    padding: 8px 13px;
}

.phase-help p {
    margin: 12px 0 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(43, 113, 184, 0.18);
    background: #ffffff;
    color: #334155;
}


.brand-shell {
    position: relative;
}

.brand-inner {
    max-width: none;
    width: 100%;
    position: relative;
    justify-content: center;
    padding-left: 240px;
    padding-right: 240px;
}

.brand-copy {
    flex: 0 1 auto;
    text-align: center;
}

.uni-logo-link {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.container {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-shell,
.module-container {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.module-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.module-card.current {
    border-color: rgba(30, 115, 190, 0.40);
}

.module-card.pending {
    border-color: rgba(245, 158, 11, 0.42);
}

.module-card.completed {
    border-color: rgba(47, 155, 99, 0.36);
}

.module-card.current .module-card-head {
    background: var(--blue);
    color: #ffffff;
}

.module-card.pending .module-card-head {
    background: #f2c94c;
    color: #1f2937;
}

.module-card.completed .module-card-head {
    background: var(--green);
    color: #ffffff;
}

.module-card.current .badge {
    background: #eef6ff;
    color: var(--blue-dark);
    border-color: rgba(30, 115, 190, 0.20);
}

.module-card.pending .badge {
    background: #fff8db;
    color: #8a5a00;
    border-color: rgba(245, 158, 11, 0.22);
}

.module-card.completed .badge {
    background: #e8f7ef;
    color: #206f47;
    border-color: rgba(47,155,99,0.18);
}


@media (max-width: 1219px) {
    .brand-inner {
        padding-left: 180px;
        padding-right: 180px;
    }
}

@media (max-width: 900px) {
    .brand-inner {
        padding-left: 20px;
        padding-right: 20px;
        justify-content: center;
    }

    .uni-logo-link {
        position: static;
        transform: none;
        margin-left: auto;
    }

    .brand-copy {
        text-align: left;
    }
}


/* Version 41: Dozentenprüfung, Nachrichten und Tickets */
.badge.review-passed,
.review-passed {
    background: #e8f7ef;
    color: #206f47;
    border-color: rgba(47,155,99,0.22);
}

.badge.review-revision,
.review-revision {
    background: #fff8db;
    color: #8a5a00;
    border-color: rgba(245, 158, 11, 0.28);
}

.badge.review-open,
.review-open {
    background: #eef2f7;
    color: #475569;
    border-color: rgba(100, 116, 139, 0.22);
}

.review-button {
    margin-left: 8px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.review-grid div {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}

.review-grid span,
.review-grid strong,
.review-grid em {
    display: block;
    font-style: normal;
    font-weight: 400;
}

.review-grid span {
    color: var(--muted);
    margin-bottom: 4px;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button.warning,
button.warning {
    background: #a16207;
}

.button.warning:hover,
button.warning:hover {
    background: #854d0e;
}

.message-card,
.ticket-message {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
}

.message-card.unread {
    border-color: rgba(30, 115, 190, 0.35);
    box-shadow: 0 10px 28px rgba(30, 115, 190, 0.09);
}

.message-card-head,
.ticket-message-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

.message-card h2 {
    margin-bottom: 4px;
}

.message-date,
.ticket-message-head span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.message-body,
.ticket-message div:last-child {
    margin-top: 10px;
    line-height: 1.6;
}

.ticket-message.staff {
    border-left: 4px solid var(--blue);
}

.ticket-message.student {
    border-left: 4px solid #f2c94c;
}

.inline-form {
    margin-top: 14px;
}

.module-card.revision {
    border-color: rgba(245, 158, 11, 0.42);
}

.module-card.revision .module-card-head {
    background: #f2c94c;
    color: #1f2937;
}

.module-card.revision .badge {
    background: #fff8db;
    color: #8a5a00;
    border-color: rgba(245, 158, 11, 0.22);
}

@media (max-width: 920px) {
    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Version 42: Accountbereich mit Avatar */
.nav-inner {
    justify-content: space-between;
    align-items: stretch;
}

.nav-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-primary a,
.nav-inner > a.account-pill {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 22px;
    border-radius: 0;
    font-weight: 700;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255,255,255,0.22);
    box-shadow: none;
    transition: background 160ms ease, color 160ms ease;
}

.nav-primary a:hover,
.nav-primary a.active,
.account-pill:hover,
.account-pill.active {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    transform: none;
    box-shadow: inset 0 -3px 0 rgba(255,255,255,0.52);
}

.account-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    border-right: 1px solid rgba(255,255,255,0.22);
}

.account-avatar-small {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.88);
    background: #ffffff;
}

.account-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-arrow {
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0.9;
    transform: translateY(1px);
}

.account-profile-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.account-avatar-large {
    width: 104px;
    height: 104px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    background: #ffffff;
}

.account-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-action-card {
    display: block;
    padding: 18px;
    border: 1px solid rgba(43, 113, 184, 0.18);
    border-radius: 18px;
    background: #ffffff;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.account-action-card:hover {
    border-color: rgba(43, 113, 184, 0.38);
    transform: translateY(-1px);
}

.account-action-card span,
.account-action-card small {
    display: block;
}

.account-action-card span {
    font-size: 1.05rem;
    font-weight: 750;
    margin-bottom: 4px;
}

.account-action-card small {
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 780px) {
    .nav-inner {
        align-items: stretch;
    }

    .nav-primary {
        width: 100%;
    }

    .account-pill {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        border-top: 1px solid rgba(255,255,255,0.22);
    }

    .account-actions-grid {
        grid-template-columns: 1fr;
    }

    .account-profile-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Version 43: Nachrichtenfelder, Profilwarnung und Abschnittsnavigation */
textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.message-compose-form label,
.ticket-form label,
.review-form label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    font-weight: 650;
}

.message-compose-form input,
.message-compose-form textarea,
.ticket-form input,
.ticket-form textarea,
.review-form textarea {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.message-compose-form textarea,
.ticket-form textarea,
.review-form textarea {
    min-height: 190px;
    line-height: 1.55;
}

.account-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-alert-triangle {
    position: absolute;
    right: -5px;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 13px solid #f59e0b;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
}

.account-alert-triangle::after {
    content: "!";
    position: absolute;
    left: -2px;
    top: 3px;
    color: #111827;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}


/* Version 44: Abstände, Hover-Effekt und Revision in der linken Legende */
.module-gate-feedback,
.alert,
.alert.error,
.alert.success {
    margin-top: 22px;
    margin-bottom: 22px;
}

.module-header-row + .module-gate-feedback,
.module-header-row + .alert {
    margin-top: 24px;
}


/* Version 45: Überarbeitung erneut eingereicht und Gesamtleistung */
.badge.review-resubmitted,
.review-resubmitted {
    background: #e8f7ef;
    color: #206f47;
    border-color: rgba(47,155,99,0.24);
}

.module-card.completed .module-card-status,
.module-card.completed .badge {
    background: #e8f7ef;
    color: #206f47;
}

.progress-dot.revision {
    background: #cf3f3f;
}


.final-performance-panel {
    border-color: rgba(47,155,99,0.22);
}

.final-pass-button {
    transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.final-pass-button.enabled {
    background: #2f9b63;
}

.final-pass-button.enabled:hover {
    background: #247a4e;
}

.final-pass-button.disabled-button,
.final-pass-button:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


/* Version 46: Statushinweise einreihig und Prüfen-Button sauber ausgerichtet */


.review-status-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.review-status-actions .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    margin: 0;
}

.review-status-actions .review-button {
    margin-left: 0;
    flex: 0 0 auto;
}

.table-wrap td {
    vertical-align: middle;
}


/* Version 47: Unterkategorien mit Abschnittsprüfungen */


.section-review-list {
    display: grid;
    gap: 14px;
}

.section-review-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) minmax(280px, 1.2fr);
    gap: 18px;
    align-items: start;
}

.section-review-item.section-passed {
    border-color: rgba(47, 155, 99, 0.28);
    background: #f6fff9;
}

.section-review-item.section-revision {
    border-color: rgba(207, 63, 63, 0.32);
    background: #fff8f8;
}

.section-review-item h3 {
    margin: 0 0 4px 0;
}

.section-review-controls {
    display: grid;
    grid-template-columns: minmax(160px, 0.65fr) minmax(220px, 1.35fr);
    gap: 12px;
}

.section-review-controls label {
    margin-bottom: 0;
}

.section-review-controls textarea {
    min-height: 90px;
}

@media (max-width: 900px) {
    .section-review-item,
    .section-review-controls {
        grid-template-columns: 1fr;
    }
}


/* Version 48: Überarbeitete Unterpunkte bleiben prüfbar sichtbar */


.section-review-item.section-resubmitted {
    border-color: rgba(47, 155, 99, 0.28);
    background: #f6fff9;
}



/* ENDE: 10-lecturer-account.css */

/* START: 20-communication.css */
/* Version 49: Direktnachrichten und Gruppenaktivitäten */
.group-admin-grid,
.group-room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.group-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.group-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.group-card h3 {
    margin-bottom: 6px;
}

.group-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.member-list {
    display: grid;
    gap: 12px;
}

.member-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
}

.member-row strong,
.member-row span {
    display: block;
}

.group-chat-list {
    max-height: 520px;
    overflow: auto;
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
    margin-bottom: 16px;
}

.group-chat-message {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    background: #ffffff;
    border: 1px solid rgba(43, 113, 184, 0.12);
    border-radius: 16px;
    padding: 10px;
}

.group-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid var(--line);
}

.group-chat-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 4px;
}

.group-chat-meta span {
    color: var(--text);
    font-weight: 650;
}

.group-chat-body {
    line-height: 1.5;
}

.chat-compose textarea {
    min-height: 90px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.group-workspace-panel textarea {
    min-height: 360px;
}

.group-submission-list {
    display: grid;
    gap: 18px;
}

.group-submission-card .submission-text {
    margin-top: 14px;
}

select[multiple] {
    min-height: 170px;
}

@media (max-width: 960px) {
    .group-admin-grid,
    .group-room-grid {
        grid-template-columns: 1fr;
    }

    .member-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .member-row form {
        grid-column: 2;
    }
}


/* Version 50: Testlogin-Buttons */




.test-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.test-login-button {
    width: 100%;
    text-align: center;
}


.form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}



/* ENDE: 20-communication.css */

/* START: 25-public-pages.css */
/* Version 83 – öffentliche Kontakt- und Impressumsseiten */
.public-info-page {
    max-width: 980px;
}

.public-info-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.public-info-head {
    padding: 28px 32px 24px;
    background: #3674b4;
    color: #ffffff;
    border-bottom: 0;
}

.public-info-head .eyebrow,
.public-info-head h1,
.public-info-head p {
    color: #ffffff;
}

.public-info-head .eyebrow {
    opacity: 1;
    color: #e2efff;
}

.public-info-head h1 {
    margin: 4px 0 10px;
}

.public-info-head p {
    max-width: 760px;
    margin: 0;
    line-height: 1.55;
    opacity: .92;
}

.contact-card > .alert,
.public-contact-form,
.imprint-section {
    margin-left: 32px;
    margin-right: 32px;
}

.contact-card > .alert:first-of-type {
    margin-top: 24px;
}

.public-contact-form {
    padding: 28px 0 32px;
}

.public-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.public-contact-actions {
    display: flex;
    justify-content: flex-end;
}

.contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.imprint-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.imprint-section:last-child {
    border-bottom: 0;
    padding-bottom: 32px;
}

.imprint-section h2 {
    margin-top: 0;
}

.imprint-section p {
    line-height: 1.65;
}

@media (max-width: 700px) {
    .public-info-head {
        padding: 24px 20px 20px;
    }

    .contact-card > .alert,
    .public-contact-form,
    .imprint-section {
        margin-left: 20px;
        margin-right: 20px;
    }

    .public-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Passwort-Reset: dieselbe auf die Dashboardbreite begrenzte Bühne wie
   Anmeldung und Kontakt. Der bisherige vertikal zentrierte, separate
   Weißblock wurde entfernt; die zentrale Nebel-Geometrie misst die Karte. */
.password-reset-layout {
    min-height: 0;
    padding-bottom: 40px;
}
.password-reset-card {
    width: 100%;
    margin: 0;
}
.password-reset-content {
    padding: 24px 32px 30px;
}
.password-reset-description {
    max-width: 720px;
    margin: 0 0 20px;
    line-height: 1.6;
}
.password-reset-form {
    display: grid;
    gap: 18px;
    max-width: 100%;
}
.password-reset-form label { margin-bottom: 0; }
.password-reset-form button {
    width: max-content;
    max-width: 100%;
}
@media (max-width: 700px) {
    .password-reset-content { padding: 22px 20px 26px; }
    .password-reset-form button { width: 100%; }
}

/* ENDE: 25-public-pages.css */

/* START: 30-groups.css */
/* Version 52: Gruppen-Video-Upload und Komprimierung */
.group-video-panel {
    margin-top: 24px;
}

.group-video-upload-form {
    margin: 18px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.group-video-list {
    display: grid;
    gap: 22px;
}

.group-video-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.group-video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.group-video-meta span {
    color: var(--muted);
    font-size: .92rem;
}

.group-video-player {
    width: 100%;
    max-height: 620px;
    background: #111;
    border-radius: 12px;
}

.video-compression-prompt,
.video-compression-failed {
    margin-bottom: 20px;
}

.video-compression-prompt .review-actions {
    margin-top: 16px;
}


/* Version 53: Video-Kacheln, Metadaten-Popup und gleich hohe Gruppenbereiche */
.group-room-grid {
    align-items: stretch;
}

.group-chat-panel,
.group-workspace-panel {
    height: 100%;
    box-sizing: border-box;
}

.group-video-gallery {
    margin-top: 28px;
}

.group-video-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 205px));
    gap: 14px;
    align-items: stretch;
    margin-bottom: 18px;
}

.group-video-tile {
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.group-video-tile:hover,
.group-video-tile.active {
    border-color: rgba(43, 113, 184, 0.52);
    background: #f8fbff;
    transform: translateY(-1px);
}

.group-video-tile strong {
    font-size: 1rem;
}

.group-video-tile span,
.group-video-tile small {
    color: var(--muted);
    line-height: 1.35;
}

.group-video-add-tile {
    border-style: dashed;
    align-items: center;
    text-align: center;
}

.group-video-add-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef5fc;
    color: var(--blue);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.group-video-detail-stack {
    margin-top: 8px;
}

.group-video-detail[hidden] {
    display: none;
}

.group-video-detail {
    padding: 22px;
}

.group-video-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.group-video-detail-head h2 {
    margin: 2px 0 0;
}

.group-video-uploader,
.group-video-dialog-uploader {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: .92rem;
}

.group-video-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.group-video-facts div {
    padding: 11px 12px;
    border: 1px solid #e1e7ef;
    border-radius: 13px;
    background: #f8fafc;
}

.group-video-facts dt {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.group-video-facts dd {
    margin: 0;
    font-weight: 700;
}

.group-video-empty-state {
    margin-top: 8px;
}

.group-video-upload-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.group-video-upload-dialog::backdrop {
    background: rgba(15, 23, 42, 0.44);
}

.group-video-upload-dialog-form {
    padding: 22px;
}

.group-video-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.group-video-dialog-head h2 {
    margin: 2px 0 0;
}

.dialog-close-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid var(--line);
    font-size: 1.35rem;
}

.group-video-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.group-video-form-grid .full-width {
    grid-column: 1 / -1;
}

.group-video-duration-note {
    margin: 14px 0 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--muted);
}

.group-video-dialog-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .group-video-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .group-video-tile-grid,
    .group-video-form-grid,
    .group-video-facts {
        grid-template-columns: 1fr;
    }

    .group-video-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-video-detail-head {
        flex-direction: column;
    }
}


/* Version 54: ein Video je Nutzer, Bearbeitung/Löschen und zeitgestütztes Peer-Feedback */
.group-member-color-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.member-color { display:inline-flex; align-items:center; width:max-content; padding:2px 8px; border-radius:999px; font-weight:700; font-size:.88rem; }
.member-color-1 { background:#eaf2ff; color:#1e5d9b; }
.member-color-2 { background:#eef8e9; color:#356d2f; }
.member-color-3 { background:#fff2df; color:#925a12; }
.member-color-4 { background:#f8ecff; color:#70459a; }
.member-color-5 { background:#ffecef; color:#9d3d50; }
.member-color-6 { background:#e6f8f6; color:#176e68; }
.member-color-7 { background:#f2f0ff; color:#5347a5; }
.member-color-8 { background:#f3f4f6; color:#4b5563; }
.member-border-1 { border-left-color:#4d8fd0 !important; }.member-border-2 { border-left-color:#6ca65a !important; }.member-border-3 { border-left-color:#d7973e !important; }.member-border-4 { border-left-color:#9b6ac3 !important; }.member-border-5 { border-left-color:#cf6679 !important; }.member-border-6 { border-left-color:#3c9b94 !important; }.member-border-7 { border-left-color:#766bc5 !important; }.member-border-8 { border-left-color:#7b8491 !important; }

.group-video-add-tile.disabled { opacity:.48; cursor:not-allowed; filter:grayscale(.15); }
.group-video-add-tile.disabled:hover { transform:none; border-color:var(--line); background:#fff; }
.group-video-select-tile { position:relative; padding:0; overflow:hidden; justify-content:stretch; }
.group-video-tile-main { width:100%; min-height:116px; padding:16px 44px 16px 16px; border:0; background:transparent; color:inherit; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:6px; text-align:left; }
.group-video-tile-actions { position:absolute; top:8px; right:8px; display:flex; gap:5px; z-index:3; }
.group-video-tile-actions form { margin:0; }
.group-video-edit-trigger, .group-video-delete-button { width:28px; height:28px; padding:0; border-radius:999px; border:1px solid #d5dde7; background:#fff; color:#4b5563; display:grid; place-items:center; font-size:1rem; line-height:1; }
.group-video-delete-button:hover { background:#fff0f1; color:#a82434; border-color:#e6a8b0; }
.group-video-edit-trigger:hover { background:#eef5fc; color:#1f5f9e; border-color:#9fc0df; }
.group-video-facts-v54 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.group-video-facts-v54 .wide { grid-column:span 2; }

.group-video-review-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(300px,.75fr); gap:18px; align-items:start; }
.group-video-player-shell { position:relative; background:#0f172a; border-radius:14px; overflow:hidden; }
.group-video-player-shell .group-video-player { display:block; width:100%; margin:0; border-radius:0; }
.video-resume-overlay { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:4; padding:13px 20px; border-radius:999px; background:rgba(15,23,42,.9); color:#fff; border:1px solid rgba(255,255,255,.3); box-shadow:0 8px 24px rgba(0,0,0,.28); }
.group-video-comments { min-height:100%; border:1px solid #dde5ef; border-radius:14px; background:#f8fafc; padding:16px; }
.group-video-comments h3 { margin:0 0 4px; }
.group-video-comments-head { margin-bottom:12px; }
.group-video-comment-list { display:flex; flex-direction:column; gap:10px; max-height:480px; overflow:auto; margin-bottom:12px; }
.group-video-comment-card { background:#fff; border:1px solid #e1e7ef; border-left:4px solid #9aa5b1; border-radius:11px; padding:10px 11px; }
.group-video-comment-card p { margin:7px 0 0; white-space:normal; overflow-wrap:anywhere; }
.group-video-comment-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.comment-timestamp-button { padding:4px 8px; border-radius:999px; background:#eef5fc; color:#225f9b; border:1px solid #c8daeb; font-size:.78rem; }
.group-video-add-comment { width:100%; }
.group-video-comment-form { margin-top:10px; padding-top:12px; border-top:1px solid #dce3eb; }
.comment-form-time { margin-bottom:8px; color:var(--muted); }
.form-inline-feedback { min-height:1.2em; margin:8px 0 0; color:#9b2935; font-size:.88rem; }

@media (max-width: 980px) {
    .group-video-review-layout { grid-template-columns:1fr; }
    .group-video-comments { min-height:auto; }
}
@media (max-width: 760px) {
    .group-video-facts-v54 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .group-video-facts-v54 .wide { grid-column:span 2; }
}


/* Version 55: dreispaltiger Gruppenraum, Review-Pflicht und Dozentenabgabe */
.wide-container { max-width: 1540px; }
.group-peer-review-layout { display:grid; grid-template-columns:minmax(260px,.72fr) minmax(520px,1.65fr) minmax(310px,.8fr); gap:18px; align-items:start; }
.group-peer-chat, .group-peer-comments-column { position:sticky; top:18px; max-height:calc(100vh - 36px); overflow:auto; }
.group-peer-chat .group-chat-list { max-height:420px; }
.group-peer-video-column { min-width:0; display:grid; gap:16px; }
.group-video-tile-grid-v55 { grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); margin-bottom:0; }
.group-video-tile.review-open { border-left:5px solid #c94655; background:#fffafa; }
.group-video-tile.review-complete { border-left:5px solid #3f9b62; background:#f6fff8; }
.review-tile-status { margin-top:5px; font-weight:750; font-size:.78rem; }
.group-video-tile.review-open .review-tile-status { color:#a52f3f; }
.group-video-tile.review-complete .review-tile-status { color:#267144; }
.group-video-center-detail[hidden], .group-video-comments-v55[hidden] { display:none; }
.group-video-center-detail { padding:20px; }
.group-video-facts-v55 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.group-video-facts-v55 .wide { grid-column:span 2; }
.group-peer-comments-column { min-height:560px; }
.group-video-comments-v55 { display:flex; flex-direction:column; min-height:520px; }
.group-video-comments-v55 .group-video-comment-list { flex:1; max-height:430px; }
.comment-task-counter { display:grid; gap:4px; margin:0 0 13px; padding:11px 12px; border:1px solid #efc0c6; border-left:4px solid #c94655; border-radius:12px; background:#fff8f9; }
.comment-task-counter strong { color:#9e3140; }
.comment-task-counter span { color:var(--muted); font-size:.86rem; line-height:1.35; }
.comment-task-counter.complete { border-color:#b9dec7; border-left-color:#3f9b62; background:#f5fff8; }
.comment-task-counter.complete strong { color:#267144; }
.complete-video-review-form { margin-top:10px; }
.complete-video-review-button { width:100%; }
.group-overall-task-panel { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.group-overall-task-panel h3 { margin:0 0 4px; }
.group-overall-task-panel p { margin:0; }
.success-text { color:#267144; font-weight:700; }
.lecturer-group-submission-rows { display:grid; gap:10px; margin:14px 0; }
.lecturer-group-submission-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid var(--line); border-radius:13px; background:#f8fafc; }
.lecturer-group-submission-row strong, .lecturer-group-submission-row span { display:block; }
.lecturer-group-submission-row span { color:var(--muted); font-size:.87rem; margin-top:3px; }
.lecturer-review-list { display:grid; gap:18px; margin-top:22px; }
.lecturer-video-review-card { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr); gap:20px; }
.lecturer-video-review-main { min-width:0; }
.lecturer-submission-video { margin-top:14px; }
.lecturer-submission-comments { display:flex; flex-direction:column; gap:10px; max-height:680px; overflow:auto; padding-left:4px; }
.comment-timestamp-static { font-size:.8rem; font-weight:700; color:#225f9b; background:#eef5fc; border:1px solid #c8daeb; border-radius:999px; padding:4px 8px; }
@media (max-width:1180px){ .group-peer-review-layout{grid-template-columns:280px minmax(0,1fr);} .group-peer-comments-column{grid-column:2;position:static;max-height:none;} .group-peer-chat{grid-row:1 / span 2;} }
@media (max-width:820px){ .group-peer-review-layout{grid-template-columns:1fr;} .group-peer-chat,.group-peer-comments-column{position:static;max-height:none;grid-column:auto;grid-row:auto;} .group-video-facts-v55{grid-template-columns:repeat(2,minmax(0,1fr));}.group-video-facts-v55 .wide{grid-column:span 2}.group-overall-task-panel,.lecturer-group-submission-row{align-items:stretch;flex-direction:column}.lecturer-video-review-card{grid-template-columns:1fr;} }


/* Version 56: kompakter Gruppenraum und gruppenweite Abgabe */
.wide-container {
    max-width: 1760px;
}

.group-peer-review-layout {
    grid-template-columns: minmax(320px, 1fr) minmax(500px, 1.35fr) minmax(320px, 1fr);
    gap: 16px;
}

.group-peer-chat,
.group-peer-comments-column {
    min-width: 0;
}

.group-peer-chat .group-chat-list {
    max-height: 500px;
}

.group-video-tile-grid-v55 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.group-video-tile,
.group-video-select-tile,
.group-video-add-tile {
    min-height: 0;
}

.compact-video-tile {
    width: 128px;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 14px;
    justify-content: center;
    gap: 4px;
}

.compact-video-tile .group-video-add-icon {
    width: 25px;
    height: 25px;
    font-size: 1.1rem;
}

.group-video-select-tile {
    width: 148px;
    min-height: 72px;
    border-radius: 14px;
}

.compact-video-tile-main {
    min-height: 70px;
    padding: 10px 34px 10px 11px;
    gap: 4px;
    justify-content: center;
}

.compact-video-tile-main strong {
    font-size: .86rem;
    line-height: 1.2;
}

.review-tile-status {
    margin-top: 1px;
    font-size: .72rem;
}

.group-video-select-tile:hover {
    background: #f1f3f5;
}

.group-video-select-tile:hover .group-video-tile-main,
.group-video-tile-main:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.group-video-tile.review-open:hover {
    background: #f7eeee;
}

.group-video-tile.review-complete:hover {
    background: #edf8f0;
}

.group-video-tile-actions {
    top: 5px;
    right: 5px;
    gap: 3px;
}

.group-video-edit-trigger,
.group-video-delete-button {
    width: 23px;
    height: 23px;
    font-size: .84rem;
}

.group-video-center-detail {
    padding: 16px;
}

.group-video-detail-head {
    margin-bottom: 9px;
}

.group-video-detail-head h2 {
    font-size: 1.2rem;
}

.video-meta-details {
    margin: 0 0 10px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.video-meta-details > summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 11px;
    font-size: .82rem;
    font-weight: 750;
    color: #374151;
}

.video-meta-details > summary::-webkit-details-marker {
    display: none;
}

.video-meta-details > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 7px;
    transition: transform 140ms ease;
}

.video-meta-details[open] > summary::before {
    transform: rotate(90deg);
}

.compact-video-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
    background: #fff;
}

.compact-video-meta-table th,
.compact-video-meta-table td {
    padding: 6px 9px;
    border-top: 1px solid #e5e9ef;
    text-align: left;
    vertical-align: top;
}

.compact-video-meta-table th {
    width: 115px;
    color: var(--muted);
    font-weight: 700;
    background: #fbfcfd;
}

.group-video-comments-v55 {
    min-height: 500px;
}

.comment-task-counter {
    gap: 7px;
}

.comment-task-counter .complete-video-review-form {
    margin-top: 3px;
}

.comment-task-counter .complete-video-review-button {
    width: 100%;
    padding: 9px 11px;
    font-size: .88rem;
}

.compact-group-progress {
    align-items: center;
    padding: 15px 17px;
}

.group-progress-main {
    flex: 1;
    min-width: 0;
}

.group-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.group-progress-head h3 {
    margin: 0;
}

.group-progress-stats {
    display: flex;
    gap: 14px;
    margin: 7px 0;
    font-size: .84rem;
    color: var(--muted);
}

.group-progress-stats strong {
    color: var(--text);
}

.compact-progress-track {
    height: 7px;
    border-radius: 999px;
    background: #e7ebef;
    overflow: hidden;
}

.compact-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #4f8a61;
}

.compact-progress-note {
    margin-top: 7px !important;
    font-size: .8rem;
}

.lecturer-group-submission-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    background: #f8fafc;
    margin: 12px 0;
}

.lecturer-group-submission-summary strong,
.lecturer-group-submission-summary span {
    display: block;
}

.lecturer-group-submission-summary span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .84rem;
}

.lecturer-group-video-stack {
    display: grid;
    gap: 20px;
}

.lecturer-group-video-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
    gap: 20px;
}

.lecturer-group-video-card .lecturer-submission-comments {
    max-height: 720px;
}

@media (max-width: 1260px) {
    .group-peer-review-layout {
        grid-template-columns: minmax(280px, .9fr) minmax(0, 1.3fr);
    }

    .group-peer-comments-column {
        grid-column: 2;
        position: static;
        max-height: none;
    }

    .group-peer-chat {
        grid-row: 1 / span 2;
    }

    .lecturer-group-video-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .group-peer-review-layout {
        grid-template-columns: 1fr;
    }

    .group-peer-chat,
    .group-peer-comments-column {
        position: static;
        max-height: none;
        grid-column: auto;
        grid-row: auto;
    }

    .compact-group-progress,
    .lecturer-group-submission-summary {
        flex-direction: column;
        align-items: stretch;
    }
}


/* Version 57: Gruppenbewertung und stabile Video-Steuerung */
.video-resume-overlay:hover,
.video-resume-overlay:focus,
.video-resume-overlay:active {
    transform: translate(-50%, -50%);
}

.lecturer-group-participant-review {
    margin-bottom: 22px;
}

.group-participant-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.group-participant-review-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.group-participant-review-item.passed {
    border-color: #8bc7a3;
    background: #f0faf4;
}

.group-participant-review-item input {
    width: auto;
    margin: 0;
}

.group-participant-review-item span,
.group-participant-review-item strong,
.group-participant-review-item small {
    display: block;
}

.group-participant-review-item small {
    margin-top: 2px;
    color: var(--muted);
}

.group-review-actions {
    margin-top: 14px;
}

.group-review-all-form {
    margin-top: 8px;
}

.final-performance-panel .muted {
    line-height: 1.7;
}



/* Patch 310: Fortschritt beim Gruppenvideo-Upload */
.group-video-upload-progress {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #cadbea;
    border-radius: 14px;
    background: #f5faff;
    color: #183653;
}
.group-video-upload-progress[hidden] {
    display: none !important;
}
.group-video-upload-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.group-video-upload-progress progress {
    display: block;
    width: 100%;
    height: 13px;
    accent-color: #2675b6;
    border-radius: 999px;
}
.group-video-upload-progress-detail {
    margin: 10px 0 4px;
    font-size: .9rem;
}
.group-video-upload-progress-status {
    margin: 4px 0 0;
    font-size: .9rem;
    color: #35536d;
}
.group-video-upload-progress.is-processing {
    border-color: #a9c4df;
}
.group-video-upload-progress.has-error {
    border-color: #e5a4a4;
    background: #fff7f7;
    color: #842b2b;
}
.group-video-upload-progress.has-error .group-video-upload-progress-status {
    color: #842b2b;
}
.group-self-reflection-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  background: #f9fbff;
}
.group-self-reflection-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.group-self-reflection-head h3 {
  margin: 4px 0 0;
}
.group-self-reflection-progress-list {
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.group-self-reflection-progress-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe7f3;
}
.group-self-reflection-progress-list li.is-complete {
  background: #eef8f0;
  border-color: #bdd9c4;
}
.group-self-reflection-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #22344f;
}
.group-self-reflection-textarea {
  width: 100%;
  min-height: 180px;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #b9cee6;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  line-height: 1.55;
  color: #24344f;
  resize: vertical;
}
.group-self-reflection-textarea:disabled {
  background: #f0f3f8;
  color: #70839a;
  cursor: not-allowed;
}
.group-self-reflection-status {
  display: block;
  margin-top: 8px;
  color: #61778f;
}
@media (max-width: 720px) {
  .group-self-reflection-head,
  .group-self-reflection-progress-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Patch 362: Dozenten-Videoauswertung und Gruppenbuilder bei Laptopbreiten. */
@media (max-width: 1100px) {
    .lecturer-video-review-card { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .group-video-player, .group-video-center-detail, .group-video-comments-v55 {
        max-width: 100%; min-width: 0;
    }
}
@media (max-width: 950px) {
    .group-overview-stage .group-builder-columns-sketch {
        grid-template-columns: minmax(0,1fr) !important;
    }
    .group-overview-stage .group-builder-arrows-sketch {
        flex-direction: row !important;
        min-width: 0;
        justify-content: center;
    }
}

/* ENDE: 30-groups.css */

/* START: 40-learning.css */
/* Version 58: neue Lernmodul-Hierarchie */
.learning-hierarchy-page {
    max-width: 1320px;
}

.hierarchy-page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.hierarchy-page-head h1 {
    margin-bottom: 4px;
}

.learning-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: .92rem;
}

.learning-breadcrumb a {
    text-decoration: none;
    font-weight: 700;
}

.learning-hierarchy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.learning-hierarchy-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid #dce5f1;
    border-radius: 22px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

a.learning-hierarchy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(30,115,190,.34);
}

.learning-hierarchy-card strong {
    font-size: 1.45rem;
    letter-spacing: -.02em;
}

.learning-hierarchy-card > span:last-child:not(.learning-hierarchy-card-kicker) {
    color: var(--muted);
}

.learning-hierarchy-card-kicker {
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primary-learning-card {
    border-color: rgba(30,115,190,.25);
}

.disabled-learning-card {
    background: #f2f4f7;
    border-color: #d8dee7;
    color: #8a94a3;
    box-shadow: none;
    cursor: not-allowed;
}

.disabled-learning-card .learning-hierarchy-card-kicker {
    color: #9aa3af;
}

.decomposition-part-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-strip.five-parts {
    grid-template-columns: repeat(5, 1fr);
}


@media (max-width: 760px) {
    .learning-hierarchy-grid,
    .area-learning-grid,
    .decomposition-part-grid {
        grid-template-columns: 1fr;
    }

    .learning-hierarchy-card {
        min-height: 140px;
    }
}


/* Version 59: Illustrationen für Lernmodul- und Bereichskacheln */
.learning-hierarchy-card.with-learning-image {
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 16px;
}

.learning-hierarchy-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
}

.learning-hierarchy-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.primary-learning-card .learning-hierarchy-image-wrap {
    height: 230px;
}

@media (max-width: 760px) {
    .learning-hierarchy-image-wrap,
    .primary-learning-card .learning-hierarchy-image-wrap {
        height: 190px;
    }
}


/* Version 60: sequenzielle Teile und übergeordnete Statusdarstellung */
.area-learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sequenced-learning-card {
    min-height: 430px;
}

.sequenced-learning-card .learning-hierarchy-image-wrap {
    height: 245px;
}

.learning-hierarchy-card-description {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.learning-card-status {
    align-self: flex-start;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    background: #eef6ff;
    color: var(--blue-dark);
    border: 1px solid rgba(30,115,190,.18);
}

.learning-hierarchy-card.area-current {
    border-color: rgba(30,115,190,.42);
}

.learning-hierarchy-card.area-current .learning-card-status {
    background: #eef6ff;
    color: var(--blue-dark);
    border-color: rgba(30,115,190,.22);
}

.learning-hierarchy-card.area-completed {
    border-color: rgba(47,155,99,.46);
    background: #fbfffc;
}

.learning-hierarchy-card.area-completed .learning-card-status {
    background: #e8f7ef;
    color: #206f47;
    border-color: rgba(47,155,99,.24);
}

.learning-hierarchy-card.area-revision {
    border-color: rgba(245,158,11,.58);
    background: #fffdf5;
}

.learning-hierarchy-card.area-revision .learning-card-status {
    background: #fff4c8;
    color: #8a5a00;
    border-color: rgba(245,158,11,.30);
}

.learning-hierarchy-card.area-locked {
    background: #f3f5f7;
    border-color: #d6dce4;
    color: #8a94a3;
    box-shadow: none;
    cursor: not-allowed;
}

.learning-hierarchy-card.area-locked .learning-hierarchy-image {
    opacity: .48;
    filter: grayscale(.55);
}

.learning-hierarchy-card.area-locked .learning-hierarchy-card-kicker,
.learning-hierarchy-card.area-locked .learning-hierarchy-card-description {
    color: #929aa6;
}

.learning-hierarchy-card.area-locked .learning-card-status {
    background: #e9edf2;
    color: #7d8795;
    border-color: #d5dbe3;
}

.learning-hierarchy-card.area-preview .learning-card-status {
    background: #f2f4f7;
    color: #667085;
    border-color: #d9dee6;
}

a.learning-hierarchy-card.area-completed:hover {
    border-color: rgba(47,155,99,.70);
}

a.learning-hierarchy-card.area-revision:hover {
    border-color: rgba(245,158,11,.78);
}

.learning-area-progress-dot.area-revision {
    background: #f2c94c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 5px 12px rgba(245,158,11,.18);
}

.learning-area-progress-dot.area-completed {
    background: var(--green);
}

.learning-area-progress-dot.area-current {
    background: var(--blue);
}

.learning-area-progress-dot.area-locked {
    background: #c7ced8;
    box-shadow: none;
}

.learning-area-progress-dot.area-preview {
    background: #94a3b8;
    box-shadow: none;
}

.progress-strip.four-learning-parts {
    grid-template-columns: repeat(4, 1fr);
}

.simple-learning-area-panel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.simple-learning-area-completion {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.future-learning-card {
    justify-content: flex-end;
    min-height: 430px;
}

.future-learning-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 245px;
    border-radius: 15px;
    margin-bottom: 10px;
    background: #eef1f5;
    color: #a1a9b5;
    font-size: 4rem;
    font-weight: 300;
}

@media (max-width: 900px) {
    .area-learning-grid {
        grid-template-columns: 1fr;
    }

    .sequenced-learning-card,
    .future-learning-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .sequenced-learning-card .learning-hierarchy-image-wrap,
    .future-learning-placeholder {
        height: 190px;
    }
}


.badge.completed {
    background: #e8f7ef;
    color: #206f47;
    border-color: rgba(47,155,99,.24);
}


/* Version 62: Einheitlicher Lernarbeitsbereich mit eigener Reiterstruktur */
.learning-workspace-page {
    max-width: 1180px;
}

.learning-workspace-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 24px 0 22px;
}

.learning-workspace-head h1 {
    margin: 4px 0 8px;
}

.learning-workspace-status {
    flex: 0 0 auto;
    padding-bottom: 6px;
}

.learning-workspace {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    align-items: start;
}

.learning-workspace-tabs {
    position: sticky;
    top: 128px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.learning-workspace-tabs-head {
    display: grid;
    gap: 4px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fbff;
}

.learning-workspace-tabs-kicker {
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.learning-workspace-tabs-head strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.learning-workspace-tab-list {
    display: grid;
    padding: 8px;
    gap: 6px;
}

.learning-workspace-tab {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    text-align: left;
    color: var(--text);
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.learning-workspace-tab:hover {
    transform: translateX(3px);
    background: #f5f9fd;
    border-color: rgba(43, 113, 184, 0.18);
}

.learning-workspace-tab.active {
    color: var(--blue-dark);
    background: #eaf4ff;
    border-color: rgba(43, 113, 184, 0.34);
}

.learning-workspace-tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #ffffff;
    background: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
}

.learning-workspace-tab.active .learning-workspace-tab-number {
    background: var(--blue);
}

.learning-workspace-back {
    display: block;
    padding: 14px 18px 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.84rem;
    border-top: 1px solid var(--line);
}

.learning-workspace-back:hover {
    color: var(--blue-dark);
    background: #f8fbff;
}

.learning-workspace-content {
}

.learning-workspace-panel {
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.learning-workspace-panel[hidden] {
    display: none;
}

.learning-placeholder-card {
}

.learning-placeholder-card h2 {
    margin: 4px 0 10px;
}

.learning-placeholder-card p {
    max-width: 720px;
    line-height: 1.65;
}

.learning-placeholder-dropzone {
    display: grid;
    place-items: center;
    margin-top: 28px;
    padding: 24px;
    color: #64748b;
    background:
        linear-gradient(#fbfdff, #fbfdff) padding-box,
        repeating-linear-gradient(
            135deg,
            rgba(43, 113, 184, 0.14) 0,
            rgba(43, 113, 184, 0.14) 8px,
            rgba(43, 113, 184, 0.04) 8px,
            rgba(43, 113, 184, 0.04) 16px
        ) border-box;
    border: 1px dashed rgba(43, 113, 184, 0.40);
    border-radius: 18px;
}

.learning-placeholder-dropzone span {
    padding: 9px 14px;
    background: #ffffff;
    border: 1px solid rgba(43, 113, 184, 0.18);
    border-radius: 999px;
    font-size: 0.9rem;
}

.learning-workspace-completion {
    display: flex;
    align-items: center;
    min-height: 56px;
    margin-top: 26px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.learning-workspace-completion form {
    margin: 0;
}

.learning-workspace-panel-nav {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.learning-workspace-panel-nav .button {
    width: 100%;
    margin: 0;
    text-align: center;
}

.learning-workspace-panel-nav button:disabled {
    opacity: 0.42;
    cursor: default;
}

.learning-workspace-counter {
    color: var(--muted);
    text-align: center;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .learning-workspace-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .learning-workspace {
        grid-template-columns: 1fr;
    }

    .learning-workspace-tabs {
        position: static;
    }

    .learning-workspace-tab-list {
        display: flex;
        overflow-x: auto;
        padding: 8px;
    }

    .learning-workspace-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: 150px;
    }

    .learning-workspace-tab:hover {
        transform: none;
    }

    .learning-workspace-back {
        display: none;
    }
}

@media (max-width: 560px) {
    .learning-workspace-panel {
        min-height: 440px;
        padding: 18px;
        border-radius: 18px;
    }

    .learning-placeholder-dropzone {
        min-height: 190px;
    }

    .learning-workspace-panel-nav {
        grid-template-columns: 1fr 1fr;
    }

    .learning-workspace-counter {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}


/* Version 63: konsistente Breite und einheitliche Fortschrittskarten */
.learning-hierarchy-page,
.learning-workspace-page {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.learning-area-card-grid{
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learning-overview-card {
    min-height: 500px;
}

.learning-overview-card .module-card-inner {
    min-height: 500px;
}

.learning-overview-card .module-card-head {
    min-height: 72px;
}

.learning-overview-card .module-card-body {
    padding: 18px 24px 24px;
}

.learning-overview-card .module-card-topic {
    min-height: 0;
    font-size: 1.14rem;
}

.learning-overview-card .module-card-image-wrap {
    min-height: 250px;
    height: 250px;
}

.learning-overview-image {
    max-width: 300px;
    max-height: 238px;
}


.learning-card-disabled {
    cursor: default;
}

.learning-card-disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
}

/* Noch nicht bearbeitete/folgende Teile sind gelb statt grau/rot. */
.module-card.pending {
    background: #fffef8;
}

.progress-strip.five-parts .progress-dot {
    background: #f2c94c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 5px 12px rgba(245,158,11,.18);
}

.progress-strip.five-parts .progress-dot.current {
    background: var(--blue);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 5px 12px rgba(30,115,190,.22);
}

.progress-strip.five-parts .progress-dot.completed {
    background: var(--green);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 5px 12px rgba(47,155,99,.16);
}

.progress-strip.five-parts .progress-dot.revision {
    background: #f2c94c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 5px 12px rgba(245,158,11,.18);
}

/* Lernarbeitsbereich: exakt dieselbe Außenbreite wie die Übersichtsseiten. */
.learning-workspace-page {
    padding-bottom: 60px;
}

.learning-workspace {
    width: 100%;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
}

.learning-workspace-tabs {
    width: 260px;
    justify-self: start;
}

.learning-workspace-content {
    width: 100%;
    min-width: 0;
}

.learning-workspace-panel {
    width: 100%;
    min-height: 640px;
    padding: 30px 34px;
}

.learning-placeholder-card {
    width: 100%;
    max-width: none;
}

.learning-placeholder-card > p:not(.eyebrow) {
    max-width: 880px;
}

.learning-placeholder-dropzone {
    width: 100%;
    min-height: 330px;
}

.learning-workspace-panel-nav {
    margin-top: 32px;
}

@media (max-width: 1050px) {
    .learning-workspace {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 18px;
    }

    .learning-workspace-tabs {
        width: 230px;
    }
}

@media (max-width: 900px) {
    .learning-area-card-grid{
        grid-template-columns: 1fr;
    }

    .learning-overview-card,
    .learning-overview-card .module-card-inner {
        min-height: 0;
    }

    .learning-workspace {
        grid-template-columns: 1fr;
    }

    .learning-workspace-tabs {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .learning-hierarchy-page,
    .learning-workspace-page {
        width: calc(100% - 24px);
    }

    .learning-workspace-panel {
        min-height: 520px;
        padding: 20px;
    }

    .learning-placeholder-dropzone {
        min-height: 230px;
    }
}


/* Version 64: kompakte Übersicht + saubere Bildintegration */

/* Bilder haben in den generierten PNGs einen fast weißen Hintergrund.
   Multiply lässt diesen optisch mit der weißen Kartenfläche verschmelzen. */
.learning-overview-image,
.module-card-image {
    background: transparent;
    mix-blend-mode: multiply;
}

/* Zweites Lernmodul ist bewusst neutral/inaktiv und nicht Teil des Fortschritts. */


/* Die vier Teile von Unterrichtsgespräche sollen auf Desktop direkt gemeinsam sichtbar sein. */
.learning-area-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.learning-area-card-grid .module-card,
.learning-area-card-grid .module-card-inner {
    min-height: 405px;
}

.learning-area-card-grid .module-card-head {
    min-height: 58px;
    padding: 12px 14px;
}

.learning-area-card-grid .module-card-title {
    font-size: 1.18rem;
}

.learning-area-card-grid .module-card-body {
    gap: 7px;
    padding: 13px 14px 17px;
}

.learning-area-card-grid .badge {
    padding: 6px 11px;
    font-size: 0.82rem;
}

.learning-area-card-grid .module-card-topic {
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.96rem;
}

.learning-area-card-grid .module-card-image-wrap {
    min-height: 178px;
    height: 178px;
}

.learning-area-card-grid .module-card-image {
    width: 100%;
    max-width: 185px;
    max-height: 172px;
}

.learning-area-card-grid .module-card-description {
    min-height: 4.4em;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Die Haupt-Lernmodulkarten bleiben größer, aber das Motiv sitzt ohne sichtbaren Bildkasten. */
.learning-overview-card-grid .learning-overview-image {
    width: auto;
    max-width: 290px;
    max-height: 238px;
}

/* Auf mittleren Displays 2x2, auf kleinen 1-spaltig. */
@media (max-width: 1120px) {
    .learning-area-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .learning-area-card-grid {
        grid-template-columns: 1fr;
    }

    .learning-area-card-grid .module-card,
    .learning-area-card-grid .module-card-inner {
        min-height: 0;
    }
}


/* Version 65: Wahrnehmung – echte Kursinhalte innerhalb des bestehenden Designs */
.wahrnehmung-page .learning-workspace-tab {
    grid-template-columns: 30px minmax(0, 1fr);
}

.wahrnehmung-page .learning-workspace-tab > span:last-child {
    line-height: 1.25;
}

.wahrnehmung-panel {
    min-height: 700px;
}

.course-content-card,
.reflection-card {
    padding: 22px 24px;
    margin-bottom: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.course-content-card h2,
.course-content-card h3,
.reflection-card h3 {
    margin-bottom: 12px;
}

.course-content-card p,
.reflection-card p {
    max-width: 920px;
    line-height: 1.65;
}

.reflection-card {
    background: #fbfdff;
}

.reflection-card textarea,
.documentation-exercise textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.55;
}

.learning-save-row {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 4px;
}

.video-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, .7fr);
    gap: 22px;
    align-items: start;
}

.course-info-table {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.course-info-table th {
    width: 205px;
    font-weight: 750;
    background: #f8fafc;
}

.course-info-table th,
.course-info-table td {
    padding: 11px 12px;
}

.media-placeholder-stack {
    display: grid;
    gap: 14px;
}

.media-placeholder-card {
    display: grid;
    place-items: center;
    min-height: 115px;
    padding: 18px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #b9c8d9;
    border-radius: 14px;
}

.media-placeholder-card.video {
    min-height: 190px;
}

.media-placeholder-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .9rem;
}

.documentation-tool {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    overflow: hidden;
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.documentation-tool-nav {
    padding: 20px 14px;
    background: #f5f8fc;
    border-right: 1px solid var(--line);
}

.documentation-tool-nav > strong {
    display: block;
    margin: 0 10px 14px;
}

.documentation-step-list {
    display: grid;
    gap: 3px;
}

.documentation-step {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 10px 8px;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    font-size: .91rem;
}

.documentation-step:hover {
    transform: none;
    box-shadow: none;
    background: #eaf1f8;
}

.documentation-step.active {
    background: #e5f3ef;
    color: #185f50;
}

.documentation-step-dot {
    width: 17px;
    height: 17px;
    border: 2px solid #3d8878;
    border-radius: 50%;
    background: #ffffff;
}

.documentation-step.active .documentation-step-dot {
    background: #4f9586;
    box-shadow: 0 0 0 5px rgba(79,149,134,.18);
}

.documentation-tool-content {
    min-width: 0;
    padding: 24px 28px;
}

.documentation-exercise[hidden] {
    display: none;
}

.documentation-exercise h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.documentation-exercise > p,
.documentation-exercise > ul {
    max-width: 820px;
    line-height: 1.6;
}

.documentation-nav-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.wahrnehmung-summary {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.wahrnehmung-summary-item {
    padding: 15px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.wahrnehmung-summary-item h4 {
    margin: 0 0 6px;
}

.wahrnehmung-summary-item p {
    margin: 0;
    white-space: pre-wrap;
}

.wahrnehmung-summary-item.empty {
    border-color: #f1c7c7;
    background: #fff8f8;
}

.final-submission-box {
    margin-top: 20px;
    padding: 18px;
    background: #eef7ff;
    border: 1px solid #c9dff3;
    border-radius: 14px;
}

.final-submission-box p {
    margin-top: 0;
}

.literature-list {
    display: grid;
    gap: 14px;
}

.literature-list a {
    display: block;
    padding: 16px 18px;
    color: #174ea6;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 13px;
    line-height: 1.5;
}

.wahrnehmung-revision-note {
    background: #fff8dd;
    border: 1px solid #f0d36c;
}

.wahrnehmung-revision-note > * {
    display: block;
    margin-top: 4px;
}

/* Dozentenansicht: vier klar getrennte Bewertungsbereiche */
.assessment-area-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 20px;
    padding: 6px;
    background: #f3f6fa;
    border-radius: 14px;
}

.assessment-area-tab {
    padding: 11px 12px;
    color: #475569;
    background: transparent;
    border-radius: 10px;
    box-shadow: none;
    font-size: .92rem;
}

.assessment-area-tab:hover {
    transform: none;
    box-shadow: none;
    background: #e7eef6;
}

.assessment-area-tab.active {
    color: #ffffff;
    background: var(--blue);
}

.assessment-area-panel[hidden] {
    display: none;
}

.assessment-summary-card,
.assessment-placeholder-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.assessment-placeholder-card {
    display: block;
    min-height: 150px;
    color: #64748b;
    background: #f8fafc;
    border-style: dashed;
}

.assessment-summary-card h3,
.assessment-placeholder-card h3 {
    margin: 0 0 5px;
}

.assessment-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.lecturer-learning-review-page {
    max-width: 1180px;
}

.review-status-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.learning-area-review-answers {
    display: grid;
    gap: 14px;
}

.learning-area-review-group {
    margin: 22px 0 0;
    padding: 10px 0 6px;
    color: var(--blue-dark);
    border-bottom: 2px solid #e4edf7;
}

.learning-area-review-answer {
    padding: 16px 18px;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.learning-area-review-answer h4 {
    margin: 0 0 8px;
}

.review-question {
    color: #475569;
    font-size: .93rem;
}

.learning-area-review-answer .submission-text {
    margin-top: 10px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .video-info-grid,
    .documentation-tool {
        grid-template-columns: 1fr;
    }

    .documentation-tool-nav {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .assessment-area-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assessment-summary-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .assessment-summary-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .assessment-area-tabs {
        grid-template-columns: 1fr;
    }

    .documentation-tool-content {
        padding: 18px;
    }

    .course-content-card,
    .reflection-card {
        padding: 18px;
    }
}


/* Version 66: sequentielles Dokumentationswerkzeug und eigener Abschluss */
.documentation-tool-v66 {
    grid-template-columns: 255px minmax(0, 1fr);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.documentation-tool-v66 .documentation-tool-nav {
    padding: 22px 16px;
    background: #f7fafc;
}

.documentation-tool-v66 .documentation-step-list {
    gap: 0;
}

.documentation-tool-v66 .documentation-step {
    position: relative;
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 68px;
    padding: 7px 8px;
    border-radius: 10px;
}

.documentation-tool-v66 .documentation-step-track {
    position: relative;
    display: flex;
    justify-content: center;
    align-self: stretch;
}

.documentation-tool-v66 .documentation-step-track::after {
    content: "";
    position: absolute;
    top: 35px;
    bottom: -20px;
    width: 3px;
    background: #dbe4ea;
    border-radius: 999px;
}

.documentation-tool-v66 .documentation-step:last-child .documentation-step-track::after {
    display: none;
}

.documentation-tool-v66 .documentation-step.completed .documentation-step-track::after {
    background: #66a995;
}

.documentation-tool-v66 .documentation-step-dot {
    position: relative;
    z-index: 1;
    width: 19px;
    height: 19px;
    margin-top: 8px;
    border: 2px solid #a7b3c2;
    background: #ffffff;
}

.documentation-tool-v66 .documentation-step.completed .documentation-step-dot {
    border-color: #398b73;
    background: #4f9b84;
    box-shadow: 0 0 0 5px rgba(79, 155, 132, 0.14);
}

.documentation-tool-v66 .documentation-step.active:not(.completed) .documentation-step-dot {
    border-color: #398b73;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(79, 155, 132, 0.12);
}

.documentation-tool-v66 .documentation-step.locked {
    opacity: 0.48;
    cursor: not-allowed;
}

.documentation-tool-v66 .documentation-step.locked:hover {
    background: transparent;
}

.documentation-step-label {
    display: grid;
    gap: 2px;
    line-height: 1.25;
}

.documentation-step-label strong {
    font-size: 0.9rem;
}

.documentation-step-label span {
    color: #667085;
    font-size: 0.82rem;
}

.documentation-tool-v66 .documentation-step.active {
    color: #155e50;
    background: #eaf5f1;
}

.documentation-tool-v66 .documentation-step.completed:not(.active) {
    background: transparent;
}

.documentation-tool-v66 .documentation-step.completed:not(.active):hover {
    background: #eff7f4;
}

.documentation-tool-v66 .documentation-tool-content {
    padding: 28px 32px;
}

.documentation-exercise-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.documentation-exercise-head h3 {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
}

.documentation-step-count {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.exercise-state-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.exercise-state-pill.current {
    color: #155e50;
    background: #eaf5f1;
    border: 1px solid #c8e4da;
}

.exercise-state-pill.complete {
    color: #206f47;
    background: #e8f7ef;
    border: 1px solid #c5ead6;
}

.exercise-state-pill.locked {
    color: #6b7280;
    background: #eef2f6;
    border: 1px solid #dde3ea;
}

.documentation-tool-v66 textarea {
    min-height: 300px;
    margin-top: 18px;
    border-radius: 13px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.exercise-completion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 15px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.exercise-completion-row > div:first-child {
    display: grid;
    gap: 2px;
}

.exercise-completion-row span {
    color: var(--muted);
    font-size: 0.88rem;
}

.exercise-complete-text {
    color: #206f47;
}

.exercise-completion-actions {
    flex: 0 0 auto;
}

.documentation-tool-v66 .documentation-nav-row {
    padding-top: 16px;
    margin-top: 18px;
    border-top: 1px solid #edf1f5;
}

.exercise-review-switcher {
    margin-top: 22px;
}

.exercise-review-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0 10px;
}

.exercise-review-tab {
    margin-bottom: -1px;
    padding: 10px 8px;
    color: #596579;
    background: #f1f5f9;
    border: 1px solid #dbe3ee;
    border-bottom-color: #cfd8e4;
    border-radius: 10px 10px 0 0;
    box-shadow: none;
    font-size: 0.84rem;
}

.exercise-review-tab:hover {
    transform: none;
    box-shadow: none;
    background: #e9f0f7;
}

.exercise-review-tab.active {
    position: relative;
    z-index: 2;
    color: var(--blue-dark);
    background: #ffffff;
    border-color: #b9cce1;
    border-bottom-color: #ffffff;
}

.exercise-review-window {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #b9cce1;
    border-radius: 12px;
}

.exercise-review-window-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.exercise-review-window textarea {
    min-height: 255px;
    margin: 0;
    background: #fbfdff;
}

.completion-overview-card {
    padding: 22px;
    margin-bottom: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 17px;
}

/* Abschlusskomponente: gleiches Abschlusslayout in allen Lernbereichen. */
.completion-overview-footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.completion-overview-footer .alert { margin-bottom: 14px; }
.completion-task-row.preview { background: #f8fafc; }
.completion-task-row.preview .completion-task-icon { color: #69778a; background: #edf1f6; }

.completion-overview-head {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.completion-overview-head h3 {
    margin: 0 0 4px;
}

.completion-overview-head p {
    margin: 0;
}

.completion-overview-meter {
    height: 10px;
    overflow: hidden;
    background: #e8edf3;
    border-radius: 999px;
}

.completion-overview-meter span {
    display: block;
    height: 100%;
    background: #3d9b70;
    border-radius: inherit;
    transition: width 180ms ease;
}

.completion-task-list {
    display: grid;
    gap: 9px;
}

.completion-task-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.completion-task-row.complete {
    background: #f3faf6;
    border-color: #d0eadb;
}

.completion-task-row.open {
    background: #fffaf2;
    border-color: #eedba9;
}

.completion-task-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 850;
}

.completion-task-row.complete .completion-task-icon {
    color: #ffffff;
    background: #3d9b70;
}

.completion-task-row.open .completion-task-icon {
    color: #a66f00;
    background: #fff0c8;
}

.completion-task-row > div {
    display: grid;
    gap: 2px;
}

.completion-task-row > div span {
    color: var(--muted);
    font-size: 0.84rem;
}

.final-submission-box-v66 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.final-submission-box-v66 h3 {
    margin: 0 0 5px;
}

.final-submission-box-v66 p {
    margin: 0;
    max-width: 720px;
}

@media (max-width: 900px) {
    .documentation-tool-v66 {
        grid-template-columns: 1fr;
    }

    .documentation-tool-v66 .documentation-step-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .documentation-tool-v66 .documentation-step {
        min-height: 0;
    }

    .documentation-tool-v66 .documentation-step-track::after {
        display: none;
    }

    .exercise-review-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 0 0 8px;
    }

    .exercise-review-tab {
        margin: 0;
        border-radius: 9px;
    }

    .completion-overview-head {
        grid-template-columns: 1fr;
    }

    .final-submission-box-v66,
    .exercise-completion-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .documentation-tool-v66 .documentation-step-list,
    .exercise-review-tabs {
        grid-template-columns: 1fr;
    }

    .completion-task-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .completion-task-row .button {
        grid-column: 2;
        justify-self: start;
    }
}


/* ============================================================


/* Version 89 – Dekomposition-Interactive-Book im Wahrnehmungsdesign */
.interactive-book-page .learning-workspace-panel {
    min-height: 700px;
}

.interactive-book-page .course-content-card {
    padding: 22px 24px;
    margin-bottom: 18px;
}

.interactive-book-page .course-content-card h2 {
    margin: 4px 0 16px;
}

.interactive-book-page .course-content-card h3 {
    margin: 22px 0 10px;
}

.interactive-book-page .course-content-card p,
.interactive-book-page .course-content-card li,
.interactive-book-page .course-content-card blockquote {
    max-width: 920px;
    line-height: 1.65;
}

.interactive-book-page .course-content-card p {
    margin-top: 0;
}

.interactive-book-page .course-content-card blockquote {
    margin: 10px 0 16px;
    padding: 0;
    border: 0;
    font-style: normal;
}

.interactive-book-page .course-content-card ul {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 18px;
}

.interactive-book-merksatz {
    max-width: 920px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #a7b0bc;
    border-bottom: 1px solid #a7b0bc;
    font-style: italic;
    line-height: 1.6;
}

.interactive-book-merksatz strong {
    font-weight: 500;
}

.interactive-book-table-card {
    overflow: hidden;
}

.interactive-book-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.interactive-book-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .94rem;
}

.interactive-book-table th,
.interactive-book-table td {
    padding: 9px 10px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #cfd8e4;
}

.interactive-book-table th {
    font-weight: 800;
    background: #f8fafc;
}

.interactive-book-table th:first-child,
.interactive-book-table td:first-child {
    width: 28%;
}

.interactive-book-dos-table th:first-child,
.interactive-book-dos-table td:first-child {
    width: 42%;
}

@media (max-width: 560px) {
    .interactive-book-page .learning-workspace-panel {
        min-height: 520px;
    }

    .interactive-book-page .course-content-card {
        padding: 18px;
    }

    .interactive-book-table th:first-child,
    .interactive-book-table td:first-child,
    .interactive-book-dos-table th:first-child,
    .interactive-book-dos-table td:first-child {
        width: auto;
    }
}


/* Version 130 – lineare Freischaltung der Interactive-Book-Reiter */
.learning-workspace-tab.is-locked {
    opacity: 0.42;
    color: #7b8797;
    background: #f3f5f7;
    border-color: transparent;
    cursor: not-allowed;
    transform: none !important;
}

.learning-workspace-tab.is-locked .learning-workspace-tab-number {
    background: #c6ced8;
}

.learning-workspace-tab.is-locked:hover {
    transform: none;
    background: #f3f5f7;
    border-color: transparent;
}

.learning-workspace-panel-nav .button.is-learning-locked {
    opacity: 0.42;
    cursor: pointer;
    filter: grayscale(0.25);
}

.learning-next-hint {
    margin: 10px 0 0 auto;
    max-width: 360px;
    padding: 9px 12px;
    border: 1px solid rgba(49, 95, 146, 0.22);
    border-radius: 10px;
    background: rgba(49, 95, 146, 0.08);
    color: #315f92;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.learning-next-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* V166: Keep a consistent gap between all cards, including standalone games. */
.interactive-book-page .learning-workspace-panel > .course-content-card,
.interactive-book-page .learning-workspace-panel > .plug-match-card {
  margin-bottom: 20px;
}


/* Version 206: responsiver, eingebetteter Videoplayer unter den Hintergrundinformationen. */
.wahrnehmung-video-card .wahrnehmung-video-frame {
    width: 100%;
    margin: 16px auto 0;
}
.wahrnehmung-video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #111827;
    box-shadow: 0 10px 24px rgba(20, 37, 65, .12);
}
.wahrnehmung-video-card .wahrnehmung-video-caption {
    margin: 10px 0 0;
    color: #53647b;
    font-size: .9rem;
    text-align: center;
}

/* Version 207: Etwas größerer, weiterhin responsiver 16:9-Player. */
.wahrnehmung-video-card .wahrnehmung-video-frame {
    max-width: 760px;
    margin-top: 18px;
}
@media (max-width: 760px) {
    .wahrnehmung-video-card .wahrnehmung-video-frame {
        max-width: 100%;
    }
}

/* P337 – lesbarere Modulnavigation und sachliche Typografie im Workspace.
   Spieloberflächen und individuelle Interaktionsobjekte bleiben unverändert. */
.learning-workspace-tabs {
    border-color: #d1e1ef;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18,56,92,.11);
}
.learning-workspace-tabs-head {
    background: #f6faff;
    border-bottom: 1px solid #d6e5f2;
}
.learning-workspace-tab {
    line-height: 1.4;
    font-size: .93rem;
    font-weight: 600;
}
.learning-workspace-tab.active {
    background: #e6f3ff;
    color: #145c9d;
    border-color: #94c0e8;
}
.learning-workspace-panel > .course-content-card:not(.learning-task-card) h2,
.learning-workspace-panel > .course-content-card:not(.learning-task-card) h3 {
    color: #1b3657;
    line-height: 1.22;
    letter-spacing: -.018em;
}
.learning-workspace-panel > .course-content-card:not(.learning-task-card) > p {
    color: #243b57;
    line-height: 1.7;
    font-size: clamp(.95rem, 1.1vw, 1.06rem);
}


/* V188 – schlankere Vorschauzeile in der Wahrnehmungs-Übungsphase. */
.exercise-completion-row.is-preview-only {
    justify-content: flex-end;
}

.exercise-completion-row.is-preview-only > div:first-child {
    display: none;
}


/* V189 – Vorschau-Aktionen direkt in die Navigationszeile der Übungen legen. */
.documentation-nav-row.is-preview-nav {
    margin-top: 18px;
}

.documentation-nav-row.is-preview-nav .button.secondary {
    margin-left: auto;
}

/* V190 – Abschlussnavigation mit breiterem Button für den Modulwechsel. */
.learning-workspace-panel-nav.learning-workspace-panel-nav-next-module {
    grid-template-columns: minmax(104px, 142px) 1fr minmax(220px, 300px);
}

.learning-workspace-panel-nav .next-module-button {
    min-width: 220px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .learning-workspace-panel-nav.learning-workspace-panel-nav-next-module {
        grid-template-columns: 1fr;
    }

    .learning-workspace-panel-nav .next-module-button {
        min-width: 0;
        white-space: normal;
    }
}


/* V191 – Übungsnavigation links/rechts sauber aufspannen. */
.documentation-nav-row-split {
    align-items: center;
}

.documentation-nav-row-split [data-documentation-prev] {
    margin-right: auto;
}

.documentation-results-nav {
    justify-content: flex-start;
}

.documentation-results-nav .button + .button {
    margin-left: 10px;
}

/* V192 – Modulwechselbutton bleibt innerhalb der Abschlusskachel. */
.learning-workspace-panel-nav.learning-workspace-panel-nav-next-module {
    grid-template-columns: minmax(104px, 142px) 1fr minmax(250px, 290px) !important;
}

.learning-workspace-panel-nav .next-module-button {
    width: 100%;
    max-width: 290px;
    min-width: 250px;
    box-sizing: border-box;
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .learning-workspace-panel-nav .next-module-button {
        max-width: none;
        min-width: 0;
        justify-self: stretch;
        white-space: normal;
    }
}

/* ENDE: 40-learning.css */

/* START: 50-courses.css */
   Version 67 – Institutionen, Kohorten, Einschreibung und Mail
   Die bestehenden Lernmodul-Stile bleiben unverändert.
   ============================================================ */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

















.public-course-section {
    padding-top: 4px;
}

.public-course-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 22px;
}

.public-course-section-head h2 {
    margin-bottom: 6px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.public-course-search {
    display: flex;
    gap: 9px;
    align-items: end;
}

.public-course-search label {
    flex: 1;
    margin: 0;
}

.public-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-course-card,
.course-management-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 3px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.public-course-card-head,
.course-management-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 12px 16px;
    color: #ffffff;
    background: #ffffff;
    color: #233d59;
    border-bottom: 1px solid #dce6ef;
}

.public-course-card-head > span:first-child,
.course-management-card-head > span:first-child {
    font-weight: 800;
}

.public-course-card-head .badge,
.course-management-card-head .badge {
    flex: 0 0 auto;
    color: #175b91;
    background: rgba(255,255,255,.92);
    border-color: rgba(255,255,255,.65);
}

.public-course-card-body,
.course-management-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 255px;
    padding: 18px;
}

.public-course-card-body h3,
.course-management-card-body h2 {
    margin: 0;
}

.public-course-card-body p,
.course-management-card-body p {
    margin: 0;
}

.public-course-card-body .button,
.course-management-card-body .button {
    margin-top: auto;
    align-self: flex-start;
}

.course-term {
    color: var(--blue-dark);
    font-size: .9rem;
    font-weight: 750;
}

.public-course-empty {
    grid-column: 1 / -1;
    text-align: center;
}

.public-course-detail {
    max-width: 980px;
}

.plain-back-link {
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: none;
}

.public-course-detail-card {
    padding: clamp(24px, 4vw, 38px);
}

.course-enrollment-public-box {
    max-width: 620px;
    margin-top: 28px;
    padding: 22px;
    background: #f5f9fd;
    border: 1px solid #d5e4f2;
    border-radius: 16px;
}

.registration-page {
    max-width: 980px;
}

.registration-course-context {
    margin-bottom: 18px;
}

.registration-form-card {
    padding: clamp(24px, 4vw, 36px);
}

.form-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.registration-form-card label small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 500;
}

.avatar-choice-fieldset {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.avatar-choice-fieldset legend {
    padding: 0 8px;
    font-weight: 800;
}

.avatar-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    gap: 10px;
}

.avatar-choice {
    position: relative;
    display: grid;
    place-items: center;
    gap: 5px;
    margin: 0;
    padding: 10px 6px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #ffffff;
}

.avatar-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-choice img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-choice span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 650;
}

.avatar-choice:has(input:checked) {
    border-color: rgba(30,115,190,.5);
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(30,115,190,.1);
}

.course-management-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.course-status-pending {
    color: #805b00 !important;
    background: #fff1b8 !important;
    border-color: #efd26e !important;
}

.course-status-approved {
    color: #206f47 !important;
    background: #e8f7ef !important;
    border-color: #bfe5cf !important;
}

.course-status-rejected,
.course-status-archived {
    color: #7d3636 !important;
    background: #fdecec !important;
    border-color: #efcaca !important;
}

.narrow-course-form {
    max-width: 900px;
}

.course-management-page {
    max-width: 1220px;
}

.course-approval-notice {
    display: grid;
    gap: 3px;
    margin-bottom: 18px;
    padding: 15px 17px;
    color: #6a4d00;
    background: #fff7d8;
    border: 1px solid #efd97f;
    border-radius: 14px;
}

.course-admin-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 18px;
}

.enrollment-code-panel .panel-title-row {
    margin-bottom: 14px;
}

.course-code-display {
    padding: 13px 16px;
    margin: 10px 0;
    overflow-wrap: anywhere;
    color: #173b59;
    background: #edf7ff;
    border: 1px dashed #9dc3df;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.course-code-actions,
.course-approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.course-code-actions form,
.course-approval-actions form {
    margin: 0;
}

.course-mail-hint {
    margin: 16px 0 0;
    padding-top: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .88rem;
}

.course-member-list {
    display: grid;
    gap: 8px;
}

.course-member-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.course-member-row > div {
    display: grid;
    gap: 2px;
}

.course-add-member-form,
.course-add-student-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.course-add-member-form select,
.course-add-student-form select {
    flex: 1;
    min-width: 280px;
    margin: 0;
    border-radius: 3px;
}


.compact-person-list {
    display: grid;
    gap: 8px;
}

.compact-person-list > div {
    display: grid;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.compact-person-list span {
    color: var(--muted);
    font-size: .88rem;
}


.invitation-result-card input[readonly] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f8fafc;
}

.invitation-information-box {
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #f7fafc;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.invitation-information-box ul {
    margin-bottom: 0;
}

.course-approval-list {
    display: grid;
    gap: 16px;
}

.course-approval-card {
    margin: 0;
}

.course-reject-form {
    flex: 1;
    display: flex;
    gap: 8px;
}

.course-reject-form input {
    flex: 1;
    margin: 0;
}

.admin-system-grid .card {
    min-height: 210px;
}

.dashboard-course-context,
.account-course-box {
    display: grid;
    gap: 5px;
    margin: 18px 0;
    padding: 14px 16px;
    background: #f7fafc;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.dashboard-course-context span,
.account-course-box span {
    color: #475569;
}

.account-course-box a {
    width: fit-content;
}

.account-course-second-title {
    margin-top: 9px;
}

.dashboard-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 1050px) {
    .public-course-grid,
    .course-management-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-admin-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .public-course-section-head{
        grid-template-columns: 1fr;
    }

    .public-course-search {
        flex-wrap: wrap;
    }

    

    .avatar-choice-grid {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
    }

    .course-member-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .course-member-row > .badge,
    .course-member-row > .button,
    .course-member-row > form {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 620px) {
    .public-course-grid,
    .course-management-grid,
    .form-two-column {
        grid-template-columns: 1fr;
    }

    .avatar-choice-grid {
        grid-template-columns: repeat(2, minmax(70px, 1fr));
    }

    

    .course-reject-form{
        align-items: flex-start;
        flex-direction: column;
    }
}


.course-mail-template {
    margin-top: 14px;
}

.course-mail-template summary {
    cursor: pointer;
    color: var(--blue-dark);
    font-weight: 750;
}

.course-mail-template textarea {
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
    line-height: 1.5;
    background: #f8fafc;
}


/* Version 69 – vereinfachte Kursführung */
.compact-page-intro {
    margin-bottom: 20px;
}

.simple-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.admin-simple-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simple-dashboard-card {
    display: flex;
    flex-direction: column;
    min-height: 255px;
    margin: 0;
}

.simple-dashboard-card h2 {
    margin-bottom: 6px;
}

.simple-dashboard-card .big {
    margin: 6px 0 4px;
}

.simple-dashboard-card .muted {
    margin: 0 0 18px;
}

.simple-dashboard-card .button {
    margin-top: auto;
    align-self: flex-start;
}

.public-course-section-head.simple {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
}

.public-course-list,
.course-stack {
    display: grid;
    gap: 10px;
}

.public-course-row,
.course-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 92px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.public-course-row-main,
.course-list-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.public-course-row-main > span,
.course-list-institution {
    color: var(--blue);
    font-size: .79rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.public-course-row-main strong,
.course-list-main strong {
    color: var(--text);
    font-size: 1.05rem;
}

.public-course-row-main small {
    color: var(--muted);
}

.course-list-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.course-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.course-pagination a {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    color: #334155;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
}

.course-pagination a.active {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.course-admin-search {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.course-admin-search input {
    flex: 1;
    margin: 0;
}

.admin-course-stack {
    gap: 10px;
}

.admin-course-row {
    overflow: hidden;
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.admin-course-row summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 92px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.admin-course-row summary::-webkit-details-marker {
    display: none;
}

.admin-course-summary-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.admin-course-summary-main > span {
    color: var(--blue);
    font-size: .79rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.admin-course-summary-main > strong {
    font-size: 1.05rem;
}

.admin-course-summary-main small {
    color: var(--muted);
}

.admin-course-summary-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.admin-course-detail {
    padding: 18px;
    border-top: 1px solid var(--line);
    background: #fbfdff;
}

.admin-course-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-course-columns > section {
    min-width: 0;
}

.admin-course-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.admin-course-actions form {
    margin: 0;
}

.course-management-page > .panel,
.course-admin-summary-grid > .panel {
    margin-top: 0;
}

.course-admin-summary-grid {
    align-items: stretch;
    margin-bottom: 18px;
}

.course-admin-summary-grid > .panel {
    height: 100%;
}

@media (max-width: 1050px) {
    .admin-simple-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-course-section-head.simple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .simple-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .public-course-row,
    .course-list-row,
    .admin-course-row summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-list-meta,
    .admin-course-summary-meta {
        justify-content: flex-start;
    }

    .admin-course-columns {
        grid-template-columns: 1fr;
    }

    .course-admin-search {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .admin-simple-grid {
        grid-template-columns: 1fr;
    }
}


/* Version 70 – getrennte Startseite und öffentliche Kurssuche */


.registration-entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 28px;
    background: #f7fbff;
    border: 1px solid #d7e7f4;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.registration-entry-card h2 {
    margin: 0 0 6px;
}

.registration-entry-card p {
    margin: 0;
    max-width: 650px;
}

.registration-entry-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.public-course-browser {
    max-width: 1180px;
}

.course-browser-head {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 26px;
    align-items: end;
    margin-bottom: 20px;
}

.course-browser-head h1 {
    margin-bottom: 6px;
}

.course-browser-head .public-course-search {
    margin: 0;
}

.course-browser-login-hint {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 900px) {
    .course-browser-head {
        grid-template-columns: 1fr;
    }

    .registration-entry-card {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* Version 83 – studentische Kurs- und Mitgliederansicht */
.my-course-page {
    max-width: 1120px;
}

.my-course-hero {
    margin-bottom: 24px;
    padding: 26px 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.my-course-hero h1 {
    margin: 4px 0 8px;
}

.my-course-section {
    margin-top: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.my-course-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.my-course-section-head h2 {
    margin: 3px 0 0;
}

.course-member-grid {
    display: grid;
    gap: 10px;
}

.course-member-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid #dce5f1;
    border-radius: 16px;
    background: #fbfdff;
}

.course-member-card.is-self {
    background: #f3f8fd;
    border-color: rgba(30,115,190,.24);
}

.course-member-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 5px 14px rgba(15,23,42,.08);
}

.course-member-main {
    min-width: 0;
}

.course-member-main strong,
.course-member-main span {
    display: block;
}

.course-member-main strong {
    color: var(--text);
}

.course-member-main span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .9rem;
}

.course-member-message {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .course-member-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .course-member-avatar {
        width: 44px;
        height: 44px;
    }

    .course-member-message {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }
}


/* Version 85 – Kurslaufzeit, Verlängerung und zentrierter Login */


.course-status-inactive {
    background: #eef2f7;
    color: #475569;
    border-color: #cbd5e1;
}

.course-lifecycle-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.course-lifecycle-panel > div {
    padding-top: 6px;
}

.course-lifecycle-panel h2 {
    margin-bottom: 6px;
}

.course-lifecycle-panel p:last-child {
    margin-bottom: 0;
}

.course-extension-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.course-extension-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.course-extension-form input[type="number"] {
    width: 84px;
}

.destructive-confirmation .alert p {
    margin-bottom: 0;
}

.destructive-confirmation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .course-lifecycle-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    
}

/* Patch 339: Kurszeilen als großzügige, eigenständige Ergebnis-Karten. */
.public-course-browser { max-width: 1180px; }
.public-course-list { display: grid; gap: 14px; margin-top: 18px; }
.public-course-row { position: relative; padding: 18px 22px; border-radius: 3px; border: 1px solid #d2e3f1; background: white; box-shadow: 0 6px 18px rgba(20,55,91,.10); }
.public-course-row::before { content: ""; flex: 0 0 150px; min-height: 100px; display: block; background: #e5f3ff url("../images/backgrounds/campus-hero-339.webp") center / cover; border-radius: 2px; }
.public-course-row-main { flex: 1 1 auto; min-width: 0; }
.public-course-row-main strong { font-size: 1.08rem; color: #173757; }
.public-course-row .button { flex: none; background: #1267b5; border-radius: 3px; }
@media(max-width: 700px) { .public-course-row::before { display:none; } }

/* Patch 362: Kursformulare und Kurslisten passen sich verfügbaren Spalten an. */
@media (max-width: 1100px) {
    .course-admin-summary-grid { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); }
    .course-list-row, .admin-course-row, .course-member-row { min-width: 0; }
}
@media (max-width: 850px) {
    .course-admin-summary-grid, .admin-course-columns { grid-template-columns: minmax(0,1fr); }
    .form-two-column { grid-template-columns: minmax(0,1fr); }
    .avatar-choice-grid { grid-template-columns: repeat(auto-fit, minmax(64px,1fr)); }
}
@media (max-width: 550px) {
    .course-member-card { grid-template-columns: 40px minmax(0,1fr); }
    .course-member-message { grid-column: 2; justify-self: start; }
    .course-member-row { gap: 7px; }
    .course-admin-summary-grid { gap: 12px; }
}

/* ENDE: 50-courses.css */

/* START: 60-messages.css */
/* Version 71 – interne Nachrichten mit Nutzer-Schnellsuche */
.messages-page {
}

.message-compose-panel {
    overflow: visible;
}

.recipient-picker {
    position: relative;
    margin-top: 6px;
}

.recipient-picker-trigger {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    box-shadow: none;
}

.recipient-picker-trigger:hover,
.recipient-picker-trigger[aria-expanded="true"] {
    color: var(--text);
    background: #ffffff;
    border-color: rgba(30, 115, 190, .55);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, .08);
    transform: none;
}

.recipient-picker-panel {
    position: absolute;
    z-index: 35;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cfdbea;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
}

.recipient-search-wrap {
    padding: 11px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.recipient-search-wrap input {
    margin: 0;
}

.recipient-list {
    max-height: 330px;
    overflow-y: auto;
}

.recipient-option {
    display: grid;
    width: 100%;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px 13px;
    color: var(--text);
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
    text-align: left;
    box-shadow: none;
}

.recipient-option:last-child {
    border-bottom: 0;
}

.recipient-option:hover,
.recipient-option.selected {
    color: var(--text);
    background: #eef6ff;
    transform: none;
    box-shadow: none;
}

.recipient-option-main {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.recipient-option-main strong,
.recipient-option-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipient-option-main small {
    color: var(--muted);
    font-size: .83rem;
    font-weight: 500;
}

.recipient-option .badge {
    font-size: .78rem;
    padding: 5px 9px;
}

.recipient-empty {
    margin: 0;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.message-list > h2 {
    margin-bottom: 16px;
}

.message-card {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.message-card:first-of-type {
    border-top: 0;
}

.message-card-head h3 {
    margin: 0;
}

@media (max-width: 620px) {
    .recipient-option {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .recipient-option .badge {
        grid-column: 2;
        justify-self: start;
    }
}


/* Version 72 – kompakter Nachrichtenbereich */
.messages-page {
}

.messages-page-head {
    margin-bottom: 14px;
}

.message-compose-shell {
    margin-bottom: 14px;
    overflow: visible;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.message-compose-toggle {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    color: var(--text);
    background: #ffffff;
    border: 0;
    border-radius: 15px;
    text-align: left;
    box-shadow: none;
}

.message-compose-toggle:hover,
.message-compose-toggle:focus-visible {
    color: var(--text);
    background: #f8fbff;
    transform: none;
    box-shadow: none;
}

.message-compose-toggle > span:first-child {
    display: grid;
    gap: 1px;
}

.message-compose-toggle strong {
    font-size: 1.02rem;
}

.message-compose-toggle small {
    color: var(--muted);
    font-size: .83rem;
    font-weight: 500;
}

.message-compose-toggle-icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border: 1px solid rgba(30, 115, 190, .14);
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
}

.message-compose-shell.open .message-compose-toggle {
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid var(--line);
}

.message-compose-panel.compact {
    padding: 18px;
    background: #fbfdff;
    border-radius: 0 0 15px 15px;
}

.message-compose-fields {
    display: grid;
    gap: 0;
}

.message-compose-panel textarea {
}

.message-compose-actions {
}

.message-inbox {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.message-inbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.message-inbox-title {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.message-inbox-title h2 {
    margin: 0;
    font-size: 1.08rem;
}

.message-count {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    padding: 0 8px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border: 1px solid rgba(30, 115, 190, .12);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.message-filter-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex: 1;
}

.message-search-label,
.message-sort-label {
    margin: 0;
}

.message-search-label {
    width: min(440px, 100%);
}

.message-sort-label {
    width: 190px;
    flex: 0 0 190px;
}

.message-search-label input,
.message-sort-label select {
    margin: 0;
    height: 42px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: .9rem;
}

.message-compact-list {
}

.message-compact-row {
}

.message-compact-row:last-of-type {
}

.message-compact-row[hidden] {
}

.message-compact-row summary {
    grid-template-columns: minmax(150px, .75fr) minmax(260px, 1.7fr) 125px 22px;
    padding: 11px 16px;
}

.message-compact-row summary::-webkit-details-marker {
}

.message-compact-row summary:hover {
}

.message-compact-row[open] summary {
    background: #f4f9fe;
}

.message-row-sender {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-row-subject {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-row-date {
}

.message-row-chevron {
    font-size: 1rem;
}

.message-compact-row[open] .message-row-chevron {
}

.message-row-detail {
    padding: 16px;
}

.message-row-detail .message-body {
}

.message-row-action {
    margin: 14px 0 0;
}

.message-list-empty {
    padding: 28px 18px;
}

@media (max-width: 820px) {
    .message-inbox-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .message-filter-controls {
        justify-content: stretch;
        width: 100%;
    }

    .message-search-label {
        flex: 1;
        width: auto;
    }

    .message-compact-row summary {
        grid-template-columns: minmax(0, 1fr) auto 20px;
    }

    .message-row-subject {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .message-row-date {
        grid-column: 2;
        grid-row: 1;
    }

    .message-row-chevron {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 620px) {
    .message-filter-controls {
        flex-direction: column;
    }

    .message-search-label,
    .message-sort-label {
        width: 100%;
        flex: 1 1 auto;
    }

    .message-compact-row summary {
        grid-template-columns: minmax(0, 1fr) 20px;
        gap: 5px 10px;
    }

    .message-row-sender {
        grid-column: 1;
        grid-row: 1;
    }

    .message-row-date {
        grid-column: 1;
        grid-row: 3;
        text-align: left;
    }

    .message-row-subject {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .message-row-chevron {
        grid-column: 2;
        grid-row: 1;
    }
}


/* Version 73 – reduzierte Nachrichtenoberfläche */
.messages-page {
    max-width: 1080px;
}

.messages-title {
    margin-bottom: 14px;
}

.message-compose-card {
    margin: 0 0 12px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.message-compose-button {
    min-width: 210px;
}

.message-compose-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.message-compose-panel[hidden] {
    display: none !important;
}

.message-compose-panel textarea {
    min-height: 145px;
}

.message-compose-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.message-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 10px;
    margin-bottom: 10px;
}

.message-toolbar label {
    margin: 0;
}

.message-toolbar input,
.message-toolbar select {
    height: 44px;
    margin: 0;
    padding: 9px 12px;
    font-size: .92rem;
    background: #ffffff;
}

.message-list-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.message-compact-list {
    display: grid;
}

.message-compact-row {
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid #edf1f5;
}

.message-compact-row:last-of-type {
    border-bottom: 0;
}

.message-compact-row[hidden] {
    display: none !important;
}

.message-compact-row summary {
    display: grid;
    grid-template-columns: minmax(150px, .72fr) minmax(280px, 1.7fr) 125px 20px;
    gap: 14px;
    align-items: center;
    min-height: 54px;
    padding: 10px 15px;
    cursor: pointer;
    list-style: none;
}

.message-compact-row summary::-webkit-details-marker {
    display: none;
}

.message-compact-row summary:hover {
    background: #f8fbff;
}

.message-compact-row[open] summary {
    background: #f3f8fd;
    border-bottom: 1px solid var(--line);
}

.message-row-sender,
.message-row-subject {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-row-sender {
    color: #39465b;
    font-weight: 750;
}

.message-row-subject {
    color: var(--text);
    font-weight: 650;
}

.message-row-date {
    color: var(--muted);
    font-size: .8rem;
    text-align: right;
    white-space: nowrap;
}

.message-row-chevron {
    color: #64748b;
    text-align: center;
    transition: transform 150ms ease;
}

.message-compact-row[open] .message-row-chevron {
    transform: rotate(180deg);
}

.message-row-detail {
    padding: 14px 15px 16px;
    background: #ffffff;
}

.message-row-detail .message-body {
    line-height: 1.6;
}

.message-row-action {
    margin: 12px 0 0;
}

.message-list-empty {
    margin: 0;
    padding: 22px 16px;
    text-align: center;
}

.message-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: #fbfdff;
}

.message-pagination[hidden] {
    display: none !important;
}

.message-pagination button {
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    padding: 0 9px;
    color: #334155;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .86rem;
    box-shadow: none;
}

.message-pagination button:hover,
.message-pagination button.active {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
    transform: none;
    box-shadow: none;
}

@media (max-width: 780px) {
    .message-toolbar {
        grid-template-columns: 1fr;
    }

    .message-compact-row summary {
        grid-template-columns: minmax(0, 1fr) auto 18px;
        gap: 5px 10px;
    }

    .message-row-subject {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .message-row-date {
        grid-column: 2;
        grid-row: 1;
    }

    .message-row-chevron {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 520px) {
    .message-compact-row summary {
        grid-template-columns: minmax(0, 1fr) 18px;
    }

    .message-row-sender {
        grid-column: 1;
        grid-row: 1;
    }

    .message-row-subject {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .message-row-date {
        grid-column: 1;
        grid-row: 3;
        text-align: left;
    }

    .message-row-chevron {
        grid-column: 2;
        grid-row: 1;
    }
}


/* ============================================================

*/
/* ENDE: 60-messages.css */

/* START: 70-assessment.css */
   Version 74 – zentraler Bewertungsbereich
   ============================================================ */

.lecturer-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lecturer-assessment-page {
    max-width: 1260px;
}

.assessment-course-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.assessment-course-bar > div {
    display: grid;
    gap: 2px;
}

.assessment-course-bar strong {
    font-size: 1.08rem;
}

.assessment-course-bar small {
    color: var(--muted);
}

.assessment-course-select {
    min-width: 310px;
    margin: 0;
}

.assessment-course-select label,
.assessment-course-select select {
    margin: 0;
}

.assessment-area-tabs-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.decomposition-assessment-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 18px;
    padding: 5px;
    background: #f7f9fc;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
}

.decomposition-assessment-tab {
    padding: 10px 9px;
    color: #536174;
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    font-size: .88rem;
    font-weight: 750;
}

.decomposition-assessment-tab:hover {
    color: var(--text);
    background: #e9f0f7;
    transform: none;
    box-shadow: none;
}

.decomposition-assessment-tab.active {
    color: #ffffff;
    background: var(--blue);
}

.decomposition-assessment-panel[hidden] {
    display: none !important;
}

.assessment-subhead {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 12px;
}

.assessment-subhead h3 {
    margin: 2px 0 0;
}

.assessment-student-list {
    display: grid;
    gap: 8px;
}

.assessment-student-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.2fr) minmax(190px, .9fr) auto auto;
    gap: 14px;
    align-items: center;
    min-height: 74px;
    padding: 12px 14px;
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.assessment-student-person,
.assessment-student-progress {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.assessment-student-person strong,
.assessment-student-person span,
.assessment-student-progress strong,
.assessment-student-progress span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assessment-student-person span,
.assessment-student-progress span {
    color: var(--muted);
    font-size: .84rem;
}

.assessment-student-progress strong {
    font-size: .94rem;
}

.assessment-student-row > .badge {
    justify-self: end;
    white-space: nowrap;
}

.assessment-student-row > .button,
.assessment-student-row > .muted {
    justify-self: end;
}

.assessment-empty-state {
    margin: 0;
    padding: 26px 18px;
    color: var(--muted);
    text-align: center;
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.assessment-group-list {
    display: grid;
    gap: 18px;
}

.assessment-group-block {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #ffffff;
}

.assessment-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    background: #f4f8fc;
    border-bottom: 1px solid var(--line);
}

.assessment-group-head h3 {
    margin: 0;
    font-size: 1rem;
}

.assessment-group-head span {
    color: var(--muted);
    font-size: .83rem;
}

.assessment-group-block .assessment-student-list {
    gap: 0;
}

.assessment-group-block .assessment-student-row {
    border: 0;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
    background: #ffffff;
}

.assessment-group-block .assessment-student-row:last-child {
    border-bottom: 0;
}

.compact-final-performance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.compact-final-performance h2 {
    margin-bottom: 5px;
}

.compact-final-performance p {
    margin: 0;
}

.assessment-placeholder-card {
    min-height: 120px;
}

@media (max-width: 1100px) {
    .lecturer-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assessment-area-tabs-five,
    .decomposition-assessment-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .assessment-student-row {
        grid-template-columns: minmax(210px, 1.15fr) minmax(170px, .85fr) auto;
    }

    .assessment-student-row > .button,
    .assessment-student-row > .muted {
        grid-column: 3;
    }
}

@media (max-width: 760px) {
    .assessment-course-bar,
    .compact-final-performance {
        align-items: stretch;
        flex-direction: column;
    }

    .assessment-course-select {
        min-width: 0;
        width: 100%;
    }

    .assessment-area-tabs-five,
    .decomposition-assessment-tabs {
        grid-template-columns: 1fr;
    }

    .assessment-student-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .assessment-student-row > .badge,
    .assessment-student-row > .button,
    .assessment-student-row > .muted {
        grid-column: 1;
        justify-self: start;
    }
}

@media (max-width: 620px) {
    .lecturer-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   Version 75 – kompakte Bewertungslisten und eindeutige Reiter
   ============================================================ */

/* Hauptreiter immer kompakt in einer Zeile; bei sehr kleinen Viewports horizontal scrollbar. */
.lecturer-assessment-overview .assessment-area-tabs-five {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100%;
    margin: 0 0 18px !important;
    padding: 5px !important;
    overflow-x: auto;
    background: #f3f6fa !important;
    border: 0;
    border-radius: 12px;
    scrollbar-width: thin;
}

.lecturer-assessment-overview .assessment-area-tabs-five .assessment-area-tab {
    flex: 1 1 0;
    min-width: 132px;
    padding: 9px 10px !important;
    color: #43536a !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: .84rem !important;
    font-weight: 760 !important;
    line-height: 1.2;
    white-space: nowrap;
    transform: none !important;
}

.lecturer-assessment-overview .assessment-area-tabs-five .assessment-area-tab:hover {
    color: var(--text) !important;
    background: #e6edf5 !important;
}

.lecturer-assessment-overview .assessment-area-tabs-five .assessment-area-tab.active {
    color: #ffffff !important;
    background: var(--blue) !important;
    box-shadow: 0 4px 10px rgba(30, 115, 190, .16) !important;
}

/* Dekompositions-Unterreiter als zweite, noch schmalere Navigationszeile. */
.lecturer-assessment-overview .decomposition-assessment-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100%;
    margin: 0 0 14px !important;
    padding: 4px !important;
    overflow-x: auto;
    background: #f6f8fb !important;
    border: 1px solid #e5ebf2 !important;
    border-radius: 11px !important;
}

.lecturer-assessment-overview .decomposition-assessment-tab {
    flex: 1 1 0;
    min-width: 92px;
    padding: 8px 9px !important;
    color: #4f5f73 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: .83rem !important;
    font-weight: 760 !important;
    line-height: 1.15;
    white-space: nowrap;
    transform: none !important;
}

.lecturer-assessment-overview .decomposition-assessment-tab:hover {
    color: var(--text) !important;
    background: #e8eef5 !important;
}

.lecturer-assessment-overview .decomposition-assessment-tab.active {
    color: #ffffff !important;
    background: var(--blue) !important;
    box-shadow: 0 4px 10px rgba(30, 115, 190, .14) !important;
}

/* Nur der fachliche Titel unter den Unterreitern; kein zweites "Teil X". */
.lecturer-assessment-overview .assessment-subhead {
    display: block;
    margin: 4px 0 12px;
    padding: 0 2px;
}

.lecturer-assessment-overview .assessment-subhead h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

/* Die Lernenden werden als durchgehende, kompakte Listenzeilen angezeigt. */
.lecturer-assessment-overview .assessment-student-list {
    display: grid;
    gap: 7px;
    width: 100%;
}

.lecturer-assessment-overview .assessment-student-row {
    display: grid !important;
    grid-template-columns:
        minmax(210px, 1.05fr)
        minmax(250px, 1.25fr)
        minmax(190px, auto) !important;
    gap: 18px !important;
    align-items: center !important;
    width: 100%;
    min-height: 62px !important;
    padding: 10px 13px !important;
    background: #ffffff !important;
    border: 1px solid #e0e7ef !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.lecturer-assessment-overview .assessment-student-row:hover {
    border-color: #c8d8e8 !important;
    background: #fbfdff !important;
}

.lecturer-assessment-overview .assessment-student-person,
.lecturer-assessment-overview .assessment-student-progress {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.lecturer-assessment-overview .assessment-student-person strong {
    overflow: hidden;
    color: var(--text);
    font-size: .95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lecturer-assessment-overview .assessment-student-person span {
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lecturer-assessment-overview .assessment-student-progress strong {
    color: #273449;
    font-size: .9rem;
    font-weight: 780;
}

.lecturer-assessment-overview .assessment-student-progress span {
    color: var(--muted);
    font-size: .78rem;
}

/* Badge + Aktion bilden rechts eine feste Aktionsgruppe. */
.lecturer-assessment-overview .assessment-student-row > .badge {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-right: 82px;
    padding: 6px 10px;
    white-space: nowrap;
    font-size: .78rem;
}

.lecturer-assessment-overview .assessment-student-row > .button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 70px;
    padding: 7px 10px;
    font-size: .8rem;
}

.lecturer-assessment-overview .assessment-student-row > .muted {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 70px;
    text-align: center;
}

/* Gruppenaktivität behält dieselben Zeilen, aber ohne zusätzliche Kartenoptik pro Person. */
.lecturer-assessment-overview .assessment-group-block {
    overflow: hidden;
    border: 1px solid #dde6ef;
    border-radius: 11px;
    background: #ffffff;
}

.lecturer-assessment-overview .assessment-group-head {
    padding: 9px 13px;
    background: #f5f8fb;
}

.lecturer-assessment-overview .assessment-group-block .assessment-student-list {
    gap: 0;
}

.lecturer-assessment-overview .assessment-group-block .assessment-student-row {
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    border-radius: 0 !important;
}

.lecturer-assessment-overview .assessment-group-block .assessment-student-row:last-child {
    border-bottom: 0 !important;
}

/* Individuelle Ansicht: gleiche klare Reiternavigation. */
.lecturer-assessment-page .assessment-summary-card {
    box-shadow: none;
}

@media (max-width: 980px) {
    .lecturer-assessment-overview .assessment-student-row {
        grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(175px, auto) !important;
        gap: 12px !important;
    }
}

@media (max-width: 760px) {
    .lecturer-assessment-overview .assessment-area-tabs-five,
    .lecturer-assessment-overview .decomposition-assessment-tabs {
        display: flex !important;
        grid-template-columns: none !important;
    }

    .lecturer-assessment-overview .assessment-student-row {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 11px !important;
    }

    .lecturer-assessment-overview .assessment-student-row > .badge,
    .lecturer-assessment-overview .assessment-student-row > .button,
    .lecturer-assessment-overview .assessment-student-row > .muted {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-right: 0;
    }
}


/* ============================================================

*/
/* ENDE: 70-assessment.css */

/* START: 80-dashboard.css */
/* Version 84 – Dashboard als zentrale Arbeitsübersicht */
.dashboard-course-overview-page {
    width: 100%;
    max-width: 1320px;
}

.dashboard-focus-grid {
    display: grid;
    grid-template-columns: minmax(205px, 235px) minmax(0, 1fr) minmax(205px, 235px);
    grid-template-areas: "left main right";
    gap: 20px;
    align-items: stretch;
}

.dashboard-focus-grid-single {
    display: block;
    max-width: 880px;
    margin: 0 auto;
}

.dashboard-side-left {
    grid-area: left;
}

.dashboard-side-right {
    grid-area: right;
}

.dashboard-side-column {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-course-overview {
    grid-area: main;
    overflow: hidden;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #dce5f1;
    border-radius: 3px;
    box-shadow: var(--shadow);
}

.dashboard-course-head {
    background: #3674b4;
    color: #ffffff;
}
.dashboard-mini-card-head {
    background: #ffffff;
    color: #233d59;
}

.dashboard-course-head {
    padding: 20px 30px 22px;
    text-align: center;
}

.dashboard-course-kicker {
    margin: 0 0 7px;
    color: #e2efff;
    font-size: .79rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.dashboard-course-overview h1 {
    max-width: 650px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-align: center;
}

.dashboard-course-content {
    display: flex;
    min-height: calc(100% - 117px);
    flex-direction: column;
    padding: 22px 30px 24px;
    background: #ffffff;
}

.dashboard-course-copy {
    max-width: 760px;
    margin: 0 auto;
}

.dashboard-course-copy p {
    margin: 0 0 14px;
    color: #40577a;
    font-size: .96rem;
    line-height: 1.62;
    text-align: justify;
}

.dashboard-course-authors {
    max-width: 760px;
    margin: 8px auto 0;
    padding-top: 14px;
    color: #51647f;
    border-top: 1px solid #dbe5ee;
    font-size: .9rem;
    line-height: 1.5;
}

.dashboard-course-authors strong {
    color: #52647d;
}

.dashboard-course-action {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
}

.dashboard-course-action .button {
    padding: 11px 18px;
}

.dashboard-mini-card {
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dce5f1;
    border-radius: 3px;
    box-shadow: var(--shadow);
}

.dashboard-mini-card-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 15px;
    text-align: center;
}

.dashboard-mini-card-head p {
    margin: 0;
    font-size: .95rem;
    font-weight: 850;
    line-height: 1.18;
}

.dashboard-mini-card-body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 17px 18px;
    text-align: center;
}

.dashboard-mini-card-value {
    color: var(--blue-dark);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
}

.dashboard-mini-card-value-text {
    max-width: 100%;
    font-size: 1.13rem;
    line-height: 1.25;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}

.dashboard-mini-card-copy {
    margin: 9px 0 0;
    color: #40577a;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
}

.dashboard-mini-card-meta {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.4;
}

.dashboard-mini-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 15px;
    color: var(--blue-dark);
    font-size: .84rem;
    font-weight: 850;
    text-decoration: none;
}

.dashboard-mini-card-link:hover,
.dashboard-mini-card-link:focus-visible {
    color: var(--blue);
    text-decoration: underline;
}

.dashboard-progress-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    margin-top: 15px;
    border: 0;
    border-radius: 999px;
    background: #e8eef5;
    appearance: none;
}

.dashboard-progress-track::-webkit-progress-bar {
    background: #e8eef5;
    border-radius: 999px;
}

.dashboard-progress-track::-webkit-progress-value {
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 999px;
}

.dashboard-progress-track::-moz-progress-bar {
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 999px;
}

@media (max-width: 1080px) {
    .dashboard-focus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "main main"
            "left right";
    }

    .dashboard-side-column {
        grid-template-rows: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-focus-grid {
        display: flex;
        flex-direction: column;
    }

    .dashboard-course-overview {
        order: 1;
    }

    .dashboard-side-left {
        order: 2;
    }

    .dashboard-side-right {
        order: 3;
    }

    .dashboard-side-column {
        grid-template-columns: 1fr;
    }

    .dashboard-course-head {
        padding: 18px 20px 20px;
    }

    .dashboard-course-content {
        padding: 18px 20px 22px;
    }

    .dashboard-course-copy p {
        text-align: left;
    }
}

/* ===========================================================
 * Dashboard 339 – tatsächliche Kurs- und Lernstände, nicht Mockup-Zahlen.
 * Die neuen Komponenten ersetzen die frühere verschachtelte Statusübersicht.
 * =========================================================== */
.dashboard-course-overview-page { max-width: 1460px; }
.portal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 36px 44px;
    border: 1px solid #b6d4ef;
    border-radius: 3px;
    background: linear-gradient(110deg, #1766b1 0%, #247ecb 64%, rgba(22,91,162,.78) 100%);
    color: #fff;
    box-shadow: 0 7px 23px rgba(21,62,106,.18);
}
.portal-hero::after {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: min(48%, 610px);
    background: linear-gradient(90deg, #2075bf 0%, rgba(20,89,157,.16) 60%),
                url("../images/backgrounds/campus-hero-339.webp") right center / cover no-repeat;
    opacity: .7;
}
.portal-hero-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #d5ebff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
}
.portal-hero h1 {
    margin: 0 0 12px;
    max-width: 1050px;
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.12;
}
.portal-hero p { margin: 0; max-width: 750px; color: #eff7ff; font-size: 1.06rem; line-height: 1.55; }
.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.dashboard-overview-card, .dashboard-shortcuts {
    border: 1px solid #d2e3f1;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(20,55,91,.12);
}
.dashboard-overview-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 252px;
}
.dashboard-overview-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.dashboard-overview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 3px;
    background: #e5f3ff;
    color: #1470bf;
    font-size: 1.8rem;
    font-weight: 700;
}
.dashboard-overview-top h2, .dashboard-shortcuts h2 { margin: 0; color: #1d3453; font-size: 1.3rem; font-weight: 740; }
.dashboard-overview-top p, .dashboard-shortcuts-head p { margin: 3px 0 0; color: #5e7188; font-size: .91rem; line-height: 1.4; }
.dashboard-overview-metric {
    padding: 14px 17px;
    margin-bottom: 14px;
    background: #edf6fd;
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 85px;
}
.dashboard-overview-metric strong { font-size: 1.3rem; line-height: 1.3; font-weight: 750; color: #155eab; overflow-wrap: anywhere; }
.dashboard-overview-metric span { color: #52677c; font-size: .89rem; line-height: 1.4; }
.dashboard-overview-metric progress { margin-top: 7px; }
.dashboard-overview-status { display: grid; gap: 7px; margin-bottom: 15px; }
.dashboard-overview-status p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 9px 0; margin: 0; border-bottom: 1px solid #e0eaf2; color: #52677c; font-size: .89rem; }
.dashboard-overview-status strong { color: #24415f; }
.dashboard-overview-card > a { color: #0869b9; font-size: .93rem; font-weight: 700; text-decoration: none; margin-top: auto; }
.dashboard-overview-card > a:hover, .dashboard-shortcut:hover b { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-overview-card > a span { margin-left: 8px; }
.dashboard-shortcuts { margin-top: 20px; padding: 22px; }
.dashboard-shortcuts-head { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.dashboard-shortcuts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-shortcut {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #d8e6f2;
    border-radius: 3px;
    background: white;
    text-decoration: none;
    box-shadow: none;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.dashboard-shortcut:hover, .dashboard-shortcut:focus-visible { border-color: #9bc5e9; box-shadow: 0 8px 18px rgba(13,72,125,.1); }
.dashboard-shortcut .dashboard-overview-icon { width: 46px; height: 46px; font-size: 1.5rem; }
.dashboard-shortcut span:last-child { display: grid; gap: 7px; min-width: 0; }
.dashboard-shortcut strong { font-size: .96rem; color: #1c3454; }
.dashboard-shortcut small { font-size: .86rem; font-weight: 400; line-height: 1.5; color: #5d7188; }
.dashboard-shortcut b { margin-top: 4px; font-size: .86rem; color: #0b6fbe; }
/* Dashboard: vier nummerierte Lernbereiche; Link bei jeder Karte am unteren Rand. */
.dashboard-shortcut-number {
    display: inline-flex;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    background: #e5f3ff;
    border-radius: 3px;
    font-size: 1.5rem;
    font-weight: 750;
    color: #1470bf;
}
.dashboard-shortcut > span:last-child {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-self: stretch;
    gap: 7px;
}
.dashboard-shortcut b { margin-top: auto; padding-top: 6px; }
/* Sichtbare Trennung zur nachfolgenden Kursübersicht. */
.dashboard-shortcuts + .dashboard-course-overview { margin-top: 22px !important; }

/* Nach der Schnellübersicht bleibt der bestehende Kurs-Einführungstext abrufbar. */
.dashboard-course-overview { margin-top: 22px; }
.dashboard-course-head { text-align: left; background: #fff; padding: 22px 26px; }
.dashboard-course-kicker { color: #246bad; }
.dashboard-course-overview h1 { color: #193957; text-align: left; max-width: none; font-size: 1.65rem; }
.dashboard-course-content { padding: 0 26px 23px; }
.dashboard-course-copy { max-width: none; margin: 0; }
.dashboard-course-copy p { text-align: left; }
.dashboard-course-authors { max-width: none; margin-left: 0; }
@media(max-width: 1100px) {
    .dashboard-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-shortcuts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 680px) {
    .portal-hero { padding: 24px 20px; }
    .portal-hero p { font-size: .95rem; }
    .dashboard-overview-grid, .dashboard-shortcuts-grid { grid-template-columns: 1fr; }
    .dashboard-overview-card { min-height: 0; padding: 18px; }
    .dashboard-shortcuts { padding: 16px; }
    .dashboard-course-head { padding: 18px; }
    .dashboard-course-content { padding: 0 18px 20px; }
}

/* ENDE: 80-dashboard.css */

/* START: 90-learning-overview.css */
   Version 78 – direkter Lernmodulzugang und saubere Bildflächen
   ============================================================ */

/* Die vier Teilkacheln besitzen innen durchgehend dieselbe weiße Fläche. */
.learning-area-card-grid .module-card,
.learning-area-card-grid .module-card-inner,
.learning-area-card-grid .module-card-body,
.learning-area-card-grid .module-card-image-wrap {
    background: #ffffff !important;
}

/* Die Bilddateien selbst enthalten weiße Hintergründe.
   Deshalb keine zusätzliche Schattenkante um das quadratische PNG erzeugen. */
.learning-area-card-grid .learning-overview-image {
    background: #ffffff !important;
    filter: none !important;
    box-shadow: none !important;
}

/* Auch bei gesperrten/folgenden Teilen bleibt der Inhaltsbereich weiß;
   der Status ist weiterhin eindeutig über Kopfzeile, Badge und Rahmen sichtbar. */
.learning-area-card-grid .module-card.pending,
.learning-area-card-grid .module-card.current,
.learning-area-card-grid .module-card.completed,
.learning-area-card-grid .module-card.locked {
    background: #ffffff !important;
}

.learning-area-card-grid .module-card.locked .module-card-image {
    filter: none !important;
}

/* Die Bildfläche wirkt etwas ruhiger und sitzt ohne sichtbaren Innenkasten. */
.learning-area-card-grid .module-card-image-wrap {
    overflow: hidden;
    border: 0 !important;
    box-shadow: none !important;
}

.learning-area-card-grid .learning-overview-image {
    max-width: 285px;
    max-height: 228px;
}



/* ENDE: 90-learning-overview.css */

/* START: 99-security-ui.css */
/* Version 80 – Logout bleibt optisch eine Kontokachel, technisch aber POST+CSRF. */
.account-logout-form {
    margin: 0;
}

.account-action-button {
    width: 100%;
    border: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* Version 84 – Timeout nur kurz vor dem tatsächlichen Sitzungsende sichtbar */
.nav-session-tools {
    display: flex;
    align-items: stretch;
    border-right: 0;
}

.nav-session-timer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 13px;
    color: #ffffff;
    border-left: 1px solid rgba(255,255,255,.22);
    background: rgba(255, 255, 255, .09);
    font-size: .78rem;
    white-space: nowrap;
}

.nav-session-timer[hidden] {
    display: none !important;
}

.nav-session-timer strong {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.alert.info {
    background: #eaf4fd;
    border: 1px solid #c9e2f7;
    color: #244c70;
}

@media (max-width: 960px) {
    .nav-session-tools {
        width: auto;
        margin-left: 0;
        border: 0;
    }

    .nav-session-timer {
        flex: 1;
        justify-content: flex-start;
    }

}

@media (max-width: 520px) {
    .nav-session-timer-label {
        display: none;
    }
}

/* ENDE: 99-security-ui.css */

/* START: 100-unified-layout.css */
/*
 * Version 95 – Seitenhintergrund mit deutlicheren architektonischen Bildflächen
 *
 * Ziel:
 * - Dashboard-Kachelsprache projektweit fortführen.
 * - Seitenüberschriften als klare Kacheln mit blauem Kopf und weißem Inhalt darstellen.
 * - Den Arbeitsbereich in einen weißen Mittelstreifen legen und die äußeren Flächen
 *   dezenter, moderner und etwas edler strukturieren.
 */

:root {
    --content-stage-half: 671px;
    --content-stage-width: 1342px;
    --theme-side-bleed: 56px;
    --content-stage-edge: 2px;
    --content-stage-bg: #ffffff;
    --outer-zone-bg: #edf1f5;
    --content-stage-line: rgba(93, 103, 117, 0.18);
    --outer-pattern-dot: rgba(93, 103, 117, 0.11);
    --outer-pattern-line: rgba(255, 255, 255, 0.38);
    --card-radius: 20px;
    --card-border: #cfdbeb;
    --card-head: linear-gradient(135deg, var(--blue), var(--blue-dark));
    --card-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.05);
}

/* Seitenhintergrund und Seitenbreite: zentral in 130-stage-lock.css. */

/* ------------------------------------------------------------
   2. Gemeinsame Kachelgrundlage
   ------------------------------------------------------------ */
.panel,
.card,
.dashboard-course-overview,
.dashboard-mini-card,
.module-card,
.learning-workspace-tabs,
.learning-workspace-panel,
.my-course-hero,
.my-course-section,
.public-info-card,
.message-compose-shell,
.message-list-card,
.course-content-card,
.assessment-area-panel,
.assessment-summary-card,
.completion-overview-card,
.group-card,
.account-action-card{
    border-color: var(--card-border);
    box-shadow: var(--card-shadow);
}

/* ------------------------------------------------------------
   3. Seitenkopf-Struktur (Farbe/Hintergrund zentral in 110-flat-card-system)
   ------------------------------------------------------------ */
.hierarchy-page-head,
.learning-workspace-head {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0 0 24px;
    border: 1px solid var(--card-border);
}
.hierarchy-page-head > div:first-child,
.learning-workspace-head > div:first-child { display: grid; min-width: 0; }
.learning-workspace-status {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
}
.learning-workspace-head .learning-workspace-status .badge {
    color: var(--blue-dark);
    background: rgba(255,255,255,.95);
    border-color: rgba(255,255,255,.72);
}
.learning-workspace-head .learning-workspace-status .badge.completed {
    color: #206f47;
}
.learning-breadcrumb {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 9px 13px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--card-border);
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(15,23,42,.045);
}

/* ------------------------------------------------------------
   4. Verwaltungs-Seitenköpfe (nur Anordnung, keine Farbüberschreibung)
   ------------------------------------------------------------ */
.admin-page-head {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0 0 22px;
    border: 1px solid var(--card-border);
}
.admin-page-head > div:first-child { display: grid; min-width: 0; }
.admin-page-head > .button,
.admin-page-head > .admin-actions {
    position: absolute;
    top: 13px;
    right: 18px;
    z-index: 2;
}
.admin-page-head > .button,
.admin-page-head > .admin-actions .button {
    color: var(--blue-dark);
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 14px rgba(15,23,42,.12);
}
.compact-page-intro { overflow: hidden; }

/* ------------------------------------------------------------
   5. Kursansichten (Layout; Farbe und Kopfband zentral in Modul 110)
   ------------------------------------------------------------ */
.course-browser-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--card-border);
}
.course-browser-head > div:first-child { display: grid; }
.course-browser-head .public-course-search { padding: 12px 26px 22px; }
.my-course-hero { overflow: hidden; }

.my-course-section {
    overflow: hidden;
    padding: 0;
}

.my-course-section-head {
    align-items: center;
    margin: 0;
    padding: 14px 22px;
    color: #233d59;
    background: #ffffff;
}

.my-course-section-head .eyebrow,
.my-course-section-head h2 {
    color: #ffffff;
}

.my-course-section-head .eyebrow {
    margin-bottom: 1px;
    opacity: 0.82;
}

.my-course-section-head h2 {
    margin: 0;
}

.my-course-section-head > .badge {
    color: #102438 !important;
    background: #ffffff !important;
    border: 1px solid #c5d4e5;
    border-color: #c5d4e5;
    font-weight: 800;
}

.my-course-section > .course-member-grid {
    padding: 20px 22px 22px;
}

/* ------------------------------------------------------------
   6. Konto und Nachrichten
   ------------------------------------------------------------ */
.account-overview.panel {
    overflow: hidden;
    padding: 0;
}

.account-profile-head {
    margin: 0;
    padding: 22px 26px;
    color: #ffffff;
    background: #3674b4;
}

.account-profile-head .eyebrow,
.account-profile-head h1,
.account-profile-head .muted {
    color: #233d59;
}

.account-profile-head .eyebrow {
    opacity: 0.82;
}

.account-profile-head .muted {
    opacity: 0.92;
}

.account-overview > :not(.account-profile-head) {
    margin-left: 26px;
    margin-right: 26px;
}

.account-overview > :last-child {
    margin-bottom: 26px;
}

.messages-title {
    overflow: hidden;
    margin: 0 0 16px;
    padding: 18px 24px;
    color: #ffffff;
    background: #3674b4;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

/* ------------------------------------------------------------
   7. Kleine Inhaltskacheln konsequent mit klarer Kopfzeile
   ------------------------------------------------------------ */
.simple-dashboard-card {
    padding: 0;
}

.simple-dashboard-card h2 {
    padding: 15px 18px;
    color: #233d59;
    background: #ffffff;
    font-size: 1.05rem;
}

.simple-dashboard-card > :not(h2) {
}

.simple-dashboard-card > .big {
    margin-top: 16px;
}

.simple-dashboard-card > .button {
    margin-bottom: 18px;
}

/* ------------------------------------------------------------
   8. Responsive: Außenrahmen ausblenden, Kacheln kompakter halten
   ------------------------------------------------------------ */
@media (max-width: 1460px) {
}

@media (max-width: 780px) {
    .hierarchy-page-head .eyebrow,
    .learning-workspace-head .eyebrow,
    .course-browser-head .eyebrow,
    .my-course-hero .eyebrow {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hierarchy-page-head h1,
    .learning-workspace-head h1,
    .course-browser-head h1,
    .my-course-hero h1,
    .admin-page-head h1,
    .compact-page-intro h1 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hierarchy-page-head .muted,
    .learning-workspace-head > div:first-child > .muted,
    .course-browser-head > div:first-child > .muted,
    .my-course-hero > .muted,
    .admin-page-head p,
    .compact-page-intro > .muted {
        padding-left: 20px;
        padding-right: 20px;
    }

    .learning-workspace-head h1 {
        padding-right: 20px;
    }

    .learning-workspace-status,
    .admin-page-head > .button,
    .admin-page-head > .admin-actions {
        position: static;
        margin: 0;
        padding: 0 20px 18px;
        background: #ffffff;
    }

    .learning-workspace-head .learning-workspace-status .badge {
        box-shadow: none;
        border-color: rgba(30, 115, 190, 0.18);
    }

    .admin-page-head > .button,
    .admin-page-head > .admin-actions .button {
        color: #ffffff;
        background: #111827;
        box-shadow: none;
    }

    .course-browser-head .public-course-search {
        padding-left: 20px;
        padding-right: 20px;
    }

    .account-profile-head {
        align-items: flex-start;
        padding: 20px;
    }

    .account-overview > :not(.account-profile-head) {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* ------------------------------------------------------------
   9. Weitere Einstiegs- und Formularseiten
   ------------------------------------------------------------ */
.admin-page-head .eyebrow,
.compact-page-intro .eyebrow {
    margin: 0;
    padding: 15px 26px 2px;
    color: #3674b4;
    background: #ffffff;
}

.admin-page-head .eyebrow + h1,
.compact-page-intro .eyebrow + h1 {
    padding-top: 0;
}

















.registration-entry-card {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border-color: var(--card-border);
    box-shadow: var(--card-shadow);
}

.registration-entry-card > div:first-child {
    flex: 1;
    min-width: 0;
}

.registration-entry-card .eyebrow,
.registration-entry-card h2 {
    color: #ffffff;
    background: #3674b4;
}

.registration-entry-card .eyebrow {
    margin: 0;
    padding: 14px 24px 1px;
    opacity: 0.84;
}

.registration-entry-card h2 {
    margin: 0;
    padding: 0 24px 15px;
}

.registration-entry-card p {
    padding: 17px 24px 20px;
}

.registration-entry-card .registration-entry-button {
    margin-right: 24px;
}

.registration-course-context,
.my-course-empty,
.public-course-detail-card {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.registration-course-context .eyebrow,
.my-course-empty .eyebrow,
.public-course-detail-card .eyebrow {
    margin: 0;
    padding: 16px 26px 2px;
    color: #e2efff;
    background: #3674b4;
}

.registration-course-context h1,
.my-course-empty h1,
.public-course-detail-card h1 {
    margin: 0;
    padding: 0 26px 18px;
    color: #ffffff;
    background: #3674b4;
}

.registration-course-context > p:not(.eyebrow),
.my-course-empty > p:not(.eyebrow),
.public-course-detail-card > p:not(.eyebrow) {
    margin-left: 26px;
    margin-right: 26px;
}

.registration-course-context > p:last-child,
.my-course-empty > p:last-child {
    margin-bottom: 20px;
}

.public-course-detail-card > :not(.eyebrow):not(h1) {
    margin-left: 26px;
    margin-right: 26px;
}

.public-course-detail-card > :last-child {
    margin-bottom: 26px;
}

/* Schmale Konto-/Sicherheitsseiten sollen ebenfalls nicht mit freien Überschriften beginnen. */
.container.narrow > .panel:first-of-type,
.forced-password-page > .panel:first-of-type {
    overflow: hidden;
    padding: 0;
}

.container.narrow > .panel:first-of-type > .eyebrow,
.forced-password-page > .panel:first-of-type > .eyebrow {
    margin: 0;
    padding: 16px 24px 2px;
    color: #e2efff;
    background: #3674b4;
}

.container.narrow > .panel:first-of-type > h1,
.forced-password-page > .panel:first-of-type > h1 {
    margin: 0;
    padding: 18px 24px;
    color: #ffffff;
    background: #3674b4;
}

.container.narrow > .panel:first-of-type > .eyebrow + h1,
.forced-password-page > .panel:first-of-type > .eyebrow + h1 {
    padding-top: 0;
}

.container.narrow > .panel:first-of-type > :not(.eyebrow):not(h1),
.forced-password-page > .panel:first-of-type > :not(.eyebrow):not(h1) {
    margin-left: 24px;
    margin-right: 24px;
}

.container.narrow > .panel:first-of-type > :last-child,
.forced-password-page > .panel:first-of-type > :last-child {
    margin-bottom: 24px;
}

@media (max-width: 780px) {
    .admin-page-head .eyebrow,
.compact-page-intro .eyebrow,
.registration-course-context .eyebrow,
.my-course-empty .eyebrow,
.public-course-detail-card .eyebrow{
        padding-left: 20px;
        padding-right: 20px;
    }

    .registration-course-context h1,
.my-course-empty h1,
.public-course-detail-card h1{
        padding-left: 20px;
        padding-right: 20px;
    }

    .registration-course-context > p:not(.eyebrow),
.my-course-empty > p:not(.eyebrow),
.public-course-detail-card > :not(.eyebrow):not(h1){
        margin-left: 20px;
        margin-right: 20px;
    }

    

    .registration-entry-card {
        display: block;
    }

    .registration-entry-card .registration-entry-button {
        margin: 0 20px 20px;
    }
}

/* ------------------------------------------------------------
   10. Version 93 – Abstände und Seitenlayouts nachgeschärft
   ------------------------------------------------------------ */

/* Konto: klarer Abstand zwischen Kopfbereich und Aktionskacheln. */
.account-overview.panel {
    padding-bottom: 28px;
}

.account-overview .account-course-box,
.account-overview .account-actions-grid {
    margin-top: 24px;
}

.account-overview .account-course-box {
    margin-bottom: 0;
}

.account-actions-grid {
    gap: 18px;
    align-items: stretch;
}

.account-actions-grid > * {
    margin: 0;
}

.account-logout-form {
    display: block;
}

.account-action-card,
.account-action-button.account-action-card {
    height: 100%;
    padding: 22px 20px;
}

.account-action-card span {
    margin-bottom: 6px;
}

/* Admin-Schnellzugriff: Innenabstände sauberer und gleichmäßiger. */
.simple-dashboard-grid {
    gap: 22px;
}

.simple-dashboard-card {
    overflow: hidden;
    padding: 0 0 22px;
}

.simple-dashboard-card h2 {
    margin: 0;
    padding: 16px 20px;
}

.simple-dashboard-card > :not(h2) {
    margin-left: 20px;
    margin-right: 20px;
}

.simple-dashboard-card .big {
    margin-top: 24px;
    margin-bottom: 8px;
}

.simple-dashboard-card .muted {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.45;
}

.simple-dashboard-card .button {
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 0;
}

/* Dekomposition: Kopfkachel soll exakt die Breite der drei Teilkacheln aufgreifen. */
.decomposition-page .learning-breadcrumb,
.decomposition-page .hierarchy-page-head,
.decomposition-page .decomposition-part-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.decomposition-page .learning-breadcrumb {
    margin-bottom: 16px;
}

.decomposition-page .hierarchy-page-head {
    margin-bottom: 24px;
}

/* Kursansicht: nur eine klare Überschrift in den Bereichsköpfen, Balken etwas schlanker. */
.my-course-section-head {
    min-height: 0;
    padding: 12px 20px;
}

.my-course-section-head h2 {
    font-size: 1.18rem;
    line-height: 1.2;
}

.my-course-section-head .eyebrow {
    display: none;
}

.my-course-section > .course-member-grid {
    padding: 22px;
}

/* Dashboard: vier kleine Kacheln links untereinander, große Kurskachel rechts. */
.dashboard-course-overview-page {
    max-width: 1240px;
    padding-bottom: 26px;
}

.dashboard-focus-grid {
    grid-template-columns: minmax(220px, 255px) minmax(0, 1fr);
    grid-template-areas:
        "left main"
        "right main";
    gap: 18px 22px;
    align-items: start;
}

.dashboard-side-column {
    grid-template-rows: repeat(2, minmax(0, auto));
    gap: 18px;
}

.dashboard-course-overview {
    grid-row: 1 / span 2;
    min-height: 100%;
}

.dashboard-course-content {
    padding: 24px 30px 30px;
}

.dashboard-course-action {
    padding-top: 24px;
    padding-bottom: 8px;
}

.dashboard-mini-card {
    min-height: 188px;
}

.dashboard-mini-card-body {
    gap: 10px;
    padding: 22px 18px 20px;
}

.dashboard-mini-card-link {
    padding-top: 18px;
}

@media (max-width: 1080px) {
    .dashboard-focus-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "left"
            "right";
        gap: 20px;
    }

    .dashboard-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .dashboard-course-overview {
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .dashboard-side-column {
        grid-template-columns: 1fr;
    }

    .dashboard-course-content {
        padding: 20px 20px 26px;
    }

    .my-course-section > .course-member-grid {
        padding: 18px;
    }
}


/* Version 94: Bildhintergründe nur in den Außenbereichen, Mitte bleibt ruhig. */


/* Version 95: Seitenbilder deutlich sichtbarer, weniger ausgewaschen und mit etwas breiterem Außenbereich. */


/* ENDE: 100-unified-layout.css */

/* START: 110-flat-card-system.css */
/*
 * Version 97 – flaches, einheitliches Kachelsystem
 *
 * Ziel:
 * - bestehende Inhalte, PHP-Logik und Bildassets unverändert lassen,
 * - alle zentralen Kacheltypen in dieselbe ruhige Formsprache bringen,
 * - Modulstatus weiterhin über Grün / Blau / Gelb unterscheiden,
 * - keine Sketch-/Kritzel- oder Ecklinien verwenden.
 */

:root {
    --flat-blue: #2a6fb8;
    --flat-blue-dark: #1f5f9f;
    --flat-blue-soft: #dcecff;
    --flat-green: #4aab6a;
    --flat-green-soft: #e1f4e7;
    --flat-yellow: #dcb441;
    --flat-yellow-soft: #fef2c8;
    --flat-neutral-border: #c9d9e8;
    --flat-neutral-border-strong: #b8ccdf;
    --flat-card-radius: 3px;
    --flat-card-shadow: 0 16px 34px rgba(15, 42, 70, 0.13), 0 5px 14px rgba(15, 42, 70, 0.06);
    --flat-card-shadow-hover: 0 22px 42px rgba(15, 42, 70, 0.18), 0 8px 18px rgba(15, 42, 70, 0.08);
}

/* ------------------------------------------------------------
   1. Gemeinsame Grundform für alle wichtigen Kacheln
   ------------------------------------------------------------ */
.panel,
.card,
.dashboard-course-overview,
.dashboard-mini-card,
.module-card,
.learning-hierarchy-card,
.learning-workspace-tabs,
.learning-workspace-panel,
.my-course-hero,
.my-course-section,
.public-info-card,
.message-compose-shell,
.message-list-card,
.course-content-card,
.assessment-area-panel,
.assessment-summary-card,
.completion-overview-card,
.group-card,
.group-workspace-panel,
.group-chat-panel,
.group-video-card,
.group-submission-card,
.account-action-card,
.course-member-card,
.public-course-card,
.course-management-card,
.user-progress-card,
.submission-card,
.reflection-card,
.h5p-card,
.module-panel,
.wahrnehmung-panel,
.simple-dashboard-card {
    border: 1px solid var(--flat-neutral-border);
    border-radius: var(--flat-card-radius);
    box-shadow: var(--flat-card-shadow);
}

.panel,
.card,
.dashboard-course-overview,
.dashboard-mini-card,
.module-card,
.learning-hierarchy-card,
.learning-workspace-tabs,
.learning-workspace-panel,
.my-course-hero,
.my-course-section,
.public-info-card,
.message-compose-shell,
.message-list-card,
.course-content-card,
.assessment-area-panel,
.assessment-summary-card,
.completion-overview-card,
.group-card,
.group-workspace-panel,
.group-chat-panel,
.group-video-card,
.group-submission-card,
.account-action-card,
.course-member-card,
.public-course-card,
.course-management-card,
.user-progress-card,
.submission-card,
.reflection-card,
.h5p-card,
.module-panel,
.wahrnehmung-panel,
.simple-dashboard-card {
    background-clip: padding-box;
}


.panel,
.card,
.dashboard-course-overview,
.dashboard-mini-card,
.module-card,
.learning-workspace-panel,
.my-course-hero,
.my-course-section,
.public-info-card,
.message-list-card,
.course-content-card,
.group-card,
.account-action-card,
.simple-dashboard-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

/* Ruhiger Hover statt starker Bewegung. */
a.card:hover,
a.account-action-card:hover,
a.learning-hierarchy-card:hover,
a.module-card:hover,
a.public-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--flat-card-shadow-hover);
}

/* ------------------------------------------------------------
   2. Modul- und Dekompositionskacheln – flaches Referenzdesign
   ------------------------------------------------------------ */
.learning-area-card-grid .module-card,
.decomposition-part-grid .module-card {
    --module-accent: var(--flat-blue);
    --module-soft: var(--flat-blue-soft);
    --module-border: #85b7e6;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%) !important;
    border: 1px solid var(--module-border) !important;
    border-radius: 3px !important;
    box-shadow: var(--flat-card-shadow) !important;
}

.learning-area-card-grid .module-card.completed,
.decomposition-part-grid .module-card.completed {
    --module-accent: var(--flat-green);
    --module-soft: var(--flat-green-soft);
    --module-border: #97d3ab;
}

.learning-area-card-grid .module-card.current,
.decomposition-part-grid .module-card.current {
    --module-accent: var(--flat-blue);
    --module-soft: var(--flat-blue-soft);
    --module-border: #6ea8df;
}

.learning-area-card-grid .module-card.pending,
.learning-area-card-grid .module-card.revision,
.decomposition-part-grid .module-card.pending,
.decomposition-part-grid .module-card.revision {
    --module-accent: var(--flat-yellow);
    --module-soft: var(--flat-yellow-soft);
    --module-border: #dfbf59;
}

.learning-area-card-grid .module-card.locked,
.decomposition-part-grid .module-card.locked {
    --module-accent: #9aa6b5;
    --module-soft: #f2f5f8;
    --module-border: #c4cfdb;
}

.learning-area-card-grid .module-card::before,
.learning-area-card-grid .module-card::after,
.decomposition-part-grid .module-card::before,
.decomposition-part-grid .module-card::after,
.learning-area-card-grid .module-card-head::before,
.learning-area-card-grid .module-card-head::after,
.decomposition-part-grid .module-card-head::before,
.decomposition-part-grid .module-card-head::after,
.learning-area-card-grid .module-card-body::before,
.learning-area-card-grid .module-card-body::after,
.decomposition-part-grid .module-card-body::before,
.decomposition-part-grid .module-card-body::after,
.learning-area-card-grid .module-card-image-wrap::after,
.decomposition-part-grid .module-card-image-wrap::after {
    content: none !important;
    display: none !important;
}

.learning-area-card-grid .module-card-inner,
.decomposition-part-grid .module-card-inner {
    overflow: hidden;
    height: 100%;
    border: 0 !important;
    border-radius: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.learning-area-card-grid .module-card-head,
.decomposition-part-grid .module-card-head {
    min-height: 62px;
    padding: 14px 18px;
    color: #153250 !important;
    background: color-mix(in srgb, var(--module-accent) 84%, white 16%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--module-accent) 58%, white 42%);
}

.learning-area-card-grid .module-card.completed .module-card-head,
.decomposition-part-grid .module-card.completed .module-card-head {
    background: #6fca89 !important;
    color: #174c2a !important;
}

.learning-area-card-grid .module-card.current .module-card-head,
.decomposition-part-grid .module-card.current .module-card-head {
    background: var(--flat-blue) !important;
    color: #ffffff !important;
}

.learning-area-card-grid .module-card.pending .module-card-head,
.learning-area-card-grid .module-card.revision .module-card-head,
.decomposition-part-grid .module-card.pending .module-card-head,
.decomposition-part-grid .module-card.revision .module-card-head {
    background: #e2c15a !important;
    color: #5f4600 !important;
}

.learning-area-card-grid .module-card-title,
.decomposition-part-grid .module-card-title {
    color: inherit !important;
    font-weight: 850;
    letter-spacing: -0.015em;
    text-shadow: none !important;
}

.learning-area-card-grid .module-card-body,
.decomposition-part-grid .module-card-body {
    position: relative;
    gap: 14px;
    padding: 18px 20px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%) !important;
}

.learning-area-card-grid .module-card .badge,
.decomposition-part-grid .module-card .badge {
    color: color-mix(in srgb, var(--module-accent) 82%, #21364c 18%) !important;
    background: var(--module-soft) !important;
    border: 1px solid color-mix(in srgb, var(--module-accent) 35%, white 65%) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: .84rem;
    font-weight: 800;
}

.learning-area-card-grid .module-card-topic,
.decomposition-part-grid .module-card-topic {
    color: #142c48;
    font-weight: 800;
    line-height: 1.35;
}

.learning-area-card-grid .module-card-description,
.decomposition-part-grid .module-card-description {
    color: #586a7f;
    line-height: 1.48;
}

.learning-area-card-grid .module-card-image,
.decomposition-part-grid .module-card-image {
    filter: none !important;
}

.learning-area-card-grid .module-card-image-wrap,
.decomposition-part-grid .module-card-image-wrap {
    border-bottom: 1px solid color-mix(in srgb, var(--module-accent) 24%, white 76%);
    padding-bottom: 8px;
}

.learning-area-card-grid .module-card:hover,
.decomposition-part-grid .module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--flat-card-shadow-hover) !important;
    border-color: color-mix(in srgb, var(--module-accent) 64%, white 36%) !important;
}

/* ------------------------------------------------------------
   3. Portal-Kartenkoepfe (Patch 339)
   Groesse Seitenkopfzeilen: Blau / Weiss.
   Kleine Listen-, Tabellen- und Status-Kopfzeilen: Hell / Dunkel.
   ------------------------------------------------------------ */
:root { --cp-portal-head-bg: linear-gradient(112deg, #146bbd, #1d77c5); }

/* Hauptueberschriften: auch gegen alte !important-Farbregeln. */
.public-info-head,
.account-profile-head,
.messages-title,
.group-room-head,
.my-course-section-head {
    background: var(--cp-portal-head-bg) !important;
    background-image: linear-gradient(90deg, rgba(16,94,174,.94), rgba(27,113,196,.70)), url("../images/backgrounds/campus-hero-339.webp") !important;
    background-size: cover !important;
    background-position: center right !important;
    color: #ffffff !important;
    border-bottom: 0;
    border-radius: 3px !important;
}

:is(.public-info-head, .account-profile-head,
    .messages-title, .group-room-head, .my-course-section-head)
:is(h1,h2,h3,h4,p,span,strong,small,.eyebrow,.muted,.description) {
    color: #ffffff !important;
}

:is(.hierarchy-page-head, .learning-workspace-head, .admin-page-head,
    .compact-page-intro, .course-browser-head, .my-course-hero,
    .registration-course-context, .my-course-empty, .public-course-detail-card,
    .registration-entry-card)
:is(h1, h2, .eyebrow):not(.badge) {
    background: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
}


/* Seitenhero: einzige verbindliche Flächenregel (keine extra Hintergrundkachel). */
:is(.hierarchy-page-head, .learning-workspace-head, .admin-page-head,
    .course-browser-head, .my-course-hero, .compact-page-intro) {
    background: linear-gradient(90deg, rgba(16,91,170,.96), rgba(29,109,187,.76)),
                url("../images/backgrounds/campus-hero-339.webp") center right / cover no-repeat !important;
    color: #fff !important;
    border-radius: 3px !important;
    padding: 27px 32px !important;
}
:is(.hierarchy-page-head, .learning-workspace-head, .admin-page-head,
    .course-browser-head, .my-course-hero, .compact-page-intro)
:is(.eyebrow, h1, .muted, p) {
    color: #fff !important;
    background: transparent !important;
}
:is(.hierarchy-page-head, .learning-workspace-head, .admin-page-head,
    .course-browser-head, .my-course-hero, .compact-page-intro) :is(.eyebrow, h1, .muted) {
    padding: 0 !important;
    margin: 0 0 9px !important;
}
:is(.hierarchy-page-head, .learning-workspace-head, .admin-page-head,
    .course-browser-head, .my-course-hero, .compact-page-intro) h1 {
    font-size: clamp(1.75rem, 2.8vw, 2.4rem) !important;
    font-weight: 750 !important;
    line-height: 1.16;
    letter-spacing: -.025em;
}
:is(.hierarchy-page-head, .learning-workspace-head, .admin-page-head,
    .course-browser-head, .my-course-hero, .compact-page-intro) .muted {
    max-width: 940px;
    font-size: 1rem;
    line-height: 1.55;
}
/* Suchformular gehört unter den blauen Kurstitel, nicht neben die Überschrift. */
.course-browser-head { display: block !important; padding: 0 !important; background: white !important; }
.course-browser-head > div:first-child {
    padding: 29px 33px;
    background: linear-gradient(90deg, rgba(16,91,170,.96), rgba(29,109,187,.76)),
                url("../images/backgrounds/campus-hero-339.webp") center right / cover no-repeat !important;
}
.course-browser-head > .public-course-search { margin: 0 !important; padding: 22px 28px; background: #fff; }
.course-browser-head > .public-course-search :is(input, button) { border-radius: 3px !important; min-height: 46px; }
@media(max-width: 700px) {
    :is(.hierarchy-page-head, .learning-workspace-head, .admin-page-head,
        .my-course-hero, .compact-page-intro) { padding: 21px 18px !important; }
    .course-browser-head > div:first-child { padding: 21px 18px; }
    .course-browser-head > .public-course-search { padding: 18px; }
}
/* Raum fuer bestehende Vorschau-/Aktionsschaltflaechen erhalten. */
.learning-workspace-head > div:first-child,
.admin-page-head > div:first-child { padding-right: 150px; }
@media (max-width: 700px) {
    .learning-workspace-head > div:first-child,
    .admin-page-head > div:first-child { padding-right: 0; padding-top: 32px; }
}

/* Header-Aktionen bleiben lesbar und klickbar. */
.learning-workspace-head .learning-workspace-status .badge,
.admin-page-head > .button,
.admin-page-head > .admin-actions .button { background: #ffffff; color: #245b93; }

/* Kleine Funktionskacheln bekommen KEINE blauen Vollflaechen. */
.dashboard-mini-card-head,
.public-course-card-head,
.course-management-card-head,
.message-card-head,
.completion-overview-head,
.panel-title-row,
.group-submission-card-head {
    background: #ffffff !important;
    background-image: none !important;
    color: #233d59 !important;
    border-bottom: 1px solid #dce6ef;
    box-shadow: none !important;
}
:is(.dashboard-mini-card-head, .public-course-card-head,
    .course-management-card-head, .message-card-head,
    .completion-overview-head, .panel-title-row, .group-submission-card-head)
:is(h1,h2,h3,h4,p,span,strong,small,.muted,.description) {
    color: #233d59;
}

.hierarchy-page-head,
.learning-workspace-head,
.admin-page-head,
.course-browser-head,
.my-course-hero,
.learning-breadcrumb {
    border-color: var(--flat-neutral-border);
    border-radius: 3px;
    box-shadow: var(--flat-card-shadow);
}
.learning-breadcrumb { background: #ffffff; }

/* ------------------------------------------------------------
   4. Kleine Funktionskarten / Konto / Admin
   ------------------------------------------------------------ */
.account-action-card,
.course-member-card,
.group-card,
.simple-dashboard-card,
.public-course-card,
.course-management-card {
    border-color: var(--flat-neutral-border);
    box-shadow: var(--flat-card-shadow);
}

.account-action-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.account-action-card:hover {
    border-color: #aac9e5;
}

.course-member-card,
.course-member-card.is-self {
    background: #fbfdff;
}

/* ------------------------------------------------------------
   5. Buttons: kompakt, flach, ohne übermäßige Tiefe
   ------------------------------------------------------------ */
.button,
button.button,
a.button {
    border-radius: 3px;
    box-shadow: none;
}

.button:hover,
button.button:hover,
a.button:hover {
    transform: translateY(-1px);
}

/* ------------------------------------------------------------
   6. Responsive
   ------------------------------------------------------------ */
@media (max-width: 780px) {
    .learning-area-card-grid .module-card-body,
    .decomposition-part-grid .module-card-body {
        padding: 17px 18px 20px;
    }
}


/* ------------------------------------------------------------
   8. Lernmodule ohne äußere Sammelkachel, mit stärkeren Einzelkarten
   ------------------------------------------------------------ */
.wahrnehmung-page .learning-workspace-panel,
.interactive-book-page .learning-workspace-panel {
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.wahrnehmung-page .learning-workspace-panel > .course-content-card,
.wahrnehmung-page .learning-workspace-panel > .reflection-card,
.wahrnehmung-page .learning-workspace-panel > .plug-match-card,
.interactive-book-page .learning-workspace-panel > .course-content-card,
.interactive-book-page .learning-workspace-panel > .reflection-card,
.interactive-book-page .learning-workspace-panel > .plug-match-card {
    margin-bottom: 22px;
    border: 1px solid #d8e4ef !important;
    border-radius: 3px !important;
    box-shadow:
        0 20px 42px rgba(14, 36, 64, 0.12),
        0 6px 14px rgba(14, 36, 64, 0.08) !important;
}

.wahrnehmung-page .learning-workspace-panel > .course-content-card:last-child,
.wahrnehmung-page .learning-workspace-panel > .reflection-card:last-child,
.wahrnehmung-page .learning-workspace-panel > .plug-match-card:last-child,
.interactive-book-page .learning-workspace-panel > .course-content-card:last-child,
.interactive-book-page .learning-workspace-panel > .reflection-card:last-child,
.interactive-book-page .learning-workspace-panel > .plug-match-card:last-child {
    margin-bottom: 0;
}

/* ENDE: 110-flat-card-system.css */

/* START: 120-season-theme.css */
/* Theme-Teststeuerung bleibt erhalten; Portal-Hintergrund wechselt nicht mehr nach Tageszeit. */
.theme-admin-test-dock {
    position: fixed;
    z-index: 48;
    right: 18px;
    bottom: 18px;
    width: 220px;
    overflow: hidden;
    color: #294863;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(109, 149, 187, .34);
    border-radius: 12px;
    box-shadow: 0 9px 24px rgba(16, 42, 68, .13);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.theme-admin-test-dock > summary {
    cursor: pointer;
    list-style: none;
    padding: 9px 11px;
    color: #2a659d;
    font-size: .72rem;
    font-weight: 850;
    text-align: center;
    user-select: none;
}

.theme-admin-test-dock > summary::-webkit-details-marker {
    display: none;
}

.theme-admin-test-dock.is-test > summary {
    color: #715600;
    background: #fff2c9;
}

.theme-admin-test-panel {
    padding: 0 10px 10px;
    border-top: 1px solid rgba(104, 142, 177, .16);
}

.theme-admin-test-panel label {
    display: grid;
    gap: 5px;
    margin-top: 9px;
    color: #4d647a;
    font-size: .67rem;
    font-weight: 700;
}

.theme-admin-test-panel input[type="datetime-local"],
.theme-admin-test-panel select {
    width: 100%;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #cbd8e5;
    border-radius: 8px;
    background: #ffffff;
    color: #294863;
    font: inherit;
    font-size: .7rem;
}

.theme-admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
}

.theme-admin-actions .button {
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 6px 8px;
    font-size: .68rem;
}

.theme-admin-actions .secondary {
    color: #35546f;
    background: #eef3f7;
}

@media (max-width: 900px) {
    .theme-admin-test-dock {
        right: 10px;
        bottom: 10px;
        width: 206px;
    }
}

/* ENDE: 120-season-theme.css */

/* START: 130-stage-lock.css */
/*
 * Patch 342: dynamischer Nebel fuer alle oeffentlichen und angemeldeten Seiten.
 * Bildquellen, Hintergrund-Verlauf und die Breiten-Variablen befinden sich
 * nur in diesem Modul. JS bestimmt die beiden Kanten, nicht den Kartentyp.
 */
:root {
    --fixed-stage-width: 1460px;
    --fixed-stage-half: 730px;
    --fixed-stage-edge: 2px;
    --fixed-side-bleed: 72px;
    --fixed-stage-inner-gutter: 26px;
    --fixed-right-bg-x: -272px;

    /* Weiche Standardgeometrie, bis das zentrale Skript die
       konkreten Inhaltskanten dieser Seite ermittelt. */
    --cp-fog-gradient-stops:
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.15) 12%,
        rgba(255,255,255,.65) 19%,
        #fff 27%,
        #fff 73%,
        rgba(255,255,255,.65) 81%,
        rgba(255,255,255,.15) 88%,
        rgba(255,255,255,0) 100%;
    --cp-content-left: 27%;
    --cp-content-right: 73%;
}

/* Reserviert den Scrollbalken auf jeder Seite – dadurch springt das Layout
   beim Wechsel zwischen kurzen und langen Seiten nicht mehr horizontal. */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* Patch 342: EIN zentraler Body-Verlauf fuer alle Routen.
 * Die JS-Messung setzt die Stopppunkte an die aeusseren Kachelkanten.
 * Der responsive Fallback hat ebenfalls weiche Uebergaenge ohne JS.
 * Keine pixelbreit begrenzte Nebelebene und keine weitere Hintergrund-CSS.
 */
body {
    background-color: #f4f9ff !important;
    background-image:
        linear-gradient(
            to right,
            transparent 0,
            transparent var(--cp-content-left),
            #ffffff var(--cp-content-left),
            #ffffff var(--cp-content-right),
            transparent var(--cp-content-right),
            transparent 100%
        ),
        url("../images/backgrounds/campus-side-left-v384.webp"),
        url("../images/backgrounds/campus-side-right-v384.webp") !important;
    background-position: center top, left top, right top !important;
    background-size: 100% 100%, auto 100%, auto 100% !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-attachment: fixed, fixed, fixed !important;
}
body::before,
body::after {
    content: none !important;
    display: none !important;
}

/* Äußere Hauptcontainer dürfen verschieden breite Inhalte besitzen, bekommen
   aber keinen eigenen flächigen Seitenhintergrund. Die Bühne bleibt dadurch
   immer sichtbar und exakt gleich breit. */
body > main,
body > main.container,
body > .container {
    background: transparent !important;
}

/* Desktop: Seiteninhalte bleiben innerhalb der festen Bühne. Spezifische
   Unterseiten dürfen ihre Inhalte intern schmaler halten. */
@media (min-width: 1461px) {
    body > main.container,
    body > .container {
        width: min(100%, var(--fixed-stage-width)) !important;
        max-width: var(--fixed-stage-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: var(--fixed-stage-inner-gutter) !important;
        padding-right: var(--fixed-stage-inner-gutter) !important;
    }

    /* Seiten, die ursprünglich bewusst schmaler waren, behalten die optische
       Inhaltsbreite über Innenabstand statt über eine andere Außenbreite. */
    body > main.my-course-page:not(.dashboard-course-overview-page) {
        padding-left: 102px !important;
        padding-right: 102px !important;
    }
}

/* Unterhalb dieser Breite gibt es ohnehin keine sinnvollen Seitenflächen mehr;
   hier greift wieder das normale responsive Layout. */

@media (max-width: 1460px) {
    html {
        overflow-y: auto;
        scrollbar-gutter: auto;
    }

    body > main.container,
    body > .container {
        width: auto !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body > main.my-course-page:not(.dashboard-course-overview-page) {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* Patch 362: einheitliche, fließende Innenränder aller Hauptseiten. */
@media (max-width: 1460px) {
    body > main.container, body > .container {
        padding-left: clamp(10px, 1.5vw, 22px) !important;
        padding-right: clamp(10px, 1.5vw, 22px) !important;
    }
    body > main.my-course-page:not(.dashboard-course-overview-page) {
        padding-left: clamp(10px, 1.5vw, 22px) !important;
        padding-right: clamp(10px, 1.5vw, 22px) !important;
    }
}

/* Patch 364: mobile-only white work surface. Keep game artwork untouched.
   This rule is owned by the same file that paints the desktop campus photos. */
@media (max-width: 700px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
    html { background: #fff !important; }
    body {
        background: #fff !important;
        background-image: none !important;
        background-color: #fff !important;
        background-attachment: scroll !important;
    }
    html body > main,
    html body > main.container,
    html body > .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 14px 10px 24px !important;
        background: #fff !important;
    }
}

/* ENDE: 130-stage-lock.css */

/* START: 140-layout-refinements.css */
/*
 * Version 108 – Layout-Verfeinerungen nach Review
 * - Navigation bündig zur festen Seitenbühne, kein unschöner Umbruch im Adminbereich
 * - Login-/Registrierungskarte sauberer aufgebaut
 * - Dashboard-Kacheln kompakt unter der Kursübersicht
 * - Gruppenraum mit konsistenteren Abständen, Kopfbereichen und Kachelhöhen
 */

/* ============================================================
   Gemeinsamer Portal-Header – zentrale CSS-Zuständigkeit.
   Vollbreite: Uni-Logo links, Markentitel in der echten Bildschirmmitte,
   Konto rechts; Hauptnavigation unabhängig von Suche/Logout zentriert.
   ============================================================ */
.site-header { position: relative; z-index: 40; width: 100%; }
.brand-shell {
    color: #fff;
    background: linear-gradient(112deg, #1d2d44 0%, #2b3b52 58%, #1a2b43 100%);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-inner {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 110px;
    padding: 12px 18px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-copy {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: min(100%, 700px);
    flex: none;
    margin: 0 auto;
    text-align: center;
}
.site-kicker {
    display: inline-block;
    margin: 0 0 5px;
    padding: 3px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    color: #dfeafa;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.site-title {
    color: #fff;
    font-size: clamp(1.65rem, 2.4vw, 2.4rem);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.08;
}
.site-subtitle { color: #d5dfeb; font-size: .9rem; margin-top: 4px; }
.uni-logo-link,
.brand-inner.has-user-tools .uni-logo-link {
    position: absolute;
    left: 12px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    margin: 0;
    text-decoration: none;
}
.uni-logo,
.brand-inner.has-user-tools .uni-logo {
    width: auto;
    height: 76px;
    max-width: 178px;
    object-fit: contain;
}
.header-user-tools {
    position: absolute;
    top: 50%;
    right: clamp(32px, 4vw, 80px);
    transform: translateY(-50%);
    display: flex;
    gap: 14px;
    align-items: center;
}
.header-notification-link {
    position: relative;
    display: inline-flex;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(222,235,255,.60);
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
}
.header-notification-link:hover,
.header-notification-link:focus-visible { background: rgba(255,255,255,.17); }
.header-notification-link.has-unread {
    border-color: #57d18d;
    background: rgba(49, 173, 99, .22);
    box-shadow: 0 0 0 2px rgba(78, 217, 131, .12);
    animation: header-unread-pulse 1.75s ease-in-out infinite;
}
@keyframes header-unread-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(78,217,131,.12); }
    50% { box-shadow: 0 0 0 7px rgba(78,217,131,.28), 0 0 22px rgba(78,217,131,.38); }
}
@media (prefers-reduced-motion: reduce) {
    .header-notification-link.has-unread { animation: none; }
}
.header-notification-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    padding: 1px 4px;
    border-radius: 999px;
    background: #2c9b60;
    color: white;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}
.header-account-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
}
.header-account-link:hover,
.header-account-link:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.header-account-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.42);
    background: #1f6fbf;
}
.header-account-text { display: grid; gap: 1px; text-align: left; }
.header-account-name {
    max-width: 190px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .88rem;
    font-weight: 700;
}
.header-account-role { color: #d4e1f1; font-size: .75rem; }
.header-logout-form { display: flex; margin: 0; flex: none; }
.header-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;
    border: 2px solid #ff9094;
    border-radius: 50%;
    background: #be2c3d;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.20);
}
.header-logout-button:hover, .header-logout-button:focus-visible {
    background: #9e1e30;
    box-shadow: 0 0 0 3px rgba(255,255,255,.24);
}
.header-logout-button .header-icon { width: 26px; height: 26px; stroke-width: 3; }
.header-notification-link .header-icon { width: 24px; height: 24px; }

.header-icon, .nav-link-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.main-nav {
    background: linear-gradient(98deg, #1c78ca, #105ca9);
    border-bottom: 1px solid rgba(0,46,96,.2);
    box-shadow: 0 5px 16px rgba(15,45,79,.12);
}
.nav-inner {
    display: flex;
    position: relative;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 49px;
    max-width: none;
    width: 100%;
    padding: 0 12px;
    margin: 0;
}
.nav-stage {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    min-width: 0;
    flex: none;
    align-items: stretch;
    justify-content: center;
}
.nav-primary { display: flex; min-width: 0; flex-wrap: nowrap; align-items: stretch; margin: 0; }
.nav-primary a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    color: #fff;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.14);
    text-decoration: none;
    padding: 12px 11px;
    font-size: .82rem;
    font-weight: 650;
    background: transparent;
    box-shadow: none;
    transition: background .15s ease;
}
.nav-primary a:last-child { border-right: 1px solid rgba(255,255,255,.14); }
.nav-primary a:is(:hover, :focus-visible, .active) {
    color: #fff;
    background: rgba(255,255,255,.17);
    box-shadow: inset 0 -3px 0 rgba(255,255,255,.75);
}
.nav-session-tools { display: flex; align-items: stretch; margin-left: 0; flex: none; }
.nav-logout-form { display: flex; align-items: stretch; margin: 0; }
.nav-logout-button { min-height: 49px; padding: 0 13px; }
.nav-session-timer { min-height: 49px; }
/* Wenn Navigation und rechte Aktionen nicht mehr nebeneinander passen,
   erhalten die Aktionen eine eigene, rechtsbündige Zeile statt zu überlappen. */
@media (max-width: 1290px) {
    .nav-inner { flex-wrap: wrap; gap: 0 10px; }
    .nav-stage {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        flex: 1 1 100%;
        justify-content: center;
    }
    .nav-primary { justify-content: center; }
}
@media (max-width: 1000px) {
    .brand-inner { min-height: 96px; }
    .uni-logo, .brand-inner.has-user-tools .uni-logo { height: 58px; }
    .brand-copy { max-width: calc(100% - 350px); }
    .site-title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
    .header-account-name { max-width: 115px; }
    .header-user-tools { right: 20px; gap: 8px; }
    .nav-stage { justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
    .nav-primary { min-width: max-content; }
}
@media (max-width: 960px) {
    .nav-session-tools { width: auto; border-top: 0; }
}
@media (max-width: 720px) {
    .brand-inner { min-height: 108px; padding: 8px 12px 45px; }
    .brand-copy { max-width: calc(100% - 135px); }
    .site-title { font-size: clamp(1.07rem, 3.5vw, 1.6rem); }
    .site-subtitle { font-size: .7rem; }
    .site-kicker { font-size: .55rem; }
    .uni-logo, .brand-inner.has-user-tools .uni-logo { height: 43px; max-width: 110px; }
    .uni-logo-link, .brand-inner.has-user-tools .uni-logo-link { top: 32px; }
    .header-user-tools { top: auto; bottom: 4px; right: 9px; transform: none; gap: 6px; }
    .header-account-text { display: none; }
    .header-account-avatar { width: 38px; height: 38px; }
    .header-notification-link { width: 40px; height: 40px; }
    .header-logout-button { width: 40px; height: 40px; }
    .header-logout-button .header-icon { width: 23px; height: 23px; }
    .nav-primary a { padding: 10px 9px; font-size: .76rem; gap: 5px; }
    .nav-link-icon { width: 16px; height: 16px; }
}
@media (max-width: 420px) {
    .brand-inner { min-height: 132px; padding: 8px 10px 58px; align-items: flex-start; }
    .brand-copy { max-width: 100%; }
    .site-title { font-size: 1.16rem; }
    .site-subtitle { font-size: .68rem; }
    .uni-logo-link, .brand-inner.has-user-tools .uni-logo-link {
        top: auto;
        bottom: 9px;
        transform: none;
    }
    .uni-logo, .brand-inner.has-user-tools .uni-logo { height: 40px; }
    .header-user-tools { bottom: 7px; }
    .nav-primary a { font-size: .72rem; padding: 9px 7px; }
    .nav-link-icon { display: none; }
}

/* ------------------------------------------------------------
   2. Registrierungs-CTA auf Startseite bereinigen
   ------------------------------------------------------------ */
.registration-entry-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.registration-entry-card > div:first-child {
    display: grid;
    align-self: stretch;
}

.registration-entry-card .eyebrow,
.registration-entry-card h2 {
    display: block;
    width: 100%;
}

.registration-entry-card .eyebrow {
    padding-top: 16px;
}

.registration-entry-card h2 {
    padding-bottom: 16px;
}

.registration-entry-card p {
    margin: 0;
    padding: 18px 24px 22px;
}

.registration-entry-card .registration-entry-button {
    margin: 0 24px 0 0;
    justify-self: end;
    align-self: center;
}

@media (max-width: 900px) {
    .registration-entry-card {
        grid-template-columns: 1fr;
    }

    .registration-entry-card .registration-entry-button {
        margin: 0 24px 24px;
        justify-self: start;
    }
}

/* ------------------------------------------------------------
   3. Dashboard: vier Infokarten kompakt unter die Hauptkarte
   ------------------------------------------------------------ */
.dashboard-course-overview-page {
    max-width: 1320px;
}

.dashboard-overview-stack {
    display: grid;
    gap: 22px;
}

.dashboard-overview-stack-single {
    max-width: 980px;
    margin: 0 auto;
}

.dashboard-course-overview {
    max-width: 1020px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.dashboard-mini-grid .dashboard-mini-card {
    min-height: 0;
}

.dashboard-mini-grid .dashboard-mini-card-head {
    min-height: 56px;
}

.dashboard-mini-grid .dashboard-mini-card-body {
    min-height: 250px;
    justify-content: flex-start;
    gap: 0;
}

.dashboard-mini-grid .dashboard-mini-card-value {
    margin-top: 2px;
}

.dashboard-mini-grid .dashboard-mini-card-link {
    margin-top: auto;
}

@media (max-width: 1100px) {
    .dashboard-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .dashboard-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
   4. Gruppenraum optisch ordnen
   ------------------------------------------------------------ */
.group-room-head {
    margin-bottom: 20px;
}

.group-room-head h1 {
    padding-bottom: 10px;
}

.group-room-head .group-member-color-list {
    margin: 0;
    padding: 0 26px 18px;
    background: #ffffff;
    gap: 9px;
}

.group-room-head .admin-actions {
    display: flex;
    gap: 10px;
}

.group-peer-review-layout {
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.45fr) minmax(300px, .92fr);
    gap: 18px;
    align-items: start;
}

/* Das Gruppenraum-Raster wird zentral im Dashboard-Bühnenmodul definiert. */


.group-peer-video-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.group-panel-card,
.group-video-center-detail,
.group-video-empty-state,
.group-overall-task-panel {
    border-radius: 22px;
}

.group-chat-panel,
.group-peer-comments-column {
    padding: 0;
    overflow: hidden;
}

.group-section-head,
.group-video-comments-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 18px 22px;
    background: var(--flat-blue);
    color: #ffffff;
}

.group-section-head h2,
.group-video-comments-head h2,
.group-section-head p,
.group-video-comments-head p {
    margin: 0;
    color: inherit;
}

.group-section-head .muted,
.group-video-comments-head .muted {
    color: rgba(255,255,255,.86);
}

.group-section-head .button.secondary,
.group-room-head .admin-actions .button.secondary {
    background: rgba(255,255,255,.96);
    color: var(--blue-dark);
}

.group-chat-list {
    margin: 0;
    padding: 20px 22px 0;
}

.group-chat-panel .message-compose-form {
    margin: 0;
    padding: 16px 22px 22px;
}

.group-chat-panel .message-compose-form label {
    margin-bottom: 14px;
}

.group-video-tile-grid-v55 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.group-video-tile,
.group-video-select-tile,
.group-video-add-tile {
    width: 100%;
}

.compact-video-tile,
.group-video-select-tile {
    min-height: 96px;
}

.compact-video-tile-main {
    min-height: 94px;
}

.group-video-empty-state,
.group-video-center-detail,
.group-overall-task-panel {
    margin: 0;
}

.group-video-center-detail {
    padding: 20px;
}

.group-peer-comments-column > h2,
.group-peer-comments-column > p {
    padding-left: 22px;
    padding-right: 22px;
}

.group-video-comments-v55 {
    min-height: 100%;
}

.group-video-comments-v55 .group-video-comment-list,
.group-video-comments-v55 .comment-task-counter,
.group-video-comments-v55 .group-video-add-comment,
.group-video-comments-v55 .group-video-comment-form {
    margin-left: 20px;
    margin-right: 20px;
}

.group-video-comments-v55 .group-video-comment-list {
    margin-bottom: 12px;
}

.group-video-comments-v55 .group-video-add-comment {
    width: calc(100% - 40px);
    margin-bottom: 12px;
}

.group-video-comments-v55 .group-video-comment-form {
    margin-bottom: 20px;
}

.group-overall-task-panel {
    align-items: center;
}

.group-overall-task-panel form {
    margin: 0;
}

.group-overall-task-panel button {
    white-space: nowrap;
}

@media (max-width: 1320px) {
    .group-peer-review-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .group-peer-comments-column {
        grid-column: 2;
        position: static;
        max-height: none;
    }

    .group-video-tile-grid-v55 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .group-peer-review-layout {
        grid-template-columns: 1fr;
    }

    .group-peer-chat,
    .group-peer-comments-column {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .group-video-tile-grid-v55 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-overall-task-panel {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 620px) {
    .group-video-tile-grid-v55 {
        grid-template-columns: 1fr;
    }

    .group-room-head .admin-actions {
        position: static;
        padding: 0 18px 18px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Patch 362 – globaler Portal-Header, abgestimmt auf nutzbare Fensterbreite.
   Breiten wechseln ohne device-spezifischen Zoom; mittlere Beschriftung bleibt
   unabhängig von Logo und Benutzerwerkzeugen in der Bildschirmmitte. */
.brand-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
    column-gap: 12px;
    min-height: clamp(88px, 6.3vw, 110px);
    padding: 10px clamp(12px, 1.1vw, 22px);
}
.brand-copy {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    min-width: 0;
    max-width: 100%;
}
.uni-logo-link, .brand-inner.has-user-tools .uni-logo-link {
    position: static;
    transform: none;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
}
.uni-logo, .brand-inner.has-user-tools .uni-logo {
    height: clamp(48px, 4.4vw, 76px);
    max-width: 100%;
}
.header-user-tools {
    position: static;
    transform: none;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    gap: clamp(5px, .7vw, 14px);
}
.site-title { font-size: clamp(1.45rem, 1.9vw + .1rem, 2.4rem); overflow-wrap: anywhere; }
.site-subtitle { font-size: clamp(.76rem, .78vw, .9rem); }
.header-notification-link,
.header-account-avatar { width: clamp(40px, 3vw, 52px); height: clamp(40px, 3vw, 52px); }
.header-logout-button { width: clamp(40px, 2.85vw, 48px); height: clamp(40px, 2.85vw, 48px); }
.header-account-name { max-width: clamp(100px, 10.5vw, 190px); }
.nav-inner { min-height: clamp(43px, 3vw, 49px); }
.nav-primary a {
    padding: clamp(9px, .77vw, 12px) clamp(7px, .64vw, 11px);
    gap: clamp(4px, .4vw, 8px);
    font-size: clamp(.75rem, .75vw, .82rem);
}
.nav-primary .nav-link-icon { width: clamp(16px, 1.05vw, 19px); height: clamp(16px, 1.05vw, 19px); }
@media (max-width: 1240px) {
    .brand-inner { grid-template-columns: minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr); }
    .brand-copy { width: 100%; }
    .site-title { font-size: clamp(1.22rem, 2.4vw, 1.9rem); }
    .header-account-text { max-width: 118px; }
    .header-account-name { max-width: 115px; }
    .nav-stage { min-width: 0; }
}
@media (max-width: 900px) {
    .brand-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 0;
        row-gap: 9px;
        padding: 10px 14px;
    }
    .brand-copy { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: auto; max-width: 100%; }
    .uni-logo-link, .brand-inner.has-user-tools .uni-logo-link {
        grid-column: 1; grid-row: 2; justify-self: start;
    }
    .uni-logo, .brand-inner.has-user-tools .uni-logo { height: 46px; }
    .header-user-tools { grid-column: 2; grid-row: 2; align-self: center; }
    .header-account-text { display: grid; }
    .header-notification-link, .header-account-avatar { width: 40px; height: 40px; }
    .header-logout-button { width: 40px; height: 40px; }
    .site-title { font-size: clamp(1.4rem, 3.4vw, 1.8rem); }
    .nav-stage { justify-content: flex-start; min-width: 0; width: 100%; }
    .nav-primary { min-width: max-content; }
}
@media (max-width: 600px) {
    .brand-inner { gap: 7px; padding: 9px 10px; }
    .site-title { font-size: clamp(1.18rem, 4.5vw, 1.55rem); }
    .site-subtitle { font-size: .74rem; }
    .site-kicker { font-size: .58rem; margin-bottom: 3px; }
    .uni-logo, .brand-inner.has-user-tools .uni-logo { height: 40px; }
    .header-user-tools { gap: 5px; }
    .header-account-text { display: none; }
    .header-notification-link, .header-account-avatar, .header-logout-button { width: 38px; height: 38px; }
    .nav-inner { padding: 0 6px; }
    .nav-primary a { font-size: .77rem; padding: 10px 8px; }
    .nav-primary .nav-link-icon { display: inline-block; width: 16px; height: 16px; }
}

/* ENDE: 140-layout-refinements.css */

/* Patch 439: Dashboard-Design ohne Eingriff in dashboard.php.
   Die Selektoren erkennen das Dashboard anhand der vorhandenen Main-Klasse.
   Nur rein optische Einstellungen: keine Aenderung an PHP, Lernstaenden oder Sitzungen. */
/* Patch 439 – Dashboard im Stil der modernisierten Login-Seite (Patch 438).
   Nur das Dashboard wird angepasst; Daten, Links und Interaktionen bleiben unberührt. */
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) {
  --dash-accent-blue: #1559a6;
  --dash-accent-mid: #2985be;
  --dash-accent-teal: #36bcae;
  --dash-border: #d5e5f0;
  --dash-ink: #193a5a;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) main.dashboard-course-overview-page {
  padding-bottom: 54px;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 38px 34px;
  border: 1px solid rgba(181, 213, 232, .85) !important;
  border-radius: 16px 16px 0 0 !important;
  background: linear-gradient(105deg, #1452a0 0%, #2178b9 49%, #329bbd 77%, #3ac4b4 100%) !important;
  box-shadow: 0 12px 26px rgba(19, 49, 77, .12) !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -6%;
  top: -87px;
  inset: auto -6% auto auto;
  width: 62%;
  height: 210px;
  border-radius: 0 0 49% 65%;
  background: linear-gradient(112deg, rgba(9, 51, 115, .11), rgba(13, 72, 123, .24)) !important;
  transform: rotate(-7deg);
  opacity: 1 !important;
  pointer-events: none;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-hero .portal-hero-eyebrow {
  color: #eafaff !important;
  letter-spacing: .08em;
  font-weight: 550 !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-hero h1 {
  color: #fff !important;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  font-weight: 650 !important;
  line-height: 1.19;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-hero p {
  color: #f4fbff !important;
  font-weight: 400;
  font-size: .99rem;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-grid {
  gap: 16px;
  margin-top: 17px;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-card {
  min-width: 0;
  padding: 23px 22px 20px !important;
  border: 1px solid var(--dash-border) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(23, 63, 103, .095) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-card:hover {
  border-color: #bedae9 !important;
  box-shadow: 0 12px 25px rgba(23, 63, 103, .13) !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-top {
  margin-bottom: 16px;
  gap: 11px;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-top h2 {
  color: var(--dash-ink) !important;
  font-size: 1.14rem;
  font-weight: 650 !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px !important;
  background: linear-gradient(145deg, #e9f4fd, #eefafa) !important;
  color: #1776b3 !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-icon svg { width: 23px; height: 23px; }
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-metric {
  background: #f2f7fc !important;
  border: 1px solid #e5eff7;
  border-radius: 10px !important;
  padding: 15px !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-metric strong {
  color: var(--dash-ink) !important;
  font-weight: 580 !important;
  font-size: 1.1rem;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-metric span,
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-metric small {
  color: #46627b !important;
  font-weight: 400 !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-progress-track {
  border-radius: 10px;
  overflow: hidden;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-progress-track::-webkit-progress-value {
  background: linear-gradient(90deg, #1b67b1, #36bfae) !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-progress-track::-moz-progress-bar {
  background: linear-gradient(90deg, #1b67b1, #36bfae) !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-card > a {
  color: #176bad !important;
  font-weight: 550 !important;
  text-decoration: none;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-card > a:hover,
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-card > a:focus-visible {
  color: #0d548c !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-status-row {
  color: var(--dash-ink);
  text-decoration: none;
  border-color: #e1ebf3;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-status-row strong { font-weight: 500 !important; }
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-status-row:hover,
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-status-row:focus-visible {
  background: #f3f8fc;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcuts {
  margin-top: 19px;
  padding: 24px 23px 25px !important;
  border: 1px solid var(--dash-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 23px rgba(23, 63, 103, .09) !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcuts-head h2 {
  color: var(--dash-ink) !important;
  font-size: 1.3rem;
  font-weight: 650 !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcuts-head p {
  color: #55718b !important;
  font-weight: 400;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcuts-grid { gap: 13px; }
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) a.dashboard-shortcut {
  border: 1px solid #dae7f1 !important;
  border-radius: 11px !important;
  padding: 17px 15px !important;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%) !important;
  box-shadow: 0 2px 5px rgba(22, 64, 101, .035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) a.dashboard-shortcut:hover,
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) a.dashboard-shortcut:focus-visible {
  transform: translateY(-2px);
  border-color: #8bc8d4 !important;
  box-shadow: 0 9px 20px rgba(20, 84, 132, .14) !important;
  outline-offset: 2px;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcut-number {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px !important;
  color: #1769b1 !important;
  background: linear-gradient(145deg, #e9f2fd, #e6f8f5) !important;
  font-size: 1.25rem;
  font-weight: 650 !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcut strong {
  color: var(--dash-ink) !important;
  font-weight: 600 !important;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcut small {
  color: #4b667f !important;
  font-weight: 400;
}
body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcut b {
  color: #176fb3 !important;
  font-weight: 550 !important;
}
@media(max-width: 700px) {
  body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-hero { padding: 25px 21px 27px; border-radius: 12px 12px 0 0 !important; }
  body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-grid { gap: 12px; margin-top: 13px; }
  body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-card { padding: 19px !important; min-height: 0; }
  body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-shortcuts { padding: 18px !important; }
  body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) a.dashboard-shortcut { padding: 15px !important; }
}
@media(prefers-reduced-motion: reduce) {
  body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) .dashboard-overview-card,
  body:is(.dashboard-page, :has(> main.dashboard-course-overview-page)) a.dashboard-shortcut { transition: none !important; }
}



/* Patch 440 – Dashboard-Palette passend zum Login-Design 438.
   Bewusst auf das Dashboard-Main begrenzt, keine HTML/PHP-Anpassung.
   Direkte Selektoren übersteuern auch die später geladene globale
   Hero-Farbregel in 302-finishing.css. */
body main.dashboard-course-overview-page .portal-hero.dashboard-hero {
  background-color: #165ba7 !important;
  background-image: linear-gradient(108deg,
    #134f9f 0%, #1c6ab3 47%, #3295c1 76%, #39c3b4 100%) !important;
  background: linear-gradient(108deg,
    #134f9f 0%, #1c6ab3 47%, #3295c1 76%, #39c3b4 100%) !important;
  border-color: rgba(187,213,233,.85) !important;
  box-shadow: 0 14px 36px rgba(19,49,77,.13), 0 2px 7px rgba(26,64,100,.07) !important;
}
body main.dashboard-course-overview-page .portal-hero.dashboard-hero::after {
  content: '' !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: auto -6% auto auto !important;
  right: -6% !important;
  top: -68px !important;
  width: 63% !important;
  height: 155px !important;
  border-radius: 0 0 45% 65% !important;
  background: linear-gradient(112deg, rgba(16,61,127,.17), rgba(5,58,110,.25)) !important;
  background-image: linear-gradient(112deg, rgba(16,61,127,.17), rgba(5,58,110,.25)) !important;
  background-size: auto !important;
  opacity: 1 !important;
  transform: rotate(-7deg);
  pointer-events: none;
}
body main.dashboard-course-overview-page .portal-hero.dashboard-hero .portal-hero-eyebrow,
body main.dashboard-course-overview-page .portal-hero.dashboard-hero h1,
body main.dashboard-course-overview-page .portal-hero.dashboard-hero p {
  color: #fff !important;
}
body main.dashboard-course-overview-page .dashboard-overview-card,
body main.dashboard-course-overview-page .dashboard-shortcuts {
  border-color: #d3e4ed !important;
  background-color: #fff !important;
  box-shadow: 0 12px 29px rgba(21,79,111,.095) !important;
}
body main.dashboard-course-overview-page .dashboard-overview-icon,
body main.dashboard-course-overview-page .dashboard-shortcut-number {
  color: #176eac !important;
  background: linear-gradient(145deg, #e9f2fd 10%, #e0f7f4 100%) !important;
}
body main.dashboard-course-overview-page .dashboard-overview-metric {
  background-color: #f1f7fb !important;
  border-color: #dfebf1 !important;
}
body main.dashboard-course-overview-page .dashboard-overview-card > a,
body main.dashboard-course-overview-page .dashboard-shortcut b {
  color: #136da9 !important;
}
body main.dashboard-course-overview-page .dashboard-overview-card > a:hover,
body main.dashboard-course-overview-page .dashboard-shortcut:hover b {
  color: #087f88 !important;
}
body main.dashboard-course-overview-page a.dashboard-shortcut {
  border-color: #d8e8ef !important;
  background: linear-gradient(180deg, #fff 0%, #f6fbfc 100%) !important;
}
body main.dashboard-course-overview-page a.dashboard-shortcut:hover,
body main.dashboard-course-overview-page a.dashboard-shortcut:focus-visible {
  border-color: #68c5bb !important;
  box-shadow: 0 9px 21px rgba(30,120,139,.13) !important;
}
body main.dashboard-course-overview-page .dashboard-overview-top h2,
body main.dashboard-course-overview-page .dashboard-shortcuts-head h2,
body main.dashboard-course-overview-page .dashboard-shortcut strong {
  color: #183b59 !important;
}
/* Progress-Elemente auf dem Dashboard: Farbverlauf wie Login-Aktion. */
body main.dashboard-course-overview-page progress::-webkit-progress-value {
  background: linear-gradient(90deg, #1c6ab3, #39c3b4) !important;
}
body main.dashboard-course-overview-page progress::-moz-progress-bar {
  background: linear-gradient(90deg, #1c6ab3, #39c3b4) !important;
}
