/* HR-takenkiezer (algemeen, bibliotheek `hr-takenkiezer`; Jenny-agent 20-11-2026, eerst Fhoz 376).
   Kleuren uit de huisstijl: --tk-hoofd (PrimaryColor: knoppen, vinkjes) en --tk-donker (TertiaryColor: tekst).
   Maten in px i.p.v. rem: beauty1 zet html op mobiel op 12px (CHECKLIST G5). Werkt in lichte én donkere templates:
   het blok heeft eigen lichte kaarten met eigen tekstkleuren; selectors zijn sterk genoeg tegen .biz-page-body (E4). */
.tk { --tk-rand: color-mix(in srgb, var(--tk-donker) 14%, transparent); --tk-tint: color-mix(in srgb, var(--tk-hoofd) 10%, #fff);
      margin: 8px 0 32px; color: var(--tk-donker); font-size: 16px; line-height: 1.5; }
.tk .tk-kop { max-width: 760px; margin-bottom: 24px; }
.tk .tk-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-primary-ink, var(--tk-hoofd)); margin-bottom: 6px; }
.tk .tk-titel { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 10px; color: inherit; }
.tk .tk-intro { font-size: 17px; margin: 0; opacity: .85; }

.tk .tk-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.tk .tk-groep { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.tk .tk-legend { font-size: 18px; line-height: 27px; font-weight: 700; margin: 0 0 12px; float: none; width: auto; padding: 0; color: inherit; }
/* Op breed begint de samenvatting op dezelfde hoogte als de eerste rij tegels (kaart naast kaart), niet naast de
   tussenkop: 27px regelhoogte + 12px marge van .tk-legend (Jenny 20-11-2026). */
@media (min-width: 992px) { .tk .tk-bon { margin-top: 39px; } }

/* Taken als tegels: het echte vinkje staat onzichtbaar over de tegel, zodat toetsenbord en schermlezer gewoon werken. */
.tk .tk-taken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tk .tk-taak, .tk .tk-optie { position: relative; display: block; margin: 0; cursor: pointer; }
.tk .tk-taak input, .tk .tk-optie input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk .tk-taak-in { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; height: 100%; padding: 14px 16px;
      background: #fff; border: 1px solid var(--tk-rand); border-radius: 14px; color: var(--tk-donker);
      transition: border-color .35s, background-color .35s, box-shadow .35s; }
.tk .tk-icoon { font-size: 20px; color: var(--brand-primary-ink, var(--tk-hoofd)); margin-top: 2px; flex: none; }
.tk .tk-taak-tekst { flex: 1; min-width: 0; }
.tk .tk-taak-tekst b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.tk .tk-taak-tekst small, .tk .tk-optie small { display: block; font-size: 14px; opacity: .75; margin-top: 2px; }
.tk .tk-vink { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--tk-rand); color: transparent;
      display: inline-flex; align-items: center; justify-content: center; font-size: 14px; transition: all .35s; }
