/* ============================================================
   Lied voor Irene - Design-fundament (2026)
   Bron: app/static/_cake_preview.html (door David goedgekeurd).
   Palet creme/papier, diep cacao-inkt, kersrood accent, zacht
   goud, taartlagen sponge/rose. Display 'Fraunces' (serif, met
   gekleurd cursief accent), body 'Newsreader' (serif).
   Zwevende afgeronde pill-topbar + pill-nav, getrackte
   hoofdletter-eyebrow labels, redactionele koppen, veel
   witruimte, zachte schaduwen. Geen emoji, geen AI-look.
   Alle class-namen uit de templates blijven gelijk (JS/Alpine
   leunt erop); oude variabelen blijven als alias bestaan zodat
   bestaande templates niet allemaal herschreven hoeven worden.
   ============================================================ */

:root {
    /* ---- goedgekeurde tokens (uit de proef) ---- */
    --paper: #f4ebdd;          /* warme creme/papier */
    --paper-2: #efe2cf;
    --ink: #2c211d;            /* diep cacao */
    --ink-soft: #6b5851;
    --line: #e4d6c2;
    --cherry: #bf3350;         /* kersrood accent */
    --cherry-deep: #97243f;
    --gold: #cf9b46;           /* zacht goud */
    --sponge: #f6e7cf;         /* taartlaag 1 */
    --sponge-2: #efd9b6;
    --rose: #f6d6da;           /* taartlaag 2 */
    --rose-2: #eebcc3;
    --frost: #fff9f1;          /* frosting/creme */
    --shadow: 0 18px 40px rgba(70, 45, 30, .14), 0 4px 12px rgba(70, 45, 30, .08);
    --shadow-soft: 0 10px 26px rgba(70, 45, 30, .10);

    /* ---- aliassen voor bestaande utility-classes ---- */
    --bg: var(--paper);
    --bg-2: var(--paper-2);
    --bg-tint: #faf2e6;
    --surface: var(--frost);
    --surface-2: #fbf3e6;

    --muted: #9a8a7b;

    --accent: var(--cherry);
    --accent-deep: var(--cherry-deep);
    --accent-soft: rgba(191, 51, 80, .10);
    --gold-deep: #b07f2e;
    --gold-soft: #f7ecd4;

    --line-soft: #efe2cf;
    --ok: #3f9c6d;
    --ok-bg: #e4f3ea;

    /* ---- schaduw-aliassen ---- */
    --shadow-sm: var(--shadow-soft);
    --shadow-lg: var(--shadow);

    /* ---- spacing-schaal ---- */
    --s-1: .25rem;
    --s-2: .5rem;
    --s-3: .75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2.5rem;

    /* ---- radius-schaal ---- */
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --ring: 0 0 0 4px rgba(191, 51, 80, .20);
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.06rem;
    color: var(--ink);
    line-height: 1.62;
    background-color: var(--paper);
    background-image:
        radial-gradient(1200px 600px at 80% -12%, rgba(207, 155, 70, .20), transparent 60%),
        radial-gradient(900px 520px at 6% 6%, rgba(191, 51, 80, .10), transparent 55%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
/* fijne papier-ruis, exact als in de proef */
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* ---- typografie ---- */
h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    line-height: 1.06;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0 0 .4em;
}
h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.1rem); font-weight: 600; line-height: 1.03; }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.2vw, 1.9rem); font-weight: 600; }
h3 { font-size: clamp(1.04rem, .95rem + .45vw, 1.22rem); font-weight: 600; }
p { margin: 0 0 .8em; }

/* gekleurd cursief accent in redactionele koppen */
h1 em, h2 em, .accent-em {
    font-style: normal;
    font-weight: 600;
    color: var(--cherry);
}

/* getrackte hoofdletter-eyebrow */
.eyebrow {
    font-family: 'Newsreader', serif;
    font-size: .82rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--cherry-deep);
    font-weight: 500;
}

a { color: var(--cherry-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cherry); text-decoration: underline; text-underline-offset: 3px; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--gold-soft); color: var(--ink-soft);
    padding: .1rem .4rem; border-radius: var(--r-sm); font-size: .9em;
}

::selection { background: rgba(191, 51, 80, .20); }

/* ============================================================
   Zwevende pill-topbar + pill-nav (uit de proef)
   ============================================================ */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem;
    margin: 1.1rem auto; padding: .55rem 1.4rem; max-width: 1120px;
    background: rgba(255, 253, 249, .74);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}
.brand {
    display: flex; align-items: center; gap: .6rem;
    font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.08rem;
    letter-spacing: -.01em; color: var(--ink); flex-shrink: 0;
}
.brand:hover { color: var(--cherry); text-decoration: none; }
.brand .dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #d9586d, var(--cherry-deep));
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .2);
    flex-shrink: 0;
}

/* de eigenlijke zwevende pill rondom de nav-links */
.nav-pill {
    display: flex; align-items: center;
    gap: clamp(.15rem, .9vw, .55rem); flex-wrap: wrap;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(170%) blur(16px);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    border: 1px solid rgba(239, 225, 218, .9);
    border-radius: var(--r-pill);
    padding: .4rem .55rem;
    box-shadow:
        0 2px 8px rgba(90, 40, 70, .07),
        0 12px 30px rgba(90, 40, 70, .09);
}
.nav-pill a {
    color: var(--ink-soft); font-weight: 500; font-size: .9rem;
    font-family: 'Newsreader', serif;
    padding: .42rem .8rem; border-radius: var(--r-pill);
    transition: background .16s ease, color .16s ease;
}
.nav-pill a:hover {
    color: var(--cherry-deep);
    background: var(--accent-soft);
    text-decoration: none;
}
.who, .topbar .who {
    font-weight: 600; color: var(--ink); font-size: .9rem;
    background: var(--paper-2); border: 1px solid var(--line);
    padding: .2rem .7rem; border-radius: var(--r-pill); white-space: nowrap;
    font-family: 'Fraunces', serif;
}
/* secundaire (kleine) link, bv. naar de zussen-chat */
.groepschat-link {
    font-size: .82rem; font-weight: 600; color: var(--cherry-deep);
    font-family: 'Newsreader', serif; white-space: nowrap;
}
/* de zussen-chat als kleine, secundaire nav-link (geen hoofdmenu-item) */
.nav-pill a.nav-secundair {
    font-size: .8rem; color: var(--muted); font-style: italic;
    opacity: .85;
}
.nav-pill a.nav-secundair:hover { color: var(--cherry-deep); opacity: 1; }

/* Demo-balk bovenaan zodra je in de oefenversie zit */
.demo-balk {
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #3c2c0a; text-align: center; font-weight: 600;
    font-family: 'Newsreader', serif; font-size: .9rem;
    padding: .5rem 1rem; line-height: 1.35;
}

/* Hamburger + drawer-backdrop: standaard verborgen, alleen op mobiel zichtbaar */
.hamburger { display: none; }
.menu-backdrop { display: none; }

/* ---- layout ---- */
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem) 1rem; }
.hero { padding: clamp(1.2rem, 4vw, 2.2rem) 0 2.4rem; animation: fadeInUp .5s ease both; }
.lead { color: var(--ink-soft); font-size: clamp(1.08rem, 1.02rem + .3vw, 1.28rem); max-width: 46ch; }
.counter { margin-top: var(--s-4); color: var(--ink-soft); }
.counter strong { color: var(--cherry); font-family: 'Fraunces', serif; }

