﻿#SlideShow1 {
    position: relative;
    width: 388px;
    height: 297px;
    overflow: hidden;
}

/* jede Folie */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    /* aktives Bild */
    .slide.active {
        opacity: 1;
    }

    /* Bilder */
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* ✅ ganzes Bild sichtbar */
    }

/* Text im Bild */
.caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
}
.control-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

    .control-btn:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
    }