/**
 * HERO UNIFIED CSS - COMPLETE HERO SYSTEM CONSOLIDATION
 * 
 * Consolidates ALL Hero CSS from:
 * - hero-banner-consolidated.css (Core hero system)
 * - hero-responsive.css (Mobile-first responsive design)
 * - ux-optimizations.css (Hero content, title, subtitle)
 * - responsive-unified.css (Browser compatibility, mobile responsive)
 * - print-dark-mode.css (Hero dark mode and print styles)
 * - emergency-fix.css (Hero overlay and background fixes)
 * 
 * @package RentAssistenz
 * @version 2.0.0 - COMPLETE Hero Consolidation
 * @priority 50 (loads early for hero section)
 */

/* =============================================================================
   CSS CUSTOM PROPERTIES - HERO DESIGN SYSTEM
   ============================================================================= */

/* Using existing CSS variables from style.css - no new variables needed */

/* =============================================================================
   HERO BANNER - ORIGINAL WORKING ARCHITECTURE
   ============================================================================= */

/* ALLE OVERLAYS ENTFERNEN - Verursacht weiße geometrische Shapes */
.dlab-bnr-inr::before,
.dlab-bnr-inr::after {
    display: none;
}

/* Theme Overlay System komplett deaktivieren für Hero */
.dlab-bnr-inr.overlay-white-light::after,
.dlab-bnr-inr.overlay-white-middle::after,
.dlab-bnr-inr.overlay-white-dark::after,
.dlab-bnr-inr.overlay-black-light::after,
.dlab-bnr-inr.overlay-black-middle::after,
.dlab-bnr-inr.overlay-black-dark::after,
.dlab-bnr-inr.overlay-primary-light::after,
.dlab-bnr-inr.overlay-primary-middle::after,
.dlab-bnr-inr.overlay-primary-dark::after,
.dlab-bnr-inr.overlay-primary::after {
    display: none;
}

/* Alle dlab-img-overlay Effekte deaktivieren für Hero */
.dlab-bnr-inr .dlab-img-overlay1::before,
.dlab-bnr-inr .dlab-img-overlay1::after,
.dlab-bnr-inr .dlab-img-overlay2::before,
.dlab-bnr-inr .dlab-img-overlay2::after,
.dlab-bnr-inr .dlab-img-overlay3::before,
.dlab-bnr-inr .dlab-img-overlay3::after,
.dlab-bnr-inr .dlab-img-overlay4::before,
.dlab-bnr-inr .dlab-img-overlay4::after,
.dlab-bnr-inr .dlab-img-overlay5::before,
.dlab-bnr-inr .dlab-img-overlay5::after,
.dlab-bnr-inr .dlab-img-overlay6::before,
.dlab-bnr-inr .dlab-img-overlay6::after,
.dlab-bnr-inr .dlab-img-overlay7::before,
.dlab-bnr-inr .dlab-img-overlay7::after,
.dlab-bnr-inr .dlab-img-overlay8::before,
.dlab-bnr-inr .dlab-img-overlay8::after,
.dlab-bnr-inr .dlab-img-overlay9::before,
.dlab-bnr-inr .dlab-img-overlay9::after,
.dlab-bnr-inr .dlab-img-overlay10::before,
.dlab-bnr-inr .dlab-img-overlay10::after,
.dlab-bnr-inr .dlab-img-overlay11::before,
.dlab-bnr-inr .dlab-img-overlay11::after,
.dlab-bnr-inr .dlab-img-overlay12::before,
.dlab-bnr-inr .dlab-img-overlay12::after {
    display: none;
}

/* NUCLEAR OPTION - Disable ALL possible overlay shapes and geometric elements */
.dlab-bnr-inr *::before,
.dlab-bnr-inr *::after {
    display: none;
}

/* Re-enable only content elements we need */
.dlab-bnr-inr .container::before,
.dlab-bnr-inr .container::after,
.dlab-bnr-inr .section-head::before,
.dlab-bnr-inr .section-head::after,
.dlab-bnr-inr .bnr-content::before,
.dlab-bnr-inr .bnr-content::after,
.dlab-bnr-inr .btn::before,
.dlab-bnr-inr .btn::after {
    display: block;
}