/* smallere kolom voor lange leesteksten (lied, concepten) */
.wrap.smal, .reading { max-width: 780px; }

/* ---- cards ---- */
.card {
    background: var(--frost);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.25rem, 3.5vw, 1.9rem);
    margin-bottom: var(--s-5);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
    animation: fadeInUp .5s ease both;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- forms ---- */
label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
input[type=text], textarea {
    width: 100%; padding: .8rem .95rem;
    border: 1.5px solid var(--line); border-radius: var(--r-md);
    font: inherit; background: #fffaf2; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input[type=text]::placeholder, textarea::placeholder { color: #b6a594; }
input[type=text]:focus, textarea:focus {
    outline: none; border-color: var(--cherry);
    background: #fff; box-shadow: var(--ring);
}
textarea { resize: vertical; min-height: 5.5rem; }

/* ---- Maatsoort- en categorie-keuze (combobox) ---- */
.maat-keuze, .cat-keuze {
    display: block; margin-bottom: 1rem; max-width: 24rem;
}
.maat-keuze > span, .cat-keuze > span {
    display: block; margin-bottom: .35rem; font-size: .9rem;
    font-weight: 600; color: var(--ink-soft);
}
.maat-keuze select, .cat-keuze select {
    width: 100%; padding: .7rem .9rem; font: inherit; color: var(--ink);
    background: #fffaf2; border: 1.5px solid var(--line);
    border-radius: var(--r-md); cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.maat-keuze select:focus, .cat-keuze select:focus {
    outline: none; border-color: var(--cherry); box-shadow: var(--ring);
}
.cat-eigen-input { margin-bottom: 1rem; max-width: 24rem; }

/* ---- Zelfgeschreven intro op de Jouw-lied-pagina ---- */
.intro-card { border-left: 4px solid var(--cherry); }
.intro-voorbeeld {
    background: var(--gold-soft); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: .8rem 1rem; margin: .6rem 0 1.1rem;
}
.intro-voorbeeld-label {
    display: inline-block; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--gold-deep);
    margin-bottom: .3rem;
}
.intro-voorbeeld pre {
    margin: 0; white-space: pre-wrap; font-family: 'Newsreader', serif;
    font-size: .95rem; color: var(--ink);
}
.intro-form { display: flex; flex-direction: column; gap: .55rem; }
.intro-form label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.intro-form button { align-self: flex-start; }

/* ---- Deuntje-speler (referentie-mp3 om op te zingen) ---- */
.deun-card { border-left: 4px solid var(--gold); }
.deun-speler {
    width: 100%; margin-top: .6rem; height: 44px;
    border-radius: var(--r-pill);
}

/* ---- Klaar-toggle (schakelaar i.p.v. twee knoppen) ---- */
.klaar-toggle {
    display: inline-flex; align-items: center; gap: .85rem; cursor: pointer;
    user-select: none; margin-top: .3rem;
}
.klaar-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.klaar-spoor {
    position: relative; width: 58px; height: 32px; flex-shrink: 0;
    background: var(--line); border-radius: var(--r-pill);
    transition: background .2s ease;
}
.klaar-knop {
    position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
    background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .22s ease;
}
.klaar-toggle.aan .klaar-spoor {
    background: linear-gradient(180deg, var(--cherry), var(--cherry-deep));
}
.klaar-toggle.aan .klaar-knop { transform: translateX(26px); }
.klaar-tekst {
    font-weight: 600; color: var(--ink); font-family: 'Fraunces', serif;
}
.klaar-toggle input:focus-visible + .klaar-spoor { box-shadow: var(--ring); }

/* ============================================================
   Samen-pagina: tabbladen, herinnerboom, liederen
   ============================================================ */
.zus-merije  { --zk: #bf3350; --zb: #fbe7ea; }
.zus-bregje  { --zk: #b07f2e; --zb: #f7ecd4; }
.zus-karlijn { --zk: #5b9a52; --zb: #e7f1e0; }

/* inklapbare panelen (accordion) i.p.v. tabbladen - werkt op elk scherm */
.accordion { margin-top: .5rem; }
.paneel { margin-bottom: 1rem; }
.paneel-kop {
    list-style: none; cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; gap: .8rem;
    background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
    border-radius: var(--r-pill); padding: .85rem 1.3rem;
    font-family: 'Fraunces', serif; font-weight: 600;
    font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--ink);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.paneel-kop::-webkit-details-marker { display: none; }
.paneel-kop:hover { background: var(--accent-soft); }
.paneel[open] > .paneel-kop {
    border-color: var(--cherry); color: var(--cherry-deep);
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.paneel-pijl { color: var(--cherry); font-size: .8rem; transition: transform .2s ease; flex-shrink: 0; }
.paneel[open] > .paneel-kop .paneel-pijl { transform: rotate(180deg); }
.paneel-body { padding-top: .9rem; }
.samen-uitleg { margin: -.3rem 0 1rem; }

/* legenda */
.boom-legenda { display: flex; gap: .5rem; flex-wrap: wrap; margin: .7rem 0 1.3rem; }
.legenda-item {
    font-size: .8rem; font-weight: 600; padding: .22rem .65rem;
    border-radius: var(--r-pill); background: var(--zb); color: var(--zk);
    border: 1px solid var(--zk);
}

/* mindmap: kern (Irene) -> categorie-knooppunten -> herinnering-blaadjes.
   Volledig responsive: de takken wrappen, op mobiel netjes onder elkaar. */
.mindmap {
    margin-top: 1.1rem; display: flex; flex-direction: column; align-items: center;
}
.mm-kern {
    width: 132px; position: relative; z-index: 2;
    filter: drop-shadow(0 8px 14px rgba(151, 36, 63, .28));
}
.hart-svg { width: 100%; height: auto; display: block; }
.mm-takken {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
    gap: .8rem; margin-top: 1.5rem; width: 100%; position: relative;
}
.mm-takken::before {
    content: ""; position: absolute; top: -1.5rem; left: 50%;
    width: 2.5px; height: 1.5rem; background: var(--line); transform: translateX(-50%);
}
.mm-tak { flex: 1 1 260px; max-width: 430px; }
.mm-knop {
    width: 100%; display: flex; align-items: center; gap: .55rem;
    background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(70, 45, 30, .08);
    border: 1.5px solid var(--line); border-radius: var(--r-pill);
    font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem;
    padding: .7rem 1.1rem;
}
.mm-knop:hover { filter: none; box-shadow: 0 4px 12px rgba(70, 45, 30, .12); }
.mm-knop.op { border-color: var(--cherry); color: var(--cherry-deep); }
.mm-cat { flex: 1; text-align: left; }
.mm-knop .badge { background: var(--accent-soft); }
.mm-pijl {
    font-size: .7rem; color: var(--cherry); transition: transform .2s ease;
}
.mm-pijl.op { transform: rotate(180deg); }
.mm-bladeren {
    display: flex; flex-direction: column; gap: .5rem;
    margin: .55rem 0 .3rem .9rem; padding-left: .9rem;
    border-left: 2px dashed var(--line);
}
.mm-blad {
    background: var(--zb); border: 1px solid var(--zk);
    border-radius: 6px 16px 16px 16px; padding: .55rem .8rem;
    font-size: .94rem; color: var(--ink);
}
.mm-blad .blad-zus {
    display: block; font-size: .7rem; font-weight: 700; color: var(--zk);
    text-transform: uppercase; letter-spacing: .03em; margin-bottom: .1rem;
}

/* liederen-tab: kolom per zus */
.liederen-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem; margin-top: 1.1rem;
}
.lied-kolom {
    background: var(--zb); border: 1px solid var(--zk);
    border-top: 4px solid var(--zk); border-radius: var(--r-md); padding: 1rem;
}
.lied-kolom h3 { margin: 0 0 .5rem; color: var(--zk); }
.lied-sectie h4 {
    margin: .6rem 0 .15rem; font-size: .72rem; text-transform: uppercase;
    color: var(--zk); letter-spacing: .04em;
}
.lied-sectie pre {
    white-space: pre-wrap; font-family: 'Newsreader', serif; font-size: .92rem;
    margin: 0; color: var(--ink);
}

/* compositie-staat (lied wordt gemaakt) */
.componeer-kaart { text-align: center; border-left: 4px solid var(--gold); }
.componeer-kaart .zandloper { font-size: 2.8rem; }
.componeer-kaart .laad-balk { max-width: 22rem; margin-left: auto; margin-right: auto; }

/* uitleg van het gezamenlijke lied */
.samen-uitleg-kaart { border-left: 4px solid var(--cherry); }

/* akkoord-stand */
.akkoord-kaart { border-left: 4px solid var(--gold); }
.akkoord-lijst {
    list-style: none; padding: 0; margin: .7rem 0 1rem;
    display: flex; flex-direction: column; gap: .4rem;
}
.akkoord-item {
    display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem;
    border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line);
}
.akkoord-item.ja { background: var(--ok-bg); border-color: var(--ok); }
.akkoord-vink {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; font-weight: 700;
    background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.akkoord-item.ja .akkoord-vink { background: var(--ok); color: #fff; border-color: var(--ok); }
.akkoord-naam { font-weight: 600; font-family: 'Fraunces', serif; }
.akkoord-status { margin-left: auto; font-size: .85rem; color: var(--ink-soft); }
.akkoord-item.ja .akkoord-status { color: var(--ok); font-weight: 600; }

/* viering wanneer alle drie akkoord zijn */
.viering-kaart {
    text-align: center; position: relative; overflow: hidden;
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, var(--frost), var(--gold-soft));
}
.viering-emoji { font-size: 3.4rem; line-height: 1; }
.viering-kaart h2 { color: var(--cherry-deep); margin: .3rem 0; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span {
    position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px;
    animation: confetti-val 2.8s linear infinite;
}
.confetti span:nth-child(odd)  { background: var(--cherry); }
.confetti span:nth-child(even) { background: var(--gold); }
.confetti span:nth-child(3n)   { background: #5b9a52; }
.confetti span:nth-child(1)  { left: 5%;  animation-delay: 0s; }
.confetti span:nth-child(2)  { left: 14%; animation-delay: .5s; }
.confetti span:nth-child(3)  { left: 23%; animation-delay: 1.1s; }
.confetti span:nth-child(4)  { left: 32%; animation-delay: .2s; }
.confetti span:nth-child(5)  { left: 41%; animation-delay: 1.4s; }
.confetti span:nth-child(6)  { left: 50%; animation-delay: .8s; }
.confetti span:nth-child(7)  { left: 59%; animation-delay: 1.7s; }
.confetti span:nth-child(8)  { left: 68%; animation-delay: .35s; }
.confetti span:nth-child(9)  { left: 77%; animation-delay: 1.2s; }
.confetti span:nth-child(10) { left: 86%; animation-delay: .65s; }
.confetti span:nth-child(11) { left: 93%; animation-delay: 1.9s; }
.confetti span:nth-child(12) { left: 38%; animation-delay: 2.2s; }
@keyframes confetti-val {
    0%   { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(440px) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* herkomst per sectie */
.samen-sectie-titel { display: flex; flex-direction: column; gap: .1rem; }
.sectie-herkomst { font-size: .78rem; color: var(--muted); }
.samen-sectie-tekst {
    white-space: pre-wrap; font-family: 'Newsreader', serif; font-size: 1rem;
    line-height: 1.6; margin: .2rem 0 0; color: var(--ink);
}

/* viering: het gezamenlijke lied is net af */
.net-klaar-kaart {
    text-align: center; position: relative; overflow: hidden;
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, var(--frost), var(--gold-soft));
}
.net-klaar-kaart h2 { color: var(--cherry-deep); margin: .3rem 0; }

/* hoera-banner op de startpagina */
.hoera-banner {
    display: flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem;
    background: linear-gradient(180deg, var(--gold-soft), #fff); color: var(--ink);
    border: 1.5px solid var(--gold); border-radius: var(--r-lg);
    padding: .9rem 1.2rem; box-shadow: var(--shadow-soft);
}
.hoera-banner:hover { text-decoration: none; box-shadow: var(--shadow); }
.hoera-emoji { font-size: 1.6rem; flex-shrink: 0; }

/* ---- Favoriet kiezen (= klaar) op de Jouw-lied-pagina ---- */
.favoriet-form { margin: .2rem 0 .9rem; }
.favoriet-knop {
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #3c2c0a; font-size: .9rem; padding: .55rem 1.05rem;
    box-shadow: 0 2px 8px rgba(207, 155, 70, .28);
}
.favoriet-badge {
    display: inline-block; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: #fff;
    background: var(--gold-deep); padding: .15rem .5rem;
    border-radius: var(--r-pill); vertical-align: middle; margin-left: .3rem;
}
.concept-versie-rij.is-favoriet {
    border: 1.5px solid var(--gold); border-radius: var(--r-md);
    padding: .9rem; background: var(--gold-soft);
}
.gekozen-kaart { border-left: 4px solid var(--gold); }
.intro-vast {
    background: var(--gold-soft); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: .8rem 1rem;
}
.intro-vast pre {
    margin: 0; white-space: pre-wrap; font-family: 'Newsreader', serif; font-size: .95rem;
}
.volgende-hint { text-align: center; }
.volgende-hint p { margin: 0; color: var(--ink-soft); }

/* ---- Sterkte-slider (1-5) bij een herinnering ---- */
.sterkte-rij { margin: .9rem 0 1rem; max-width: 22rem; }
.sterkte-label {
    display: block; font-weight: 600; font-size: .9rem;
    color: var(--ink-soft); margin-bottom: .45rem;
}
.sterkte-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
    border-radius: var(--r-pill); background: var(--line);
    outline: none; cursor: pointer;
}
.sterkte-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--cherry); border: 2.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22); cursor: grab;
}
.sterkte-slider::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%; background: var(--cherry);
    border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); cursor: grab;
}
.sterkte-slider:focus-visible { box-shadow: var(--ring); }
.sterkte-pips {
    display: flex; justify-content: space-between; padding: 0 2px;
    font-size: .75rem; color: var(--muted); font-family: 'Newsreader', serif;
    user-select: none; margin-top: .15rem;
}
.sterkte-toelichting { font-size: .84rem; color: var(--ink-soft); min-height: 1.3em; margin: .1rem 0 0; }
.sterkte-badge {
    display: inline-block; margin-left: .35rem; font-size: .72rem;
    letter-spacing: -.05em; vertical-align: middle; opacity: .7;
}
.sterkte-badge.sterkte-1 { color: var(--muted); }
.sterkte-badge.sterkte-2 { color: var(--ink-soft); }
.sterkte-badge.sterkte-4 { color: var(--gold-deep); opacity: .9; }
.sterkte-badge.sterkte-5 { color: var(--cherry); opacity: 1; }

/* ---- Herinnering-referenties bij het gezamenlijke lied ---- */
.sectie-bronnen { margin-top: .7rem; border-top: 1px dashed var(--line); padding-top: .5rem; }
.sectie-bronnen-kop {
    list-style: none; cursor: pointer; font-size: .78rem; font-weight: 600;
    color: var(--muted); letter-spacing: .02em; user-select: none;
    display: inline-flex; align-items: center; gap: .35rem;
}
.sectie-bronnen-kop::-webkit-details-marker { display: none; }
.sectie-bronnen-kop::before {
    content: "\25B8"; font-size: .65rem; color: var(--muted);
    transition: transform .15s ease; display: inline-block;
}
.sectie-bronnen[open] > .sectie-bronnen-kop::before { transform: rotate(90deg); }
.bronnen-lijst { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.bron-item {
    font-size: .82rem; color: var(--ink-soft); padding: .3rem .7rem;
    background: var(--gold-soft); border-left: 2px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0; line-height: 1.4;
}

/* ---- Per-sectie bewaarknop bij eigen concept ---- */
.sectie-bewaar-form { margin-bottom: 1rem; }
.sectie-bewaar-rij { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }
.sectie-bewaar-rij button { align-self: flex-start; font-size: .9rem; padding: .5rem 1rem; }

button {
    cursor: pointer; font: inherit; font-weight: 600;
    font-family: 'Fraunces', serif;
    background: linear-gradient(180deg, var(--cherry), var(--cherry-deep));
    color: #fff; border: none;
    padding: .72rem 1.4rem; border-radius: var(--r-pill);
    box-shadow: 0 3px 10px rgba(191, 51, 80, .26);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}
button:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(191, 51, 80, .34); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: none; box-shadow: var(--ring), 0 3px 10px rgba(191, 51, 80, .26); }
button:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; filter: none; }
button.secondary {
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #3c2c0a; box-shadow: 0 3px 10px rgba(207, 155, 70, .28);
}
button.secondary:hover { box-shadow: 0 6px 18px rgba(207, 155, 70, .38); }

/* ---- Laad-overlay met zandloper (tijdens lied genereren) ---- */
.laad-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center; padding: 1.5rem;
    background: rgba(255, 249, 241, .86);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    animation: laad-in .25s ease both;
}
.laad-kaart {
    text-align: center; max-width: 22rem; width: 100%;
    background: var(--frost); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow);
    padding: 2rem 1.6rem;
}
.laad-kaart h3 {
    margin: .8rem 0 .3rem; font-family: 'Fraunces', serif; color: var(--ink);
}
.laad-kaart p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.zandloper {
    font-size: 3rem; line-height: 1; display: inline-block;
    transform-origin: 50% 50%;
    animation: zand-draai 1.8s ease-in-out infinite;
}
.laad-balk {
    margin-top: 1.3rem; height: 6px; border-radius: var(--r-pill);
    background: var(--line); overflow: hidden;
}
.laad-balk span {
    display: block; height: 100%; width: 40%; border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--gold), var(--cherry));
    animation: laad-schuif 1.4s ease-in-out infinite;
}
@keyframes zand-draai {
    0%, 35%   { transform: rotate(0deg); }
    50%, 85%  { transform: rotate(180deg); }
    100%      { transform: rotate(360deg); }
}
@keyframes laad-schuif {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
@keyframes laad-in {
    from { opacity: 0; } to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .zandloper { animation-duration: 4s; }
    .laad-balk span { animation: none; width: 100%; }
}

.link-btn {
    background: none; color: var(--cherry-deep); padding: .3rem .5rem; font-weight: 600;
    font-family: 'Newsreader', serif;
    box-shadow: none; border-radius: var(--r-pill);
}
.link-btn:hover { background: var(--accent-soft); filter: none; box-shadow: none; text-decoration: none; }
.link-btn.danger { color: #b8324e; }
.link-btn.danger:hover { background: rgba(184, 50, 78, .1); }
.link-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.inline { display: inline; }
.btn-link {
    display: inline-block; margin-top: var(--s-3); font-weight: 600;
    color: var(--cherry-deep);
}

/* ---- login ---- */
.login-card {
    max-width: 460px; margin: 9vh auto 0; text-align: center;
    background: var(--frost); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 6vw, 2.4rem);
    box-shadow: var(--shadow);
    animation: fadeInUp .55s ease both;
}
/* lettermark in plaats van emoji: dezelfde dot als in de brand */
.login-emoji {
    width: 56px; height: 56px; border-radius: 50%; display: block;
    margin: 0 auto .8rem;
    background: radial-gradient(circle at 35% 30%, #d9586d, var(--cherry-deep));
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .2), var(--shadow-soft);
    font-size: 0; line-height: 0;
}
.naam-ster { font-size: .5em; color: var(--gold-deep); vertical-align: super; font-weight: 600; }
.login-naamnoot {
    margin: .1rem 0 .1rem; color: var(--muted);
    font-family: 'Newsreader', serif; font-size: .76rem;
}
.login-tagline {
    margin: -.05rem 0 .2rem; color: var(--ink-soft);
    font-family: 'Newsreader', serif; font-size: .92rem;
}

/* doorlopende confettiregen op het inlogscherm */
.confetti-regen {
    position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 100;
}
.confetti-regen span {
    position: absolute; top: -24px; width: 8px; height: 13px; border-radius: 2px;
    opacity: .85; animation-name: confetti-regen-val;
    animation-timing-function: linear; animation-iteration-count: infinite;
}
.confetti-regen span:nth-child(4n+1) { background: var(--cherry); }
.confetti-regen span:nth-child(4n+2) { background: var(--gold); }
.confetti-regen span:nth-child(4n+3) { background: #5b9a52; }
.confetti-regen span:nth-child(4n)   { background: var(--rose-2); }
@keyframes confetti-regen-val {
    0%   { transform: translateY(-24px) rotate(0); }
    100% { transform: translateY(104vh) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) { .confetti-regen { display: none; } }

/* foto van Irene op het inlogscherm */
.login-foto {
    display: block; margin: 0 auto 1rem; width: 150px; height: auto;
    border-radius: var(--r-lg); border: 3px solid #fff;
    box-shadow: var(--shadow);
}
.login-form { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); text-align: left; }
.login-form button { margin-top: .3rem; padding: .85rem 1.4rem; font-size: 1.02rem; }
.hint { color: var(--muted); font-size: .9rem; margin-top: var(--s-4); }
.error {
    background: var(--accent-soft); color: var(--cherry-deep); padding: .7rem .9rem;
    border-radius: var(--r-md); border: 1px solid #ecc2cd; font-weight: 500;
}

/* ---- invoer: categorie-tabs als segmented control ---- */
.cat-tabs {
    display: flex; flex-wrap: wrap; gap: .4rem;
    margin-bottom: var(--s-4); padding: .35rem;
    background: var(--bg-tint); border: 1px solid var(--line);
    border-radius: var(--r-pill);
}
.cat-tab {
    border: none; border-radius: var(--r-pill);
    padding: .48rem 1.05rem; font-size: .9rem; font-weight: 500;
    font-family: 'Newsreader', serif;
    cursor: pointer; user-select: none; color: var(--ink-soft);
    background: none; box-shadow: none;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.cat-tab:hover { background: rgba(255, 255, 255, .8); filter: none; box-shadow: none; }
.cat-tab.active {
    background: var(--cherry); color: #fff;
    box-shadow: 0 3px 10px rgba(191, 51, 80, .28);
}
.cat-tab input { display: none; }
.item-form { display: flex; flex-direction: column; gap: var(--s-3); }
.item-form button { align-self: flex-start; }

/* ---- lijsten ---- */
.cat-block { margin-bottom: var(--s-5); }
.cat-block h3 { display: flex; align-items: center; gap: .5rem; }
.badge {
    display: inline-block; background: var(--gold-soft); color: var(--gold-deep);
    border: 1px solid #ecd6a8;
    border-radius: var(--r-pill); padding: .08rem .7rem; font-size: .8rem; font-weight: 700;
    line-height: 1.5; font-family: 'Fraunces', serif;
}
ul.items { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-direction: column; gap: var(--s-2); }
.item {
    background: #fbf3e6; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: .9rem 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.item:hover { border-color: #e0cdb0; box-shadow: var(--shadow-soft); }
.item p { margin: 0; color: var(--ink); }
.item-actions { display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-2); flex-wrap: wrap; }
.item-edit { display: flex; flex-direction: column; gap: var(--s-2); }
.empty { color: var(--muted); font-style: italic; }

/* ---- klaar / preview ---- */
.klaar-card { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.klaar-card form { margin: 0; }
.preview-card {
    background: linear-gradient(135deg, var(--frost) 50%, var(--gold-soft));
    border-color: #ecd6a8;
}

/* ---- status / ranglijst ---- */
.ranglijst { display: flex; flex-direction: column; gap: var(--s-3); }
.rank-row {
    display: grid; grid-template-columns: 46px 1fr auto; gap: .5rem 1rem; align-items: center;
    background: var(--frost); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
    animation: fadeInUp .5s ease both;
}
.rank-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rank-row:nth-child(1) { animation-delay: .04s; }
.rank-row:nth-child(2) { animation-delay: .10s; }
.rank-row:nth-child(3) { animation-delay: .16s; }
.rank-row.leader {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--frost), var(--gold-soft));
    box-shadow: 0 6px 18px rgba(207, 155, 70, .20);
}
.rank-pos {
    font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 600;
    color: var(--cherry); text-align: center; line-height: 1;
}
.rank-row.leader .rank-pos { color: var(--gold-deep); }
.rank-name { font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; font-family: 'Fraunces', serif; }
.rank-count { color: var(--muted); font-size: .88rem; text-align: right; white-space: nowrap; }
.rank-count .big { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--ink); font-weight: 600; }
.rank-bar {
    grid-column: 2 / 4; height: 10px; background: var(--line-soft);
    border-radius: var(--r-pill); overflow: hidden; box-shadow: inset 0 1px 2px rgba(70, 45, 30, .06);
}
.rank-bar-fill {
    height: 100%; border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--gold), var(--cherry));
    transform-origin: left center;
    animation: growBar .9s cubic-bezier(.2, .8, .2, 1) both;
}

