/* ======================
   VARIABELEN & RESET
   ====================== */
:root {
    --header-height: 100px;
    --primary: #a5c858;
    --text: #222;
    --bg: #fff;
    --max-width: 1200px;
    --breakpoint: 800px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    height: -webkit-fill-available;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    display: grid;
    grid-template-rows: auto 1fr auto;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

a {
    color: #222;
    text-decoration: underline;
}
a:hover {
    color: #5a6327;
}

/* ======================
   LAYOUT
   ====================== */
.site-header,
.site-main,
.footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ======================
   HEADER
   ====================== */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.logo {
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
}

.slogan{
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 15px 0;
}

.slogan img {
    display: block;
    height: clamp(70px, 8vw, 70px); /* schaalt tussen 40px en 70px */
    max-height: calc(var(--header-height) - 20px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo img {
    display: block;
    height: clamp(70px, 8vw, 70px); /* schaalt tussen 40px en 70px */
    max-height: calc(var(--header-height) - 20px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.language-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ======================
   MENU DESKTOP
   ====================== */
.main-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: clamp(0.4rem, 1.8vw, 1.25rem);
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-menu li {
    flex-shrink: 1;                 /* menu-items mogen krimpen */
    min-width: 0;
}

.main-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-size: clamp(0.7rem, 1.4vw, 1.1rem);
}

.main-menu .active a {
    color: #222;
    border-bottom: 2px solid var(--primary);
}

.main-menu a:hover {
    color: #5a6327;
}

/* ======================
   MAIN & HERO
   ====================== */
.site-main {
    flex: 1 0 auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.hero {
    width: 100%;
    margin-bottom: 1.5rem;
    aspect-ratio: 3 / 1;
    background: #f0f0f0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.content-image {
    margin: 1.5rem 0;
    text-align: center;
}

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

.image-row {
    display: block;
    margin: 1.5rem 0;
}

.image-row img {
    display: inline-block;
    width: auto;
    height: 75px;
}

.map-container {
    width: 100%;
    max-width: 425px;
    margin: 1.5rem 0 0.5rem 0;
    aspect-ratio: 425 / 350; /* behoudt originele verhouding */
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    display: block;
}

.map-link {
  margin-bottom: 1.5rem;
}

/* ======================
   FOOTER (sticky bottom)
   ====================== */
.site-footer {
    /*background: #f4f4f4;*/
    background: #a5c858;
    padding: 2rem 1rem;
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-contact h3 {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.3rem;
}

/* ======================
   MOBIEL: ≤ 800px
   ====================== */
@media (max-width: 800px) {
    .logo {
        padding: 5px 0;
    }

    .logo img {
        max-height: 80px; /* groter logo in mobiele header */
    }

    .site-header {
        position: relative; /* belangrijk: referentiepunt voor absolute menu */
    }

    .header-container {
        position: relative;
    }

    .header-controls {
        order: 1;
        margin-left: auto;
    }

    .hamburger {
        display: flex;
    }

    .main-menu {
        position: absolute;
        top: var(--header-height);
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: var(--max-width);
        background: var(--bg);
        border-top: 0;          /* geen border als dicht */
        border-bottom: 0;     /* geen border als dicht */
        box-shadow: none;       /* geen schaduw als dicht */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }

    .main-menu.open {
        max-height: 500px;
        border-top: 1px solid #eee;    /* alleen zichtbaar als open */
        border-bottom: 1px solid #eee; /* alleen zichtbaar als open */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* alleen zichtbaar als open */
    }

    .main-menu ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        white-space: normal;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .main-menu li {
        width: 100%;
        text-align: center;
    }

    .main-menu a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }

    .site-header,
    .site-main,
    .footer-container {
        padding: 0 0.75rem;
    }

    .content h1 {
        font-size: 1.5rem;
    }
}

@media (min-width: 801px) and (max-width: 1024px) {
    .logo img {
        max-height: calc(var(--header-height) - 50px);
    }

    .main-menu a {
        font-size: clamp(0.5rem, 1.4vw, 1.1rem);
    }

    .main-menu ul {
        gap: 0.65rem;
    }
}

/* ======================
   DESKTOP: > 800px
   ====================== */
@media (min-width: 801px) {
    .header-container {
        display: flex;
        justify-content: space-between;
    }

    .logo {
        order: 1;
    }

    .main-menu {
        order: 2;
        display: flex;
    }

    .header-controls {
        order: 3;
    }

    .menu-webshop a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: #222;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s ease;
        border-bottom: none;
    }

    .menu-webshop a::after {
        content: '↗';
        margin-left: 0.3rem;
        font-size: 0.85em;
        display: inline-block;
    }

    .menu-webshop a:hover {
        background: #5a6327;
        color: #fff;
    }

    .main-menu .active.menu-webshop a,
    .main-menu .menu-webshop a:hover {
        border-bottom: none;
        color: #fff;
    }
}

/* ======================
   TOEGANKELIJKHEID
   ====================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ======================
   GALERIJ
   ====================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gt-ar64{
    aspect-ratio: 4 / 6!important;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* ======================
   LIGHTBOX
   ====================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: -webkit-fill-available;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
}
