/* ============================================================
   images-styles.css
   Stilregeln für Bilder im Pillar-Artikel TrappQuote
   ============================================================ */

/* Hero image — innerhalb der Hero-Sektion, kein figcaption */
[data-content="hero"] .hero-inner img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 1.2rem auto 1.6rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

/* Article figures — innerhalb der data-content Sektionen */
.article-figure {
  margin: 2rem auto;
  max-width: var(--content-width);
  text-align: left;
  background: transparent;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin: 0 auto;
}

.article-figure figcaption {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.7rem;
  padding: 0 0.25rem;
  text-align: left;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

/* Section-spezifische Bildgrößen — wide-Bereich Section breiter darstellen */
[data-content="anbieter-vergleich"] .article-figure,
[data-content="welfare-statistik"] .article-figure {
  max-width: var(--wide-width);
}

/* Mobile-Adaption */
@media (max-width: 720px) {
  [data-content="hero"] .hero-inner img {
    margin: 1rem auto 1.2rem;
    max-width: 100%;
  }

  .article-figure {
    margin: 1.5rem auto;
  }

  .article-figure figcaption {
    font-size: 0.85rem;
    padding-left: 0.7rem;
  }
}

@media (max-width: 480px) {
  .article-figure figcaption {
    font-size: 0.82rem;
  }
}