/* ---- status-pills ---- */
.status-pill {
    display: inline-flex; align-items: center; margin-left: .4rem;
    font-size: .76rem; padding: .18rem .65rem; border-radius: var(--r-pill); font-weight: 600;
    border: 1px solid transparent;
}
.status-pill.done { background: var(--ok-bg); color: var(--ok); border-color: #c4e6d2; }
.status-pill.busy { background: var(--accent-soft); color: var(--cherry-deep); border-color: #ecc2cd; }
.status-pill.warming { background: var(--gold-soft); color: var(--gold-deep); border-color: #ecd6a8; }
.status-pill.idle { background: #f0e7da; color: var(--muted); border-color: #e4d6c2; }

/* ---- admin ---- */
.admin-zone { margin-top: var(--s-6); }
.admin-block {
    background: var(--frost); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: .9rem 1.15rem; margin-bottom: var(--s-3);
    box-shadow: var(--shadow-soft);
}
.admin-block summary {
    cursor: pointer; font-weight: 600; color: var(--ink);
    list-style: none; display: flex; align-items: center; gap: .5rem;
    font-family: 'Fraunces', serif;
}
.admin-block summary::before {
    content: "▸"; color: var(--cherry); transition: transform .18s ease; display: inline-block;
}
.admin-block[open] summary::before { transform: rotate(90deg); }
.admin-block summary::-webkit-details-marker { display: none; }

/* ---- structure / lied ---- */
ol.structure { padding-left: 1.3rem; margin: 0; }
ol.structure li { margin: .35rem 0; font-weight: 500; }
ol.structure li::marker { color: var(--cherry); font-family: 'Fraunces', serif; }

/* ---- lied, likes, refrein ---- */
.flash {
    border-radius: var(--r-md); padding: .85rem 1.1rem; margin-bottom: var(--s-5);
    font-weight: 600; font-size: .95rem;
}
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.fout { background: var(--accent-soft); color: var(--cherry-deep); }

.genereer-zone {
    display: flex; align-items: center; gap: var(--s-3);
    flex-wrap: wrap; padding: var(--s-3) 0;
}
.ai-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--gold-soft); color: var(--gold-deep); font-weight: 600;
    font-size: .82rem; padding: .28rem .75rem; border-radius: var(--r-pill);
    border: 1px solid #ecd6a8; font-family: 'Fraunces', serif;
}

.verse-sectie { margin-bottom: var(--s-5); }
.verse-card { border-left: 4px solid var(--gold); }
.verse-card h3 { margin-top: 0; }

.lied-regels {
    list-style: none; padding: 0; margin: var(--s-2) 0 0;
    display: flex; flex-direction: column; gap: .2rem;
}
.lied-regel {
    display: flex; align-items: flex-start; gap: var(--s-3);
    padding: .45rem .6rem; border-radius: var(--r-sm);
    transition: background .12s ease;
}
.lied-regel:hover { background: var(--bg-tint); }
.lied-regel-tekst { flex: 1; line-height: 1.65; }
.like-btn {
    background: none; box-shadow: none; border: none; cursor: pointer;
    padding: .22rem .6rem; font: inherit; font-size: .85rem;
    font-family: 'Newsreader', serif;
    color: var(--muted); border-radius: var(--r-pill); white-space: nowrap;
    display: inline-flex; gap: .3rem; align-items: center;
}
.like-btn:hover { background: var(--accent-soft); color: var(--cherry); filter: none; box-shadow: none; }
.like-btn.geliked { color: var(--cherry); font-weight: 700; }

.refrein-top { background: linear-gradient(135deg, var(--frost) 50%, var(--gold-soft)); border-color: #ecd6a8; }
.refrein-lijst { padding-left: 1.2rem; margin: var(--s-3) 0 0; }
.refrein-lijst li { margin: .5rem 0; }
.refrein-tekst { font-weight: 500; }

/* ---- fase + editing + versies ---- */
.fase-banner {
    display: flex; align-items: center; gap: var(--s-3);
    background: var(--gold-soft); border: 1px solid #ecd6a8;
    border-radius: var(--r-lg); padding: var(--s-4);
    margin-bottom: var(--s-5);
}
.fase-banner p { margin: 0; color: var(--ink-soft); }
/* CSS-slotje in plaats van emoji */
.fase-banner .slotje {
    width: 28px; height: 28px; flex-shrink: 0; position: relative;
}
.fase-banner .slotje::before {
    content: ""; position: absolute; left: 4px; bottom: 0; width: 20px; height: 14px;
    border-radius: 4px; background: var(--gold-deep);
}
.fase-banner .slotje::after {
    content: ""; position: absolute; left: 9px; top: 2px; width: 10px; height: 12px;
    border: 2.5px solid var(--gold-deep); border-bottom: none;
    border-radius: 6px 6px 0 0;
}

pre.lied-tekst {
    font: inherit; white-space: pre-wrap; margin: 0;
    color: var(--ink); line-height: 1.75;
    background: var(--bg-tint); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: .9rem 1rem;
}
.lied-sectie-meta {
    font-size: .82rem; color: var(--muted); margin-top: var(--s-2);
    display: flex; gap: var(--s-3); flex-wrap: wrap;
}
.versie-lijst {
    list-style: none; padding: 0; margin: var(--s-4) 0 0;
    display: flex; flex-direction: column; gap: var(--s-3);
}
.versie-item {
    background: #fbf3e6; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: .95rem;
}
.conflict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) {
    .conflict-grid { grid-template-columns: 1fr; }
}

/* ---- export ---- */
.export-acties {
    display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
    margin-top: var(--s-3);
}
.export-knop { margin-top: 0; }
.export-knop.disabled {
    color: var(--muted); pointer-events: none; cursor: not-allowed; opacity: .6;
}
.lied-tekst-verborgen {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
    white-space: pre-wrap;
}

/* ---- versies vergelijken (bestaand) ---- */
.versie-keuze {
    list-style: none; padding: 0; margin: var(--s-4) 0 0;
    display: flex; flex-direction: column; gap: var(--s-2);
}
.versie-rij {
    display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3);
    padding: .75rem 1rem;
    background: #fbf3e6; border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.versie-rij.favoriet {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--frost), var(--gold-soft));
}
.versie-rij form { margin: 0; }
.versie-meta { color: var(--muted); font-size: .85rem; flex: 1; min-width: 8rem; }

.vergelijk-kiezer {
    display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: flex-end;
    margin-top: var(--s-4);
}
.vergelijk-kiezer label { display: flex; flex-direction: column; gap: .3rem; }
.vergelijk-kiezer select {
    font: inherit; padding: .55rem .7rem;
    border: 1.5px solid var(--line); border-radius: var(--r-md);
    background: #fbf3e6; color: var(--ink);
}
.versie-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4);
    margin-top: var(--s-4);
}
.versie-kolom h3 { color: var(--cherry); }
.versie-sectie-blok { margin-bottom: var(--s-3); }
.versie-sectie-blok h4 {
    font-family: 'Fraunces', serif; font-size: .85rem; text-transform: uppercase;
    letter-spacing: .06em; color: var(--cherry); margin: 0 0 .3rem;
}
@media (max-width: 560px) {
    .versie-grid { grid-template-columns: 1fr; }
}

