body{
    margin:0;
    font-family:'Montserrat', sans-serif;
    background:#ffffff;
       font-size:24px;
    font-weight:500;
    line-height:1.5;
}

.container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:25px;
}

.logo{
      width:180px;
    margin-top:20px;
    margin-bottom:5px;
}

p{
     color:#c62828;
    font-family:'Montserrat', sans-serif;
    font-size:24px;
    font-weight:700;
    line-height:1.5;
    text-align:center;
    margin:0;
}

.card{
    background:rgba(255,255,255,.75);
    padding:30px;
    border-radius:22px;
    box-shadow:0 15px 40px rgba(0,0,0,.18);
    width:650px;
    text-align:center;
}

.login-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.login-card{
    background:rgba(198,40,40,.08);
    border:2px solid rgba(198,40,40,.35);
    border-radius:15px;
    color:#c62828;
    font-size:20px;
    font-weight:bold;
    padding:16px;
    cursor:pointer;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    transition:.25s;
}

.login-card:hover{
    background:rgba(198,40,40,.18);
    transform:translateY(-3px);
}

.admin{
    grid-column:1 / 3;
    width:260px;
    justify-self:center;
}

.icon{
    font-size:28px;
}

@media (max-width: 768px){

    .card{
        width:90%;
        padding:20px;
    }

    .login-grid{
        grid-template-columns:1fr;
    }

    .admin{
        grid-column:auto;
        width:100%;
    }

    .login-card{
        width:100%;
        box-sizing:border-box;
    }

    .logo{
        width:150px;
        margin-top:20px;
    }

    p{
        font-size:18px;
    }
}
    
/* ===== Login-Modal ===== */

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.hidden{
    display:none;
}

.modal-box{
    width:420px;
    background:white;
    border-radius:20px;
    padding:35px;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    display:flex;
    flex-direction:column;
    gap:15px;
}

.modal-box h2{
    margin:0;
    color:#c62828;
    text-align:center;
}

.modal-box input{
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:17px;
}

.modal-button{
    background:#c62828;
    color:white;
    border:none;
    padding:14px;
    border-radius:10px;
    font-size:17px;
    cursor:pointer;
}

.modal-button:hover{
    background:#a71f1f;
}

.modal-close{
    background:#eee;
    border:none;
    padding:14px;
    border-radius:10px;
    cursor:pointer;
}

#loginMessage{
    color:#c62828;
    text-align:center;
    min-height:20px;
}
/* ===== Dashboard ===== */

.dashboard-layout{
    min-height:100vh;
    display:flex;
    background:#f8fafc;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{

    width:270px;
    min-width:270px;

    background:#ffffff;

    display:flex;
    flex-direction:column;

    padding:26px 20px;

    box-shadow:
        6px 0 24px rgba(0,0,0,.08);

    overflow-y:auto;

}


.sidebar-logo{

    width:115px;

    margin:0 auto 25px;

    display:block;

}


.sidebar nav{

    display:flex;

    flex-direction:column;

}


.sidebar-section-title{

    margin:26px 0 10px;

    padding-bottom:8px;

    color:#c62828;

    font-size:12px;

    font-weight:800;

    letter-spacing:1.3px;

    text-transform:uppercase;

    border-bottom:1px solid rgba(198,40,40,.25);

}


.sidebar-link{

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 14px;

    margin-bottom:4px;

    border-radius:10px;

    color:#404040;

    text-decoration:none;

    font-size:15px;

    font-weight:600;

    transition:.18s;

}


.sidebar-link:hover{

    background:rgba(198,40,40,.08);

    color:#c62828;

}


.sidebar-link.active{

    background:rgba(198,40,40,.12);

    color:#c62828;

    font-weight:700;

}


.sidebar-link-icon{

    width:22px;

    text-align:center;

    font-size:18px;

    flex-shrink:0;

}


.sidebar-user{

    margin-top:auto;

    padding-top:22px;

    border-top:1px solid #e6e6e6;

}


.sidebar-user strong{

    display:block;

    color:#222;

    font-size:15px;

    margin-bottom:4px;

}


.sidebar-user span{

    color:#777;

    font-size:13px;

    font-weight:600;

}


.logout-button{

    margin-top:18px;

    width:100%;

}

.dashboard-main{
    flex:1;
    padding:50px;
}

.dashboard-main h1{
    color:#c62828;
    margin-bottom:5px;
}

.dashboard-subtitle{
    text-align:left;
    font-size:20px;
    margin-bottom:35px;
}

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:25px;
}

.dashboard-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.dashboard-card h2{
    color:#c62828;
}
/* ===== Benutzerverwaltung ===== */

.user-action-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
    margin:30px 0 40px 0;
}

.user-action-card{
    background:rgba(198,40,40,.08);
    border:2px solid rgba(198,40,40,.35);
    border-radius:18px;
    padding:25px;
    color:#c62828;
    font-size:20px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

.user-action-card:hover{
    background:rgba(198,40,40,.18);
    transform:translateY(-3px);
}

.user-overview{
    margin-top:20px;
}
/* ===== Zentrale Anmeldung ===== */

.login-heading{
    color:#c62828;
    margin-top:0;
    margin-bottom:20px;
}

.login-input{
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:17px;
    margin-bottom:15px;
    width:100%;
    box-sizing:border-box;
    font-family:'Montserrat', sans-serif;
}
/* ===== Tabellen & Verwaltung ===== */

.toolbar{
    display:flex;
    gap:15px;
    align-items:center;
    margin:30px 0;
}

.search-input,
.filter-select{
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:16px;
    font-family:'Montserrat', sans-serif;
}

.search-input{
    flex:1;
}

.primary-button{
    background:#c62828;
    color:white;
    border:none;
    border-radius:12px;
    padding:14px 22px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.primary-button:hover{
    background:#a71f1f;
}

.table-card{
    background:white;
    border-radius:20px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    overflow:hidden;
}

.data-table{
    width:100%;
    border-collapse:collapse;
}

.data-table th{
    text-align:left;
    background:#f8fafc;
    color:#c62828;
    padding:18px;
    font-size:15px;
}

.data-table td{
    padding:18px;
    border-top:1px solid #eee;
    font-size:15px;
}

.status-active{
    background:rgba(34,197,94,.12);
    color:#16a34a;
    padding:6px 12px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
}
/* ===== Benutzerkarten ===== */

.user-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
    gap:20px;
}

.user-card{
    background:#ffffff;
    border-radius:18px;
    padding:22px;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    gap:18px;
    transition:.2s;
}

.user-card:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 34px rgba(0,0,0,.12);
}

.user-avatar{
    width:58px;
    height:58px;
    min-width:58px;
    border-radius:50%;
    background:rgba(198,40,40,.12);
    color:#c62828;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    font-weight:800;
}

.user-content{
    flex:1;
}

.user-content h3{
    margin:0 0 5px 0;
    color:#222;
    font-size:19px;
}

.user-content p{
    margin:0 0 12px 0;
    color:#666;
    font-size:14px;
    font-weight:500;
    text-align:left;
    word-break:break-word;
}

.user-role{
    display:inline-block;
    background:rgba(37,99,235,.10);
    color:#2563eb;
    padding:5px 10px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-right:6px;
}

.user-card .status-active{
    display:inline-block;
    padding:5px 10px;
    font-size:13px;
}

.user-actions{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.user-actions button{
    width:38px;
    height:38px;
    border:none;
    border-radius:10px;
    background:#f3f4f6;
    cursor:pointer;
    font-size:16px;
    transition:.2s;
}

.user-actions button:hover{
    background:rgba(198,40,40,.12);
    transform:scale(1.05);
}

@media (max-width:768px){

    .toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .user-cards{
        grid-template-columns:1fr;
    }

    .user-card{
        align-items:flex-start;
    }
}
/* =========================================================
   DELETE MODAL
========================================================= */

.delete-modal-box{

    max-width:500px;
    text-align:center;

}

.delete-warning{

    color:#222;
    font-size:20px;
    font-weight:600;
    margin:20px 0 10px;

}

.delete-hint{

    color:#777;
    font-size:16px;
    margin-bottom:30px;

}

.modal-actions{

    display:flex;
    justify-content:flex-end;
    gap:15px;

}

.danger-button{

    background:#c62828;
    color:white;
    border:none;
    border-radius:12px;
    padding:14px 28px;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;

}

.danger-button:hover{

    background:#a51f1f;

}/* =========================================================
   PASSWORT VERGESSEN
========================================================= */

.forgot-password-button {

    background: transparent;

    border: none;

    color: var(--primary-color);

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    margin-top: -6px;

    margin-bottom: 18px;

    align-self: flex-end;

    transition: opacity .2s;

}

.forgot-password-button:hover {

    opacity: .7;

}/* =========================================================
   BENUTZERKONTO-MODAL
========================================================= */

.access-modal-box {

    max-width: 520px;

}

.access-user-header {

    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 24px;

}

.access-user-header h3 {

    margin: 0 0 6px 0;

    color: #222;

}

.access-user-header p {

    margin: 0;

    color: #666;

    font-size: 15px;
    font-weight: 500;
    text-align: left;

}

.access-status-card {

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #f5f7fa;

    border-radius: 14px;

    padding: 18px;

    margin-bottom: 22px;

}

.access-status-card span {

    color: #666;

    font-size: 15px;

}

.access-status-card strong {

    color: #c62828;

    font-size: 15px;

}

.access-description {

    color: #555;

    font-size: 16px;
    font-weight: 500;
    text-align: left;

    margin-bottom: 18px;

}

#accessWithoutLogin:not(.hidden),
#accessWithLogin:not(.hidden) {

    display: flex;
    flex-direction: column;
    gap: 14px;

}

#accessUserMessage {

    min-height: 22px;

    color: #c62828;

    font-size: 15px;
    font-weight: 600;
    text-align: center;

}/* =========================================================
   SCROLLBARE MODALS
========================================================= */

.modal {

    overflow-y: auto;
    padding: 30px 15px;

}

.modal-box {

    max-height: calc(100vh - 60px);
    overflow-y: auto;

}

.access-modal-box {

    margin: auto;

}/* =========================================================
   MODAL-KORREKTUR
========================================================= */

/* Versteckte Bereiche müssen wirklich unsichtbar bleiben */
.modal .hidden {
    display: none !important;
}

/* Modal auf kleinen Bildschirmen scrollbar machen */
.modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 30px 15px;
    box-sizing: border-box;
}

.modal-box {
    width: min(520px, 100%);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    margin: auto;
    box-sizing: border-box;
}

/* Nur der jeweils aktive Zugangsbereich wird als Flexbox angezeigt */
#accessWithoutLogin:not(.hidden),
#accessWithLogin:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =========================================================
   KLASSENVERWALTUNG
========================================================= */

.toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.search-input,
.filter-select {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 15px;
}

.search-input {
    flex: 1;
    min-width: 220px;
}

.filter-select {
    min-width: 170px;
}

.primary-button {
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #1d5f74;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.primary-button:hover {
    opacity: 0.9;
}


/* =========================================================
   KLASSENKARTEN
========================================================= */

.class-cards {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(310px, 1fr)
    );
    gap: 20px;
}

.class-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 58px;
    column-gap: 24px;
    align-items: start;

    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.class-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: #e9f2f5;
    font-size: 26px;
}

.class-card-content {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.class-card-content h3 {
    margin: 0 0 16px;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.class-card-details {
    display: grid !important;
    grid-template-columns:
        minmax(110px, 1.3fr)
        minmax(70px, 0.7fr)
        minmax(80px, 0.8fr);

    column-gap: 22px;
    width: 100%;
    margin-top: 10px;

    visibility: visible !important;
    opacity: 1 !important;
}

.class-card-details div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.class-card-details span {
    color: #6b7280;
    font-size: 13px;
}

.class-card-details strong {
    color: #222222;
    font-size: 14px;
}

.class-status-active {
    color: #18794e !important;
}

.class-status-inactive {
    color: #b42318 !important;
}

.class-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    width: 58px;
    min-width: 58px;
}

.class-card-actions button {
    width: 38px;
    height: 38px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.class-card-actions button:hover {
    background-color: #f1f4f6;
}


/* =========================================================
   KLASSENMODALS
========================================================= */

.class-modal-box,
.assign-students-modal-box,
.delete-modal-box {
    width: min(92vw, 520px);
}

.class-modal-box label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}

.class-modal-box input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
}

#classFormMessage,
#assignStudentsMessage {
    min-height: 22px;
    margin: 12px 0;
    color: #b42318;
}


/* =========================================================
   SCHÜLERZUORDNUNG
========================================================= */

.student-assignment-list {
    max-height: 420px;
    margin: 18px 0;
    overflow-y: auto;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
}

.student-assignment-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 13px 14px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}

.student-assignment-item:last-child {
    border-bottom: none;
}

.student-assignment-item:hover {
    background-color: #f7f9fa;
}

.student-assignment-item input {
    grid-row: 1 / span 2;
    width: 18px;
    height: 18px;
}

.student-assignment-item span {
    font-weight: 600;
}

.student-assignment-item small {
    color: #7a828a;
}

.student-assignment-item:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.65;
}


/* =========================================================
   LÖSCHMODAL
========================================================= */

.delete-warning {
    font-weight: 600;
}

.delete-hint {
    color: #6b7280;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.danger-button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #b42318;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.danger-button:hover {
    background-color: #921d14;
}


