@font-face {
    font-family: 'ABCGramercy';
    src: url('../fonts/ABCGramercy-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ABCGramercy-Italic';
    src: url('../fonts/ABCGramercy-RegularItalic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

/* Algemene stijlen */
body {
    margin: 0;
    font-family: 'ABCGramercy', sans-serif;
    background-color: #003E32;
    color: white;
    font-size: 1.2em; /* Standaard tekst iets groter maken */
}

/* Hero Sectie met video op volle breedte */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Video op volledige breedte zonder interface */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Zorgt ervoor dat content erboven blijft */
}

.fade-overlay {
    position: absolute;
    width: 100%;
    height: 20vh;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #003E32 100%);
    z-index: 1;
}

/* Logo als eerste 'kop' */
.logo-wit {
    display: block;
    width: 400px; /* Standaard grootte */
    margin: 40px auto;
}

@media (max-width: 768px) {
    .logo-wit {
        width: 300px;
        margin: 30px auto;
    }
}

@media (max-width: 480px) {
    .logo-wit {
        width: 250px;
        margin: 25px auto;
    }
}

@media (max-width: 390px) {
    .logo-wit {
        width: 200px;
        margin: 20px auto;
    }
}

@media (max-width: 320px) {
    .logo-wit {
        width: 180px;
        margin: 15px auto;
    }
}

/* Koppen in standaard ABCGramercy */
h2 {
    font-family: 'ABCGramercy', sans-serif;
    font-weight: normal;
    text-align: center;
    font-size: 4rem; /* Even groot als de huidige tekst */
    margin-top: 40px;
}

/* Specifieke woorden in ABCGramercy-RegularItalic en groter dan de standaard tekst */
.italic-word {
    font-family: 'ABCGramercy-Italic', sans-serif;
    font-style: italic;
    font-size: 1.4em; /* Groter dan de standaard tekst */
}

/* Layout met twee kolommen op desktop, één op mobiel */
.section-container {
    display: flex;
    justify-content: space-between;
    align-items: start;
    max-width: 800px; /* Breedte zoals op Subbar.nl */
    margin: 0 auto;
    padding: 50px 0;
    gap: 20px;
}

.section-container p {
    width: 50%;
    text-align: justify;
}

@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .section-container p {
        width: 100%;
        padding: 0 20px; /* Extra marge aan de zijkanten */
    }
}

/* Sectiescheiding met dezelfde marges als de tekst in mobiele weergave */
.sectie-scheiding {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

@media (max-width: 768px) {
    .sectie-scheiding {
        padding: 0 20px; /* Zelfde marge als de tekst op mobiel */
    }
}

.sectie-scheiding img {
    width: 100%;
}

/* Contact, adres en social media secties */
.contact-container, .adres-container, .social-container {
    display: flex;
    justify-content: space-between;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0;
    gap: 20px;
}

.contact-container p, .adres-container p, .social-container p {
    width: 50%;
    text-align: justify;
}

/* Google Maps iframe styling */
.map-container {
    width: 50%;
}

iframe {
    width: 100%;
    height: 300px;
    border: none;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .contact-container, .adres-container, .social-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .contact-container p, .adres-container p, .social-container p {
        width: 100%;
        padding: 0 20px; /* Extra marge aan de zijkanten */
    }
    
    /* Aanpassing voor map-container en iframe op mobiel */
    .map-container {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    iframe {
        width: 100%;
        height: 250px;
        margin: 20px 0;
    }
}

/* Social Media - Instagram icoon met link */
.social-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.instagram-logo, .linkedin-logo {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.instagram-logo:hover, .linkedin-logo:hover {
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .hero {
        height: 80vh;
    }
}

@media (max-width: 1024px) {
    .hero {
        height: 60vh;
    }
}

@media (max-width: 900px) {
    .hero {
        height: 450px;
    }
    
    #background-video {
        width: auto;
        height: 100%;
        min-width: 100%;
    }
}

@media (max-width: 800px) {
    .hero {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 350px;
        position: relative;
        overflow: hidden;
        background-color: #003E32;
    }
    
    #background-video {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 100%;
        min-width: 100%;
        object-fit: cover;
        z-index: 0;
    }
    
    .fade-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(to bottom, rgba(0,62,50,0) 0%, #003E32 100%);
        z-index: 1;
    }

    /* Koppen breedte aanpassen om niet breder te zijn dan de video */
    h2 {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
    }

    /* Social media logo's in het midden plaatsen */
    .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .instagram-logo, .linkedin-logo {
        width: 50px;
        height: 50px;
        display: block;
        margin: 0 auto;
    }

    /* Zorg ervoor dat de website 100% breedte vult op mobiel */
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 325px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }
    
    #background-video {
        width: 100%;
        height: auto;
        min-height: 100%;
    }
}

