@import url("https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&family=Alegreya:ital,wght@0,400..900;1,400..900&display=swap");

:root {
    --primaire-kleur: rgb(139, 58, 58);
    --secundaire-kleur: rgb(128, 139, 82);
    --secundaire-kleur-transparant: rgba(128, 139, 82, 0.8);
    --achtergrondkleur: #f7f3e8;
    --tekstkleur: #2e2e2a;
    --secundaire-tekstkleur: #666;
    --lichte-tekstkleur: #eee;
    --accentkleur: rgb(176, 78, 64);
    --primair-lettertype: "Alegreya Sans", sans-serif;
    --secundair-lettertype: "Alegreya", serif;
}

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

body {
    font-family: var(--secundair-lettertype);
    background-color: var(--achtergrondkleur);
    color: var(--tekstkleur);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

footer {
    background: var(--secundaire-kleur);
    color: var(--tekstkleur);
    text-align: center;
    padding: 1rem 0;
    flex-shrink: 0;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: var(--secundaire-kleur-transparant);
    color: var(--tekstkleur);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    animation: fadeInDown 0.8s ease-out forwards;
}

header h1 {
    font-family: var(--primair-lettertype);
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: auto;
    margin-left: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-right: auto;
}

nav li a {
    color: var(--lichte-tekstkleur);
    padding: 1rem;
    text-decoration: none;
    display: block;
    font-family: var(--secundair-lettertype);
    letter-spacing: 1px;
}

nav li a:hover {
    color: var(--primaire-kleur);
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.sluit-menu {
    display: none;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--tekstkleur);
    margin: 5px 0;
}

.binnenlink {
    color: var(--primaire-kleur);
    text-decoration: none;
}

.binnenlink:hover {
    color: var(--accentkleur);
}

.logo {
    line-height: 1;
    color: var(--lichte-tekstkleur);
    font-family: var(--secundair-lettertype);
    text-decoration: none;
}

.logo:hover {
    color: var(--primaire-kleur);
}

.hero-sectie {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Hero Diavoorstelling Animaties --- */
.hero-dias {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-dias img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-dias img.actief {
    opacity: 1;
}

.hero-inhoud {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-inhoud {
    position: relative;
    z-index: 3;
    color: var(--lichte-tekstkleur);
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-inhoud .cta-knop {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    opacity: 1;
    transform: none;
}

.cta-knop {
    background-color: var(--primaire-kleur);
    color: var(--lichte-tekstkleur);
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.cta-knop:hover {
    background-color: var(--accentkleur);
}

#hero-tekst {
    font-size: 1.5rem;
}

.contact-link {
    text-decoration: none;
    color: var(--tekstkleur);
}

.contact-link:hover {
    color: var(--accentkleur);
}

#evenementen-container {
    margin-top: 1rem;
}

.evenement-afbeelding {
    max-height: 300px;
}

.evenement-datum {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.marge-na {
    margin-bottom: 1.5rem;
}

section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-family: var(--primair-lettertype);
    font-size: 3rem;
    margin: 2.5rem 0 2rem 0;
    color: var(--primaire-kleur);
    opacity: 1;
    transform: none;
}

h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: var(--primair-lettertype);
    color: var(--primaire-kleur);
    font-size: 1.6rem;
}

input,
select,
textarea {
    font-family: var(--primair-lettertype);
}

.openingsinfo {
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

.openingsuren ul,
.verlofperiodes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.openingsuren li,
.verlofperiodes li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--accentkleur);
}

.openingsuren li:last-child,
.verlofperiodes li:last-child {
    border-bottom: none;
}

.openingsuren li.vandaag {
    font-weight: bold;
    color: var(--primaire-kleur);
}

section p {
    max-width: 800px;
    margin: auto;
    opacity: 1;
    transform: none;
}

.contact-sectie {
    padding-bottom: 80px;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-form input,
.contact-form textarea {
    width: 50%;
    padding: 10px;
    margin: 10px;
    background: transparent;
    border: 1px solid var(--accentkleur);
    color: var(--tekstkleur);
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form fieldset {
    border: 1px solid var(--accentkleur);
    border-radius: 5px;
    padding: 10px 15px;
    margin: 20px auto;
    width: 50%;
    min-width: 250px;
    box-sizing: border-box;
}

.contact-form fieldset legend {
    font-weight: bold;
    padding: 0 5px;
}

.contact-form fieldset label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 1rem;
    gap: 10px;
}

.contact-form fieldset input[type="checkbox"],
.contact-form input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 50%;
    padding: 10px;
    margin: 10px auto;
    display: block;
    background: transparent;
    border: 1px solid var(--accentkleur);
    color: var(--tekstkleur);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form .verzendknop {
    display: block;
    margin: 15px auto;
}

.knop {
    display: inline-block;
    background: var(--primaire-kleur);
    color: var(--secundaire-kleur);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem;
}

.knop:hover {
    background: var(--accentkleur);
}

button.knop {
    font-family: inherit;
    line-height: normal;
    background: var(--primaire-kleur);
    color: var(--lichte-tekstkleur);
}

a.knop {
    text-align: center;
}

button.knop,
input[type="submit"].knop {
    appearance: none;
    -webkit-appearance: none;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-venster {
    background-color: var(--achtergrondkleur);
    padding: 2.5rem;
    border: 2px solid var(--primaire-kleur);
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: none;
    opacity: 1;
}

.popup-container.show {
    display: flex;
}

.popup-bericht {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--tekstkleur);
}

.popup-knop {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.categorie-omschrijving {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.grotere-tekst {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.kaart-inhoud ul {
    list-style: none;
    padding: 0;
}

.kaart-inhoud li {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
}

.gerecht-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gerecht-naam {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tekstkleur);
    display: block;
    text-align: center;
    line-height: 1.2;
}

.gerecht-beschrijving {
    margin: 2px auto 0;
    font-size: 0.95rem;
    color: var(--secundaire-tekstkleur);
    text-align: center;
    max-width: 85%;
    line-height: 1.4;
}

.gerecht-prijs-gecentreerd {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    color: var(--primaire-kleur);
    margin-top: 4px;
    font-weight: 500;
}

.menu-sectie ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-sectie li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

#suggesties-link {
    color: var(--tekstkleur);
}

#suggesties-link:hover {
    color: var(--primaire-kleur);
}

section img:not(.hero-dias img):not(.dieet-icoon):not(.geen-animatie) {
    opacity: 1;
    transform: none;
    filter: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--achtergrondkleur);
    z-index: 1000;
    display: none;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.is-zichtbaar {
    display: flex;
}

.modal-inhoud {
    background: var(--secundaire-kleur-transparant);
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.modal-stuk-opties {
    display: block;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.opties-twee-kolommen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

.modal-optie-groep-item {
    display: flex;
    flex-direction: column;
}

.modal-optie-groep-item label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--tekstkleur);
}

.modal-optie-groep-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lichtkrant {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    width: 100vw;
    overflow: hidden;
    white-space: nowrap;

    margin-top: 2.5rem;
}

.lichtkrant-track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    animation: lichtkrant-scroll-mobile 18s linear infinite;
    animation-delay: -2s;

    font-weight: 600;
    font-size: 1.3rem;
    color: #fff;

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.6),
        0 0 12px rgba(255, 200, 120, 0.4);
}

.lichtkrant-separator {
    margin: 0 10rem;
}

/* Modal voor speciaal menu */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    /* Een warme, zachte crème kleur */
    background-color: #fdfaf0;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px; /* Iets ronder voor een zachtere look */
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    /* Gebruik de fonts uit je project voor consistentie */
    font-family: var(--secundair-lettertype);
    color: var(--tekstkleur);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #e2dcc8;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: var(--primaire-kleur);
}