/* =========================================================
   MOBILE DARSTELLUNG
========================================================= */

@media (max-width: 700px) {

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-input,
    .filter-select,
    .primary-button {
        width: 100%;
    }

    .class-card {
        flex-wrap: wrap;
    }

    .class-card-actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
    }

}

/* =========================================================
   KLASSENKARTEN – FINALE ANORDNUNG
========================================================= */

.class-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 58px;
    column-gap: 24px;
    align-items: start;
}

.class-card-content {
    min-width: 0;
    padding: 0;
}

.class-card-content h3 {
    margin: 4px 0 24px;
    color: #000000;
}

.class-card-details {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 40px;
    row-gap: 14px;
    justify-content: start;
    width: 100%;
    min-width: 0;
}

.class-card-details > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Status kommt in eine eigene Zeile */
.class-card-details > div:nth-child(3) {
    grid-column: 1 / -1;
}

.class-card-details span {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.class-card-details strong {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: normal;
    word-break: normal;
}

.class-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 58px;
    min-width: 58px;
}

/* =========================================================
   RÄUMEKARTEN
========================================================= */

.room-card-description {

    margin: 14px 0 0;

    color: #5f6670;

    font-size: 0.95rem;

    line-height: 1.5;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

}
/* =========================================================
   RAUMKARTEN – FINALE ANORDNUNG
========================================================= */

.room-card {

    align-items: flex-start;

}


.room-card-content {

    min-width: 0;

    flex: 1;

}


.room-card-content h3 {

    margin-top: 8px;

    margin-bottom: 24px;

}


.room-card-information {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.room-information-row {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 1rem;

    font-weight: 600;

    color: #222;

}


.room-information-icon {

    display: inline-flex;

    justify-content: center;

    width: 24px;

    flex-shrink: 0;

}


.room-card-description {

    margin: 22px 0 18px;

    padding-top: 16px;

    border-top: 1px solid #e2e7eb;

    color: #5f6670;

    font-size: 0.95rem;

    line-height: 1.5;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

}


.room-card-description-empty {

    color: #9299a1;

    font-style: italic;

}


.room-status {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 0.85rem;

    font-weight: 700;

}


.room-status-active {

    color: #17633c;

    background: #dff4e8;

}


.room-status-inactive {

    color: #8a3a3a;

    background: #f8e3e3;

}


@media (max-width: 700px) {

    .room-card-content h3 {

        margin-top: 0;

    }

}
/* =========================================================
   FÄCHERVERWALTUNG
========================================================= */

.subject-section {

    margin-bottom: 50px;

}


.subject-section-header {

    margin-bottom: 18px;

}


.subject-section-header h2 {

    margin-bottom: 4px;

}


.subject-section-description {

    color: #666;
    font-size: 0.95rem;

}


.subject-cards {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(420px, 1fr)
        );

    gap: 18px;

    margin-top: 20px;

}


.subject-card {

    display: flex;

    align-items: flex-start;

    gap: 18px;

    background: white;

    border-radius: 14px;

    padding: 20px;

    box-shadow:
        0 6px 20px rgba(0,0,0,0.08);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.subject-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 28px rgba(0,0,0,.14);

}


.subject-card-icon {

    font-size: 34px;

    flex-shrink: 0;

}


.subject-card-content {

    flex: 1;

}


.subject-card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 14px;

}


.subject-card-heading h3 {

    margin: 0;

    font-size: 1.15rem;

}


.subject-card-short-name {

    margin-top: 4px;

    color: #666;

    font-size: .92rem;

}


.subject-status {

    padding: 5px 12px;

    border-radius: 999px;

    font-size: .8rem;

    font-weight: 600;

    white-space: nowrap;

}


.subject-status-active {

    background: #dff7e5;

    color: #157347;

}


.subject-status-inactive {

    background: #ffe4e4;

    color: #b02a37;

}


.subject-card-information {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 14px;

}


.subject-information-row {

    display: flex;

    align-items: center;

    gap: 10px;

}


.subject-information-icon {

    width: 22px;

    text-align: center;

    font-size: 17px;

}


.subject-information-content {

    display: flex;

    flex-direction: column;

}


.subject-information-label {

    font-size: .78rem;

    color: #777;

}


.subject-information-value {

    font-size: .95rem;

}


.subject-card-description {

    margin: 0;

    color: #444;

    line-height: 1.5;

}


.subject-card-description-empty {

    color: #999;

    font-style: italic;

}


.subject-card-actions {

    display: flex;

    flex-direction: column;

    gap: 10px;

    flex-shrink: 0;

}


.subject-action-button {

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 10px;

    cursor: pointer;

    font-size: 18px;

    transition:
        transform .15s,
        background .15s;

}


.subject-action-button:hover {

    transform: scale(1.08);

}


.subject-action-edit {

    background: #eef4ff;

}


.subject-action-edit:hover {

    background: #d9e7ff;

}


.subject-action-activate {

    background: #dff7e5;

}


.subject-action-activate:hover {

    background: #c6f0d1;

}


.subject-action-deactivate {

    background: #fff5d8;

}


.subject-action-deactivate:hover {

    background: #ffe9a8;

}


.subject-action-delete {

    background: #ffe2e2;

}


.subject-action-delete:hover {

    background: #ffc9c9;

}


.subject-empty-message {

    padding: 30px;

    background: white;

    border-radius: 12px;

    text-align: center;

    color: #666;

}


.topic-area-section {

    margin-top: 60px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .subject-cards {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 650px) {

    .subject-card {

        flex-direction: column;

    }

    .subject-card-actions {

        flex-direction: row;

        justify-content: flex-end;

        width: 100%;

    }

}
/* =========================================================
   UNTERRICHTSPLANUNG – GRUNDLAYOUT
========================================================= */

:root {

    --lesson-zoom: 1;

}


.lesson-main {

    min-width: 0;

}


.lesson-page-header {

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;

    margin-bottom: 28px;

}


.lesson-page-header h1 {

    margin-top: 0;

}


.sidebar-active {

    background: rgba(198, 40, 40, 0.1);

}


/* =========================================================
   UNTERRICHTSPLANUNG – KALENDERNAVIGATION
========================================================= */

.lesson-navigation {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;

    margin-bottom: 24px;
    padding: 18px 20px;

    background: #ffffff;

    border: 1px solid #e1e5e9;
    border-radius: 14px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);

}


.lesson-date-navigation {

    display: flex;
    align-items: center;
    gap: 10px;

}


.lesson-navigation-button,
.lesson-zoom-button {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid #d9dee3;
    border-radius: 9px;

    background: #ffffff;

    color: #1f2933;

    font-size: 24px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;

}


.lesson-navigation-button:hover,
.lesson-zoom-button:hover {

    background: #f1f4f6;

    transform: translateY(-1px);

}


.lesson-today-button {

    min-height: 42px;

    padding: 9px 16px;

    border: 1px solid #d9dee3;
    border-radius: 9px;

    background: #ffffff;

    color: #1f2933;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

}


.lesson-today-button:hover {

    background: #f1f4f6;

}


.lesson-current-period {

    display: flex;
    flex-direction: column;

    min-width: 210px;
    margin-left: 8px;

}


.lesson-current-period strong {

    color: #1f2933;

    font-size: 17px;

}


.lesson-current-period span {

    color: #6b7280;

    font-size: 13px;

}


/* =========================================================
   UNTERRICHTSPLANUNG – ANSICHTSAUSWAHL
========================================================= */

.lesson-view-switch {

    display: flex;
    align-items: center;

    padding: 4px;

    background: #eef2f4;

    border-radius: 10px;

}


.lesson-view-button {

    min-height: 38px;

    padding: 8px 14px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #4b5563;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;

}


.lesson-view-button:hover {

    background: rgba(255, 255, 255, 0.7);

}


.lesson-view-button.active {

    background: #ffffff;

    color: #1d5f74;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.1);

}


/* =========================================================
   UNTERRICHTSPLANUNG – ZOOM
========================================================= */

.lesson-zoom-controls {

    display: flex;
    align-items: center;
    gap: 10px;

}


.lesson-zoom-controls span {

    min-width: 58px;

    color: #4b5563;

    font-size: 13px;
    font-weight: 700;

    text-align: center;

}


/* =========================================================
   UNTERRICHTSPLANUNG – FILTER
========================================================= */

.lesson-filter-section {

    margin-bottom: 24px;
    padding: 22px;

    background: #ffffff;

    border: 1px solid #e1e5e9;
    border-radius: 14px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);

}


.lesson-filter-header {

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 20px;

}


.lesson-filter-header h2 {

    margin: 0 0 5px;

    color: #1f2933;

    font-size: 20px;

}


.lesson-filter-header p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;
    font-weight: 500;

    text-align: left;

}


.secondary-button {

    min-height: 42px;

    padding: 9px 16px;

    border: 1px solid #d5dbe0;
    border-radius: 8px;

    background: #ffffff;

    color: #4b5563;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

}


.secondary-button:hover {

    background: #f3f5f7;

}


.lesson-filter-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(180px, 1fr)
        );

    gap: 16px;

}


.lesson-filter-field {

    display: flex;
    flex-direction: column;
    gap: 6px;

    min-width: 0;

}


.lesson-filter-field label {

    color: #374151;

    font-size: 13px;
    font-weight: 700;

}


.lesson-filter-field .search-input,
.lesson-filter-field .filter-select {

    width: 100%;
    min-width: 0;

    box-sizing: border-box;

}


.lesson-filter-search {

    grid-column: span 2;

}


/* =========================================================
   UNTERRICHTSPLANUNG – LEGENDE
========================================================= */

.lesson-legend {

    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    margin-bottom: 20px;
    padding: 12px 16px;

    background: #ffffff;

    border: 1px solid #e1e5e9;
    border-radius: 12px;

}


.lesson-legend-title {

    color: #374151;

    font-size: 13px;
    font-weight: 800;

}


.lesson-legend-item {

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #5b6470;

    font-size: 13px;
    font-weight: 600;

}


.lesson-legend-color {

    display: inline-block;

    width: 13px;
    height: 13px;

    border-radius: 4px;

}


.lesson-color-draft {

    background: #64748b;

}


.lesson-color-planned {

    background: #d97706;

}


.lesson-color-published {

    background: #1d5f74;

}


.lesson-color-completed {

    background: #17834b;

}


.lesson-color-cancelled {

    background: #b42318;

}


/* =========================================================
   UNTERRICHTSPLANUNG – ARBEITSBEREICH
========================================================= */

.lesson-workspace {

    position: relative;

    min-width: 0;

}


.lesson-loading-message {

    margin-bottom: 18px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e1e5e9;
    border-radius: 12px;

    color: #5b6470;

    font-size: 15px;
    font-weight: 600;

    text-align: center;

}


.lesson-view {

    min-width: 0;

}


.lesson-calendar-view {

    min-width: 0;

}


/* =========================================================
   UNTERRICHTSPLANUNG – LISTENANSICHT
========================================================= */

.lesson-cards {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(520px, 1fr)
        );

    gap: 18px;

}


.lesson-card {

    display: grid;

    grid-template-columns:
        88px
        minmax(0, 1fr)
        48px;

    gap: 18px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e1e5e9;
    border-left: 6px solid #64748b;
    border-radius: 14px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;

}


.lesson-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.11);

}


.lesson-status-draft {

    border-left-color: #64748b;

}


.lesson-status-planned {

    border-left-color: #d97706;

}


.lesson-status-published {

    border-left-color: #1d5f74;

}


.lesson-status-completed {

    border-left-color: #17834b;

}


.lesson-status-cancelled {

    border-left-color: #b42318;

    opacity: 0.8;

}


.lesson-card-date {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 100px;

    border-radius: 12px;

    background: #f3f6f8;

}


.lesson-card-weekday {

    color: #6b7280;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;

}


.lesson-card-day {

    margin: 2px 0;

    color: #1d5f74;

    font-size: 30px;
    line-height: 1;

}


.lesson-card-month {

    color: #4b5563;

    font-size: 13px;
    font-weight: 700;

}


.lesson-card-content {

    min-width: 0;

}


.lesson-card-header {

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 17px;

}


.lesson-card-heading {

    min-width: 0;

}


.lesson-card-heading h3 {

    margin: 0 0 4px;

    color: #17202a;

    font-size: 19px;

    overflow-wrap: anywhere;

}


.lesson-card-heading p {

    margin: 0;

    color: #6b7280;

    font-size: 13px;
    font-weight: 600;

    text-align: left;

}


.lesson-status-badge {

    flex-shrink: 0;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

}


.lesson-status-badge-draft {

    color: #475569;

    background: #e7ebef;

}


.lesson-status-badge-planned {

    color: #9a5600;

    background: #fff0ca;

}


.lesson-status-badge-published {

    color: #18556a;

    background: #dceef3;

}


.lesson-status-badge-completed {

    color: #17633c;

    background: #dff4e8;

}


.lesson-status-badge-cancelled {

    color: #8a2e28;

    background: #f8dedc;

}


.lesson-card-information {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px 20px;

}


.lesson-information-item {

    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;

}


.lesson-information-item > span {

    flex-shrink: 0;

    width: 24px;

    text-align: center;

}


.lesson-information-item div {

    display: flex;
    flex-direction: column;

    min-width: 0;

}


.lesson-information-item small {

    color: #7a828a;

    font-size: 11px;
    font-weight: 700;

}


