/* =========================================
   TERMIN AUSGABE
   ========================================= */

.termin-liste {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 0;
    box-sizing: border-box;
}

.termin-eintrag {
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 35px;
    padding: 24px 0;
    border-bottom: 1px solid #d9d9d9;
}

.termin-eintrag:first-child {
    border-top: 1px solid #d9d9d9;
}

.termin-datum {
    grid-column: 1;
    grid-row: 1 / span 2;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    color: #2868ad;
}

.termin-titel {
    grid-column: 2;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    color: #333333;
}

.termin-info {
    grid-column: 2;

    margin-top: 5px;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: #666666;
}


/* =========================================
   MOBIL
   ========================================= */

@media screen and (max-width: 999px) {

    .termin-liste {
        width: calc(100% - 32px);
        padding: 25px 0;
    }

    .termin-eintrag {
        display: block;
        padding: 20px 0;
    }

    .termin-datum {
        margin-bottom: 6px;
        font-size: 16px;
    }

    .termin-titel {
        font-size: 19px;
    }

    .termin-info {
        margin-top: 4px;
        font-size: 15px;
    }
}
/* =========================================
   VERGANGENE TERMINE
   ========================================= */

.termin-vergangen-steuerung {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: -10px auto 0;
    box-sizing: border-box;
}

.termin-vergangen-button {
    appearance: none;
    -webkit-appearance: none;

    padding: 9px 16px;
    border: 1px solid #2868ad;
    border-radius: 4px;
    background: #ffffff;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: #2868ad;

    cursor: pointer;
}

.termin-vergangen-button:hover,
.termin-vergangen-button:focus {
    background: #2868ad;
    color: #ffffff;
}

.termin-vergangen {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 10px auto 35px;
    box-sizing: border-box;
}

.termin-vergangen .termin-eintrag {
    width: 100%;
}

@media screen and (max-width: 999px) {

    .termin-vergangen-steuerung {
        width: calc(100% - 32px);
        margin-top: -5px;
    }

    .termin-vergangen-button {
        width: 100%;
        padding: 11px 14px;
        font-size: 15px;
    }

    .termin-vergangen {
        width: calc(100% - 32px);
        margin-top: 8px;
        margin-bottom: 25px;
    }
}
/* =========================================
   UMSCHALTER LISTE / KALENDER
   ========================================= */

.termin-ansicht-schalter {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: -39px auto -15px;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.termin-ansicht-button {
    appearance: none;
    -webkit-appearance: none;

    padding: 9px 18px;
    border: 1px solid #2868ad;
    background: #ffffff;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: #2868ad;

    cursor: pointer;
}

.termin-ansicht-button:first-child {
    border-radius: 4px 0 0 4px;
}

.termin-ansicht-button:last-child {
    margin-left: -1px;
    border-radius: 0 4px 4px 0;
}

.termin-ansicht-button.aktiv {
    background: #2868ad;
    color: #ffffff;
}

.termin-ansicht-button:not(.aktiv):hover,
.termin-ansicht-button:not(.aktiv):focus {
    background: #f2f6fb;
}


/* Mobil */
@media screen and (max-width: 999px) {

    .termin-ansicht-schalter {
        width: calc(100% - 32px);
        margin-top: 25px;
        margin-bottom: -10px;
    }

    .termin-ansicht-button {
        padding: 9px 15px;
        font-size: 14px;
    }
}
/* =========================================
   KALENDER
   ========================================= */

.termin-kalender {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 35px auto;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.termin-kalender-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.termin-kalender-monat {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: #333333;
}

.termin-kalender-nav {
    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid #2868ad;
    border-radius: 4px;
    background: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 38px;
    color: #2868ad;

    cursor: pointer;
}

.termin-kalender-nav:hover,
.termin-kalender-nav:focus {
    background: #2868ad;
    color: #ffffff;
}

.termin-kalender-raster {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #e5eaf0;
    border-left: 1px solid #e5eaf0;
}

.termin-kalender-wochentag {
    padding: 10px 5px;
    border-right: 1px solid #e5eaf0;
    border-bottom: 1px solid #e5eaf0;
    background: #f5f9fd;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #2868ad;
}

.termin-kalender-tag {
    min-width: 0;
    min-height: 85px;
    padding: 8px;

    border-right: 1px solid #e5eaf0;
	border-bottom: 1px solid #e5eaf0;

    box-sizing: border-box;
}

.termin-kalender-tag.leer {
    background: #fafafa;
}

.termin-kalender-tageszahl {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #555555;
}


/* Mobil */
@media screen and (max-width: 999px) {

    .termin-kalender {
        width: calc(100% - 32px);
        margin: 25px auto;
    }

    .termin-kalender-monat {
        font-size: 20px;
    }

    .termin-kalender-nav {
        width: 38px;
        height: 38px;
        font-size: 25px;
        line-height: 34px;
    }

    .termin-kalender-wochentag {
        padding: 8px 2px;
        font-size: 12px;
    }

    .termin-kalender-tag {
        min-height: 55px;
        padding: 5px;
    }

    .termin-kalender-tageszahl {
        font-size: 12px;
    }
}
/* =========================================
   TERMINE IM KALENDER
   ========================================= */

.termin-kalender-termin {
    margin-top: 6px;
    padding: 5px 6px;

    border-radius: 3px;
    background: #eef5fb;
	border-left: 3px solid #2868ad;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    color: #2868ad;

    box-sizing: border-box;
    overflow: hidden;
}

.termin-kalender-zeit {
    margin-bottom: 2px;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
}

.termin-kalender-titel {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;

    overflow-wrap: anywhere;
}


/* Mobil */
@media screen and (max-width: 999px) {

    .termin-kalender-termin {
        min-width: 0;
        margin-top: 4px;
        padding: 3px;

        cursor: pointer;
    }

    .termin-kalender-zeit {
        font-size: 9px;
        line-height: 1.2;

        white-space: nowrap;
        overflow: hidden;
    }

    .termin-kalender-titel {
        min-width: 0;

        font-size: 10px;
        line-height: 1.2;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        overflow-wrap: normal;
        word-break: normal;
    }
}
/* Randtage aus Vor- und Folgemonat */

.termin-kalender-randtag {
    background: #fafafa;
}

.termin-kalender-randtag .termin-kalender-tageszahl {
    color: #b5b5b5;
}

/* =========================================
   TERMIN-DETAILFENSTER
   ========================================= */

.termin-detail-overlay {
    position: fixed;
    z-index: 9999;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 20px;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.35);

    box-sizing: border-box;
}

.termin-detail-fenster {
    position: relative;

    width: 100%;
    max-width: 420px;

    padding: 24px 50px 24px 24px;

    border-radius: 6px;
    background: #ffffff;

    box-sizing: border-box;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.18);
}

