/* ==========================================================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================================================== */
:root {
    --primary-color: #7898A6;   /* Staubiges Blau */
    --primary-hover: #5A7581; 
    --secondary-color: #ddcfbc; /* Beige */
    --text-dark: #2F2B28;       /* Dunkles Graubraun */
    --text-nav: #333333;        /* Navigation Grau (für Dropdowns) */
    --bg-light: #F5F4F0;        /* Heller Hintergrund */
    --dark-bg-color: #3C3734;   /* Anthrazit Hintergrund */
}

body {
    font-family: Calibri, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: white; 
    padding-top: 86px; /* Platz für die fixierte Navbar */
    font-size: 1.1rem; 
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 400 !important; 
}

/* Hilfsklassen */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* Farben & Hintergründe */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color); color: white; }

/* Dornheim Dunkel (Wichtig für Navbar) */
.bg-dornheim-dark {
    background-color: var(--dark-bg-color) !important;
    color: color-mix(in srgb, var(--bg-light), transparent 50%);
    transition: background-color 0.3s ease;
}

/* CTA Hintergrund (Dunkler, aber 8% heller als Footer) */
.bg-dark-lighter {
    background-color: var(--dark-bg-color);
    background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
}

/* Grayscale Effekt für Logos */
.logo-grayscale {
    filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease;
}
.logo-grayscale:hover {
    filter: grayscale(0%); opacity: 1;
}


/* ==========================================================================
   2. NAVIGATIONSLEISTE (Global Dunkel)
   ========================================================================== */
.navbar {
    /* WICHTIG: Hier erzwingen wir Anthrazit für ALLE Geräte */
    background-color: var(--dark-bg-color) !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 400; 
    color: white !important; /* Weiß auf Dunkel */
    font-size: 1.5rem; letter-spacing: -0.5px;
}

.logo-img { height: 30px; width: auto; display: block; }

/* --- Links Styling (Immer Weiß auf der Leiste) --- */
.nav-link {
    font-weight: 400; 
    color: rgba(255, 255, 255, 0.9) !important; /* Fast Weiß */
    font-size: 1.05rem;
    padding-left: 1.2rem !important; padding-right: 1.2rem !important;
    transition: color 0.2s ease;
}

/* Hover-Effekt: Sandfarben oder Blau */
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important; 
}

/* Navbar Buttons (Outline Light für Dunklen Grund) */
.navbar .btn-outline-light {
    border-color: rgba(255,255,255,0.5); color: white;
}
.navbar .btn-outline-light:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--dark-bg-color) !important;
}


/* --- Dropdown Menü (Am PC weißer Kasten) --- */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block; margin-top: 0; animation: fadeIn 0.3s ease;
    }
    .dropdown-menu {
        background-color: white !important; /* Weißer Kasten */
        border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .dropdown-item {
        color: var(--text-dark) !important; /* Dunkle Schrift im weißen Kasten */
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item { font-weight: 400; padding: 0.5rem 1.5rem; transition: all 0.2s ease; }
.dropdown-item:hover {
    background-color: color-mix(in srgb, var(--primary-color), transparent 50%); color: white !important;
}


/* ==========================================================================
   3. BUTTONS & UI
   ========================================================================== */
.btn-primary-custom {
    background-color: var(--primary-color); border-color: var(--primary-color);
    color: white; transition: all 0.3s ease;
    padding: 0.6rem 1.5rem; font-weight: 400;
}
.btn-primary-custom:hover {
    background-color: var(--primary-hover); border-color: var(--primary-hover); color: white;
}

.btn-outline-sand {
    color: var(--secondary-color); border-color: var(--secondary-color); transition: all 0.3s ease;
}
.btn-outline-sand:hover {
    background-color: var(--secondary-color); color: var(--dark-bg-color);
}

.btn-hover-brand { transition: all 0.2s ease; }
.btn-hover-brand:hover {
    background-color: var(--primary-color); border-color: var(--primary-color); color: #ffffff !important;
}

/* Akkordeon */
.accordion-item { background-color: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.accordion-button {
    background-color: #fff; color: var(--text-dark); font-weight: 400 !important;
    padding: 1.2rem 1.5rem; border: none; box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background-color: color-mix(in srgb, var(--primary-color), transparent 90%);
    color: var(--primary-color); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}
.accordion-body { padding: 1.5rem; line-height: 1.6; border-top: 1px solid rgba(0,0,0,0.03); }
.accordion-button:hover i { transform: translateX(3px); transition: transform 0.2s ease; }


/* ==========================================================================
   4. SEKTIONEN (Hero, Pricing, Footer)
   ========================================================================== */
/* Hero Desktop */
header.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F0F4 100%);
    background-size: cover; background-position: top center; background-repeat: no-repeat;
    min-height: 80vh;
}
.hero-content-box {
    background-color: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px);
}

