/* ========================================
   GEMEINSAME NAV-BUTTON STYLES
======================================== */
.nav-button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    opacity: 0.8;
    transition: background 0.3s;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

/* ========================================
   CAROUSEL 1: ICK (WalkMe Nutzen)
======================================== */
.module-carousel-ick {
    padding: 2rem 0;
    text-align: center;
}

.carousel-ick-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-ick {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 1rem 0;
}

.carousel-ick::-webkit-scrollbar {
    display: none;
}

.carousel-ick-item {
    position: relative;
    flex: 0 0 400px;
    width: 400px;
    height: 220px;
    scroll-snap-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-ick-item:hover {
    transform: scale(1.02);
}

.carousel-ick-item h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    padding: 1rem 1.5rem;
    width: 100%;
}

.overlay p {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.carousel-ick-wrapper .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-ick-wrapper .prev {
    left: 10px;
}

.carousel-ick-wrapper .next {
    right: 10px;
}

/* ========================================
   CAROUSEL 2: ICK-BIG (Nutzen SAP DRC)
======================================== */
.module-carousel-ick-big {
    padding: 2rem 0;
    text-align: center;
}

.carousel-ick-big-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-ick-big {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 1rem 0;
}

.carousel-ick-big::-webkit-scrollbar {
    display: none;
}

.carousel-ick-big-item {
    position: relative;
    flex: 0 0 500px;
    width: 500px;
    min-height: 350px;
    scroll-snap-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-ick-big-item:hover {
    transform: scale(1.02);
}

.overlay-big {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    padding: 1.5rem 2rem 2rem;
    width: 100%;
}

.overlay-big h3 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.overlay-big p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.carousel-ick-big-wrapper .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-ick-big-wrapper .prev-big {
    left: 10px;
}

.carousel-ick-big-wrapper .next-big {
    right: 10px;
}

/* ========================================
   CAROUSEL 3: ICK-LARGE (Hauptfunktionen SAP DRC)
======================================== */
.module-carousel-ick-large {
    padding: 2rem 0;
    text-align: center;
}

.carousel-ick-large-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-ick-large {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 1rem 0;
}

.carousel-ick-large::-webkit-scrollbar {
    display: none;
}

.carousel-ick-large-item {
    position: relative;
    flex: 0 0 550px;
    width: 550px;
    height: 350px;
    scroll-snap-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.carousel-ick-large-item:hover {
    transform: scale(1.02);
}

.carousel-back01 { background-image: url("/images/carouselslider/1631295341718.jpg"); }
.carousel-back02 { background-image: url("/images/carouselslider/1631295496633.jpg"); }
.carousel-back03 { background-image: url("/images/carouselslider/1631295887737.jpg"); }
.carousel-back04 { background-image: url("/images/carouselslider/1631295973810.jpg"); }
.carousel-back05 { background-image: url("/images/carouselslider/1631296062636.jpg"); }
.carousel-back06 { background-image: url("/images/carouselslider/1632828696401.jpg"); }

.overlay-large {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.overlay-large h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    max-width: 100%;
}

.carousel-ick-large-wrapper .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-ick-large-wrapper .prev-large {
    left: 10px;
}

.carousel-ick-large-wrapper .next-large {
    right: 10px;
}

/* Modal für LARGE Carousel */
.carousel-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.carousel-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 768px) {
    /* ICK */
    .carousel-ick-wrapper {
        padding: 0 50px;
    }
    
    .carousel-ick-item {
        flex: 0 0 calc(100vw - 100px);
        width: calc(100vw - 100px);
        max-width: 350px;
        height: 200px;
    }
    
    .carousel-ick-item h3 {
        font-size: 1.1rem;
    }
    
    .overlay p {
        font-size: 0.9rem;
    }
    
    /* ICK-BIG */
    .carousel-ick-big-wrapper {
        padding: 0 50px;
    }
    
    .carousel-ick-big-item {
        flex: 0 0 calc(100vw - 100px);
        width: calc(100vw - 100px);
        max-width: 450px;
        min-height: 380px;
    }
    
    .overlay-big {
        padding: 1.5rem;
    }
    
    .overlay-big h3 {
        font-size: 1.3rem;
    }
    
    .overlay-big p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* ICK-LARGE */
    .carousel-ick-large-wrapper {
        padding: 0 50px;
    }
    
    .carousel-ick-large-item {
        flex: 0 0 calc(100vw - 100px);
        width: calc(100vw - 100px);
        max-width: 450px;
        height: 300px;
    }
    
    .overlay-large h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* ========================================
   RESPONSIVE - MOBILE LARGE
======================================== */
@media (max-width: 480px) {
    .nav-button {
        width: 35px;
        height: 35px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }
    
    /* ICK */
    .carousel-ick-wrapper {
        padding: 0 45px;
    }
    
    .carousel-ick-item {
        flex: 0 0 calc(100vw - 90px);
        width: calc(100vw - 90px);
        max-width: 320px;
        height: 240px;
    }
    
    .carousel-ick-item h3 {
        font-size: 1rem;
    }
    
    .overlay {
        padding: 1rem;
    }
    
    .overlay p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .carousel-ick-wrapper .prev {
        left: 5px;
    }
    
    .carousel-ick-wrapper .next {
        right: 5px;
    }
    
    /* ICK-BIG */
    .carousel-ick-big-wrapper {
        padding: 0 45px;
    }
    
    .carousel-ick-big-item {
        flex: 0 0 calc(100vw - 90px);
        width: calc(100vw - 90px);
        max-width: 360px;
        min-height: 420px;
    }
    
    .overlay-big {
        padding: 1.2rem 1.5rem 1.5rem;
    }
    
    .overlay-big h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        hyphens: auto;
        word-break: break-word;
    }
    
    .overlay-big p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0.4rem 0;
        hyphens: auto;
    }
    
    .carousel-ick-big-wrapper .prev-big {
        left: 5px;
    }
    
    .carousel-ick-big-wrapper .next-big {
        right: 5px;
    }
    
    /* ICK-LARGE */
    .carousel-ick-large-wrapper {
        padding: 0 45px;
    }
    
    .carousel-ick-large-item {
        flex: 0 0 calc(100vw - 90px);
        width: calc(100vw - 90px);
        max-width: 340px;
        height: 260px;
    }
    
    .overlay-large {
        height: 60%;
        padding: 1rem;
    }
    
    .overlay-large h3 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .carousel-ick-large-wrapper .prev-large {
        left: 5px;
    }
    
    .carousel-ick-large-wrapper .next-large {
        right: 5px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* ========================================
   RESPONSIVE - MOBILE SMALL
======================================== */
@media (max-width: 360px) {
    .nav-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* ICK */
    .carousel-ick-wrapper {
        padding: 0 40px;
    }
    
    .carousel-ick-item {
        flex: 0 0 calc(100vw - 80px);
        width: calc(100vw - 80px);
        max-width: 300px;
        height: 220px;
    }
    
    .carousel-ick-item h3 {
        font-size: 0.95rem;
    }
    
    .overlay p {
        font-size: 0.8rem;
    }
    
    .carousel-ick-wrapper .prev {
        left: 3px;
    }
    
    .carousel-ick-wrapper .next {
        right: 3px;
    }
    
    /* ICK-BIG */
    .carousel-ick-big-wrapper {
        padding: 0 40px;
    }
    
    .carousel-ick-big-item {
        flex: 0 0 calc(100vw - 80px);
        width: calc(100vw - 80px);
        max-width: 320px;
        min-height: 440px;
    }
    
    .overlay-big {
        padding: 1rem 1.2rem 1.2rem;
    }
    
    .overlay-big h3 {
        font-size: 1.1rem;
        letter-spacing: -0.3px;
    }
    
    .overlay-big p {
        font-size: 0.85rem;
        line-height: 1.35;
    }
    
    .carousel-ick-big-wrapper .prev-big {
        left: 3px;
    }
    
    .carousel-ick-big-wrapper .next-big {
        right: 3px;
    }
    
    /* ICK-LARGE */
    .carousel-ick-large-wrapper {
        padding: 0 40px;
    }
    
    .carousel-ick-large-item {
        flex: 0 0 calc(100vw - 80px);
        width: calc(100vw - 80px);
        max-width: 300px;
        height: 240px;
    }
    
    .overlay-large h3 {
        font-size: 0.85rem;
    }
    
    .carousel-ick-large-wrapper .prev-large {
        left: 2px;
    }
    
    .carousel-ick-large-wrapper .next-large {
        right: 2px;
    }
}