/* =====================================================
   LEHRERINNENTEAM
   ===================================================== */

.lehrerteam {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0 60px;
    box-sizing: border-box;

    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    color: #333333;
}


/* Kartenraster */

.lehrerteam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}


/* Einzelne Person */

.lehrerteam-karte {
    overflow: hidden;
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    background: #f5f8fc;
    box-sizing: border-box;
}


/* Foto */

.lehrerteam-foto {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e6eff9;
}

.lehrerteam-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Platzhalter, falls kein Foto vorhanden */

.lehrerteam-platzhalter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    font-size: 42px;
    line-height: 1;
    font-weight: 600;
    color: #2868ad;
}


/* Text unter dem Foto */

.lehrerteam-daten {
    padding: 18px 15px 20px;
    text-align: center;
}

.lehrerteam-daten h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #2868ad;
}

.lehrerteam-funktion {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #444444;
}

.lehrerteam-gruppe {
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.4;
    color: #555555;
}


/* Mittlere Ansicht */

@media screen and (max-width: 1329px) {

    .lehrerteam-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Mobile Ansicht */

@media screen and (max-width: 999px) {

    .lehrerteam {
        width: calc(100% - 32px);
        padding: 35px 0 45px;
    }

    .lehrerteam-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .lehrerteam-daten {
        padding: 15px 10px 17px;
    }

    .lehrerteam-daten h2 {
        font-size: 17px;
    }

    .lehrerteam-funktion,
    .lehrerteam-gruppe {
        font-size: 14px;
    }
}


/* Sehr kleine Smartphones */

@media screen and (max-width: 480px) {

    .lehrerteam-grid {
        grid-template-columns: 1fr;
    }

    .lehrerteam-karte {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }
}
/* Bereichsüberschriften im LehrerInnenteam */

.lehrerteam-bereichstitel {
    margin: 0 0 22px;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    color: #2868ad;
}

/* Abstand ab dem zweiten Bereich */
.lehrerteam-grid + .lehrerteam-bereichstitel {
    margin-top: 55px;
}

@media screen and (max-width: 999px) {

    .lehrerteam-bereichstitel {
        margin-bottom: 18px;
        font-size: 24px;
    }

    .lehrerteam-grid + .lehrerteam-bereichstitel {
        margin-top: 40px;
    }
}

/* Popup LehrerInnenteam */

.lehrerteam-modal {
    display: none;
}

.lehrerteam-modal.ist-offen {
    display: flex;
    position: fixed;
    z-index: 9999;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.lehrerteam-modal-inhalt {
    position: relative;
    width: 100%;
    max-width: 760px;
    padding: 48px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    text-align: left;
}

.lehrerteam-modal-foto {
    float: left;
    width: 210px;
    margin: 0 38px 20px 0;
}

.lehrerteam-modal-foto img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
}

.lehrerteam-modal-name {
    margin: 20px 35px 8px 0;
    color: #2875bd;
    font-size: 30px;
    line-height: 1.2;
}

.lehrerteam-modal-funktion,
.lehrerteam-modal-gruppe {
    font-size: 17px;
    line-height: 1.5;
    color: #555;
}

.lehrerteam-modal-spruch {
    position: relative;
	margin-left: 248px;
    margin-top: 28px;
    padding: 18px 22px 18px 30px;
    background: #f2f7fb;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    color: #4b5560;
}

.lehrerteam-modal-spruch::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: #2875bd;
}

.lehrerteam-modal-inhalt::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 999px) {

    @media (max-width: 700px) {

    .lehrerteam-modal {
        padding: 16px;
    }

    .lehrerteam-modal-inhalt {
        width: 100%;
        max-width: 440px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 32px 22px 26px;
        text-align: center;
        border-radius: 18px;
    }

    .lehrerteam-modal-foto {
        float: none;
        width: 145px;
        margin: 0 auto 22px;
    }

    .lehrerteam-modal-foto img {
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .lehrerteam-modal-name {
        margin: 0 28px 6px;
        font-size: 25px;
    }

    .lehrerteam-modal-funktion,
    .lehrerteam-modal-gruppe {
        font-size: 16px;
    }

    .lehrerteam-modal-spruch {
        clear: both;
        width: 100%;
        box-sizing: border-box;
        margin: 26px 0 0;
        padding: 18px 18px 18px 24px;
        text-align: left;
        font-size: 16px;
        line-height: 1.55;
    }
}
}

.lehrerteam-modal-schliessen {
    position: absolute;
    top: 10px;
    right: 15px;
    border: 0;
    background: transparent;
    font-size: 32px;
    cursor: pointer;
}

.lehrerteam-karte {
    cursor: pointer;
}
.lehrerteam-modal,
.lehrerteam-modal * {
    font-family: "Open Sans", Arial, sans-serif;
}
/* Hover-Effekt für Lehrerkarten */

.lehrerteam-karte {
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.lehrerteam-karte img {
    transition: transform 0.35s ease;
}

.lehrerteam-karte:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.lehrerteam-karte:hover img {
    transform: scale(1.035);
}
.lehrerteam-foto {
    overflow: hidden;
}
/* Gemeinsames Lehrerfoto */
.lehrerteam-teamfoto {
    margin: 0 auto 55px;
    max-width: 1100px;
}

.lehrerteam-teamfoto img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}