/* ==========================================================
   ZSH Banner 3.6
   Roboto, Farbbalken und variable Textposition
========================================================== */

.zsh-banner-page {
    box-sizing: border-box;
}

.zsh-banner-page *,
.zsh-banner-page *::before,
.zsh-banner-page *::after {
    box-sizing: border-box;
}

/* ==========================================================
   BANNERFLÄCHE
========================================================== */

.zsh-banner-page .zsh-banner-single {
    position: relative;

    display: flex;
    align-items: flex-start;

    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 210px;

    overflow: hidden;

    background: #312783;

    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    text-decoration: none;
}

/* ==========================================================
   TEXTPOSITION OBEN / MITTE / UNTEN
========================================================== */

/* Standard: oben */

.zsh-banner-page.zsh-banner-position-top
.zsh-banner-single {
    align-items: flex-start;
}

/* Mitte: Textblock vertikal zentrieren */

.zsh-banner-page.zsh-banner-position-center
.zsh-banner-single {
    align-items: center;
}

/* Unten: Abstand entspricht der oberen Position */

.zsh-banner-page.zsh-banner-position-bottom
.zsh-banner-single {
    align-items: flex-end;
}

/* ==========================================================
   BANNERBILD
========================================================== */

.zsh-banner-page .zsh-banner-single-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
}

/* ==========================================================
   TEXTBEREICH
========================================================== */

.zsh-banner-page .zsh-banner-single-content {
    position: relative;
    z-index: 1;

    width: min(85%, 780px);

    padding:
        clamp(25px, 4vw, 55px)
        clamp(20px, 4vw, 55px);

    font-family: 'Roboto', Arial, Helvetica, sans-serif;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ==========================================================
   TITEL
   Standard: 23px / 3vw / 44px
========================================================== */

.zsh-banner-page .zsh-banner-single-content h2 {
    margin: 0;
    padding: 0;

    color: var(--zsh-banner-title-color, #FFFFFF);

    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 700;

    font-size: clamp(
        calc(23px + var(--zsh-banner-title-adjust, 0px)),
        calc(3vw + var(--zsh-banner-title-adjust, 0px)),
        calc(44px + var(--zsh-banner-title-adjust, 0px))
    );

    line-height: 1.18;
    letter-spacing: -0.02em;
}

/* ==========================================================
   FARBBALKEN
========================================================== */

.zsh-banner-page .zsh-banner-text-bar {
    width: 76px;
    max-width: 35%;
    height: 6px;

    margin: 20px 0 17px;

    background: var(
        --zsh-banner-bar-color,
        #FCA320
    );

    box-shadow: none;
    text-shadow: none;
}

/* ==========================================================
   UNTERTITEL
   Standard: 14px / 1.45vw / 19px
========================================================== */

.zsh-banner-page .zsh-banner-single-subtitle {
    color: var(
        --zsh-banner-subtitle-color,
        #FFFFFF
    );

    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 400;

    font-size: clamp(
        calc(14px + var(--zsh-banner-subtitle-adjust, 0px)),
        calc(1.45vw + var(--zsh-banner-subtitle-adjust, 0px)),
        calc(19px + var(--zsh-banner-subtitle-adjust, 0px))
    );

    line-height: 1.5;
    letter-spacing: 0;
}

.zsh-banner-page .zsh-banner-single-subtitle p {
    margin: 0 0 8px;

    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.zsh-banner-page .zsh-banner-single-subtitle p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   HOVER UND TASTATURFOKUS
========================================================== */

.zsh-banner-page a.zsh-banner-single:hover,
.zsh-banner-page a.zsh-banner-single:focus-visible {
    text-decoration: none;
}

.zsh-banner-page a.zsh-banner-single:focus-visible {
    outline: 3px solid #312783;
    outline-offset: 3px;
}

/* ==========================================================
   TABLET UND SMARTPHONE
========================================================== */

@media (max-width: 768px) {

    .zsh-banner-page .zsh-banner-single {
        aspect-ratio: 16 / 7;
        min-height: 210px;
    }

    .zsh-banner-page .zsh-banner-single-content {
        width: 100%;
        padding: 20px;
    }

    .zsh-banner-page .zsh-banner-text-bar {
        width: 60px;
        height: 5px;
        margin: 12px 0;
    }

}

@media (max-width: 480px) {

    .zsh-banner-page .zsh-banner-single {
        min-height: 230px;
    }

    .zsh-banner-page .zsh-banner-single-content {
        padding: 16px;
    }

}
