/* =================================== HERO =================================== */

#leistungenHero{
    position: relative;
    --max-size: 1150px;
    box-sizing: border-box;
    min-height: calc(100vh - var(--header-height));
    height: auto;
    width: 100vw;
    padding: 7% 1rem 3rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background: var(--bg);
    background-image: url("/assets/images/leistungen_page/Leistungen_Page_Landing_BG.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#leistungenHero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

#leistungenHero > * {
    /*Make sure opacity is only applied to bottom layer*/
    z-index: 2;
}

#leistungenHero h1 {
    width: 100%;
    max-width: var(--max-size);
    font-size: var(--font-size-xxxl);
    color: var(--primary-hover);
}

#leistungenHero p {
    font-size: var(--font-size-l);
    max-width: calc(var(--max-size));
    color: var(--text);
    line-height: 2;
}

#leistungenHero p b{
    color: var(--primary-hover);
}

.btn-wrapper{
    margin-top: 3rem;
    width: 100%;
    max-width: var(--max-size);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 3rem;
}

#leistungenHero h2{
    font-size: var(--font-size-l);

}

@media (max-width: 600px) {
    #leistungenHero {
        --max-size: 600px;
        padding: 1rem .5rem 3rem .5rem;
    }

    #leistungenHero h1 {
        font-size: var(--font-size-xl);
        max-width: 100vw;
        text-wrap: balance;

    }

    #leistungenHero p {
        font-size: var(--font-size-m);
        line-height: 1.75;
    }

    .btn-wrapper {
        margin-top: 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .btn-wrapper .cta-btn{
        width: 100%;
    }


}

/* =================================== Overview =================================== */

#leistungenOverview {
    --max-size: 1450px;
    box-sizing: border-box;
    width: 100vw;
    min-height: calc(100vh - var(--header-height));
    height: auto;
    padding: 3rem 1rem 80px 1rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background: var(--bg);
}

.heading-container{
    width: 100%;
    max-width: var(--max-size);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    margin-bottom: 5rem;
}

.heading-container h2{
    margin: 0;
    font-size: var(--font-size-xxl);
    color: var(--text);
}

.heading-container p{
    margin: 0;
    font-size: var(--font-size-m);
    color: var(--primary-hover);
    font-family: var(--font-company);
    font-weight: 800;
}

.leistungen-grid {
    width: 100%;
    max-width: var(--max-size);
    display: grid;
    grid-template-columns: repeat(auto-fit, 450px);
    grid-gap: 50px;
    align-items: stretch;
    justify-items: center;
    justify-content: center;
}

.service-card {
    background: var(--surface-elevated);
    width: 100%;
    min-height: 500px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    border: 1px solid var(--border-elevated);
}

.service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card-content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    box-sizing: border-box;
    padding: 1rem 20px .5rem 20px;
}

.service-card-content h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    font-family: var(--font-company);
}

.service-card-content p {
    min-height: 85px;
    line-height: 1.75;
    font-size: var(--font-size-m);
    font-weight: 500;
    color: var(--text);
    font-style: italic;
}

.service-card-content a {
    text-decoration: none;
    color: var(--primary);
    margin-top: auto;
    margin-right: auto;
    position: relative;
    box-sizing: border-box;
    padding-top: 1rem;
}

.service-card-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: 300ms;
}

.service-card-content a:hover::after {
    width: 100%;
}

.service-card-content ul {
    margin: 0;
    padding: 0 0 0 1rem;
    list-style: none;
}

