/* ==========================================================================
   JOCUS Leejedaag — vintage stijl
   Crème/sepia papier, bordeauxrode inkt, kalligrafie + slab-serif.
   Geïnspireerd op de originele uitnodiging.
   ========================================================================== */

:root {
    --creme:        #f4e3cd;   /* papier-achtergrond */
    --creme-licht:  #fbf3e3;   /* kaarten/velden */
    --creme-warm:   #efdcbf;
    --rand:         #e3cda6;   /* subtiele rand op crème */
    --bordeaux:     #6f1a23;   /* hoofdkleur (inkt/titels) */
    --bordeaux-diep:#54121a;
    --bordeaux-licht:#8c2f37;
    --sepia:        #a9824f;   /* lijntekening/illustratie */
    --sepia-licht:  #c4a275;
    --inkt:         #46342a;   /* bodytekst (warm donkerbruin) */
    --inkt-zacht:   #836a57;   /* gedempt */
    --wit:          #fffaf2;
    --schaduw:      0 16px 40px rgba(84, 18, 26, .16);
    --schaduw-sm:   0 6px 16px rgba(84, 18, 26, .10);
    --radius:       10px;
    --radius-sm:    7px;
    --max:          1040px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
    font-weight: 300;
    color: var(--inkt);
    background-color: var(--creme);
    background-image:
        radial-gradient(circle at 50% 0, rgba(169, 130, 79, .10), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='40' height='40' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--bordeaux);
}

a { color: var(--bordeaux); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap--smal { max-width: 600px; }

.script { font-family: "Great Vibes", "Brush Script MT", cursive; font-weight: 400; }

/* ---- Knoppen ---------------------------------------------------------- */
.btn {
    display: inline-block;
    background: var(--bordeaux);
    color: var(--wit);
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 14px 30px;
    cursor: pointer;
    box-shadow: var(--schaduw-sm);
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--bordeaux-diep); transform: translateY(-2px); box-shadow: var(--schaduw); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sepia); outline-offset: 3px; }
.btn--groot { font-size: 1rem; padding: 16px 40px; }
.btn--vol { width: 100%; }
.btn--licht { background: transparent; color: var(--bordeaux); border: 2px solid var(--bordeaux); box-shadow: none; padding: 12px 26px; }
.btn--licht:hover { background: var(--bordeaux); color: var(--wit); }
.btn--grijs { background: #8a7763; }
.btn--grijs:hover { background: #6f5e4d; }

/* ==========================================================================
   Hero — als de uitnodiging (kader + kalligrafie + skyline)
   ========================================================================== */
.hero { background: var(--creme); padding: 40px 18px 0; }

.kader {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 32px 0;
    border: 2px solid var(--bordeaux);
    outline: 1px solid var(--bordeaux);
    outline-offset: 6px;
    background:
        radial-gradient(circle at 50% 0, rgba(111, 26, 35, .05), transparent 55%);
    overflow: hidden;
}

/* Hoekornamenten */
.hoek { position: absolute; width: 54px; height: 54px; color: var(--bordeaux); }
.hoek--lo { top: 10px;  left: 10px;  }
.hoek--ro { top: 10px;  right: 10px; transform: scaleX(-1); }
.hoek--lb { bottom: 10px; left: 10px;  transform: scaleY(-1); }
.hoek--rb { bottom: 10px; right: 10px; transform: scale(-1, -1); }

.hero__inner { position: relative; z-index: 2; text-align: center; }

.eyebrow {
    font-family: "Roboto Slab", serif;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .68rem;
    font-weight: 500;
    color: var(--sepia);
    margin-bottom: 8px;
}

.titel-script {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    color: var(--bordeaux);
    font-size: clamp(3.4rem, 12vw, 6.4rem);
    line-height: .95;
    margin: 0 0 6px;
    text-shadow: 0 2px 0 rgba(111, 26, 35, .08);
}

/* Sier-divider */
.sier { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--sepia); margin: 10px auto 18px; max-width: 260px; }
.sier::before, .sier::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--sepia)); }
.sier::after { background: linear-gradient(90deg, var(--sepia), transparent); }
.sier span { font-size: 1.1rem; line-height: 1; }

.datum {
    font-family: "Roboto Slab", serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 3.4vw, 1.5rem);
    color: var(--inkt);
    letter-spacing: .01em;
}
.tagline {
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    color: var(--bordeaux);
    margin: 22px 0 6px;
}
.lead { color: var(--inkt-zacht); max-width: 480px; margin: 0 auto 8px; font-size: 1.02rem; }

.hero__cta { margin: 22px 0 8px; }

