/* =============================================================
   Scroll-Teaser rechts – 250x250 Bilder, fahren bei Hover komplett raus
   Zwei Teaser gestapelt: #scroll-teaser-1 (unten) und #scroll-teaser-2 (oben)
   ============================================================= */

.scroll-teaser {
    position: fixed;
    right: -190px;               /* 250px Bild - 60px sichtbar = 190px versteckt */
    width: 250px;
    height: 250px;
    transition: right 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 9998;               /* unter dem Menü (9999), über allem anderen */
    display: block;
    text-decoration: none;
    box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.25);
    border-radius: 4px 0 0 4px;
    overflow: hidden;
    background: #000;
}

/* Unterer Teaser – etwas unterhalb der Mitte */
#scroll-teaser-1 {
    top: calc(50% + 10px);
}

/* Oberer Teaser – direkt darüber, 10px Abstand */
#scroll-teaser-2 {
    top: calc(50% - 260px);      /* 250px Höhe + 10px Abstand nach oben */
}

.scroll-teaser:hover {
    right: 0;                    /* fährt komplett raus */
}

.scroll-teaser img {
    display: block;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: none;
}

/* Kleiner Hinweis-Pfeil auf dem sichtbaren Teil */
.scroll-teaser::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #fff;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.scroll-teaser:hover::before {
    opacity: 0;
}

/* Mobile: ausblenden – auf kleinen Screens stört das Element sonst */
@media only screen and (max-width: 767px) {
    .scroll-teaser {
        display: none;
    }
}

/* Tablet: kleiner + engere Stapelung */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .scroll-teaser {
        width: 180px;
        height: 180px;
        right: -140px;
    }
    .scroll-teaser img {
        width: 180px;
        height: 180px;
    }
    #scroll-teaser-1 {
        top: calc(50% + 10px);
    }
    #scroll-teaser-2 {
        top: calc(50% - 190px);  /* 180px + 10px */
    }
}