/* ---- onthulling / reveal ---- */
.reveal-hero {
    text-align: center; padding: var(--s-6) var(--s-4) var(--s-5);
    animation: fadeInUp .6s ease both;
}
.reveal-hero h1 { font-size: clamp(2.4rem, 1.5rem + 4.5vw, 3.9rem); }
.reveal-namen { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; margin: 0 auto; }
.reveal-status-card {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--frost), var(--gold-soft));
    text-align: center;
}
.reveal-lied { margin-top: var(--s-4); }
.lied-sectie { border-left: 4px solid var(--cherry); }
.lied-sectie:nth-child(1) { animation-delay: .04s; }
.lied-sectie:nth-child(2) { animation-delay: .08s; }
.lied-sectie:nth-child(3) { animation-delay: .12s; }
.lied-sectie:nth-child(4) { animation-delay: .16s; }
.lied-sectie:nth-child(5) { animation-delay: .20s; }
.lied-sectie:nth-child(6) { animation-delay: .24s; }
.lied-sectie:nth-child(7) { animation-delay: .28s; }
.lied-sectie h3 {
    font-family: 'Fraunces', serif; color: var(--cherry);
    text-transform: uppercase; font-size: .9rem; letter-spacing: .08em;
    margin-bottom: .6rem;
}
.lied-sectie .lied-tekst {
    font-size: 1.08rem; line-height: 1.85; background: none; border: none; padding: 0;
}
.reveal-acties {
    display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
    justify-content: center; margin: var(--s-5) 0;
}
.reveal-acties .hint { margin-top: 0; }
.genereer-knop { padding: 1rem 2.6rem; font-size: 1.05rem; }

