/* ============================================================================
   BORDEAUX BISTRO — jullie bruiloft als een avond in een klassieke brasserie
   Warm bordeaux, crème en koper. Elk blok een bistro-object: menukaart-omslag
   met dubbele biezen, dinerborden als countdown, de dagplanning als gangen op
   de menukaart, een wijnetiket-quote, schilderijtjes boven de bar, de brigade
   en een RSVP als tafelreservering met plaquette-knop.
   Fonts: Prata (display serif) + Pinyon Script (handschrift) + Mulish (body).
   Kleurrollen: koppen/accenten = --color-primary (bordeaux), body =
   --color-text (warm bruin), achtergrond = --color-background (crème).
   Koper wordt uit primary gemengd zodat elk palet blijft kloppen.
   GEEN hardcoded teksten: decoratie is vorm/symbool, woorden komen uit
   bewerkbare velden.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Prata&family=Pinyon+Script&family=Mulish:ital,wght@0,300..700;1,400&display=swap');

:root {
    --bb-wine:  var(--color-primary, #7E2B35);
    --bb-ink:   var(--color-text, #3D2E2A);
    --bb-cream: var(--color-background, #FAF6EE);
    --bb-card:  color-mix(in srgb, #ffffff 72%, var(--color-background, #FAF6EE));
    --bb-copper: color-mix(in srgb, var(--bb-wine) 42%, #C98F4E);
    --bb-line:      color-mix(in srgb, var(--bb-ink) 20%, transparent);
    --bb-wine-soft: color-mix(in srgb, var(--bb-wine) 14%, transparent);
    --bb-shadow: 0 20px 46px -30px color-mix(in srgb, var(--bb-ink) 55%, transparent);
    --bb-display: 'Prata', serif;
    --bb-script: 'Pinyon Script', cursive;
    --bb-body: 'Mulish', sans-serif;
}

/* ── Basis ────────────────────────────────────────────────────────────── */
html { background: var(--bb-cream); }
body {
    background: var(--bb-cream);
    color: var(--bb-ink);
    font-family: var(--bb-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
main h1, main h2, main h3, main h4,
.password-card .couple-names {
    font-family: var(--bb-display);
    font-weight: 400;
    color: var(--bb-wine);
    hyphens: manual;
    -webkit-hyphens: manual;
    overflow-wrap: break-word;
}
main ::selection { background: var(--bb-wine-soft); }
main .text-content { color: var(--bb-ink); }
main .description, main .description p { color: var(--bb-ink); }

/* ── Header / navigatie ───────────────────────────────────────────────── */
header { background: var(--bb-cream); }
#publicNav { display: flex; flex-direction: column; align-items: center; padding: 20px 18px 0; }
.header-container { width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
/* Monogram als menu-medaillon met dubbele ring */
.header-namen {
    font-family: var(--bb-display);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: var(--bb-wine);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--bb-card);
    border: 1px solid var(--bb-copper);
    box-shadow: inset 0 0 0 3px var(--bb-card), inset 0 0 0 4px color-mix(in srgb, var(--bb-copper) 55%, transparent);
}
.header-namen .en-teken {
    font-family: var(--bb-script);
    font-size: 1.2em;
    color: var(--bb-copper);
}
.nav-toggle {
    --size: 40px; --line-w: 26px; --line-h: 2px; --gap: 7px;
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: var(--size); height: var(--size);
    background: none; border: 0; cursor: pointer;
}
.nav-toggle::before, .nav-toggle::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: var(--line-w); height: var(--line-h); border-radius: 2px;
    background: var(--bb-ink); transition: top 0.2s ease, transform 0.2s ease;
}
.nav-toggle::before { top: calc(50% - (var(--gap) / 2) - var(--line-h)); }
.nav-toggle::after  { top: calc(50% + (var(--gap) / 2)); }
.nav-toggle.is-open::before { top: 50%; transform: translateX(-50%) rotate(45deg); background: var(--bb-wine); }
.nav-toggle.is-open::after  { top: 50%; transform: translateX(-50%) rotate(-45deg); background: var(--bb-wine); }
.nav-menu {
    display: none; width: 100%;
    flex-direction: column; align-items: center;
    list-style: none; margin: 12px 0 0; padding: 10px 0 6px;
    border-top: 1px solid var(--bb-line);
}
.nav-menu.active { display: flex; }
.nav-menu li { list-style: none; }
.nav-menu .nav-link {
    display: inline-block;
    font-family: var(--bb-body);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bb-ink);
    text-decoration: none;
    padding: 9px 12px 7px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link.is-active { color: var(--bb-wine); border-bottom-color: var(--bb-copper); }
@media (min-width: 769px) {
    .nav-toggle { display: none; }
    .nav-menu { display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 2px 10px; border-top: 0; margin-top: 8px; }
}

/* ── Hero: de menukaart-omslag ────────────────────────────────────────── */
.hero-card {
    position: relative;
    max-width: 1080px;
    margin: clamp(14px, 3vw, 28px) auto 0;
    width: calc(100% - 28px);
    background: var(--bb-card);
    border: 1px solid var(--bb-wine);
    outline: 1px solid color-mix(in srgb, var(--bb-wine) 55%, transparent);
    outline-offset: -7px;
    box-shadow: var(--bb-shadow);
    padding: clamp(24px, 4vw, 46px) clamp(18px, 4vw, 46px) clamp(20px, 3.5vw, 40px);
    display: flex;
    flex-direction: column;
}
/* Namen boven de foto (menukaart-kop) */
.hero-card .hero-overlay {
    order: -1;
    position: static;
    inset: auto;
    display: block;
    background: none;
    text-align: center;
    padding: 0 0 clamp(16px, 3vw, 26px);
}
/* Sier-ornament: lijn · punt · lijn */
.hero-card .hero-overlay::before {
    content: '';
    display: block;
    width: min(240px, 60vw);
    height: 9px;
    margin: 0 auto clamp(14px, 2.5vw, 22px);
    background:
        radial-gradient(circle 3.2px at 50% 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, transparent 0, var(--bb-line) 12%, var(--bb-line) 42%, transparent 45%, transparent 55%, var(--bb-line) 58%, var(--bb-line) 88%, transparent) 50% 50% / 100% 1px no-repeat;
}
.couple-names {
    font-family: var(--bb-display);
    color: var(--bb-wine);
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.015em;
}
.hero-title {
    display: block;
    font-family: var(--bb-script);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    color: var(--bb-copper);
    margin-top: 0.4rem;
}
.hero-card img {
    display: block;
    width: 100%;
    height: min(56vh, 520px);
    min-height: 320px;
    object-fit: cover;
    border: 1px solid var(--bb-line);
    padding: 6px;
    background: #ffffff;
}
.hero-card--no-image > div[aria-hidden] {
    height: 40vh;
    border: 1px solid var(--bb-line);
    background:
        radial-gradient(circle at 50% 20%, var(--bb-wine-soft), transparent 60%),
        #ffffff;
}
@media (prefers-reduced-motion: no-preference) {
    .hero-card { animation: bb-cover 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .hero-card .hero-overlay > div { animation: bb-rise 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .hero-card .hero-overlay::before { animation: bb-draw 0.7s 0.2s ease-out both; transform-origin: center; }
    .hero-card img { animation: bb-serve 1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
    @keyframes bb-cover {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes bb-rise {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes bb-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes bb-serve {
        from { opacity: 0; transform: scale(0.975); }
        to   { opacity: 1; transform: scale(1); }
    }
}

/* ── Countdown: dinerborden ───────────────────────────────────────────── */
.card-countdown {
    max-width: 760px;
    margin: 0 auto;
    width: calc(100% - 32px);
    text-align: center;
    padding: clamp(6px, 1.5vw, 16px) 0;
}
.countdown-title {
    font-family: var(--bb-script);
    font-size: clamp(1.7rem, 3.8vw, 2.4rem);
    line-height: 1.2;
    color: var(--bb-wine);
    margin: 0 0 clamp(22px, 4vw, 32px);
}
.countdown-timers {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(12px, 2.6vw, 26px);
}
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
/* Wit bord met koperen sierring */
.countdown-value {
    width: clamp(72px, 17vw, 112px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--bb-line);
    box-shadow:
        inset 0 0 0 7px #ffffff,
        inset 0 0 0 8px color-mix(in srgb, var(--bb-copper) 65%, transparent),
        0 14px 26px -18px color-mix(in srgb, var(--bb-ink) 55%, transparent);
    font-family: var(--bb-display);
    font-size: clamp(1.5rem, 4.4vw, 2.4rem);
    line-height: 1;
    color: var(--bb-wine);
    font-variant-numeric: tabular-nums;
}
.countdown-label {
    margin-top: 10px;
    font-family: var(--bb-body);
    font-weight: 700;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bb-ink);
    opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.card-countdown) .countdown-unit { opacity: 0; transform: scale(0.8); }
    [data-card-id].le-anim-in .countdown-unit {
        animation: bb-plate 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    }
    [data-card-id].le-anim-in .countdown-unit:nth-child(2) { animation-delay: 0.12s; }
    [data-card-id].le-anim-in .countdown-unit:nth-child(3) { animation-delay: 0.24s; }
    [data-card-id].le-anim-in .countdown-unit:nth-child(4) { animation-delay: 0.36s; }
    @keyframes bb-plate {
        from { opacity: 0; transform: scale(0.8); }
        to   { opacity: 1; transform: scale(1); }
    }
}

/* ── Titel + tekst ────────────────────────────────────────────────────── */
.title-text-section { padding: 0.5rem 0; }
.title-text-grid { display: flex; gap: clamp(26px, 5vw, 64px); align-items: flex-start; }
.title-text-grid > h2 {
    flex: 0 0 38%;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.14;
    text-align: left;
}
.title-text-grid > h2::after {
    content: '';
    display: block;
    width: 150px;
    height: 9px;
    margin-top: 14px;
    background:
        radial-gradient(circle 3px at 18px 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, var(--bb-line) 0 8px, transparent 8px 28px, var(--bb-line) 28px 100%) 0 50% / 100% 1px no-repeat;
}
.title-text-grid .text-content {
    flex: 1;
    text-align: left;
    line-height: 1.8;
    border-left: 1px solid var(--bb-line);
    padding-left: clamp(18px, 3vw, 34px);
}
.title-text-grid .text-content p { margin: 0 0 1.1em; }
.title-text-grid .text-content p:last-child { margin-bottom: 0; }

.title-blok-h1, .title-blok-h2, .title-blok-h3 { text-align: center; padding: 0 16px; }
.title-blok-h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.title-blok-h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.title-blok-h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ── Tekst-card: menukaart-inzet ──────────────────────────────────────── */
.text-card { display: flex; justify-content: center; padding: 0 16px; }
.text-card .text-content {
    max-width: 700px;
    width: 100%;
    background: var(--bb-card);
    border: 1px solid var(--bb-line);
    outline: 1px solid color-mix(in srgb, var(--bb-wine) 30%, transparent);
    outline-offset: -6px;
    box-shadow: var(--bb-shadow);
    padding: clamp(26px, 4.5vw, 44px) clamp(22px, 4.5vw, 48px);
    line-height: 1.85;
    text-align: left;
}
.text-card .text-content h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 0.6em; }
.text-card .text-content p { margin: 0 0 1.15em; }
.text-card .text-content p:last-child { margin-bottom: 0; }
.text-card .text-content strong { font-weight: 700; color: color-mix(in srgb, var(--bb-wine) 55%, var(--bb-ink)); }
.text-card .text-content em {
    font-family: var(--bb-script);
    font-style: normal;
    font-size: 1.45em;
    color: var(--bb-wine);
}
.text-card .text-content a { color: var(--bb-wine); text-decoration: underline; text-underline-offset: 4px; }
.text-card .text-content > p:first-child::first-letter {
    font-family: var(--bb-display);
    color: var(--bb-wine);
    font-size: 1.5em;
    line-height: 1;
}
/* Ruitjes als opsommingsteken */
.text-card .text-content ul { list-style: none; margin: 0 0 1.15em; padding-left: 0; }
.text-card .text-content ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.text-card .text-content ul li { position: relative; padding-left: 1.55em; margin: 0.5em 0; }
.text-card .text-content ul li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.56em;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--bb-copper);
}

/* ── Dagplanning: de gangen van het menu ──────────────────────────────── */
.schedule-wrapper { max-width: 760px; margin: 0 auto; }
.schedule-container { padding: 0 18px; }
.schedule-heading {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 0 6px;
}
.schedule-heading::after {
    content: '';
    display: block;
    width: min(240px, 60vw);
    height: 9px;
    margin: 16px auto 0;
    background:
        radial-gradient(circle 3.2px at 50% 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, transparent 0, var(--bb-line) 12%, var(--bb-line) 42%, transparent 45%, transparent 55%, var(--bb-line) 58%, var(--bb-line) 88%, transparent) 50% 50% / 100% 1px no-repeat;
}
.timeline {
    list-style: none;
    max-width: 560px;
    margin: 30px auto 0;
    padding: 0;
    text-align: center;
}
.timeline::before { display: none; }
.timeline-dot { display: none; }
.timeline-item { position: relative; margin: 0; padding: clamp(18px, 3vw, 26px) 0; }
/* Sier-divider tussen de gangen */
.timeline-item + .timeline-item::before {
    content: '';
    display: block;
    width: 150px;
    height: 9px;
    margin: 0 auto clamp(18px, 3vw, 26px);
    background:
        radial-gradient(circle 2.6px at 50% 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, transparent 0, var(--bb-line) 16%, var(--bb-line) 42%, transparent 46%, transparent 54%, var(--bb-line) 58%, var(--bb-line) 84%, transparent) 50% 50% / 100% 1px no-repeat;
}
.timeline-time {
    display: block;
    font-family: var(--bb-script);
    font-size: 1.55rem;
    line-height: 1.15;
    color: var(--bb-copper);
    margin-bottom: 0.15rem;
}
.timeline-title {
    display: block;
    font-family: var(--bb-display);
    font-size: clamp(1.35rem, 2.8vw, 1.7rem);
    line-height: 1.2;
    color: var(--bb-wine);
    margin: 0 0 0.3rem;
}
.timeline-description {
    color: var(--bb-ink);
    opacity: 0.85;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 44ch;
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.timeline) .timeline-item { opacity: 0; transform: translateY(10px); }
    [data-card-id].le-anim-in .timeline-item { animation: bb-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    [data-card-id].le-anim-in .timeline-item:nth-child(1) { animation-delay: 0.05s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(2) { animation-delay: 0.2s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(3) { animation-delay: 0.35s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(4) { animation-delay: 0.5s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(5) { animation-delay: 0.65s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(6) { animation-delay: 0.8s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(7) { animation-delay: 0.95s; }
}

/* ── Quote: het wijnetiket ────────────────────────────────────────────── */
.quote-card {
    max-width: 620px;
    margin: 0 auto;
    width: calc(100% - 32px);
    text-align: center;
    background: var(--bb-card);
    border: 1px solid var(--bb-wine);
    outline: 1px solid color-mix(in srgb, var(--bb-wine) 45%, transparent);
    outline-offset: -6px;
    box-shadow: var(--bb-shadow);
    padding: clamp(28px, 5vw, 48px) clamp(22px, 5vw, 52px);
}
.quote-img { display: none; }
/* Etiket-ornament bovenin */
.quote-card::before {
    content: '';
    display: block;
    width: 150px;
    height: 9px;
    margin: 0 auto 1.1rem;
    background:
        radial-gradient(circle 3px at 50% 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, transparent 0, var(--bb-line) 16%, var(--bb-line) 42%, transparent 46%, transparent 54%, var(--bb-line) 58%, var(--bb-line) 84%, transparent) 50% 50% / 100% 1px no-repeat;
}
.quote-text blockquote {
    font-family: var(--bb-display);
    font-size: clamp(1.3rem, 2.9vw, 1.75rem);
    line-height: 1.5;
    color: var(--bb-wine);
    margin: 0;
}
.quote-text h2 {
    font-family: var(--bb-script);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    line-height: 1.2;
    color: var(--bb-copper);
    margin: 0.9rem 0 0;
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.quote-card) .quote-card { opacity: 0; transform: scale(0.97); }
    [data-card-id].le-anim-in .quote-card { animation: bb-label 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    @keyframes bb-label {
        from { opacity: 0; transform: scale(0.97); }
        to   { opacity: 1; transform: scale(1); }
    }
}

/* ── Foto + tekst: de wijnkaart-spread ────────────────────────────────── */
.foto-tekst {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
    align-items: center;
    gap: clamp(28px, 5vw, 60px);
}
.foto-tekst .image-side img {
    width: 100%;
    height: auto;
    background: #ffffff;
    padding: 7px;
    border: 1px solid var(--bb-line);
    outline: 1px solid color-mix(in srgb, var(--bb-copper) 45%, transparent);
    outline-offset: -13px;
    box-shadow: var(--bb-shadow);
}
.foto-tekst .text-side h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
    margin-bottom: 0.3em;
}
.foto-tekst .text-side h2::after {
    content: '';
    display: block;
    width: 150px;
    height: 9px;
    margin-top: 12px;
    background:
        radial-gradient(circle 3px at 18px 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, var(--bb-line) 0 8px, transparent 8px 28px, var(--bb-line) 28px 100%) 0 50% / 100% 1px no-repeat;
}
.foto-tekst .text-side .description { line-height: 1.8; }
.foto-tekst .text-side .description p { margin: 0 0 1.1em; }
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.foto-tekst) .foto-tekst .image-side { opacity: 0; transform: translateY(14px); }
    [data-card-id]:has(.foto-tekst) .foto-tekst .text-side { opacity: 0; }
    [data-card-id].le-anim-in .foto-tekst .image-side { animation: bb-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    [data-card-id].le-anim-in .foto-tekst .text-side { animation: bb-fade 0.6s 0.25s ease forwards; }
    @keyframes bb-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Grote foto: paneel met passe-partout ─────────────────────────────── */
.image-card .grote-foto {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px;
}
.image-card .grote-foto h2 {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 16px 22px;
}
.image-card .grote-foto img {
    display: block;
    width: 100%;
    height: min(60vh, 580px);
    object-fit: cover;
    background: #ffffff;
    padding: 10px;
    border: 1px solid var(--bb-line);
    outline: 1px solid color-mix(in srgb, var(--bb-copper) 45%, transparent);
    outline-offset: -16px;
    box-shadow: var(--bb-shadow);
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.grote-foto) .grote-foto img { opacity: 0; transform: scale(0.985); }
    [data-card-id].le-anim-in .grote-foto img { animation: bb-serve 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
}

/* ── Collage: schilderijtjes boven de bar ─────────────────────────────── */
.collage-layout { max-width: 1180px; margin: 0 auto; padding: clamp(16px, 3vw, 28px) 18px clamp(24px, 4vw, 38px); }
.collage-layout > h2 {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 6px;
}
.collage-layout > h2::after {
    content: '';
    display: block;
    width: min(240px, 60vw);
    height: 9px;
    margin: 16px auto 0;
    background:
        radial-gradient(circle 3.2px at 50% 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, transparent 0, var(--bb-line) 12%, var(--bb-line) 42%, transparent 45%, transparent 55%, var(--bb-line) 58%, var(--bb-line) 88%, transparent) 50% 50% / 100% 1px no-repeat;
}
.collage-grid { display: grid; gap: clamp(20px, 3vw, 30px); margin-top: clamp(20px, 3.5vw, 32px); }
.collage-grid.l1 { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
.collage-grid.l2 { grid-template-columns: repeat(2, 1fr); }
.collage-grid.l3 { grid-template-columns: repeat(3, 1fr); }
.collage-grid.l4 { grid-template-columns: repeat(2, 1fr); }
.collage-grid.l5 { grid-template-columns: repeat(6, 1fr); }
.collage-grid.l5 .tile-1, .collage-grid.l5 .tile-2, .collage-grid.l5 .tile-3 { grid-column: span 2; }
.collage-grid.l5 .tile-4, .collage-grid.l5 .tile-5 { grid-column: span 3; }
.collage-grid.l6 { grid-template-columns: repeat(3, 1fr); }
.collage-grid.lmasonry { display: block; columns: 3; column-gap: 26px; }
.collage-grid.lmasonry .tile { margin-bottom: 26px; break-inside: avoid; }
.collage-grid .tile {
    position: relative;
    background: #ffffff;
    padding: 9px;
    border: 1px solid var(--bb-line);
    outline: 1px solid color-mix(in srgb, var(--bb-copper) 45%, transparent);
    outline-offset: -6px;
    box-shadow: var(--bb-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.collage-grid .tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px -30px color-mix(in srgb, var(--bb-ink) 60%, transparent);
}
.collage-grid .tile img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}
.collage-grid.l1 .tile img { aspect-ratio: 16 / 9; }
.collage-grid.full-photos .tile img { aspect-ratio: auto; height: auto; }
.collage-layout .en-rail-nav { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.collage-layout) .collage-grid .tile { opacity: 0; transform: translateY(14px); }
    [data-card-id].le-anim-in .collage-grid .tile { animation: bb-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(2) { animation-delay: 0.1s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(3) { animation-delay: 0.2s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(4) { animation-delay: 0.3s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(5) { animation-delay: 0.4s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(n+6) { animation-delay: 0.5s; }
}

/* ── Team: de brigade ─────────────────────────────────────────────────── */
.people-grid { padding: 0 18px; }
.person-card { position: relative; text-align: center; padding: 14px 12px 16px; }
/* Portret als bord met koperen sierring */
.person-card img {
    width: 158px;
    height: 158px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow:
        0 0 0 6px #ffffff,
        0 0 0 7px color-mix(in srgb, var(--bb-copper) 60%, transparent),
        0 16px 30px -18px color-mix(in srgb, var(--bb-ink) 55%, transparent);
}
.person-card h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-top: 1rem;
}
.person-card p {
    font-family: var(--bb-script);
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--bb-copper);
    margin-top: 0.2rem;
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.person-card) .person-card { opacity: 0; transform: scale(0.9); }
    [data-card-id].le-anim-in .person-card { animation: bb-plate 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards; }
    [data-card-id].le-anim-in .person-card:nth-child(2) { animation-delay: 0.1s; }
    [data-card-id].le-anim-in .person-card:nth-child(3) { animation-delay: 0.2s; }
    [data-card-id].le-anim-in .person-card:nth-child(4) { animation-delay: 0.3s; }
    [data-card-id].le-anim-in .person-card:nth-child(5) { animation-delay: 0.4s; }
    [data-card-id].le-anim-in .person-card:nth-child(n+6) { animation-delay: 0.5s; }
}

/* ── Countdown + kaart: de zaak ───────────────────────────────────────── */
.countdown-map {
    display: flex;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
    gap: clamp(24px, 4vw, 48px);
    align-items: stretch;
}
.countdown-map .countdown { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.countdown-map .countdown h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.2rem; }
.countdown-map .countdown-days {
    font-family: var(--bb-script);
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    color: var(--bb-copper);
    margin-bottom: 1rem;
}
.countdown-map .live-countdown .countdown-wrapper { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown-map .live-countdown .countdown-item {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--bb-line);
    box-shadow:
        inset 0 0 0 5px #ffffff,
        inset 0 0 0 6px color-mix(in srgb, var(--bb-copper) 60%, transparent);
}
.countdown-map .live-countdown .countdown-item .countdown-number {
    display: block;
    font-family: var(--bb-display);
    font-size: 1.35rem;
    line-height: 1;
    color: var(--bb-wine);
    font-variant-numeric: tabular-nums;
}
.countdown-map .live-countdown .countdown-item .countdown-text {
    display: block;
    margin-top: 3px;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bb-ink);
    opacity: 0.7;
}
.map-link-wrapper { margin-top: 14px; }
.map-link {
    font-family: var(--bb-script);
    font-size: 1.35rem;
    color: var(--bb-wine);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
.countdown-map .map {
    flex: 1;
    position: relative;
    min-height: 420px;
    background: #ffffff;
    border: 1px solid var(--bb-line);
    outline: 1px solid color-mix(in srgb, var(--bb-copper) 45%, transparent);
    outline-offset: -7px;
    padding: 9px;
    box-shadow: var(--bb-shadow);
}
.countdown-map .map-click-area { display: block; height: 100%; }
.countdown-map .forever-map { height: 100%; min-height: 400px; }

/* ── RSVP: de tafelreservering ────────────────────────────────────────── */
.form-container { padding: 0; }
.card-form {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    width: calc(100% - 32px);
    background: var(--bb-card);
    border: 1px solid var(--bb-wine);
    outline: 1px solid color-mix(in srgb, var(--bb-wine) 45%, transparent);
    outline-offset: -7px;
    box-shadow: var(--bb-shadow);
    padding: clamp(30px, 5vw, 50px) clamp(20px, 4.5vw, 50px) clamp(26px, 4vw, 40px);
}
.form-title {
    font-family: var(--bb-display);
    font-size: clamp(1.9rem, 4.2vw, 2.6rem);
    color: var(--bb-wine);
    text-align: center;
    line-height: 1.1;
    margin: 0 0 0.3rem;
}
.form-title::after {
    content: '';
    display: block;
    width: 150px;
    height: 9px;
    margin: 14px auto 0;
    background:
        radial-gradient(circle 3px at 50% 50%, var(--bb-copper) 97%, transparent),
        linear-gradient(90deg, transparent 0, var(--bb-line) 16%, var(--bb-line) 42%, transparent 46%, transparent 54%, var(--bb-line) 58%, var(--bb-line) 84%, transparent) 50% 50% / 100% 1px no-repeat;
}
.form-intro {
    text-align: center;
    max-width: 46ch;
    margin: 0.9rem auto 1.5rem;
    line-height: 1.7;
    color: var(--bb-ink) !important;
    opacity: 0.9;
}
.form-fields { display: flex; flex-wrap: wrap; gap: 1.2rem 4%; justify-content: space-between; max-width: 520px; margin: 0 auto; }
.form-group { flex: 1 1 46%; min-width: 200px; text-align: left; }
.form-group.full-width { flex-basis: 100%; }
.form-label {
    display: block;
    font-family: var(--bb-body);
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bb-ink);
    opacity: 0.78;
    margin-bottom: 0.3rem;
}
.form-required { color: var(--bb-wine); }
/* Velden op fijne lijnen; !important omdat app.css (laadt later) ze wit kadert */
.card-form input.form-input,
.card-form textarea.form-textarea,
.card-form select.form-select,
.form-container input.form-input,
.form-container textarea.form-textarea,
.form-container select.form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--bb-ink) 40%, transparent) !important;
    border-radius: 0 !important;
    padding: 0.5rem 2px 0.5rem !important;
    font-family: var(--bb-body) !important;
    font-size: 1rem !important;
    color: var(--bb-ink) !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s ease;
}
.card-form select.form-select,
.form-container select.form-select {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--bb-wine) 50%),
                      linear-gradient(135deg, var(--bb-wine) 50%, transparent 50%) !important;
    background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50% !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat, no-repeat !important;
    padding-right: 30px !important;
}
.form-select option { background: #ffffff; color: var(--bb-ink); }
.card-form input.form-input:focus,
.card-form textarea.form-textarea:focus,
.card-form select.form-select:focus,
.form-container input.form-input:focus,
.form-container textarea.form-textarea:focus,
.form-container select.form-select:focus {
    outline: none !important;
    border-bottom-color: var(--bb-wine) !important;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--bb-ink); opacity: 0.35; }
.card-form textarea.form-textarea,
.form-container textarea.form-textarea {
    resize: vertical;
    min-height: 96px !important;
    border: 1px solid color-mix(in srgb, var(--bb-ink) 35%, transparent) !important;
    border-radius: 4px !important;
    padding: 0.65rem 0.75rem !important;
}
.form-actions { text-align: center; margin-top: 2rem; }
/* De plaquette-knop */
.form-submit {
    display: inline-block;
    font-family: var(--bb-body);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bb-cream);
    background: var(--bb-wine);
    border: 0;
    border-radius: 4px;
    padding: 1.05rem 2.5rem 1rem;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--bb-cream) 55%, transparent),
        0 16px 30px -18px color-mix(in srgb, var(--bb-wine) 80%, transparent);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.form-submit:hover { transform: translateY(-1px); filter: brightness(1.08); }
