/* =========================================================
   images-styles.css
   Stilrahmen für Hero- und Content-Bilder.
   Dunkles Editorial-Layout, abgestimmt auf die PYLONPILOT-Palette.
   ========================================================= */

/* Hero-Figure: full-width Bildband, eingebettet unterhalb der H1 */
.hero-figure {
  margin: 1.25rem auto 1.5rem;
  max-width: 720px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-muted, #2a2a30);
  background: var(--bg-card, #16161a);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Content-Figure: Standard-Bildblock innerhalb der Sektionen */
.content-figure {
  margin: 2rem 0 2.25rem;
  padding: 0;
  background: var(--bg-card, #16161a);
  border: 1px solid var(--border-muted, #2a2a30);
  border-radius: 8px;
  overflow: hidden;
}

.content-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
}

.content-figure figcaption {
  font-family: var(--font-body, Georgia, serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary, #a8a4a0);
  padding: 0.9rem 1.25rem 1.1rem;
  border-top: 1px solid var(--border-muted, #2a2a30);
  text-align: left;
}

/* Akzent-Streifen links an Content-Figcaption für editorialen Charakter */
.content-figure figcaption::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent, #f5a56f);
  vertical-align: middle;
  margin-right: 0.6rem;
  transform: translateY(-2px);
}

/* Responsive: schmaleres Padding und kleinere Caption auf Mobile */
@media (max-width: 720px) {
  .hero-figure {
    margin: 1rem auto 1.25rem;
    border-radius: 6px;
  }
  .content-figure {
    margin: 1.5rem 0 1.75rem;
    border-radius: 6px;
  }
  .content-figure figcaption {
    font-size: 0.86rem;
    padding: 0.75rem 1rem 0.95rem;
  }
}

/* Schmale Mobile-Geräte (≤ 375px) — kein horizontaler Scroll */
@media (max-width: 420px) {
  .hero-figure,
  .content-figure {
    margin-left: 0;
    margin-right: 0;
  }
  .content-figure figcaption {
    font-size: 0.84rem;
    padding: 0.7rem 0.85rem 0.9rem;
  }
  .content-figure figcaption::before {
    width: 12px;
    margin-right: 0.45rem;
  }
}
