/* =============================================
   Martijn & Kim 2027
   Palet: zandwit #f5ede4 · donkerblauw #1e2d4a · accenblauw #4a7fa5
   ============================================= */

:root {
    --sand:        #f5ede4;
    --navy:        #1e2d4a;
    --gold:        #4a7fa5;
    --gold-light:  #6a9fc0;
    --header-h:    56px;
    --white:       #ffffff;
    --glass:       rgba(255, 255, 255, 0.82);
    --glass-light: rgba(255, 255, 255, 0.55);

    --font:        'Montserrat', sans-serif;
    --max-width:   900px;
    --radius:      10px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-color: #fcf5ee;
    background-image: url('../images/header.png');
    background-repeat: no-repeat;
    background-size: 2508px 2508px;
    background-position: center top;
    background-attachment: fixed;
    padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-light); }

/* ── Header & nav ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: #fcf5ee;
    border-bottom: 1px solid rgba(30,45,74,.12);
    z-index: 100;
    display: flex;
    align-items: stretch;
    overflow: visible;
}

/* Nav neemt alle beschikbare breedte (desktop) */
.site-nav {
    flex: 1;
    order: 1;
    position: relative;
    z-index: 1;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
    padding: 1rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.site-nav a {
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .05em;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--gold);
    border-color: var(--gold);
    text-decoration: none;
}

/* Header-inner rechts van nav (desktop) */
.header-inner {
    order: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: 0 .75rem;
}

/* Hamburger (verborgen op desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: opacity .2s, transform .3s;
}

/* ── Gebruikersmenu ── */
.gebruiker-menu {
    position: relative;
}

/* Verberg standaard details-driehoekje */
.gebruiker-menu-knop { list-style: none; }
.gebruiker-menu-knop::-webkit-details-marker { display: none; }

.gebruiker-menu-knop {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .5rem;
    cursor: pointer;
    border-radius: calc(var(--radius) - 2px);
    transition: background .15s;
    user-select: none;
    white-space: nowrap;
}

.gebruiker-menu-knop:hover,
.gebruiker-menu[open] .gebruiker-menu-knop {
    background: rgba(30,45,74,.07);
}

.gebruiker-icoon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #9aa5b8;                         /* grijs: niet ingelogd */
    transition: color .2s;
}

.gebruiker-menu[data-ingelogd="1"] .gebruiker-icoon {
    color: var(--navy);                     /* donker: ingelogd */
}

.gebruiker-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9aa5b8;
}

/* Dropdown */
.gebruiker-dropdown {
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid rgba(30,45,74,.11);
    box-shadow: 0 6px 20px rgba(30,45,74,.13);
    min-width: 210px;
    z-index: 200;
    overflow: hidden;
}

.gebruiker-dd-naam {
    padding: .7rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    background: rgba(30,45,74,.03);
    border-bottom: 1px solid rgba(30,45,74,.08);
}

.gebruiker-dd-link {
    display: block;
    padding: .6rem 1rem;
    font-size: .88rem;
    color: var(--navy);
    text-decoration: none;
    transition: background .12s;
}

.gebruiker-dd-link:hover {
    background: rgba(74,127,165,.09);
    text-decoration: none;
    color: var(--navy);
}

.gebruiker-dd-scheiding {
    height: 1px;
    background: rgba(30,45,74,.08);
    margin: .25rem 0;
}

.gebruiker-dd-afmeld {
    padding: .25rem .4rem .4rem;
}

.gebruiker-dd-afmeld button {
    width: 100%;
    padding: .5rem .6rem;
    font-family: var(--font);
    font-size: .88rem;
    font-weight: 600;
    color: #b91c1c;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: calc(var(--radius) - 4px);
    transition: background .12s;
}

.gebruiker-dd-afmeld button:hover {
    background: rgba(185,28,28,.07);
}

/* ── Pagina-afbeelding ── */
.page-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: block;
    max-height: 380px;
    object-fit: cover;
}

/* ── Main ── */
.site-main {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Homepage logo (boven afteltimer, geen achtergrond) ── */
.home-logo {
    display: block;
    width: 100%;
    margin: 0 auto 1.5rem;
}

/* ── Hero (homepage afteltimer) ── */
.hero {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--glass);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

/* Aftellen */
#countdown-timer {
    display: inline-flex;
    gap: 1.5rem;
    background: var(--navy);
    color: var(--sand);
    border-radius: var(--radius);
    padding: 1rem 2rem;
}

