@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
    --auf-green-dark: #0d5a2b;
    --auf-green: #176c33;
    --auf-gold: #f5a200;
    --auf-sand: #fce8c4;
    --auf-bg: #f0efea;
    --auf-line: #e3e2dc;
    --auf-line-strong: #d0d5d0;
    --auf-text: #222222;
    --auf-muted: #5a5a5a;
    --auf-soft-muted: #7a7a7a;
    --auf-danger: #c0392b;
    --auf-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--auf-bg);
    color: var(--auf-text);
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

input,
select,
button,
textarea {
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
}

::placeholder {
    color: #9a9a9a;
}

a {
    color: var(--auf-green);
}

.auf-shell {
    min-height: 100vh;
    background: var(--auf-bg);
}

.auf-accent-bar {
    height: 5px;
    background: var(--auf-gold);
}

.auf-topbar {
    background: var(--auf-green-dark);
    color: var(--auf-white);
}

.auf-topbar__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auf-brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.auf-brand__title {
    font-size: 19px;
    font-weight: 700;
}

.auf-brand__subtitle,
.auf-topbar__link {
    font-size: 14px;
    color: #bfe0c8;
}

.auf-topbar__link {
    text-decoration: none;
    border-bottom: 1px solid rgba(191, 224, 200, 0.5);
}

.auf-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px;
}

.auf-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--auf-line);
    margin-bottom: 26px;
}

.auf-tab {
    display: inline-block;
    padding: 12px 20px;
    margin-bottom: -2px;
    border-bottom: 3px solid transparent;
    color: var(--auf-green);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.auf-tab--active {
    border-bottom-color: var(--auf-gold);
    color: var(--auf-green-dark);
}

.page-title {
    margin: 0 0 4px;
    color: var(--auf-green-dark);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.page-subtitle {
    margin: 0 0 22px;
    color: var(--auf-muted);
    font-size: 15px;
}

.toolbar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--auf-white);
    border: 1px solid var(--auf-line);
    border-radius: 6px;
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.field--wide {
    flex: 1;
    min-width: 240px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--auf-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-control,
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--auf-line-strong);
    border-radius: 4px;
    background: var(--auf-white);
    color: var(--auf-text);
    font-size: 14px;
    outline: none;
}

.form-control:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--auf-green);
    box-shadow: 0 0 0 3px rgba(23, 108, 51, 0.12);
}

.btn,
input[type="submit"].btn,
input[type="button"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 18px;
    border: 1.5px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.btn-primary {
    background: var(--auf-gold);
    color: var(--auf-white);
}

.btn-secondary,
.btn-success {
    background: var(--auf-green);
    color: var(--auf-white);
}

.btn-default,
.btn-outline {
    background: var(--auf-white);
    border-color: var(--auf-green);
    color: var(--auf-green);
}

.btn-danger {
    background: var(--auf-danger);
    color: var(--auf-white);
}

.btn-xs {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 13px;
}

.summary {
    display: block;
    margin: 18px 0;
    padding: 14px 16px;
    background: #fff4e5;
    border: 2px solid #b85c00;
    border-left-width: 6px;
    border-radius: 6px;
    color: #5c2d00;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.summary:empty {
    display: none;
}

.grid-wrap {
    overflow-x: auto;
    background: var(--auf-white);
    border: 1px solid var(--auf-line);
    border-radius: 6px;
}

.table {
    width: 100%;
    min-width: 1020px;
    border-collapse: collapse;
    background: var(--auf-white);
}

.table th {
    padding: 12px 12px;
    background: var(--auf-green-dark);
    color: var(--auf-white);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.table th a {
    color: var(--auf-white);
    text-decoration: underline;
}

.table td {
    padding: 12px;
    border-top: 1px solid #eeece6;
    color: #444444;
    font-size: 14px;
    vertical-align: top;
}

.table tr:nth-child(even) td {
    background: #fbfaf6;
}

.table td:first-child {
    color: #15602e;
    font-weight: 600;
}

.action-cell {
    min-width: 190px;
    white-space: nowrap;
}

.edit-panel {
    margin-top: 22px;
    padding: 24px;
    background: var(--auf-white);
    border: 1px solid var(--auf-line);
    border-radius: 6px;
}

.edit-panel h3 {
    margin: 0 0 18px;
    color: var(--auf-green-dark);
    font-size: 20px;
}

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

.edit-grid .field {
    min-width: 0;
}

.edit-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 22px;
}

.notice {
    padding: 18px 22px;
    background: var(--auf-sand);
    border-radius: 6px;
    color: #5a4a22;
}

@media (max-width: 760px) {
    .auf-topbar__inner,
    .auf-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .toolbar {
        align-items: stretch;
    }

    .field,
    .field--wide {
        width: 100%;
        min-width: 0;
    }

    .edit-grid {
        grid-template-columns: 1fr;
    }
}

.module-list {
    background: var(--auf-white);
    border: 1px solid var(--auf-line);
    border-radius: 6px;
    overflow: hidden;
}

.module-block + .module-block {
    border-top: 1px solid var(--auf-line);
}

.module-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--auf-white);
    color: #15602e;
    font-weight: 700;
}

