﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 1.2s ease-in-out;
    background-color: transparent;
    color: #222;
    margin: 0;
    padding: 0;
}
.subblok {
    position: relative;
    margin: 6rem auto;
    max-width: min(70vw, 1100px);
    min-height: 650px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-left: 6px solid #e60023;
    background: radial-gradient( 160% 200% at 12% 0%, rgba(255,255,255,0.98), rgba(248,245,240,0.94) );
    box-shadow: 0 32px 90px rgba(15,23,42,0.20), 0 12px 24px rgba(15,23,42,0.12), 0 0 0 1px rgba(255,255,255,0.7);
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 1.6s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, background .45s ease;
    isolation: isolate;
}

.subblok::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom,
        rgba(255,255,255,.75),
        transparent 22%
    );
    pointer-events: none;
    z-index: 0;
}
    .subblok > * {
        position: relative;
        z-index: 1;
    }

    .subblok.in-view {
        opacity: 1;
        transform: translateY(0);
    }

.subblok-foto {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 350px; 
    object-fit: cover;
    transform-origin: center center;
    filter: saturate(1.05) contrast(1.02);
    transition: transform 1.1s cubic-bezier(.22,.82,.18,1), filter 1s ease;
}

.subblok:hover .subblok-foto {
    transform: scale(1.03);
    filter: saturate(1.18) contrast(1.06);
}

.subblok-content {
    position: relative;
    z-index: 1;
    margin-top: -2.6rem;
    padding: 1.2rem 4rem 3.6rem 3.4rem;
}

.subblok-titel {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1.3rem;
    color: #1a1f25;
    line-height: 1.25;
    letter-spacing: .2px;
}

.subblok-tekst {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #333;
    margin: 0;
}

.diensten-header {
   
    position: relative;
    background-color: #fff;
    margin-top: 0px;
    text-align: center;

    clip-path: polygon( 0 0, 100% 0, 100% 90%, 55% 98%, 50% 98%, 45% 98%, 0% 100%);
}

.Diensten-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.diensten-tekst-blok {
    max-width: 1200px;
    margin:  0px auto;
    padding: 50px 20px 80px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}
    .diensten-tekst-blok::before {
        content: "";
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        z-index: -1;
        filter: blur(100px);
    }
    .diensten-tekst-blok h1 {
        font-size: 3rem;
        font-weight: 800;
        color: #1e1e1e;
        margin-bottom: 40px;
    }

    .diensten-tekst-blok p.lead {
        font-size: 1.4rem;
        font-weight: 400;
        color: #555;
        margin-bottom: 60px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.8;
    }

    .diensten-tekst-blok h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-top: 80px;
        margin-bottom: 20px;
        color: #1e1e1e;
    }

    .diensten-tekst-blok p,
    .diensten-tekst-blok ul {
        font-size: 1.15rem;
        color: #444;
        line-height: 1.9;
        text-align: left;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .diensten-tekst-blok ul {
        list-style-type: none;
        padding: 0;
    }

        .diensten-tekst-blok ul li {
            position: relative;
            padding-left: 25px;
            margin-bottom: 10px;
        }

            .diensten-tekst-blok ul li::before {
                content: "•";
                position: absolute;
                left: 0;
                top: 0;
                color: #d4a373; 
                font-size: 1.5rem;
                line-height: 1;
            }
h2 {
    margin-top: 100px;
    margin-bottom: 30px;
}
.section-divider {
    width: 200px;
    height: 3px;
    background-color: #d4a373;
    margin: 60px auto;
    border-radius: 2px;
    opacity: 0.6;
}



@keyframes fadeIn {
    to {
        opacity: 1;
        transform: none;
    }
}
.sierblok {
   
    padding: 4rem 2rem;
}
.sierblok-container.reverse {
    flex-direction: row-reverse;
    margin-top:  0px;
    padding-top: 0px;
}

.sierblok-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0vh auto;
    flex-wrap: wrap;
}

.sierblok-tekst {
    flex: 1 1 300px;
    color: #333;
}

    .sierblok-tekst h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .sierblok-tekst p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