.tk .tk-taak:hover .tk-taak-in { border-color: var(--tk-hoofd); }
.tk .tk-taak input:checked + .tk-taak-in { border-color: var(--tk-hoofd); background: var(--tk-tint); box-shadow: 0 4px 16px color-mix(in srgb, var(--tk-hoofd) 18%, transparent); }
.tk .tk-taak input:checked + .tk-taak-in .tk-vink { background: var(--tk-hoofd); border-color: var(--tk-hoofd); color: var(--brand-btn-on-primary, #fff); }
.tk .tk-taak input:focus-visible + .tk-taak-in, .tk .tk-optie input:focus-visible + span { outline: 3px solid var(--tk-hoofd); outline-offset: 2px; }

.tk .tk-inzet { display: flex; flex-wrap: wrap; gap: 10px; }
.tk .tk-optie span { display: block; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--tk-rand);
      color: var(--tk-donker); transition: all .35s; }
.tk .tk-optie span b { font-weight: 600; font-size: 15px; }
.tk .tk-optie small { display: inline; margin: 0 0 0 6px; }
.tk .tk-optie:hover span { border-color: var(--tk-hoofd); }
.tk .tk-optie input:checked + span { background: var(--tk-hoofd); border-color: var(--tk-hoofd); color: var(--brand-btn-on-primary, #fff); }

/* Samenvatting ("bon"): op breed blijft hij in beeld tijdens het kiezen. */
.tk .tk-bon { position: sticky; top: 110px; background: #fff; color: var(--tk-donker); border-radius: 18px; padding: 22px;
      border-top: 5px solid var(--tk-hoofd); box-shadow: 0 10px 34px rgba(0, 0, 0, .12); }
.tk .tk-bon-kop { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-primary-ink, var(--tk-hoofd)); }
.tk .tk-bon-aantal { font-size: 20px; font-weight: 700; margin: 6px 0 10px; color: var(--tk-donker); }
.tk .tk-bon-lijst { list-style: none; padding: 0; margin: 0 0 10px; font-size: 15px; }
.tk .tk-bon-lijst li { position: relative; padding: 4px 0 4px 22px; display: block; color: var(--tk-donker); }
.tk .tk-bon-lijst li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--tk-hoofd); }
.tk .tk-bon-inzet { font-size: 15px; margin: 0 0 12px; padding-top: 10px; border-top: 1px solid var(--tk-rand); color: var(--tk-donker); }
.tk a.tk-knop { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 10px;
      padding: 10px 18px; border-radius: 999px; background: var(--tk-hoofd); color: var(--brand-btn-on-primary, #fff); font-weight: 600; font-size: 16px;
      text-decoration: none; border: 2px solid var(--tk-hoofd); transition: filter .35s, background-color .35s; }
.tk a.tk-knop:hover { filter: brightness(.92); color: #fff; }
.tk a.tk-knop.is-licht { background: transparent; color: var(--tk-donker); border-color: var(--tk-rand); }
.tk a.tk-knop.is-licht:hover { border-color: var(--tk-hoofd); filter: none; color: var(--tk-donker); }
.tk a.tk-knop:focus-visible { outline: 3px solid var(--tk-donker); outline-offset: 2px; }
.tk .tk-noot { font-size: 14px; opacity: .75; margin: 12px 0 0; }

/* Donkere templates (business1-dark): de template kleurt koppen, tekst en links in .page-layout licht. De kaarten
   houden hun eigen kleuren; kop en legenda boven de kaarten worden licht. :not(#tk-x) wint van de linkregel (0,8,1). */
[data-bs-theme="dark"] .tk { color: #f2f2f5; }
[data-bs-theme="dark"] .tk .tk-kop .tk-titel, [data-bs-theme="dark"] .tk .tk-legend { color: #fff; }
[data-bs-theme="dark"] .tk .tk-kop .tk-intro { color: rgba(255, 255, 255, .82); }
[data-bs-theme="dark"] .tk .tk-taak-in :is(b, small), [data-bs-theme="dark"] .tk .tk-bon :is(p, li, span:not(.tk-bon-kop)) { color: var(--tk-donker); }
[data-bs-theme="dark"] .tk .tk-optie input:not(:checked) + span :is(b, small) { color: var(--tk-donker); }
[data-bs-theme="dark"] .tk .tk-optie input:checked + span :is(b, small) { color: #fff; }
[data-bs-theme="dark"] .tk a.tk-knop:not(.is-licht):not(#tk-x) { color: #fff; }
[data-bs-theme="dark"] .tk a.tk-knop.is-licht:not(#tk-x) { color: var(--tk-donker); }

/* Optioneel: foto bovenin de samenvatting (bon.foto; 27-11-2026, eerst GSC 272). Alleen met .heeft-foto, de rest blijft gelijk.
   Op breed: samenvatting breder en even hoog als de keuzes (boven gelijk met de eerste tegel, onder met de laatste optie);
   de foto vult de vrije hoogte. Pas vanaf 1200 px: smaller is de linkerkolom zo lang dat de foto te hoog zou worden. */
.tk .tk-bon-foto { display: block; width: calc(100% + 44px); max-width: none; margin: -22px -22px 18px; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1200px) {
    .tk.heeft-foto .tk-raster { grid-template-columns: minmax(0, 1fr) 400px; align-items: stretch; }
    .tk.heeft-foto .tk-keuzes > .tk-groep:last-child { margin-bottom: 0; }
    .tk.heeft-foto .tk-bon { position: static; display: flex; flex-direction: column; overflow: hidden; padding: 22px 26px 24px; }
    .tk.heeft-foto .tk-bon-foto { flex: 1 1 0; height: 0; min-height: 180px; aspect-ratio: auto; width: calc(100% + 52px); margin: -22px -26px 20px; }
}
@media (max-width: 991px) { .tk.heeft-foto .tk-bon { overflow: hidden; } }

/* "Opnieuw" (E16, 29-11-2026): bescheiden link rechts naast de eerste kop, pas zichtbaar na een keuze. */
.tk .tk-groep:first-child { position: relative; }
.tk .tk-groep:first-child .tk-legend { padding-right: 120px; float: left; width: 100%; }
/* Een legend staat in de rand van de fieldset; met float + volle breedte telt hij als gewone regel, zodat top:0 van de
   knop naast de kop valt en niet over de eerste tegel. */
.tk .tk-groep:first-child .tk-taken { clear: both; }
.tk .tk-opnieuw { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 0;
      background: none; border: 0; font-size: 15px; font-weight: 600; color: var(--brand-primary-ink, var(--tk-hoofd)); cursor: pointer; }
.tk .tk-opnieuw[hidden] { display: none; }
.tk .tk-opnieuw:hover { text-decoration: underline; }
.tk .tk-opnieuw:focus-visible { outline: 3px solid var(--tk-hoofd); outline-offset: 2px; border-radius: 4px; }
[data-bs-theme="dark"] .tk .tk-opnieuw { color: #fff; }

/* Optioneel: tegels met een eigen foto (taken[].foto, 29-11-2026, eerst HdV 153): foto boven, naam eronder, vinkje rechtsboven. */
.tk .tk-taken.met-fotos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk .met-fotos .tk-taak-in { flex-direction: column; gap: 10px; padding: 10px 10px 14px; position: relative; }
.tk .tk-taak-foto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #fff; margin: 0; }
.tk .met-fotos .tk-taak-tekst { padding: 0 4px; }
.tk .met-fotos .tk-vink { position: absolute; top: 18px; right: 18px; background: #fff; }
@media (max-width: 1199px) { .tk .tk-taken.met-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .tk .tk-taken.met-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tk .met-fotos .tk-taak-tekst b { font-size: 15px; } }

@media (max-width: 991px) {
    .tk .tk-raster { grid-template-columns: 1fr; }
    .tk .tk-bon { position: static; }
}
@media (max-width: 575px) {
    .tk .tk-taken { grid-template-columns: 1fr; }
    .tk .tk-titel { font-size: 28px; }
    .tk .tk-optie { flex: 1 1 calc(50% - 10px); }
    .tk .tk-optie span { height: 100%; text-align: center; border-radius: 14px; }
    .tk .tk-optie small { display: block; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tk *, .tk *::before { transition: none !important; }
}

/* Donkere template (business1-dark, 30-11-2026): dit blok heeft geen eigen ondergrond en staat op de donkere pagina; de
   leeskleur van de huisstijl (--brand-primary-ink) is daar te donker. Hier de on-dark-variant. Lichte template: ongemoeid.
   Lichte kaarten binnen het blok dragen .wf-eigen-leeskleur (zie custom-business1.css). */
[data-bs-theme="dark"] .tk .tk-eyebrow:not(#tk-x) { color: var(--brand-primary-ondark, #cbd5e1); }
