/* Tourenbuch Karussell CSS */
.tourenbuch-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
    /* Neue Anpassung für bessere Ausrichtung */
    display: flex;
    flex-direction: column;
    align-items: center; /* Karussell mittig unter der Tabelle */
}

/* Karussell-Container */
.tourenbuch-carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Karussell-Slides */
.tourenbuch-carousel-slide {
    min-width: 100%;
    transition: opacity 0.5s ease-in-out;
    text-align: center; /* Text unter dem Bild mittig ausrichten */
}

.tourenbuch-carousel-slide img {
    width: auto; /* Automatische Breite */
    max-width: 100%; /* Nicht größer als der Container */
    max-height: 400px; /* Höchstens 400px hoch */
    margin: auto; /* Bild mittig ausrichten */
    display: block;
    border-radius: 10px;
}

/* Text unter dem Bild mittig setzen */
.tourenbuch-carousel-slide p {
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
    color: #333;
}

/* Pfeile für Navigation */
.tourenbuch-carousel-prev,
.tourenbuch-carousel-next {
    position: absolute;
	z-index: 1000;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
}

.tourenbuch-carousel-prev {
    left: 10px;
}

.tourenbuch-carousel-next {
    right: 10px;
}

.tourenbuch-carousel-prev:hover,
.tourenbuch-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Karussell-Indikatoren */
.tourenbuch-carousel-dots {
    text-align: center;
    padding: 10px;
}

.tourenbuch-carousel-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease-in-out;
}

.tourenbuch-carousel-dot.active {
    background-color: #717171;
}

/* 🔹 Desktop: Mehr Abstand zur Tabelle */
@media (min-width: 768px) {
    .tourenbuch-carousel {
        margin: 40px auto;
    }
}

/* 🔹 Mobile: Weniger Abstand zur Tabelle */
@media (max-width: 767px) {
    .tourenbuch-carousel {
        margin-top: 10px;
        width: 100%;
    }
}
