/* ============================= */
/* KLEUREN & VARIABELEN          */
/* ============================= */
:root {
    --accent: #ff7f50;        /* coral */
    --accent-soft: #ffd6c9;
    --bg-side: #f4f7fb;
    --bg-content: #dce9f0;
    --text-dark: #1d3557;
}

/* ============================= */
/* BASIS                         */
/* ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: var(--bg-side);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.index {
    margin: 0 auto;
}

/* ============================= */
/* PAGINA WRAPPER                */
/* ============================= */
.pagina-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
}

/* ============================= */
/* MENU KOLOM                    */
/* ============================= */
.menu-kolom {
    width: 230px;
    min-width: 200px;
    background: var(--accent-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu {
    width: 100%;
    min-width: unset;
    background: transparent;
    padding: 0.75rem 0.5rem;
    flex: 0;
}

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

.menuitem,
.bestelmenuitem {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.2rem;
    padding: 0 1rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    background: linear-gradient(145deg, #ffffff, #f3f3f3);
    border-radius: 6px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    line-height: 1.25;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.menuitem:hover {
    background: linear-gradient(145deg, #ffe5db, #ffd6c9);
    transform: translateY(-1px);
}

.menuitem.active {
    background: linear-gradient(145deg, var(--accent), #ff9f7f);
    color: #fff;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
.site-footer {
    margin-top: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    border-top: none;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    opacity: 0.6;
    border-top: none;  /* lijn weg */
    padding-top: 0;
}

.footer-bottom p {
    margin: 0;
}

/* ============================= */
/* CONTENT WRAPPER               */
/* ============================= */
.hoofdtekst {
    flex: 1;
    background: var(--bg-content);
    padding: 2rem 3rem;
    margin: 0 1rem;
    border-radius: 6px;
    box-shadow:
            0 10px 30px rgba(0,0,0,0.12),
            inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ============================= */
/* HOOFDING (ALGEMEEN)           */
/* ============================= */
.hoofding {
    max-width: 1100px;
    margin: 0 auto 2rem auto;
}

.hoofding h3 {
    margin: 0.2rem 0;
    line-height: 1.1;
    font-weight: 600;
}

.index .hoofding {
    text-align: center;
    margin: 0.5rem 0 0.75rem;
}

/* ============================= */
/* FLEX-SECTIES (HERBRUIKBAAR)   */
/* ============================= */
.media-blok {
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
}

.media-blok.reverse {
    flex-direction: row-reverse;
}

.index .media-blok {
    justify-content: center;
    align-items: center;
}

/* ============================= */
/* KOLOMMEN                      */
/* ============================= */
.kolom-tekst {
    flex: 1;
    line-height: 1.45;
}

h1 {
    color: var(--accent);
    letter-spacing: 0.02em;
}

.event {
    margin: 3rem 0 0.25rem;
    line-height: 1.2rem;
}

.kolom-tekst h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}

.kolom-foto {
    flex: 0 0 34%;
}

/* ============================= */
/* AFBEELDINGEN                  */
/* ============================= */
.media-foto {
    width: 50%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #eee;
}

.index .media-foto {
    width: 35%;
    height: auto;
    aspect-ratio: 3 / 4;
}

.media-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;  /* hoofd bovenaan houden */
    display: block;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.media-foto:hover img {
    transform: scale(1.03);
}

/* ============================= */
/* BREADCRUMB                    */
/* ============================= */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.breadcrumb a {
    color: var(--text-dark);
    text-decoration: none;
}

/* ============================= */
/* ALFABET                       */
/* ============================= */
.alfabet-navigatie {
    text-align: center;
    margin-bottom: 2.5rem;
}

.alfabet-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.alfabet-links a {
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
    padding: 0.25rem 0.4rem;
}

.alfabet-links a:hover {
    text-decoration: underline;
}

.letterblok {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.letter {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-align: center;
}

.letter-content {
    max-width: 850px;
}

.letter-item {
    margin-bottom: 1.4rem;
}

.letter-item h2 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.letter-item p {
    line-height: 1.45;
}

.terug {
    margin-top: 0.8rem;
}

.terug a {
    font-size: 0.9rem;
    color: #666;
}

/* ============================= */
/* AFTELKLOK                     */
/* ============================= */
#aftelklok {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    flex-wrap: wrap;
}

.lcdstyle {
    position: relative;
    display: inline-block;
    background: linear-gradient(
            to bottom,
            #111 0%,
            #000 50%,
            #111 100%
    );
    color: #8cffb0;
    font-family: "Courier New", Consolas, Menlo, monospace;
    font-weight: bold;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    padding: 0.75em 1.25em;
    border-radius: 4px;
    border: 1px solid #0a0a0a;
    box-shadow:
            inset 0 0 8px rgba(0, 0, 0, 0.8),
            0 0 6px rgba(140, 255, 176, 0.35);
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
}

.lcdstyle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 3px
    );
    pointer-events: none;
}

.aftel-tekst {
    font-size: 1.2rem;
    color: #333;
    white-space: nowrap;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */
@media (max-width: 980px) {
    .pagina-wrapper {
        flex-direction: column;
    }

    .menu-kolom {
        width: 100%;
        min-width: unset;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menuitem {
        flex: 1 1 45%;
        margin: 0.25rem;
    }

    .site-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .footer-bottom {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    .hoofdtekst {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .media-blok {
        flex-direction: column;
        gap: 1.5rem;
    }

    .kolom-foto {
        flex: 0 0 auto;
    }

    .fotosuper {
        width: 85%;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .letterblok {
        grid-template-columns: 1fr;
    }

    .letter {
        font-size: 3rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hoofding h1 {
        font-size: 2rem;
    }
    .alfabet-links a {
        font-size: 0.9rem;
    }
    .letter {
        font-size: 2.4rem;
    }
}

/* ============================= */
/* DIVERSEN                      */
/* ============================= */
.onderelkaar-blok p {
    margin-bottom: 1.5rem;
}

.onderelkaar-blok img {
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* ============================= */
/* ARCHIEF NAVIGATIE             */
/* ============================= */
.archief-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.archief-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

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

/* ============================= */
/* KAART                         */
/* ============================= */
.kaart-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
}

/* ============================= */
/* FORMULIEREN                   */
/* ============================= */
.gastenboek-form,
form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 600px;
    margin-top: 1.5rem;
}

.gastenboek-form label,
form label {
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.gastenboek-form input,
.gastenboek-form textarea,
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.2s ease;
}

.gastenboek-form input:focus,
.gastenboek-form textarea:focus,
form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.15);
}

.form-hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: #888;
}

form button,
.gastenboek-form button {
    align-self: flex-start;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

form button[type="reset"] {
    background: #aaa;
    margin-left: 0.5rem;
}

form button:hover,
.gastenboek-form button:hover {
    background: #e06a3a;
    transform: translateY(-1px);
}

form button[type="reset"]:hover {
    background: #888;
}

.succes {
    color: green;
    font-weight: 700;
    padding: 0.75rem 1rem;
    background: #e6f9e6;
    border-radius: 6px;
    border-left: 4px solid green;
}

ul.errors {
    color: #c0392b;
    background: #fdecea;
    border-left: 4px solid #c0392b;
    border-radius: 6px;
    padding: 0.75rem 1rem 0.75rem 2rem;
}

/* ============================= */
/* GASTENBOEK BERICHTEN          */
/* ============================= */
.gastenboek-berichten {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gastenboek-bericht {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    border-left: 4px solid var(--accent);
}

.gastenboek-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.gastenboek-datum {
    color: #888;
    font-style: italic;
}

.gastenboek-tekst {
    margin: 0;
    line-height: 1.5;
}

/* ============================= */
/* ARCHIEF JAARKEUZE             */
/* ============================= */

.jaar-keuze {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.jaar-keuze a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

.jaar-keuze a:hover {
    text-decoration: underline;
}

/* ============================= */
/* FOTOGALERIJ                   */
/* ============================= */
.galerij-overzicht {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 980px) {
    .galerij-overzicht {
        grid-template-columns: repeat(2, 1fr);
    }
}

.galerij-kaart {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 200px;
    transition: transform 0.2s ease;
}

.galerij-kaart:hover {
    transform: translateY(-3px);
}

.galerij-kaart img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.galerij-kaart p {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumbnail-grid a img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-grid a:hover img {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.foto-groot {
    text-align: center;
    margin: 1rem 0;
}

.foto-groot img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.terug-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.terug-link:hover {
    text-decoration: underline;
}