@media (max-width: 420px) {
    .hero {
        height: 280px;
    }
}

@media (max-width: 390px) {
    .hero {
        height: 260px;
    }
    
    #background-video {
        width: auto;
        height: 100%;
        min-width: 100%;
    }
}

@media (max-width: 360px) {
    .hero {
        height: 240px;
    }
}

@media (max-width: 320px) {
    .hero {
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* Koppen kleiner maken onder 768px */
    h2 {
        font-size: 2rem; /* Verkleinen naar 50% van de huidige grootte (4rem naar 2rem) */
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
    }
}

/* Zorg ervoor dat de teksten onder de koppen volledig gecentreerd zijn */
.section-container p {
    margin: 0 auto; /* Centreert de tekstblokjes */
    padding: 0 20px; /* Houdt rekening met ruimte aan beide zijden */
    text-align: center;
    box-sizing: border-box;
}

/* Logo Tafelbuuren volledig centreren */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Instagram div (class 'insta') volledig centreren */
.insta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    text-decoration: none;
    color: white;
}

.whatsapp-logo {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.whatsapp-logo:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-logo {
        width: 35px;
        height: 35px;
    }
}

.subkop, .vakantie-info {
    text-align: center;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.event-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-top: 10px;
}

.main-nav {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 1200;
    background: #003E32; /* desktop: groen */
    backdrop-filter: none;
    display: flex;
    align-items: center;
    min-height: 56px;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    /* nodig voor ::after positionering */
    position: sticky;
}

/* Sticky witte lijn als onderdeel van de menubalk */
.main-nav::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    height: 1px;
    width: calc(100% - 40px);
    max-width: 800px;
    background: white;
    pointer-events: none;
}

/* Verberg de losse divider nu we een sticky variant in de nav hebben */
.nav-divider { display: none; }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    flex: 1;
}

.nav-container a {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    font-weight: 600;
}

.nav-container a:hover {
    text-decoration: underline;
}

/* Zorg dat ankernavigatie niet onder de sticky balk valt */
#openingstijden, #events, #contact, #adres, #social, #home {
    scroll-margin-top: 80px;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    z-index: 1300; /* boven drawer/backdrop */
}

.mobile-drawer { display: none; }
.mobile-backdrop { display: none; }

@media (max-width: 768px) {
    /* Verwijder de fixed balk; nav blijft onder de animatie en wordt sticky zodra hij top raakt */
    .main-nav {
        position: sticky;
        position: -webkit-sticky; /* iOS/Safari ondersteuning */
        top: 0;
        left: auto;
        right: auto;
        z-index: 1200;
        background: transparent; /* mobiel: transparant */
    }

    /* Lijn verbergen op mobiel */
    .main-nav::after { content: none; }

    /* Geen extra body padding nodig */
    body {
        padding-top: 0;
    }

    .nav-container {
        justify-content: flex-start;
        gap: 12px;
    }
    .nav-container a { display: none; }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        margin-left: auto;
        margin-right: 10px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: static;
        z-index: 1200; /* gelijk aan de nav, niet hoger */
    }
    .nav-toggle .bar {
        width: 22px;
        height: 2px;
        background: #fff;
        display: block;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 76vw;
        max-width: 320px;
        background: #003E32; /* zelfde groen als pagina-achtergrond */
        padding: 20px;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 250ms ease;
        display: flex;
        flex-direction: column;
        gap: 16px;
        z-index: 1400; /* hoger dan de nav en toggle */
    }

    .drawer-logo {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .drawer-logo-img {
        width: 200px;
        height: auto;
        max-width: 100%;
    }

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1300; /* tussen nav en drawer in */
    }

    body.drawer-open .mobile-drawer { transform: translateX(0); }
    body.drawer-open .mobile-backdrop { display: block; }

    .drawer-link { color: #fff; text-decoration: none; font-size: 1.1rem; }
    .drawer-link:hover { text-decoration: underline; }
}

