/* Cadeaukring feestplanner: aanvulling op styles.css (zelfde tokens en componenten). */

.features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.feature > p { margin: 0; }
.feature__head { display: flex; align-items: center; gap: .5rem; }
.feature__head svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.feature__head h2, .feature__head h3 { margin: 0; font-size: var(--t-lg); }
.feature__img { width: 100%; height: auto; border-radius: var(--r-control); background: var(--cream); }
.feature .actions { margin-top: auto; }

.feest-keuze { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feest-keuze { grid-template-columns: 1fr 1fr; } }
.feest-keuze__item svg { width: 44px; height: 44px; color: var(--accent); }
.feest-keuze__item h2 { margin: .25rem 0; }

.key-panel { border: 2px dashed var(--accent); }
.key-panel h2 { margin-top: 0; }

.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.facts dt { font-weight: 700; color: var(--ink-soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .4rem; } }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }

.log { list-style: none; padding: 0; margin: 0; font-size: var(--t-sm); }
.log li { padding: .45rem 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log time { color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-right: .35rem; }

.prep-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .prep-grid { grid-template-columns: 1fr 1fr; } }
.prep-block h2 { display: flex; align-items: center; gap: .4rem; font-size: var(--t-lg); margin: 0; }
.prep-block h2 svg { width: 22px; height: 22px; color: var(--accent); }
.prep-block .rows { box-shadow: none; border: 1px solid var(--line); margin: .5rem 0; }

.assist-banner { display: flex; gap: .6rem; align-items: center; margin: 0; padding: .7rem 1rem; background: var(--done-tint); color: var(--done); font-weight: 700; font-size: var(--t-sm); }
.assist-banner svg { width: 20px; height: 20px; flex: none; }

