/* ==========================================================================
   lab81 / Background 100vh – TYPO3 v14
   ========================================================================== */

/* 1. Hero: volle Bildschirmhöhe */
.cb-background100vh__masthead {
    position: relative;
    width: 100%;
    height: calc(100vh - 86px);
    min-height: 700px;
    overflow: hidden;
    isolation: isolate;
}

/* 2. Hintergrundbilder */
.cb-background100vh__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.cb-background100vh__background--mobile { display: none; }

/* 3. Dunkles Overlay (Deckkraft hier anpassen) */
.cb-background100vh__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(0 0 0 / 45%);
    pointer-events: none;
}

/* 4. Zentrierter Inhalt und Logo */
.cb-background100vh__content { position: relative; z-index: 1; }
.cb-background100vh__logo {
    display: block;
    max-width: 250px;
    max-height: 250px;
    width: auto;
    height: auto;
    margin-inline: auto;
}

/* 5. Titel, roter Punkt und Untertitel */
.cb-background100vh__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: .25rem;
}
.cb-background100vh__accent { color: #a0191d; }
.cb-background100vh__subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.3;
}

/* 6. Scroll-Kreis am unteren Rand */
.cb-background100vh__scroll {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 2;
    text-align: center;
}
.cb-background100vh__scroll-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #fff;
    border: 2px solid currentColor;
    border-radius: 50%;
    text-decoration: none !important;
    transition: color .3s ease;
}
.cb-background100vh__scroll-link:hover,
.cb-background100vh__scroll-link:focus,
.cb-background100vh__scroll-link:active,
.cb-background100vh__scroll-link:visited {
    text-decoration: none !important;
}
.cb-background100vh__scroll-link:hover { color: #a0191d; }
.cb-background100vh__scroll-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* 7. Automatische Animation: nur der Pfeil bewegt sich */
.cb-background100vh__arrow {
    animation: cb-background100vh-bounce 2s ease-in-out infinite;
}
@keyframes cb-background100vh-bounce {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(5px); }
}

/* 8. Tablet */
@media (max-width: 991.98px) {
    .cb-background100vh__masthead { min-height: 600px; }
    .cb-background100vh__logo { max-width: 200px; max-height: 200px; }
}

/* 9. Smartphone */
@media (max-width: 575.98px) {
    .cb-background100vh__masthead { height: 100svh; min-height: 450px; }
    .cb-background100vh__background--mobile { display: block; }
    .cb-background100vh__logo { max-width: 150px; max-height: 150px; }
    .cb-background100vh__scroll { bottom: 25px; }
}

/* 10. Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
    .cb-background100vh__arrow { animation: none; }
}