.lesson-information-item strong {

    color: #28313a;

    font-size: 13px;

    overflow-wrap: anywhere;

}


.lesson-card-notes {

    margin: 18px 0 0;
    padding-top: 14px;

    border-top: 1px solid #e5e9ec;

    color: #5b6470;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;

    text-align: left;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

}


.lesson-card-actions {

    display: flex;
    flex-direction: column;
    gap: 8px;

}


.lesson-action-button {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 9px;

    font-size: 16px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease;

}


.lesson-action-button:hover {

    transform: scale(1.06);

}


.lesson-action-edit {

    background: #e8f0ff;

}


.lesson-action-edit:hover {

    background: #d6e4ff;

}


.lesson-action-copy {

    background: #e7f4f7;

}


.lesson-action-copy:hover {

    background: #cfe9ef;

}


.lesson-action-delete {

    background: #fbe4e3;

}


.lesson-action-delete:hover {

    background: #f5cecb;

}


.lesson-empty-message,
.lesson-calendar-placeholder {

    padding: 50px 30px;

    background: #ffffff;

    border: 1px solid #e1e5e9;
    border-radius: 14px;

    color: #5b6470;

    text-align: center;

}


.lesson-empty-message > span,
.lesson-calendar-placeholder-icon {

    display: block;

    margin-bottom: 12px;

    font-size: 38px;

}


.lesson-empty-message h3,
.lesson-calendar-placeholder h3 {

    margin: 0 0 8px;

    color: #27313a;

}


.lesson-empty-message p,
.lesson-calendar-placeholder p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;
    font-weight: 500;

    text-align: center;

}


/* =========================================================
   UNTERRICHTSPLANUNG – MODAL
========================================================= */

.lesson-modal-box {

    width: min(900px, 96vw);

}


.lesson-modal-header {

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e3e7ea;

}


.lesson-modal-header h2 {

    margin-bottom: 4px;

    text-align: left;

}


.lesson-modal-header p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;
    font-weight: 500;

    text-align: left;

}


.lesson-modal-close-icon {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border: none;
    border-radius: 50%;

    background: #eef1f3;

    color: #374151;

    font-size: 24px;

    cursor: pointer;

}


.lesson-modal-close-icon:hover {

    background: #e1e5e8;

}


.lesson-form-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px 22px;

}


.lesson-form-field {

    display: flex;
    flex-direction: column;
    gap: 7px;

    min-width: 0;

}


.lesson-form-field-full {

    grid-column: 1 / -1;

}


.lesson-form-field label {

    color: #374151;

    font-size: 14px;
    font-weight: 700;

}


.lesson-form-field input,
.lesson-form-field select,
.lesson-form-field textarea,
.lesson-copy-modal-box input {

    width: 100%;
    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid #d7dce2;
    border-radius: 8px;

    background: #ffffff;

    box-sizing: border-box;

    color: #1f2933;

    font-family: inherit;
    font-size: 14px;

}


.lesson-form-field textarea {

    resize: vertical;

}


.lesson-form-field input:focus,
.lesson-form-field select:focus,
.lesson-form-field textarea:focus,
.lesson-copy-modal-box input:focus {

    border-color: #1d5f74;

    outline: 2px solid rgba(29, 95, 116, 0.13);

}


.lesson-form-field small {

    color: #7a828a;

    font-size: 12px;

}


.lesson-checkbox-field {

    justify-content: flex-end;

    padding-bottom: 5px;

}


.lesson-checkbox-field label {

    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 44px;

    padding: 0 12px;

    border: 1px solid #d7dce2;
    border-radius: 8px;

    background: #f8fafb;

    box-sizing: border-box;

    cursor: pointer;

}


.lesson-checkbox-field input {

    width: 18px;
    min-height: auto;
    height: 18px;

    padding: 0;
    margin: 0;

}


.lesson-teacher-field-header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

}


.lesson-teacher-field-header span {

    color: #1d5f74;

    font-size: 12px;
    font-weight: 800;

}


.lesson-teacher-selection {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(230px, 1fr)
        );

    gap: 10px;

    max-height: 270px;
    padding: 12px;

    overflow-y: auto;

    border: 1px solid #d7dce2;
    border-radius: 10px;

    background: #f8fafb;

}


.lesson-teacher-option {

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    gap: 10px;

    align-items: center;

    padding: 10px;

    border: 1px solid #e0e5e9;
    border-radius: 9px;

    background: #ffffff;

    cursor: pointer;

}


.lesson-teacher-option:hover {

    border-color: #9abac4;

    background: #f2f8fa;

}


.lesson-teacher-option input {

    width: 18px;
    height: 18px;
    min-height: auto;

    padding: 0;
    margin: 0;

}


.lesson-teacher-option-content {

    display: flex;
    flex-direction: column;

    min-width: 0;

}


.lesson-teacher-option-content strong {

    color: #26313a;

    font-size: 13px;

    overflow-wrap: anywhere;

}


.lesson-teacher-option-content small {

    color: #7a828a;

    font-size: 11px;

    overflow-wrap: anywhere;

}


.lesson-selection-placeholder {

    grid-column: 1 / -1;

    margin: 0;
    padding: 18px;

    color: #6b7280;

    font-size: 14px;
    font-weight: 500;

    text-align: center;

}


.lesson-conflict-message {

    padding: 15px 17px;

    border: 1px solid #e9a8a4;
    border-radius: 10px;

    background: #fff0ef;

    color: #8c2923;

    font-size: 13px;

}


.lesson-conflict-message strong {

    display: block;

    margin-bottom: 8px;

}


.lesson-conflict-message ul {

    margin: 0;
    padding-left: 20px;

}


.lesson-form-message {

    min-height: 22px;

    margin: 0;

    font-size: 14px;
    font-weight: 700;

    text-align: center;

}


.error-message {

    color: #b42318 !important;

}


.success-message {

    color: #18794e !important;

}


.lesson-modal-actions {

    margin-top: 4px;

}


.lesson-copy-modal-box {

    width: min(500px, 94vw);

}


.lesson-copy-description {

    color: #5b6470;

    font-size: 14px;
    font-weight: 500;

    text-align: left;

}


/* =========================================================
   UNTERRICHTSPLANUNG – WOCHENANSICHT
========================================================= */

.lesson-week-calendar {

    width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    background: #ffffff;

    border: 1px solid #dde3e8;
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.07);

}


.lesson-week-grid {

    display: grid;

    grid-template-columns:
        82px
        repeat(
            5,
            minmax(190px, 1fr)
        );

    min-width: 1080px;

}


.lesson-week-time-header {

    position: sticky;

    top: 0;
    left: 0;

    z-index: 7;

    min-height: 78px;

    background: #f7f9fa;

    border-right: 1px solid #dde3e8;
    border-bottom: 1px solid #dde3e8;

}


.lesson-week-day-header {

    position: sticky;

    top: 0;

    z-index: 6;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 78px;
    padding: 10px;

    background: #f7f9fa;

    border-right: 1px solid #dde3e8;
    border-bottom: 1px solid #dde3e8;

    box-sizing: border-box;

}


.lesson-week-day-header span {

    color: #606873;

    font-size: 13px;
    font-weight: 700;

    text-transform: capitalize;

}


.lesson-week-day-header strong {

    margin-top: 3px;

    color: #1f2933;

    font-size: 15px;

}


.lesson-week-day-header-today {

    background: #e9f2f5;

}


.lesson-week-day-header-today strong {

    color: #1d5f74;

}


.lesson-week-time-column {

    position: relative;

    background: #fafbfc;

    border-right: 1px solid #dde3e8;

}


.lesson-week-time-label {

    position: absolute;

    left: 0;

    width: 100%;
    padding-right: 12px;

    box-sizing: border-box;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

    text-align: right;

    transform: translateY(-50%);

}


.lesson-week-day-column {

    position: relative;

    min-width: 0;

    background: #ffffff;

    border-right: 1px solid #e1e6ea;

    overflow: hidden;

}


.lesson-week-day-column:last-child {

    border-right: none;

}


.lesson-week-day-column-today {

    background: rgba(29, 95, 116, 0.035);

}


.lesson-week-hour-line,
.lesson-week-half-hour-line {

    position: absolute;

    left: 0;
    right: 0;

    pointer-events: none;

}


.lesson-week-hour-line {

    border-top: 1px solid #dde3e8;

}


.lesson-week-half-hour-line {

    border-top: 1px dashed #edf0f2;

}


/* =========================================================
   UNTERRICHTSPLANUNG – WOCHENBLÖCKE
========================================================= */

.lesson-week-event {

    position: absolute;

    left: 5px;
    right: 5px;

    z-index: 3;

    display: flex;
    flex-direction: column;
    gap: 2px;

    min-height: 36px;
    padding: 7px 8px;

    border-left: 5px solid #64748b;
    border-radius: 8px;

    background: #eef2f6;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.1);

    box-sizing: border-box;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;

}


.lesson-week-event:hover,
.lesson-week-event:focus-visible {

    z-index: 4;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.16);

    outline: none;

}


.lesson-week-event-time {

    color: #475569;

    font-size: 10px;
    font-weight: 800;

}


.lesson-week-event-title {

    color: #17202a;

    font-size: 12px;
    line-height: 1.25;

    overflow: hidden;

}


.lesson-week-event-topic {

    align-self: flex-start;

    margin: 2px 0;
    padding: 2px 6px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.68);

    color: #334155;

    font-size: 9px;
    font-weight: 800;

}


.lesson-week-event-detail {

    color: #46515d;

    font-size: 10px;
    line-height: 1.25;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}


.lesson-week-event-draft {

    border-left-color: #64748b;

    background: #eef2f6;

}


.lesson-week-event-planned {

    border-left-color: #d97706;

    background: #fff4d9;

}


.lesson-week-event-published {

    border-left-color: #1d5f74;

    background: #e3f1f5;

}


.lesson-week-event-completed {

    border-left-color: #17834b;

    background: #e0f5e8;

}


.lesson-week-event-cancelled {

    border-left-color: #b42318;

    background: #fde7e5;

    opacity: 0.78;

    text-decoration: line-through;

}


/* =========================================================
   UNTERRICHTSPLANUNG – RESPONSIVE
========================================================= */

@media (max-width: 1250px) {

    .lesson-filter-grid {

        grid-template-columns:
            repeat(
                3,
                minmax(180px, 1fr)
            );

    }

}


@media (max-width: 1000px) {

    .lesson-page-header {

        flex-direction: column;

    }


    .lesson-navigation {

        align-items: stretch;
        flex-direction: column;

    }


    .lesson-date-navigation {

        flex-wrap: wrap;

    }


    .lesson-view-switch {

        align-self: flex-start;

    }


    .lesson-zoom-controls {

        align-self: flex-start;

    }


    .lesson-filter-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(180px, 1fr)
            );

    }


    .lesson-cards {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 750px) {

    .dashboard-main.lesson-main {

        padding: 24px 16px;

    }


    .lesson-page-header .primary-button {

        width: 100%;

    }


    .lesson-date-navigation {

        display: grid;

        grid-template-columns:
            42px
            1fr
            42px;

    }


    .lesson-current-period {

        grid-column: 1 / -1;

        min-width: 0;
        margin: 8px 0 0;

        text-align: center;

    }


    .lesson-today-button {

        width: 100%;

    }


    .lesson-view-switch {

        width: 100%;

        overflow-x: auto;

    }


    .lesson-view-button {

        flex: 1;

        min-width: 78px;

    }


    .lesson-filter-header {

        flex-direction: column;

    }


    .lesson-filter-header .secondary-button {

        width: 100%;

    }


    .lesson-filter-grid {

        grid-template-columns: 1fr;

    }


    .lesson-filter-search {

        grid-column: auto;

    }


    .lesson-card {

        grid-template-columns:
            72px
            minmax(0, 1fr);

    }


    .lesson-card-actions {

        grid-column: 1 / -1;

        flex-direction: row;
        justify-content: flex-end;

    }


    .lesson-card-information {

        grid-template-columns: 1fr;

    }


    .lesson-form-grid {

        grid-template-columns: 1fr;

    }


    .lesson-form-field-full {

        grid-column: auto;

    }


    .lesson-teacher-selection {

        grid-template-columns: 1fr;

    }


    .lesson-week-grid {

        grid-template-columns:
            70px
            repeat(
                5,
                180px
            );

    }

}


@media (max-width: 500px) {

    .lesson-card {

        display: flex;
        flex-direction: column;

    }


    .lesson-card-date {

        flex-direction: row;
        gap: 8px;

        min-height: auto;
        padding: 12px;

    }


    .lesson-card-day {

        font-size: 22px;

    }


    .lesson-card-header {

        flex-direction: column;

    }


    .lesson-modal-header {

        align-items: flex-start;

    }

}
/* =========================================================
   UNTERRICHTSPLANUNG – MONATSANSICHT
========================================================= */

.lesson-month-calendar {

    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #dde3e8;
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.07);

}


.lesson-month-grid {

    display: grid;

    grid-template-columns:
        repeat(
            7,
            minmax(150px, 1fr)
        );

    min-width: 1080px;

}


.lesson-month-weekday-header {

    position: sticky;

    top: 0;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 8px;

    box-sizing: border-box;

    background: #f6f8fa;

    border-right: 1px solid #dde3e8;
    border-bottom: 1px solid #dde3e8;

    color: #4b5563;

    font-size: 12px;
    font-weight: 800;

}


