/**
 * ==========================================================
 * Ueberdiek Ozean & Photographie
 * Datei: scroll-hint.css
 * Version: 0.9.2
 * ==========================================================
 */

.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: clamp(1.35rem, 3vw, 2.5rem);
    z-index: 10;

    width: 54px;
    height: 44px;

    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, .70);
    text-decoration: none;

    transform: translateX(-50%);
    opacity: 1;

    transition:
        color .3s ease,
        opacity .7s ease,
        visibility .7s ease;
}

.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
    color: #fff;
}

.hero-scroll-hint:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 5px;
    border-radius: 999px;
}

.hero-scroll-hint__icon {
    width: 38px;
    height: auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    animation: hero-scroll-breathe 3s ease-in-out infinite;
}

.hero-scroll-hint.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

@keyframes hero-scroll-breathe {

    0%,
    100% {
        opacity: .58;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

@media (max-width: 768px) {

    .hero-scroll-hint {
        bottom: 1rem;
        width: 48px;
        height: 40px;
    }

    .hero-scroll-hint__icon {
        width: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-scroll-hint__icon {
        animation: none;
    }

    .hero-scroll-hint {
        transition: none;
    }
}
