/* =============================================
   HERO SLIDESHOW - FRONTEND STYLES
   ============================================= */

.ms-slideshow-wrapper {
    position: relative;
    width: 100vw;
    background: var(--accent);
    padding: 5rem;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.ms-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
}

.ms-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.ms-slide.active {
    opacity: 1;
}

.ms-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ms-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-slide-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
}

/* Overlay mit 40% der Accent-Farbe */
.ms-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 43, 78, 0.4);
    z-index: 1;
}

/* Content - Vertical Stack */
.ms-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* .ms-slide-title {
    font-family: 'Epilogue', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
} */

/* .ms-slide-text {
    font-family: 'Garamond EB', serif;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    max-width: 600px;
} */

.ms-slide-button {
    align-items: center;
    background-color: var(--accent);
    color: var(--base-3) !important;
    column-gap: 0.5em;
    display: inline-flex;
    text-decoration: none;
    border: 1px solid var(--base-3);
    border-radius: 5px;
    padding: 0.75rem 1rem;
}

.ms-slide-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Navigation Controls - Compact */
.ms-slideshow-control {
    position: absolute;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.ms-slideshow-control:hover {
    background: rgba(0, 0, 0, 0.6);
}

.ms-slideshow-control svg {
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ms-control-prev {
    left: 1rem;
}

.ms-control-next {
    right: 1rem;
}

/* Pagination Dots */
.ms-slideshow-pagination {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.ms-pagination-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ms-pagination-dot.active,
.ms-pagination-dot:hover {
    background: rgba(255, 255, 255, 1);
}

/* Responsive */
@media (max-width: 60rem) {
    .ms-slideshow-wrapper {
        padding: 1.5rem;
    }

    .ms-slide-content {
        padding: 1.5rem;
    }

    .ms-slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .ms-slide-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 40rem) {
    .ms-slideshow-wrapper {
        padding: 1rem;
        margin: 1rem 0;
    }

    .ms-slideshow-control {
        width: 2rem;
        height: 2rem;
    }

    .ms-control-prev {
        left: 0.5rem;
    }

    .ms-control-next {
        right: 0.5rem;
    }

    .ms-slide-content {
        padding: 1rem;
    }

    .ms-slide-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .ms-slide-text {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .ms-slide-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}
