/* Hero Section mit Vollbild-Hintergrundbild */

/* Option 1: Vollbild Hero (100vh) */
.hero-fullscreen {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Option 2: Große Hero Section (80vh) */
.hero-large {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Option 3: Hero mit fester Höhe */
.hero-fixed {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dunkles Overlay für bessere Textlesbarkeit */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 50% schwarz */
    z-index: 1;
}

/* Gradient Overlay Alternative */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Content Container - über dem Overlay */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Spezielle Styles für Hero-Elemente */
.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-content .btn {
    margin: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-fullscreen,
    .hero-large {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .hero-fixed {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
}

/* Parallax-Effekt (optional) */
.hero-parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Für bessere Performance auf Mobile */
@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll;
    }
}

/* Hero mit Video-Hintergrund */
.hero-video {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Blur-Effekt für Hintergrund */
.hero-blur {
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Animation für Hero-Content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content.animate {
    animation: fadeInUp 1s ease-out;
}

/* Scroll-Indikator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Verschiedene Overlay-Patterns */
.hero-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.1) 10px,
            rgba(0, 0, 0, 0.1) 20px
        );
    z-index: 1;
}

/* Farbige Overlays */
.hero-blue-overlay {
    background-color: rgba(13, 110, 253, 0.7); /* Bootstrap primary */
}

.hero-green-overlay {
    background-color: rgba(25, 135, 84, 0.7); /* Bootstrap success */
}

/* Barrierefreiheit für Hero-Sections */
@media (prefers-reduced-motion: reduce) {
    .hero-content.animate {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .hero-parallax {
        background-attachment: scroll;
    }
}

/* High Contrast Mode */
@media (prefers-color-scheme: dark), 
       (prefers-contrast: high) {
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .hero-content h1,
    .hero-content .lead {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    }
}

body.high-contrast .hero-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

body.high-contrast .hero-content {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border: 2px solid white;
}