/* Additional theme shape systems that might cause geometric overlays */
.dlab-bnr-inr .shape-container,
.dlab-bnr-inr .shape-wrapper,
.dlab-bnr-inr .geometric-shape,
.dlab-bnr-inr .overlay-shape,
.dlab-bnr-inr .decoration-element,
.dlab-bnr-inr .bg-shape,
.dlab-bnr-inr .pattern-overlay,
.dlab-bnr-inr .theme-shape,
.dlab-bnr-inr .design-element {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/* Theme framework shape systems */
.dlab-bnr-inr [class*="shape-"],
.dlab-bnr-inr [class*="overlay-"],
.dlab-bnr-inr [class*="decoration-"],
.dlab-bnr-inr [class*="pattern-"],
.dlab-bnr-inr [class*="geometric-"] {
    display: none;
}

/* Hero-Banner Hauptregeln - PROFESSIONELLE WORDPRESS SPEZIFIZITÄT */
html body .dlab-bnr-inr,
body.home .dlab-bnr-inr,
body.front-page .dlab-bnr-inr,
.page .dlab-bnr-inr,
.dlab-bnr-inr {
    background-image: url('../theme/images/main-slider/slide6.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: var(--rent-deep-blue); /* Corporate Fallback */
    min-height: 100vh;
    position: relative;
    z-index: var(--z-ground);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero-Text sichtbar machen - ÜBER GRAUEN OVERLAY */
html body .dlab-bnr-inr .section-head,
html body .dlab-bnr-inr .bnr-content,
html body .dlab-bnr-inr .container,
body .dlab-bnr-inr .section-head,
body .dlab-bnr-inr .bnr-content,
body .dlab-bnr-inr .container,
.dlab-bnr-inr .section-head,
.dlab-bnr-inr .bnr-content,
.dlab-bnr-inr .container {
    position: relative;
    z-index: 1000; /* ÜBER allen Overlays */
    color: #ffffff;
}

html body .dlab-bnr-inr .section-head h2,
html body .dlab-bnr-inr .box-title,
html body .dlab-bnr-inr h1,
html body .dlab-bnr-inr h2,
html body .dlab-bnr-inr h3,
body .dlab-bnr-inr .section-head h2,
body .dlab-bnr-inr .box-title,
body .dlab-bnr-inr h1,
body .dlab-bnr-inr h2,
body .dlab-bnr-inr h3,
.dlab-bnr-inr .section-head h2,
.dlab-bnr-inr .box-title,
.dlab-bnr-inr h1,
.dlab-bnr-inr h2,
.dlab-bnr-inr h3 {
    position: relative;
    z-index: 1001 !important; /* ÜBER allem */
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

html body .dlab-bnr-inr .section-head p,
html body .dlab-bnr-inr p,
body .dlab-bnr-inr .section-head p,
body .dlab-bnr-inr p,
.dlab-bnr-inr .section-head p,
.dlab-bnr-inr p {
    position: relative;
    z-index: 1001 !important; /* ÜBER allem */
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* === Hero Content === */
.hero-banner__content,
.dlab-bnr-inr .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--hero-text-color);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-banner__title,
.dlab-bnr-inr h1 {
    font-size: var(--hero-title-size);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner__subtitle,
.dlab-bnr-inr .lead {
    font-size: var(--hero-subtitle-size);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* === Hero Buttons - ÜBER GRAUEM OVERLAY === */
html body .dlab-bnr-inr .btn,
html body .dlab-bnr-inr a.btn,
html body .dlab-bnr-inr .site-button,
body .dlab-bnr-inr .btn,
body .dlab-bnr-inr a.btn,
body .dlab-bnr-inr .site-button,
.dlab-bnr-inr .btn,
.dlab-bnr-inr a.btn,
.dlab-bnr-inr .site-button,
.hero-banner__cta,
.dlab-bnr-inr .hero-banner__cta {
    position: relative;
    z-index: 1002 !important; /* HÖCHSTE EBENE - ÜBER allem */
    background: #007cba !important;
    background-color: #007cba !important;
    color: #ffffff;
    border: 2px solid #007cba !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    min-height: 56px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    margin: 10px !important;
    visibility: visible;
    opacity: 1;
}

/* Button Hover Effects - ÜBER OVERLAY */
html body .dlab-bnr-inr .btn:hover,
html body .dlab-bnr-inr a.btn:hover,
body .dlab-bnr-inr .btn:hover,
body .dlab-bnr-inr a.btn:hover,
.dlab-bnr-inr .btn:hover,
.dlab-bnr-inr a.btn:hover,
.hero-banner__cta:hover,
.dlab-bnr-inr .btn:hover {
    position: relative;
    z-index: 1003 !important; /* NOCH HÖHER beim Hover */
    background: #053068 !important;
    background-color: #053068 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4) !important;
    color: #ffffff;
    text-decoration: none !important;
}

/* =============================================================================
   HERO RESPONSIVE DESIGN - ORIGINAL WORKING VERSION
   ============================================================================= */

/* Large Mobile */
@media (max-width: 768px) {
    .dlab-bnr-inr {
        min-height: 70vh !important;
        background-attachment: scroll;
        padding: 60px 0 30px 0 !important;
    }
    
    .dlab-bnr-inr .section-head h2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    .dlab-bnr-inr .section-head p {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .dlab-bnr-inr {
        min-height: 60vh !important;
        padding: 40px 0 20px 0 !important;
    }
    
    .dlab-bnr-inr .section-head h2 {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    
    .dlab-bnr-inr .section-head p {
        font-size: 14px !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .dlab-bnr-inr {
        min-height: 75vh !important;
    }
    
    .dlab-bnr-inr .section-head h2 {
        font-size: 36px !important;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .dlab-bnr-inr {
        min-height: 100vh;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-banner,
    .dlab-bnr-inr {
        min-height: 35vh;
        padding: 40px 0 15px 0;
    }
    
    .hero-banner__title,
    .dlab-bnr-inr h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-banner__subtitle,
    .dlab-bnr-inr .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* =============================================================================
   HERO LAYOUT FIXES - LEGACY SUPPORT
   ============================================================================= */

/* Support for existing theme structure */
.dlab-bnr-inr .dlab-bnr-inr-entry {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
}

.dlab-bnr-inr .slide-content {
    text-align: center;
    color: var(--hero-text-color);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero breadcrumbs styling */
.hero-banner__breadcrumb,
.dlab-bnr-inr .breadcrumb {
    background: transparent;
    margin-bottom: 1rem;
    padding: 0;
}

.hero-banner__breadcrumb a,
.dlab-bnr-inr .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.hero-banner__breadcrumb a:hover,
.dlab-bnr-inr .breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

/* =============================================================================
   ACCESSIBILITY - ORIGINAL WORKING VERSION
   ============================================================================= */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dlab-bnr-inr {
        background-attachment: scroll;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dlab-bnr-inr .section-head h2,
    .dlab-bnr-inr .section-head p {
        color: var(--rent-bg-white) !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================================= */

/* GPU acceleration for smooth scrolling */
.hero-banner,
.dlab-bnr-inr {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Preload critical hero image */
.hero-banner::after,
.dlab-bnr-inr::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

/* =============================================================================
   HERO RESPONSIVE DESIGN - MIGRATED FROM STYLE.CSS
   Component-based approach: All hero responsive rules in one place
   ============================================================================= */

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-banner {
        min-height: 30vh; /* Optimized for mobile viewing */
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner {
        min-height: 25vh; /* Reduced height for landscape orientation */
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-banner {
        min-height: 35vh; /* Balanced height for tablet screens */
    }
}

/* =============================================================================
   CONSOLIDATED HERO CSS FROM OTHER FILES - Version 2.0.0
   ============================================================================= */

/* === FROM UX-OPTIMIZATIONS.CSS - HERO CONTENT ENHANCEMENTS === */
.hero-content {
    padding: 80px 0 !important;
    text-align: center !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: #ffffff;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

.hero-subtitle {
    font-size: 1.3rem !important;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 30px !important;
    max-width: 600px !important;
    margin-left: auto;
    margin-right: auto;
}

/* === FROM RESPONSIVE-UNIFIED.CSS - BROWSER COMPATIBILITY === */
@supports (-webkit-appearance: none) {
    /* Background attachment fix for iOS Safari */
    .hero-banner,
    .dlab-bnr-inr {
        background-attachment: scroll;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Edge legacy fixes */
@supports (-ms-ime-align: auto) {
    .hero-banner,
    .dlab-bnr-inr {
        background-attachment: scroll;
    }
}

/* Internet Explorer 11 fixes for Hero */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .hero-banner,
    .dlab-bnr-inr {
        background-attachment: scroll;
    }
}

/* === FROM RESPONSIVE-UNIFIED.CSS - MOBILE HERO RESPONSIVE === */
@media (max-width: 480px) {
    /* Hero section */
    .hero-banner,
    .dlab-bnr-inr {
        min-height: 40vh;
        padding: 60px 0 20px 0;
    }
    
    .hero-banner__title,
    .dlab-bnr-inr h1 {
        font-size: var(--font-size-xxl);
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    /* Hero responsive */
    .hero-banner,
    .dlab-bnr-inr {
        min-height: 45vh;
        padding: 80px 0 30px 0;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-banner__title,
    .dlab-bnr-inr h1 {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-banner__subtitle,
    .dlab-bnr-inr .lead {
        font-size: var(--font-size-md);
        margin-bottom: var(--spacing-lg);
    }
    
    /* FROM UX-OPTIMIZATIONS.CSS - Mobile Hero */
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 1024px) {
    /* Hero adjustments */
    .hero-banner,
    .dlab-bnr-inr {
        min-height: 60vh;
        padding: 100px 0 50px 0;
    }
    
    .hero-banner__title,
    .dlab-bnr-inr h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    /* Hero full size */
    .hero-banner,
    .dlab-bnr-inr {
        min-height: 70vh;
        padding: var(--hero-padding-desktop, 120px 0);
    }
}

/* === FROM PRINT-DARK-MODE.CSS - DARK MODE === */
@media (prefers-color-scheme: dark) {
    /* Hero Banner Dark Mode */
    .dlab-bnr-inr {
        background-color: #1a252f !important;
    }
    
    .section-head.text-white h2,
    .section-head.text-white p {
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
}

/* === FROM PRINT-DARK-MODE.CSS - PRINT STYLES === */
@media print {
    /* Reset Background Images and Colors */
    .dlab-bnr-inr,
    .hero-banner {
        background: none !important;
        background-image: none !important;
        color: #000000 !important;
        min-height: auto !important;
    }
}

/* === FROM RESPONSIVE-UNIFIED.CSS - PERFORMANCE OPTIMIZATIONS === */
@media (max-width: 768px) {
    /* GPU acceleration for mobile smooth scrolling */
    .hero-banner,
    .dlab-bnr-inr {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
}