/* Skyline (lijntekening) onderaan de hero */
.skyline { position: relative; z-index: 2; margin: 26px -32px 0; color: var(--sepia); }
.skyline svg { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Info-kaarten
   ========================================================================== */
.info { padding: 54px 0 14px; }
.kaarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kaart {
    background: var(--creme-licht);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schaduw-sm);
    padding: 28px 24px;
    text-align: center;
    position: relative;
}
.kaart__ico { font-size: 1.7rem; margin-bottom: 8px; filter: sepia(.5) saturate(.8); }
.kaart h3 { font-size: 1.05rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; }
.kaart p { color: var(--inkt-zacht); font-size: .98rem; }
.kaart strong { color: var(--inkt); font-weight: 700; }

/* ==========================================================================
   Formulier
   ========================================================================== */
.form-sectie { padding: 40px 0 64px; }
.form-card {
    background: var(--creme-licht);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schaduw);
    padding: 40px 36px;
    position: relative;
}
.form-card::before {
    content: ""; position: absolute; inset: 7px; border: 1px solid var(--rand); border-radius: 6px; pointer-events: none;
}
.form-card > * { position: relative; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; text-align: center; }
.form-intro { color: var(--inkt-zacht); margin-bottom: 24px; text-align: center; }

.veld { margin-bottom: 18px; }
.veld label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--bordeaux); letter-spacing: .02em; }
.veld input,
.veld select,
.veld textarea {
    width: 100%;
    font: inherit;
    font-weight: 400;
    color: var(--inkt);
    padding: 13px 15px;
    border: 1.5px solid var(--rand);
    border-radius: var(--radius-sm);
    background: var(--wit);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.veld textarea { resize: vertical; min-height: 90px; }
.veld input::placeholder,
.veld textarea::placeholder { color: #b7a489; }
.veld input:focus,
.veld select:focus,
.veld textarea:focus {
    outline: none;
    border-color: var(--bordeaux);
    box-shadow: 0 0 0 3px rgba(111, 26, 35, .14);
}

.klein { font-size: .82rem; color: var(--inkt-zacht); margin-top: 12px; text-align: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Meldingen -------------------------------------------------------- */
.fouten {
    background: #fbeae0;
    border: 1px solid #e0b9a3;
    color: #8a2b1c;
    border-radius: var(--radius-sm);
    padding: 14px 16px 14px 18px;
    margin-bottom: 22px;
    font-size: .95rem;
}
.fouten ul { margin: 6px 0 0; padding-left: 20px; }

.succes, .gesloten { text-align: center; padding: 14px 6px; }
.succes__ico { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; filter: sepia(.4); }
.succes h2, .gesloten h2 { margin-bottom: 8px; }
.succes p, .gesloten p { color: var(--inkt-zacht); margin-bottom: 20px; }

/* ==========================================================================
   Locatiesectie
   ========================================================================== */
.locatie { padding: 8px 0 64px; }
.locatie h2 { font-size: 1.6rem; margin-bottom: 14px; text-align: center; }
.locatie__info { text-align: center; max-width: 620px; margin: 0 auto 24px; }
.locatie__naam { font-size: 1.1rem; }
.locatie__info p { color: var(--inkt-zacht); margin-bottom: 12px; }
.locatie__info strong { color: var(--inkt); font-weight: 700; }

.kaart-embed {
    max-width: 760px; margin: 0 auto 24px;
    border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: var(--schaduw-sm); border: 1px solid var(--rand);
    aspect-ratio: 16 / 9; background: var(--creme-warm);
}
.kaart-embed iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.foto { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--schaduw-sm); background: var(--creme-licht); margin: 0; border: 1px solid var(--rand); }
.foto img { display: block; width: 100%; height: 160px; object-fit: cover; }
.fotos--beheer { margin-top: 18px; }
.foto__del {
    position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; border: 0; border-radius: 999px;
    background: rgba(111, 26, 35, .92); color: #fff; font-size: .9rem; cursor: pointer;
    line-height: 1; display: grid; place-items: center;
}
.foto__del:hover { background: var(--bordeaux-diep); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bordeaux);
    color: #e9cdb4;
    text-align: center;
    padding: 30px 22px;
    font-size: .92rem;
}
.footer strong { color: var(--wit); }
.footer .klein { color: #cda88c; margin-top: 6px; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: var(--creme); }

.admin-top { background: var(--bordeaux); color: var(--wit); padding: 18px 0; }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.25rem; color: var(--wit); }
.admin-top .sub { color: #e9cdb4; font-size: .85rem; font-weight: 400; }
.admin-top nav { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.admin-top a { color: var(--wit); text-decoration: none; font-size: .9rem; }
.knop {
    display: inline-block;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.30);
    color: var(--wit);
    border-radius: var(--radius-sm);
    padding: 8px 15px;
    font-size: .86rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}
.knop:hover { background: rgba(255,255,255,.24); }
.knop--geel { background: var(--sepia-licht); color: var(--bordeaux-diep); border-color: var(--sepia-licht); font-weight: 700; }
.knop--geel:hover { background: var(--sepia); color: var(--wit); }

.admin-main { padding: 30px 0 60px; }

.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.stat {
    background: var(--creme-licht);
    border: 1px solid var(--rand);
    border-radius: var(--radius-sm);
    box-shadow: var(--schaduw-sm);
    padding: 16px 20px;
    min-width: 150px;
}
.stat .getal { font-family: "Roboto Slab", serif; font-size: 1.9rem; font-weight: 800; color: var(--bordeaux); line-height: 1; }
.stat .label { color: var(--inkt-zacht); font-size: .85rem; margin-top: 4px; }

.balk { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.zoek { display: flex; gap: 8px; }
.zoek input {
    font: inherit; padding: 9px 14px; border: 1.5px solid var(--rand);
    border-radius: var(--radius-sm); min-width: 220px; background: var(--wit);
}
.zoek input:focus { outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(111,26,35,.12); }
.zoek .knop { background: var(--bordeaux); border-color: var(--bordeaux); }
.zoek .knop:hover { background: var(--bordeaux-diep); }

.tabel-wrap { background: var(--creme-licht); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schaduw-sm); overflow: auto; }
table.lijst { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.lijst th, table.lijst td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rand); white-space: nowrap; }
table.lijst th { background: var(--creme-warm); color: var(--bordeaux); font-weight: 700; position: sticky; top: 0; }
table.lijst tbody tr:hover { background: #fdf6ea; }
table.lijst td.nr { color: var(--inkt-zacht); }
table.lijst .pill {
    display: inline-block; background: var(--creme-warm); color: var(--bordeaux);
    border-radius: 999px; padding: 3px 11px; font-size: .85rem; font-weight: 500;
}
.leeg { text-align: center; color: var(--inkt-zacht); padding: 40px 16px; }

.commissies { margin-top: 26px; }
.commissies h2 { font-size: 1.1rem; margin-bottom: 12px; }
.commissies ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.commissies li {
    background: var(--creme-licht); border: 1px solid var(--rand); border-radius: 999px;
    padding: 7px 14px; font-size: .9rem; box-shadow: var(--schaduw-sm);
}
.commissies li b { color: var(--bordeaux); }

/* ---- Panelen / meldingen / groepen ------------------------------------ */
.paneel {
    background: var(--creme-licht);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schaduw-sm);
    padding: 24px 24px 26px;
    margin-bottom: 22px;
}
.paneel h2 { font-size: 1.2rem; margin-bottom: 8px; }
.paneel .btn { margin-top: 4px; }
.hint { font-size: .85rem; color: var(--inkt-zacht); margin-bottom: 8px; line-height: 1.5; }
.hint strong, .hint em { color: var(--inkt); }

.melding-ok {
    background: #e9f3e4; border: 1px solid #bcd9af; color: #3a6b27;
    border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 18px; font-size: .95rem;
}
.let-op {
    background: #fbf0d8; border: 1px solid #e6cf9b; color: #7a5a13;
    border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 18px; font-size: .95rem;
}

.groep-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.groep-form label { font-weight: 500; font-size: .95rem; color: var(--bordeaux); }
.groep-form input[type="number"] {
    width: 90px; font: inherit; padding: 11px 13px;
    border: 1.5px solid var(--rand); border-radius: var(--radius-sm); background: var(--wit);
}
.groep-form input[type="number"]:focus { outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(111,26,35,.12); }

.groep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.groep-card {
    background: var(--creme-licht); border: 1px solid var(--rand); border-radius: var(--radius);
    box-shadow: var(--schaduw-sm); padding: 18px 20px 20px; overflow: hidden;
}
.groep-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.groep-card h3 { font-size: 1.15rem; }
.groep-card .aantal { font-size: .85rem; color: var(--inkt-zacht); }
.groep-card .mix { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.groep-card .mix .pill { background: var(--creme-warm); color: var(--bordeaux); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.groep-card .mix .pill b { color: var(--bordeaux-licht); }
.groep-card .leden { list-style: none; }
.groep-card .leden li {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 7px 0; border-bottom: 1px dashed var(--rand); font-size: .92rem;
}
.groep-card .leden li:last-child { border-bottom: 0; }
.groep-card .leden__c { color: var(--inkt-zacht); font-size: .82rem; white-space: nowrap; }

/* ---- Login ------------------------------------------------------------ */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--creme); }
.login-card {
    background: var(--creme-licht); border: 2px solid var(--bordeaux); outline: 1px solid var(--bordeaux); outline-offset: 5px;
    border-radius: var(--radius); box-shadow: var(--schaduw);
    padding: 38px 32px; width: 100%; max-width: 380px; text-align: center;
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.login-card .merk { font-family: "Great Vibes", cursive; font-size: 2.4rem; color: var(--bordeaux); line-height: 1; margin-bottom: 6px; }
.login-card p.sub { color: var(--inkt-zacht); font-size: .9rem; margin-bottom: 22px; }
.login-card .veld { text-align: left; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
    .kaarten { grid-template-columns: 1fr; }
    .kader { padding: 44px 18px 0; }
    .skyline { margin-left: -18px; margin-right: -18px; }
    .form-card { padding: 30px 22px; }
    .admin-top .wrap { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
