/**
 * Beitrags-Detailseite (Joomla com_content).
 * Wird vom Plugin plg_system_ekarticlehero NUR auf Beitragsseiten geladen –
 * dort lädt unsere site.css nicht. Enthält Hero-Styling + Content-Breite +
 * das Entfernen des Gridbox-Randes.
 */

/* Gridbox (responsive.css) setzt auf .body einen 100px-Margin oben/unten →
   auf der Beitragsseite entfernen, damit der Hero bündig unter dem Header sitzt. */
body:not(.com_gridbox) .body {
    margin: 0 !important;
}

/* Beitragsinhalt auf max. 1600px zentriert. */
.com-content-article.item-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    padding: 2.5rem 3rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}

/* Fullwidth-Hero mit dem Beitragsbild als Hintergrund und dem Titel darin. */
.ek-article-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
}
/* Weicher dunkler Scrim nur im mittleren Band (hinter dem Titel); Bild
   oben/unten bleibt klar. */
.ek-article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, .5) 42%,
        rgba(0, 0, 0, .5) 58%,
        rgba(0, 0, 0, 0) 70%
    );
}
.ek-article-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 200px 2rem;
    box-sizing: border-box;
}
.ek-article-hero-kicker {
    display: block;
    margin-top: .8rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.ek-article-hero h1 {
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

/* Beitragstext weiß (dunkler Seitenhintergrund). */
.com-content-article__body,
.com-content-article__body p,
.com-content-article__body li,
.com-content-article__body h1,
.com-content-article__body h2,
.com-content-article__body h3,
.com-content-article__body h4,
.com-content-article__body a {
    color: #ffffff;
}