.modal-menu-sectie h4 {
    text-transform: uppercase;
    color: var(--primaire-kleur);
    border-bottom: 1px solid var(--accentkleur);
    display: inline-block;
    padding-bottom: 5px;
    margin: 10px 0;
    font-family: var(--primair-lettertype);
}

.prijs-info {
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--tekstkleur);
    font-size: 1.1rem;
}

.of {
    font-style: italic;
    color: #7a7366;
    margin: 8px 0;
    font-family: var(--primair-lettertype);
}

.modal-content small {
    display: block;
    color: var(--secundaire-tekstkleur);
    margin-top: 4px;
    font-style: italic;
}

/* Modal voor de affiches */

.affiche-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.affiche-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.vergrote-affiche {
    display: block;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

    width: 90vw;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.gallery {
    column-count: 4;
    column-gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;

    /* fade-in animatie */
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

    cursor: pointer;
}

.gallery-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image:hover {
    opacity: 0.92;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    touch-action: pan-y;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    opacity: 0;
    user-select: none;
    -webkit-user-drag: none;
    transform: scale(0.96);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.lightbox.active img {
    opacity: 1;
    transform: scale(1);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 1rem;
}

.lightbox .prev {
    left: 10px;
}
.lightbox .next {
    right: 10px;
}

.lightbox button:hover {
    opacity: 0.7;
}

@media (min-width: 1024px) {
    .lichtkrant-track {
        animation:
            lichtkrant-start 6s linear 1,
            lichtkrant-scroll-desktop 30s linear infinite;
        font-size: 1.6rem;
        animation-delay: 0s;
    }

    .vergrote-affiche {
        width: auto;
        height: 90vh;
        max-width: 90vw;
    }
}

@keyframes lichtkrant-start {
    from {
        transform: translateX(60%);
    }
    to {
        transform: translateX(0%);
    }
}

@keyframes lichtkrant-scroll-mobile {
    from {
        transform: translateX(60%);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes lichtkrant-scroll-desktop {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 1150px) {
    .hamburger-menu {
        display: block;
        position: relative;
    }

    .cta-knop {
        background-color: var(--primaire-kleur);
        color: var(--lichte-tekstkleur);
        text-decoration: none;
        font-weight: normal;
        font-size: 0.8rem;
        border-radius: 8px;
        text-align: center;
        margin: 2rem auto 0 auto;
        width: 50%;
    }

    nav {
        position: fixed;
        margin-left: 0;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 90% !important;
        max-width: 300px;
        background-color: var(--secundaire-kleur);
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        align-items: flex-start;
        padding-top: 100px;
        z-index: 1001;
        transform: none;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav li a {
        padding: 0.5rem;
        width: 100%;
        border-bottom: 1px solid var(--accentkleur);
    }

    .sluit-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: var(--tekstkleur);
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
        padding: 10px;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .hero-inhoud h2 {
        font-size: 2.5rem;
    }

    .hero-inhoud p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    section[id] {
        scroll-margin-top: 80px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 80%;
    }

    footer {
        font-size: 0.7rem;
    }

    .gallery {
        column-count: 3;
    }

    .lightbox .nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery {
        column-count: 1;
    }
}
