/* Algemene styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f4f4f4;
    color: #000;
}

/* ALGEMENE HEADER STIJL */
.main-header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100; /* Zorgt dat de navbar boven andere elementen blijft */
}

.main-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
    align-items: center;
    display: flex;
}

.main-header .logo img {
    max-width:40px; 
    margin-right:10px; 
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
}

.cta-button {
    background-color: #c0392b;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

/* Hero Sectie */
.hero {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 30px;
}

.cta-button-main {
    background-color: #e74c3c;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1rem;
}

/* Over Ons & Populaire Gerechten */
.about-us, .popular-dishes, .contact-info {
    padding: 2rem;
    text-align: center;
}

.dishes-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* Essentieel voor responsiviteit */
}

.dish {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-basis: 300px; /* Basisbreedte voor elk gerecht */
}

/* Contact Informatie */
.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 2rem;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Verberg de desktop CTA op mobiel */
.main-nav .nav-cta {
    display: none;
}

/* --- Stijlen voor Mobiel Menu-icoon (Hamburger) --- */
.menu-toggle {
    display: none; /* Standaard verborgen op desktop */
    margin-left: auto; /* NIEUW: Schuift de knop naar rechts */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 10px; /* Maakt het makkelijker om te klikken */
    position: relative;
    width: 45px;
    height: 45px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: #fff;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    position: absolute; /* Positioneer voor rotatie */
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* --- KRUISKNOP ANIMATIE --- */
/* Draai de bovenste streep */
.menu-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
}

/* Verberg de middelste streep */
.menu-toggle.is-active .hamburger {
    background: transparent;
}

/* Draai de onderste streep */
.menu-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
}

/* Algemene styling voor de contactpagina sectie */
#contact-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto; /* Centreert de content */
    color: #fff;
}

#contact-page h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* De Grid Container */
.contact-grid {
    display: grid;
    gap: 2rem; /* Ruimte tussen de blokken */
}

