/* ==========================================================================
   Wtta-aftellen (2026-10-19): deelbare campagnepagina. De countdown-band
   uit style.css (.wtta-band, .wtta-count) wordt hier als hero gebruikt en
   een maat groter gezet; verder een tijdlijn en deelknoppen. Laden na
   css/style.css?v=17. Respecteert prefers-reduced-motion.
   ========================================================================== */

/* -- Hero: de band vult de eerste schermhoogte en de teller wordt groot -- */
.aftellen-hero { padding-top: var(--space-lg); padding-bottom: var(--space-xl); }
.aftellen-band { grid-template-columns: 1fr 1fr; align-items: center; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem); min-height: min(72vh, 680px); }
.aftellen-band .wtta-band-date strong { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 400; color: rgba(245, 241, 234, 0.85); margin: 0.3em 0 0.2em; }
/* Dagen groot op een eigen regel, uur/min/sec als rij eronder */
.aftellen-band .wtta-count { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(1.2rem, 3vw, 2.4rem); row-gap: 1.2rem; margin: 0.6em 0 1.2em; }
.aftellen-band .wtta-count div:first-child { grid-column: 1 / -1; }
.aftellen-band .wtta-count strong { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.02em; }
.aftellen-band .wtta-count div:first-child strong { font-size: clamp(4.5rem, 10vw, 9rem); letter-spacing: -0.04em; color: var(--color-lime); }
.aftellen-band .wtta-count small { font-size: 0.72rem; }
.aftellen-band .wtta-band-sub { max-width: 34ch; }
.aftellen-band h1 { color: var(--color-white); font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.05; margin: 0.4em 0 0.5em; }
.aftellen-eyebrow { color: var(--color-lime); background: rgba(113, 228, 190, 0.1); border-color: rgba(113, 228, 190, 0.25); }
.aftellen-lede { color: rgba(245, 241, 234, 0.8); font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.2em; }
.aftellen-band .wtta-band-body ul { margin-bottom: 1.4em; }
.aftellen-band .wtta-band-link { display: inline-block; }

/* -- Tijdlijn: zes data op een rij, de ingangsdatum springt eruit ------- */
.aftellen-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  counter-reset: data;
}
.aftellen-timeline li {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 0.6rem);
  display: grid;
  gap: 0.45rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.aftellen-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-grey-200);
}
.aftellen-timeline li::after {
  counter-increment: data;
  content: "0" counter(data);
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-grey-300);
  font-variant-numeric: tabular-nums;
}
.aftellen-timeline time { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; color: var(--color-ink); padding-right: 2.2rem; }
.aftellen-timeline span { color: var(--color-grey-600); font-size: 0.95rem; }
/* De ingangsdatum staat op een donkergroene kaart, in beide thema's */
.aftellen-timeline li.is-key { background: #0b2f2a; border-color: #0b2f2a; color: #f5f1ea; }
.aftellen-timeline li.is-key::before { background: #71e4be; }
.aftellen-timeline li.is-key::after { color: rgba(245, 241, 234, 0.4); }
.aftellen-timeline li.is-key time { color: #ffffff; }
.aftellen-timeline li.is-key span { color: rgba(245, 241, 234, 0.82); }

/* Donkere modus (html[data-theme="dark"] uit style.css): witte kaarten
   krijgen het donkere oppervlak, de rest schakelt via de tokens mee */
html[data-theme="dark"] .aftellen-timeline li:not(.is-key) { background: var(--dark-surface, #12332d); border-color: var(--color-grey-200); }
html[data-theme="dark"] .aftellen-timeline li.is-key { background: #071f1c; border-color: #2f6b58; }
html[data-theme="dark"] .aftellen-share { border-top-color: var(--color-grey-200); }
.aftellen-note { margin-top: var(--space-md); font-size: 0.9rem; color: var(--color-grey-600); max-width: 80ch; }

/* -- Delen: onder de CTA --------------------------------------------- */
.aftellen-share { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-grey-200); display: grid; gap: 0.8rem; justify-items: center; }
.aftellen-share-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-grey-600); }
.aftellen-share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.aftellen-share-btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.75em 1.25em; font-size: 0.92rem; }
.aftellen-share-btn svg { flex: none; }
.aftellen-share-btn.is-done { border-color: var(--color-lime-dark); color: var(--color-lime-dark); background: var(--color-lime-tint-soft); }
.aftellen-share-fallback { display: grid; gap: 0.4rem; width: 100%; max-width: 520px; font-size: 0.85rem; color: var(--color-grey-600); }
.aftellen-share-fallback[hidden] { display: none; }
.aftellen-share-fallback input { width: 100%; font: inherit; font-size: 0.92rem; padding: 0.6em 0.8em; border: 1px solid var(--color-grey-300); border-radius: 8px; background: var(--color-cream); color: var(--color-ink); }
.aftellen-share-status { margin: 0; min-height: 1.4em; font-size: 0.85rem; color: var(--color-lime-dark); }

@media (max-width: 960px) {
  .aftellen-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .aftellen-band { grid-template-columns: 1fr; min-height: 0; padding: var(--space-lg) var(--space-md); }
  .aftellen-band .wtta-count { column-gap: 1.4rem; row-gap: 0.9rem; }
  .aftellen-band .wtta-count div:first-child strong { font-size: clamp(4rem, 22vw, 6rem); }
  .aftellen-band .wtta-count strong { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .aftellen-band h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}
@media (max-width: 600px) {
  .aftellen-timeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aftellen-share-btn { transition: none; }
}
