/* ==========================================================================
   NAVIGATION UND HEADER - HOLZHINTERGRUND MIT FIXED POSITION
   ========================================================================== */

/* Header mit Holzhintergrund - FIXED POSITION */
header#masthead {
    background: #575656 url('/wp-content/uploads/2025/09/header-maserung2.png') center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    align-items: center;
}

/* Container Layout */
header#masthead .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Right Wrapper */
.header-right-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .site-logo-div {
    padding: 20px 0px;
}

/* Navigation */
nav#site-navigation {
    display: flex;
    align-items: center;
}

ul.onepress-menu {
    margin: 0;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   BODY PADDING FÜR FIXED HEADER
   ========================================================================== */

/* Body Padding-Top um den fixierten Header zu kompensieren */
body {
    padding-top: 90px !important; /* Standardhöhe des Headers */
}

/* Responsive Body Padding */
@media screen and (max-width: 768px) {
    body {
        padding-top: 75px !important; /* Kleinere Header-Höhe auf mobilen Geräten */
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 70px !important; /* Noch kleinere Header-Höhe auf sehr kleinen Geräten */
    }
}

/* ==========================================================================
   HERO SECTION ANPASSUNGEN FÜR FIXED HEADER
   ========================================================================== */

/* Hero Section Anpassungen - da der Header jetzt fixed ist */
section#hero {
    height: calc(100vh - 120px);
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: -90px !important; /* Negativer Margin um Header-Höhe zu kompensieren */
    padding-top: 90px !important; /* Padding um Content richtig zu positionieren */
}

/* Container innerhalb des hero-Bereichs am unteren Rand ausrichten */
section#hero .container {
    height: 60vh;
    margin-bottom: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    max-width: 85%;
}

/* Hero Text und Button Styling */
.hero-large-text, 
.hero-small-text,
.hero-small-text p {
    font-family: 'Inter';
    text-align: left !important;
}

.hero-content-style1 h2 {
    font-size: 65px !important;
}

body div#page h2.hero-large-text {
    color: white !important;
}

.hero-content-style1 p {
    font-style: normal !important;
    font-weight: 400 !important;
    font-family: Arial !important;
}

section#hero .btn {
    float: left; 
    line-height: 2;
}

section#hero .btn:hover {
    float: left; 
    line-height: 2;
    background-color: #68bfbb;
}

/* Responsive Hero Anpassungen für Fixed Header */
@media screen and (max-width: 768px) {
    section#hero {
        margin-top: -75px !important;
        padding-top: 75px !important;
    }
}

@media screen and (max-width: 480px) {
    section#hero {
        margin-top: -70px !important;
        padding-top: 70px !important;
    }
}

/* ==========================================================================
   LOGO AUSTAUSCH - WEISSES LOGO
   ========================================================================== */

/* Alle Logos mit kuebler-logo im Pfad durch weißes Logo ersetzen */
header#masthead img[src*="kuebler-logo"],
header#masthead img[src*="cropped-kuebler-logo"],
.site-branding img[src*="kuebler-logo"],
.site-branding img[src*="cropped-kuebler-logo"] {
    content: url('/wp-content/uploads/2025/09/kuebler-logo-weiss.png') !important;
}

/* Bei sehr kleinen Bildschirmen Logo etwas kleiner */
@media screen and (max-width: 768px) {
    header#masthead img[src*="kuebler-logo"],
    header#masthead img[src*="cropped-kuebler-logo"],
    .site-branding img[src*="kuebler-logo"],
    .site-branding img[src*="cropped-kuebler-logo"] {
        max-height: 60px !important;
        max-width: 200px !important;
    }
}

/* ==========================================================================
   NAVIGATION LINKS STYLING FÜR HOLZHINTERGRUND
   ========================================================================== */

.onepress-menu a {
    color: #fff !important; 
}

.onepress-menu li.onepress-current-item a {
    color: #4dd0cc !important; 
}

.onepress-menu {
    line-height: 2 !important;
}

.onepress-menu li a::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #4dd0cc;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onepress-menu li a:hover::after {
    opacity: 1; /* Beim Hover sichtbar */
}

/* ==========================================================================
   MOBILE NAVIGATION ANPASSUNGEN
   ========================================================================== */

/* Nav Toggle */
#nav-toggle span,
#nav-toggle span::before,
#nav-toggle span::after {
    background-color: #009a93 !important;
}

#nav-toggle.nav-is-visible span,
#nav-toggle.nav-is-visible:hover span {
    background-color: transparent !important;
}