/* ============================================================
   Taart-hub homepage (uit de proef)
   ============================================================ */
.hub-hero {
    padding: clamp(1.2rem, 4vw, 2.2rem) 0 3rem;
}
.hub-hero .intro { max-width: 40rem; margin: 0 auto; }

/* Taartje met drie kaarsjes (de drie zussen) boven de titel */
.taartje { text-align: center; margin-bottom: .6rem; }
.taart-svg {
    width: clamp(110px, 26vw, 140px); height: auto;
    filter: drop-shadow(0 10px 16px rgba(70, 45, 30, .14));
}
.taart-svg .vlammen { animation: taart-vlam 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes taart-vlam {
    0%, 100% { opacity: 1; }
    50%      { opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
    .taart-svg .vlammen { animation: none; }
}
.steps { margin-top: 1.7rem; display: flex; flex-direction: column; }
.step {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: .78rem .2rem; border-top: 1px solid var(--line);
    text-decoration: none; color: inherit; transition: padding-left .18s ease;
}
.steps .step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-left: .5rem; text-decoration: none; }
.step .num {
    font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--cherry);
    min-width: 1.7rem; font-weight: 600;
}
.step h3 { margin: 0; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.12rem; }
.step p { margin: .12rem 0 0; font-size: .96rem; color: var(--ink-soft); }
.step.locked { cursor: not-allowed; }
.step.locked:hover { padding-left: .2rem; }
.step.locked h3, .step.locked p { color: #ad9f91; }
.step.actief .num, .step.actief h3 { color: var(--cherry-deep); }
.step .lock {
    margin-left: auto; align-self: center; font-size: .8rem; color: #a3927f;
    font-style: italic; max-width: 9rem; text-align: right;
}
.step .klaar-merk {
    margin-left: auto; align-self: center; font-size: .76rem; font-weight: 600;
    color: var(--ok); background: var(--ok-bg); border: 1px solid #c4e6d2;
    padding: .12rem .6rem; border-radius: var(--r-pill);
}

/* ===== TAART (CSS-getekend, exact uit de proef) ===== */
.cake-stage {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end; min-height: 470px;
}
.cake { position: relative; width: min(100%, 440px); display: flex; flex-direction: column; align-items: center; }
.tier {
    position: relative; cursor: pointer; text-decoration: none; color: var(--ink);
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    box-shadow: 0 10px 22px rgba(110, 70, 40, .16);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease;
}
.tier:hover { transform: translateY(-3px); box-shadow: 0 20px 36px rgba(110, 70, 40, .22); text-decoration: none; }
.tier .badge {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--frost); border: 1px solid rgba(150, 90, 60, .18);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-size: .86rem; color: var(--cherry-deep);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
}
.tier .lbl { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.04rem; }
/* tiers smaller naar boven, taart-kleuren sponge/rose afwisselend */
.t1 { width: 100%; height: 104px; border-radius: 20px; background: linear-gradient(180deg, var(--sponge), var(--sponge-2)); }
.t2 { width: 82%; height: 90px; border-radius: 18px; background: linear-gradient(180deg, var(--rose), var(--rose-2)); margin-top: -14px; z-index: 2; }
.t3 { width: 65%; height: 82px; border-radius: 16px; background: linear-gradient(180deg, var(--sponge), var(--sponge-2)); margin-top: -14px; z-index: 3; }
.t4 { width: 49%; height: 78px; border-radius: 15px; background: linear-gradient(180deg, var(--rose), var(--rose-2)); margin-top: -14px; z-index: 4; }
/* frosting met druppels langs de bovenrand */
.tier .frost {
    position: absolute; top: -9px; left: 7px; right: 7px; height: 20px;
    background: var(--frost); border-radius: 14px 14px 6px 6px;
    box-shadow: 0 3px 5px rgba(110, 70, 40, .10);
}
.tier .frost::after {
    content: ""; position: absolute; left: 6px; right: 6px; bottom: -9px; height: 13px;
    background: radial-gradient(circle at 13px 0, var(--frost) 8px, transparent 9px) 0 0/26px 13px repeat-x;
}
.tier.locked { filter: saturate(.5); opacity: .8; cursor: not-allowed; }
.tier.locked:hover { transform: none; box-shadow: 0 10px 22px rgba(110, 70, 40, .16); }
.tier .lockpill {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: .3rem;
    font-family: 'Newsreader', serif; font-style: italic; font-size: .78rem;
    color: #8a7a6b; background: rgba(255, 255, 255, .65); border: 1px solid var(--line);
    padding: .1rem .55rem; border-radius: 999px;
}
/* sprinkles */
.spr { position: absolute; width: 9px; height: 3px; border-radius: 2px; opacity: .85; }
/* kaarsjes + vlammetjes op de bovenste laag */
.candles {
    position: absolute; top: -52px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 13px; align-items: flex-end; z-index: 6;
}
.candle {
    position: relative; width: 6px; height: 34px; border-radius: 3px;
    background: repeating-linear-gradient(45deg, #e7657c, #e7657c 5px, #fff7f7 5px, #fff7f7 10px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .12);
}
.candle .flame {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 16px; border-radius: 50% 50% 50% 50%/62% 62% 40% 40%;
    background: radial-gradient(circle at 50% 72%, #ffe07a, #ff9a3c 55%, #f2592a);
    box-shadow: 0 0 10px rgba(255, 150, 60, .75);
}
.candle.c2 { height: 42px; }
/* kers tussen de kaarsjes */
.cherry-cake { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); z-index: 5; width: 42px; height: 34px; }
.cherry-cake .ball {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #e2627a, var(--cherry-deep));
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), 0 4px 8px rgba(120, 20, 40, .3);
}
.cherry-cake .ball::after {
    content: ""; position: absolute; top: 4px; left: 5px; width: 7px; height: 5px;
    border-radius: 50%; background: rgba(255, 255, 255, .75);
}
.cherry-cake .stem {
    position: absolute; left: 50%; bottom: 22px; width: 3px; height: 18px;
    background: #8a5a33; border-radius: 3px; transform: rotate(16deg); transform-origin: bottom;
}
.plate {
    width: 120%; height: 28px; margin-top: 4px; border-radius: 50%;
    background: radial-gradient(ellipse at center, #fffaf2, #e8d4ba);
    box-shadow: 0 16px 28px rgba(70, 45, 30, .20); border: 1px solid var(--line);
}
.cherry-cap {
    margin-top: 1rem; font-family: 'Newsreader', serif; font-style: normal;
    font-size: .92rem; color: var(--cherry-deep); text-align: center;
}

/* ---- footer (compacte pill-stijl uit de proef) ---- */
.foot {
    position: relative; z-index: 1; text-align: center;
    color: var(--ink-soft); font-size: .86rem; padding: 1rem 1rem 2.6rem;
    border-top: none; margin-top: var(--s-5);
}
.foot p { margin: .3rem 0; }
.foot .eu {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255, 253, 249, .72); border: 1px solid var(--line);
    padding: .3rem .85rem; border-radius: 999px;
}
.foot .eu::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* ---- onderlinge zussen-chat (US-23) ---- */
.groepschat-card { padding: 0; overflow: hidden; }
.groepschat-card .chat-kop { background: var(--gold-soft); }
.groepschat-card .chat-titel { color: var(--gold-deep); }
.chat-card { padding: 0; overflow: hidden; }
.chat-kop {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-soft);
    background: #fbf3e6;
}
.chat-titel {
    font-family: 'Fraunces', serif; color: var(--cherry);
    font-size: .98rem; letter-spacing: .02em; font-weight: 600;
}
.chat-draad {
    display: flex; flex-direction: column; gap: var(--s-3);
    overflow-y: auto; max-height: 58vh; min-height: 320px;
    padding: var(--s-4); scroll-behavior: smooth;
}
.chat-tekst {
    padding: .65rem .95rem; border-radius: var(--r-lg); line-height: 1.55;
    font-size: .97rem; white-space: pre-wrap; word-break: break-word;
}
.groepschat-bubbel {
    display: flex; flex-direction: column; gap: .15rem;
    max-width: 80%; animation: fadeInUp .25s ease both;
}
.groepschat-bubbel.eigen { align-self: flex-end; align-items: flex-end; }
.groepschat-bubbel.ander { align-self: flex-start; align-items: flex-start; }
.groepschat-meta { font-size: .76rem; font-weight: 600; color: var(--muted); padding: 0 .3rem; }
.groepschat-bubbel.eigen .chat-tekst {
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #3c2c0a;
    border-radius: var(--r-lg) var(--r-sm) var(--r-lg) var(--r-lg);
}
.groepschat-bubbel.ander .chat-tekst {
    background: var(--frost); border: 1px solid var(--line); color: var(--ink);
    border-radius: var(--r-sm) var(--r-lg) var(--r-lg) var(--r-lg);
    box-shadow: var(--shadow-soft);
}
.groepschat-leeg { color: var(--muted); text-align: center; padding: var(--s-5) var(--s-4); }
.groepschat-meelees {
    font-size: .85rem; color: var(--muted); text-align: center;
    padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line);
    background: #fbf3e6;
}
.chat-composer-wrap { position: sticky; bottom: 0; background: var(--frost); border-top: 1px solid var(--line); }
.chat-composer { display: flex; gap: var(--s-2); align-items: flex-end; padding: var(--s-3) var(--s-4); background: var(--frost); }
.chat-composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 200px; overflow-y: auto; margin: 0; }
.verstuur-knop { min-width: 44px; height: 44px; flex-shrink: 0; padding: 0 1rem; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; }