.module-toggle:hover {
    background: #fbfaf6;
}

.module-toggle__meta {
    color: var(--auf-soft-muted);
    font-size: 13px;
    font-weight: 400;
}

.module-toggle__icon {
    display: inline-block;
    width: 1.2em;
    color: var(--auf-gold);
    text-align: center;
    font-weight: 700;
}

.module-body {
    display: none;
    background: var(--auf-white);
    border-top: 1px solid #eeece6;
}

.module-body.is-open {
    display: block;
}

.module-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
}

.module-table th {
    padding: 10px 12px;
    background: #f6f5f0;
    color: var(--auf-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.module-table td {
    padding: 11px 12px;
    border-top: 1px solid #f2f1ea;
    color: #444444;
    font-size: 14px;
    vertical-align: top;
}

.module-empty {
    padding: 30px;
    color: #9a9a9a;
    text-align: center;
}
.module-group-row {
    background: #e8f0e5;
    color: #004b24;
    font-weight: 700;
    border-top: 2px solid var(--auf-green-dark);
}

.module-group-row span {
    display: inline-block;
    margin-left: 16px;
    color: #3d4a3d;
    font-weight: 600;
}

.module-group-row em {
    float: right;
    color: #004b24;
    font-style: normal;
    font-weight: 700;
}
.admin-page--enrollments .table {
    min-width: 0;
    table-layout: fixed;
}

.admin-page--enrollments .table th,
.admin-page--enrollments .table td {
    padding: 10px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.admin-page--enrollments .table th:nth-child(1),
.admin-page--enrollments .table td:nth-child(1) {
    width: 17%;
}

.admin-page--enrollments .table th:nth-child(2),
.admin-page--enrollments .table td:nth-child(2) {
    width: 13%;
}

.admin-page--enrollments .table th:nth-child(3),
.admin-page--enrollments .table td:nth-child(3) {
    width: 11%;
}

.admin-page--enrollments .table th:nth-child(4),
.admin-page--enrollments .table td:nth-child(4) {
    width: 18%;
}

.admin-page--enrollments .table th:nth-child(5),
.admin-page--enrollments .table td:nth-child(5) {
    width: 17%;
}

.admin-page--enrollments .table th:nth-child(6),
.admin-page--enrollments .table td:nth-child(6) {
    width: 12%;
}

.admin-page--enrollments .action-cell {
    width: 112px;
    min-width: 112px;
    text-align: center;
}

.admin-page--enrollments .action-cell .btn-xs {
    min-width: 88px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Enrollment admin page */
.verwaltung-dashboard .page-title { font-size: 26px; font-weight: 700; color: #0d5a2b; margin: 0 0 4px; }
.verwaltung-dashboard .page-subtitle { font-size: 15px; color: #5a5a5a; margin: 0 0 22px; }
.verwaltung-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.verwaltung-kpi { background: #fff; border: 1px solid #e3e2dc; border-radius: 6px; padding: 18px 22px; }
.verwaltung-kpi__value { font-size: 32px; font-weight: 700; line-height: 1; color: #0d5a2b; }
.verwaltung-kpi__value--ok { color: #176c33; }
.verwaltung-kpi__value--warn { color: #c0392b; }
.verwaltung-kpi__label { font-size: 13px; color: #5a5a5a; margin-top: 6px; }
.verwaltung-toolbar { background: #fff; border: 1px solid #e3e2dc; border-radius: 6px; padding: 16px 20px; margin-bottom: 20px; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.verwaltung-toolbar .field { flex: 1; min-width: 200px; }
.verwaltung-toolbar .field--sort { flex: 0 0 220px; }
.verwaltung-toolbar label { display: block; font-size: 12px; font-weight: 700; color: #5a5a5a; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.verwaltung-toolbar .form-control { width: 100%; padding: 10px 12px; font-size: 14px; border: 1.5px solid #d0d5d0; border-radius: 4px; outline: none; }
.verwaltung-toolbar .btn { min-height: 41px; }
.verwaltung-summary-line { font-size: 14px; font-weight: 700; color: #444; margin-bottom: 12px; }
.verwaltung-module-card { background: #fff; border: 1px solid #e3e2dc; border-left: 4px solid #176c33; border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.verwaltung-module-card--below { border-left-color: #c0392b; }
.verwaltung-module-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; }
.verwaltung-module-caret { font-size: 14px; color: #9a9a9a; width: 14px; }
.verwaltung-module-main { flex: 1; min-width: 0; }
.verwaltung-module-name { font-size: 16px; font-weight: 700; color: #15602e; line-height: 1.35; }
.verwaltung-module-meta { font-size: 13px; color: #7a7a7a; margin-top: 2px; }
.verwaltung-module-state { font-size: 12px; font-weight: 700; color: #c0392b; background: #fbe4e1; padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.verwaltung-module-badge { font-size: 13px; font-weight: 700; color: #fff; background: #176c33; padding: 6px 14px; border-radius: 20px; min-width: 108px; text-align: center; white-space: nowrap; }
.verwaltung-module-badge--below { background: #c0392b; }
.verwaltung-module-body { display: none; border-top: 1px solid #eeece6; }
.verwaltung-module-body.is-open { display: block; }
.verwaltung-student-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr 1.4fr 96px; }
.verwaltung-student-head { background: #f6f5f0; font-size: 12px; font-weight: 700; color: #5a5a5a; text-transform: uppercase; letter-spacing: .04em; }
.verwaltung-student-head div { padding: 10px 8px; }
.verwaltung-student-head div:first-child { padding-left: 20px; }
.verwaltung-student-row { border-top: 1px solid #f2f1ea; font-size: 14px; }
.verwaltung-student-row div { padding: 11px 8px; color: #444; min-width: 0; overflow-wrap: anywhere; }
.verwaltung-student-row div:first-child { padding-left: 20px; font-weight: 600; color: #222; }
.verwaltung-empty { background: #fff; border: 1px solid #e3e2dc; border-radius: 6px; padding: 30px; text-align: center; font-size: 15px; color: #9a9a9a; }
@media (max-width: 800px) {
    .verwaltung-kpis { grid-template-columns: 1fr; }
    .verwaltung-module-head { align-items: flex-start; flex-wrap: wrap; }
    .verwaltung-student-grid { grid-template-columns: 1fr; }
    .verwaltung-student-head { display: none; }
    .verwaltung-student-row div { padding-left: 20px; }
}
/* Module admin page */
.module-admin .toolbar { align-items: flex-end; }
.module-admin .toolbar-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.module-admin .module-summary { display: block; margin: 0 0 12px; color: #444; font-size: 14px; font-weight: 700; }
.module-admin .grid-wrap { max-width: 100%; overflow-x: auto; }
.module-admin .table { width: 100%; min-width: 1080px; table-layout: fixed; }
.module-admin .table th { padding: 12px 7px; font-size: 12px; }
.module-admin .table td { padding: 12px 7px; font-size: 13px; overflow-wrap: anywhere; vertical-align: middle; }
.module-admin .table th:nth-child(1), .module-admin .table td:nth-child(1) { width: 17%; padding-left: 16px; }
.module-admin .table th:nth-child(2), .module-admin .table td:nth-child(2) { width: 8%; }
.module-admin .table th:nth-child(3), .module-admin .table td:nth-child(3) { width: 7%; }
.module-admin .table th:nth-child(4), .module-admin .table td:nth-child(4) { width: 4%; text-align: center; }
.module-admin .table th:nth-child(5), .module-admin .table td:nth-child(5) { width: 6%; }
.module-admin .table th:nth-child(6), .module-admin .table td:nth-child(6) { width: 7%; }
.module-admin .table th:nth-child(7), .module-admin .table td:nth-child(7) { width: 5%; text-align: center; }
.module-admin .table th:nth-child(8), .module-admin .table td:nth-child(8) { width: 11%; }
.module-admin .table th:nth-child(9), .module-admin .table td:nth-child(9) { width: 6%; text-align: center; }
.module-admin .table th:nth-child(10), .module-admin .table td:nth-child(10) { width: 5%; }
.module-admin .table th:nth-child(11), .module-admin .table td:nth-child(11) { width: 7%; text-align: center; }
.module-admin .table th:nth-child(12), .module-admin .table td:nth-child(12) { width: 6%; text-align: center; }
.module-admin .table th:nth-child(13), .module-admin .table td:nth-child(13) { width: 11%; }
.module-admin .count-cell { color: #176c33; font-weight: 700; font-variant-numeric: tabular-nums; }
.module-admin .action-cell { min-width: 0; white-space: normal; }
.module-admin .action-cell .btn { width: 100%; margin: 0 0 6px; padding-left: 8px; padding-right: 8px; }
.module-admin .action-cell .btn:last-child { margin-bottom: 0; }
.module-admin .edit-panel { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; margin: 0; padding: 48px 20px; overflow-y: auto; background: rgba(13, 40, 22, .45); border: 0; border-radius: 0; }
.module-admin .edit-dialog { width: 100%; max-width: 680px; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.module-admin .edit-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; background: #0d5a2b; color: #fff; }
.module-admin .edit-dialog__head h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; }
.module-admin .edit-dialog__body { padding: 26px; }
.module-admin .edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-admin .edit-grid .field:first-child { grid-column: span 2; }
.module-admin .module-status-field {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid #d8dfda;
    border-left: 4px solid var(--auf-green);
    border-radius: 6px;
    background: #f5f8f5;
}
.module-admin .module-status-check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.module-admin .module-status-check input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--auf-green);
    cursor: pointer;
}
.module-admin .module-status-check label {
    margin: 0;
    color: #263b2d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.module-admin .module-status-hint {
    display: block;
    margin: 5px 0 0 29px;
    color: #66736a;
    font-size: 12.5px;
    line-height: 1.4;
}
.module-admin .edit-actions { align-items: center; justify-content: flex-end; }
@media (max-width: 760px) {
    .module-admin .table { min-width: 1080px; }
    .module-admin .edit-grid { grid-template-columns: 1fr; }
    .module-admin .edit-grid .field:first-child { grid-column: auto; }
    .module-admin .module-status-field { grid-column: 1; }
        }

.selection-summary {
    display: block;
    margin: 0 0 14px;
    padding: 11px 14px;
    border-left: 4px solid var(--auf-green);
    border-radius: 4px;
    background: #eef6f0;
    color: var(--auf-text);
    font-size: 14px;
    font-weight: 600;
}