:root {
    --primary: #000066; 
    --primary-hover: #000044;
    --bg-light: #f8f9fa;
    --text: #333333;
    --text-muted: #666666;
    --border: #eaeaea;
    --white: #ffffff;
}

/* =========================================
   1. GRUNDLAGEN & FIXES
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body { 
    color: var(--text); 
    background: var(--white); 
    line-height: 1.6; 
    overflow-x: clip; /* Verhindert horizontales Wackeln */
    width: 100%; 
    -webkit-user-select: none;
    user-select: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
a { text-decoration: none; color: var(--primary); }
svg { display: inline-block; width: 28px; line-height: 28px; vertical-align: middle; }

/* =========================================
   2. BUTTONS
   ========================================= */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; cursor: pointer; transition: 0.3s; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white) !important; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text) !important; border: 2px solid var(--border); }
.btn-outline:hover { background: var(--bg-light); border-color: var(--text); }

/* =========================================
   3. HEADER (STANDARD)
   ========================================= */
.main-header { 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    background: var(--white); 
    position: -webkit-sticky; /* WICHTIG für Safari/iOS */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: all 0.3s ease; 
}

.header-top { padding: 20px 0; border-bottom: 1px solid var(--border); transition: all 0.3s ease; }
.header-top-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 80px; display: block; transition: all 0.3s ease; }

.header-badges { display: flex; gap: 20px; transition: all 0.3s ease; }
.badge { display: flex; align-items: center; gap: 10px; background: var(--white); padding: 10px 20px; border-radius: 8px; border: 1px solid var(--border); }
.badge .icon { font-size: 24px; display: flex; }
.badge-text small { color: var(--text-muted); font-size: 12px; }
.badge-text strong { color: var(--text); font-size: 14px; display: block; }

.header-bottom { padding: 15px 0; transition: all 0.3s ease; }
.header-bottom-flex { display: flex; justify-content: space-between; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 600; text-transform: uppercase; font-size: 14px; transition: 0.2s; }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; gap: 15px; }

.mobile-menu-btn { display: none; background: var(--primary); color: var(--white); border: none; padding: 12px 20px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; width: 100%; text-align: center; }

/* =========================================
   4. HEADER (SCROLL-EFFEKT DESKTOP)
   ========================================= */
.main-header.is-scrolled .header-badges,
.main-header.is-scrolled .header-actions { display: none !important; }
.main-header.is-scrolled .header-top { padding: 8px 0 !important; border-bottom: none !important; }
.main-header.is-scrolled .header-bottom { padding: 8px 0 !important; }
.main-header.is-scrolled .logo img { height: 45px !important; }

/* =========================================
   5. MODULE & INHALTE
   ========================================= */
.hero-module { padding: 120px 0; background-size: cover; background-position: center; color: var(--white); }
.hero-module h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; max-width: 800px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-module p { font-size: 1.2rem; max-width: 600px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.content-section { padding: 60px 0; }
.bg-light { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: var(--primary); font-weight: 800; }

.feature-card { display: flex; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); align-items: center; }
.feature-text { padding: 50px; flex: 1; }
.feature-text h2 { color: var(--primary); margin-bottom: 20px; font-size: 2rem; font-weight: 800; }
.feature-text ul { list-style: none; margin: 20px 0 30px 0; }
.feature-text ul li { margin-bottom: 10px; font-weight: 600; display: flex; gap: 10px; }
.feature-image { width: 45%; object-fit: cover; min-height: 400px; }

/* =========================================
   6. FOOTER
   ========================================= */
.main-footer { background: var(--bg-light); padding: 50px 0 20px 0; margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; }
.footer-links a { color: var(--text); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }

/* =========================================
   7. MOBILE & TABLET (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
    /* --- Mobile Header Standard --- */
    .header-top { padding: 15px 0; }
    .header-top-flex { flex-direction: column; gap: 15px; }
    .logo img { height: 55px; margin: 0 auto; }
    
    .header-badges { flex-direction: row; width: 100%; gap: 10px; }
    .badge { flex: 1; flex-direction: column; text-align: center; padding: 10px 5px; gap: 5px; justify-content: center; }
    .badge .icon { margin: 0 auto; }
    .badge-text small { font-size: 10px; }
    .badge-text strong { font-size: 12px; }

    .header-bottom-flex { flex-direction: column; gap: 12px; }
    .mobile-menu-btn { display: block; }
    
    .header-actions { display: flex; width: 100%; gap: 10px; flex-direction: row; }
    .header-actions .btn { flex: 1; padding: 12px 5px; font-size: 13px; text-align: center; white-space: nowrap; }

    /* --- Mobile Menü Ausklappen --- */
    .main-nav { display: none; width: 100%; }
    .main-nav.active { display: block; margin-bottom: 10px; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li a { display: block; padding: 15px 10px; border-bottom: 1px solid var(--border); text-align: center; }

    /* --- Mobile Header Scrolled (Die kompakte Leiste) --- */
    .main-header.is-scrolled .header-bottom { padding: 0 !important; }
    .main-header.is-scrolled .logo img {
        height: 35px !important; 
        margin: 0 !important;  
        transition: height 0.3s ease;
    }
    .main-header.is-scrolled .header-top-flex {
        align-items: flex-start !important; 
    }


    .main-header.is-scrolled .mobile-menu-btn {
        position: absolute !important;
        top: 8px !important; 
        right: 20px !important; 
        width: auto !important;
        margin: 0 !important;
        padding: 6px 15px !important;
        font-size: 14px !important;
        z-index: 1001 !important;
    }

    .main-header.is-scrolled .main-nav.active {
        position: absolute !important;
        top: 50px !important; 
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* --- Mobile Module Anpassungen --- */
    .hero-module { padding: 70px 0; text-align: center; }
    .hero-module h1 { font-size: 1.6rem; line-height: 1.3; word-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
    .hero-module p { font-size: 1.05rem; margin: 0 auto; }
    
    .feature-card { flex-direction: column; }
    .feature-image { width: 100%; height: 250px; min-height: auto; }
    
    .footer-grid { flex-direction: column; gap: 30px; text-align: center !important; }
    .footer-contact p { justify-content: center; }
}
