/* ==========================================================================
   1. GLOBALER HINTERGRUND & TYPOGRAFIE (APPLE/SAAS-STYLE - DSGVO CONFORM)
   ========================================================================== */

body {
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
    /* Datenschutzkonformer, nativer Tech-System-Font-Stack (Kein Google-Fonts-Nachladen!) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Container für deine Inhalte transparent halten */
.site-container {
    background: transparent !important;
    box-shadow: none !important;
}

/* Microsoft/Apple Überschriften-Design mit tightem Spacing */
h1, h2, h3, h4, h5, h6 {
    color: #000000 /*!important*/;
    font-weight: 700 !important;
    letter-spacing: -0.022em !important; 
}

/* Moderne Buttons (Das typische Apple-Blau) für Formulare/Beiträge */
.btn-primary {
    background-color: #0071e3 !important;
    border-color: #0071e3 !important;
    border-radius: 980px !important; /* Pillen-Form */
    padding: 8px 20px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.btn-primary:hover {
    background-color: #0077ed !important;
    border-color: #0077ed !important;
}


/* ==========================================================================
   2. BEITRÄGE ALS MODERNE "CARDS"
   ========================================================================== */

main .com-content-article, 
.view-article main,
.card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important; /* Weiche, runde Ecken */
    padding: 2.5rem !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important; /* Seidenweicher Schatten */
    margin-bottom: 2rem;
}


/* ==========================================================================
   3. HEADER-BALKEN (REINES ERZWUNGENES WEISS)
   ========================================================================== */

header.header,
.header {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important; /* Löscht Verläufe des Templates */
    border-bottom: 1px solid #e2e8f0 !important; /* Feine Trennlinie unten */
    box-shadow: none !important;
}


/* ==========================================================================
   4. MITTEN-ZENTRIERUNG DER GESAMTEN LEISTE (STRENG NUR FÜR DESKTOP)
   ========================================================================== */

@media (min-width: 992px) {
    header.header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Wir zentrieren die Haupt-Container auf Desktop und schrumpfen sie auf Inhaltsbreite */
    header.header > .site-container,
    header.header > .container-fluid,
    header.header > div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: max-content !important; 
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    /* DEINE GENIALE ENTDECKUNG: Hebelt das abstoßende Cassiopeia-Grid aus! */
    header.header .grid-child {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
    }

    /* Das Logo-Element dockt links an und bekommt Atmenraum zum ersten echten Menüpunkt */
    header.header .container-brand,
    header.header .navbar-brand,
    header.header .brand {
        display: inline-flex !important;
        align-items: center !important;
        margin-right: 50px !important; /* <--- ABSTAND ZWISCHEN BRANDING (LOGO+TEXT) UND DEM MENÜ */
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        width: auto !important; 
        flex: 0 0 auto !important;
    }

    /* Der Navigations-Container dockt direkt daneben an */
    header.header .container-nav,
    header.header .navbar,
    header.header .navbar-collapse {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }
}


/* ==========================================================================
   5. UNTRENNBARES BRANDING (LOGO-GRAFIK + SCHRIFTZUG FÜR DESKTOP & MOBIL)
   ========================================================================== */

/* Wir zwingen den Logo-Link dazu, Grafik und Text nebeneinander anzuzeigen */
header.header .navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important; /* Abstand zwischen der Logo-Grafik und dem Schriftzug */
    text-decoration: none !important;
}

