/**
 * Fuhrpark Page Styles
 *
 * Hero Section + Featured Fahrzeuge + Gallery Optimierungen
 * Mobile-first mit progressiven Breakpoints
 *
 * Struktur:
 * 1. Hero Section
 * 2. Featured Section
 * 3. Gallery Section Header
 * 4. Gallery Optimierungen
 * 5. Content Cleanup
 * 6. Responsive Breakpoints
 *
 * @package SLV_Transporte
 * @since 1.0.0
 */

/* ==========================================================================
   1. FUHRPARK HERO SECTION
   ========================================================================== */

/**
 * Hero Container
 * Full-width mit Hintergrundbild und Overlay
 */
.fuhrpark-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--slv-blue-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/**
 * Hero Overlay
 * Dunkler Gradient fuer Textlesbarkeit
 */
.fuhrpark-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 119, 160, 0.85) 0%,
        rgba(26, 26, 26, 0.75) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    z-index: 1;
}

/**
 * Hero Content Container
 */
.fuhrpark-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--slv-space-l) var(--slv-space-m);
    color: var(--slv-bg-white);
}

/**
 * Hero Titel
 */
.fuhrpark-hero__title {
    font-family: var(--slv-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--slv-space-xs);
    color: var(--slv-bg-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

/**
 * Hero Subtitle
 */
.fuhrpark-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: var(--slv-space-m);
    color: var(--slv-bg-white);
}

/**
 * Hero Stats Badges Container
 */
.fuhrpark-hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--slv-space-s);
    flex-wrap: wrap;
    margin-top: var(--slv-space-s);
}

/**
 * Individual Stat Badge
 */
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--slv-space-xs) var(--slv-space-s);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--slv-radius-m);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 90px;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-badge__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slv-primary-yellow);
    line-height: 1.2;
}

.stat-badge__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-top: 2px;
}

/* ==========================================================================
   2. FEATURED FAHRZEUGE SECTION
   ========================================================================== */

/**
 * Featured Section Container
 */
.fuhrpark-featured {
    padding: var(--slv-space-l) 0;
    background: var(--slv-bg-light);
}

/**
 * Featured Heading
 */
.fuhrpark-featured__heading {
    text-align: center;
    margin-bottom: var(--slv-space-m);
    color: var(--slv-text-dark);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/**
 * Featured Grid - 3 Spalten
 */
.fuhrpark-featured__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--slv-space-m);
}

/**
 * Featured Card
 */
.featured-card {
    background: var(--slv-bg-white);
    border-radius: var(--slv-radius-l);
    overflow: hidden;
    box-shadow: var(--slv-shadow-md);
    transition: all 0.3s ease;
}

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

/**
 * Featured Card Image
 */
.featured-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slv-bg-light);
}

.featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-card__image img {
    transform: scale(1.05);
}

/**
 * Featured Card Content
 */
.featured-card__content {
    padding: var(--slv-space-m);
}

.featured-card__title {
    font-size: var(--slv-font-xl);
    margin-bottom: var(--slv-space-xs);
    color: var(--slv-text-dark);
}