.lesson-month-weekday-header:nth-child(7) {

    border-right: none;

}


.lesson-month-day {

    min-height: 150px;
    padding: 8px;

    box-sizing: border-box;

    background: #ffffff;

    border-right: 1px solid #e1e6ea;
    border-bottom: 1px solid #e1e6ea;

    cursor: default;

    transition:
        background 0.15s ease;

}


.lesson-month-day:hover {

    background: #fafcfd;

}


.lesson-month-day:nth-child(7n) {

    border-right: none;

}


.lesson-month-day-outside {

    background: #f7f8f9;

}


.lesson-month-day-outside .lesson-month-day-number {

    color: #9aa1a9;

}


.lesson-month-day-today {

    background: rgba(29, 95, 116, 0.055);

    box-shadow:
        inset 0 0 0 2px rgba(29, 95, 116, 0.32);

}


.lesson-month-day-header {

    display: flex;
    justify-content: flex-end;

    margin-bottom: 7px;

}


.lesson-month-day-number {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: #374151;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

}


.lesson-month-day-number:hover {

    background: #e9f2f5;

    color: #1d5f74;

}


.lesson-month-day-today .lesson-month-day-number {

    background: #1d5f74;

    color: #ffffff;

}


.lesson-month-events {

    display: flex;
    flex-direction: column;
    gap: 5px;

}


.lesson-month-event {

    display: grid;

    grid-template-columns:
        40px
        minmax(0, 1fr);

    gap: 5px;

    align-items: center;

    width: 100%;
    min-height: 27px;

    padding: 4px 6px;

    box-sizing: border-box;

    border: none;
    border-left: 4px solid #64748b;
    border-radius: 6px;

    background: #eef2f6;

    color: #28313a;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;

}


.lesson-month-event:hover {

    z-index: 2;

    transform: translateY(-1px);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.13);

}


.lesson-month-event-time {

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;

}


.lesson-month-event-content {

    min-width: 0;

    font-size: 10px;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}


.lesson-month-event-draft {

    border-left-color: #64748b;

    background: #eef2f6;

}


.lesson-month-event-planned {

    border-left-color: #d97706;

    background: #fff4d9;

}


.lesson-month-event-published {

    border-left-color: #1d5f74;

    background: #e3f1f5;

}


.lesson-month-event-completed {

    border-left-color: #17834b;

    background: #e0f5e8;

}


.lesson-month-event-cancelled {

    border-left-color: #b42318;

    background: #fde7e5;

    opacity: 0.75;

    text-decoration: line-through;

}


.lesson-month-more-button {

    width: 100%;

    padding: 4px 6px;

    border: none;
    border-radius: 5px;

    background: #eef1f3;

    color: #4b5563;

    font-size: 10px;
    font-weight: 800;

    text-align: left;

    cursor: pointer;

}


.lesson-month-more-button:hover {

    background: #dfe7ea;

    color: #1d5f74;

}


@media (max-width: 750px) {

    .lesson-month-grid {

        grid-template-columns:
            repeat(
                7,
                145px
            );

    }


    .lesson-month-day {

        min-height: 140px;

    }

}

/* =========================================================
   UNTERRICHTSPLANUNG – DRAG & DROP
========================================================= */

.lesson-week-event {

    user-select: none;

}


.lesson-week-event-drag-hint {

    position: absolute;

    top: 5px;
    right: 7px;

    color: rgba(55, 65, 81, 0.5);

    font-size: 13px;
    font-weight: 900;
    line-height: 1;

    cursor: grab;

}


.lesson-week-event:hover
.lesson-week-event-drag-hint {

    color: rgba(29, 95, 116, 0.9);

}


.lesson-week-event:active,
.lesson-week-event-dragging {

    cursor: grabbing;

}


.lesson-week-event-dragging {

    opacity: 0.4;

    transform: scale(0.98);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12);

}


.lesson-week-day-column-drop-target {

    background:
        repeating-linear-gradient(
            -45deg,
            rgba(29, 95, 116, 0.08),
            rgba(29, 95, 116, 0.08) 10px,
            rgba(29, 95, 116, 0.025) 10px,
            rgba(29, 95, 116, 0.025) 20px
        );

    box-shadow:
        inset 0 0 0 2px
        rgba(29, 95, 116, 0.42);

}

/* =========================================================
   UNTERRICHTSPLANUNG – MONATSANSICHT DRAG & DROP
========================================================= */

.lesson-month-event {

    position: relative;

    user-select: none;

}


.lesson-month-event-drag-hint {

    margin-left: auto;

    color: rgba(55, 65, 81, 0.48);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;

    cursor: grab;

}


.lesson-month-event:hover
.lesson-month-event-drag-hint {

    color: rgba(29, 95, 116, 0.9);

}


.lesson-month-event:active,
.lesson-month-event-dragging {

    cursor: grabbing;

}


.lesson-month-event-dragging {

    opacity: 0.4;

    transform: scale(0.98);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.13);

}


.lesson-month-day-drop-target {

    background:
        repeating-linear-gradient(
            -45deg,
            rgba(29, 95, 116, 0.09),
            rgba(29, 95, 116, 0.09) 10px,
            rgba(29, 95, 116, 0.025) 10px,
            rgba(29, 95, 116, 0.025) 20px
        );

    box-shadow:
        inset 0 0 0 2px
        rgba(29, 95, 116, 0.45);

}
/* =========================================================
   UNTERRICHTSPLANUNG – JAHRESANSICHT
========================================================= */

.lesson-year-calendar {

    width: 100%;

}


.lesson-year-overview {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(280px, 1fr)
        );

    gap: 18px;

}


.lesson-year-month-card {

    padding: 18px;

    background: #ffffff;

    border: 1px solid #dde3e8;
    border-radius: 14px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);

    cursor: pointer;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;

}


.lesson-year-month-card:hover,
.lesson-year-month-card:focus-visible {

    transform: translateY(-2px);

    border-color: #91b3be;

    box-shadow:
        0 9px 24px rgba(0, 0, 0, 0.11);

    outline: none;

}


.lesson-year-month-header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 15px;

}


.lesson-year-month-header h3 {

    margin: 0;

    color: #1f2933;

    font-size: 17px;

    text-transform: capitalize;

}


.lesson-year-month-count {

    padding: 4px 8px;

    border-radius: 999px;

    background: #e7f1f4;

    color: #1d5f74;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;

}


.lesson-year-mini-calendar {

    display: grid;

    grid-template-columns:
        repeat(
            7,
            minmax(28px, 1fr)
        );

    gap: 4px;

}


.lesson-year-weekday {

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    color: #7a828a;

    font-size: 10px;
    font-weight: 800;

}


.lesson-year-day {

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    border-radius: 7px;

    color: #4b5563;

    font-size: 11px;
    font-weight: 700;

}


.lesson-year-day-empty {

    pointer-events: none;

}


.lesson-year-day-has-lessons {

    background: #e4f0f3;

    color: #174f61;

    font-weight: 900;

}


.lesson-year-day-indicator {

    position: absolute;

    right: 2px;
    bottom: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #1d5f74;

    color: #ffffff;

    font-size: 6px;
    font-weight: 900;

}


.lesson-year-day-indicator:not(:empty) {

    width: 13px;
    height: 13px;

}


.lesson-year-day-today {

    box-shadow:
        inset 0 0 0 2px #1d5f74;

}


.lesson-year-day-today.lesson-year-day-has-lessons {

    background: #1d5f74;

    color: #ffffff;

}


@media (max-width: 1200px) {

    .lesson-year-overview {

        grid-template-columns:
            repeat(
                2,
                minmax(280px, 1fr)
            );

    }

}


@media (max-width: 750px) {

    .lesson-year-overview {

        grid-template-columns: 1fr;

    }

}
/* =========================================================
   PRAKTIKUMSSTELLENVERWALTUNG
========================================================= */

.internship-location-main {
    min-width: 0;
}


/* =========================================================
   PRAKTIKUMSSTELLENKARTEN
========================================================= */

.internship-location-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.internship-location-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.internship-location-card-header h3 {
    margin: 8px 0 0;
    line-height: 1.3;
}

.internship-location-type-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(40, 92, 146, 0.1);
    color: #285c92;
    font-size: 0.78rem;
    font-weight: 700;
}

.internship-location-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.internship-location-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #344054;
    line-height: 1.5;
}

.internship-location-info-row a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.internship-location-info-row a:hover {
    text-decoration: underline;
}

.internship-location-info-icon {
    flex: 0 0 auto;
    width: 22px;
    text-align: center;
}

.internship-location-contact-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid #dde5ed;
    border-radius: 12px;
    background: #f8fafc;
}

.internship-location-contact-box strong {
    margin-bottom: 2px;
}

.internship-location-contact-box a {
    color: #285c92;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.internship-location-contact-box a:hover {
    text-decoration: underline;
}

.internship-location-secondary-text {
    color: #667085;
    font-size: 0.9rem;
}

.internship-location-departments {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.internship-location-department-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.internship-location-department-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef4f8;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 600;
}

.internship-location-department-more {
    background: #e4e7ec;
    color: #475467;
}

.internship-location-description {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #e4e7ec;
    color: #667085;
    line-height: 1.55;
    white-space: pre-line;
}


/* =========================================================
   PRAKTIKUMSSTELLENFORMULAR
========================================================= */

#internshipLocationModal .lesson-modal-box {
    width: min(940px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

#internshipLocationModal .lesson-form-grid {
    align-items: start;
}

#internshipLocationModal .lesson-form-field h3 {
    margin: 10px 0 0;
    font-size: 1.05rem;
    color: #1d2939;
}

#internshipLocationModal input,
#internshipLocationModal select,
#internshipLocationModal textarea {
    width: 100%;
    box-sizing: border-box;
}

#internshipLocationModal textarea {
    resize: vertical;
    min-height: 110px;
}

#internshipLocationCustomTypeField {
    animation: internship-location-field-appear 160ms ease-out;
}

@keyframes internship-location-field-appear {

    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   PRAKTIKUMSSTELLEN – INAKTIVER ZUSTAND
========================================================= */

.internship-location-card.inactive-card {
    opacity: 0.72;
}

.internship-location-card.inactive-card
.internship-location-type-badge {
    background: #f2f4f7;
    color: #667085;
}


/* =========================================================
   PRAKTIKUMSSTELLEN – RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    #internshipLocationModal .lesson-form-grid {
        grid-template-columns: 1fr;
    }

    #internshipLocationModal .lesson-form-field,
    #internshipLocationModal .lesson-form-field-full {
        grid-column: 1;
    }

}

@media (max-width: 640px) {

    .internship-location-card-header {
        flex-direction: column;
    }

    .internship-location-card-header .status-badge {
        align-self: flex-start;
    }

    #internshipLocationModal .lesson-modal-box {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 20px;
    }

    #internshipLocationModal .lesson-modal-header {
        align-items: flex-start;
    }

}
/* =========================================================
   PRAKTIKUMSPLANUNG – 7-TAGE-WOCHE
========================================================= */

.internship-fullweek-grid {
    grid-template-columns:
        70px
        repeat(
            7,
            minmax(150px, 1fr)
        );

    min-width: 1120px;
}
/* =========================================================
   PRAKTIKUMSPLANUNG – LISTENKARTEN
========================================================= */

.internship-card {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        48px;

    gap: 18px;

    padding: 20px;

    border-left-width: 6px;
}

.internship-card > .lesson-card-header,
.internship-card > .internship-card-details,
.internship-card > .lesson-card-notes {
    grid-column: 1;
}

.internship-card > .lesson-card-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.internship-card .lesson-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}

