/* ==========================================================================
   1. HEADER & NAVIGATION
   ========================================================================== */
#header {
    background: #ffffff !important;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: flex !important;
    align-items: center !important;
    min-height: 80px;
    transition: all 0.3s ease;
}

#header .navbar {
    width: 100%;
    display: flex !important;
    align-items: center !important;
}

#header.scrolled {
    min-height: 60px;
}

/* Logo & Text Styling */
.navbar-brand.mr-2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    text-decoration: none !important;
}

.navbar-brand.mr-2 img {
    height: 70px !important; /* Iets verkleind voor betere verhouding */
    width: auto !important;
    display: block !important;
    transition: height 0.3s ease;
}

.logo-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: #333 !important;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.1 !important;
    transition: font-size 0.3s ease;
}

#header.scrolled .navbar-brand.mr-2 img {
    height: 45px !important;
}

#header.scrolled .logo-text {
    font-size: 0.8rem !important;
}

#header .navbar-nav a,
#header .navbar-nav li a {
    color: #333 !important;
    font-weight: 600;
}

/* ==========================================================================
   2. PAGE STRUCTURE & SPACING
   ========================================================================== */
body {
    padding-top: 80px !important; /* Ruimte voor de fixed header */
}

#body-wrapper.section {
    padding-top: 1rem !important;
    margin-top: 0 !important;
}

.section.modular-text {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section h1, .section h2 {
    margin-top: 0 !important;
}

p {
    text-align: justify !important;
}

/* Container voor tekst-modules op homepage */
.modular-text .container {
    max-width: 900px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* ==========================================================================
   3. EMBEDS & IMAGES
   ========================================================================== */
iframe {
    width: 100%;
    max-width: 1100px;
    height: 600px;
    border: 1px solid #eee !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    display: block;
}

.modular-text img {
    display: block;
    max-width: 100% !important;
    height: auto;
    margin: 2rem auto !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    float: none !important;
}

/* ==========================================================================
   4. PILOTEN / TEAM SECTIE
   ========================================================================== */
.piloten-lijst {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.piloot-row {
    display: flex;
    align-items: center !important; /* Verticaal gecentreerd */
    margin-bottom: 60px;
    gap: 40px;
}

.flex-reverse {
    flex-direction: row-reverse !important;
}

.piloot-foto {
    flex: 1;
}

.piloot-foto img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.piloot-tekst {
    flex: 1.5;
}

/* ==========================================================================
   5. MOBILE & TABLET (RESPONSIVE)
   ========================================================================== */
@media (max-width: 840px) {
    body {
        padding-top: 75px !important;
    }

    #header {
        min-height: 65px !important;
        padding: 5px 10px !important;
    }

    .navbar-brand.mr-2 img {
        height: 45px !important;
    }

    .logo-text {
        font-size: 0.9rem !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    /* Piloten onder elkaar op mobiel */
    .piloot-row, .flex-reverse {
        flex-direction: column !important;
        display: block !important;
        margin-bottom: 40px;
    }

    .piloot-foto, .piloot-tekst {
        width: 100% !important;
        margin-bottom: 20px;
    }

    iframe {
        height: 450px !important;
        margin: 15px auto !important;
    }

    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.4rem !important; }
}

/* ==========================================================================
   6. MOBILE NAV OVERLAY (QUARK SPECIFIC)
   ========================================================================== */
.overlay-menu .treemenu {
    padding: 0;
    margin: 0;
    text-align: center !important;
}

.overlay-menu .treemenu li {
    list-style: none !important;
    background: none !important;
    border: none !important;
    padding: 1rem 0 !important;
}

.overlay-menu .treemenu a {
    font-size: 1.6rem !important;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

/* Verberg de 'plusjes' in het mobiele menu */
.treemenu .toggler {
    display: none !important;
}


/* Container voor tekst en foto naast elkaar */
.intro-flex-container {
    display: flex;
    gap: 40px; /* Ruimte tussen tekst en foto */
    align-items: flex-start;
    margin-bottom: 40px;
}

.intro-text { 
    flex: 1; /* Neemt de beschikbare ruimte in */
    font-size: 1.05rem; 
    text-align: left; 
    color: #333; 
}

.intro-image-wrapper {
    flex: 0 0 300px; /* De foto blijft exact 300px breed */
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Past mooi bij je andere kaarten */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mobiel: Foto onder de tekst zetten */
@media (max-width: 768px) {
    .intro-flex-container {
        flex-direction: column;
    }
    .intro-image-wrapper {
        flex: none;
        width: 100%;
        max-width: 400px; /* Voorkom dat de foto gigantisch wordt op mobiel */
        margin: 0 auto;
    }
}