/* =========================================================
   Kids Republic — Multi-page project
   COMPONENTS.CSS — herbruikbare content-componenten
   Deze componenten komen terug op meerdere advies-/contentpagina's.
   Nieuwe pagina's hergebruiken deze classes in plaats van eigen CSS
   te schrijven.
   ========================================================= */

/* ---------------------------------------------------------
   Placeholder-systeem (vervangt ALLE originele afbeeldingen)
   --------------------------------------------------------- */

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #eeeeee;
  border: 1px dashed #cccccc;
  border-radius: var(--radius-sm);
  color: #999999;
  font-family: var(--font-base);
  font-size: 13px;
  text-align: center;
  overflow: hidden;
}

.image-placeholder span {
  padding: 8px;
}

/* Veelvoorkomende beeldverhoudingen — gebruik de dichtstbijzijnde,
   of zet een eigen aspect-ratio inline op het element wanneer geen
   van deze presets exact overeenkomt met het origineel. */
.placeholder-16-9 { aspect-ratio: 16 / 9; }
.placeholder-4-3   { aspect-ratio: 4 / 3; }
.placeholder-1-1   { aspect-ratio: 1 / 1; }
.placeholder-wide  { aspect-ratio: 21 / 9; }
.placeholder-portrait { aspect-ratio: 3 / 4; }

/* ---------------------------------------------------------
   Buttons (brandbook-patroon: primary navy / ghost)
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--shape-navy);
  color: #ffffff;
}

.btn--ghost {
  background: #ffffff;
  color: var(--shape-navy);
  border-color: var(--shape-navy);
}

/* ---------------------------------------------------------
   Pagina-titel + intro (herbruikbaar op elke contentpagina)
   --------------------------------------------------------- */

.page-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
}

.intro p {
  margin: 0 0 12px;
}

/* ---------------------------------------------------------
   Component: hero-compare (Goed / Fout vergelijking)
   --------------------------------------------------------- */

.hero-compare {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-compare__item {
  flex: 1;
  min-width: 0;
}

.hero-compare__label {
  display: block;
  font-size: var(--fs-label);
  color: var(--color-accent);
  margin-bottom: 8px;
}

.hero-compare__img {
  width: 100%;
}

/* ---------------------------------------------------------
   Component: spec-section (genummerde/gelabelde uitlegblokken)
   --------------------------------------------------------- */

.spec-section {
  margin-top: 48px;
}

.spec-section__heading {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
}

.spec-section__subheading {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--color-text);
}

.spec-section__subheading--sm {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--color-text);
}

.spec-section__img {
  width: 100%;
  margin-bottom: 14px;
}

.spec-section__caption {
  font-size: 13px;
  color: var(--color-muted);
  margin: -8px 0 16px;
}

.spec-section p {
  margin: 0 0 12px;
}

.spec-section ul,
.spec-section ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.spec-section li {
  margin-bottom: 6px;
}

/* ---------------------------------------------------------
   Component: spec-table (eenvoudige gegevenstabel op
   advies-/contentpagina's, bv. leeftijd/maat-overzichten)
   --------------------------------------------------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  background: #f7f7f7;
  font-weight: 700;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
}

.table-scroll .spec-table {
  margin: 0;
  min-width: 480px;
}

/* ---------------------------------------------------------
   Component: spec-table--compare (feature-vergelijking met
   check/cross-iconen, bv. rond vs. rechthoekig trampoline)
   --------------------------------------------------------- */

.spec-table--compare th:not(:first-child),
.spec-table--compare td:not(:first-child) {
  text-align: center;
  width: 30%;
}

.spec-table__icon {
  text-align: center;
  vertical-align: middle;
}

.icon-check,
.icon-cross {
  display: inline-block;
  flex-shrink: 0;
}

.icon-check { color: #2f9e44; }
.icon-cross { color: #e03131; }

/* ---------------------------------------------------------
   Component: payment-icon (footer betaalmethoden)
   --------------------------------------------------------- */

.payment-icon {
  width: 75px;
  height: 52px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

/* ---------------------------------------------------------
   Component: coming-soon (placeholder-melding voor pagina's
   zonder aangeleverde content/screenshot — herbruikbaar,
   zie bijv. index.html en pages/loopfietsen.html)
   --------------------------------------------------------- */

.coming-soon {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: #fafafa;
}

.coming-soon p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .hero-compare {
    flex-direction: column;
  }

  .spec-section {
    margin-top: 36px;
  }

  .page-title {
    font-size: 22px;
    line-height: 30px;
  }
}