.internship-card .lesson-card-header h3 {
    margin: 6px 0 0;
    color: #17202a;
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.internship-card .lesson-card-type {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2f6;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.internship-card .lesson-card-status {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7ebef;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.internship-card-details {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px 20px;
}

.internship-card-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.internship-card-detail > span {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.internship-card-detail > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.internship-card-detail strong {
    color: #28313a;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.internship-card-detail div > span {
    color: #6b7280;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.internship-card .lesson-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.internship-card .lesson-card-actions .icon-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
}

@media (max-width: 750px) {

    .internship-card {
        grid-template-columns: 1fr;
    }

    .internship-card > .lesson-card-actions {
        grid-column: 1;
        grid-row: auto;
        flex-direction: row;
        justify-content: flex-end;
    }

    .internship-card-details {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   PRAKTIKUMSPLANUNG – LISTENKARTEN FINALE KORREKTUR
========================================================= */

.internship-main #internshipCards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
}


.internship-main #internshipCards .internship-card {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        48px !important;

    grid-template-areas:
        "header actions"
        "details actions"
        "notes actions" !important;

    gap: 20px 24px !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    padding: 22px !important;
    box-sizing: border-box !important;
}


/* =========================================================
   KOPFBEREICH
========================================================= */

.internship-main
#internshipCards
.internship-card
> .lesson-card-header {

    grid-area: header !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        auto !important;

    align-items: start !important;
    gap: 18px !important;

    min-width: 0 !important;
    margin: 0 !important;
}


.internship-main
#internshipCards
.internship-card
.lesson-card-header
> div {

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    min-width: 0 !important;
}


.internship-main
#internshipCards
.internship-card
.lesson-card-type {

    display: inline-flex !important;

    width: auto !important;
    max-width: 100% !important;

    padding: 5px 10px !important;

    font-size: 12px !important;
    line-height: 1.2 !important;
}


.internship-main
#internshipCards
.internship-card
.lesson-card-header h3 {

    width: 100% !important;

    margin: 9px 0 0 !important;

    font-size: 20px !important;
    line-height: 1.3 !important;

    text-align: left !important;
    overflow-wrap: anywhere !important;
}


.internship-main
#internshipCards
.internship-card
.lesson-card-status {

    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;
    flex-shrink: 0 !important;

    padding: 6px 11px !important;

    font-size: 12px !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}


/* =========================================================
   INFORMATIONEN
========================================================= */

.internship-main
#internshipCards
.internship-card
> .internship-card-details {

    grid-area: details !important;

    display: grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(150px, 1fr)
        ) !important;

    gap: 18px 26px !important;

    min-width: 0 !important;
}


.internship-main
#internshipCards
.internship-card
.internship-card-detail {

    display: grid !important;

    grid-template-columns:
        28px
        minmax(0, 1fr) !important;

    align-items: start !important;
    gap: 10px !important;

    min-width: 0 !important;
}


.internship-main
#internshipCards
.internship-card
.internship-card-detail
> span {

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;

    font-size: 17px !important;
    line-height: 1.2 !important;
}


.internship-main
#internshipCards
.internship-card
.internship-card-detail
> div {

    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;

    min-width: 0 !important;
}


.internship-main
#internshipCards
.internship-card
.internship-card-detail strong {

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;

    text-align: left !important;
    overflow-wrap: anywhere !important;
}


.internship-main
#internshipCards
.internship-card
.internship-card-detail
div
> span {

    width: auto !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;

    text-align: left !important;
    overflow-wrap: anywhere !important;
}


/* =========================================================
   NOTIZEN UND AKTIONEN
========================================================= */

.internship-main
#internshipCards
.internship-card
> .lesson-card-notes {

    grid-area: notes !important;

    margin: 0 !important;
    padding-top: 15px !important;

    font-size: 13px !important;
    text-align: left !important;
}


.internship-main
#internshipCards
.internship-card
> .lesson-card-actions {

    grid-area: actions !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}


.internship-main
#internshipCards
.internship-card
.lesson-card-actions
.icon-button {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    padding: 0 !important;

    font-size: 16px !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1250px) {

    .internship-main
    #internshipCards
    .internship-card
    > .internship-card-details {

        grid-template-columns:
            repeat(
                2,
                minmax(180px, 1fr)
            ) !important;
    }

}


@media (max-width: 750px) {

    .internship-main
    #internshipCards
    .internship-card {

        grid-template-columns: 1fr !important;

        grid-template-areas:
            "header"
            "details"
            "notes"
            "actions" !important;
    }


    .internship-main
    #internshipCards
    .internship-card
    > .lesson-card-header {

        grid-template-columns: 1fr !important;
    }


    .internship-main
    #internshipCards
    .internship-card
    > .internship-card-details {

        grid-template-columns: 1fr !important;
    }


    .internship-main
    #internshipCards
    .internship-card
    > .lesson-card-actions {

        flex-direction: row !important;
        justify-content: flex-end !important;
    }

}

/* =========================================================
   KRANKMELDUNGEN – GRUNDLAYOUT
========================================================= */

.sick-note-main {

    min-width: 0;

}


.sick-note-main h1 {

    margin-top: 0;

}


.sick-note-workspace {

    min-width: 0;

}


/* =========================================================
   KRANKMELDUNGEN – HINWEISBOX
========================================================= */

.sick-note-information {

    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    gap: 20px;

    margin-bottom: 26px;
    padding: 22px 24px;

    border: 1px solid #cfe2e8;
    border-radius: 14px;

    background: #f2f8fa;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.04);

}


.sick-note-information-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 12px;

    background: #dceef3;

    font-size: 24px;

}


.sick-note-information h2 {

    margin:
        0
        0
        8px;

    color: #1d5f74;

    font-size: 19px;

}


.sick-note-information p {

    margin:
        0
        0
        8px;

    color: #4f5d66;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;

    text-align: left;

}


.sick-note-information p:last-child {

    margin-bottom: 0;

}


/* =========================================================
   KRANKMELDUNGEN – ZUSAMMENFASSUNG
========================================================= */

.sick-note-summary {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 28px;

}


.sick-note-summary-card {

    display: flex;
    align-items: center;

    gap: 18px;

    min-width: 0;
    padding: 20px 22px;

    border: 1px solid #e1e5e9;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);

}


.sick-note-summary-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border-radius: 13px;

    background: #f1f4f6;

    font-size: 25px;

}


.sick-note-summary-card > div {

    display: flex;
    flex-direction: column;

    min-width: 0;

}


.sick-note-summary-label {

    margin-bottom: 4px;

    color: #6b7280;

    font-size: 13px;
    font-weight: 700;

}


.sick-note-summary-card strong {

    color: #1f2933;

    font-size: 28px;
    line-height: 1;

}


/* =========================================================
   KRANKMELDUNGEN – FILTER
========================================================= */

.sick-note-filter-grid {

    display: grid;

    grid-template-columns:
        minmax(260px, 2fr)
        minmax(180px, 1fr);

    gap: 16px;

}


.sick-note-filter-search {

    min-width: 0;

}


.sick-note-filter-grid .search-input,
.sick-note-filter-grid .filter-select {

    width: 100%;
    min-width: 0;

    box-sizing: border-box;

}


/* =========================================================
   KRANKMELDUNGEN – KARTENRASTER
========================================================= */

.sick-note-cards {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(470px, 1fr)
        );

    gap: 18px;

}


/* =========================================================
   KRANKMELDUNGEN – KARTE
========================================================= */

.sick-note-card {

    display: grid;

    grid-template-columns:
        64px
        minmax(0, 1fr)
        46px;

    gap: 18px;

    min-width: 0;
    padding: 20px;

    border: 1px solid #e1e5e9;
    border-left: 6px solid #d97706;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;

}


.sick-note-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.11);

}


.sick-note-status-reported {

    border-left-color: #d97706;

}


.sick-note-status-ended {

    border-left-color: #17834b;

}


.sick-note-status-cancelled {

    border-left-color: #8a4f4a;

    opacity: 0.86;

}


/* =========================================================
   KRANKMELDUNGEN – KARTENICON
========================================================= */

.sick-note-card-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border-radius: 14px;

    background: #fff1da;

    font-size: 28px;

}


.sick-note-status-ended .sick-note-card-icon {

    background: #dff4e8;

}


.sick-note-status-cancelled .sick-note-card-icon {

    background: #eee6e5;

}


/* =========================================================
   KRANKMELDUNGEN – KARTENINHALT
========================================================= */

.sick-note-card-content {

    min-width: 0;

}


.sick-note-card-header {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 18px;

}


.sick-note-card-heading {

    min-width: 0;

}


.sick-note-card-heading h3 {

    margin:
        0
        0
        5px;

    color: #17202a;

    font-size: 19px;

}


.sick-note-card-heading p {

    margin: 0;

    color: #6b7280;

    font-size: 12px;
    font-weight: 600;

    text-align: left;

}


/* =========================================================
   KRANKMELDUNGEN – STATUSBADGES
========================================================= */

.sick-note-status-badge {

    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    padding: 6px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;

}


.sick-note-status-badge.sick-note-status-reported {

    color: #925300;

    background: #fff0ca;

}


.sick-note-status-badge.sick-note-status-ended {

    color: #17633c;

    background: #dff4e8;

}


.sick-note-status-badge.sick-note-status-cancelled {

    color: #78413c;

    background: #eee1df;

}


/* =========================================================
   KRANKMELDUNGEN – INFORMATIONEN
========================================================= */

.sick-note-card-information {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        15px
        20px;

}


.sick-note-information-item {

    display: flex;
    align-items: flex-start;

    gap: 10px;

    min-width: 0;

}


.sick-note-information-item > span {

    width: 24px;

    flex-shrink: 0;

    text-align: center;

}


.sick-note-information-item > div {

    display: flex;
    flex-direction: column;

    min-width: 0;

}


.sick-note-information-item small {

    margin-bottom: 2px;

    color: #7a828a;

    font-size: 11px;
    font-weight: 700;

}


.sick-note-information-item strong {

    color: #28313a;

    font-size: 13px;

    overflow-wrap: anywhere;

}


.sick-note-read {

    color: #17834b !important;

}


.sick-note-unread {

    color: #b26a00 !important;

}


/* =========================================================
   KRANKMELDUNGEN – BEMERKUNG
========================================================= */

.sick-note-card-note {

    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #e5e9ec;

}


.sick-note-card-note small {

    display: block;

    margin-bottom: 5px;

    color: #7a828a;

    font-size: 11px;
    font-weight: 700;

}


.sick-note-card-note p {

    margin: 0;

    color: #4f5963;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;

    text-align: left;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

}


.sick-note-note-empty {

    color: #969da4 !important;

    font-style: italic;

}


/* =========================================================
   KRANKMELDUNGEN – AKTIONEN
========================================================= */

.sick-note-card-actions {

    display: flex;
    flex-direction: column;

    gap: 8px;

}


.sick-note-action-button {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 9px;

    font-size: 16px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        opacity 0.15s ease;

}


.sick-note-action-button:hover:not(:disabled) {

    transform: scale(1.06);

}


.sick-note-action-edit {

    background: #e8f0ff;

}


.sick-note-action-edit:hover {

    background: #d6e4ff;

}


.sick-note-action-end {

    background: #dff4e8;

}


.sick-note-action-end:hover {

    background: #c9ead7;

}


.sick-note-action-cancel {

    background: #fbe4e3;

}


.sick-note-action-cancel:hover {

    background: #f5cecb;

}


.sick-note-action-inactive {

    background: #edf0f2;

    cursor: default;
    opacity: 0.65;

}


/* =========================================================
   KRANKMELDUNGEN – LEERE ANSICHT
========================================================= */

.sick-note-empty-message {

    grid-column: 1 / -1;

    padding: 50px 30px;

    border: 1px solid #e1e5e9;
    border-radius: 14px;

    background: #ffffff;

    color: #5b6470;

    text-align: center;

}


.sick-note-empty-message > span {

    display: block;

    margin-bottom: 12px;

    font-size: 38px;

}


.sick-note-empty-message h3 {

    margin:
        0
        0
        8px;

    color: #27313a;

}


.sick-note-empty-message p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;
    font-weight: 500;

    text-align: center;

}


/* =========================================================
   KRANKMELDUNGEN – FORMULARMODAL
========================================================= */

.sick-note-modal-box {

    width: min(760px, 96vw);

}


.sick-note-confirmation {

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    align-items: flex-start;

    gap: 12px;

    padding: 15px 16px;

    border: 1px solid #d7dce2;
    border-radius: 10px;

    background: #f8fafb;

    cursor: pointer;

}


.sick-note-confirmation input {

    width: 19px !important;
    height: 19px !important;
    min-height: auto !important;

    margin:
        2px
        0
        0;

    padding: 0 !important;

}


.sick-note-confirmation span {

    color: #374151;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;

}


/* =========================================================
   KRANKMELDUNGEN – AKTIONSMODAL
========================================================= */

.sick-note-action-modal-box {

    width: min(520px, 94vw);

}


.sick-note-action-description {

    margin:
        0
        0
        18px;

    color: #5f6871;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;

    text-align: left;

}


/* =========================================================
   KRANKMELDUNGEN – FORMULARMELDUNGEN
========================================================= */

.sick-note-message-error {

    color: #b42318 !important;

}


.sick-note-message-success {

    color: #17834b !important;

}


.sick-note-message-info {

    color: #1d5f74 !important;

}


/* =========================================================
   KRANKMELDUNGEN – BUTTONS GESPERRT
========================================================= */

.sick-note-main button:disabled,
.sick-note-modal-box button:disabled,
.sick-note-action-modal-box button:disabled {

    cursor: not-allowed;

    opacity: 0.65;

}


/* =========================================================
   KRANKMELDUNGEN – TABLET
========================================================= */

@media (max-width: 1050px) {

    .sick-note-summary {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }


    .sick-note-summary-card:last-child {

        grid-column: 1 / -1;

    }


    .sick-note-cards {

        grid-template-columns: 1fr;

    }

}


/* =========================================================
   KRANKMELDUNGEN – KLEINERE TABLETS
========================================================= */

@media (max-width: 760px) {

    .sick-note-information {

        grid-template-columns: 1fr;

    }


    .sick-note-information-icon {

        width: 46px;
        height: 46px;

    }


    .sick-note-summary {

        grid-template-columns: 1fr;

    }


    .sick-note-summary-card:last-child {

        grid-column: auto;

    }


    .sick-note-filter-grid {

        grid-template-columns: 1fr;

    }


    .sick-note-card {

        grid-template-columns:
            54px
            minmax(0, 1fr);

    }


    .sick-note-card-actions {

        grid-column: 1 / -1;

        flex-direction: row;
        justify-content: flex-end;

    }


    .sick-note-card-information {

        grid-template-columns: 1fr;

    }

}


/* =========================================================
   KRANKMELDUNGEN – MOBIL
========================================================= */

