/*
 * Nach-oben-Button (Holger 23.11.2026, Projekt _doc/projekte/2026-11-23-scroll-to-top.md, Darstellung B): weißer Kreis, Ring
 * füllt sich mit dem Scrollweg, Ring und Pfeil in der Markenfarbe (txt-brand1 -> currentColor). Ausgabe und Werte:
 * ScrollToTopMiddleware; Abstand unten aus den Globalen Einstellungen (--ndvToTopBottom Desktop, --ndvToTopBottomMobile
 * unter 768 px), Seite über ndvToTop--left/--right. Je Shop überschreibbar in customer.scss.
 */
.ndvToTop {
    position: fixed;
    z-index: 2147482000;
    bottom: var(--ndvToTopBottomMobile, 16px);
    right: 16px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}
.ndvToTop[hidden] {
    display: none;
}
.ndvToTop--left {
    right: auto;
    left: 16px;
}
/* mittig (Holger 23.11.2026): über left statt transform, weil transform das Ein- und Ausblenden trägt */
.ndvToTop--center {
    right: auto;
    left: calc(50% - 24px);
}
.ndvToTop:not(.is-visible) {
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.ndvToTop.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.ndvToTop:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}
.ndvToTop:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.ndvToTop__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.ndvToTop__track,
.ndvToTop__bar {
    fill: none;
    stroke-width: 3;
}
.ndvToTop__track {
    stroke: #e3e6ea;
}
.ndvToTop__bar {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-dasharray: 0 100;
}
.ndvToTop__arrow {
    position: relative;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}
@media (min-width: 768px) {
    .ndvToTop {
        bottom: var(--ndvToTopBottom, 24px);
        right: 24px;
        width: 52px;
        height: 52px;
    }
    .ndvToTop--left {
        right: auto;
        left: 24px;
    }
    .ndvToTop--center {
        right: auto;
        left: calc(50% - 26px);
    }
}
@media print {
    .ndvToTop {
        display: none;
    }
}