#countdown-timer .unit { display: flex; flex-direction: column; align-items: center; }
#countdown-timer .number { font-size: 2.2rem; font-weight: 700; line-height: 1; }
#countdown-timer .label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; margin-top: .2rem; }

/* ── Kaarten / content blokken ── */
.card {
    background: var(--glass);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--navy);
}

.card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .75rem;
    letter-spacing: .02em;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #356a94;
    margin: 1.1rem 0 .35rem;
}

.card p + p { margin-top: .6rem; }

.card ul { padding-left: 1.3rem; margin-top: .25rem; }
.card li { margin-bottom: .25rem; }

/* ── Toggle-switch (bv. site-status in beheer) ── */
.toggle-switch-rij {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}
.toggle-switch .toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--gold);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}
.toggle-switch input:focus-visible + .toggle-slider {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}
.toggle-switch-label {
    font-weight: 700;
    color: var(--navy);
    font-size: .92rem;
}

/* Pagina-titel boven kaarten */
h1.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: .02em;
    text-shadow: 0 1px 6px rgba(255,255,255,.6);
}

/* ── Weerwidget ── */
.weer-header {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: .9rem;
}

.weer-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.weer-temp {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.weer-beschrijving {
    font-size: .9rem;
    font-weight: 600;
    color: #356a94;
    margin-top: .25rem;
}

.weer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .45rem;
    margin-bottom: .5rem;
}

.weer-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: calc(var(--radius) - 3px);
    padding: .5rem .75rem;
}

.weer-item-label {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy);
    opacity: .55;
    margin-bottom: .15rem;
    white-space: nowrap;
}

.weer-item-value {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
}

.weer-forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .35rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(30,45,74,.1);
}

.weer-forecast-dag {
    text-align: center;
    background: rgba(255,255,255,.45);
    border-radius: calc(var(--radius) - 3px);
    padding: .4rem .2rem;
}

.weer-forecast-naam {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--navy);
    opacity: .65;
    margin-bottom: .15rem;
}

.weer-forecast-icon {
    width: 30px;
    height: 30px;
    margin: .15rem auto;
}

