/**
 * ================================================================
 * SCHNEIDERLEICHT - HeroSlider Styles
 * ================================================================
 * Service-basierter Video-Slider mit Text-Rotation
 * ================================================================
 */

/* ================================================================
   HERO SLIDER CONTAINER
   ================================================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* ================================================================
   COMPACT MODE - Fuer rechtliche/administrative Seiten
   Mini-Hero mit Background für Navigation + Megamenu Platz
   ================================================================ */

.hero-slider--compact {
    height: 50vh !important;      /* Halbe Viewport-Höhe für Megamenu-Platz */
    min-height: 400px !important; /* Mindestens 400px */
    max-height: 500px !important; /* Maximal 500px */
    background: #fff;             /* Weißer Hintergrund - passt besser zur Website */
    overflow: visible !important; /* KRITISCH: Megamenu darf herausragen */
    position: relative;
    z-index: 1000; /* Höher als nachfolgende Sections für Megamenu */
}

/* Sauberer weißer Hintergrund - kein Muster-Overlay */

.hero-slider--compact .hero-slider__content {
    /* Titel anzeigen - Best Practice für Legal-Seiten */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 55%;  /* Etwas unterhalb der Mitte, damit Platz für Logo bleibt */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.hero-slider--compact .hero-slider__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #131c25;
    margin: 0 0 8px 0;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.hero-slider--compact .hero-slider__subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Compact Mode: Floating Navigation - Styles in hero-nav.php (Single Source of Truth) */
/* Navigation-Positionierung wird in hero-nav.php definiert */

/* ================================================================
   VIDEO CONTAINER
   ================================================================ */

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease;
}

/* Overlay für Textlesbarkeit */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

/* ================================================================
   HERO CONTENT
   ================================================================ */

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem;
    pointer-events: none;
}

.hero-text-container,
.hero-cta {
    pointer-events: auto;
}

.hero-text-container {
    text-align: center;
    max-width: 800px;
    color: #fff;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-text-container.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.hero-text-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Subline - Dynamisch skaliert */
.hero-subline {
    display: inline-block;
    font-size: clamp(0.625rem, min(1.5vw, 2vh), 0.875rem);
    font-weight: 500;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    padding: clamp(0.25rem, 1vh, 0.5rem) clamp(0.75rem, 2vw, 1.5rem);
    background: rgba(139, 0, 18, 0.8);
    border-radius: 2px;
}

/* Headline - Dynamisch für alle Bildschirmgrößen */
.hero-headline {
    /* Kombiniert vw für Breite und vh für Höhe - passt sich an Portrait/Landscape an */
    font-size: clamp(1.75rem, min(6vw, 8vh), 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    /* Verhindert Überlauf bei langen Wörtern */
    word-wrap: break-word;
    hyphens: auto;
}

/* Description - Dynamisch skaliert */
.hero-description {
    font-size: clamp(0.875rem, min(2vw, 2.5vh), 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 2.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* CTA Button */
.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #8B0012;
    border: 2px solid #8B0012;
    border-radius: 0;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ================================================================
   SERVICE INDICATORS
   ================================================================ */

.hero-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-indicator.active {
    background: var(--indicator-color, #8B0012);
    border-color: var(--indicator-color, #8B0012);
    color: #fff;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.hero-indicator.active .indicator-dot {
    transform: scale(1.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.indicator-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Compact indicators on mobile */
@media (max-width: 768px) {
    .hero-indicators {
        bottom: 80px;
    }

    .indicator-label {
        display: none;
    }

    .hero-indicator {
        padding: 0.75rem;
        border-radius: 50%;
    }
}

/* ================================================================
   SCROLL INDICATOR
   ================================================================ */

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 15;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================ */

@media (max-width: 1024px) {
    .hero-content {
        padding: 1.5rem;
    }

    .hero-headline {
        font-size: clamp(1.75rem, min(5vw, 7vh), 3.5rem);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 100svh; /* Safe viewport height for mobile */
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 150px;
    }

    .hero-text-container {
        text-align: left;
        max-width: 100%;
    }

    .hero-headline {
        font-size: clamp(1.5rem, min(7vw, 5vh), 2.5rem);
    }

    .hero-description {
        font-size: clamp(0.8125rem, min(3vw, 2vh), 1rem);
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(1.25rem, min(8vw, 4.5vh), 2rem);
    }

    .hero-description {
        font-size: clamp(0.75rem, min(3.5vw, 2vh), 0.9375rem);
        margin-bottom: 2rem;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* ================================================================
   PORTRAIT/VERTICAL SCREEN ADJUSTMENTS
   ================================================================ */

/* Portrait-Modus (Höhe > Breite) */
@media (orientation: portrait) {
    .hero-headline {
        font-size: clamp(1.5rem, min(8vw, 5vh), 3rem);
    }

    .hero-description {
        font-size: clamp(0.8125rem, min(3.5vw, 2.5vh), 1.125rem);
    }

    .hero-content {
        padding-bottom: 180px;
    }
}

/* Sehr schmale Screens (z.B. iPhone SE) */
@media (max-width: 375px) {
    .hero-headline {
        font-size: clamp(1.125rem, 7vw, 1.75rem);
    }

    .hero-subline {
        font-size: 0.5625rem;
        letter-spacing: 1px;
        padding: 0.25rem 0.625rem;
    }

    .hero-description {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .hero-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.6875rem;
    }
}

/* Landscape auf Mobilgeräten */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-content {
        align-items: center;
        padding-bottom: 80px;
    }

    .hero-text-container {
        text-align: center;
    }

    .hero-headline {
        font-size: clamp(1.25rem, 5vh, 2rem);
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: clamp(0.75rem, 2.5vh, 1rem);
        margin-bottom: 1rem;
    }

    .hero-subline {
        margin-bottom: 0.5rem;
    }

    .hero-indicators {
        bottom: 60px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        transition: none;
    }

    .hero-text-container {
        transition: none;
    }

    .hero-scroll-indicator {
        animation: none;
    }

    .hero-indicator.active .indicator-dot {
        animation: none;
    }
}
