:root {
    --bg: #8c825a;
    --fg: #FFFFCC;
    --accent: yellow;
    --muted: #45000E;
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Comic Sans MS, Arial;
    --font-header: "Georgia", "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--fg);
    font-style: italic;
}

a {
    color: var(--fg);
    text-decoration: none;
}

/* ==========================================
   DEFINITIEVE HEADER FIX
   ========================================== */

/* Header wordt een kolom */
header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    color: var(--fg);
    max-width: 1100px;
    margin: 1rem auto 0.5rem auto;
    padding: 1rem 1.5rem;
    background-color: var(--muted);
    border: 2px solid #FFFFCC;
    box-shadow: 0px 0px 10px rgb(55, 55, 55);

    background-image: url("../logo3.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%; /* logo even hoog als header */
    padding-right: 120px; /* ruimte zodat tekst niet over logo valt */

}

/* Titel links, logo rechts */
.header-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
}

/* Titelblok */
.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Typografie */
.header-text h1,
.header-text h2 {
    font-family: Comic Sans MS, Arial !important;
    font-style: italic;
    margin: 0;
    color: var(--fg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.header-text h1 {
    font-size: 2.6rem !important;
    font-weight: 700;
    line-height: 1.1;
}

.header-text h2 {
    font-size: 1.3rem !important;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Logo rechts */
.header-logo {
    height: 160px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Navigatie onderaan */
.header-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
}

.header-nav a {
    font-family: Comic Sans MS, Arial !important;
    font-style: italic;
    font-size: 1.1rem !important;
    color: var(--fg) !important;
    text-decoration: none !important;
}

.header-nav a:hover {
    color: var(--accent) !important;
}

/* Spacer-afbeeldingen */
.nav-sep {
    height: 18px !important;
    width: auto !important;
    display: inline-block !important;
}


/* FOOTER */
footer {
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 1em;
    background-color: var(--muted);
    padding: 1rem;
    border: 2px solid #FFFFCC;
    font-size: 0.85rem;
    color: var(--fg);
}

/* CONTAINER */
.container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../logo3.png") no-repeat center center;
    background-size: 80%;
    opacity: 0.15;
    z-index: -1;
}

/* HEADINGS */
h1, h2, h3 {
    margin-top: 0;
}

/* GALLERY */
.gallery {
    display: grid;
    margin: 0 auto; 
    max-width: 1050px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: auto;
}

.gallery-item figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    height: 100%;
    box-shadow: 0px 0px 10px 0px rgb(55, 55, 55);
}

.gallery-item figure:hover {
    box-shadow: 4px 6px 5px 0px rgba(204, 202, 172, 0.35);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 0.75rem 1rem 1rem;
}

.gallery-item h2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--fg);
    margin: 0;
    font-size: 1.2rem;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* NEWS */
.news-list {
    display: flex;
    padding-left: 1.5rem;   /* zelfde insprong als header en works */
    padding-right: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
}
.news-item {
    border: 2px solid #FFFFCC;
    box-shadow: 0px 0px 10px 0px rgb(55, 55, 55);
    padding: 15px; /* optioneel, maar meestal mooier */
    margin-bottom: 1rem;
    
}
.news-item img {
    max-width: 100%;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

/* FORMS */
.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #333;
    background: #181818;
    color: var(--fg);
}

button,
.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

button:hover,
.button:hover {
    filter: brightness(1.1);
}

/* ADMIN TABLE */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #222;
    vertical-align: top;
}

.admin-table th {
    text-align: left;
    background: #181818;
    vertical-align: top;
}

    


/* ADMIN NAV */
.admin-nav {
    display: block;
    width: 100%;
    max-width: 1100px;
    padding-left: 1rem;
    margin-bottom: 10px;
    background-color: #45000E;
    border: 2px solid #FFFFCC;
    box-shadow: 0px 0px 10px 0px rgb(55, 55, 55);

    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.admin-nav a {
    color: var(--fg);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.admin-nav a:hover {
    color: var(--accent) !important;
    text-decoration: none !important;
}
.contact-page h1 {
    margin-bottom: 1rem;
}
.contact-info {
    text-align: center;
    margin: 0 auto;
}

.contact-info h2 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--fg);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* MODAL OVERLAY */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    padding: 40px;
    overflow-y: auto;
}

/* FLEX LAYOUT BINNEN DE MODAL */
.modal-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* INFO LINKS */
.modal-info {
    max-width: 40%;
    color: var(--fg);
    text-align: left;
}

/* FOTO RECHTS – VOLLEDIGE HOOGTE */
.modal-content {
    height: 80vh;
    width: auto;
    object-fit: contain;
    display: block;
}

/* CLOSE BUTTON */
.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: var(--fg);
    cursor: pointer;
}

/* NAVIGATIEPIJLEN */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: var(--fg);
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

.arrow:hover { color: #ccc; }

/* MOBILE */
@media (max-width: 600px) {

     header {
        background-size: auto 20%;
        background-position: center top;
        padding-right: 0 !important;
    }
    header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("../logo3.png") no-repeat center top;
        background-size: auto 20%;
        opacity: 0.15; /* zachte, subtiele versie */
        z-index: 0;
    }

    .header-inner,
    .header-nav {
        position: relative;
        z-index: 1; /* tekst boven het logo */
    }


    .header-text h1 {
        font-size: 1rem;
    }

    .header-text h2 {
        font-size: 0.7rem;
    }

    .header-logo {
        height: 90px;
    }

    .header-nav {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .modal-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-content {
        height: auto;
        max-height: 60vh;
        max-width: 100%;
    }

    .modal-info {
        max-width: 100%;
        text-align: left;
    }

    .arrow {
        font-size: 36px;
        padding: 5px;
    }

    .left-arrow { left: 10px; }
    .right-arrow { right: 10px; }
     .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
        .gallery-item h2 {
        font-size: 1rem;          /* kleiner maar nog leesbaar */
        padding: 0.4rem 0.6rem;   /* minder padding */
    }

    .gallery-item figcaption {
        padding: 0.5rem 0.75rem;  /* compacter */
        font-size: 0.9rem;        /* iets kleiner */
        line-height: 1.3;         /* betere leesbaarheid */
    }

    .gallery-item figure {
        box-shadow: 0px 0px 6px rgba(55,55,55,0.7); /* subtieler op mobiel */
    }
}
