@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: #6e8b74;
    --secundaire-kleur: rgb(245, 240, 230);
    --secundaire-kleur-transparant: rgba(245, 240, 230, 0.8);
    --achtergrondkleur: #faf7f2;
    --lichtere-kleur: #a8b696;
    --accentkleur: #c57b57;
    --primair-lettertype: "Alegreya", serif;
    --secundair-lettertype: "Alegreya Sans", sans-serif;
}

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

html {
    height: 100%;
}

body {
    font-family: var(--secundair-lettertype);
    background-color: var(--achtergrondkleur);
    color: var(--primaire-kleur);
    line-height: 1.6;
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; /* groeit indien nodig, maar niet krimpen */
}

h1 {
    letter-spacing: -2%;
}

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

ul {
    list-style: none;
}

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

header {
    background: var(--secundaire-kleur-transparant);
    color: var(--primaire-kleur);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header a {
    text-decoration: none;
}

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

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(--primaire-kleur);
    padding: 1rem;
    text-decoration: none;
    display: block;
    font-family: var(--secundair-lettertype);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav li a:hover,
#feestdag-titel:hover {
    color: var(--accentkleur);
}

.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(--primaire-kleur);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.startpagina {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--achtergrondkleur);
}

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

.startpagina-titel {
    font-family: var(--primair-lettertype);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primaire-kleur);
    animation: fadeInUpSmooth 1s ease forwards;
}

.startpagina-subtitel,
.startpagina-tekst {
    margin-bottom: 1.5rem;
    animation: fadeInUpSmooth 1s ease forwards;
}

.startpagina-grid {
    padding-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.startpagina-knop {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primaire-kleur);
    overflow: hidden;
    border-radius: 1rem;
    background-color: var(--secundaire-kleur);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.startpagina-knop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background-color: var(--secundaire-kleur-transparant);
}

.startpagina-knop img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.startpagina-knop span {
    font-family: var(--secundair-lettertype);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1rem;
    background-color: var(--secundaire-kleur);
    color: var(--accentkleur);
}

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

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

.reserveer-knop {
    background-color: var(--accentkleur);
    color: var(--secundaire-kleur);
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.reserveer-knop:hover {
    background-color: var(--primaire-kleur);
    color: var(--secundaire-kleur);
}

.grote-knop {
    padding: 1rem;
}

.foto-eten {
    margin: 2rem;
    max-height: 400px;
    border-radius: 8px;
}

.contact-link,
.foto-link {
    text-decoration: none;
    color: var(--accentkleur);
}

.contact-link:hover,
.foto-link:hover {
    color: var(--lichtere-kleur);
}

section {
    text-align: center;
}

section h1 {
    font-family: var(--primair-lettertype);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primaire-kleur);
}

.openingsinfo,
.reservatieformulier,
.wijzig-reservatieformulier {
    opacity: 0;
    transform: translateY(16px);
    animation: toonFormulier 2s ease forwards;
    animation-delay: 1s;
}

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

.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: 0.5rem auto;
}

.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(--primaire-kleur);
    border-radius: 5px;
    font-size: 1rem;
}

.reservatieformulier,
.wijzig-reservatieformulier {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--secundaire-kleur);
    padding: 40px;
    border-radius: 8px;
}

.form-groep {
    margin-bottom: 1.5rem;
    text-align: left;
}

.honeypot {
    display: none;
}

.form-groep label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-groep input,
.form-groep textarea {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--accentkleur);
    color: var(--primaire-kleur);
    border-radius: 5px;
    font-size: 1rem;
}

.form-groep select {
    width: 100%;
    padding: 10px;
    background-color: var(--secundaire-kleur);
    border: 1px solid var(--accentkleur);
    color: var(--primaire-kleur);
    border-radius: 5px;
    font-size: 1rem;
    height: 42px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"%3e%3cpath d="M7 10l5 5 5-5z"/%3e%3c/svg%3e') no-repeat right 10px
        center;
    background-size: 20px;
}

.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;
    transition: background 0.3s ease;
}

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

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

a.knop {
    text-align: center;
}

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

.annulering-vraag {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.annulering-bericht {
    margin-top: 120px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.annulering-knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primaire-kleur);
    color: var(--secundaire-kleur);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: var(--primair-lettertype);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    height: 55px;
    line-height: 1;
    margin: 2rem 1rem;
}

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

.bezienswaardigheid {
    padding: 3em 1em;
    max-width: 1100px;
    margin: 0 auto;
}

.bezienswaardigheid .content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2em;
}

.bezienswaardigheid .content.reverse {
    flex-direction: row-reverse;
}

.bezienswaardigheid .text {
    flex: 1;
    line-height: 1.6;
}

.bezienswaardigheid .text h3 {
    margin-bottom: 0.5em;
    text-align: center;
}

.regio-foto {
    flex: 1;
}

.regio-foto img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.regio-nav {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.regio-nav .tab-link {
    text-decoration: none;
    color: var(--accentkleur);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    transition:
        color 0.2s,
        border-color 0.2s;
}

.regio-nav .tab-link:hover {
    color: var(--primaire-kleur);
}

.regio-nav .tab-link.active {
    color: var(--accentkleur);
    border-color: var(--accentkleur);
}

.diavoorstelling {
    position: relative;
    display: inline-block;
    margin: 2rem auto;
}

.diavoorstelling img {
    width: 50vw;
    max-width: 800px;
    aspect-ratio: 4/3;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.6s ease;
    opacity: 1;
    display: block;
}

.pijl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primaire-kleur);
    color: var(--achtergrondkleur);
    border: none;
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.pijl:hover {
    background-color: var(--lichtere-kleur);
}

.pijl.links {
    left: 1rem;
}

