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

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

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

    &__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.

    &__headline-wrap {
        text-align: center;
    }

    &__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;
        color:#000;
        // Reset heading-specific margins coming from h1–h4 defaults
        &.h1,
        &.h2,
        &.h3,
        &.h4 {
            font-size: 1rem;
        }
    }

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

    &__intro {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 0;   // spacing handled by __rule margin-top

        p {
            font-size: inherit;
            margin-bottom: 0.75em;
            color:#000;
            &:last-child {
                margin-bottom: 0;
            }
        }
    }

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

    &__media {
        width: 100%;
        text-align: center;
        margin-top:10px;
        &-img {
            max-width: 100%;
            height: auto;
            display: inline-block;
        }
    }
}
