/* ===========================================
   UNIFIED STYLES - Energie Markt 24
   Für alle Seiten gleich!
   =========================================== */

/* ===== ÜBERSCHRIFTEN - KONSISTENTE GRÖßEN ===== */
h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

/* ===== HERO BEREICH - TEXT WEIß ===== */
.hero h1,
.hero h1 * {
    color: #ffffff !important;
}

.hero h1 .highlight {
    color: #ffffff !important;
}

.hero p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== HEADER & NAVIGATION - EINHEITLICH ===== */
/* Höchste Spezifität für konsistente Header auf allen Seiten */
body .header,
html body .header,
#header.header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    border-bottom: 1px solid var(--border) !important;
}

body .header .header-content,
html body .header .header-content,
#header .header-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0.875rem 2rem !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
    min-height: 60px !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    text-decoration: none !important;
    color: var(--dark) !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
}

.logo img {
    height: 40px !important;
}

.nav {
    display: flex !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav a {
    color: var(--text) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    position: relative !important;
    transition: color 0.3s ease !important;
    padding: 0.5rem 0 !important;
}

.nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--primary) !important;
    transition: width 0.3s ease !important;
}

.nav a:hover,
.nav a.active {
    color: #ea580c !important;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100% !important;
}

.contact-info {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
}

.contact-info a {
    color: var(--text) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: color 0.3s ease !important;
}

.contact-info a:hover {
    color: var(--primary) !important;
}

/* ===== MOBILE NAVIGATION - EINHEITLICH ===== */
.mobile-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: var(--dark) !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
}

/* ===== TABLET BREAKPOINT ===== */
@media (max-width: 1024px) {
    .nav {
        gap: 1.5rem !important;
    }
    
    .nav a {
        font-size: 0.9rem !important;
    }
    
    .contact-info a span {
        display: none !important;
    }
}

/* ===== MOBILE BREAKPOINT - EINHEITLICH FÜR ALLE SEITEN ===== */
@media (max-width: 768px) {
    /* Header Mobile - GLEICH auf allen Seiten */
    .header-content {
        padding: 0.875rem 1rem !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .logo {
        font-size: 1.25rem !important;
    }
    
    .logo img {
        height: 36px !important;
    }
    
    /* Navigation auf Mobile verstecken */
    .nav,
    .header nav,
    .header nav ul.nav {
        display: none !important;
    }
    
    .contact-info {
        display: none !important;
    }
    
    .mobile-toggle {
        display: block !important;
    }
    
    /* Überschriften Mobile */
    h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Hero Mobile */
    .hero h1 {
        font-size: 1.75rem !important;
        color: #ffffff !important;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem !important;
        flex-direction: row !important;
    }
    
    .logo img {
        height: 32px !important;
    }
    
    h1, .hero h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1rem !important;
    }
}

/* ===== E-MAIL VALIDIERUNG STYLES ===== */

/* Wrapper für beide E-Mail-Felder nebeneinander */
.email-pair {
    display: flex !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
}

.email-field {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
}

.email-field .form-group {
    margin-bottom: 0 !important;
    width: 100% !important;
}

.email-field input,
.email-pair input {
    width: 100% !important;
    min-width: 200px !important;
}

/* Mobile: E-Mail-Felder untereinander */
@media (max-width: 768px) {
    .email-pair {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .email-field {
        width: 100%;
    }
}

.email-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.email-error.show {
    display: block;
}

.email-suggestion {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: none;
}

.email-suggestion.show {
    display: block;
}

.email-suggestion-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.email-suggestion-btn:hover {
    background: #d97706;
}

/* Input-Validierungs-States */
input.email-valid {
    border-color: #16a34a !important;
}

input.email-invalid {
    border-color: #dc2626 !important;
}
