.slideshow-mobile {
    background-color: rgba(32, 80, 106, 0.4);
    border-radius: 0.5rem;
    box-shadow: 0px 0px 10px gray;
    position: relative;
}

.slideshow-desktop {
    background-color: rgba(32, 80, 106, 0.4);
    border-radius: 0.5rem;
    box-shadow: 0px 0px 10px gray;
    position: relative;
}

.landscape {
    width: 80vw;
    height: 80vh;
    margin: 15vh auto;
}

.portrait {
    width: 80vw;
    height: 30vh;
    margin: 8vh auto;
}

.slide{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 500ms ease;
    background: linear-gradient(90deg, rgba(32,80,106,0.25) 25%, rgba(32,80,106,0.4) 50%, rgba(32,80,106,0.25) 75%);
    background-size: 200% 100%;
    animation: slide-shimmer 1.6s ease-in-out infinite;
}

.slide.loaded {
    background: none;
    animation: none;
}

@keyframes slide-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.slide-bild {
    position: absolute;
    top : 35px;
    width: 100%;
    height: 90%;
}

.slide-bild { z-index: 1; }

.slide-textbereich {
    font: 16px/1.5 'IBM Plex Sans', sans-serif;
    position: absolute;
    bottom: 10px;
    left: 30%;
    right: 30%;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none; 
    z-index: 2;
}

 .slide:hover .slide-textbereich {
    opacity: 1;
    pointer-events: auto;
}

.slide:active .slide-textbereich,
.slide:focus .slide-textbereich,
.slide:focus-within .slide-textbereich {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.slide { -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; }

@media (pointer: coarse) {
    .slide-textbereich { transition: opacity 260ms ease, transform 260ms ease; }
} 

.slide-title {
    font-size: 2rem;
    margin: 0 0 5px 0;
}

.slide-title-link {
    color: white;
    text-decoration: none;
}

.slide-beschreibung {
    font-size: 1.2rem;
    margin: 0;
        color: white;
    text-decoration: none;
}

.pfeil {
    position: absolute;
    top:0;
    bottom:0;
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 15%;
    user-select: none;
      z-index: 2;
}

.pfeil:hover {
    color: white;
}

.pfeil span {
    pointer-events: none;
}

.pfeil:focus-visible,
.indicator:focus-visible,
.slideshow-desktop:focus-visible,
.slideshow-mobile:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
}

.pfeil-links { left: 10px; }
.pfeil-rechts { right: 10px; }

.slide-indicators {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    list-style-type: none;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.indicator {
    color: rgba(255, 255, 255);
    user-select: none;
    padding: 0 10px;
    cursor: pointer;
    opacity: 0.7;
}

.active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .slide,
    .slide-textbereich {
        transition: none !important;
    }

    .slide {
        animation: none !important;
    }
}

@media (max-width: 750px) {
    .slide {
        background: rgba(15, 41, 56, 0.55);
    }

    .slide-bild {
        top: 0;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .slide-textbereich {
        left: 12%;
        right: 12%;
        bottom: 6px;
        font-size: 13px;
        padding: 7px;
        border-radius: 6px;
    }

    .slide-title {
        font-size: 1.2rem;
    }

    .slide-beschreibung {
        display: none;
    }

    .pfeil {
        width: 20%;
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .pfeil-links { left: 2px; }
    .pfeil-rechts { right: 2px; }

    .slide-indicators {
        font-size: 2rem;
    }

    .indicator {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .slide-textbereich {
        left: 14%;
        right: 14%;
        bottom: 4px;
        padding: 6px;
    }

    .slide-title {
        font-size: 1.05rem;
        margin: 0;
    }

    .slide-indicators {
        font-size: 1.7rem;
    }
}