/**
 * OYROPA DESIGN FIXES - Kontraste, Lesbarkeit, Mobile
 * Behebt alle gefundenen Design-Probleme
 */

/* ========================================
   1. KONTRAST-FIXES - LESBARKEIT
   ======================================== */

/* Navy Überschriften - Dunkler für besseren Kontrast */
h1, h2, h3, h4, h5, h6,
.section-title,
.bereich-card h3,
.vorteil h3 {
    color: #0F1B2E !important; /* Dunkleres Navy für 4.5:1 Kontrast */
    background: transparent !important;
}

/* Grauer Text - Dunkler für besseren Kontrast */
p, li, .section-subtitle,
.bereich-card p,
.bereich-card ul,
.vorteil p {
    color: #404040 !important; /* Dunkler als #666 für besseren Kontrast */
    background: transparent !important;
}

/* Gold Buttons - Navy Text statt Weiß */
.btn,
a.btn,
button.btn,
#user-auth-area a {
    background: #D69E2E !important;
    color: #1A365D !important; /* Navy Text auf Gold = 4.8:1 Kontrast */
    font-weight: 600 !important;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
    background: #1A365D !important;
    color: #FFFFFF !important;
}

/* Weiße Buttons auf Navy - Besserer Kontrast */
.btn-white,
.hero .btn {
    background: #FFFFFF !important;
    color: #1A365D !important;
    border: 2px solid #D69E2E !important;
}

/* ========================================
   2. MOBILE TOUCH-TARGETS (min 44x44px)
   ======================================== */

@media (max-width: 768px) {
    /* Alle interaktiven Elemente */
    a, button, input, select, .btn, .nav-menu a {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 12px 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Navigation Links */
    .nav-menu a,
    .oyropa-header .nav-menu a {
        min-height: 48px !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
    }

    /* Buttons */
    .btn,
    button,
    a.btn {
        min-height: 48px !important;
        min-width: 120px !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
    }

    /* Form-Elemente */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 16px !important; /* Verhindert iOS Zoom */
    }

    /* Hamburger Menu Button */
    #mobile-menu-toggle,
    .hamburger {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 12px !important;
    }

    /* Footer Links */
    footer a {
        min-height: 44px !important;
        padding: 10px 16px !important;
        display: inline-block !important;
    }
}

/* ========================================
   3. ÜBERLAPPUNGS-FIXES
   ======================================== */

/* Z-Index Hierarchie */
.modal { z-index: 1050 !important; }
.oyropa-header, header { z-index: 1000 !important; }
.nav-menu { z-index: 999 !important; }
.dropdown, #user-dropdown { z-index: 998 !important; }
footer { z-index: 100 !important; }
.bereich-card, .vorteil, .card { z-index: 1 !important; }

/* Karten - Kein Overlap */
.bereich-card,
.vorteil,
.service-card {
    margin-bottom: 30px !important;
    position: relative !important;
    isolation: isolate !important; /* Verhindert Überlappung */
}

/* ========================================
   4. BUTTON-KONSISTENZ
   ======================================== */

/* Standard Button Style */
.btn,
button.btn,
a.btn {
    background: #D69E2E !important;
    color: #1A365D !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
    background: #1A365D !important;
    color: #FFFFFF !important;
    border-color: #D69E2E !important;
    transform: translateY(-2px) !important;
}

/* Sekundär Button */
.btn-secondary {
    background: transparent !important;
    color: #1A365D !important;
    border: 2px solid #1A365D !important;
}

.btn-secondary:hover {
    background: #1A365D !important;
    color: #FFFFFF !important;
}

/* ========================================
   5. AUSRICHTUNGS-KONSISTENZ
   ======================================== */

/* Center-aligned Karten */
.bereich-card,
.vorteil {
    text-align: center !important;
}

.bereich-card h3,
.vorteil h3 {
    text-align: center !important;
    margin-bottom: 15px !important;
}

.bereich-card p,
.vorteil p {
    text-align: center !important;
    margin-bottom: 15px !important;
}

.bereich-card ul {
    text-align: left !important; /* Listen linksbündig */
    max-width: 80% !important;
    margin: 0 auto 20px !important;
}

/* ========================================
   6. HERO-SECTION KONTRAST-FIX
   ======================================== */

.hero {
    background: linear-gradient(135deg, #0F1B2E 0%, #1A365D 100%) !important;
    color: #FFFFFF !important;
}

.hero h1 {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.hero .subtitle,
.hero .description {
    color: #FFFFFF !important;
    opacity: 0.95 !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   7. FOOTER KONTRAST-FIX
   ======================================== */

footer {
    background: #0F1B2E !important; /* Dunkler für besseren Kontrast */
    color: #FFFFFF !important;
}

footer h3,
footer h4 {
    color: #D69E2E !important;
}

footer a {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

footer a:hover {
    color: #D69E2E !important;
}

/* ========================================
   8. NAVIGATION KONTRAST-FIX
   ======================================== */

.oyropa-header,
.nav-header {
    background: #0F1B2E !important; /* Dunkler Navy */
}

.nav-menu a,
.oyropa-header .nav-menu a {
    color: #FFFFFF !important;
}

.nav-menu a:hover,
.oyropa-header .nav-menu a:hover {
    color: #D69E2E !important;
}

/* ========================================
   9. CARD BACKGROUNDS - Kein Transparenz
   ======================================== */

.bereich-card,
.vorteil,
.service-card,
.card {
    background: #FFFFFF !important; /* Solider weißer Hintergrund */
    border: 1px solid #E0E0E0 !important;
}

/* ========================================
   10. ACCESSIBILITY - Screen Reader
   ======================================== */

/* Focus States für Keyboard Navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #D69E2E !important;
    outline-offset: 2px !important;
}

/* Skip-Link für Screen Reader */
.skip-link {
    position: absolute !important;
    top: -40px !important;
    left: 0 !important;
    background: #1A365D !important;
    color: #FFFFFF !important;
    padding: 8px !important;
    z-index: 10000 !important;
}

.skip-link:focus {
    top: 0 !important;
}