/* mic-knop (spraakinvoer, US-20) */
.composer-rij { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2); }
.composer-rij-invoer { display: flex; gap: var(--s-2); align-items: flex-end; }
.composer-rij textarea { flex: 1; margin: 0; }
.mic-hint { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }
.mic-knop {
    height: 44px; min-width: 44px; flex-shrink: 0; padding: 0 .9rem; gap: .4rem;
    border-radius: var(--r-pill); background: #fbf3e6;
    border: 1.5px solid var(--line); color: var(--ink-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem; font-weight: 600; line-height: 1; box-shadow: none;
    transition: background .15s, border-color .15s;
}
.mic-knop:hover { border-color: var(--cherry); background: var(--accent-soft); box-shadow: none; filter: none; }
.mic-knop.opname { background: var(--cherry); border-color: var(--cherry); color: #fff; animation: micPulse 1.4s infinite; }
@keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(191, 51, 80, .4); }
    50% { box-shadow: 0 0 0 8px rgba(191, 51, 80, 0); }
}
.mic-status { display: flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--cherry); margin-top: .4rem; }
.mic-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cherry); flex-shrink: 0; animation: micPulse 1.4s infinite; }
.mic-fout { font-size: .85rem; font-weight: 600; color: var(--cherry); margin: .4rem 0 0; }