/* Stijl voor de individuele blokken */
.contact-details, .contact-map, .opening-hours {
    background-color: rgba(255, 255, 255, 0.05); /* Lichte achtergrond, past bij donker thema */
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-details h3, .opening-hours h3 ,.contact-map h3 {
    margin-top: 0;
    color: #e74c3c; /* Accentkleur */
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
}
.contact-details a:hover {
    text-decoration: underline;
}

.opening-hours ul {
    list-style: none;
    padding: 0;
}

.opening-hours li {
    margin-bottom: 0.5rem;
}

.kitchen-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

.opening-hours-footer h3 {
    color: #e74c3c;
}

.opening-hours-footer ul {
    list-style: none;
    padding: 0;
}

.location-footer h3 {
    color: #e74c3c;
}

/* Algemene styling voor de menupagina sectie */
#menu-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

#menu-page h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* De Grid Container */
.menu-grid {
    display: grid;
    gap: 2rem;
}

/* Stijl voor de content blokken (hergebruikt van contactpagina) */
.menu-promotions, .menu-main {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.menu-promotions h3, .menu-main h3 {
    margin-top: 0;
    color: #e74c3c; /* Accentkleur */
    font-size: 1.8rem;
}

/* --- Styling voor de Slider (linkerkolom) --- */
.slider-container {
    position: relative;
    min-height: 400px; /* Hoogte voor de slider */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.slide .price {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 1rem;
}

/* --- Styling voor de Menukaart (rechterkolom) --- */
.menu-main p {
    line-height: 1.6;
}

.menu-button {
    display: block;
    background-color: #c0392b;
    color: #fff;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.menu-button:hover {
    background-color: #e74c3c;
}

/* Algemene styling voor de cateringpagina */
#catering-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

#catering-page h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* De Flexbox Container */
.catering-grid {
    display: flex;
    flex-wrap: wrap; /* Zorgt dat items onder elkaar springen als er geen ruimte is */
    gap: 2rem; /* Ruimte tussen de kolommen */
    justify-content: center;
}

/* Styling voor elk cateringpakket */
.catering-package {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0rem; /* Eerste waarde = boven/onder, tweede = links/rechts */
    border-radius: 8px;
    flex: 1; /* Zorgt dat de kolommen evenveel ruimte innemen */
    min-width: 300px; /* Minimale breedte voordat het item naar de volgende regel springt */
    text-align: center;
}

.catering-package h3 {
    margin-top: 0;
    color: #e74c3c; /* Accentkleur */
    font-size: 1.8rem;
}

.catering-package .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0.5rem 0;
}

.catering-package .person-count {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.catering-package ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block; /* Centreert de lijst netjes */
}

.catering-package li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Voegt een klein chinees lantaarn-icoon of een simpel vinkje toe voor elk item */
.catering-package li::before {
    content: '✓'; /* Of gebruik een ander icoon zoals '🏮' */
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- MOBIELE LAYOUT (standaard) --- */
/* De volgorde wordt hier bepaald met 'order' */
.opening-hours { order: 1; }
.contact-details { order: 2; }
.contact-map     { order: 3; }

/* --- DESKTOP LAYOUT (voor schermen breder dan 768px) --- */
@media (min-width: 769px) {
    .contact-grid {
        /* Maak een grid met 3 kolommen */
        grid-template-columns: 1fr 1fr 1fr;
        /* Definieer de gebieden */
        grid-template-areas: 
            "details details hours"
            "map map hours";
    }

    .menu-grid {
        /* Maak 2 kolommen: links 1/3, rechts 2/3 */
        grid-template-columns: 1fr 2fr;
    }

    /* Wijs elk blok toe aan zijn gebied */
    .contact-details { grid-area: details; }
    .contact-map     { grid-area: map; }
    .opening-hours   { grid-area: hours; }
}

/* --- Media Query voor mobiele apparaten --- */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Toon het menu-icoon */
    .menu-toggle {
        display: block;
        margin-left: auto; /* NIEUW: Schuift de knop naar rechts */
    }

    /* Verberg de desktop navigatie en CTA knop */
    .main-nav {
        display: none; /* Verberg het menu initieel */
        position: fixed; /* Laat het menu over de content vallen */
        top: 0;
        right: 0;
        width: 250px; /* Breedte van het uitklapmenu */
        height: 100vh; /* Volledige hoogte */
        background-color: #1a1a1a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Begin buiten het scherm */
        transition: transform 0.3s ease-in-out;
    }

    /* Stijl voor het zichtbare (open) menu */
    .main-nav.is-open {
        display: flex;
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .main-nav a {
        font-size: 1.2rem;
    }

    /* Toon de CTA knop in de mobiele navigatie */
    .main-nav .nav-cta {
        display: block;
    }
    
    /* Verberg de originele CTA knop in de header */
    .cta-button.desktop-only {
        display: none;
    }
}

/* Smooth fade-in voor PDF overlay */
.pdf-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    transition: none;
}
.pdf-overlay.active {
    display: flex;
}
.pdf-content {
    background: #1A1A1A;
    padding: 7px;
    width: 95vw;
    height: 95vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.5s cubic-bezier(.4,2,.6,1), opacity 0.5s;
    transform: scale(0.2);
    opacity: 0;
	border-radius: 15px; 
}
.pdf-content.active {
    transform: scale(1);
    opacity: 1;
}
.pdf-content .pdf-frame {
	flex: 1;
	border: none;
	width: calc(100% - 30px);
	height: 100%;
	border-radius: 8px; 
}

.close-button {
    position: absolute;
    font-weight: bold;
	border-radius: 8px; 
    top: 7px;
    right: 7px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 2;
}

/* --- AANPASSINGEN VOOR SPECIFIEKE SCHERMFORMATEN --- */
@media (max-width: 769px) and (min-width: 484px) {
  .slider-container {
    min-height: unset;
    height: auto;
    display: block;
    overflow: visible;
    position: relative;
  }
  .slide {
    min-height: 420px;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    text-align: center;
    z-index: 1;
    padding-bottom: 2rem;
    box-sizing: border-box;
  }
  .slide.active {
    opacity: 1;
    z-index: 2;
    position: relative;
  }
}