/* ===== Hero Slider (Frontend) ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F9FF 0%, #E7EAFF 100%);
    padding-top: 120px;
    margin-top: 0;
}

.slides-wrapper {
    touch-action: pan-y;  /* erlaubt vertikales Scrollen, blockiert horizontales */
}

.slides-container {
    position: relative;
    width: 100%;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    flex: 0 0 100%;
    padding: 2.5rem 0 4rem;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    background: #ecd65a;
    color: var(--primary, #3857a5);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.hero-content h1 {
    font-size: 3.0rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--primary, #3857a5);
}

.hero-desc {
    font-size: 1.2rem;
    color: #2E475D;
    margin: 1.2rem 0 1.8rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 1.8rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
}

.stat-item span {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary, #3857a5);
}

/* Bild – feste Größe 462x500 (wie im Admin) */
.hero-image {
    flex: 0.9;
    animation: float 4s ease-in-out infinite;
}

.hero-image img {
    width: 462px;
    height: 500px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-md, 0 20px 28px -12px rgba(0, 0, 0, 0.1));
    background: transparent;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: var(--primary, #3857a5);
    width: 24px;
}

.hero-slider .btn+.btn {
    margin-left: 0.8rem;
}

/* ===== Responsive Improvements ===== */

/* Large tablets / small laptops */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-image img {
        width: 380px;
        height: 420px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-slider {
        padding-top: 130px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }

    .hero-image {
        animation: float 3.5s ease-in-out infinite;
    }

    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-8px);
        }

        100% {
            transform: translateY(0px);
        }
    }
}

/* Mobile landscape & small tablets */
@media (max-width: 768px) {
    .hero-slider {
        padding-top: 110px;
    }

    .hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-content {
        order: 1;
        /* content on top */
    }

    .hero-image {
        order: 2;
        animation: float 3s ease-in-out infinite;
    }

    .hero-desc {
        max-width: 100%;
        font-size: 1.05rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image img {
        width: 100%;
        max-height: 320px;
        height: auto;
    }

    .slider-dots {
        bottom: 0.8rem;
        gap: 0.4rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 20px;
    }

    .hero-slide {
        padding: 1.8rem 0 2.5rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero-slider {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin: 0.8rem 0 1.2rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

    .hero-stats {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .stat-item span {
        font-size: 1.2rem;
    }

    .hero-image img {
        max-height: 250px;
        border-radius: 12px;
    }

    .slider-dots {
        bottom: 0.5rem;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .dot.active {
        width: 18px;
    }

    .hero-slide {
        padding: 1.2rem 0 1.8rem;
    }

    .hero-slider .btn+.btn {
        margin-left: 0.5rem;
    }
}

/* Very small phones (≤360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .hero-image img {
        max-height: 200px;
    }

    .hero-stats {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
}