/* Layout & Header Fixes (Bestätigte Stabilität) */
body {
    min-width: 100% !important;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #F4F4F9 !important;
    color: #333333 !important;
    padding-top: 0 !important; 
}

html {
    font-size: 100%;
}

/* STARTSEITEN-LOGIK (Unverändert) */
.index.home .top-bar {
    background-color: #323c46 !important;
}
.index.home #header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.index.home #content {
    margin-top: 0 !important; 
}

#header-wrapper {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ---------------------------------------------------------------------- */
/* 🛑 KOMPENSATION DER FIXIERTEN HEADER-HÖHE (DESKTOP FINAL) 🛑 */
/* ---------------------------------------------------------------------- */

/* Desktop-Ansicht (ab 769px) */
@media (min-width: 769px) {
    
    /* 1. STARTSEITEN-LOGIK: Body-Padding für Header-Kompensation (Home) */
    .index.home body { 
        padding-top: 150px !important; 
    }
    
    /* 2. STARTSEITEN-LOGIK: Content Korrektur auf -15px (Home) */
    .index.home #content { 
        position: relative !important; 
        top: -15px !important; 
        margin-top: 0 !important; 
        transform: none !important; 
    }
    
    /* ---------------------------------------------------------------------- */
    /* ✅ NEU: UNIVERSAL-KORREKTUR FÜR ALLE UNTERSEITEN (Desktop) */
    /* ---------------------------------------------------------------------- */
    
    /* 1. ANWENDUNG DES PADDINGS AUF DEN BODY FÜR ALLE UNTERSEITEN */
    body:not(.home) { 
        padding-top: 150px !important; 
    }
    
    /* 2. ZWANGS-RESET DES CONTENT-CONTAINERS, UM ALLE STÖRENDEN MARGINS ZU NEUTRALISIEREN */
    body:not(.home) #content {
        position: static !important;
        top: auto !important;
        margin-top: 0 !important; 
        margin-bottom: 0 !important;
        padding-top: 0 !important;
    }
}

/* ---------------------------------------------------------------------- */
/* TEXT & BILD FORMATIERUNG (DESKTOP) */
/* ---------------------------------------------------------------------- */
.fad-size-150 { font-size: 150%; }
.fad-size-125 { font-size: 125%; }
.image-left { float: left; margin: 0 10px 10px 0; max-width: 100%; height: auto; }
.image-right { float: right; margin: 0 0 10px 15px; max-width: 100%; height: auto; }
.fad_image_width_33 { width: 33%; }
.fad_image_width_auto { width: auto; max-width: 100%; }
.clear-float { clear: both; }
.cta-button { float: right; display: inline-block; padding: 10px 20px; background-color: #FF6600; color: white !important; text-decoration: none; border-radius: 5px; font-weight: bold; margin-left: 20px; margin-top: 5px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); vertical-align: middle; }
.cta-button:hover { background-color: #E65C00; }

/* ---------------------------------------------------------------------- */
/* MOBILE ANPASSUNG (LÜCKENANPASSUNG UND KORREKTUR) */
/* ---------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
    
    /* 👑 KORREKTUR: H2-Container verstecken (nur Home) */
    .index.home div.columns.text-center {
        position: absolute !important;
        left: -9999px !important;
        top: auto !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* SCHRITT 1: Body-Padding für die geschätzte Mobile Header-Höhe (Home) */
    .index.home body {
        padding-top: 60px !important; 
    }
    
    /* WUNSCHWERT: Content Verschiebung auf 60px gesetzt. (Home) */
    .index.home #content {
        margin-top: 60px !important; 
        padding-top: 0 !important;
        position: relative !important;
    }
    
    /* SCHRITT 3: H2-Korrektur entfernt. */
    .index.home .section-headline { position: static !important; top: auto !important; margin-top: 0 !important; }
    .index.home .section-headline h2 { margin-bottom: 0 !important; }
    .index.home .content_wrapper .row .columns .i_content_wrapper text div#page_page_4895302 p:first-child { margin-top: 0 !important; padding-top: 0 !important; margin-bottom: 0 !important; }
    .index.home .content_wrapper .row .columns .i_content_wrapper text div#page_page_4895302 p { margin-bottom: 5px !important; }

    /* ---------------------------------------------------------------------- */
    /* UNIVERSAL-KORREKTUR FÜR ALLE UNTERSEITEN (Mobile) */
    /* ---------------------------------------------------------------------- */
    body:not(.home) {
        padding-top: 60px !important;
    }
    
    body:not(.home) #content {
        position: static !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
    }
    
    /* 1. KORREKTUR: Erzwingt Block-Display und entfernt float für ALLE Bilder (BEIBEHALTEN) */
    .image-left, .image-right, .insert_module { display: block !important; float: none !important; clear: both !important; margin: 20px auto !important; width: 100% !important; max-width: 400px; box-sizing: border-box; }
    
    /* 2. SPEZIFISCHE REGEL FÜR SIEGEL: Überschreibt nur die Breite der obigen Regel (BEIBEHALTEN) */
    .image-left.fad_image_width_auto { width: auto !important; max-width: 120px !important; }
    
    /* CTA Button mobile: Volle Breite, kein float (BEIBEHALTEN) */
    .cta-button { float: none; display: block; width: 100%; margin-left: 0; margin-top: 15px; text-align: center; }
}

/* ---------------------------------------------------------------------- */
/* KACHELN & FOOTER STYLES (UNVERÄNDERT ÜBERNOMMEN) */
/* ---------------------------------------------------------------------- */
h1 { font-size: 2.5em; color: #0077B6; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
h2 { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 2.5em; color: #0077B6; }
h3 { font-size: 1.4em; color: #333333; line-height: 1.4; margin-top: 15px; margin-bottom: 15px; }
.page_box.row { background-color: #FFFFFF; border-radius: 8px; overflow: hidden; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease; }
.page_box.row:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12); }
.page_box_image { width: 50%; min-height: 200px; }
.page_box_image img { height: 100%; object-fit: cover; }
.page_box_link:nth-child(2) { width: 50%; padding: 20px; }
.footer1 { background-color: #333333 !important; color: #FFFFFF !important; padding: 30px 0; }
.footer2 { background-color: #1a1a1a !important; color: #CCCCCC !important; }
.footer1 h3 { color: #FF8C00 !important; border-bottom: 2px solid #555555; padding-bottom: 5px; }
.footer1 a, .footer2 a { color: #CCCCCC !important; }
.footer1 a:hover, .footer2 a:hover { color: #FF8C00 !important; }
.footer1 button.open_form { background-color: #0077B6 !important; color: #FFFFFF !important; border-radius: 5px; }
.footer1 button.open_form:hover { background-color: #005A90 !important; }