@media (max-width: 540px) {

    .sick-note-information {

        padding: 18px;

    }


    .sick-note-summary-card {

        padding: 17px;

    }


    .sick-note-summary-icon {

        width: 46px;
        height: 46px;

    }


    .sick-note-summary-card strong {

        font-size: 24px;

    }


    .sick-note-card {

        display: flex;
        flex-direction: column;

        padding: 17px;

    }


    .sick-note-card-icon {

        width: 50px;
        height: 50px;

    }


    .sick-note-card-header {

        flex-direction: column;

    }


    .sick-note-card-actions {

        width: 100%;

        flex-direction: row;
        justify-content: flex-end;

    }


    .sick-note-status-badge {

        align-self: flex-start;

    }


    .sick-note-confirmation {

        grid-template-columns:
            auto
            minmax(0, 1fr);

    }

}

/* =========================================================
   UNTERRICHTSTAUSCH
========================================================= */

.lesson-swap-main{

    display:flex;
    flex-direction:column;
    gap:24px;

}


/* =========================================================
   SEITENKOPF
========================================================= */

.lesson-page-header{

    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    flex-wrap:wrap;

}

.lesson-page-header h1{

    margin:0;

}

.lesson-page-header p{

    margin-top:8px;

}


/* =========================================================
   INFORMATIONSKARTE
========================================================= */

.lesson-swap-information{

    display:flex;
    gap:20px;
    align-items:flex-start;

    background:#ffffff;

    border-radius:16px;

    padding:24px;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

}

.lesson-swap-information-icon{

    width:64px;
    height:64px;

    border-radius:50%;

    background:#eef5ff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:32px;

    flex-shrink:0;

}

.lesson-swap-information h2{

    margin:0 0 10px;

}

.lesson-swap-information p{

    margin:8px 0;
    line-height:1.6;

}


/* =========================================================
   ZUSAMMENFASSUNG
========================================================= */

.lesson-swap-summary{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap:18px;

}

.lesson-swap-summary-card{

    background:white;

    border-radius:16px;

    padding:22px;

    display:flex;

    align-items:center;

    gap:18px;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

}

.lesson-swap-summary-icon{

    width:58px;
    height:58px;

    border-radius:50%;

    background:#eef5ff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:28px;

}

.lesson-swap-summary-label{

    display:block;

    color:#666;

    font-size:.9rem;

    margin-bottom:6px;

}

.lesson-swap-summary strong{

    font-size:2rem;

}


/* =========================================================
   FILTER
========================================================= */

.lesson-swap-filter-grid{

    display:grid;

    grid-template-columns:
        2fr
        1fr;

    gap:18px;

}

.lesson-swap-filter-search{

    grid-column:span 1;

}

.lesson-swap-workspace{

    display:flex;

    flex-direction:column;

    gap:18px;

}


/* =========================================================
   KARTEN
========================================================= */

.lesson-swap-cards{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(430px,1fr)
        );

    gap:22px;

}

.lesson-swap-card{

    background:white;

    border-radius:18px;

    padding:24px;

    display:grid;

    grid-template-columns:
        70px
        1fr
        auto;

    gap:20px;

    box-shadow:0 6px 16px rgba(0,0,0,.08);

    transition:
        transform .2s,
        box-shadow .2s;

}

.lesson-swap-card:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 26px rgba(0,0,0,.12);

}

.lesson-swap-card-icon{

    width:70px;
    height:70px;

    border-radius:16px;

    background:#eef5ff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:34px;

}

.lesson-swap-card-content{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.lesson-swap-card-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:15px;

}

.lesson-swap-card-heading h3{

    margin:0;

    font-size:1.2rem;

}

.lesson-swap-card-heading p{

    margin-top:6px;

    color:#666;

    font-size:.9rem;

}


/* =========================================================
   STATUS
========================================================= */

.lesson-swap-status-badge{

    padding:7px 14px;

    border-radius:999px;

    font-size:.82rem;

    font-weight:600;

    white-space:nowrap;

}

.lesson-swap-status-open{

    background:#fff8d7;

    color:#8a6500;

}

.lesson-swap-status-completed{

    background:#e8f8eb;

    color:#0c7a35;

}

.lesson-swap-status-cancelled{

    background:#ffeaea;

    color:#b40000;

}

/* =========================================================
   INFORMATIONEN
========================================================= */

.lesson-swap-card-information{

    display:grid;

    grid-template-columns:
        repeat(
            2,
            minmax(160px,1fr)
        );

    gap:16px;

}

.lesson-swap-information-item{

    display:flex;

    align-items:flex-start;

    gap:12px;

    background:#f8f9fb;

    border-radius:12px;

    padding:14px;

}

.lesson-swap-information-item span{

    font-size:1.3rem;

}

.lesson-swap-information-item small{

    display:block;

    color:#777;

    margin-bottom:4px;

}

.lesson-swap-information-item strong{

    display:block;

    font-size:.95rem;

}


/* =========================================================
   ALTERNATIVE TAGE
========================================================= */

.lesson-swap-alternative-dates{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.lesson-swap-alternative-dates small{

    color:#666;

    font-weight:600;

}

.lesson-swap-date-chips{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.lesson-swap-date-chip{

    background:#eef5ff;

    color:#2b4d87;

    padding:8px 14px;

    border-radius:999px;

    font-size:.85rem;

    font-weight:600;

}

.lesson-swap-no-alternative-date{

    color:#999;

    font-style:italic;

}


/* =========================================================
   BEMERKUNG
========================================================= */

.lesson-swap-card-note{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.lesson-swap-card-note small{

    color:#666;

    font-weight:600;

}

.lesson-swap-card-note p{

    margin:0;

    line-height:1.6;

}

.lesson-swap-note-empty{

    color:#999;

    font-style:italic;

}


/* =========================================================
   ABGESCHLOSSENER TAUSCH
========================================================= */

.lesson-swap-completed-information{

    display:flex;

    align-items:flex-start;

    gap:14px;

    background:#edf9ef;

    border-left:4px solid #2da34b;

    padding:16px;

    border-radius:12px;

}

.lesson-swap-completed-information span{

    font-size:1.5rem;

}

.lesson-swap-completed-information small{

    display:block;

    color:#666;

    margin-bottom:4px;

}

.lesson-swap-completed-information p{

    margin:6px 0 0;

    color:#555;

}


/* =========================================================
   AKTIONEN
========================================================= */

.lesson-swap-card-actions{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.lesson-swap-action-button{

    width:48px;

    height:48px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-size:1.2rem;

    background:#f3f4f6;

    transition:
        background .2s,
        transform .2s;

}

.lesson-swap-action-button:hover{

    background:#e7ecf6;

    transform:scale(1.05);

}

.lesson-swap-action-button:disabled{

    opacity:.45;

    cursor:not-allowed;

    transform:none;

}

.lesson-swap-action-edit{

    background:#eef5ff;

}

.lesson-swap-action-offer{

    background:#eaf9ef;

}

.lesson-swap-action-cancel{

    background:#fff3e8;

}

.lesson-swap-action-inactive{

    background:#f4f4f4;

}


/* =========================================================
   LEERE ANSICHT
========================================================= */

.lesson-swap-empty-message{

    background:white;

    border-radius:18px;

    padding:60px 30px;

    text-align:center;

    box-shadow:0 6px 18px rgba(0,0,0,.08);

}

.lesson-swap-empty-message span{

    font-size:3rem;

    display:block;

    margin-bottom:16px;

}

.lesson-swap-empty-message h3{

    margin-bottom:10px;

}

.lesson-swap-empty-message p{

    color:#666;

}

/* =========================================================
   UNTERRICHTSTAUSCH – MODALGRUNDLAGEN
========================================================= */

.lesson-swap-modal-box,
.lesson-swap-offer-modal-box {

    width: min(920px, 96vw);

}


.lesson-swap-confirm-modal-box {

    width: min(620px, 94vw);

    text-align: center;

}


/* =========================================================
   UNTERRICHTSVORSCHAU
========================================================= */

.lesson-swap-lesson-preview {

    display: grid;

    grid-template-columns:
        64px
        minmax(0, 1fr);

    gap: 18px;

    padding: 20px;

    border: 1px solid #dce3e8;
    border-radius: 14px;

    background: #f8fafb;

}


.lesson-swap-preview-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 14px;

    background: #e8f1f5;

    font-size: 28px;

}


.lesson-swap-preview-content {

    min-width: 0;

}


.lesson-swap-preview-content h3 {

    margin:
        0
        0
        16px;

    color: #1f2933;

    font-size: 19px;

}


.lesson-swap-preview-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px 22px;

}


.lesson-swap-preview-grid > div {

    display: flex;
    flex-direction: column;

    min-width: 0;

}


.lesson-swap-preview-grid small {

    margin-bottom: 3px;

    color: #7a828a;

    font-size: 11px;
    font-weight: 700;

}


.lesson-swap-preview-grid strong {

    color: #28313a;

    font-size: 14px;

    overflow-wrap: anywhere;

}


/* =========================================================
   ALTERNATIVTAGE – KOPF
========================================================= */

.lesson-swap-field-header {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

}


.lesson-swap-field-header label {

    display: block;

    margin-bottom: 4px;

}


.lesson-swap-field-header small {

    display: block;

    color: #7a828a;

    font-size: 12px;

}


.lesson-swap-small-button {

    min-height: 36px;

    padding: 7px 12px;

    flex-shrink: 0;

    font-size: 12px;

}


/* =========================================================
   ALTERNATIVTAGE – MONATSNAVIGATION
========================================================= */

.lesson-swap-date-navigation {

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin-top: 8px;
    margin-bottom: 10px;

}


.lesson-swap-date-navigation strong {

    min-width: 190px;

    color: #1f2933;

    font-size: 17px;

    text-align: center;

}


/* =========================================================
   AUSGEWÄHLTE TAGE
========================================================= */

.lesson-swap-selected-dates {

    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 14px;
    padding: 14px 16px;

    border: 1px solid #dce3e8;
    border-radius: 12px;

    background: #f8fafb;

}


.lesson-swap-selected-dates > span {

    color: #4b5563;

    font-size: 13px;
    font-weight: 700;

}


#selectedAlternativeDates {

    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    color: #6b7280;

    font-size: 13px;

}


/* =========================================================
   ANGEFRAGTER UNTERRICHT IM TAUSCHMODAL
========================================================= */

.lesson-swap-request-summary {

    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    gap: 16px;

    margin-bottom: 22px;
    padding: 18px;

    border: 1px solid #cfe2e8;
    border-radius: 14px;

    background: #f2f8fa;

}


.lesson-swap-request-summary-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 13px;

    background: #dceef3;

    font-size: 25px;

}


.lesson-swap-request-summary small {

    display: block;

    margin-bottom: 3px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

}


.lesson-swap-request-summary h3 {

    margin:
        0
        0
        5px;

    color: #1f2933;

    font-size: 18px;

}


.lesson-swap-request-summary p {

    margin: 0;

    color: #5b6470;

    font-size: 13px;
    font-weight: 500;

    text-align: left;

}


/* =========================================================
   TAUSCHVORSCHAU
========================================================= */

.lesson-swap-comparison {

    margin-top: 22px;
    padding: 20px;

    border: 1px solid #dce3e8;
    border-radius: 14px;

    background: #f8fafb;

}


.lesson-swap-comparison h3 {

    margin:
        0
        0
        16px;

    color: #1f2933;

    font-size: 18px;

}


.lesson-swap-comparison-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        54px
        minmax(0, 1fr);

    align-items: center;

    gap: 14px;

}


.lesson-swap-comparison-card {

    display: flex;
    flex-direction: column;

    min-height: 100px;

    padding: 17px;

    border: 1px solid #dce3e8;
    border-radius: 12px;

    background: #ffffff;

}


.lesson-swap-comparison-card small {

    margin-bottom: 8px;

    color: #7a828a;

    font-size: 11px;
    font-weight: 700;

}


.lesson-swap-comparison-card strong {

    color: #28313a;

    font-size: 14px;
    line-height: 1.45;

}


.lesson-swap-comparison-arrow {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #e8f1f5;

    color: #1d5f74;

    font-size: 26px;
    font-weight: 800;

}


/* =========================================================
   ENDGÜLTIGE BESTÄTIGUNG
========================================================= */

.lesson-swap-confirm-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin:
        0
        auto
        16px;

    border-radius: 50%;

    background: #e8f1f5;

    font-size: 32px;

}


.lesson-swap-confirm-modal-box h2 {

    margin:
        0
        0
        12px;

}


.lesson-swap-confirm-description {

    margin:
        0
        0
        22px;

    color: #5b6470;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;

    text-align: center;

}


.lesson-swap-confirm-details {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 20px;

}


.lesson-swap-confirm-details > div {

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 17px;

    border: 1px solid #dce3e8;
    border-radius: 12px;

    background: #f8fafb;

    text-align: left;

}


.lesson-swap-confirm-details small {

    margin-bottom: 7px;

    color: #7a828a;

    font-size: 11px;
    font-weight: 700;

}


.lesson-swap-confirm-details strong {

    margin-bottom: 5px;

    color: #28313a;

    font-size: 14px;

}


.lesson-swap-confirm-details span {

    color: #5b6470;

    font-size: 12px;
}


/* =========================================================
   MELDUNGEN
========================================================= */

.lesson-swap-message-error {

    color: #b42318 !important;

}


.lesson-swap-message-success {

    color: #17834b !important;

}