.pijl.rechts {
    right: 1rem;
}

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

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Standaard verborgen */
    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: scale(0.9);
    opacity: 0;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

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

.popup-container.show .popup-venster {
    transform: scale(1);
    opacity: 1;
}

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

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

#datumkeuze-container {
    position: relative;
    width: 100%;
}

#toon-datum {
    cursor: pointer;
    background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"%3e%3cpath d="M7 10l5 5 5-5z"/%3e%3c/svg%3e') no-repeat right 10px
        center;
    background-size: 20px;
}

#kalender-element {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--secundaire-kleur);
    border: 1px solid var(--accentkleur);
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transform-origin: top;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.kalender-verborgen {
    display: none;
    opacity: 0;
    transform: scaleY(0.9);
}

.kalender-zichtbaar {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

.nav-knop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nav-knop .nav-knop {
    background: var(--primaire-kleur);
    color: var(--secundaire-kleur);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 3px;
}

.nav-knop span {
    font-size: 1.2rem;
    font-family: var(--secundair-lettertype);
    color: var(--primaire-kleur);
}

.kalender-weekdagen,
.kalender-raster {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.kalender-weekdagen span {
    color: var(--primaire-kleur);
    font-weight: bold;
    padding: 5px;
}

.kalender-raster .dag {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 3px;
}

.kalender-raster .dag:hover {
    background-color: var(--accentkleur);
    color: var(--secundaire-kleur);
}

.kalender-raster .dag.inactief {
    color: #ddd;
    cursor: not-allowed;
    background-color: transparent;
    opacity: 0.5;
}

.kalender-raster .dag.geselecteerd {
    background-color: var(--primaire-kleur);
    color: var(--secundaire-kleur);
    font-weight: bold;
}

#tijd {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--accentkleur);
    color: var(--primaire-kleur);
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"%3e%3cpath d="M7 10l5 5 5-5z"/%3e%3c/svg%3e') no-repeat right 10px
        center;
    background-size: 20px;
}

#chef {
    max-height: 800px;
    max-width: 80%;
    margin-top: 1rem;
    border-radius: 50%;
}

section h2:not(.geen-animatie),
section img:not(.geen-animatie) {
    opacity: 0;
    transform: translateY(20px);
}

.menu-sectie h2,
.menu-sectie p,
.feestzaal-sectie h2,
.feestzaal-sectie p {
    transform: none;
    opacity: 1;
}

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

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

.dieet-icoon {
    margin-left: 0.5rem;
    height: 1rem;
    vertical-align: middle;
}

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

.menu-container li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
}

.gerecht-foto {
    margin: 2rem;
}

.gerecht-foto img {
    max-height: 300px;
}

.gerecht-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.gerecht-header strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primaire-kleur);
    text-align: left;
    display: block;
}

.gerecht-prijs {
    font-size: 1rem;
    color: var(--primaire-kleur);
    margin-left: 20px;
    flex-shrink: 0;
}

.gerecht-beschrijving {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: #aaa;
    text-align: left;
}

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

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

.ruimte-na {
    margin-bottom: 2rem;
}

@keyframes softZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

section h2:not(.geen-animatie) {
    animation: fadeInUpSmooth 1s ease forwards;
    animation-delay: 0.3s;
}

section img:not(.geen-animatie) {
    animation: softZoomInBlur 1s ease forwards;
}

@keyframes softZoomInBlur {
    from {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.image-modal.show {
    display: flex;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.image-modal .modal-prev,
.image-modal .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.image-modal .modal-prev:hover,
.image-modal .modal-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.image-modal .modal-prev {
    left: 1rem;
}

.image-modal .modal-next {
    right: 1rem;
}

.checkbox-groep {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-groep label {
    font-weight: normal;
}

input[type="file"] {
    padding: 0.3rem 0;
}

.melding {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.melding-succes {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.melding-fout {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mededeling-startpagina {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.verborgen {
    display: none;
}

.contactformulier {
    padding-bottom: 2rem;
}

@media (min-width: 1001px) {
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 1rem 1rem 1rem;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    nav {
        flex: unset;
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav ul {
        justify-content: center;
        margin: 0;
        gap: 1.5rem;
    }

    .hamburger-menu {
        display: none;
    }

    .sluit-menu {
        display: none;
    }
}

.evenementen-lijst {
    display: grid;
    gap: 2rem;
}

.evenement {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.evenement img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.evenement .datum {
    font-weight: bold;
}

.vorige-evenementen-lijst li {
    margin-bottom: 1rem;
}

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

    .reserveer-knop {
        text-decoration: none;
        font-weight: bold;
        border-radius: 8px;
        text-align: center;
        margin: 2rem auto 0 auto;
        width: 50%;
    }

    .mobiel-afbreken {
        display: block;
    }

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

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

    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;
        transition: left 0.5s ease-in-out;
        z-index: 1001;
        transform: none;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 100vh;
        overflow-y: auto;
    }

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

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

    section h2 {
        font-size: 2rem;
    }

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

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

    .evenement {
        grid-template-columns: 1fr;
    }

    .evenement img {
        width: 80vw;
        height: auto;
        border-radius: 4px;
        margin: 0 auto;
    }

    .reservatieformulier,
    .wijzig-reservatieformulier {
        padding: 20px;
    }

    .diavoorstelling img {
        width: 90vw;
    }

    .pijl {
        display: none;
    }

    .bezienswaardigheid .content,
    .bezienswaardigheid .content.reverse {
        flex-direction: column;
    }

    .bezienswaardigheid .text h2 {
        text-align: center;
    }

    .foto-eten {
        max-width: 80vw;
    }

    footer {
        font-size: 0.7rem;
    }
}
