/* =========================================
   CONFIGURATOR-TEASER — voorbeeldontwerpen op homepage en modellen
   Kaarten linken naar configurator.html?preset=<id>&src=<pagina>
   (src = bron voor GA4, zie js/configurator.js)
   ========================================= */

.config-teaser {
  background: var(--bg);
  padding: var(--sec) var(--pad);
}
.ct-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.ct-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px 48px;
  margin-bottom: 44px;
}
.ct-head .label {
  margin-bottom: 12px;
}
.ct-head p {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ct-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(22, 32, 43, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ct-img {
  display: block;
  overflow: hidden;
  background: var(--bg-3);
}
.ct-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 357;
  transition: transform 0.6s ease;
}
.ct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(22, 32, 43, 0.12);
}
.ct-card:hover .ct-img img {
  transform: scale(1.04);
}
.ct-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.ct-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}
.ct-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
}
.ct-colors {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .ct-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* telefoon: één veegbare rij tot aan de schermrand */
@media (max-width: 560px) {
  .ct-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: calc(-1 * var(--pad));
    padding: 4px var(--pad) 12px;
    scroll-padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch;
  }
  .ct-grid > li {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-card,
  .ct-img img {
    transition: none;
  }
}
