/* Mitarbeiterübersicht */

.mitarbeiteruebersicht__abteilung .abteilung__name {
    text-transform: uppercase;
    border-bottom: 1px solid #3c3c3c;
    color: #3c3c3c;
    font-weight: 500;
    font-size: 1.25em;
    padding: 12px 0;
    margin: 0;
}

.mitarbeiter {
    display: grid;
    gap: 12px;
    padding: 24px 12px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mitarbeiter__container {
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05);
    transition: 0.4s transform cubic-bezier(0.25, 0.8, 0.25, 1), 0.4s box-shadow ease, 0.4s -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1);
    /*transition: 0.2s transform cubic-bezier(0.155, 1.105, 0.295, 1.12), 0.2s box-shadow, 0.2s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);*/
    max-width: 320px;
    background-color: white;
    will-change: transform, box-shadow;
}

.mitarbeiter__container:hover {
    transform: scale(1.025);
    cursor: pointer;
}

.mitarbeiter__container .mitarbeiter__bild img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.mitarbeiter__container .mitarbeiter__bild img:hover {
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    filter: grayscale(0%);
}

.mitarbeiter__container .mitarbeiter__details {
    padding: 12px;
    font-size: 18px;
    margin-bottom: 24px;
}

.mitarbeiter__name {
    display: inline-block;
    font-weight: 600;
    border-bottom: 2px solid #e9df02;
    margin-bottom: 8px;
}

.mitarbeiter__email a {
    font-weight: 300;
    color: #3c3c3c;
    letter-spacing: 0.22px;
    text-transform: none;
}

/* Mitarbeiteruebersicht - Popup */
.mitarbeiter__popup {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.2);
    transition: all 0.3s ease-in-out;
}

.mitarbeiter__popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    padding: 0 12px;
}

.popup__container {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: scroll;
    scrollbar-width: none;
}

.popup__container .profile-text {
    display: flex;
    align-items: center;
}

.popup__container img {
    height: 320px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border-bottom: 4px solid #e9df02;
}

.details__text {
    display: flex;
    flex-direction: column;
    padding: 24px;
    margin-top: -24px;
}

.details__text .name {
    font-size: 24px;
    font-weight: bold;
}

.details__text .title {
    opacity: 0.6;
    font-weight: 300;
}

button.cancel {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-top-left-radius: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    fill: white;
}

.popup__container p {
    text-align: justify;
}

.popup__interactions {
    display: flex;
    justify-content: end;
    margin-top: -26px;
    height: 48px;
    margin-left: 24px;
    margin-right: 24px;
}

.popup__interactions .interactions__phone,
.popup__interactions .interactions__email {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border-radius: 24px;
    background-color: #e9df02;
    fill: #3c3c3c;
    margin-left: 12px;
    border: none;
}

.popup__interactions .interactions__phone:hover,
.popup__interactions .interactions__email:hover {
    background-color: #ddd402;
    fill: #3c3c3c;
    cursor: pointer;
}

@media (max-width: 576px) {
    .mitarbeiter__container {
        max-width: 100%;
    }
}