/* =========================================================================
   blog-article.css
   =========================================================================
   Wird NUR von Blog-Artikel-Unterseiten (nicht der Blog-Uebersicht, nicht
   Impressum/AGB/Hilfe etc.) ueber $additionalCss = ['/add/blog-article.css']
   in der header.php eingebunden.

   Gilt ausschliesslich innerhalb des Containers .blog-article.
   Die globale styles.css wird hierdurch nicht veraendert.
   ========================================================================= */

/* ---- 1. Artikel-Container: weisser Hintergrund statt #f8fafc ----------- */

.blog-article {
    background-color: #ffffff;
}

.blog-article .content-container-page {
    background-color: #ffffff;
    max-width: 50rem;
    padding: 2.5rem 2rem;
    margin: 2rem auto;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* ---- 2. Breadcrumb: etwas Luft nach oben -------------------------------- */

.blog-article .breadcrumb {
    margin-top: 0.5rem;
}

/* ---- 3. Bilder: zentriert, responsive, Figcaption darunter ------------- */

.blog-article .content-section figure {
    margin: 0 auto 1.5rem;
    padding: 0;
    max-width: 100%;
    text-align: center;
}

.blog-article .content-section figure img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.blog-article .content-section figcaption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
    text-align: center;
    padding: 0 0.5rem;
}

/* ---- 4. Konsistente Bildgroessen pro Bild (max-width) ------------------ */
/* Werden pro Bild ueberschrieben, falls das Original kleiner ist.        */
/* Hier nur Default fuer Artikel ohne explizite Figure-Max-Breite.        */

/* ---- 5. Lesbarkeit / Typografie bleibt unveraendert (content-text) ---- */
/* Textfarbe #334155 aus styles.css bleibt erhalten.                      */

/* ---- 6. Blockquote (z.B. VARTA-CEO-Zitat) etwas harmonisieren ---------- */

.blog-article .content-section blockquote {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid #7e22ce;
    font-style: italic;
    color: #475569;
    background-color: #f8fafc;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* ---- 7. Responsive Anpassungen ----------------------------------------- */

@media (max-width: 640px) {
    .blog-article .content-container-page {
        max-width: 100%;
        margin: 0;
        padding: 1.5rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .blog-article .content-section figure {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .blog-article .content-section figure img {
        border-radius: 6px;
    }

    /* Ueberschriften etwas kleiner auf kleinen Geraeten */
    .blog-article .page-title {
        font-size: 1.875rem;
    }

    .blog-article .content-section-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .blog-article .content-container-page {
        margin: 1.5rem auto;
        padding: 2.25rem 1.75rem;
    }
}