﻿/* =====================================================
   VISUELLE VERBESSERUNGEN – Hero Slideshow & Visual Grid
   ===================================================== */

/* ── HERO HINTERGRUND-SLIDESHOW ── */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide--active {
    opacity: 1;
}

/* Fallback Gradient wenn Bilder fehlen */
.hero-slide:not([style*="background-image"]) {
    background: linear-gradient(135deg, 
        rgba(13, 27, 42, 0.95) 0%, 
        rgba(27, 58, 92, 0.9) 50%, 
        rgba(37, 99, 235, 0.85) 100%);
}

/* Dunkles Overlay für bessere Textlesbarkeit */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.85) 0%,
        rgba(13, 27, 42, 0.75) 50%,
        rgba(13, 27, 42, 0.85) 100%
    );
    z-index: 1;
}

/* Bestehende Overlays bleiben über dem Foto */
.hero-grid-overlay {
    z-index: 2;
}

.hero-glow {
    z-index: 3;
}

/* Hero Content muss über allem liegen */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-stats-bar {
    position: relative;
    z-index: 10;
}


/* ── VISUAL GRID SECTION ── */
.section--visual-grid {
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-white) 100%);
    position: relative;
    overflow: hidden;
}

.visual-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.visual-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--trans);
    display: flex;
    flex-direction: column;
}

.visual-card--large {
    grid-row: span 2;
}

.visual-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.visual-card-img {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--c-bg-alt);
    overflow: hidden;
}

.visual-card--large .visual-card-img {
    height: 100%;
    min-height: 400px;
}

/* Platzhalter wenn Bild fehlt */
.visual-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(245, 158, 11, 0.1) 100%);
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.2);
    transition: var(--trans);
}

.visual-card:hover .visual-card-placeholder {
    transform: scale(1.1);
    color: rgba(37, 99, 235, 0.3);
}

/* Platzhalter ausblenden wenn Bild geladen ist */
.visual-card-img[style*="background-image"] .visual-card-placeholder {
    opacity: 0;
    pointer-events: none;
}

.visual-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-card-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.visual-card-content h3 i {
    color: var(--c-accent);
    font-size: 1.5rem;
}

.visual-card-content p {
    color: var(--c-text-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}


/* ── FOOTER MIT PATTERN ── */
.footer {
    position: relative;
    background: var(--c-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/footer/pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.footer > .container {
    position: relative;
    z-index: 1;
}

/* Optional: Dezenter Gradient-Overlay */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.3), transparent);
    pointer-events: none;
    z-index: 0;
}


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .visual-grid {
        grid-template-columns: 1fr;
    }
    
    .visual-card--large {
        grid-row: auto;
    }
    
    .visual-card--large .visual-card-img {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .visual-card-img {
        height: 220px;
    }
    
    .visual-card-content {
        padding: 1.5rem;
    }
    
    .visual-card-content h3 {
        font-size: 1.2rem;
    }
    
    .visual-card-placeholder {
        font-size: 3rem;
    }
    
    .hero-slide {
        background-position: center center;
    }
}

@media (max-width: 480px) {
    .visual-card-img {
        height: 180px;
    }
    
    .visual-card-content {
        padding: 1.25rem;
    }
    
    .visual-card-content h3 {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .visual-card-content h3 i {
        font-size: 1.25rem;
    }
}


/* ── ANIMATIONEN ── */
@keyframes slideshow-fade {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}

/* Slideshow Animation wird via JavaScript gesteuert */
