.stundenplan-wrap {
    width: fit-content;
    margin: 0 auto;
}

.stundenplan-tag {
    margin-bottom: 2rem;
}

.stundenplan-wochentag {
    text-align: center;
    border-top: 1px dotted var(--primary-color);
    border-bottom: 1px dotted var(--primary-color);
    padding: 1%;
    margin-bottom: 14px !important;
    font-size: 1.2rem !important;
    background: #f7e9e1 !important;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stundenplan-wochentag.leer {
    background: transparent;
    font-weight: normal;
}


.stundenplan-row {
    display: flex;
    flex-direction: row;
    gap: 1em;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
    align-items: flex-start;
}

.stundenplan-tag>.stundenplan-row {
    flex: 1;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.stundenplan-leiter {
    margin-bottom: 10px;
}

.stundenplan-uhrzeit {
    min-width: 90px;
    font-weight: bold;
    white-space: nowrap;
}

/* Leere Uhrzeit-Divs ausblenden */
.stundenplan-uhrzeit:empty {
    display: none;
}

/* Wenn Uhrzeit leer ist, Details zentrieren */
.stundenplan-uhrzeit:empty + .stundenplan-details {
    text-align: center;
}

.stundenplan-details {
    flex: 1;
    width: auto;
}



.stundenplan-tagesliste {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.stundenplan-titel {
    font-weight: bold !important;
    margin-top: 0 !important;
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
}
.ausnahme-kurs{
    text-align: center;
    margin-bottom: 30px;;
}
.ausnahme-kurs strong{
    color: var(--primary-color);
}
.ausnahme-kurs ul{
    list-style: none;
    padding-left: 0;
}
h2.stdPlanExceptions{
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-top: 1px dotted var(--primary-color);
    padding-top: 30px;
    font-style: italic;
}

.stundenplan-details .mek-termin-leiter{
    font-weight: bold;
    margin-bottom: 10px;
}
.stundenplan-ausnahmen-link {
    margin-top: 8px;
    font-size: 0.9rem;
}

.stundenplan-ausnahmen-link a {
    font-style: italic;
    display: inline-block;
    margin-bottom: 20px;
}

.stundenplan-ausnahmen-link a:hover {
    color: #b71c1c;
    background-color: rgba(211, 47, 47, 0.1);
    text-decoration: underline;
}

/* Tablet & Handy: untereinander */
@media (max-width: 900px) {
    .stundenplan-tag {
        display: block;
    }

    .stundenplan-tag>.stundenplan-wochentag {
        width: 100%;
        margin-bottom: 0.5rem;
        height: auto;
    }

    .stundenplan-tag>.stundenplan-row {
        display: flex;
        flex-direction: row;
    }
}

@media (max-width: 700px) {
    .stundenplan-row {
        flex-direction: column;
        gap: 0.2em;
    }

    .stundenplan-uhrzeit {
        min-width: unset;
        font-weight: normal;
        color: inherit;
    }
}

@media (max-width: 600px) {
    .stundenplan-tag>.stundenplan-row {
        flex-direction: column;
    }

    .stundenplan-uhrzeit,
    .stundenplan-details {
        min-width: unset;
        width: 100%;
    }
}