// ─────────────────────────────────────────────────────────────────────────────
// Infografik Content Block
// ─────────────────────────────────────────────────────────────────────────────

.infografik-wrap {
  width: 100%;
  padding: 2rem 0;
}

// ── Schmucklinie ─────────────────────────────────────────────────────────────
// Reusable decorative rule — dotted, full width, matches design mockup.

.infografik-rule {
  width: 100%;
  height: 0;
  border: none;
  border-top: 2px dotted currentColor;
  opacity: 0.3;
  margin: 1.5rem 0;
}

// ── Headline ─────────────────────────────────────────────────────────────────
// Same font-size as body <p>, bold, uppercase, centered.
// Applied to the wrapper element so layout sits between headline and rule.

.infografik-headline-wrap {
  text-align: center;
}

.infografik-headline {
  // Match p font-size — inherit from body so theme changes apply automatically
  font-size: 1rem;   // = p default; override via theme variable if needed
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0 0 0.25rem;

  // Reset heading-specific margins coming from h1–h4 defaults
  &.h1,
  &.h2,
  &.h3,
  &.h4 {
    font-size: 1rem;
  }
}

// ── Intro text ────────────────────────────────────────────────────────────────
// Fließtext über der Grafik, 16px.

.infografik-intro {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;   // rule below is handled by .infografik-rule margin-top

  p {
    font-size: inherit;
    margin-bottom: 0.75em;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

// ── Media (infographic image) ─────────────────────────────────────────────────

.infografik-media {
  width: 100%;
  text-align: center;

  &__img {
    max-width: 100%;
    height: auto;
    display: inline-block;
  }
}