/* Schrijfwerkplek */
.schrijf__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .schrijf__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.schrijf__main > * + * { margin-top: 1rem; }
.schrijf__side > * + * { margin-top: 1rem; }
.tekst-wrap { display: grid; grid-template-columns: 1fr 2.5rem; gap: .25rem; }
.tekst-area { font-size: var(--t-md); line-height: 1.6; min-height: 16rem; resize: vertical; width: 100%; }
.regels { list-style: none; margin: 0; padding: .7rem 0 0; font-size: var(--t-xs); line-height: calc(var(--t-md) * 1.6); color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; overflow: hidden; }
.regels li { min-height: calc(var(--t-md) * 1.6); }
.save-status { margin: .25rem 0 0; font-size: var(--t-sm); color: var(--ok); font-weight: 700; }
.save-status--dirty { color: var(--hold); }
.tekst-print { white-space: pre-wrap; font-family: var(--font); font-size: var(--t-md); line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.rijm li { list-style: none; }
.ai-voorstel { border-left: 4px solid var(--info); }

/* Bouwplannen */
.plan-img { margin: 0 0 1rem; }
.plan-img img { max-width: 100%; height: auto; border-radius: var(--r-control); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist > li { padding: .6rem 0; border-top: 1px solid var(--line); }
.checklist > li:first-child { border-top: 0; }
.checklist p { margin: .25rem 0 0 2rem; }
.steps-list { counter-reset: stap; }
.steps-list > li { counter-increment: stap; }
.steps-list > li .check strong::before { content: counter(stap) ". "; }
.mal { margin: 1rem 0; overflow-x: auto; }
.mal figcaption { font-size: var(--t-sm); margin-bottom: .5rem; }
.mal__svg { max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }

/* Samen vieren */
.verhaal { line-height: 1.7; }
.verhaal--groot { font-size: var(--t-lg); }
.verhaal mark { background: var(--honey); color: var(--ink); font-weight: 700; padding: 0 .15em; border-radius: 4px; }
.spel { max-width: 40rem; }
.spel__melding { min-height: 1.5em; font-weight: 700; font-size: var(--t-lg); color: var(--accent-strong); }
.spel__timer { font-size: var(--t-3xl); font-weight: 800; font-variant-numeric: tabular-nums; margin: .25rem 0; }
.spel__worp { display: flex; flex-direction: column; gap: .25rem; font-size: var(--t-lg); }
.spel__dobbel { font-size: var(--t-2xl); font-weight: 800; }
.spel__beurt { font-size: var(--t-lg); }
.spel__knop { min-height: 56px; font-size: var(--t-md); }
.quiz-opties li { padding: .4rem .6rem; border-radius: var(--r-control); }
.quiz-opties li.goed { background: var(--ok-tint); color: var(--ok); font-weight: 700; }
.teams { list-style: none; padding: 0; display: grid; gap: .5rem; }
.teams li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.teams li span { min-width: 8rem; font-weight: 700; }
.stand { font-size: var(--t-lg); }
.scoresheet { width: 100%; border-collapse: collapse; }
.scoresheet th, .scoresheet td { border: 1px solid #000; padding: .5rem; height: 1.8rem; text-align: left; }

/* Printen: alleen wat nodig is om te gebruiken. */
.print-only { display: none; }
@media print {
  @page { margin: 10mm; }
  body { background: #fff; color: #000; }
  .site-header, .main-nav, .site-footer, .toast-region, .offline-banner, .skip-link, #vaste-meldingen, .no-print, .back-link, dialog { display: none !important; }
  .print-only { display: block; }
  .page-break { break-before: page; }
  .surface, .rows { box-shadow: none; border: 0; padding: 0; }
  .main { padding: 0; max-width: none; }
  .mal { break-inside: avoid; break-before: page; overflow: visible; }
  .mal__svg { max-width: none; border: 0; }
  .schrijf__main > :not(.tekst-print) { display: none; }
  .schrijf .page-head, .schrijf .schrijf__side { display: none; }
  a { color: #000; text-decoration: none; }
}

/* Startpagina op 320 px (bestond al vóór deze uitbreiding): de verborgen labels in de tabel "Wie ziet wat?"
   zijn absoluut gepositioneerd en ontsnapten aan de scrollcontainer, waardoor de hele pagina 26 px opzij scrolde. */
.table-scroll { position: relative; }
.perspectives .wish__body { min-width: 0; }
.perspectives .wish__state { flex-wrap: wrap; overflow-wrap: anywhere; }

/* ------------------------------ Feestgids (feestkaart) ------------------------------ */
.gids h2 { margin-top: 0; }
.gids__volgende { margin: 1rem 0 .5rem; padding: 1rem; border-radius: var(--r-control); background: var(--accent-tint); border-left: 4px solid var(--accent); }
.gids__volgende h3 { margin: .1rem 0 .35rem; font-size: var(--t-lg); }
.gids__volgende > p { margin: 0 0 .75rem; }
.gids__label { margin: 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); }
.gids__alles summary { font-weight: 700; }
.gids__stappen { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: gids; }
.gids__stap { counter-increment: gids; display: grid; grid-template-columns: 32px 1fr; gap: .2rem .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.gids__stap:first-child { border-top: 0; }
.gids__stap::before { content: counter(gids); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--t-sm); border: 2px solid var(--line); color: var(--ink-soft); }
.gids__stap--klaar::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.gids__stap--overgeslagen::before, .gids__stap--nvt::before { content: "–"; }
.gids__stap--info::before { content: "i"; border-color: var(--info); color: var(--info); }
.gids__stap[aria-current="step"]::before { border-color: var(--accent); color: var(--accent); }
.gids__stap--klaar .gids__stap-titel, .gids__stap--nvt .gids__stap-titel, .gids__stap--overgeslagen .gids__stap-titel { color: var(--ink-soft); }
.gids__stap-tekst { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.gids__stap-titel { font-weight: 700; overflow-wrap: anywhere; }
.gids__stap-zij { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* ------------------------------ Themapakket ------------------------------ */
.pakket-hero { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .pakket-hero { grid-template-columns: 72px 1fr; } }
.pakket-hero__icoon { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-tint); display: grid; place-items: center; color: var(--accent); }
.pakket-hero__icoon svg { width: 38px; height: 38px; }
.pakket-hero h1 { margin: .1rem 0 .4rem; }
.pakket-hero__tekst > p { margin: 0 0 .6rem; }
.pakket__soort { margin: 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); }
.pakket__prijs { font-size: var(--t-lg); }
.pakket__eerlijk { align-items: flex-start; }
.pakket__eerlijk h2 { font-size: var(--t-md); margin: 0 0 .3rem; }
.pakket__eerlijk p { margin: 0 0 .4rem; }
.voorbeeld { border-top: 1px dashed var(--line); padding-top: .6rem; display: flex; flex-direction: column; gap: .4rem; }
.voorbeeld p { margin: 0; }
.voorbeeld .plan-img img { width: 100%; height: auto; border-radius: var(--r-control); }
.voorbeeld .plan-img { margin: 0; }
.voorbeeld__lijst { margin: 0; padding-left: 1.2rem; }
.vergelijk { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.vergelijk th, .vergelijk td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.vergelijk thead th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.vergelijk tbody th { width: 26%; }
@media (max-width: 520px) {
  .vergelijk thead { display: none; }
  .vergelijk tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .vergelijk th, .vergelijk td { display: block; border: 0; padding: .15rem 0; width: auto; }
  .vergelijk td:nth-of-type(1)::before { content: "Gratis: "; font-weight: 700; }
  .vergelijk td:nth-of-type(2)::before { content: "Pakket: "; font-weight: 700; color: var(--accent-strong); }
}
.veiligheid h2 { display: flex; align-items: center; gap: .4rem; font-size: var(--t-lg); margin-top: 0; }
.veiligheid h2 svg { width: 22px; height: 22px; color: var(--hold); }
.veiligheid ul { margin: 0; padding-left: 1.2rem; }

/* ------------------------------ Cadeaulabels ------------------------------ */
.labels-uitvoer { display: grid; gap: 1.25rem; }
.labelvel { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.labels-scherm--1 { max-width: 300px; }
.cadeaulabel { container-type: inline-size; position: relative; aspect-ratio: 90 / 54; background: #fff; color: #2b2026; border: 1.5px solid var(--label-rand, #C8463F);
  border-radius: 10px; padding: 7% 8% 6% 16%; display: flex; flex-direction: column; justify-content: center; gap: 2cqi; overflow: hidden; box-shadow: var(--shadow-raise); }
.cadeaulabel p { margin: 0; line-height: 1.15; min-width: 0; }
.cadeaulabel__gat { position: absolute; left: 5%; top: 50%; width: 5cqi; height: 5cqi; transform: translateY(-50%); border-radius: 50%; border: 1.5px solid var(--label-rand, #C8463F); background: var(--cream); }
.cadeaulabel__deco { position: absolute; right: 3%; top: 4%; width: 26%; height: auto; }
.cadeaulabel__kop { display: block; font-size: 4.2cqi; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--label-rand, #C8463F); }
.cadeaulabel__aan { padding-right: 24%; }
.cadeaulabel__naam { display: block; font-size: 9cqi; font-weight: 700; overflow-wrap: anywhere; }
.cadeaulabel__van span:last-child { font-size: 5.5cqi; }
.cadeaulabel__regel { font-size: 4.4cqi; font-style: italic; }
.cadeaulabel__lijn { display: block; min-height: 1.1em; border-bottom: 1px solid #8F727C; }
.cadeaulabel__van .cadeaulabel__lijn { min-height: .9em; }

/* ------------------------------ Draaiboeksjabloon ------------------------------ */
.field--inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.field--inline label { margin: 0; }
.input--kort { width: 6.5rem; max-width: 100%; }
.sjabloon { box-shadow: none; border: 1px solid var(--line); }
.sjabloon__rij { align-items: flex-start; flex-wrap: wrap; }
.sjabloon__rij--uit .row__main { opacity: .6; }
.sjabloon__rij .row__side { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.sjabloon__rij .row__main p { margin: .2rem 0; }
.rooster { width: 100%; border-collapse: collapse; }
.rooster th, .rooster td { text-align: left; vertical-align: top; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
.rooster td:first-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.rooster td:last-child { white-space: nowrap; }
.rooster__detail { display: block; font-size: var(--t-sm); color: var(--ink-soft); overflow-wrap: anywhere; }

/* Nummerkaartjes bij een spel (alleen op papier). */
.nummerkaartjes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 45mm); grid-auto-rows: 30mm; }
.nummerkaartjes li { border: 1px dashed #777; display: grid; place-items: center; font-size: 28pt; font-weight: 700; }

@media print {
  .gids { display: none !important; }
  .labels-uitvoer { display: block; }
  .labelvel { display: grid; grid-template-columns: repeat(2, 90mm); grid-template-rows: repeat(5, 54mm); gap: 0; width: 180mm; height: 270mm; margin: 0 auto; overflow: hidden; }
  .labelvel + .labelvel { break-before: page; }
  .labels, .labels-uitvoer { margin: 0; padding: 0; }
  .cadeaulabel { width: 90mm; height: 54mm; aspect-ratio: auto; border: 0; outline: .3mm dashed #999; outline-offset: -.15mm; border-radius: 0; box-shadow: none; padding: 5mm 6mm 4mm 14mm; gap: 1.2mm; break-inside: avoid; }
  .cadeaulabel__gat { width: 4mm; height: 4mm; left: 4.5mm; background: #fff; }
  .cadeaulabel__kop { font-size: 7pt; }
  .cadeaulabel__naam { font-size: 17pt; }
  .cadeaulabel__van span:last-child { font-size: 10pt; }
  .cadeaulabel__regel { font-size: 8pt; }
  .labels > :not(.labels-uitvoer) { display: none !important; }
  .draaiboek-print { break-inside: auto; }
  .rooster tr { break-inside: avoid; }
  .rooster th, .rooster td { border-bottom: .3mm solid #999; }
  .veiligheid { border: .3mm solid #999; padding: 3mm; }
}
.gids__stap-titel { font-size: var(--t-md); }
.gids__stap-titel .small { font-size: var(--t-sm); font-weight: 400; }
.gids__stap-tekst > .small { font-size: var(--t-sm); }
.feature .actions .muted svg, .voorbeeld svg:not(.cadeaulabel__deco) { width: 18px; height: 18px; vertical-align: -3px; }
.pakket__eerlijk p { font-weight: 400; }
@media print {
  /* De ruimte voor de mobiele navigatie hoort niet op papier (gaf een lege extra pagina). */
  body { padding-bottom: 0 !important; min-height: 0 !important; }
  .main { margin-bottom: 0 !important; padding-bottom: 0 !important; }
}
.input--tijd { width: 9.5rem; max-width: 100%; }
/* Lange samengestelde woorden in paginatitels (bijv. "Reuzendobbelsteen-surprise") breken af op 320 px. */
.page-head__text { min-width: 0; }
.page-head__text h1, .pakket-hero h1 { overflow-wrap: anywhere; hyphens: auto; }
