/* public/assets/css/frontend/pages/hero.css

/* ==========================================================================
 * Hero-Sektion Komponenten und Stile
 * ========================================================================== */

/* ==========================================================================
 * INHALTSVERZEICHNIS:
 * 1. GRUNDEINSTELLUNGEN
 * 2. HERO-CONTAINER
 * 3. HERO-BILDER
 * 4. HERO-TYPOGRAFIE
 * 5. AKTIONSELEMENTE
 * 6. SEKTIONSÜBERGÄNGE
 * 7. BARRIEREFREIHEIT
 * 8. RESPONSIVE ANPASSUNGEN
 * ========================================================================== */


/* ==========================================================================
 * 1. GRUNDEINSTELLUNGEN
 * ========================================================================== */

/* ---------- 1.1 Scrollverhalten ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ---------- 1.2 Sektionsabstände ---------- */
main > section:first-child {
    margin-top: 80px;
}


/* ==========================================================================
 * 2. HERO-CONTAINER
 * ========================================================================== */

/* ---------- 2.1 Hero-Bereich ---------- */
.hero-section,
.hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 0;
    display: flex;
    align-items: center;
    background-color: transparent;
    position: relative;
}


/* ==========================================================================
 * 3. HERO-BILDER
 * ========================================================================== */

/* ---------- 3.1 Hero-Bildelemente ---------- */
.hero__image {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
    background-color: transparent;
}

.hero__image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero__image img[src],
.hero__image img.loaded {
    opacity: 1;
}


/* ==========================================================================
 * 4. HERO-TYPOGRAFIE
 * ========================================================================== */

/* ---------- 4.1 Hero-Überschriften ---------- */
.hero h1,
.hero__title {
    color: var(--primary-color, #1a3c5a);
    font-size: var(--hero-title-size, clamp(1.8rem, 4vw, 2.5rem));
    line-height: var(--heading-line-height, 1.2);
    margin-bottom: var(--heading-margin-bottom, 1rem);
    margin-top: var(--heading-margin-top, 0);
    font-weight: var(--heading-font-weight, 700);
}

/* ---------- 4.2 Hero-Section spezifische Überschriften ---------- */
.hero-section h1 {
    font-size: clamp(2.125rem, 5vw, 2.75rem);
    margin-bottom: 1.5rem;
}

/* ---------- 4.3 Bootstrap Display-Klassen Override ---------- */
.hero .display-4,
.hero-section .display-4 {
    font-size: var(--hero-title-size, clamp(1.8rem, 4vw, 2.5rem));
    line-height: var(--heading-line-height, 1.2);
    margin-bottom: var(--heading-margin-bottom, 1rem);
    margin-top: var(--heading-margin-top, 0);
    font-weight: var(--heading-font-weight, 700);
}

/* Spezifischer Override für Display-4 wenn größere Schrift gewünscht */
h1.display-4 {
    font-size: clamp(2.125rem, 5vw, 3.125rem);
}

/* ---------- 4.4 Hero-Untertitel ---------- */
.hero p.lead,
.hero__subtitle {
    color: #555555;
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


/* ==========================================================================
 * 5. AKTIONSELEMENTE
 * ========================================================================== */

/* ---------- 5.1 CTA-Bereich ---------- */
.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- 5.2 Hero-Buttons ---------- */
.hero .btn,
.hero-section .btn,
.hero__cta .btn {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    min-width: 200px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.hero .btn:hover,
.hero-section .btn:hover,
.hero__cta .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38, 166, 154, 0.3);
}


/* ==========================================================================
 * 6. SEKTIONSÜBERGÄNGE
 * ========================================================================== */

/* ---------- 6.1 Folgesektion ---------- */
.hero + section,
.hero-section + section,
#vorteile {
    background-color: #f8f9fa;
    padding: 4rem 0;
}


/* ==========================================================================
 * 7. BARRIEREFREIHEIT
 * ========================================================================== */

/* ---------- 7.1 Fokusdarstellung ---------- */
.hero a:focus-visible,
.hero-section a:focus-visible {
    outline: 3px solid var(--accent-color, #26a69a);
    outline-offset: 4px;
}

/* ---------- 7.2 Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero__image img {
        transition: none;
    }
}

/* ---------- 7.3 Dark Mode Unterstützung ---------- */
@media (prefers-color-scheme: dark) {
    /* Hero-Hintergründe */
    .hero-section,
    .hero {
        background-color: var(--light-gray) !important;
    }
    
    /* Hero-Bild Dark-Mode-Optimierung */
    .hero__image {
        /* Alle Hintergrund-Effekte entfernt für cleanen Look */
    }
    
    .hero__image img {
        filter: 
            brightness(1.5) 
            contrast(1.4)
            drop-shadow(0 0 2px rgba(0, 0, 0, 0.8))
            drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    /* Hero-Typografie */
    .hero h1,
    .hero__title,
    .hero-section h1,
    .hero .display-4,
    .hero-section .display-4 {
        color: var(--accent-color) !important;
    }
    
    .hero p.lead,
    .hero__subtitle {
        color: #e0e0e0 !important;
    }
    
    /* Hero-Buttons Dark Mode */
    .hero .btn,
    .hero-section .btn,
    .hero__cta .btn {
        background-color: transparent;
        border-color: var(--accent-color);
        color: var(--accent-color);
    }
    
    .hero .btn:hover,
    .hero-section .btn:hover,
    .hero__cta .btn:hover {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: #1a1a1a;
    }
    
    /* Folgesektion Dark Mode */
    .hero + section,
    .hero-section + section,
    #vorteile {
        background-color: var(--medium-gray) !important;
    }
}


/* ==========================================================================
 * 8. RESPONSIVE ANPASSUNGEN
 * ========================================================================== */

/* ---------- 8.1 Tablet-Anpassungen ---------- */
@media (max-width: 991px) {
    .hero-section,
    .hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* ---------- 8.2 Mobile-Anpassungen ---------- */
@media (max-width: 767px) {
    .hero-section,
    .hero {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero__image {
        max-width: 350px;
        min-height: 200px;
    }
    
    .hero__image img {
        max-height: 300px;
    }
}

/* ---------- 8.3 Mobile CTA-Anpassungen ---------- */
@media (max-width: 575px) {
    .hero__cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero .btn,
    .hero-section .btn,
    .hero__cta .btn {
        width: 100%;
        white-space: normal;
        min-width: auto;
    }
}