:root {
    --gap: 30px;
}

@media screen and (max-width: 850px) {
    :root {
        --gap: 15px;
    }
}

.adnord-box-gridcontainer{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: var(--gap);
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin: var(--gap) 0;
}

.grid-box{
    /* padding: 15px 0; */
    width: 100%;
} 

.grid-box p{
    margin-bottom: 0!important;
} 

@media screen and (min-width: 1000px) {
    .grid-box.box-33{
        /* width: 33.3%; */
        width: calc(33.3% - (var(--gap) / 1.5));
    }
    
    .grid-box.box-66{
        /* width: 66.6%; */
        width: calc(66.6% - (var(--gap) / 2));
    }
}

@media screen and (min-width: 800px) {
    .grid-box.box-50{
        width: 50%;
        width: calc(50% - (var(--gap) / 2));
    }
}

.boxgrid-content{
    padding: 20px 15px;
    height: 100%;
}

.boxgrid-content .tm-btn{
    margin-top: 10px;
}

.dark-box .boxgrid-content .tm-btn{
    margin-top: 15px;
    margin-bottom: 0;
}

.light-box .boxgrid-content{
    background-color: var(--grey);
}

.dark-box .boxgrid-content{
    background-color: var(--primary);
    color: #fff !important;
    padding: 30px 25px;
}

.dark-box .boxgrid-content h2,
.dark-box .boxgrid-content h3,
.dark-box .boxgrid-content h4,
.dark-box .boxgrid-content h5 {
    color: #fff !important;
    font-size: 26px;
    text-transform: uppercase;
}

.dark-box .boxgrid-content h2 {
    font-size: 30px;
}

.text-side {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-line-pack: justify;
        align-content: space-between;
    height: 100%;
}

@media screen and (min-width: 1000px){
    .box-33.with-img .text-side,
    .box-50.with-img .text-side {
        height: calc(100% - 250px);
    }
}


/*Wenn Bild*/

.with-img .img-side {
    min-height: 240px;
    margin-bottom: 15px;
}

.with-img .img-side img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    min-height: 240px;
}

@media screen and (max-width: 1000px) and (min-width: 700px){
    .with-img:not(.box-50) .boxgrid-content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

    .with-img:not(.box-50) .boxgrid-content .text-side {
        width: calc(100% - 250px);
        padding-left: 15px;
        margin-bottom: 0;
    }

    .with-img:not(.box-50) .img-side {
        width: 250px;
        height: 100%;
    }
}

@media screen and (min-width: 700px){
    .box-66.with-img .boxgrid-content,
    .box-100.with-img .boxgrid-content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

    .box-66.with-img .boxgrid-content .text-side,
    .box-100.with-img .boxgrid-content .text-side {
        width: calc(100% - 250px);
        padding-left: 20px;
        margin-bottom: 0;
    }

    .box-66.with-img .img-side,
    .box-100.with-img .img-side {
        width: 250px;
        height: 100%;
    }

    /* .box-33.with-img .img-side img,
    .box-50.with-img .img-side img {
        max-height: 240px;
    } */

}

@media screen and (min-width: 1000px){
    .box-33.with-img .img-side img,
    .box-50.with-img .img-side img {
        max-height: 240px;
    }
}

@media screen and (max-width: 700px){
    .box-33.with-img .img-side img,
    .box-50.with-img .img-side img {
        max-height: 240px;
    }

    .text-side {
        height: auto;
    }
}

/*Mitarbeiter & Downloads*/
.team-container,
.download-container {
    margin-top: 5px;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}

.team-container .box-50.with-img img,
.download-container .box-33.with-img img  {
    height: 320px;
    margin-bottom: 15px;
    width: 100%;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.team-container .box-50.with-img img {
    -o-object-fit: cover;
       object-fit: cover;
}

.download-container .box-33.with-img img  {
    -o-object-fit: contain;
       object-fit: contain;
    background-color: rgba(255, 255, 255, 0.6);
}

.download-container a.box-33.with-img {
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.download-container a.box-33.with-img:hover {
    -webkit-transform: scale(1.06);
        -ms-transform: scale(1.06);
            transform: scale(1.06);
}

.download-container a.box-33.with-img:hover img  {
    /* opacity: 0.7; */
    background-color: var(--primary-transparent-light);
}

@media screen and (max-width: 1000px) and (min-width: 800px){
    .download-container a.box-33.with-img {
        width: calc(50% - (var(--gap) / 2));
    }
    .download-container .with-img:not(.box-50) .boxgrid-content .text-side {
        width: 100%;
    }

    .team-container .box-50.with-img {
        width: 100%;
    }
}