@media (max-width: 768px) {
    /* Fallback: zodra nav top raakt, zetten we een class op body */
    body.nav-fixed .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1200;
    }
    /* Gebruik dynamische hoogte die door JS gezet wordt om layout jump te voorkomen */
    body.nav-fixed { padding-top: var(--nav-h, 56px); }
}

.broodservice-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.broodservice-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .broodservice-container {
        padding: 0 20px;
    }
    
    .broodservice-container iframe {
        height: 500px;
    }
}

/* Broodservice styling */
.broodservice-intro {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: white;
}

.broodservice-link-container {
    text-align: center;
    margin-top: 20px;
}

.broodservice-link {
    display: inline-block;
    background: white;
    color: #003E32;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.broodservice-link:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Broodservice pagina styling */
.broodservice-header {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.broodservice-header h1 {
    font-family: 'ABCGramercy', sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
}

.broodservice-subtitle {
    font-size: 1.3em;
    line-height: 1.6;
    color: white;
}

.broodservice-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

.broodservice-form-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.broodservice-footer {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.broodservice-footer p {
    margin-bottom: 20px;
    color: white;
    line-height: 1.6;
}

.back-home-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-home-link:hover {
    background: white;
    color: #003E32;
}

.home-link {
    margin-left: auto;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.home-link:hover {
    background: white;
    color: #003E32;
}

@media (max-width: 768px) {
    .broodservice-header h1 {
        font-size: 2.5em;
    }
    
    .broodservice-form-container iframe {
        height: 600px;
    }
    
    .broodservice-link {
        padding: 12px 24px;
        font-size: 1em;
    }
}

/* Instagram Carrousel styling */
.instagram-carrousel-container {
    max-width: 400px; /* Beperk breedte tot Instagram post breedte */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.carrousel-wrapper {
    overflow: hidden; /* Herstel hidden om slides te verbergen */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    /* Geen vaste hoogte - past zich aan aan actieve slide */
}

.carrousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Geen vaste hoogte */
    height: 100%; /* Gebruik de volledige hoogte van de wrapper */
}

.carrousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Geen vaste hoogte - past zich aan aan content */
    height: 100%; /* Gebruik de volledige hoogte van de track */
}

.carrousel-slide .instagram-media {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    /* Geen vaste hoogte - past zich aan aan content */
    height: 100%; /* Gebruik de volledige slide hoogte */
}

/* Instagram embed styling - laat Instagram de hoogte bepalen */
.instagram-media {
    background: #FFF;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15);
    margin: 1px;
    max-width: 400px; /* Beperk tot Instagram post breedte */
    min-width: 320px; /* Minimum breedte voor mobiel */
    padding: 0;
    width: calc(100% - 2px);
    /* Geen vaste hoogte - laat Instagram bepalen */
    height: 100%; /* Gebruik de volledige beschikbare hoogte */
}

/* Laat Instagram iframes hun natuurlijke hoogte bepalen */
.instagram-media iframe {
    width: 100% !important;
    /* Geen vaste hoogte - laat Instagram bepalen */
    border: none !important;
    display: block !important;
    height: 100% !important; /* Gebruik de volledige media hoogte */
}

/* Extra sterke selectors voor Instagram embeds - zonder vaste hoogte */
.instagram-carrousel-container .instagram-media iframe,
.carrousel-slide .instagram-media iframe {
    width: 100% !important;
    /* Geen vaste hoogte - laat Instagram bepalen */
}

.carrousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carrousel-btn {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrousel-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.carrousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carrousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .instagram-carrousel-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .instagram-media {
        min-width: 280px; /* Kleinere minimum breedte op mobiel */
    }
    
    .instagram-media iframe {
        /* Verwijder vaste hoogte - laat Instagram bepalen */
    }
    
    /* Extra sterke selectors voor mobiel - zonder vaste hoogte */
    .instagram-carrousel-container .instagram-media iframe,
    .carrousel-slide .instagram-media iframe {
        /* Verwijder vaste hoogte - laat Instagram bepalen */
    }
    
    .carrousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carrousel-controls {
        padding: 0 10px;
    }
}
/* Openingstijden – Eten afbeelding */
.section-container p .eten-image {
    display: block;
    width: 100%;
    max-width: 380px;  /* pas aan naar wens */
    height: auto;
    margin-top: 12px;
    margin-left: auto; /* zorgt dat hij rechts uitlijnt in de kolom */
  }
  
  @media (max-width: 768px) {
    .section-container p .eten-image {
      max-width: 100%;
      margin-left: 0;  /* op mobiel gewoon onder de tekst */
    }
  }