.weer-forecast-temp {
    font-size: .85rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.weer-forecast-min {
    font-size: .75rem;
    color: var(--navy);
    opacity: .55;
    line-height: 1.2;
}

.weer-forecast-regen {
    font-size: .68rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: .15rem;
}

.weer-bron {
    font-size: .72rem;
    color: var(--navy);
    opacity: .5;
    margin-top: .75rem;
    padding-top: .6rem;
    border-top: 1px solid rgba(30,45,74,.1);
}

.weer-fallback {
    font-size: .9rem;
    color: var(--navy);
    opacity: .6;
    font-style: italic;
}

/* ── Tijdlijn (programma) ── */
.timeline {
    list-style: none;
    padding-left: 0;
    margin-top: .5rem;
}

.timeline li {
    padding: .45rem 0;
}

.timeline .time {
    font-weight: 700;
    color: var(--navy);
    min-width: 4rem;
    display: inline-block;
}

/* ── Knoppen ── */
.btn {
    display: inline-block;
    padding: .65rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .2s, transform .1s;
}

.btn-primary {
    background: var(--navy);
    color: var(--sand);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Inlogpagina ── */
.login-wrap { max-width: 380px; margin: 1rem auto; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .35rem;
    color: var(--navy);
}

.form-group input {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid rgba(30,45,74,.25);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    background: rgba(255,255,255,.7);
    color: var(--navy);
    transition: border-color .2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,.95);
}

/* ── Toast-meldingen (fixed onderaan) ── */
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.alert {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    padding: .8rem 1.5rem;
    border-radius: var(--radius);
    font-size: .9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    min-width: 260px;
    max-width: min(520px, calc(100vw - 2rem));
    text-align: center;
    animation: toastIn .25s ease;
    transition: opacity .3s ease, transform .3s ease;
    cursor: pointer;
}
.alert.toast-weg {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}
.alert-error   { background: #fde8e8; color: #b91c1c; border: 1px solid #f5c6c6; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* Admin-bewerkingsbalk (persistent, niet als toast) */
.rsvp-admin-balk {
    background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9;
    border-radius: var(--radius); padding: .75rem 1rem;
    margin-bottom: 1rem; font-size: .9rem;
}

/* RSVP-dot in gebruikersmenu */
.rsvp-nav-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: #e07f1a;
    margin-left: .4rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 1.2rem;
    background: rgba(30,45,74,.85);
    color: rgba(245,237,228,.75);
    font-size: .82rem;
    letter-spacing: .03em;
}

/* ── Beheer ── */
.beheer-teller {
    font-size: .82rem;
    font-weight: 400;
    opacity: .6;
    margin-left: .5rem;
}

.btn-sm {
    padding: .3rem .7rem;
    font-size: .78rem;
    letter-spacing: .03em;
    line-height: 1.4;
    box-sizing: border-box;
    vertical-align: middle;
}

.btn-actie-icoon {
    width: 2.4rem;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.btn-danger {
    background: #b91c1c;
    color: #fff;
}
.btn-danger:hover {
    background: #991b1b;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.beheer-tabel-wrap {
    overflow-x: auto;
    margin: 0 -2rem -1.75rem;
    border-top: 1px solid rgba(30,45,74,.08);
}

.beheer-tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 660px;
}

.beheer-tabel th {
    background: var(--navy);
    color: var(--sand);
    padding: .55rem .8rem .6rem;
    text-align: left;
    vertical-align: bottom;
    border-bottom: 2px solid rgba(30,45,74,.25);
    border-right: 1px solid rgba(255,255,255,.12);
}
.beheer-tabel th:last-child { border-right: none; }

.col-filter {
    display: block;
    width: 100%;
    margin-bottom: .38rem;
    padding: .22rem .45rem;
    font-size: .72rem;
    font-family: var(--font);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    background: rgba(255,255,255,.1);
    color: var(--sand);
    transition: background .15s, border-color .15s;
}
.col-filter::placeholder { color: rgba(255,255,255,.35); }
.col-filter:focus { outline: none; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }
select.col-filter option { background: #1e2d4a; color: #f5ede4; }

.th-label {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.sorteer-knop {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: .12rem .22rem;
    color: var(--sand);
    font-size: .68rem;
    line-height: 1;
    border-radius: 3px;
    opacity: .45;
    transition: opacity .15s, background .15s;
    font-family: var(--font);
}
.sorteer-knop:hover { opacity: 1; background: rgba(255,255,255,.14); }
.sorteer-knop.actief { opacity: 1; }

.beheer-tabel td {
    padding: .55rem .8rem;
    border-bottom: 1px solid rgba(30,45,74,.09);
    border-right: 1px solid rgba(30,45,74,.07);
    vertical-align: middle;
    color: var(--navy);
}
.beheer-tabel td:last-child { border-right: none; }
.beheer-tabel tr.user-row:hover > td { background: rgba(74,127,165,.07); }

.rol-icoon { vertical-align: -3px; }
.rol-icoon.admin   { color: var(--navy); }
.rol-icoon.bezoeker { color: #94a3b8; }

.beheer-jij {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    background: var(--gold);
    color: #fff;
    border-radius: 3px;
    padding: .08rem .3rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: .3rem;
}

.knop-icoon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: none;
    border: 1.5px solid rgba(30,45,74,.18);
    cursor: pointer;
    color: var(--navy);
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
    vertical-align: middle;
}
.knop-icoon:hover             { background: rgba(74,127,165,.1); border-color: var(--gold); color: var(--gold); }
.knop-icoon.actief            { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.knop-icoon.gevaar            { border-color: rgba(185,28,28,.25); color: #b91c1c; }
.knop-icoon.gevaar:hover      { background: rgba(185,28,28,.07); border-color: #b91c1c; }

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,32,58,.55);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.modal-overlay.open { display: flex; }
.modal-overlay.open .modal-box {
    animation: modal-in .18s ease-out;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.modal-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(20,32,58,.28);
    max-width: 540px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    background: var(--navy);
    flex-shrink: 0;
}

.modal-titel {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sand);
    letter-spacing: .02em;
    margin: 0;
}

.modal-sluiten {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sand);
    opacity: .65;
    border-radius: 4px;
    transition: opacity .15s, background .15s;
    flex-shrink: 0;
}
.modal-sluiten:hover { opacity: 1; background: rgba(255,255,255,.15); }

.modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-sectiehoofd {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(30,45,74,.4);
    margin: 0 0 .45rem;
}

.modal-rsvp-icoon {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.modal-rsvp-icoon.leeg { color: #b91c1c; }

.modal-groep {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-bottom: .1rem;
}

.modal-rij {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0 .75rem;
    align-items: start;
    padding: .18rem 0;
}

.modal-hr {
    border: none;
    border-top: 1px solid rgba(30,45,74,.09);
    margin: .9rem 0 .85rem;
}

.modal-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    opacity: .5;
    line-height: 1.5;
}
.modal-label-top { padding-top: .2rem; }

.modal-waarde {
    font-size: .9rem;
    color: var(--navy);
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
}

.modal-waarde select,
.modal-waarde textarea {
    width: 100%;
    padding: .38rem .6rem;
    border: 1.5px solid rgba(30,45,74,.22);
    border-radius: calc(var(--radius) - 2px);
    font-family: var(--font);
    font-size: .88rem;
    background: rgba(255,255,255,.85);
    color: var(--navy);
    transition: border-color .2s;
}
.modal-waarde select:focus,
.modal-waarde textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.modal-waarde textarea { resize: vertical; min-height: 62px; }

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.25rem;
    border-top: 1px solid rgba(30,45,74,.1);
    background: rgba(30,45,74,.03);
    flex-shrink: 0;
}

.modal-footer-links {
    display: flex;
    align-items: center;
    gap: .5rem;
}

@media (max-width: 700px) {
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-box     { max-width: 100%; max-height: 85vh; border-radius: var(--radius) var(--radius) 0 0; }
    .modal-rij     { grid-template-columns: 130px 1fr; }
}

/* ── Paginering ── */
.paginering {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
    font-size: .85rem;
}
.paginering a,
.paginering button,
.paginering span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 .45rem;
    border-radius: calc(var(--radius) - 3px);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font);
    font-size: .82rem;
    color: var(--navy);
    border: 1px solid rgba(30,45,74,.18);
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: background .15s;
}
.paginering a:hover,
.paginering button:hover { background: rgba(74,127,165,.15); text-decoration: none; }
.paginering .actief      { background: var(--navy); color: var(--sand); border-color: var(--navy); pointer-events: none; }
.paginering .uitgeschakeld { opacity: .3; pointer-events: none; cursor: default; }
.paginering .ellipsis    { border: none; background: none; pointer-events: none; opacity: .5; }

@media (max-width: 700px) {
    .beheer-tabel-wrap { margin: 0 -1.25rem -1.25rem; }
    .detail-grid       { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive ── */
@media (max-width: 700px) {
    /* Header wordt een blok: header-inner bovenaan (56px), nav eronder als overlay */
    .site-header {
        display: block;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: var(--header-h);
        padding: 0 1rem;
    }

    .nav-toggle { display: flex; }

    /* Nav verbergen als dropdown-overlay */
    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fcf5ee;
        border-top: 1px solid rgba(30,45,74,.08);
        box-shadow: 0 4px 12px rgba(30,45,74,.08);
        display: none;
        z-index: 99;
    }

    .site-nav.is-open { display: block; }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        justify-content: flex-start;
        height: auto;
        align-items: stretch;
    }

    .site-nav a {
        display: block;
        padding: .85rem 1.5rem;
        border-bottom: 1px solid rgba(30,45,74,.1);
        border-left: none;
        text-transform: uppercase;
    }

    .site-nav a.active,
    .site-nav a:hover { background: rgba(74,127,165,.09); }

    /* Gebruikersmenu dropdown op mobiel: links uitlijnen */
    .gebruiker-dropdown {
        right: 0;
        min-width: 190px;
    }

    .gebruiker-label { display: none; } /* label verbergen op small screens */

    .card { padding: 1.25rem 1.25rem; }

    #countdown-timer { gap: 1rem; padding: .85rem 1.25rem; }
    #countdown-timer .number { font-size: 1.7rem; }

    .hero { padding: 2.5rem 1rem 2rem; }
}

/* ── Nieuwsbrieven ── */
.nb-status-icoon {
    font-size: .85rem;
    font-weight: 700;
}
.nb-status-icoon.ja  { color: #15803d; }
.nb-status-icoon.nee { color: rgba(30,45,74,.3); }

.nb-preview-blok {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--navy);
    margin-top: .75rem;
    max-height: 180px;
    overflow: hidden;
    position: relative;
}
.nb-preview-blok::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(transparent, #fff);
}

.nb-bericht-inhoud {
    font-size: .97rem;
    line-height: 1.85;
}
.nb-bericht-inhoud h2 { font-size: 1.15rem; margin: 1.1rem 0 .5rem; }
.nb-bericht-inhoud h3 { font-size: 1rem;    margin: 1rem 0 .4rem; }
.nb-bericht-inhoud p  { margin-bottom: .75rem; }
.nb-bericht-inhoud ul,
.nb-bericht-inhoud ol { padding-left: 1.4rem; margin-bottom: .75rem; }

.nb-kaart {
    display: block;
    padding: 1.1rem 1.5rem;
    border-left: 3px solid var(--gold);
    text-decoration: none;
    color: var(--navy);
    transition: box-shadow .15s, border-color .15s;
}
.nb-kaart:hover {
    box-shadow: 0 4px 18px rgba(30,45,74,.13);
    border-color: var(--gold-light);
    text-decoration: none;
    color: var(--navy);
}
.nb-kaart-datum {
    font-size: .75rem;
    opacity: .45;
    margin-bottom: .2rem;
}
.nb-kaart-titel {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .3rem;
}
.nb-kaart-preview {
    font-size: .87rem;
    opacity: .65;
    margin: 0 0 .5rem;
    line-height: 1.6;
}
.nb-kaart-lees {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gold);
}