.termin-detail-schliessen {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;
    background: transparent;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 30px;
    color: #666666;

    cursor: pointer;
}

.termin-detail-titel {
    margin-bottom: 10px;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;

    color: #2868ad;
}

.termin-detail-datum {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;

    color: #333333;
}

.termin-detail-info {
    margin-top: 8px;

    font-size: 15px;
    line-height: 1.5;

    color: #666666;
}

@media screen and (max-width: 600px) {

    .termin-detail-overlay {
        padding: 16px;
    }

    .termin-detail-fenster {
        max-width: none;

        padding: 22px 45px 22px 20px;
    }

    .termin-detail-titel {
        font-size: 19px;
    }

    .termin-detail-datum,
    .termin-detail-info {
        font-size: 14px;
    }
}

/* KALENDER-ABO */

.termin-kalender-abo {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 20px auto 0;
    box-sizing: border-box;
}
.termin-kalender-abo-button {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #2868ad;
    border-radius: 4px;
    background: #ffffff;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: #2868ad;
    text-decoration: none;
}

.termin-kalender-abo-button:hover,
.termin-kalender-abo-button:focus {
    background: #2868ad;
    color: #ffffff;
    text-decoration: none;
}

@media screen and (max-width: 999px) {
    .termin-kalender-abo {
        width: calc(100% - 32px);
        margin-top: 25px;
		margin-bottom: -15px;
    }

    .termin-kalender-abo-button {
        width: 100%;
        padding: 11px 14px;
        text-align: center;
        box-sizing: border-box;
    }
}
.termin-eintrag {
    transition: background-color 0.2s ease;
}

@media screen and (min-width: 1000px) {
    .termin-eintrag:hover {
        background-color: #f5f9fd;
    }
}
/* Kleiner Farbakzent bei Terminen */

.termin-datum {
    position: relative;
    padding-left: 14px;
}

.termin-datum::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: #2868ad;
}
/* Mehrtägige Termine im Kalender verbinden */
@media screen and (min-width: 601px) {

    .termin-kalender-termin-start {
        margin-right: -9px;
        border-radius: 3px 0 0 3px;
    }

    .termin-kalender-termin-mitte {
        margin-left: -9px;
        margin-right: -9px;
        border-radius: 0;
        border-left: 0;
    }

    .termin-kalender-termin-ende {
        margin-left: -9px;
        border-radius: 0 3px 3px 0;
        border-left: 0;
    }
}
/* Schulfreie Tage: Ferien und Feiertage */
.termin-kalender-termin.termin-kalender-schulfrei {
    background: #fff4d6;
    color: #9a6500;
    border-left-color: #e2a400;
}
/* Hover bei normalen Terminen */
.termin-kalender-termin:hover {
    background: #dcecf8;
    cursor: pointer;
}

/* Hover bei schulfreien Tagen */
.termin-kalender-termin.termin-kalender-schulfrei:hover {
    background: #ffe9ad;
}
/* TERMIN-DETAILFENSTER */
.termin-detail-inhalt {
    border-radius: 8px;
    padding: 28px 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.termin-detail-titel {
    margin: 0 40px 16px 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    color: #2868ad;
}

.termin-detail-datum {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #333333;
}

.termin-detail-info {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
}

.termin-detail-kalender {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #2868ad;
    border-radius: 4px;
    background: #2868ad;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
}

.termin-detail-kalender:hover,
.termin-detail-kalender:focus {
    background: #20578f;
    border-color: #20578f;
}

.termin-detail-schliessen {
    color: #777777;
    transition: color 0.15s ease;
}

.termin-detail-schliessen:hover {
    color: #2868ad;
}

@media screen and (max-width: 600px) {
    .termin-detail-inhalt {
        width: calc(100% - 32px);
        padding: 24px 20px;
        box-sizing: border-box;
    }

    .termin-detail-kalender {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
/* Titel im Detailfenster bei schulfreien Tagen */
.termin-detail-titel.termin-detail-titel-schulfrei {
    color: #9a6500;
}