.form-success {
    max-width: 460px;
    margin: 1.2rem auto 0;
    padding: 1.2rem 1.5rem;
    font-family: var(--bb-script);
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--bb-wine);
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--bb-wine) 45%, transparent);
    background: #ffffff;
}
.card-form .grsvp-card { border-radius: 4px; border: 1px solid var(--bb-line); background: #ffffff; }
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.card-form) .card-form { opacity: 0; transform: translateY(14px); }
    [data-card-id].le-anim-in .card-form { animation: bb-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    [data-card-id]:has(.text-card) .text-card .text-content { opacity: 0; transform: translateY(12px); }
    [data-card-id].le-anim-in .text-card .text-content { animation: bb-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    [data-card-id]:has(.title-text-grid) .title-text-grid { opacity: 0; transform: translateY(12px); }
    [data-card-id].le-anim-in .title-text-grid { animation: bb-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
}

/* ── Gastenboek ───────────────────────────────────────────────────────── */
.card-guestbook { padding: 0 16px; }
.card-guestbook .schedule-heading { margin-bottom: 0; }
.card-guestbook .text-content {
    font-family: var(--bb-script);
    font-size: 1.5rem !important;
    color: var(--bb-copper) !important;
}
.card-guestbook input,
.card-guestbook textarea,
.card-guestbook select {
    background: #ffffff !important;
    border: 1px solid color-mix(in srgb, var(--bb-ink) 30%, transparent) !important;
    border-radius: 4px !important;
    color: var(--bb-ink) !important;
}
.card-guestbook button[type="submit"] {
    background: var(--bb-wine) !important;
    color: var(--bb-cream) !important;
    border-radius: 4px !important;
    padding: 0.9rem 2.2rem !important;
    line-height: 1 !important;
    font-family: var(--bb-body);
    font-weight: 700 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--bb-cream) 55%, transparent),
        0 14px 26px -16px color-mix(in srgb, var(--bb-wine) 80%, transparent);
}

