﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --fx-bg: #ffffff;
    --fx-surface: rgba(255,255,255,0.92);
    --fx-text: #1f1f1f;
    --fx-text-muted: rgba(0,0,0,.74);
    --fx-border: rgba(0,0,0,.08);
    --fx-radius: 28px;
    --fx-radius-lg: 36px;
    --fx-gap: clamp(1.6rem, 2.5vw, 3rem);
    --fx-shadow-1: 0 2px 8px rgba(0,0,0,.04);
    --fx-shadow-2: 0 8px 28px rgba(0,0,0,.08);
    --fx-shadow-3: 0 18px 46px rgba(0,0,0,.12);
    --fx-gradient: radial-gradient(120% 100% at 20% 0%, rgba(37,100,207,.035), transparent 70%);
    --fx-font-display: 'Inter', sans-serif;
}

body {
    font-family: var(--fx-font-display);
    transition: background-color 1.2s ease-in-out;
    background-color: transparent;
    color: var(--fx-text);
    margin: 0;
    padding: 0;
}

.subblok {
    opacity: 0;
    transform: translateY(40px);
    background: var(--fx-surface);
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow-1), var(--fx-shadow-2);
    overflow: hidden;
    max-width: 40vw;
    margin: 8rem auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: opacity 0.7s cubic-bezier(0.28,0.84,0.42,1), transform 0.7s cubic-bezier(0.28,0.84,0.42,1), box-shadow 0.3s ease;
}

    .subblok.in-view {
        opacity: 1;
        transform: none;
    }

.subblok-foto {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    object-position: center center;
}

.subblok-content {
    padding: 0 5rem 5rem 5rem;
}

.subblok-titel {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--fx-text);
    line-height: 1.17;
}

.subblok-tekst {
    font-size: 1.09rem;
    color: var(--fx-text-muted);
    margin-bottom: 0;
}

.diensten-header {
    position: relative;
    background: var(--fx-gradient), var(--fx-bg);
    margin-top: 0;
    text-align: center;
    height: 65vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 55% 98%, 50% 98%, 45% 98%, 0% 100%);
    overflow: hidden;
}

.Diensten-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 65vh;
    max-height: 600px;
    object-fit: cover;
    filter: brightness(0.95) saturate(1.05);
    transition: transform 0.5s ease;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 55% 98%, 50% 98%, 45% 98%, 0% 100%);
}

    .Diensten-image:hover {
        transform: scale(1.02);
    }

.diensten-tekst-blok {
    max-width: 1200px;
    margin: 0 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: clamp(2.2rem, 4vw, 3rem);
        font-weight: 800;
        color: var(--fx-text);
        margin-bottom: 40px;
    }

    .diensten-tekst-blok p.lead {
        font-size: clamp(1.15rem, 1.4vw, 1.4rem);
        font-weight: 400;
        color: var(--fx-text-muted);
        margin-bottom: 60px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.8;
    }

    .diensten-tekst-blok h2 {
        font-size: clamp(1.6rem, 2.2vw, 2rem);
        font-weight: 700;
        margin-top: 80px;
        margin-bottom: 20px;
        color: var(--fx-text);
    }

    .diensten-tekst-blok p,
    .diensten-tekst-blok ul {
        font-size: 1.15rem;
        color: var(--fx-text-muted);
        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;
            }

.sierblok {
    padding: clamp(2.5rem, 5vw, 5rem) 1.5rem;
    background: var(--fx-bg);
}

.sierblok-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--fx-gap);
    align-items: center;
}

    .sierblok-container.reverse .sierblok-foto {
        order: -1;
    }

.sierblok-tekst {
    color: var(--fx-text);
}

    .sierblok-tekst h2 {
        font-size: clamp(1.8rem, 2.6vw, 2.4rem);
        font-weight: 700;
        letter-spacing: -0.015em;
        margin: 0 0 .75rem 0;
    }

    .sierblok-tekst p {
        font-size: clamp(1rem, 1.2vw, 1.125rem);
        line-height: 1.7;
        color: var(--fx-text-muted);
        max-width: 62ch;
    }

.sierblok-foto {
    display: flex;
    justify-content: center;
}

    .sierblok-foto img {
        width: min(90%, 560px);
        height: auto;
        border-radius: var(--fx-radius-lg);
        outline: 1px solid var(--fx-border);
        box-shadow: var(--fx-shadow-1), var(--fx-shadow-2), var(--fx-shadow-3);
        object-fit: cover;
        transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
        filter: saturate(1.02) contrast(1.02);
    }

        .sierblok-foto img:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 32px rgba(0,0,0,.12), 0 22px 64px rgba(0,0,0,.18);
        }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: none;
    }
}

@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;
    }

    .diensten-header {
        height: 45vh;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 55% 99%, 50% 99%, 45% 99%, 0% 100%);
    }

    .Diensten-image {
        height: 45vh;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 55% 99%, 50% 99%, 45% 99%, 0% 100%);
    }

    .subblok {
        max-width: 90vw;
        margin: 6rem auto;
    }

    .subblok-foto {
        height: 250px;
    }

    .subblok-content {
        padding: 1.1rem 0.7rem;
    }

    .subblok-titel {
        font-size: 1.4rem;
    }

    .sierblok-container {
        grid-template-columns: 1fr;
    }

        .sierblok-container.reverse .sierblok-foto {
            order: 0;
        }
    .hero-content {
        align-items: flex-end;  
        padding: 1.25rem;
    }

        .hero-content p {
            font-size: clamp(1rem, 2.5vw, 1.3rem);
            max-width: 85ch;
        }
}

@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;
    }
}

@media (max-width: 600px) {
    .diensten-tekst-blok {
        padding: 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;
        }
    .hero-content {
        padding: 1rem;
    }

        .hero-content p {
            font-size: 1.05rem;
            padding: .5rem .75rem;
            border-radius: 10px;
        }
}
.diensten-foto {
    position: relative; 

.diensten-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    inset: 0; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: clamp(1rem, 4vw, 3rem);
    z-index: 2; 
    text-align: center;
}

    .hero-content p {
        color: #fff;
        margin: 0;
        max-width: 70ch;
        font-weight: 700;
        font-size: clamp(2.6rem, 4.5vw, 5.6rem);
        line-height: 1.4;
        text-shadow: 0 2px 8px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.25);
        padding: .6rem 1rem;
        border-radius: 12px;
        backdrop-filter: blur(2px);
    }

.diensten-header {
    position: relative; 
}