/*
 * Ankündigungsbanner (glensk_notice_banner)
 *
 * Höhen-Stabilität: Alle Slides liegen per CSS-Grid in DERSELBEN Zelle (grid-area: 1/1).
 * Inaktive Slides werden nur per opacity/visibility ausgeblendet (NICHT display:none),
 * behalten also ihren Platz. Dadurch ist die Leistenhöhe immer die des höchsten Banners
 * und springt beim Wechseln nicht – ganz ohne JS-Höhenmessung.
 */

.gnb-bar {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--gnb-fg, #fff);
}

.gnb-stack {
    display: grid;
}

.gnb-slide {
    grid-area: 1 / 1;            /* alle Slides in Zelle 1/1 -> Höhe = höchster Slide */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.1rem;
    padding: .4rem 2.75rem;     /* horizontaler Platz für die Pfeile */
    margin: 0;
    text-align: center;
    font-size: .92rem;
    line-height: 1.3;
    background: var(--gnb-bg, #009966);
    color: var(--gnb-fg, #fff);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
}

.gnb-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.gnb-text {
    display: inline-block;
}

a.gnb-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.gnb-link:hover,
a.gnb-link:focus {
    color: inherit;
    opacity: .85;
}

.gnb-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    z-index: 2;
}

.gnb-nav:hover,
.gnb-nav:focus {
    opacity: 1;
    outline: none;
}

.gnb-prev { left: 0; }
.gnb-next { right: 0; }

/* Pfeile nur zeigen, wenn mehr als ein Banner gleichzeitig aktiv ist */
.gnb-bar.gnb-has-multiple .gnb-nav {
    display: flex;
}

@media (prefers-reduced-motion: reduce) {
    .gnb-slide {
        transition: none;
    }
}
