/* Globale Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 80 Graden achtergrond voor desktop */
body {
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(80deg, #f0f0f2 28%, #ffffff 28.1%);
    z-index: -1;
}

/* --- DESKTOP LAY-OUT (Standaard) --- */

/* Vastgezette Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 15%;
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.logo-container {
    width: 100%;
    max-width: 180px;
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-links a, .no-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.nav-links a {
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.no-link {
    cursor: default;
    user-select: none;
}

.sub-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1.25rem;
    margin-top: 0.75rem;
}

.sub-nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a.active {
    color: #000000 !important;
    font-style: italic !important;
    opacity: 1 !important;
    position: relative;
    background-color: rgba(247, 247, 249, 0.2);
}

/* Hoofd Inhoud */
.main-content {
    margin-left: 20%;
    width: 65%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* --- HERO INTRODUCTIE --- */
.hero-introduction {
    background-color: rgba(247, 247, 249, 0.5);
    padding: 1.75rem;
    width: 100%;
    border-radius: 8px;
}

.hero-introduction h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-introduction h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #444444;
    margin-bottom: 1.5rem;
}

.hero-introduction p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #222222;
}

/* --- B2B IN-LINE TEKSTBLOKKEN (50% Transparant met Text-Wrap) --- */
.text-block {
    background-color: rgba(247, 247, 249, 0.5);
    padding: 1.75rem;
    width: 100%;
    border-radius: 8px;
    scroll-margin-top: 2rem; /* Rustpunt na menu scroll */
}

/* Voorkomt dat op elkaar volgende blokken rare overlap krijgen door zwevende elementen */
.text-block::after {
    content: "";
    display: table;
    clear: both;
}

.text-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.text-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.text-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #222222;
}

/* 🌟 NIEUW: De Omvloeiende Afbeeldingsmechanica */
.inline-img-right {
    float: right;
    width: auto;        
    height: 240px;       
    max-width: 45%;      /* Voorkomt dat een extreem brede afbeelding de tekst wegdrukt */
    margin-left: 1.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    object-fit: contain; /* Zorgt dat de afbeelding netjes schaalt zonder vervorming */
}

.inline-img-left {
    float: left;
    width: auto;        
    height: 240px;       
    max-width: 45%;      /* Voorkomt dat een extreem brede afbeelding de tekst wegdrukt */
    margin-right: 1.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    object-fit: contain; /* Zorgt dat de afbeelding netjes schaalt zonder vervorming */
}

/* B2B Corporate Footer */
.corporate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555555;
    padding: 1.25rem 1.75rem;
    margin-top: 1.5rem;
}

.footer-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.kvk-tag {
    color: #777777;
}

.footer-right {
    text-align: right;
    font-style: italic;
}


/* --- RESPONSIVE MEDIA QUERY (Mobiel) --- */
@media screen and (max-width: 768px) {
    body::before {
        background: #ffffff;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        background-color: #f0f0f2;
        border-bottom: 1px solid #ddd;
        gap: 1.5rem;
    }

    .logo-container {
        max-width: 120px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .sub-nav-links {
        padding-left: 1rem;
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
        gap: 1.5rem;
    }

    .hero-introduction, .text-block {
        padding: 1.25rem;
    }

    .hero-introduction h1 { font-size: 1.75rem; }
    .hero-introduction h2 { font-size: 1.2rem; }
    .text-block h2 { font-size: 1.5rem; }
    .text-block h3 { font-size: 1.15rem; }

    /* 🌟 MOBIELE TRANSITIE: Schakel floats uit en stapel afbeelding boven tekst */
    .inline-img-right, .inline-img-left {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.25rem 0; /* Plaatst afbeelding strak boven de tekst met een onder-marge */
    }

    .corporate-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .footer-right {
        text-align: left;
    }
}