.service-card-content ul li {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.service-card-content ul li::before {
    content: "";
    background-image: url("/assets/fitted_icons/check_18dp_E3E3E3_FILL0_wght400_GRAD0_opsz20.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(41%) sepia(73%) saturate(1265%) hue-rotate(8deg) brightness(102%) contrast(109%);
}

@media (max-width: 1050px) {
    .leistungen-grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: unset;
        grid-auto-columns: 45%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        grid-gap: 16px;
        padding: 0 16px;
        justify-content: flex-start;
        align-items: stretch;

    }

    .service-card {
        scroll-snap-align: center;
        width: 100%;
        min-height: 400px;
        height: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        border: 1px solid var(--border-elevated);
    }

}

@media (max-width: 600px) {
    #leistungenOverview {
        --max-size: 600px;
    }

    .heading-container {
        margin-bottom: 3rem;
    }

    .heading-container h2 {
        font-size: var(--font-size-xl);
    }


    .leistungen-grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: unset;
        grid-auto-columns: 85%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        grid-gap: 16px;
        padding: 0 16px;
        justify-content: flex-start;
    }

    .service-card {
        scroll-snap-align: center;
        width: 100%;
        min-height: 400px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        border: 1px solid var(--border-elevated);
    }

    .service-img {
        height: 165px;
    }

    .service-card-content {
        width: 100%;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        box-sizing: border-box;
        padding: 1rem 10px .5rem 10px;
    }

    .service-card-content h3 {
        margin: 0;
        font-size: var(--font-size-l);
        font-weight: 600;
        font-family: var(--font-company);
    }

    .service-card-content p {
        min-height: 85px;
        line-height: 1.6;
        font-size: var(--font-size-m);
        font-weight: 500;
        color: var(--text);
        font-style: italic;
    }

    .service-card-content ul li{
        font-size: var(--font-size-s);
    }
}

/* =================================== BENEFITS =================================== */

#benefits {
    --max-size: 1450px;
    box-sizing: border-box;
    width: 100vw;
    height: auto;
    padding: 4rem 1rem 80px 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg);
}

.benefits-heading{
    width: 100%;
    max-width: var(--max-size);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.eyebrow{
    font-size: var(--font-size-m);
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    font-family: var(--font-company);
}

.benefits-heading h2{
    margin: 0 0 1rem 0;
    font-size: var(--font-size-xxl);
}

.subheading{
    max-width: calc(var(--max-size) * .7);
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-size-l);
}

.benefits-grid{
    margin-top: 4rem;
    width: 100%;
    max-width: var(--max-size);
    display: grid;
    grid-template-columns: repeat(auto-fit, 450px);
    grid-gap: 50px;
    align-items: stretch;
    justify-items: center;
    justify-content: center;
}

.benefits-grid-item{
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 6px;
    width: 100%;
    background-color: var(--surface);
    transition: 300ms;
}

.benefits-grid-item:hover{
    background-color: var(--surface-elevated);
}

.benefits-grid-item h3{
    color: var(--primary);
    font-size: var(--font-size-l);
    min-height: 50px;
}

.benefits-grid-item p{
    line-height: 1.75;
}

@media (max-width: 983px) {

    .benefits-heading {
        width: 90vw;
    }

    .subheading {
        text-wrap: balance;
    }

    .benefits-heading h2 {
        margin: 0 0 .5rem 0;
        text-wrap: balance;
    }

    .benefits-grid {
        margin-top: 3rem;
        width: 100%;
        max-width: var(--max-size);
        grid-template-columns: repeat(auto-fit, 90vw);
        grid-row-gap: 25px;
    }

    .benefits-grid-item {
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 1rem;
        border-radius: 6px;
        width: 100%;
        background-color: var(--surface);
        transition: 300ms;
    }
}

@media (max-width: 600px) {
    #benefits {
        --max-size: 600px;
        padding-top: 2rem;
    }

    .benefits-heading h2 {
        margin: 0 0 .5rem 0;
        font-size: var(--font-size-xl);
    }

    .subheading {
        max-width: var(--max-size);
        margin: 0;
        color: var(--text-muted);
        font-size: var(--font-size-m);
    }

    .benefits-grid {
        margin-top: 3rem;
        width: 100%;
        max-width: var(--max-size);
        grid-template-columns: repeat(auto-fit, 90vw);
        grid-row-gap: 25px;
    }

    .benefits-grid-item {
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 1rem;
        border-radius: 6px;
        width: 100%;
        background-color: var(--surface);
        transition: 300ms;
    }


}