/* ==========================================================================
   1. CUSTOM VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --navy: #0f2042;
    --blue: #1d4ed8;       /* Elegantes, starkes Royal-Blau */
    --cyan: #06b6d4;       /* Frisches Hellblau/Cyan */
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --light-gray: #f4f7f6;
    --white: #ffffff;
}

body {
    background-color: var(--light-gray);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2b3641;
}

/* Hilfsklassen für Farben & Typografie */
.text-navy { color: var(--navy); }
.text-blue { color: var(--blue); }
.text-cyan { color: var(--cyan); }
.bg-blue { background-color: var(--blue) !important; }
.border-blue { border-color: var(--blue) !important; }
.border-cyan { border-color: var(--cyan) !important; }
.border-navy { border-color: var(--navy) !important; }
.x-small { font-size: 0.78rem; }
.leading-relaxed { line-height: 1.75; }

/* Struktur-Balken */
.top-bar { background-color: var(--navy); }
.welcome-bar { background-color: var(--navy); }

/* ==========================================================================
   2. LOGO & NAVIGATION
   ========================================================================== */
.logo-graphic {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 6px;
    transform: rotate(45deg);
}

.nav-menu .nav-link {
    color: var(--navy);
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    background-color: var(--blue) !important;
    color: var(--white) !important;
}

/* ==========================================================================
   3. HERO SLIDER & GLASSMORPHISM
   ========================================================================== */
.hero-slider {
    width: 100%;
    height: 450px;
    background-color: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-geometry-container {
    z-index: 5;
    pointer-events: none;
}

.hero-rhombus {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    width: 540px;
    height: 220px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.slider-controls {
    bottom: 25px;
    right: 40px;
    z-index: 6;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
}

.dot.active {
    background-color: var(--cyan);
}

/* ==========================================================================
   4. LAYOUT ELEMENTS (MODERNE BLAUE LEISTUNGSKARTEN-HINTERGRÜNDE)
   ========================================================================== */
.border-bottom-blue { border-bottom: 4px solid var(--blue) !important; }
.border-bottom-cyan { border-bottom: 4px solid var(--cyan) !important; }
.border-bottom-navy { border-bottom: 4px solid var(--navy) !important; }

/* Subtile, cleane bläuliche Nuancen für ein professionelles Dienstleister-Gefühl */
.card-custom-1 { background-color: #f0f4ff !important; } /* Soft Royal Blue Tint */
.card-custom-2 { background-color: #ecfeff !important; } /* Soft Cyan Tint */
.card-custom-3 { background-color: royalblue !important; } /* Clean Slate Tint */

/* Bootstrap Accordion Anpassung */
.accordion-button:not(.collapsed) {
    background-color: var(--light-gray);
    color: var(--blue);
    box-shadow: none;
}

/* Buttons */
.cta-btn {
    background-color: var(--blue);
    transition: all 0.2s;
}

.cta-btn:hover,
.cta-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 78, 216, 0.4);
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    transition: all 0.2s ease;
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: var(--whatsapp);
    border: none;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Visuelle Trennlinie */
.separator-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #dee2e6;
    z-index: 0;
}

/* ==========================================================================
   5. GLOBAL FOOTER
   ========================================================================== */
footer {
    background-color: #0b1320 !important;
}

.footer-links a:hover {
    color: var(--cyan) !important;
    padding-left: 4px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   6. ANIMATIONS & RESPONSIVE DESIGN
   ========================================================================== */
/* ==========================================================================
   6. ANIMATIONS & RESPONSIVE DESIGN (OPTIMIERT)
   ========================================================================== */
#content-viewport {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.min-vh-25 {
    min-height: 250px;
}

@media (min-width: 768px) {
    .min-vh-25 {
        min-height: 100%;
    }
}

/* Mobile Optimierungen für die gequetschte Ansicht */
@media (max-width: 768px) {
    .hero-rhombus {
        width: 90%;
        height: auto;
        padding: 2rem 0;
    }

    /* Macht die obere blaue Leiste flacher und ordentlicher */
    .top-bar {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .top-bar .container {
        gap: 2px !important;
    }
    .contact-info span {
        display: block;
        margin-right: 0 !important;
        margin-bottom: 2px;
        font-size: 0.72rem; /* Leicht kleinere Schrift auf Mobile für mehr Platz */
    }
    .top-bar div span {
        font-size: 0.72rem;
    }

    /* Styling für das mobile Ausklappmenü */
    .nav-menu {
        padding: 10px 0;
    }
    .nav-menu .nav-link {
        border-radius: 8px;
        text-align: center;
        margin-bottom: 4px;
    }
}