/**
 * VMHB Hero Slider with Teaser Cards CSS
 * 
 * Professioneller Slider mit Teaser-Cards darunter
 * Design wie: Füchse Berlin, Rot Weiss Ahlen, etc.
 */

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

.vmhb-hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: var(--slider-height, 600px);
    background: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.vmhb-hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ============================================
   HERO SLIDES
   ============================================ */

.vmhb-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.vmhb-hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.vmhb-hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
   OVERLAY
   ============================================ */

.vmhb-hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 2;
}

/* ============================================
   HERO CONTENT
   ============================================ */

.vmhb-hero-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 60px;
    color: white;
}

.vmhb-hero-slide-title {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: heroSlideUp 0.8s ease-out;
}

.vmhb-hero-slide-subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: heroSlideUp 0.8s ease-out 0.1s backwards;
    line-height: 1.6;
}

.vmhb-hero-slide-link {
    display: inline-block;
    background: white;
    color: #333;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    width: fit-content;
    animation: heroSlideUp 0.8s ease-out 0.2s backwards;
    border: 2px solid white;
    cursor: pointer;
}

.vmhb-hero-slide-link:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.vmhb-hero-slide-link:active {
    transform: scale(0.98);
}

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

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

.vmhb-hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 60px;
    z-index: 20;
    display: flex;
    gap: 8px;
}

.vmhb-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    font-size: 0;
}

.vmhb-hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.vmhb-hero-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.vmhb-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: none;
    border: none;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmhb-hero-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.vmhb-hero-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.vmhb-hero-arrow i {
    pointer-events: none;
}

.vmhb-hero-arrow-prev {
    left: 30px;
}

.vmhb-hero-arrow-next {
    right: 30px;
}

/* ============================================
   TEASER SECTION
   ============================================ */

.vmhb-teaser-section {
    background: white;
    padding: 40px;
    width: 100%;
}

.vmhb-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ============================================
   TEASER CARDS
   ============================================ */

.vmhb-teaser-card {
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: block;
    color: inherit;
}

.vmhb-teaser-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.vmhb-teaser-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.vmhb-teaser-card:hover .vmhb-teaser-card-image {
    transform: scale(1.05);
}

.vmhb-teaser-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
    transition: all 0.3s ease;
}

.vmhb-teaser-card:hover .vmhb-teaser-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.vmhb-teaser-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 24px;
    color: white;
}

.vmhb-teaser-card-category {
    display: inline-block;
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.vmhb-teaser-card-title {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: white;
}

.vmhb-teaser-card-excerpt {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   RESPONSIVE: TABLET
   ============================================ */

@media (max-width: 1024px) {
    .vmhb-hero-slider-wrapper {
        --slider-height: 500px;
    }

    .vmhb-hero-slide-content {
        padding: 60px 40px;
    }

    .vmhb-hero-slide-title {
        font-size: 2.5em;
    }

    .vmhb-hero-slide-subtitle {
        font-size: 1.1em;
    }

    .vmhb-teaser-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        padding: 30px 20px;
    }

    .vmhb-teaser-card {
        height: 280px;
    }

    .vmhb-hero-slider-dots {
        bottom: 25px;
        left: 40px;
        gap: 6px;
    }

    .vmhb-hero-dot {
        width: 10px;
        height: 10px;
    }

    .vmhb-hero-arrow {
        font-size: 2em;
        padding: 16px;
    }
}

/* ============================================
   RESPONSIVE: MOBILE (768px)
   ============================================ */

@media (max-width: 768px) {
    .vmhb-hero-slider-wrapper {
        --slider-height: 400px;
    }

    .vmhb-hero-slide-content {
        padding: 40px 30px;
    }

    .vmhb-hero-slide-title {
        font-size: 2em;
        margin-bottom: 12px;
    }

    .vmhb-hero-slide-subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .vmhb-hero-slide-link {
        padding: 12px 24px;
        font-size: 0.9em;
    }

    .vmhb-hero-slider-dots {
        bottom: 20px;
        left: 30px;
        gap: 6px;
    }

    .vmhb-hero-dot {
        width: 10px;
        height: 10px;
    }

    .vmhb-hero-dot.active {
        width: 24px;
    }

    .vmhb-hero-arrow {
        font-size: 1.8em;
        padding: 12px;
    }

    .vmhb-hero-arrow-prev {
        left: 12px;
    }

    .vmhb-hero-arrow-next {
        right: 12px;
    }

    .vmhb-teaser-section {
        padding: 30px 20px;
    }

    .vmhb-teaser-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        padding: 0;
    }

    .vmhb-teaser-card {
        height: 240px;
    }

    .vmhb-teaser-card-title {
        font-size: 1.05em;
    }

    .vmhb-teaser-card-excerpt {
        display: none;
    }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (480px)
   ============================================ */

@media (max-width: 480px) {
    .vmhb-hero-slider-wrapper {
        --slider-height: 300px;
    }

    .vmhb-hero-slide-content {
        padding: 30px 20px;
    }

    .vmhb-hero-slide-title {
        font-size: 1.6em;
        line-height: 1.2;
    }

    .vmhb-hero-slide-subtitle {
        font-size: 0.95em;
    }

    .vmhb-hero-slider-dots {
        bottom: 15px;
        left: 20px;
        gap: 5px;
    }

    .vmhb-hero-dot {
        width: 8px;
        height: 8px;
    }

    .vmhb-hero-dot.active {
        width: 20px;
    }

    .vmhb-teaser-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vmhb-teaser-card {
        height: 200px;
    }

    .vmhb-teaser-card-content {
        padding: 16px;
    }

    .vmhb-teaser-card-title {
        font-size: 1em;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.vmhb-hero-arrow:focus,
.vmhb-hero-dot:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .vmhb-hero-slide,
    .vmhb-hero-slide-content,
    .vmhb-hero-arrow,
    .vmhb-hero-dot,
    .vmhb-teaser-card,
    .vmhb-teaser-card-image {
        transition: none;
        animation: none;
    }
}