.featured-card__desc {
    font-size: var(--slv-font-m);
    color: var(--slv-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   3. GALLERY SECTION HEADER
   ========================================================================== */

/**
 * Gallery Section Header
 */
.fuhrpark-gallery-section {
    padding: var(--slv-space-l) 0 var(--slv-space-s);
    background: var(--slv-bg-white);
}

.fuhrpark-gallery-section__heading {
    text-align: center;
    color: var(--slv-text-dark);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0;
}

/* ==========================================================================
   4. GALLERY OPTIMIERUNGEN
   ========================================================================== */

/**
 * Fuhrpark Content Container
 */
.fuhrpark-content {
    padding: var(--slv-space-s) 0 var(--slv-space-l);
    background: var(--slv-bg-white);
}

/**
 * Gallery Container - Full Width
 * Bricht aus dem Container aus fuer maximale Bildgroesse
 */
.fuhrpark-page .fuhrpark-content .wp-block-gallery {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/**
 * Gallery Grid - Tight Grid mit 6 Spalten
 * Desktop: 6 Spalten, Tablet: 4, Mobile: 2
 * Gap: 8px fuer professionellen, kompakten Look
 * Hohe Spezifizitaet um WordPress columns-X Klassen zu ueberschreiben
 */
.fuhrpark-page .wp-block-gallery,
.fuhrpark-page .wp-block-gallery.columns-3,
.fuhrpark-page .wp-block-gallery.columns-default {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

/**
 * Gallery Images - Volle Zellenbreite
 */
.fuhrpark-page .wp-block-gallery .wp-block-image {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    margin: 0 !important;
}

/**
 * Figure innerhalb wp-block-image
 */
.fuhrpark-page .wp-block-gallery .wp-block-image figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.fuhrpark-page .wp-block-gallery .wp-block-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

.fuhrpark-page .wp-block-gallery .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   5. CONTENT CLEANUP - Duplikate ausblenden
   ========================================================================== */

/**
 * Verstecke die originale H1 (entry-title)
 * Bereits in gallery.css, hier zur Sicherheit
 */
.fuhrpark-page .entry-title {
    display: none !important;
}

/**
 * Verstecke den alten Content vor der Gallery
 * Nur H2 "Unser Fuhrpark" und Intro-Texte, NICHT die CTA-Ueberschrift
 */
.fuhrpark-page .fuhrpark-content > .container > .wp-block-heading:first-child {
    display: none !important;
}

.fuhrpark-page .fuhrpark-content > .container > p:not(.fuhrpark-cta p) {
    display: none !important;
}

.fuhrpark-page .fuhrpark-content .wp-block-separator {
    display: none !important;
}

/**
 * CTA Bereich Styling
 * Kein Hintergrund - transparenter Look
 */
.fuhrpark-page .fuhrpark-cta {
    margin-top: var(--slv-space-l);
    padding: var(--slv-space-l);
    background: transparent;
    text-align: center;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/**
 * Tablet (min 640px)
 */
@media (min-width: 640px) {
    .fuhrpark-hero {
        min-height: 50vh;
    }

    .fuhrpark-featured__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fuhrpark-page .wp-block-gallery,
    .fuhrpark-page .wp-block-gallery.columns-3,
    .fuhrpark-page .wp-block-gallery.columns-default {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

/**
 * Desktop (min 1024px)
 */
@media (min-width: 1024px) {
    .fuhrpark-hero {
        min-height: 55vh;
    }

    .fuhrpark-hero__content {
        padding: var(--slv-space-xl) var(--slv-space-m);
    }

    .stat-badge {
        min-width: 110px;
        padding: var(--slv-space-s) var(--slv-space-m);
    }

    .stat-badge__number {
        font-size: 1.75rem;
    }

    .stat-badge__label {
        font-size: 0.8rem;
    }

    .fuhrpark-featured {
        padding: var(--slv-space-xl) 0;
    }

    .fuhrpark-featured__grid {
        gap: var(--slv-space-l);
    }

    .fuhrpark-page .wp-block-gallery,
    .fuhrpark-page .wp-block-gallery.columns-3,
    .fuhrpark-page .wp-block-gallery.columns-default {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px !important;
    }
}

/**
 * Large Desktop (min 1440px)
 */
@media (min-width: 1440px) {
    .fuhrpark-hero {
        min-height: 50vh;
    }

    .fuhrpark-page .wp-block-gallery,
    .fuhrpark-page .wp-block-gallery.columns-3,
    .fuhrpark-page .wp-block-gallery.columns-default {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 14px !important;
    }
}

/* ==========================================================================
   7. ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */

/**
 * Reduzierte Bewegung fuer empfindliche Nutzer
 */
@media (prefers-reduced-motion: reduce) {
    .featured-card,
    .stat-badge,
    .fuhrpark-page .wp-block-gallery .wp-block-image {
        transition: none;
    }

    .featured-card:hover,
    .fuhrpark-page .wp-block-gallery .wp-block-image:hover {
        transform: none;
    }

    .featured-card:hover .featured-card__image img {
        transform: none;
    }
}

/**
 * Focus States fuer Keyboard-Navigation
 */
.featured-card:focus-within {
    outline: 3px solid var(--slv-primary-yellow);
    outline-offset: 4px;
}

/* ==========================================================================
   8. PRINT STYLES
   ========================================================================== */

@media print {
    .fuhrpark-hero {
        min-height: auto;
        padding: 2rem 0;
        background: none !important;
        color: #000;
    }

    .fuhrpark-hero__overlay {
        display: none;
    }

    .fuhrpark-hero__title,
    .fuhrpark-hero__subtitle {
        color: #000;
        text-shadow: none;
    }

    .stat-badge {
        background: #f0f0f0;
        border: 1px solid #ccc;
    }

    .stat-badge__number {
        color: #1177A0;
    }

    .fuhrpark-featured,
    .fuhrpark-gallery-section,
    .fuhrpark-content {
        background: none;
    }

    .featured-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .fuhrpark-page .wp-block-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