/* ---- eigen concept-kaarten (US-22) ---- */
.concept-card { border-left: 4px solid var(--gold); }
.concept-versie-rij {
    display: flex; flex-direction: column; gap: var(--s-2);
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: var(--s-3); margin-top: var(--s-3); background: var(--frost);
}
.concept-versie-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.concept-versie-kop h3 { margin: 0; color: var(--gold-deep); font-size: 1rem; }
.concept-sectie h4 {
    margin: var(--s-3) 0 .2rem; font-size: .82rem; text-transform: uppercase;
    letter-spacing: .06em; color: var(--gold-deep);
}
.concept-sectie pre { font-family: 'Fraunces', serif; white-space: pre-wrap; word-break: break-word; margin: 0; font-size: .95rem; line-height: 1.65; }
.concept-edit textarea { width: 100%; font-family: 'Fraunces', serif; }
.concept-uitleg {
    background: var(--gold-soft); border: 1px solid var(--gold);
    border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-4);
    font-size: .92rem; line-height: 1.55;
}

/* ---- stap 3: vergelijk de liederen ---- */
.vergelijk-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4); align-items: start;
}
.vergelijk-kolom { margin-bottom: 0; }
.vergelijk-naam { color: var(--cherry-deep); margin-bottom: .2rem; }
.vergelijk-sectie h4 {
    margin: var(--s-3) 0 .2rem; font-size: .8rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--ink-soft);
}
.vergelijk-sectie pre {
    font-family: 'Newsreader', serif; white-space: pre-wrap; word-break: break-word;
    margin: 0; font-size: .95rem; line-height: 1.6;
}

