/**
 * File: hero.css
 * Purpose: Styles for hero areas (homepage video hero, content hero blocks) including adaptive typography,
 *          glassmorphism overlays and responsive height adjustments.
 * Guidelines: Keep visual consistency with cards & page hero; reuse variables for spacing and colors.
 */

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-bright-white);
    background: var(--color-bg-black);
    /* Reserviert initial Platz für Video (Fallback bei sehr schnellem Reflow) */
    min-height: 640px;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    /* Verhindert kurzzeitige weiße Fläche bei verspätetem Paint */
    background: var(--color-bg-black);
}

.home-page .hero-section {
    background: transparent;
}

.hero-content-section {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xxl);
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-medium);
}

.hero-content-section h1 {
    margin-top: 0;
    font-size: var(--font-size-intro-h1);
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-extra-light);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content-section .sub-headline {
    font-size: var(--font-size-intro-sub);
    color: var(--color-primary);
    font-weight: var(--font-weight-normal);
    margin-bottom: 0;
}

.home-page .hero-content-section {
    margin-bottom: var(--spacing-xxxl);
}

.page-hero-section {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xxl);
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--color-border-light);
}

.page-hero-section h1 {
    font-size: var(--font-size-page-hero-h1);
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-extra-light);
    color: var(--color-text-primary);
}

.page-hero-section .sub-headline {
    font-size: var(--font-size-page-hero-sub);
    color: var(--color-primary);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--spacing-lg);
    display: block;
}

.page-hero-section .hero-description {
    font-size: var(--font-size-page-hero-desc);
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

/* Spezifischer Abstand nur für ImmoScout Button auf Kauf-Seite */
.btn-immoscout-spacing {
    display: inline-block;
    margin-top: var(--spacing-lg);
}

@media screen and (max-width: 768px) {
    .hero-section {
    height: 50vh;
    min-height: 0;
    max-height: 420px;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
    height: 38vh;
    min-height: 0;
    max-height: 330px;
    }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    .hero-section {
        height: 80vh;
        min-height: 0;
        max-height: 500px;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 75vh;
        min-height: 0;
        max-height: 420px;
    }
}

