/* =========================================
   GIBBER ITALICUS - HOOFD OPMAAK (CSS)
   ========================================= */

html {
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-color: #d4a373 #f9f9f9;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
    background: #d4a373;
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #d4a373;
    }

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    top: 0 !important;
    position: static !important;
}

#sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #d4a373;
    text-align: center;
    position: relative;
}

    header h1 {
        margin: 0;
        font-family: Georgia, serif;
        font-style: italic;
        color: #4a4a4a;
    }

/* Taalschakelaar (Vlaggetjes) */
.lang-switch {
    position: absolute;
    top: 15px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .lang-switch a img {
        width: 28px;
        height: 21px;
        opacity: 0.5;
        border-radius: 2px;
        transition: opacity 0.2s;
        border: 2px solid transparent;
    }

        .lang-switch a img:hover {
            opacity: 1;
        }

    .lang-switch a.active img {
        opacity: 1;
        border: 2px solid #d4a373;
        border-radius: 2px;
    }

/* Google Translate Verborgen Elementen */
.goog-te-combo {
    padding: 3px 5px;
    border: 1px solid #d4a373;
    border-radius: 3px;
    font-size: 0.8em;
    color: #4a4a4a;
    cursor: pointer;
}

.goog-te-banner-frame,
.skiptranslate > iframe,
iframe.goog-te-banner-frame {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

#goog-gt-tt, .goog-tooltip {
    display: none !important;
    visibility: hidden !important;
}

.goog-te-spinner-pos,
.goog-te-spinner,
.goog-te-spinner-animation {
    display: none !important;
    visibility: hidden !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Facebook Icoon */
.facebook-icon {
    position: absolute;
    top: 15px;
    left: 5%;
    color: #4a4a4a;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: inline-block;
}

    .facebook-icon:hover {
        opacity: 1;
        color: #1877F2;
        transform: scale(1.1);
    }

    .facebook-icon svg {
        width: 28px;
        height: 28px;
        fill: currentColor;
    }

/* Navigatie Menu */
nav {
    background: #4a4a4a;
    display: flex;
    justify-content: center;
    z-index: 1000;
    position: relative;
    flex-wrap: wrap;
}

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
    }

    nav a {
        color: #fff;
        padding: 15px 20px;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 0.85em;
        display: block;
    }

        nav a:hover {
            background: #d4a373;
        }

/* Dropdown Menu (Vogelkamer) */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 220px;
    top: 100%;
    left: 0;
}

    .dropdown-content a {
        text-transform: none;
        border-bottom: 1px solid #444;
    }

.dropdown:hover .dropdown-content {
    display: block;
}

/* Layout en Containers */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-content {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 280px;
}

.content-box {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Responsieve video wrapper (rondom een iframe) */
.page-content .video-wrap,
.page-content p:has(> iframe),
.page-content div:has(> iframe) {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* iframe altijd volledig responsief */
.page-content iframe,
.main-content iframe,
.content-box iframe {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* iframe direct in een <p> netjes opvullen */
.page-content p:has(> iframe),
.content-box p:has(> iframe) {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 4px;
}

/* TinyMCE figure basisstijl */
.page-content figure {
    margin: 8px;
    max-width: 100%;
}

    .page-content figure img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
    }

    /* Links uitlijnen: foto zweeft links, tekst loopt rechts langs */
    .page-content figure.align-left {
        float: left;
        margin: 4px 20px 12px 0;
    }

    /* Rechts uitlijnen: foto zweeft rechts, tekst loopt links langs */
    .page-content figure.align-right {
        float: right;
        margin: 4px 0 12px 20px;
    }

    /* Gecentreerd: geen float, gecentreerd blok */
    .page-content figure.align-center {
        display: block;
        margin: 12px auto;
        text-align: center;
    }

/* Clearfix: tekst plakt niet onder een gefloate foto */
.page-content::after {
    content: '';
    display: table;
    clear: both;
}

/* Foto's naast elkaar */
.page-content .img-row {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.page-content .img-col {
    flex: 1;
    min-width: 120px;
    margin: 0;
}

    .page-content .img-col img {
        width: 100%;
        height: auto;
        display: block;
    }

.page-content figcaption {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    font-style: italic;
    margin-top: 6px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #333;
    color: #bbb;
    margin-top: 50px;
    width: 100%;
    clear: both;
    font-size: 0.9em;
}

    footer a {
        color: #d4a373;
        text-decoration: none;
        margin: 0 10px;
    }

        footer a:hover {
            text-decoration: underline;
        }

.footer-links {
    margin-top: 10px;
}

/* =========================================
   SJABLONEN (TEMPLATES) OPMAAK
   ========================================= */
.tmpl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.tmpl-col {
    flex: 1;
    min-width: 280px;
}

.tmpl-img {
    flex: 1;
    min-width: 280px;
}

    .tmpl-img img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        display: block;
    }

.tmpl-text {
    flex: 2;
    min-width: 280px;
}

/* Styling voor de koppen in pagina's */
.page-content h2 {
    color: #d4a373;
    font-family: Georgia, serif;
    font-size: 1.8em;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.page-content h3 {
    color: #4a4a4a;
    font-size: 1.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

/* =============================================
   MOBIEL HAMBURGER MENU — alleen onder 768px
   Desktop ziet niets van deze regels
   ============================================= */
#hamburger {
    display: none;
}

/* Desktop-reset: boven 600px altijd horizontaal menu, nooit hamburger */
@media (min-width: 601px) {
    #hamburger { display: none !important; }
    #nav-menu  { display: flex !important; flex-wrap: wrap; }
}

@media (max-width: 600px) {

    /* Voorkom horizontaal scrollen */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    header {
        overflow: hidden;
    }

    /* Header: vlaggen en Facebook minder breed */
    .lang-switch {
        position: static;
        justify-content: center;
        flex-wrap: wrap;
        padding: 6px 0 2px;
    }

    .facebook-icon {
        position: static;
        display: block;
        text-align: center;
        padding: 6px 0;
    }

    /* Hamburger knop */
    #hamburger {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        line-height: 1;
        padding: 10px 16px;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Nav wordt een verticale kolom */
    #main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Menu verbergen; zichtbaar via JS-class */
    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #nav-menu.open {
        display: flex;
    }

    /* Menu-items op volle breedte */
    #nav-menu li {
        width: 100%;
    }

    #main-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid #555;
    }

    /* Dropdown op mobiel: klikbaar onder parent */
    .dropdown-content {
        position: static;
        display: none;
        background-color: #3a3a3a;
        min-width: unset;
        width: 100%;
    }

    .dropdown-content.open {
        display: block;
    }

    .dropdown-content a {
        padding-left: 36px;
    }

    /* Voorkom overflow door afbeeldingen of containers */
    img {
        max-width: 100%;
        height: auto;
    }

    .container {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
    }
}
