/* Set the slider height to 1/4 of the viewport height */
#startpageCarouselIndicators {
    height: 45vh; /* 25% of the viewport height */
}

#startPageTopBar {
    margin-top: 6rem !important;
}

/* Make sure the images fit within the slider's height without distortion */
.carousel-item img {
    height: 45vh;
    object-fit: cover; /* Crop the image to cover the area while maintaining aspect ratio */
    width: 100%;
}

/* Optional: Adjust the caption positioning if needed */
.carousel-caption {
    bottom: 10px;
}

/* Common styling for category items */
.category-item {
    position: relative;
    border: 1px solid #000;  /* Add border */
    background-color: #fff;
    text-align: center;
    min-height: 200px;  /* Set a consistent minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* Ensure proper spacing between image and text */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glow effect on hover */
.category-item:hover {
    box-shadow: 0 0 20px rgba(159, 150, 150, 0.7);  /* Blue glowing shadow */
    border-color: rgba(159, 150, 150, 0.7);  /* Change border color on hover */
    transform: scale(1.05);  /* Pop-out effect: Scale the whole item to 105% */
}

/* Ensures image scales properly */
.category-item img {
    max-width: 100%;
    height: 15vh;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Category title styling */
.category-title h3 {
    font-size: 1rem;
    margin-top: 10px;
    word-wrap: break-word;  /* Ensure long words break properly */
    hyphens: auto;  /* Optional: add hyphens to break long words */
    min-height: 50px;  /* Ensure consistent space for the title */
    overflow-wrap: break-word; /* Ensure the text doesn't overflow */
    text-decoration: none;
}

.category-link {
    text-decoration: none;
    color: black;
}

.position-relative {
    position: relative;
}

.custom-control-prev,
.custom-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2; /* Überlagert den Slider */
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3); /* Halbtransparenter Hintergrund */
    border-radius: 50%; /* Runde Form */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-control-prev {
    left: -60px; /* Abstand links */
}

.custom-control-next {
    right: -60px; /* Abstand rechts */
}

.custom-control-prev-icon,
.custom-control-next-icon {
    filter: invert(1); /* Macht die Icons sichtbar (weiß auf dunklem Hintergrund) */
}

/* Extra Small (xs) - unter 576px */
@media (max-width: 575px) {

}

/* Small (sm) - 576px bis 767px */
@media (min-width: 576px) and (max-width: 767px) {

}

/* Medium (md) - 768px bis 991px */
@media (min-width: 768px) and (max-width: 991px) {
    #startpageCarouselIndicators {
        height: 25vh; /* 20% of the viewport height on mobile */
    }

    .carousel-item img {
        height: 25vh;
    }

    #startPageTopBar{
        height: 8vh !important;
        width: 100% !important;
        font-size: 8px;
    }

    .startPageTopBarText{
        font-size: 26px;
    }

    .category-item {
        min-height: 150px;  /* Adjust minimum height for smaller screens */
    }
}

/* Large (lg) - 992px bis 1199px */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* Extra Large (xl) - 1200px bis 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {

}

/* Extra Extra Large (xxl) - ab 1400px */
@media (min-width: 1400px) {

}