/* Slider Basis */
.common-section {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding: 0;
    margin: 0;
}

.carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%,
        var(--secondary-color-light) 50%,
        var(--primary-color) 100%);
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-item {
    position: relative;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.carousel-item.active {
    opacity: 1;
}

/* Fade-Animation für den Slide-Wechsel */
.carousel-fade .carousel-item {
    opacity: 0;
    transform: none;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    transform: none;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Hintergrundbilder für die Slides */
@keyframes moveOutward {
    0% {
        background-position: center center;
        background-size: 100% auto;
    }
    100% {
        background-position: center center;
        background-size: 120% auto;
    }
}

.carousel-item.slide-1,
.carousel-item.slide-2,
.carousel-item.slide-3 {
    background-position: center center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    animation: moveOutward 30s ease-out infinite alternate;
}

.carousel-item.slide-1 {
    background-image: url('../img/slider1.jpg');
}

.carousel-item.slide-2 {
    background-image: url('../img/slider2.jpg');
}

.carousel-item.slide-3 {
    background-image: url('../img/slider3.jpg');
}

/* Overlay für alle Slides */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 19, 115, 0.95) 0%,
        rgba(0, 70, 192, 0.85) 50%,
        rgba(12, 192, 223, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Container und Content */
.carousel-item .container {
    position: relative;
    z-index: 2;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 10px var(--site-padding);
    display: flex;
    align-items: flex-end;
}

.carousel-item .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    align-items: flex-end;
}

.carousel-item .col-md-6 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.carousel-item .container .py-5 {
    padding-left: 0;
    padding-right: 0;
}

/* Content-Bereich */
.text-content {
    color: var(--white);
    background-color: transparent;
    border-radius: 10px;
}

.text-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.text-content h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #0CC0DF;
    border-radius: 2px;
}

.text-content p, .text-content li {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--white);
}

.feature-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    background-color: #FFFFFF;
    color: var(--color-secondary);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: color 0.3s ease-out;
}

.feature-list li:hover::before {
    color: var(--color-primary);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.btn-slider {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0aa5c0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Vordergrund-Bilder */
.carousel-item .img-fluid {
    max-height: 800px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Steuerungselemente */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
    margin: 0 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(12, 192, 223, 0.8);
    opacity: 1;
    width: 65px;
    height: 65px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}

/* Position der Pfeile anpassen */
.carousel-control-prev {
    left: 0;
    z-index: 4;
}

.carousel-control-next {
    right: 0;
    z-index: 4;
}

/* Animationen */
.fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-up {
    animation: slideUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animationen für Slider-Content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation für die einzelnen Elemente */
.text-content h1 {
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
}

.text-content p {
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.text-content .feature-list {
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.text-content .button-group {
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 1.8s;
    opacity: 0;
}

/* Animation beim Slide-Wechsel neu starten */
.carousel-item:not(.active) .text-content > * {
    opacity: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .carousel-item {
        min-height: 500px;
    }

    .text-content h1 {
        font-size: 2.8rem;
    }
    
    .carousel-item .img-fluid {
        max-height: 400px;
    }
}

@media (max-width: 767px) {
    .carousel-item {
        min-height: auto;
        padding: 3rem 0;
    }

    .text-content h1 {
        font-size: 2.2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .carousel-item .img-fluid {
        max-height: 300px;
        margin: 2rem auto 0;
    }
}

.carousel-item .text-content {
    position: relative;
    z-index: 2;
}

.carousel-item {
    position: relative;
}

/* Navigation Styles */
.nav-menu {
    position: relative;
    z-index: 1000;
}

.header {
    position: relative;
    z-index: 1000;
}

.carousel-item .col-md-6.text-center {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 600px;
}

.slider-image {
    margin-bottom: 0;
}

.carousel-item .img-fluid.slider-image {
    display: block;
    max-height: 800px;
    width: auto;
    object-fit: contain;
    margin-bottom: -3rem;
    position: relative;
    z-index: 2;
    transition: transform 0.8s ease-out;
    cursor: pointer;
}

.carousel-item .img-fluid.slider-image:hover {
    transform: scale(1.1);
    margin-bottom: -3rem;
}

/* Zusätzliche Animation für Hover */
@keyframes pulseArrow {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    animation: pulseArrow 1.5s infinite ease-in-out;
    filter: brightness(1.2) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}