/* ================= HERO WRAPPER ================= */

.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: min(500px, 50vh);
}

/* Mobile Höhe */
@media (max-width: 768px) {
    .hero {
        height: 30vh;
    }
}

/* ================= HERO IMAGE ================= */

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: gentle-zoom 10s ease-in-out infinite alternate;
    will-change: transform;
}

/* Animation */
@keyframes gentle-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.3);
    }
}

/* Reduced Motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    .hero-img {
        animation: none;
    }
}

/* ================= HERO TEXT OVERLAY ================= */

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 1rem;
    max-width: 90%;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* ================= HERO SLIDER ================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ================= HERO META ================= */

.hero-year {
    margin-top: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
}
