 /*Style für Untergalerien plus Schutz für Bilder */

        /* Galerie-Bilder als kleine Rechtecke */
        .small-img {
            width: 100%;
            height: 150px; /* Kleinere Rechtecke */
            object-fit: cover;
            border-radius: 5px;
        }
        /* Scrollbare Galerie */
        .gallery-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px 10px; /* Erster Wert: vertikaler Abstand, Zweiter Wert: horizontaler Abstand */
            justify-content: center;
        }
        .mini-text {
            margin-top: 5px; /* Abstand zwischen Bild und Text */
            font-size: 0.9em;
        }
        /* Raster für viele Bilder */
        .gallery-container {
            overflow-y: auto; /* Scrollbar hinzufügen */
            max-height: 80vh; /* Höhe begrenzen, damit gescrollt werden kann */
        }



/* Karussell */
#imageCarousel {
    width: 100%;
    max-width: 700px; 
    height: 400px;
    margin: auto;
    overflow: hidden;
}

/* Innenbereich des Karussells */
.carousel-inner {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* Jedes Bild-Item */
.carousel-item {
    /* display: flex; */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Bilder anpassen */
.carousel-item img {
    width: 100%; 
    height: 100%;
    object-fit: contain; 
    max-height: 100%; 
    background-color: black; 
}

/* Pfeile sichtbar machen */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Macht die Icons weiß */
    opacity: 1; /* Volle Sichtbarkeit */
}

/* Optional: Hover-Effekt für bessere Sichtbarkeit */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Leichter weißer Hintergrund beim Drüberfahren */
    border-radius: 50%;
}


/* Verbesserung für Touchscreen-Galerien */
.gallery-item img {
    pointer-events: auto !important;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    #imageCarousel {
        height: 350px; /* Kleiner für Tablets */
    }
}

@media (max-width: 768px) {
    #imageCarousel {
        height: 300px; /* Noch kleiner für Mobilgeräte */
    }
}

@media (max-width: 576px) {
    #imageCarousel {
        height: 250px; /* Optimiert für sehr kleine Bildschirme */
    }
}


    /* Nummerierte Icons */
        .mini-text {
            font-size: 12px; /* Oder kleiner, falls nötig */
            text-align: left;
            display: flex;
            align-items: center;
            margin-top: 5px; /* Erhöht den Abstand zwischen Bild und Text */
        }
        .mini-icon {
            background-color: #007bff;
            color: white;
            font-size: 12px;
            font-weight: bold;
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            margin-right: 5px;
        }

   /* Modalfenster für Einzelansicht */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%); /* Modal zentrieren */
        width: 90%; /* Begrenze die Breite */
        max-width: 600px; /* Maximalgröße für das Modal */
        background-color: rgba(0, 0, 0, 0.8);
        padding: 20px;
        border-radius: 10px;
    }
    /* MODAL-INHALT */
    .modal-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .modal-content {
        max-width: 100%;
        max-height: 400px; /* Setze eine maximale Höhe */
        width: auto;
    }
    .modal-text {
        text-align: center;
        margin-top: 10px;
        font-size: 16px;
        color: white; /* Falls Text nicht sichtbar ist */
    }
    /* SCHLIEẞEN-BUTTON */
        .close {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }
    /* Footer verkleinern */
        .small-footer {
            font-size: 12px; /* Kleinere Schrift */
            padding: 5px 0;  /* Weniger Innenabstand */
        }
        footer .container {
            display: flex;
            justify-content: center; /* Zentrierte Inhalte */
            align-items: center;
            flex-wrap: wrap; /* Falls der Platz nicht reicht, umbrechen */
            gap: 10px; /* Abstand zwischen Elementen */
        }
        
    /* Schutzmaßnahmen */
        body {
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		touch-action: manipulation; /* Erlaubt Touch-Gesten */
		}
		img {
			pointer-events: auto;
			touch-action: none; /* WICHTIG: Ermöglicht Pinch-to-Zoom */
		}