/* Services */
section#services.bg-light { background-color: var(--bg-light) !important; }
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #eaeaea; background: white;
}
.service-card:hover {
    transform: translateY(-5px); box-shadow: 0 1rem 3rem rgba(47, 43, 40, 0.08) !important;
}

/* Pricing / Features */
section#pricing.bg-light {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}
.border-primary-custom { border: 2px solid var(--primary-color); }
@media (min-width: 992px) {
    .card.border-primary-custom { transform: scale(1.05); z-index: 10; }
}

/* Footer */
footer.bg-dark {
    background-color: var(--dark-bg-color) !important; 
    color: color-mix(in srgb, var(--bg-light), transparent 50%);
}
footer.bg-dark h1, footer.bg-dark h2, footer.bg-dark h3, 
footer.bg-dark h4, footer.bg-dark h5, footer.bg-dark h6 {
    color: var(--primary-color) !important;
    font-weight: 300 !important; letter-spacing: 0.5px; margin-bottom: 1.2rem;
}


/* ==========================================================================
   5. SPEZIAL-ELEMENTE (Carousel, Adaptive Box)
   ========================================================================== */
/* Carousel Icons */
.carousel-dark .carousel-control-prev-icon, .carousel-dark .carousel-control-next-icon { filter: none !important; }
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237898A6' viewBox='0 0 16 16'%3e%3cpath d='m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z'/%3e%3c/svg%3e") !important;
    width: 3rem; height: 3rem;
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237898A6' viewBox='0 0 16 16'%3e%3cpath d='m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z'/%3e%3c/svg%3e") !important;
    width: 3rem; height: 3rem;
}
.carousel-indicators [data-bs-target] {
    width: 12px !important; height: 12px !important; border-radius: 50% !important;
    background-color: transparent !important; border: 2px solid var(--primary-color) !important;
    opacity: 1 !important; margin: 0 6px !important;
    border-top: 2px solid var(--primary-color) !important; border-bottom: 2px solid var(--primary-color) !important;
}
.carousel-indicators .active { background-color: var(--primary-color) !important; }

@media (min-width: 992px) {
    .carousel-control-prev { left: 12% !important; }
    .carousel-control-next { right: 12% !important; }
}

/* Adaptive Box Basis */
.adaptive-box { position: relative; width: 100%; }
@media (min-width: 992px) {
    .adaptive-box { aspect-ratio: 1/1 !important; }
    .info-badge { border-top-right-radius: 20px; border-bottom-left-radius: 10px; }
}


/* ==========================================================================
   6. MOBILE OPTIMIERUNG (Alles unter 992px)
   ========================================================================== */