.lesson-swap-message-info {

    color: #1d5f74 !important;

}

/* =========================================================
   ALTERNATIVTAGE – KALENDER
========================================================= */

.lesson-swap-date-calendar {

    display: grid;

    grid-template-columns:
        repeat(
            7,
            minmax(0, 1fr)
        );

    gap: 8px;

    padding: 14px;

    border: 1px solid #dce3e8;
    border-radius: 14px;

    background: #ffffff;

}


/* =========================================================
   WOCHENTAGE
========================================================= */

.lesson-swap-calendar-weekday {

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    color: #6b7280;

    font-size: 12px;
    font-weight: 800;

    text-align: center;

}


/* =========================================================
   KALENDERTAGE
========================================================= */

.lesson-swap-calendar-day {

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 44px;

    border: 1px solid transparent;
    border-radius: 10px;

    background: #f7f9fa;

    color: #28313a;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;

}


.lesson-swap-calendar-day:hover {

    border-color: #bfd7df;

    background: #eef6f8;

    transform: translateY(-1px);

}


.lesson-swap-calendar-day:focus-visible {

    border-color: #1d5f74;

    outline: 3px solid rgba(29, 95, 116, 0.16);

}


/* =========================================================
   AUSGEWÄHLTER TAG
========================================================= */

.lesson-swap-calendar-day.selected {

    border-color: #1d5f74;

    background: #1d5f74;

    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(29, 95, 116, 0.22);

}


.lesson-swap-calendar-day.selected:hover {

    background: #174f61;

}


/* =========================================================
   HEUTIGER TAG
========================================================= */

.lesson-swap-calendar-day.today {

    border-color: #d39a24;

}


.lesson-swap-calendar-day.today:not(.selected) {

    background: #fff8e7;

    color: #8a5b00;

}


/* =========================================================
   LEERE KALENDERFELDER
========================================================= */

.lesson-swap-calendar-day-empty {

    min-height: 44px;

    background: transparent;

    cursor: default;

}


.lesson-swap-calendar-day-empty:hover {

    border-color: transparent;

    background: transparent;

    transform: none;

}


/* =========================================================
   VERGANGENE TAGE
========================================================= */

.lesson-swap-calendar-day.past {

    color: #a4abb2;

    background: #f4f5f6;

}


.lesson-swap-calendar-day.past:not(.selected) {

    opacity: 0.7;

}


/* =========================================================
   WOCHENENDE
========================================================= */

.lesson-swap-calendar-day.weekend:not(.selected) {

    background: #faf7f7;

}


/* =========================================================
   KALENDER IM MODAL
========================================================= */

.lesson-swap-modal-box .lesson-swap-date-calendar {

    margin-top: 4px;

}


/* =========================================================
   KALENDERLEGENDE
========================================================= */

.lesson-swap-calendar-legend {

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 12px;

    color: #6b7280;

    font-size: 12px;
    font-weight: 600;

}


.lesson-swap-calendar-legend-item {

    display: inline-flex;
    align-items: center;

    gap: 7px;

}


.lesson-swap-calendar-legend-color {

    display: inline-block;

    width: 14px;
    height: 14px;

    border-radius: 4px;

}


.lesson-swap-calendar-legend-color-selected {

    background: #1d5f74;

}


.lesson-swap-calendar-legend-color-today {

    border: 1px solid #d39a24;

    background: #fff8e7;

}


/* =========================================================
   BUTTONSTATUS
========================================================= */

.lesson-swap-main button:disabled,
.lesson-swap-modal-box button:disabled,
.lesson-swap-offer-modal-box button:disabled,
.lesson-swap-confirm-modal-box button:disabled {

    cursor: not-allowed;

    opacity: 0.65;

}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width:1200px){

    .lesson-swap-cards{

        grid-template-columns:1fr;

    }

}


@media (max-width:950px){

    .lesson-page-header{

        flex-direction:column;
        align-items:stretch;

    }

    .lesson-page-header button{

        width:100%;

    }

    .lesson-swap-summary{

        grid-template-columns:1fr;

    }

    .lesson-swap-filter-grid{

        grid-template-columns:1fr;

    }

    .lesson-swap-card{

        grid-template-columns:1fr;

    }

    .lesson-swap-card-icon{

        width:60px;
        height:60px;

    }

    .lesson-swap-card-actions{

        flex-direction:row;
        justify-content:flex-end;
        flex-wrap:wrap;

    }

    .lesson-swap-preview-grid{

        grid-template-columns:1fr;

    }

    .lesson-swap-comparison-grid{

        grid-template-columns:1fr;

    }

    .lesson-swap-comparison-arrow{

        margin:auto;
        transform:rotate(90deg);

    }

    .lesson-swap-confirm-details{

        grid-template-columns:1fr;

    }

}


@media (max-width:700px){

    .lesson-swap-information{

        flex-direction:column;

        align-items:center;

        text-align:center;

    }

    .lesson-swap-information-icon{

        margin-bottom:10px;

    }

    .lesson-swap-card-information{

        grid-template-columns:1fr;

    }

    .lesson-swap-lesson-preview{

        grid-template-columns:1fr;

        text-align:center;

    }

    .lesson-swap-preview-icon{

        margin:auto;

    }

    .lesson-swap-request-summary{

        grid-template-columns:1fr;

        text-align:center;

    }

    .lesson-swap-request-summary-icon{

        margin:auto;

    }

    .lesson-swap-date-navigation strong{

        min-width:130px;

        font-size:15px;

    }

    .lesson-swap-date-calendar{

        gap:5px;

        padding:10px;

    }

    .lesson-swap-calendar-day{

        min-height:38px;

        font-size:13px;

    }

}


@media (max-width:500px){

    .lesson-swap-summary-card{

        padding:16px;

    }

    .lesson-swap-summary strong{

        font-size:1.6rem;

    }

    .lesson-swap-card{

        padding:18px;

    }

    .lesson-swap-action-button{

        width:44px;
        height:44px;

    }

    .lesson-swap-date-chip{

        font-size:12px;

        padding:6px 10px;

    }

}
/* =========================================================
   MEIN CAMPUS
========================================================= */

.campus-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}


/* =========================================================
   KOPFBEREICH
========================================================= */

.campus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 26px 30px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}


.campus-header h1 {
    margin: 4px 0 8px;
}


.campus-header-label,
.campus-section-label {
    margin: 0;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #64748b;
}


.campus-date-card {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 230px;
    padding: 16px 20px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    text-align: right;
}


.campus-date-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}


.campus-date-card strong {
    font-size: 0.95rem;
    color: #1e293b;
}


/* =========================================================
   GRUNDKARTEN
========================================================= */

.campus-panel {
    min-width: 0;
    padding: 22px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}


.campus-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
}


.campus-panel-header h2 {
    margin: 4px 0 0;

    font-size: 1.2rem;
    color: #1e293b;
}


/* =========================================================
   KALENDERBEREICH
========================================================= */

.campus-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}


.campus-calendar-panel {
    overflow: hidden;
}


.campus-calendar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


.campus-calendar-actions .secondary-button {
    min-width: 42px;
}


.campus-calendar-period {
    margin-bottom: 14px;

    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}


.campus-week-calendar {
    min-width: 0;
    overflow-x: auto;
}


.campus-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(115px, 1fr));

    min-width: 805px;

    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}


.campus-day-column {
    min-height: 340px;

    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}


.campus-day-column:last-child {
    border-right: none;
}


.campus-day-column.is-today {
    background: #f8fafc;
}


.campus-day-column.is-today .campus-day-header {
    background: #eef2ff;
}


.campus-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-height: 74px;
    padding: 10px;

    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}


.campus-day-header span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}


.campus-day-header strong {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    font-size: 1rem;
    color: #1e293b;
}


.campus-day-column.is-today .campus-day-header strong {
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
}


.campus-day-events {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 10px;
}


.campus-day-empty {
    margin: 12px 0;

    font-size: 0.78rem;
    text-align: center;
    color: #94a3b8;
}


/* =========================================================
   SEITENSPALTE
========================================================= */

.campus-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.campus-today-list,
.campus-notice-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.campus-empty-compact {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;

    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}


.campus-empty-compact span {
    font-size: 1.5rem;
}


.campus-empty-compact p {
    margin: 0;

    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
}


.campus-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 15px;

    background: #f8fafc;
    border-radius: 12px;
}


.campus-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 40px;
    height: 40px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    font-size: 1.15rem;
}


.campus-summary-item strong {
    display: block;
    margin-bottom: 4px;

    color: #1e293b;
}


.campus-summary-item p {
    margin: 0;

    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}


/* =========================================================
   LEERZUSTAND
========================================================= */

.campus-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 300px;
    padding: 30px;

    text-align: center;
}


.campus-empty-icon {
    margin-bottom: 12px;
    font-size: 2.5rem;
}


.campus-empty-state h3 {
    margin: 0 0 8px;

    font-size: 1.05rem;
    color: #1e293b;
}


.campus-empty-state p {
    max-width: 360px;
    margin: 0;

    line-height: 1.5;
    color: #64748b;
}


/* =========================================================
   MITTEILUNGEN
========================================================= */

.campus-message-list {
    display: grid;
    gap: 14px;
}


.campus-message-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 18px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}


.campus-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 46px;
    height: 46px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    font-size: 1.35rem;
}


.campus-message-card h3 {
    margin: 0 0 6px;

    font-size: 1rem;
    color: #1e293b;
}


.campus-message-card p {
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
}


/* =========================================================
   SCHNELLZUGRIFFE
========================================================= */

.campus-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}


.campus-quick-action {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    min-width: 0;
    padding: 16px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.campus-quick-action:hover {
    transform: translateY(-2px);

    border-color: #94a3b8;

    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}


.campus-quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;

    font-size: 1.2rem;
}


.campus-quick-action strong {
    display: block;
    margin-bottom: 4px;

    font-size: 0.9rem;
    color: #1e293b;
}


.campus-quick-action p {
    margin: 0;

    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .campus-overview-grid {
        grid-template-columns: 1fr;
    }


    .campus-side-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .campus-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 760px) {

    .campus-header {
        align-items: stretch;
        flex-direction: column;

        padding: 20px;
    }


    .campus-date-card {
        min-width: 0;
        text-align: left;
    }


    .campus-panel {
        padding: 18px;
    }


    .campus-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .campus-calendar-actions {
        width: 100%;
    }


    .campus-calendar-actions .secondary-button {
        flex: 1;
    }


    .campus-side-column {
        display: flex;
    }


    .campus-quick-actions {
        grid-template-columns: 1fr;
    }


    .campus-create-message-button {
        width: 100%;
    }

}
/* =========================================================
   CAMPUS-KALENDER – STEUERUNG
========================================================= */

.campus-calendar-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.campus-calendar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.campus-calendar-view-switch {
    display: flex;
    padding: 4px;
    gap: 4px;
    background: #eef2f6;
    border-radius: 10px;
}

.campus-calendar-view-button {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    color: #536274;
    cursor: pointer;
}

.campus-calendar-view-button:hover {
    background: rgba(255, 255, 255, 0.7);
}

.campus-calendar-view-button.is-active {
    background: #ffffff;
    color: #17324d;
    box-shadow: 0 2px 8px rgba(17, 37, 62, 0.12);
}


/* =========================================================
   CAMPUS-KALENDER – MONATSANSICHT
========================================================= */

.campus-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    border-top: 1px solid #dfe5ec;
    border-left: 1px solid #dfe5ec;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.campus-month-weekday {
    padding: 12px 8px;
    background: #f4f7fa;
    border-right: 1px solid #dfe5ec;
    border-bottom: 1px solid #dfe5ec;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #617184;
}

.campus-month-day {
    position: relative;
    min-height: 120px;
    padding: 10px;
    border-right: 1px solid #dfe5ec;
    border-bottom: 1px solid #dfe5ec;
    background: #ffffff;
}

.campus-month-day:hover {
    background: #f8fafc;
}

.campus-month-day.is-outside-month {
    background: #f7f8fa;
    color: #a3acb7;
}

.campus-month-day.is-today {
    background: #eef6ff;
    box-shadow: inset 0 0 0 2px #4e86bd;
}

.campus-month-day-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.campus-month-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    color: #26384a;
}

.campus-month-day.is-outside-month
.campus-month-day-number {
    color: #a3acb7;
}

.campus-month-day.is-today
.campus-month-day-number {
    background: #376f9f;
    color: #ffffff;
}

.campus-month-day-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campus-month-day-empty {
    margin: 0;
    font-size: 0.75rem;
    color: #9ba6b2;
    text-align: center;
}


/* =========================================================
   RESPONSIVE MONATSANSICHT
========================================================= */

@media (max-width: 1000px) {

    .campus-month-day {
        min-height: 95px;
        padding: 7px;
    }

    .campus-month-weekday {
        font-size: 0.72rem;
        padding: 10px 4px;
    }

    .campus-month-day-empty {
        display: none;
    }

}

@media (max-width: 700px) {

    .campus-panel-header {
        align-items: flex-start;
    }

    .campus-calendar-controls {
        width: 100%;
        align-items: stretch;
    }

    .campus-calendar-actions,
    .campus-calendar-view-switch {
        justify-content: center;
    }

    .campus-month-grid {
        min-width: 700px;
    }

    .campus-week-calendar {
        overflow-x: auto;
    }

}
/* =========================================================
   KRANKMELDUNGEN – VERWALTUNGSANSICHT
========================================================= */