/* ── Album-QR ─────────────────────────────────────────────────────────── */
.card-album-qr { padding: 0 16px; }
.card-album-qr .schedule-heading { margin-bottom: 0; }
.card-album-qr .text-content {
    font-family: var(--bb-script);
    font-size: 1.5rem !important;
    color: var(--bb-copper) !important;
}
.card-album-qr > div:last-child > div:first-child {
    border: 1px solid var(--bb-line) !important;
    border-radius: 4px !important;
    outline: 1px solid color-mix(in srgb, var(--bb-copper) 45%, transparent);
    outline-offset: -6px;
    box-shadow: var(--bb-shadow) !important;
}
.card-album-qr a {
    border-radius: 4px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--bb-cream) 55%, transparent),
        0 14px 26px -16px color-mix(in srgb, var(--bb-wine) 80%, transparent);
}

/* ── Wachtwoordpagina ─────────────────────────────────────────────────── */
.password-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% -10%, var(--bb-wine-soft), transparent 55%),
        var(--bb-cream);
}
.password-card {
    position: relative;
    width: min(460px, 100%);
    background: var(--bb-card);
    border: 1px solid var(--bb-wine);
    outline: 1px solid color-mix(in srgb, var(--bb-wine) 45%, transparent);
    outline-offset: -6px;
    box-shadow: var(--bb-shadow);
    padding: clamp(34px, 6vw, 50px) clamp(24px, 5vw, 44px) clamp(28px, 5vw, 40px);
    text-align: center;
}
.password-card .couple-names {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    line-height: 1.12;
    margin-bottom: 0.4rem;
}
.password-card .subtitle {
    font-family: var(--bb-script);
    font-size: 1.6rem;
    color: var(--bb-copper);
    margin-bottom: 1rem;
}
.password-card .info-text { font-size: 0.95rem; line-height: 1.65; opacity: 0.85; margin-bottom: 0.6rem; }
.password-card .error-text { color: var(--bb-wine); font-size: 0.9rem; margin-top: 0.6rem; }
.password-card input[type="password"],
.password-card input[type="text"] {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--bb-ink) 40%, transparent);
    border-radius: 0;
    padding: 0.6rem 2px;
    font-family: var(--bb-body);
    font-size: 1rem;
    color: var(--bb-ink);
    text-align: center;
    outline: none;
}
.password-card input:focus { border-bottom-color: var(--bb-wine); }
.password-card input::placeholder { color: var(--bb-ink); opacity: 0.35; }
.password-card button[type="submit"],
.password-card #inviteBtn {
    display: inline-block;
    margin-top: 1.3rem;
    font-family: var(--bb-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bb-cream);
    background: var(--bb-wine);
    border: 0;
    border-radius: 4px;
    padding: 0.95rem 2.2rem 0.9rem;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--bb-cream) 55%, transparent),
        0 14px 26px -16px color-mix(in srgb, var(--bb-wine) 80%, transparent);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.password-card button[type="submit"]:hover,
