/*
* Prefixed by:
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

.service-subpages {
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4.5rem;
    justify-content: flex-start;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    align-items: stretch;
}

@media (min-width: 1380px) {
    /* max 3 Spalten*/
    .service-subpages {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-subpages .service-subpages-tile {
    background-position: center;
    background-size: cover;
    display: inline-block;
    text-align: left;
    vertical-align: top;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
    color: #fff;
    padding-right: 0;
    width: 100%;
    min-height: 35rem;
    margin-bottom: 0;
    -webkit-box-shadow: 0 0 1rem rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.25);

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.service-subpages-tile:before {
    content: '';
    padding-bottom: 90%;
}

.full-content .lg_4.service-subpages-tile {
    padding-right: 0;
}

.service-subpages .overlay {
    width: 100%;
    /* height: 100%; */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
    position: relative;
    opacity: 1;
}

.service-subpages .overlay.static:hover,
.service-subpages .overlay.static {
    opacity: 1;
}

.service-subpages .overlay:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 0;
    opacity: 0.6;
}

.service-subpages .overlay.static::after {
    opacity: 1;
}

/* .service-subpages .overlay:hover {
opacity: 0; */
/* } */

.service-subpages .service-subpages-tile a {
    color: #fff;
    height: 100%;
    width: 100%;
    padding: 10%;
    padding: 3rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.service-subpages .service-subpages-tile a:after {
    content: url(../../../img/arrow-next-white.svg);
    bottom: 3.5rem;
    right: 3rem;
    position: absolute;
    width: 3rem;
    height: 3rem;
}

.service-subpages .service-subpages-tile .square .button-wrapper {
    min-height: 3.7rem;
    display: flex;
    padding-right: 15%;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.service-subpages .square {
    width: 100%;
    display: flex;
    flex-direction: column;
    vertical-align: top;
    color: #fff;
    overflow: hidden;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
}

.service-subpages .overlay .service-subpages-name {
    color: #fff;
    margin: 0;
    /* width: 80%; */
    display: inline-block;
    font-weight: 550;
    font-weight: 350;
    line-height: initial;
    padding-top: 0.5rem;
}

.service-subpages .overlay .service-name {
    color: #fff;
    margin: 0;
    /* width: 80%; */
    display: inline-block;
    font-weight: 550;
    line-height: initial;
    padding-top: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.service-subpages .overlay .service-subpages-name + p {
    padding-right: 15%;
    padding-top: 3rem;
}

@media screen and (max-width: 1080px) {
    .service-subpages .service-subpages-tile {
        /* width: calc(50% - 3rem) !important; */
    }
}

@media screen and (max-width: 768px) {
    .service-subpages .service-subpages-tile {
        width: 100% !important;
        height: auto;
        min-height: 22rem;
        /* margin-bottom: 3rem; */
    }
}