.sick-note-cards.hidden,
.sick-note-list-view.hidden,
#sickNoteTrashView.hidden {
    display: none !important;
}


/* =========================================================
   ANSICHTSWECHSEL
========================================================= */

.sick-note-management-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.sick-note-view-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sick-note-view-button.active {
    font-weight: 700;
    box-shadow: 0 0 0 2px currentColor inset;
}

.sick-note-result-count {
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   VERWALTUNGSFILTER
========================================================= */

.sick-note-management-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 22px;
}


/* =========================================================
   TABELLENANSICHT
========================================================= */

.sick-note-list-view {
    width: 100%;
    min-width: 0;
}

.sick-note-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe4ea;
    border-radius: 16px;
    background: #ffffff;
}

.sick-note-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    table-layout: auto;
}

.sick-note-table th,
.sick-note-table td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e7ebef;
    font-size: 14px;
    line-height: 1.4;
}

.sick-note-table th {
    background: #f5f7fa;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sick-note-table td {
    max-width: 260px;
}

.sick-note-table tbody tr:last-child td {
    border-bottom: none;
}

.sick-note-table tbody tr:hover {
    background: #fafbfc;
}

.sick-note-table .secondary-button {
    white-space: nowrap;
}


/* =========================================================
   PAPIERKORB
========================================================= */

.sick-note-trash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .sick-note-management-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .sick-note-management-filter-grid {
        grid-template-columns: 1fr;
    }

    .sick-note-management-toolbar,
    .sick-note-trash-header {
        align-items: stretch;
        flex-direction: column;
    }

}

.sick-note-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.sick-note-table-actions button {
    white-space: nowrap;
}

/* =========================================================
   SCHÜLERKALENDER
========================================================= */

.student-calendar-section {

    margin-bottom: 40px;

    padding-bottom: 32px;

    border-bottom: 1px solid var(--border-color);

}

.student-calendar-header {

    margin-bottom: 20px;

}

.student-calendar-filters {

    display: grid;

    grid-template-columns: repeat(3, minmax(220px, 1fr));

    gap: 16px;

    margin-bottom: 20px;

}

.student-calendar-navigation {

    margin-bottom: 20px;

}

.student-calendar {

    min-height: 500px;

    background: var(--card-background);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    overflow: hidden;

}

@media (max-width: 900px) {

    .student-calendar-filters {

        grid-template-columns: 1fr;

    }

}

/* =========================================================
   SCHÜLERKALENDER
========================================================= */

#studentCalendar {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 16px;
}


/* =========================================================
   SCHÜLERKALENDER GRID
========================================================= */

.student-calendar-grid {
    display: grid;
    grid-template-columns:
        minmax(190px, 1.35fr)
        repeat(7, minmax(145px, 1fr));

    width: 100%;
    min-width: 1220px;

    border-top: 1px solid #dfe4e8;
    border-left: 1px solid #dfe4e8;

    background: #ffffff;
}


/* =========================================================
   ALLGEMEINE KALENDERZELLEN
========================================================= */

.student-calendar-header,
.student-calendar-student-cell,
.student-calendar-day-cell {
    min-width: 0;

    border-right: 1px solid #dfe4e8;
    border-bottom: 1px solid #dfe4e8;

    box-sizing: border-box;
}


/* =========================================================
   KOPFZEILE
========================================================= */

.student-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 68px;
    padding: 10px;

    background: #f4f6f8;
}


.student-calendar-student-header {
    justify-content: flex-start;

    padding-left: 16px;

    font-size: 14px;
    font-weight: 700;
    color: #263238;
}


.student-calendar-day-header {
    flex-direction: column;
    gap: 4px;

    text-align: center;
}


.student-calendar-day-header strong {
    font-size: 14px;
    line-height: 1.2;
    color: #263238;
    text-transform: uppercase;
}


.student-calendar-day-header span {
    font-size: 13px;
    line-height: 1.2;
    color: #68757d;
}


/* =========================================================
   SCHÜLERSPALTE
========================================================= */

.student-calendar-student-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    min-height: 110px;
    padding: 14px 16px;

    background: #fafbfc;
}


.student-calendar-student-cell strong {
    display: block;

    overflow-wrap: anywhere;

    font-size: 14px;
    line-height: 1.35;
    color: #263238;
}


.student-calendar-student-cell span {
    display: block;

    overflow-wrap: anywhere;

    font-size: 12px;
    line-height: 1.35;
    color: #748087;
}


/* =========================================================
   TAGESZELLEN
========================================================= */

.student-calendar-day-cell {
    display: flex;
    flex-direction: column;
    gap: 7px;

    min-height: 110px;
    padding: 8px;

    background: #ffffff;
}


.student-calendar-empty-cell {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;

    min-height: 50px;

    font-size: 16px;
    color: #b5bdc2;
}


/* =========================================================
   HEUTIGER TAG
========================================================= */

.student-calendar-header.student-calendar-today {
    background: #fff2ef;
}


.student-calendar-day-cell.student-calendar-today {
    background: #fffaf8;
}


/* =========================================================
   PRAKTIKUMSKARTEN
========================================================= */

.student-calendar-internship-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;

    width: 100%;
    min-width: 0;

    padding: 8px 9px;

    border: 1px solid #d9e2e7;
    border-left: 4px solid #17667a;
    border-radius: 7px;

    background: #f4f9fb;

    color: #263238;
    text-align: left;
    font: inherit;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}


.student-calendar-internship-card:hover {
    transform: translateY(-1px);

    border-color: #17667a;

    box-shadow: 0 4px 10px rgb(0 0 0 / 9%);
}


.student-calendar-internship-card strong {
    display: block;

    width: 100%;

    overflow-wrap: anywhere;

    font-size: 12px;
    line-height: 1.3;
}


.student-calendar-internship-card span {
    display: block;

    width: 100%;

    overflow-wrap: anywhere;

    font-size: 11px;
    line-height: 1.3;
    color: #5f6d74;
}


/* =========================================================
   PRAKTIKUMSSTATUS
========================================================= */

.student-calendar-internship-card.status-planned {
    border-left-color: #17667a;
}


.student-calendar-internship-card.status-confirmed {
    border-left-color: #2e8b57;
    background: #f2faf5;
}


.student-calendar-internship-card.status-cancelled {
    border-left-color: #c0392b;
    background: #fff4f3;
    opacity: 0.75;
}


/* =========================================================
   RESPONSIVE DARSTELLUNG
========================================================= */

@media (max-width: 1100px) {

    .student-calendar-grid {
        grid-template-columns:
            minmax(180px, 1.25fr)
            repeat(7, minmax(135px, 1fr));

        min-width: 1130px;
    }

}


@media (max-width: 700px) {

    .student-calendar-grid {
        grid-template-columns:
            minmax(165px, 1.2fr)
            repeat(7, minmax(125px, 1fr));

        min-width: 1040px;
    }


    .student-calendar-header {
        min-height: 60px;
        padding: 8px;
    }


    .student-calendar-student-cell,
    .student-calendar-day-cell {
        min-height: 100px;
    }

}
/* =========================================================
   NEUES PRAKTIKUM
========================================================= */

.internship-create-section {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 24px;
}

/* =========================================================
   UNTERRICHT – KRANKGEMELDETE LEHRKRAFT
========================================================= */

.lesson-card-teacher-absent {

    border: 2px solid #c62828;
    border-left: 7px solid #c62828;

    box-shadow:
        0 0 0 3px rgba(198, 40, 40, 0.10),
        0 8px 24px rgba(198, 40, 40, 0.14);

}


.lesson-teacher-absence-warning {

    margin-top: 14px;
    padding: 9px 12px;

    border: 1px solid rgba(198, 40, 40, 0.35);
    border-radius: 8px;

    background: rgba(198, 40, 40, 0.08);
    color: #a51f1f;

    font-size: 13px;
    font-weight: 800;

}


.lesson-week-event-teacher-absent {

    border: 2px solid #c62828;
    border-left: 6px solid #c62828;

    box-shadow:
        0 0 0 2px rgba(198, 40, 40, 0.14),
        0 5px 14px rgba(198, 40, 40, 0.18);

}


.lesson-week-event-absence-warning {

    align-self: flex-start;

    margin-top: 3px;
    padding: 2px 5px;

    border-radius: 5px;

    background: #c62828;
    color: #ffffff;

    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;

}
/* =========================================================
   UNTERRICHTSPLANUNG – KLASSEN-WOCHENANSICHT
========================================================= */

.lesson-class-week-wrapper {

    width: 100%;

    overflow-x: auto;

    border: 1px solid #dde3e8;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);

}


.lesson-class-week-grid {

    --lesson-class-day-count: 5;

    display: grid;

    grid-template-columns:
        minmax(190px, 1.15fr)
        repeat(
            var(--lesson-class-day-count),
            minmax(185px, 1fr)
        );

    min-width: 1150px;

}


.lesson-class-day-grid {

    grid-template-columns:
        minmax(190px, 240px)
        minmax(420px, 1fr);

    min-width: 700px;

}


/* =========================================================
   KOPFZEILE
========================================================= */

.lesson-class-week-class-header,
.lesson-class-week-day-header {

    position: sticky;
    top: 0;

    z-index: 6;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 72px;
    padding: 10px 12px;

    box-sizing: border-box;

    background: #f7f9fa;

    border-right: 1px solid #dde3e8;
    border-bottom: 1px solid #dde3e8;

}


.lesson-class-week-class-header {

    left: 0;

    z-index: 8;

    justify-content: flex-start;

    color: #1f2933;

    font-size: 14px;
    font-weight: 800;

}


.lesson-class-week-day-header {

    flex-direction: column;
    gap: 3px;

}


.lesson-class-week-day-header span {

    color: #606873;

    font-size: 13px;
    font-weight: 700;

    text-transform: capitalize;

}


.lesson-class-week-day-header strong {

    color: #1f2933;

    font-size: 15px;

}


.lesson-class-week-day-header-today {

    background: #e9f2f5;

}


.lesson-class-week-day-header-today strong {

    color: #1d5f74;

}


/* =========================================================
   KLASSENSPALTE
========================================================= */

.lesson-class-week-class-cell {

    position: sticky;
    left: 0;

    z-index: 4;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    min-height: 150px;
    padding: 16px;

    box-sizing: border-box;

    background: #f8fafb;

    border-right: 1px solid #dde3e8;
    border-bottom: 1px solid #e3e8ec;

}


.lesson-class-week-class-cell strong {

    color: #1f2933;

    font-size: 15px;
    line-height: 1.35;

    overflow-wrap: anywhere;

}


.lesson-class-week-class-cell span {

    color: #6b7280;

    font-size: 11px;
    font-weight: 600;

}


/* =========================================================
   TAGESZELLEN
========================================================= */

.lesson-class-week-day-cell {

    display: flex;
    flex-direction: column;
    gap: 9px;

    min-width: 0;
    min-height: 150px;

    padding: 9px;

    box-sizing: border-box;

    background: #ffffff;

    border-right: 1px solid #e3e8ec;
    border-bottom: 1px solid #e3e8ec;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;

}


.lesson-class-week-day-cell-today {

    background: rgba(29, 95, 116, 0.035);

}


.lesson-class-week-day-cell-drop-target {

    background:
        repeating-linear-gradient(
            -45deg,
            rgba(29, 95, 116, 0.09),
            rgba(29, 95, 116, 0.09) 10px,
            rgba(29, 95, 116, 0.025) 10px,
            rgba(29, 95, 116, 0.025) 20px
        );

    box-shadow:
        inset 0 0 0 2px
        rgba(29, 95, 116, 0.45);

}


/* =========================================================
   UNTERRICHTSKARTEN IN DER KLASSENANSICHT
========================================================= */

.lesson-class-week-event {

    position: relative;

    top: auto;
    left: auto;
    right: auto;

    width: 100%;
    height: auto !important;
    min-height: 105px;

    flex-shrink: 0;

    padding: 9px 10px;

    overflow: visible;

}


.lesson-class-week-event-class-detail {

    display: none;

}


.lesson-class-week-event
.lesson-week-event-time {

    padding-right: 22px;

    font-size: 11px;

}


.lesson-class-week-event
.lesson-week-event-title {

    padding-right: 15px;

    font-size: 12px;
    line-height: 1.3;

}


.lesson-class-week-event
.lesson-week-event-detail {

    white-space: normal;

    overflow: visible;
    text-overflow: clip;

    font-size: 10px;
    line-height: 1.3;

}


.lesson-class-week-event
.lesson-week-event-absence-warning {

    margin-top: 5px;

}


/* =========================================================
   RESPONSIVE DARSTELLUNG
========================================================= */

@media (max-width: 1100px) {

    .lesson-class-week-grid {

        grid-template-columns:
            minmax(175px, 1.1fr)
            repeat(
                var(--lesson-class-day-count),
                minmax(165px, 1fr)
            );

        min-width: 1020px;

    }

}


@media (max-width: 700px) {

    .lesson-class-week-grid {

        grid-template-columns:
            minmax(165px, 1fr)
            repeat(
                var(--lesson-class-day-count),
                minmax(150px, 1fr)
            );

        min-width: 930px;

    }


    .lesson-class-week-class-cell,
    .lesson-class-week-day-cell {

        min-height: 135px;

    }

}