.password-card #inviteBtn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 30px 16px 42px;
    color: var(--bb-ink);
    font-size: 0.85rem;
    opacity: 0.75;
}
footer a { color: var(--bb-wine); }

/* ── Mobiel ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body { font-size: 16px; }

    .hero-card { width: calc(100% - 20px); padding: 18px 14px 16px; }
    .hero-card img { height: 46vh; min-height: 280px; }

    .countdown-timers { gap: 8px; }
    .countdown-value { font-size: 1.3rem; box-shadow: inset 0 0 0 5px #ffffff, inset 0 0 0 6px color-mix(in srgb, var(--bb-copper) 65%, transparent); }
    .countdown-label { font-size: 0.54rem; letter-spacing: 0.12em; }

    .title-text-grid { flex-direction: column; gap: 16px; }
    .title-text-grid > h2 { flex: none; }
    .title-text-grid .text-content { border-left: 0; padding-left: 0; }

    .foto-tekst .image-side { margin-bottom: 12px; }

    .image-card .grote-foto img { height: 46vh; }

    .collage-grid.l2, .collage-grid.l3, .collage-grid.l4, .collage-grid.l6 { grid-template-columns: repeat(2, 1fr); }
    .collage-grid.l5 { grid-template-columns: repeat(2, 1fr); }
    .collage-grid.l5 .tile-1, .collage-grid.l5 .tile-2, .collage-grid.l5 .tile-3,
    .collage-grid.l5 .tile-4, .collage-grid.l5 .tile-5 { grid-column: auto; }
    .collage-grid.lmasonry { columns: 2; }
    .collage-grid { gap: 14px; }
    .collage-grid .tile { padding: 6px; }

    .countdown-map { flex-direction: column; }
    .countdown-map .countdown { text-align: center; align-items: center; }
    .countdown-map .live-countdown .countdown-wrapper { justify-content: center; }
    .countdown-map .map { min-height: 320px; }
    .countdown-map .forever-map { min-height: 300px; }

    .form-group { flex-basis: 100%; min-width: 0; }
}

@media (max-width: 480px) {
    .collage-grid.l3, .collage-grid.l6 { grid-template-columns: 1fr; }
    .collage-grid.lmasonry { columns: 1; }
}