@media (max-width: 991px) {

    /* --- A) Layout & Abstände --- */
    .container, .container-fluid { padding-left: 20px !important; padding-right: 20px !important; }
    .row { margin-left: 0 !important; margin-right: 0 !important; }
    .py-6, .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

    /* --- B) Menü & Navigation (Mobil) --- */
    .logo-img { height: 22px !important; }
    .navbar-toggler {
        font-size: 0.9rem !important; padding: 0.25rem 0.5rem !important;
        border-color: rgba(255,255,255,0.1) !important; margin-right: 0;
    }
    
    /* Menü ausgeklappt: Dunkel */
    .navbar-collapse {
        background-color: var(--dark-bg-color) !important; 
        padding: 1.5rem; margin-top: 1rem;
        border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        color: white !important;
    }
    
    /* Links weiß */
    .navbar-nav .nav-link {
        color: rgba(255,255,255,0.95) !important; 
        padding-left: 0 !important; font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-top: 0.8rem; padding-bottom: 0.8rem;
    }
    .navbar-nav .nav-link:last-child { border-bottom: none; }
    
    /* English Button Mobile */
    .navbar-collapse .ms-auto { margin-top: 1.5rem !important; width: 100%; }
    .navbar-collapse .btn-outline-light { 
        width: 100%; color: white !important; border-color: rgba(255,255,255,0.3) !important; 
    }

    /* --- 1. DAS IST DER WEISSE STREIFEN ganz oben--- */
    /* Wir verringern den Platzhalter für die fixierte Leiste */
    body {
        padding-top: 65px !important; /* Teste mal 60px bis 70px */
    }

    /* --- C) Hero Section --- */
    header.hero-section {
        min-height: auto !important; height: auto !important;
        display: block !important;
        padding-top: 30px !important; padding-bottom: 30px !important;
        margin-top: 0 !important; margin-bottom: 0 !important;
    }
    .hero-section .row { --bs-gutter-y: 0 !important; }
    
    .hero-section .col-lg-7 {
        margin-bottom: 1rem !important; padding-bottom: 0 !important;
        background: none !important; box-shadow: none !important;
    }
    .hero-section .col-lg-7 .d-flex {
        display: block !important; width: 100%;
        padding-bottom: 0 !important; margin-bottom: 0 !important;
    }
    .hero-section .col-lg-5 {
        margin-top: 0 !important; padding-top: 0 !important;
    }
    .hero-section .col-lg-5 img { margin-top: 0 !important; }


    /* --- D) Buttons Mobile --- */
    .btn, .btn-lg {
        padding-top: 0.6rem !important; padding-bottom: 0.6rem !important;
        font-size: 1rem !important; width: 100% !important;
        display: block; margin-bottom: 0.75rem !important; min-height: auto !important;
    }
    /* Auf dunklem Hintergrund (CTA-Section) oder Bild Outline-Button anpassen */
    .btn-outline-dark { border: 1px solid #ccc; background-color: transparent; color: var(--text-dark); }
    .btn i { margin-left: 8px; vertical-align: middle; }


    /* --- E) Typografie & Swap --- */
    h1, .display-5 {
        font-size: 1.9rem !important; text-align: left !important;
        line-height: 1.2; margin-bottom: 1rem !important;
    }
    h2 { font-size: 1.5rem !important; text-align: left !important; }
    p.lead, p { font-size: 1.05rem !important; text-align: left !important; }
    
    .text-center h2, .text-center p, .text-center .col-md-4 { text-align: center !important; }
    .text-center img { margin-left: auto !important; margin-right: auto !important; }

    /* Swap: Text vor Bild */
    .col-lg-9, .col-lg-8, .col-lg-7 { order: 1 !important; }
    .col-lg-3, .col-lg-4, .col-lg-5 { order: 2 !important; margin-top: 2rem !important; }


    /* --- F) Bilder & Banner --- */
    img.d-lg-none {
        width: 100% !important; max-width: 100% !important; height: auto !important;
        margin-left: 0 !important; margin-right: 0 !important; margin-bottom: 0rem !important;
        border-radius: 8px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Das Spezial-Banner (30+ Jahre) */
    .adaptive-box {
        aspect-ratio: auto !important; background: transparent !important;
        box-shadow: none !important; overflow: visible !important; margin-bottom: 1.5rem !important;
    }
    .adaptive-box img.d-lg-none {
        border-radius: 12px 12px 0 0 !important; margin-bottom: 0 !important;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05); position: relative; z-index: 2;
    }
    .info-badge {
        position: static !important; width: 100% !important;
        border-radius: 0 0 12px 12px !important; margin-top: -1px;
        display: flex !important; align-items: center; justify-content: flex-start;
        gap: 12px; padding: 1rem 1.5rem !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }
    .info-badge .value-text { font-size: 1.8rem !important; margin-bottom: 0 !important; line-height: 1; }
    .info-badge .label-text { font-size: 0.9rem !important; padding-top: 4px; opacity: 0.9; }

    
}