/**
 * TimeLokator Feature Showcase Styles - WIDE Layout
 * Bild über volle Breite, Buttons horizontal darunter
 */

/* ============================================
   FEATURE SHOWCASE CONTAINER
   ============================================ */

.feature-showcase {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--landing-line, #d8cfc3);
    border-radius: 14px;
    background: #fffdf9;
}

.feature-showcase__wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   BILD-BEREICH (volle Breite)
   ============================================ */

.feature-showcase__images {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    
    aspect-ratio: 2 / 1; /* Ca. 50% Höhe bei voller Breite */
}

.feature-showcase__image-wrapper {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-showcase__image-wrapper.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.feature-showcase__image-wrapper.is-inactive {
    opacity: 0;
    transform: scale(1.02);
    z-index: 1;
}

.feature-showcase__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   STEUERUNGS-BEREICH (horizontal)
   ============================================ */

.feature-showcase__controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   BUTTONS (horizontal nebeneinander)
   ============================================ */

.feature-showcase__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-showcase__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--landing-line, #d8cfc3);
    border-radius: 8px;
    background: #ffffff;
    color: var(--landing-muted, #5e554d);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.feature-showcase__button:hover {
    background: #f5f0e8;
    border-color: #c9bdb0;
}

.feature-showcase__button.is-active {
    background: var(--landing-accent, #0b6b5f);
    border-color: var(--landing-accent, #0b6b5f);
    color: var(--landing-accent-contrast, #ffffff);
}

.feature-showcase__button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-showcase__button-text {
    white-space: nowrap;
}

/* ============================================
   INFO-BOX (unter den Buttons)
   ============================================ */

.feature-showcase__info {
    padding: 20px;
    border: 1px solid var(--landing-line, #d8cfc3);
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.feature-showcase__info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    margin: 0 auto 16px auto;
}

.feature-showcase__info-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--landing-text, #1f1b17);
}

.feature-showcase__info-description {
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--landing-muted, #5e554d);
    max-width: 600px;
}

/* Subheading unter der Hauptüberschrift */
.landing-showcase-subheading {
    margin: 10px 0 24px 0;
    color: var(--landing-muted, #5e554d);
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.5;
}


/* ============================================
   PLAY/PAUSE BUTTON - AUSGEBLENDET
   ============================================ */

.feature-showcase__play-pause {
    display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .feature-showcase__images {
        aspect-ratio: 16 / 10;
    }
    
    .feature-showcase__buttons {
        gap: 6px;
    }
    
    .feature-showcase__button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .feature-showcase__info {
        padding: 16px;
    }
    
    .feature-showcase__info-title {
        font-size: 18px;
    }
    
    .feature-showcase__info-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .feature-showcase {
        padding: 16px;
    }
    
    .feature-showcase__images {
        aspect-ratio: 4 / 3;
    }
    
    .feature-showcase__button-text {
        display: none;
    }
    
    .feature-showcase__button {
        padding: 10px;
    }
}

/* ============================================
   ANIMATIONEN
   ============================================ */

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

.feature-showcase__info {
    animation: fadeInUp 0.4s ease;
}

/* ============================================
   BILD-LADEZUSTAND
   ============================================ */

.feature-showcase__image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: -1;
}

.feature-showcase__image-wrapper.is-active::before {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   FOKUS-STYLES (Barrierefreiheit)
   ============================================ */

.feature-showcase__button:focus-visible {
    outline: 2px solid var(--landing-accent, #0b6b5f);
    outline-offset: 2px;
}

/* ============================================
   REDUZIERTE BEWEGUNG
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .feature-showcase__image-wrapper {
        transition: none;
    }
    
    .feature-showcase__info {
        animation: none;
    }
}
