/* ==================================================
   BASIS
================================================== */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    background: linear-gradient(to bottom, #F09a31, #ffffff);

}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

/* ==================================================
   TOP BANNER / SLIDER
================================================== */
.top-banner {
    width: 100%;
    overflow: hidden;
}

/* Slider wrapper bepaalt hoogte */
.slider-wrapper {
    position: relative;
    height: 250px;
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 120px;
    }
}

/* Slides container */
.slider-wrapper .slides {
    position: relative;
    height: 100%;
}

/* Slides (fade) */
.slider-wrapper .slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slider-wrapper .slides img.active {
    opacity: 1;
    z-index: 1;
}

/* Logo overlay op slider */
.slider-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    background-color: rgba(126, 120, 102, 0.4); /* #7E7866 met 40% opacity */
}

.slider-logo img {
    height: 100%;
    width: auto;
    max-width: 90%;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}

/* ==================================================
   HEADER
================================================== */
.site-header {
    position: relative;
    text-align: center;
}

/* ==================================================
   TABELLEN
================================================== */
.tabel {
    width: 100%;
    border-collapse: collapse;
}

.tabel td {
    padding: 0.5rem;
}

/* ==================================================
   KAARTEN ? SMAKEN
================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.kaart {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.kaart-foto {
    position: relative;
}

.kaart-foto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.kaart-naam {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1em;
    color: #7E7866;
}

/* ---------- Kaart types ---------- */
.normaal  { border: 2px solid #006400; }
.speciaal { border: 2px solid #e63946; }
.sorbet   { border: 2px solid #f4b400; }
.tip      { border: 2px solid #8A6642; }

.speciale-titel {
    text-align: center;
    margin: 2rem auto 1.5rem;
    color: #7E7866;

    /* Lettergrootte */
    font-size: clamp(2rem, 5vw, 3rem);

    /* Tekstschaduw */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

/* ==================================================
   UITVERKOCHT
================================================== */
.kaart-op .kaart-foto img {
    opacity: 0.4;
    filter: grayscale(70%);
}

.kaart-op .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    color: #e63946;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    pointer-events: none;
}

/* ==================================================
   ALLERGENEN
================================================== */
.allergenen {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
}

.allergenen img {
    height: 15px;
}

/* ==================================================
   GESLOTEN MELDING
================================================== */
.gesloten-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.kaart.gesloten {
    width: 80%;
    max-width: 800px;
    padding: 30px 20px;
    background: #FFF7EC;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    color: #7E7866;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.toggle-sticky-kaart {
    position: sticky;
    top: 50px;
    z-index: 100;

    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    

    padding: 20px;           /* padding rondom de knop */
    padding-bottom: 10px;    /* minimaliseer ruimte onder */
    margin: 10px auto 0;
    max-width: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;     /* horizontaal centreren */
    justify-content: flex-start; /* knop begint bovenin */
}

/* ?? DE SLEUTEL */
.toggle-sticky-kaart::after {
    content: "";
    display: block;
    height: 20px; /* vaste scheiding */
}






/* ==================================================
   TOGGLE (KORT / UITGEBREID)
================================================== */
.toggle-container {
    text-align: center;
    margin: 20px 0;
}

.toggle-btn {
    padding: 10px 10px;
    font-size: 16px;
    background: #D08D47;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.toggle-btn:hover {
    background: #E1BC8A;
}




/* Korte weergave ? standaard (desktop/tablet) */
.cards-grid.kort {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kaarten naast elkaar */
    gap: 8px;
    width: 100%;
    margin: 0 auto;
}

/* Mobiele versie */
@media (max-width: 768px) {
    .cards-grid.kort {
        grid-template-columns: 1fr; /* alles onder elkaar */
    }
}

.cards-grid.kort .kaart-foto,
.cards-grid.kort .kaart-omschrijving,
.cards-grid.kort .allergenen,
.cards-grid.kort .overlay {
    display: none !important;
}

.kort-op {
    display: none;
}

.cards-grid.kort .kort-op {
    display: block;
    margin-top: 4px;
    padding: 4px 6px;
    font-size: 12px;
    color: #e63946;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}



/* ==================================================
   ANIMATIES
================================================== */
@keyframes fadeIn {
    to { opacity: 1; }
}


/* ==================================================
   BACK TO TOP
================================================== */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;                  /* ruimte tussen pijl en tekst */
    padding: 10px 16px;
    background-color: #D08D47;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
    background-color: #E1BC8A;
    transform: translateY(-2px);
}

#backToTop svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==================================================
   MOBIEL: ronde knop met alleen pijl
================================================== */
@media (max-width: 768px) {
    #backToTop {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;           /* tekst verbergen */
        gap: 0;                  /* geen gap nodig */
    }

    #backToTop svg {
        width: 24px;
        height: 24px;
    }
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 1000px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kaart {
        font-size: 0.95rem;
    }

    .kaart-foto {
        height: 180px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .kaart-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabel tr,
    .tabel td {
        display: block;
        width: 100%;
    }

    .tabel tr {
        margin-bottom: 1rem;
    }
}

.speciale-titel {
    text-align: center;
    margin: 2rem auto 1.5rem;
}

/* ===============================
   NAVIGATIE (MOBILE FIRST)
=============================== */
.site-nav {
    position: sticky;
    top: 0;
    background: #7E7866;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo .logo-img {
    height: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.site-nav.sticky .logo-img {
    opacity: 1;
    pointer-events: auto;
}

/* ===============================
   MOBILE DEFAULT
   Telefoon + tablet portrait
=============================== */

/* Hamburger zichtbaar */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 35px;
    height: 5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animatie */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav links: dropdown menu */
.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #7E7866;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 240px;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease;
}

.nav-links.open {
    max-height: 500px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
}

.nav-links a.active {
    background: #E1BC8A;
    border-radius: 4px;
}

.nav-links a:not(.active):hover {
    background: #D08D47;
    border-radius: 4px;
}

/* ===============================
   TABLET LANDSCAPE (768–1024px)
   ? GEEN hamburger
   ? Kleinere tekst zodat alles op 1 regel past
=============================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        max-height: none;
        flex-direction: row;
        background: none;
        width: auto;
        overflow: visible;
        transition: none;
    }

    .nav-links a {
        font-size: 15px;
        padding: 10px 6px;
        white-space: nowrap;
    }
}

/* ===============================
   DESKTOP (?1025px)
=============================== */
@media (min-width: 1025px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        max-height: none;
        flex-direction: row;
        background: none;
        width: auto;
        overflow: visible;
        transition: none;
        gap: 12px; /* ?? prettige ruimte tussen knoppen */
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px 10px;
    }
}