/* Dieser magische Befehl schreibt "FMEA-Coach" auf ALLEN Geräten fest neben die Grafik */
header.header .navbar-brand::after {
    content: "FMEA-Coach" !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1d1d1f !important; /* Edles Apple-Dunkelgrau */
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Sorgt dafür, dass die eigentliche Logo-Grafik sauber mitskaliert */
header.header .navbar-brand img {
    margin: 0 !important;
    display: block !important;
    height: auto !important;
}


/* ==========================================================================
   6. MENÜPUNKTE & HOVER-EFFEKTE (REINES ECHTES MENÜ)
   ========================================================================== */

/* Grundfarbe und Schriftgewicht für alle echten Menüglieder */
.header .mod-menu .nav-link,
.header .navbar-nav .nav-link,
.header .mod-menu a,
.header .mod-menu span {
    color: #475569 !important; 
    font-weight: 500 !important;
    font-size: 1rem !important;
    background: transparent !important;
}

/* --- DESKTOP MENÜ-STRUKTUR --- */
@media (min-width: 992px) {
    header.header .mod-menu,
    header.header .navbar-nav {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: nowrap !important;
        gap: 25px !important; /* Abstand zwischen den Text-Links */
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: max-content !important;
    }
    
    .header .mod-menu .nav-link,
    .header .navbar-nav .nav-link,
    .header .mod-menu a,
    .header .mod-menu span {
        white-space: nowrap !important; /* Verhindert hässliche Wortumbrüche */
    }
}

/* Universeller Hover-Effekt (Tech-Türkis) */
.header .mod-menu a:hover,
.header .mod-menu .nav-link:hover,
.header .navbar-nav .nav-link:hover {
    color: #0ea5e9 !important;
}

/* Aktive Unterstreichung (Nur auf Desktop sinnvoll sichtbar) */
.header .mod-menu .active > .nav-link,
.header .header .mod-menu .active > a {
    color: #0ea5e9 !important;
    font-weight: 600 !important;
    position: relative !important;
}

@media (min-width: 992px) {
    .header .mod-menu .active > .nav-link::after,
    .header .mod-menu .active > a::after {
        content: '' !important;
        position: absolute !important;
        bottom: -2px !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #0ea5e9 !important;
        border-radius: 2px !important;
    }
}


/* ==========================================================================
   7. CALL-TO-ACTION (CTA) BUTTON (DER LETZTE MENÜPUNKT)
   ========================================================================== */

.header .mod-menu .nav-item:last-child .nav-link,
.header .mod-menu .nav-item:last-child a,
.header .mod-menu .nav-item:last-child span,
.header .navbar-nav .nav-item:last-child .nav-link {
    background: linear-gradient(135deg, #4ecdc4, #2f80ed) !important; 
    color: #000000 !important; /* Schwarzer Text laut Vorlage */
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 999px !important; /* Perfekt rund */
    border: 1px solid #7c3aed !important; /* Lila Kontur */
    display: inline-block !important;
}

@media (min-width: 992px) {
    .header .mod-menu .nav-item:last-child .nav-link,
    .header .mod-menu .nav-item:last-child a {
        margin-left: 10px !important;
    }
}

.header .mod-menu .nav-item:last-child a::after,
.header .mod-menu .nav-item:last-child .nav-link::after {
    display: none !important;
}

.header .mod-menu .nav-item:last-child .nav-link:hover {
    opacity: 0.9 !important;
}


/* ==========================================================================
   8. SMARTPHONE & TABLET LAYOUT (MOBIL-KORREKTUR)
   ========================================================================== */

@media (max-width: 991.98px) {
    /* 1. Navbar-Relative-Sperre aufheben */
    header.header .navbar {
        position: static !important; 
    }

    /* 2. Hamburger-Button rechtsbündig stylen und invertieren */
    header.header .navbar-toggler {
        border-color: #1d1d1f !important; 
        background-color: rgba(0, 0, 0, 0.02) !important;
        padding: 6px 10px !important;
        position: absolute !important;
        right: 15px !important;
        top: 25px !important; 
        filter: invert(1) grayscale(1) brightness(0) !important; 
    }

    /* 3. Mobil-Zentrierung für das vereinte Branding-Paket */
    header.header .container-brand,
    header.header .navbar-brand {
        display: flex !important;
        width: 100% !important; /* Volle Breite für die perfekte Mitte */
        max-width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }

    /* Klapp-Menü-Struktur für Mobile */
    header.header .navbar-collapse {
        width: 100% !important;
    }
    header.header .mod-menu,
    header.header .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 1rem 0 !important;
    }
/* 4. WEISSRAUM-KILLER: Vernichtet das gefundene Template-Padding und staucht den Header */
    header.header .container-header .container-nav,
    header.header .container-nav {
        padding-bottom: 0 !important; /* <--- DEIN GEFUNDENER STÖRFAKTOR AUF 0 GESETZT */
        margin-bottom: 0 !important;
    }

    header.header,
    .header {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: auto !important; 
    }

    header.header .container-brand,
    header.header .navbar-brand {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        margin-bottom: 0 !important; 
    }

    /* Setzt den Hauptinhalt der Website auf Mobilgeräten knackig nah an den Header */
    .site-container,
    main {
        margin-top: 10px !important;
    }
  
}
/* ==========================================================================
   DESIGN-SYSTEM: GLOBALE KONTROLLE & REUSABLE CLASSES
   ========================================================================== */

/* 1. HERO-SECTION KLASSEN 
sppb-addon sppb-addon-header hero-h1,
.hero-h1 h1 {
    font-size: 64px !important;
    line-height: 1.0625 !important; /* Etwas straffer für große Headlines 
    font-weight: 600 !important;
    letter-spacing: -0.009em !important;
    color: #000000 !important;
    margin-bottom: 32px !important;
    
    /* NEU: Das sorgt für den harmonischen Umbruch 
    max-width: 950px !important; 
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}*/

/* Zielt auf die Klasse .sppb-addon-title innerhalb Ihres Containers .hero-h1 */
.hero-h1 .sppb-addon-title {
    font-size: 62px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 32px !important;
    text-align: center !important;
    /* Optional: Falls der Umbruch immer noch zu eng ist: */
    display: block !important; 
}
.hero-h2 .sppb-addon-title { font-size: 48px; line-height: 1.08; font-weight: 600; color: #1d1d1f; margin-bottom: 48px; }
.hero-subtext { font-size: 24px; line-height: 1.6; color: #475569; max-width: 900px; margin: 0 auto 56px auto; }

/* 2. STANDARD CONTENT-SECTION KLASSEN (Wissens-Hub, Über mich, etc.) */
.content-h2 .sppb-addon-title { font-size: 40px; font-weight: 700; color: #000000; margin-bottom: 24px; }
.content-text { font-size: 19px; line-height: 1.7; color: #475569; margin-bottom: 24px; }

/* 3. BUTTON-SYSTEM */
.btn-hero-primary, .btn-hero-ghost { 
    display: inline-block; padding: 16px 36px; border-radius: 980px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; 
}
.btn-hero-primary { background: rgb(0, 113, 227); color: #ffffff; }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3); }

.btn-hero-ghost { background: transparent; color: #2f80ed; border: 2px solid #2f80ed; margin-left: 20px; }
.btn-hero-ghost:hover { background: #2f80ed; color: #ffffff; }

/* 4. RESPONSIVE OPTIMIERUNGEN (TABLET & SMARTPHONE) */
@media (max-width: 1024px) {
    .hero-h1 { font-size: 48px; }
    .hero-h2 { font-size: 38px; }
    .hero-subtext { font-size: 20px; }
}



@media (max-width: 767px) {
    .hero-h1 { font-size: 36px; line-height: 1.2; }
    .hero-h2 { font-size: 28px; line-height: 1.2; }
    .hero-subtext { font-size: 18px; margin-bottom: 32px; }
    
    .content-h2 { font-size: 30px; }
    
    .btn-hero-primary, .btn-hero-ghost { 
        display: block !important; width: 100% !important; text-align: center !important; margin: 0 0 15px 0 !important; 
    }
}

.pain-point-box {
    padding: 20px;
    border-left: 3px solid #ff4b2b; /* Ein dezenter "Warn-Akzent" */
    background: #f8fafc;

}

/* Styling für die Kaskaden-Boxen */
.kaskaden-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important; /* Sorgt dafür, dass alle 3 Boxen gleich hoch sind */
}

/* Der Hover-Effekt: Die Box "schwebt" leicht */
.kaskaden-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    border-color: #2f80ed !important;
}

/* Optimierung der Pfeile zwischen den Boxen */
.kaskaden-pfeil {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #94a3b8 !important;
}

/* ==========================================================================
   GLOBALES MOBILE-LAYOUT: HEADLINES & CONTAINER
   ========================================================================== */
@media (max-width: 767px) {
    /* Alle Überschriften-Addons etwas "luftiger" machen */
    .sppb-addon-header {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* H1 und H2 global für Mobile begrenzen und lesbar machen */
    h1, .h1, h2, .h2 {
        font-size: 28px !important; /* Standard für Mobile */
        line-height: 1.25 !important;
        word-wrap: break-word !important;
        padding-bottom: 10px !important;
    }

    /* Die Spalten, in denen der Text liegt, von zu großen Rändern befreien */
    .sppb-col-sm-12, .sppb-col-md-12 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
@media (max-width: 767px) {
    /* 1. Die H1 gezielt auf dem Smartphone kleiner machen */
    .hero-h1 .sppb-addon-title {
        font-size: 32px !important;  /* Deutlich kleiner für Mobile */
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important; /* Etwas näher zusammenrücken */
        
        /* WICHTIG: Silbentrennung & Umbruch */
        word-break: break-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        
        /* Etwas Platz zur Seite schaffen */
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

@media (max-width: 1024px) {
    .kaskaden-box {
        min-height: 350px !important; /* Passen Sie den Wert an, bis alles bündig ist */
        margin-bottom: 20px !important;
    }

    /* Sicherstellen, dass die Pain-Boxen sich nicht gegenseitig verschieben */
    .pain-point-box {
        height: 100% !important; /* Nutzt die Equal-Height-Einstellung voll aus */
        margin: 20px !important; /* Einheitlicher Abstand nach unten */
    }
    
    /* Optional: Falls die 2 Spalten auf dem Tablet zu eng sind */
    .sppb-col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Container für die Regulatorik-Punkte */
.compliance-box {
    padding: 30px;
    border-top: 4px solid #2f80ed; /* Ihr Akzentblau als Anker oben */
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.compliance-box h3 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    color: #1e293b !important;
}

.fachbuch-auszug-box {
    background: #f8fafc; /* Ein ganz helles Blau-Grau */
    padding: 40px !important;
    border-radius: 12px;
    border-left: 5px solid #2f80ed; /* Ihr Akzentblau */
}
.fachbuch-auszug-box h3 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    color: #1e293b !important;
}
/* Container für den gesamten Checkup-Block */
.checkup-section {
    background-color: #1e293b; /* Dunkles Marineblau */
    color: #ffffff;            /* Textfarbe Weiß */
    padding: 100px 20px;       /* Großzügiger Abstand oben/unten */
    border-radius: 15px;
}

/* Headline Styling */

.checkup-section .sppb-addon-header.checkup-headline h2.sppb-addon-title {
    color: #ffffff !important;
    text-align: center !important;
    margin-bottom: 20px !important;
}

/* Sub-Headline Styling */
.checkup-section .sppb-addon-header.checkup-subheadline h3.sppb-addon-title {
    color: #94a3b8 !important; 
    text-align: center !important;
    margin-bottom: 50px !important;
    font-weight: 300 !important;
}

/* Icon-Liste Styling */
.checkup-list {
    list-style: none;
    padding: 0;
}

.checkup-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

/* Das Häkchen-Icon (Akzentfarbe) */
.checkup-list li::before {
    content: "✓";
    color: #2f80ed; /* Ihr bewährtes Akzentblau */
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2em;
}

/* CTA Button Styling */
.checkup-cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

.checkup-btn {
    background-color: #2f80ed;
    color: #ffffff !important;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.checkup-btn:hover {
    background-color: #2563eb; /* Etwas dunkleres Blau beim Hover */
}

/* Disclaimer heller und präsenter gestalten */
.checkup-disclaimer {
    color: #cbd5e1 !important; /* Ein deutlich helleres Grau/Silber */
    font-size: 0.9rem !important; /* Etwas größer für bessere Lesbarkeit */
    text-align: center !important;
    margin-top: 30px !important;
    font-style: italic; /* Kursiv unterstreicht den Charakter als Hinweis */
    line-height: 1.4 !important;
    opacity: 1 !important; /* Volle Deckkraft, da wir nichts verstecken wollen */
}

/* Gemeinsame Basis für alle Sektionen */
.section-white, .section-light-blue, .section-light-gray {
    margin: 20px 10px; /* Abstand zwischen den Sektionen */
    border-radius: 15px; /* Die gewünschte Abrundung */
    overflow: hidden;    /* Stellt sicher, dass Inhalte den Radius nicht sprengen */
    padding: 60px 20px !important; /* Innenabstand für den Text */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* erzeugt leichten Schatten, lässt Karten  "schweben"*/
}

/* Spezifische Farben */
.section-white {
    background-color: #ffffff !important;
}

.section-light-blue {
    background-color: #f1f5f9 !important;
}

.section-light-gray {
    background-color: #f8fafc !important;
}

/* Basis: Pain-Sections (Ruhiges Basis-Grau) */
.section-pain {
    background-color: #f8fafc !important; /* Ihr Standard-Grau */
    margin: 20px 10px;
    border-radius: 15px;
    padding: 60px 20px !important;
    overflow: hidden;    /* Stellt sicher, dass Inhalte den Radius nicht sprengen */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* erzeugt leichten Schatten, lässt Karten  "schweben"*/

}

/* Helfer-Sections (Strahlendes Weiß als "Lichtblick") */
.section-helper {
    background-color: #ffffff !important;
    margin: 20px 10px;
    border-radius: 15px;
    padding: 60px 20px !important;
    overflow: hidden;    /* Stellt sicher, dass Inhalte den Radius nicht sprengen */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* erzeugt leichten Schatten, lässt Karten  "schweben"*/
}

/* Über mich / Haltung (Beruhigendes Lichtblau) */
.section-about {
    background-color: #f1f5f9 !important; /* Ihr dezentes Lichtblau */
    margin: 20px 10px;
    border-radius: 15px;
    padding: 60px 20px !important;
    overflow: hidden;    /* Stellt sicher, dass Inhalte den Radius nicht sprengen */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* erzeugt leichten Schatten, lässt Karten  "schweben"*/
}

/* Kontaktbereich: Wie der Checkup-Block (Dunkelblau) */
.section-contact-dark {
    background-color: #1e293b !important; /* Ihr Checkup-Dunkelblau */
    color: #ffffff !important; /* Text weiß für Lesbarkeit */
    margin: 20px 10px;
    border-radius: 15px;
    padding: 60px 20px !important;
}
/* Sub-Headline Styling */
.section-contact .sppb-addon-header.contact-subheadline h3.sppb-addon-title {
    color: #949494 !important; 
    text-align: center !important;
    margin-bottom: 20px !important;
    font-weight: 300 !important;
}

/* Haupttext: Ein sehr helles Grau für bessere Lesbarkeit als reines Weiß */
.contact-section-text {
    color: #f1f5f9 !important;
}

/* Telefon und E-Mail: Ein helles, klares Akzent-Blau */
.contact-section-links a {
color: #7dd3fc !important; /* Deutlich helleres Blau als zuvor */
    text-decoration: underline !important; /* Unterstreichung verbessert die Erkennbarkeit als Link */
    font-weight: 700 !important; /* Deutlich fettere Schrift für bessere Lesbarkeit */
}

/* Link-Hover-Effekt (optional, für mehr Interaktivität) */
.contact-section-links a:hover {
    color: #ffffff !important;
}