/* controleren.css - Nog te controleren (handmatig.js): een rij, één kaart tegelijk.
 * Alleen tokens (--accent, --tekst, --paneel, ...), zodat elk ontwerp zijn eigen
 * kleuren en letters meebrengt, licht en donker. Knoppen minstens 44px hoog. */

.ct { max-width: 640px; margin: 0 auto; }

/* kop: voortgang, een dunne balk, de groepen, de melding na een actie */
.ct-boven { margin-bottom: 14px; }
.ct-voortgang { margin: 0 0 6px; font: 600 14px/1.3 var(--font-data, inherit); color: var(--zacht);
  font-variant-numeric: tabular-nums; }
.ct-balk { height: 4px; border-radius: 999px; background: var(--rand); overflow: hidden; }
.ct-balk > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.ct-groepen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ct-groepen .knop { min-height: 44px; border-radius: 999px; font-size: 14px; padding: 4px 14px; }
.ct-groepen .knop[aria-pressed="true"] { border-color: var(--tekst); color: var(--tekst); font-weight: 600; }
.ct-melding { display: flex; align-items: center; gap: 8px; min-height: 0; margin-top: 10px; color: var(--goed); font-size: 15px; }
.ct-melding:empty { margin: 0; }
.ct-melding svg { width: 18px; height: 18px; flex: none; }
.ct-melding .knop.stil { min-height: 44px; margin-left: auto; color: var(--tekst); }

/* de kaart */
.ct-kaart { background: var(--paneel); border: 1px solid var(--rand); border-radius: var(--radius, 6px);
  padding: 16px; display: grid; gap: 14px; overflow-wrap: anywhere; }
.ct-soort { margin: 0; font: 600 12px/1 var(--font-data, inherit); text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-tekst, var(--zacht)); }
.ct-kop { margin: -6px 0 0; font-size: clamp(20px, 5.4vw, 26px); line-height: 1.2; color: var(--tekst); }
.ct-kop:focus { outline: none; }
.ct-kop:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; }

/* jouw foto's: groot, voor en achter naast elkaar */
.ct-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-foto { margin: 0; position: relative; }
.ct-foto a { display: block; border-radius: min(var(--radius, 4px), 10px); }
.ct-foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--pap);
  border-radius: min(var(--radius, 4px), 10px); border: 1px solid var(--rand); }
.ct-foto figcaption { margin-top: 4px; font-size: 13px; color: var(--zacht); }

/* de vraag en de gokken */
.ct-vraag { margin: 0; font-size: 17px; font-weight: 600; color: var(--tekst); }
.ct-vraag.groot { font-size: 20px; }
.ct-zacht { margin: 0; font-size: 14px; color: var(--zacht); }
.ct-fout { margin: 0; font-size: 14px; color: var(--zacht); }
.ct-fout:empty { display: none; }
.ct-gokken { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.ct-gokken legend { padding: 0; margin-bottom: 8px; }
.ct-gok { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; min-height: 76px;
  background: var(--pap); border: 2px solid var(--rand); border-radius: min(var(--radius, 4px), 10px); color: var(--tekst); }
label.ct-gok { cursor: pointer; }
label.ct-gok:hover { border-color: var(--rand-fel); }
.ct-gok input { position: absolute; opacity: 0; pointer-events: none; }
.ct-gok:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ct-gok:has(input:focus-visible) { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.ct-gok-hoes { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: min(var(--radius, 4px), 10px); background: var(--paneel); }
.ct-gok-hoes.leeg { display: grid; place-items: center; color: var(--zachter); }
.ct-gok-hoes.leeg svg { width: 36px; height: 36px; }
.ct-gok-tekst { display: grid; gap: 2px; min-width: 0; }
.ct-gok-artiest { font-weight: 600; }
.ct-gok-titel { color: var(--tekst); }
.ct-gok-regel { font-size: 13px; color: var(--zacht); font-variant-numeric: tabular-nums; }

/* onderaan, onder je duim: de hoofdkeuze blijft in beeld */
.ct-acties { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 0; margin: 0 -16px -16px; padding: 10px 16px 2px;
  background: var(--paneel); border-top: 1px solid var(--rand); border-radius: 0 0 var(--radius, 6px) var(--radius, 6px); }
.ct-hoofd { display: grid; gap: 8px; }
.ct-hoofd .knop, .ct-twee .knop { width: 100%; min-height: 52px; font-size: 17px; }
.ct-hoofd .knop[hidden] { display: none; }
.ct-twee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-nav { display: flex; justify-content: space-between; }
.ct-nav .knop { min-height: 44px; padding-inline: 4px; }
.ct-kaart:has(.ct-extra) .ct-acties { margin-bottom: 0; border-radius: 0; }

/* wat er verder kan: klein en stil */
.ct-extra { display: grid; gap: 4px; justify-items: start; }
.ct-uitklap { width: 100%; }
.ct-uitklap summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--zacht); font-size: 15px; }
.ct-uitklap summary:hover { color: var(--tekst); }
.ct-uitklap summary::-webkit-details-marker { display: none; }
.ct-uitklap summary::before { content: "+"; width: 1.2em; font-weight: 600; }
.ct-uitklap[open] summary::before { content: "\2212"; }
.ct-uitklap[open] { display: grid; gap: 10px; padding-bottom: 8px; }
.ct-rij { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-rij .knop, .ct-uitklap .knop { min-height: 44px; }
.ct-link { display: flex; gap: 8px; }
.ct-link .td-link { flex: 1; min-width: 0; min-height: 44px; }
.ct-link .knop { min-height: 44px; }
.ct-weg.knop { min-height: 44px; padding-inline: 0; }
.ct-weg.knop:hover { color: var(--fout); }
.ct-zoeken .zp { margin-top: 0; }

.ct-leeg .knop { margin-top: 8px; min-height: 48px; }
.ct-leeg h2:focus { outline: none; }

/* op een telefoon staat de tabbalk onderaan; de knoppen komen erboven */
@media (max-width: 899px) {
  .ct-acties { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .ct-kaart { padding: 22px; }
  .ct-acties { margin-inline: -22px; padding-inline: 22px; }
  .ct-kaart:not(:has(.ct-extra)) .ct-acties { margin-bottom: -22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ct-kaart { animation: ct-in .22s ease-out; }
  .ct-balk > span { transition: width .3s ease-out; }
}
@keyframes ct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