/* Quill editor overrides */
.ql-toolbar.ql-snow {
    border-radius: var(--radius) var(--radius) 0 0;
    border-color: rgba(30,45,74,.22);
    font-family: var(--font);
}
.ql-container.ql-snow {
    border-radius: 0 0 var(--radius) var(--radius);
    border-color: rgba(30,45,74,.22);
    font-family: var(--font);
    font-size: .92rem;
}

/* ── RSVP-module ───────────────────────────────────────────────────────── */

/* Stapnummer */
.rsvp-stap-titel {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.05rem;
    margin-bottom: .65rem;
}
.rsvp-stap-nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--sand);
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Naam-rij (stap 1) */
.naam-rij {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(30,45,74,.07);
}
.naam-rij:last-of-type { border-bottom: none; }
.naam-rij-waarde { flex: 1; }

.naam-rij-extra input[type=text] {
    flex: 1;
    padding: .4rem .7rem;
    border: 1.5px solid rgba(30,45,74,.2);
    border-radius: 6px;
    font-family: var(--font);
    font-size: .9rem;
    color: var(--navy);
    min-width: 0;
}
.naam-rij-extra input[type=text]:focus {
    outline: none;
    border-color: var(--gold);
}

/* Verwijder-knop × in naam-rij */
.verwijder-knop {
    background: none;
    border: 1.5px solid rgba(185,28,28,.3);
    color: #b91c1c;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .12s, border-color .12s;
}
.verwijder-knop:hover { background: rgba(185,28,28,.07); border-color: #b91c1c; }

/* RSVP-tabel (secties 2-5) */
.rsvp-tabel th,
.rsvp-tabel td { font-size: .88rem; vertical-align: middle; }
.rsvp-tabel td { padding: .4rem .75rem; }

/* Autocomplete-dropdown */
.autocomplete-dropdown {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1.5px solid rgba(30,45,74,.18);
    border-radius: var(--radius);
    list-style: none;
    margin: 0;
    padding: .25rem 0;
    box-shadow: 0 6px 18px rgba(30,45,74,.12);
}
.autocomplete-dropdown li {
    padding: .35rem .85rem;
    cursor: pointer;
    font-size: .88rem;
    color: var(--navy);
}
.autocomplete-dropdown li:hover { background: rgba(74,127,165,.1); }

/* Dieet-blok (stap 6) */
.rsvp-dieet-blok {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(30,45,74,.07);
}
.rsvp-dieet-blok:last-of-type { border-bottom: none; }
.rsvp-dieet-naam {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .5rem;
}
.dieet-opties {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
}
.dieet-optie {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .88rem;
    cursor: pointer;
    white-space: nowrap;
}

/* Beheer-navigatie (pagina-niveau tabbladen) */
.beheer-nav {
    display: flex;
    gap: .25rem;
    border-bottom: 2px solid rgba(30,45,74,.12);
    margin-bottom: 1.5rem;
}
.beheer-nav-tab {
    display: inline-block;
    padding: .55rem 1.25rem;
    font-size: .88rem;
    font-weight: 600;
    color: rgba(30,45,74,.6);
    text-decoration: none;
    border-radius: var(--radius) var(--radius) 0 0;
    border: 2px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
    transition: background .15s, color .15s;
}
.beheer-nav-tab:hover {
    background: rgba(30,45,74,.06);
    color: var(--navy);
}
.beheer-nav-tab.actief {
    background: #fff;
    border-color: rgba(30,45,74,.12);
    border-bottom-color: #fff;
    color: var(--navy);
}

/* Tab-systeem (rsvp-beheer) */
.tab-balk {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    border-bottom: 2px solid rgba(30,45,74,.12);
    padding-bottom: 0;
}
.tab-knop {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .55rem 1rem;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    color: rgba(30,45,74,.55);
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.tab-knop:hover { color: var(--navy); background: rgba(30,45,74,.04); }
.tab-knop.actief {
    color: var(--navy);
    border-bottom-color: var(--navy);
    background: rgba(30,45,74,.04);
}
.tab-panel { }
.tab-verborgen { display: none; }

/* Stat-kaartjes (Tab 1) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .85rem;
}
.stat-kaart {
    background: var(--glass);
    border: 1.5px solid rgba(30,45,74,.1);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    text-align: center;
}
.stat-getal {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.stat-label {
    font-size: .75rem;
    color: rgba(30,45,74,.55);
    margin-top: .2rem;
}

/* RSVP-highlight rij */
.rsvp-highlight { background: rgba(74,127,165,.1) !important; }

/* RSVP-persoon in detail-modal */
.rsvp-persoon-modal {
    padding: .6rem 0;
    border-bottom: 1px solid rgba(30,45,74,.08);
}
.rsvp-persoon-modal:last-of-type { border-bottom: none; }
.rsvp-persoon-modal-naam {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ── RSVP Voortgang ── */
.rsvp-voortgang {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1.25rem;
    background: rgba(255,255,255,.65);
    border-radius: var(--radius);
    border: 1.5px solid rgba(30,45,74,.1);
}
.rsvp-voortgang-stappen {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}
.rsvp-stap-dot {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    border: 2px solid rgba(30,45,74,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: rgba(30,45,74,.3);
    transition: background .2s, border-color .2s, color .2s;
    flex-shrink: 0;
    cursor: default;
}
.rsvp-stap-dot.volledig {
    background: #2a8a50;
    border-color: #2a8a50;
    color: #fff;
}
.rsvp-stap-dot.onbekend {
    background: #e07f1a;
    border-color: #e07f1a;
    color: #fff;
}
.rsvp-stap-dot.leeg {
    background: rgba(196,50,50,.1);
    border-color: rgba(196,50,50,.3);
    color: rgba(196,50,50,.65);
}
.rsvp-voortgang-tekst {
    font-size: .8rem;
    color: rgba(30,45,74,.55);
}

/* ── Stap-status badge ── */
.rsvp-stap-status {
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 20px;
    margin-left: .5rem;
    vertical-align: middle;
    transition: background .2s, color .2s;
}
.rsvp-stap-status.volledig {
    background: rgba(42,138,80,.13);
    color: #267045;
}
.rsvp-stap-status.onbekend {
    background: rgba(224,127,26,.12);
    color: #b5610a;
}
.rsvp-stap-status.onvolledig {
    background: rgba(30,45,74,.06);
    color: rgba(30,45,74,.4);
}

/* ── Dieet uitklap ── */
.rsvp-dieet-blok {
    padding: 1rem 1.1rem;
    border: 1.5px solid rgba(30,45,74,.1);
    border-radius: var(--radius);
    margin-bottom: .75rem;
}
.rsvp-dieet-naam-label {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .15rem;
}
.rsvp-dieet-vraag {
    display: flex;
    gap: 1.5rem;
    margin: .5rem 0 0;
    flex-wrap: wrap;
}
.rsvp-dieet-vraag label {
    display: flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    font-size: .9rem;
}
.rsvp-dieet-opties-wrap {
    overflow: hidden;
    transition: max-height .25s ease;
    max-height: 0;
}
.rsvp-dieet-opties-wrap.open {
    max-height: 500px;
}

/* ── Onbekend label ── */
.rsvp-onbekend-label {
    font-size: .82rem;
    color: rgba(30,45,74,.6);
    cursor: pointer;
}

/* ── Volledigheid badge (beheer) ── */
.rsvp-volledigheid-badge {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    padding: .2rem .65rem;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
    background: rgba(30,45,74,.06);
    color: rgba(30,45,74,.45);
}
.rsvp-volledigheid-badge.gedeeltelijk {
    background: rgba(74,127,165,.12);
    color: var(--gold);
}
.rsvp-volledigheid-badge.volledig {
    background: rgba(74,127,165,.22);
    color: #2d6a90;
}