.sierblok-foto {
    flex: 1 1 500px;
}

    .sierblok-foto img {
        display: block;
margin: 0 auto;
width: min(90%, 520px);
        height: auto;
        max-height: 50vh;
        border-radius: 30% 40% 12% 20% / 20% 30% 10% 20%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        object-fit: cover;
    }

@media (max-width: 992px) {
    .diensten-tekst-blok h1 {
        font-size: 2.5rem;
    }

    .diensten-tekst-blok p.lead {
        font-size: 1.2rem;
    }

    .diensten-tekst-blok h2 {
        font-size: 1.7rem;
    }

    .subblok {
        max-width: 92vw;
        margin: 5rem auto;
        border-radius: 26px;
    }

    .subblok-foto {
        height: 260px;
    }

    .subblok-content {
        padding: 1.2rem 1.9rem 2.6rem;
    }

        .subblok-content::before {
            left: 1.9rem;
            top: 2.1rem;
            bottom: 2.1rem;
        }

    .subblok-titel {
        font-size: 1.6rem;
    }

    .subblok-tekst {
        font-size: 1.02rem;
    }
}

@media (max-width: 768px) {


    .diensten-tekst-blok {
        padding: 50px 15px 40px 15px;
    }

        .diensten-tekst-blok h1 {
            font-size: 2.2rem;
            margin-bottom: 25px;
        }

        .diensten-tekst-blok p.lead {
            font-size: 1.15rem;
            margin-bottom: 30px;
        }

        .diensten-tekst-blok h2 {
            font-size: 1.6rem;
            margin: 30px 0 10px 0;
        }

    .sierblok {
        padding: 1.5rem 1rem;
    }

    .sierblok-container {
        gap: 1.5rem;
        margin: 2vh auto;
    }

    .section-divider {
        margin: 30px auto;
    }
}

@media (max-width: 600px) {
    .diensten-tekst-blok {
        padding: 80px 15px 60px 15px;
    }

        .diensten-tekst-blok h1 {
            font-size: 2rem;
        }

        .diensten-tekst-blok p.lead {
            font-size: 1.05rem;
        }

        .diensten-tekst-blok h2 {
            font-size: 1.5rem;
        }
    .subblok {
        max-width: 94vw;
        margin: 3.5rem auto;
        border-radius: 22px;
    }

    .subblok-foto {
        height: 220px;
    }

    .subblok-content {
        padding: 1.7rem 1.4rem 2.1rem;
    }

        .subblok-content::before {
            left: 1.4rem;
            top: 1.9rem;
            bottom: 1.9rem;
        }

    .subblok-titel {
        font-size: 1.4rem;
    }

    .subblok-tekst {
        font-size: 0.98rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    h2 {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .sierblok {
        padding: 2.2rem 1.4rem;
    }

    .sierblok-container {
        flex-direction: column;
        gap: 1.4rem;
        max-width: 92vw;
        margin: 0 auto;
    }

    .sierblok-tekst {
        flex: 0 0 auto;
        width: 100%;
    }

    .sierblok-tekst h2 {
        font-size: 1.7rem;
        margin-bottom: .8rem;
    }

    .sierblok-tekst p {
        font-size: 1.06rem;
        line-height: 1.65;
    }

    .sierblok-foto {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .sierblok-foto img {
        width: 100%;
        max-width: 720px;
        height: 360px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
        object-position: center center;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    h2 {
        margin-top: 60px;
        margin-bottom: 22px;
    }

    .sierblok {
        padding: 2.6rem 1.8rem;
    }

    .sierblok-container {
        gap: 2rem;
        max-width: 1100px;
        margin: 0 auto;
        flex-wrap: nowrap;
    }

    .sierblok-tekst h2 {
        font-size: 1.85rem;
        margin-bottom: .9rem;
    }

    .sierblok-tekst p {
        font-size: 1.07rem;
        line-height: 1.65;
    }

    .sierblok-foto {
        display: flex;
        justify-content: center;
    }

    .sierblok-foto img {
        width: 100%;
        max-width: 520px;
        height: 320px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
        object-position: center center;
    }
}

.fade-in {
    opacity: 1;
    transform: none;
    animation: none;
}

.fade-in-tekst {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

    .fade-in-tekst.in-view {
        opacity: 1;
        transform: none;
    }

body.warmtepompen .fade-in-tekst {
    opacity: 1;
    transform: none;
}