/* ---- stap 4: samen werken aan het lied ---- */
.samen-status { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.samen-status li {
    display: flex; align-items: center; gap: .6rem; justify-content: space-between;
    padding: .5rem 0; border-bottom: 1px solid var(--line); font-weight: 600;
}
.samen-status li:last-child { border-bottom: none; }
.samen-sectie-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.samen-sectie-kop h3 { margin: 0; }
.samen-regels { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.samen-regel {
    display: flex; align-items: center; gap: .75rem; justify-content: space-between;
    padding: .4rem .2rem; border-bottom: 1px solid var(--line-soft, var(--line));
}
.samen-regel:last-child { border-bottom: none; }
.samen-regel-tekst { font-family: 'Newsreader', serif; line-height: 1.5; }
.upvote-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem;
    background: var(--frost); color: var(--ink-soft);
    border: 1.5px solid var(--line); border-radius: var(--r-pill);
    padding: .25rem .7rem; font-size: .85rem; font-weight: 600; font-family: 'Fraunces', serif;
    box-shadow: none; transition: background .15s, border-color .15s, color .15s;
}
.upvote-btn:hover { border-color: var(--cherry); background: var(--accent-soft); box-shadow: none; filter: none; }
.upvote-btn.geliked { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.upvote-pijl { font-size: .7rem; line-height: 1; }
.stem-fout { font-size: .8rem; color: var(--cherry-deep); font-style: normal; }
.samen-redactie textarea { font-family: 'Newsreader', serif; line-height: 1.6; }

.samen-commentaar .commentaar-draad {
    display: flex; flex-direction: column; gap: var(--s-3);
    margin: var(--s-3) 0; max-height: 50vh; overflow-y: auto;
}
.commentaar-bubbel { display: flex; flex-direction: column; gap: .15rem; max-width: 80%; }
.commentaar-bubbel.eigen { align-self: flex-end; align-items: flex-end; }
.commentaar-bubbel.ander { align-self: flex-start; align-items: flex-start; }
.commentaar-meta { font-size: .76rem; font-weight: 600; color: var(--muted); padding: 0 .3rem; }
.commentaar-tekst {
    padding: .6rem .9rem; border-radius: var(--r-lg); line-height: 1.5;
    font-size: .96rem; white-space: pre-wrap; word-break: break-word;
}
.commentaar-bubbel.eigen .commentaar-tekst {
    background: linear-gradient(180deg, var(--cherry), var(--cherry-deep)); color: #fff;
    border-radius: var(--r-lg) var(--r-sm) var(--r-lg) var(--r-lg);
}
.commentaar-bubbel.ander .commentaar-tekst {
    background: var(--frost); border: 1px solid var(--line); color: var(--ink);
    border-radius: var(--r-sm) var(--r-lg) var(--r-lg) var(--r-lg);
}
.commentaar-form { display: flex; gap: var(--s-2); align-items: flex-end; }
.commentaar-form textarea { flex: 1; min-height: 44px; margin: 0; }

/* ============================================================
   Animaties
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes growBar {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ============================================================
   Responsief
   ============================================================ */
@media (max-width: 820px) {
    .hub-hero { grid-template-columns: 1fr; }
    .cake-stage { order: -1; min-height: 400px; margin-bottom: 1rem; }
    .vergelijk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    /* topbar wordt een smalle balk: hamburger links, merknaam ernaast.
       backdrop-filter eraf, anders vangt de topbar de fixed drawer. */
    .topbar {
        flex-direction: row; align-items: center; justify-content: flex-start;
        flex-wrap: nowrap; gap: .6rem; padding: .55rem .9rem;
        backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .brand { font-size: 1.1rem; }

    .hamburger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; padding: 0 11px; flex-shrink: 0;
        background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
        border-radius: var(--r-md); cursor: pointer; box-shadow: none;
    }
    .hamburger span {
        display: block; height: 2.5px; width: 100%; border-radius: 2px;
        background: var(--cherry-deep);
        transition: transform .22s ease, opacity .18s ease;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* drawer: van links inschuiven */
    .nav-pill {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
        width: min(82vw, 310px);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        flex-wrap: nowrap; gap: .25rem; overflow-y: auto;
        padding: 4.6rem 1.1rem 1.6rem;
        background: var(--frost); border: none;
        border-right: 1px solid var(--line);
        border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow);
        transform: translateX(-104%); transition: transform .26s ease;
    }
    .nav-pill.open { transform: translateX(0); }
    .nav-pill a { font-size: 1.02rem; padding: .72rem .8rem; width: 100%; border-radius: var(--r-md); }
    .who { order: -1; align-self: flex-start; margin-bottom: .5rem; }
    .nav-pill .inline { width: 100%; }
    .nav-pill .inline .link-btn { width: 100%; text-align: left; padding: .72rem .8rem; }

    .menu-backdrop {
        display: block; position: fixed; inset: 0; z-index: 55;
        background: rgba(44, 33, 29, .42);
    }
}
@media (max-width: 560px) {
    .chat-draad { max-height: 64vh; }
    .cat-tabs { flex-wrap: nowrap; overflow-x: auto; border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
    .cat-tab { white-space: nowrap; }
    .rank-count { text-align: left; }
    .rank-row { padding: 1rem; }
}

/* ---- toegankelijkheid: respecteer reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
