.mitarbeiter-grid {
    display: flex;
    justify-content: center;
}

/*.mitarbeiter-grid-en {
    margin-top: 70px;
}*/

.grid {
    display: grid;
    grid-gap: 4px;
    grid-template-columns: repeat(auto-fill,240px);
    grid-auto-flow: dense;
    direction: rtl;
    text-align: left;
    max-width: 1460px;
}

.empty1 {
    height: 240px;
    width: 240px;
}

.empty2 {
    height: 240px;
    width: 240px;
}

.empty3 {
    height: 240px;
    width: 240px;
}

.text {
    grid-column-start: 5;
    grid-column-end: 1;
    grid-row-start: 1;
    grid-row-end: 3;
    color: black;
}

.text-inner {
    align-content: center;
    padding: 20px;
}

.heading {
    /*font-size: 30px;*/
    /*color: #999999;*/
    padding-bottom: 20px;
}

.inner-text {
    font-size: 15px;
    direction: ltr;
}

/*.inner-text-en {
    transform: translateY(-70px);
}*/

.face-top {
    background-position: -240px 0;
}
.face-top-left {
    background-position: 0 0;
}
.face-top-right {
    background-position: -480px 0;
}
.face-middle-left {
    background-position: 0 -240px;
}
.face-middle {
    background-position: -240px -240px;
    cursor: pointer;
}
.face-middle-right {
    background-position: -480px -240px;
}
.face-bottom-left {
    background-position: 0 -480px;
}
.face-bottom {
    background-position: -240px -480px;
}
.face-bottom-right {
    background-position: -480px -480px;
}
.face-active {
    background-position: -240px -720px !important;
}

.face {
    height: 240px;
    width: 240px;
    /*float: left;*/
    /*margin: 10px;*/
    position: relative;
}

p {
    font-family: 'PT Sans', sans-serif;
    font-size: 13px;
    line-height: 16px;
    display: block;
    padding: 0;
    text-align: left;
    margin-bottom: 0 !important;
}

.hidden {
    display: none;
    visibility: hidden !important;
}

.hover {
    visibility: visible;
    opacity: 1;
    display: block;
    cursor: pointer;
}

@media only screen and (max-width: 975px) {
    .grid {
        /*grid-template-columns: 1fr 1fr;*/
        grid-gap: 2px;

     }

    .text {
        grid-column-start: 3;
        grid-column-end: 1;
        grid-row-start: 1;
        grid-row-end: 4;
    }

    .empty1, .empty2, .empty3 {
        display: none;
    }
}

@media only screen and (max-width: 725px) or (orientation: landscape){
    .grid {
        grid-template-columns: repeat(2, 240px);
        grid-gap: 2px;

     }

    .text {
        grid-column-start: span 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: span 5;
    }

    .empty1, .empty2, .empty3 {
        display: none;
    }
}

@media only screen and (max-width: 565px) {
    .grid {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        grid-template-columns: unset;
    }

    .text {
        width: 100%;
    }

    .empty1, .empty2, .empty3 {
        display: none;
    }
}

@media only screen and (max-width: 1460px) {
    .grid {
        max-width: 1230px;
    }
    .empty3 {
        display: none;
    }
}
@media only screen and (max-width: 1330px) {
    .grid {
        max-width: 1216px;
    }
}
@media only screen and (max-width: 1216px) {
    .grid {
        max-width: 975px;
    }
    .empty2, .empty1 {
        display: none;
    }
}
@media only screen and (max-width: 1000px) {
    .grid {
        max-width: 975px;
    }
}
@media only screen and (max-width: 975px) {
    .empty2, .empty1, .empty3 {
        display: unset;
    }
    .grid {
        max-width: 966px;
    }
}

@media only screen and (max-width: 966px) {
    .empty2, .empty1, .empty3 {
        display: none;
    }
    .grid {
        max-width: 724px;
    }
}

@media only screen and (max-width: 724px) {
    .empty2, .empty1, .empty3 {
        display: none;
    }
    .grid {
        max-width: 485px;
    }
}