/* "Menü" Text ausblenden - steht direkt im <a> Tag */
#nav-toggle {
    font-size: 0 !important;
}

/* Span Element wieder sichtbar machen für die Hamburger-Striche */
#nav-toggle span {
    font-size: initial !important;
    text-indent: 0 !important;
    display: block !important;
}

/* Mobile Menu Responsive Layout */
@media screen and (max-width: 1140px) {
    .site-logo-div img {
        max-width: none !important;
    }

    #nav-toggle {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-49%) !important;
        z-index: 1000 !important;
    }

    .onepress-menu li a::after {
        display: none;
    }
    
    /* Mobile Menu Background - NUR Hintergrundfarbe ändern, alles andere bleibt original */
    .main-navigation .onepress-menu.onepress-menu-mobile,
    nav#site-navigation .onepress-menu.onepress-menu-mobile,
    header .main-navigation .onepress-menu.onepress-menu-mobile {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        transform: translateX(0) !important;
        z-index: 999 !important;
        background-color: #575656 !important; /* NUR die Hintergrundfarbe ändern */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        overflow: hidden !important;
        border: none;
    }

    .onepress-menu.onepress-menu-mobile li {
        background-color: #575656 !important; /* NUR die Hintergrundfarbe ändern */
        border: none;
        border-top: 2px solid #616161 !important;
    }

    .onepress-menu.onepress-menu-mobile li:first-child {
        border-top: none !important;
    }

    .onepress-menu.onepress-menu-mobile > li > a {
        padding: 20px !important;
    }

    .main-navigation .onepress-menu.onepress-menu-mobile li a:hover, 
    nav#site-navigation .onepress-menu.onepress-menu-mobile li a:hover, 
    header .main-navigation .onepress-menu.onepress-menu-mobile li a:hover {
        color: #4dd0cc !important;
        transition: color 0.3s ease !important;
    }
}

/* ==========================================================================
   QUERFORMAT-FIX FÜR MOBILE GERÄTE
   ========================================================================== */

/* Querformat auf kleinen Bildschirmen (Smartphones im Landscape-Modus) */
@media screen and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    /* Hero-Section Höhe für Querformat anpassen */
    section#hero {
        height: auto !important;
        min-height: 100vh !important;
        padding: 20px 0 !important;
    }
    
    /* Container-Höhe für Querformat anpassen */
    section#hero .container {
        height: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 40px 0 !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: calc(100vh - 160px) !important;
    }
    
    /* Text-Größen für Querformat reduzieren */
    .hero-content-style1 h2 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .hero-content-style1 p#custom-hero-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }
    
    /* Button für Querformat anpassen */
    section#hero .btn {
        font-size: 1.0rem !important;
        padding: 8px 24px !important;
        line-height: 1.8 !important;
    }
}

/* Speziell für sehr kleine Querformat-Bildschirme */
@media screen and (max-width: 900px) and (max-height: 400px) and (orientation: landscape) {
    section#hero {
        padding: 10px 0 !important;
    }
    
    section#hero .container {
        padding: 20px 0 !important;
        min-height: calc(100vh - 120px) !important;
    }
    
    .hero-content-style1 h2 {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }
    
    .hero-content-style1 p#custom-hero-text {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    section#hero .btn {
        font-size: 0.95rem !important;
        padding: 7px 22px !important;
    }
}

/* ==========================================================================
   RESPONSIVE SCHRIFTGRÖSSEN FÜR HERO
   ========================================================================== */

@media screen and (max-width: 767px) {
    .hero-content-style1 h2 {
        font-size: 50px !important;
    }
    
    .hero-content-style1 p#custom-hero-text {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 578px) {
    .hero-content-style1 h2 {
        font-size: 40px !important;
    }

    section#hero .container {
        height: 80vh;
    }
}

@media screen and (max-width: 480px) {
    .hero-content-style1 h2 {
        font-size: 30px !important;
    }
    
    .hero-content-style1 p#custom-hero-text {
        font-size: 16px !important;
    }

    section#hero .container {
        height: 90vh;
    }
}

@media screen and (max-width: 367px) {
    .hero-content-style1 h2 {
        font-size: 25px !important;
    }
    
    .hero-content-style1 p#custom-hero-text {
        font-size: 14px !important;
    }
}

/* Logo bei kleiner Bildschirmweite links und Nav Toggle rechts lassen - bootstrap überschreiben */
@media screen and (max-width: 575px) {
    header#masthead .container {
        margin-left: 0 !important;
        margin-right: auto !important;
        position: unset !important;
    }
}