/* ==========================================================================
   1. HINTERGRUNDBILD & GLOBALE TRANSPARENZ
   ========================================================================== */
body {
    background-image: url('../images/hinter.jpg') !important;
    background-repeat: no-repeat !important;
    background-position: 70% center !important; 
    background-attachment: fixed !important;
    background-size: cover !important;
    background-color: #ffffff !important;
}

#page-wrapper, #start, main, #main, #body-wrapper, .section, .modular-body, .main-content, .g-grid {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   2. HEADER & LOGO
   ========================================================================== */
#header {
    background-color: rgba(255, 255, 255, 0.4) !important;
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: auto !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

#header .container.header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 20px !important;
    max-width: 100% !important;
    gap: 20px !important;
}

.header-logo-left {
    flex: 0 0 auto !important;
    height: 120px !important; 
    width: 150px !important;
    margin-left: 20px !important;
    display: flex !important;
    align-items: center !important;
}

.header-logo-left a.navbar-brand {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: visible !important;
}

.header-logo-left a.navbar-brand img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-content-right {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.header-heading {
    font-size: clamp(1.5rem, 4vw, 3rem) !important;
    font-weight: 800;
    color: var(--q2-accent, #333);
    margin-bottom: 5px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

#header .navbar {
    width: 100% !important;
    justify-content: center !important;
}

/* MENÜ-HIGHLIGHTS */
#header .navbar .navbar-nav li a {
    color: #333;
    font-weight: 600;
    padding: 5px 15px !important;
    border-radius: 6px;
}
#header .navbar .navbar-nav li.active > a, 
#header .navbar .navbar-nav li.current > a {
    background-color: #d27b4e !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. INHALTSKASTEN & BILDER
   ========================================================================== */
.content-item {
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(8px) !important;
}

.right {
    float: right; 
    margin-left: 20px; 
    margin-bottom: 20px; 
    max-width: 300px; 
    height: auto;
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */
#footer.section { 
    padding: 0.5rem !important; 
    background-color: rgba(255, 255, 255, 0.4) !important; 
}

/* ==========================================================================
   5. MOBILE ANPASSUNG
   ========================================================================== */
@media (max-width: 768px) {
    #header .container.header-wrapper { 
        flex-direction: column !important; 
        padding: 0 !important; 
        gap: 0 !important;
    }
    
    .header-logo-left { display: none !important; }
    
    .header-content-right { width: 100%; align-items: center; }
    .desktop-menu { display: none !important; }
    #header .navbar { display: none !important; }

    /* Button Styling */
    #toggle {
        display: block !important;
        background: none;
        border: 1px solid #d27b4e;
        border-radius: 3px;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 2px 10px !important;
        margin: 5px auto 5px auto !important;
        color: #d27b4e;
        line-height: 1;
    }
    
    .header-fixed { position: relative !important; }
    
    .right {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }
}

/* Button versteckt auf Desktop */
#toggle { display: none; }

/* Overlay Menü Styling */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    padding: 4rem 2rem;
    text-align: center;
}

#overlay.open { display: block; }

/* Overlay Navigation Styling */
.overlay-menu ul { list-style: none; padding: 0; }
.overlay-menu ul li { padding: 15px 0; font-size: 1.5rem; }