/* --- style.css --- */
/* Kombinierte & vereinheitlichte Stile für Elektroservice Bott */

/* --- Allgemeine Stile --- */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 2.5rem 1rem;
}

h1, h2, h3 {
    color: #2c3e50;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Header & Navigation --- */
.navbar {
    background-color: #ffffff;
    color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    /* NEU (Problem 2): Transition für das Ein/Ausblenden */
    transition: transform 0.3s ease-out;
}
/* NEU (Problem 2): Klasse zum Ausblenden des Headers */
.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar .logo {
    max-height: 70px; /* GEÄNDERT (Problem 3): War 60px */
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    /* GEÄNDERT (Problem 3): Transition auch für box-shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.navbar .logo:hover {
    transform: scale(1.05);
    /* NEU (Problem 3): Stärkerer Schatten beim Hovern */
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.navbar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
.navbar nav li {
    margin-left: 1.5rem;
}
.navbar nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.navbar nav a:hover {
    color: #3498db;
}

/* WhatsApp-Button im Header */
.whatsapp-header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #25d366; 
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    margin-left: 1.5rem;
}
.whatsapp-header-btn:hover {
    background-color: #128c7e; 
    transform: scale(1.05); 
}
.whatsapp-header-btn i {
    font-size: 20px;
}
.whatsapp-header-btn span {
    font-size: 0.9rem;
}


/* --- Hero Section (Nur Startseite) --- */
.hero {
    /* HIER IST DIE KORREKTE ZEILE: */
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('hero-hintergrund.webp') center center/cover no-repeat;
    color: white;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}
.hero h1 {
    color: white;
    font-size: 3rem;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
}
.hero .btn, .btn-primary {
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}
.hero .btn:hover, .btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- Allgemeine Sektionen (Full-Width-Fix) --- */
.section-light {
    background-color: #ffffff;
}
.section-dark {
    background-color: #f9f9f9;
}

/* NEU (Problem 1): H1 im "About Us"-Block zentrieren */
.about-us h1 {
    text-align: center;
}

.about-us p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Service Grid (Startseite & Leistungs-Seite) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.service-card .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}
.service-card .icon-box i {
    font-size: 2.5rem;
    color: white;
}
.service-card .icon-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -2.5rem -2rem 1.5rem -2rem; 
    width: calc(100% + 4rem);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.service-card p {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
}


/* --- Kontakt-Sektion (CTA auf Startseite) --- */
.contact-cta {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0; /* Padding reduziert */
}
.contact-cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}
.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.contact-cta .btn {
    background-color: #3498db;
    color: white;
}
.contact-cta .btn:hover {
    background-color: #ffffff;
    color: #2c3e50;
}


/* --- Kontakt-Seite (aus kontakt.html) --- */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: white;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    align-items: flex-start; 
}
.contact-form-section, .contact-info-section {
    flex: 1; 
    min-width: 300px; 
}
.contact-form-section h2, .contact-info-section h2 {
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0;
    font-size: 1.8em; 
}
.contact-form-section p, .contact-info-section p {
    margin-top: 0;
    font-size: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.3rem; 
    font-weight: bold;
}
.contact-form input,
.contact-form textarea {
    width: 100%; 
    padding: 0.5rem 0.5rem; 
    margin-bottom: 0.8rem; 
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    font-size: 1rem;
}
.contact-form textarea {
    min-height: 100px; 
}
.contact-form button {
    width: 100%; 
}
.privacy-checkbox {
    margin-top: 0.6rem; 
    margin-bottom: 0.8rem; 
    display: flex;
    align-items: flex-start;
    max-width: 100%; 
}
.privacy-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}
.privacy-checkbox label {
    font-weight: normal;
    font-size: 0.9rem;
}
.privacy-checkbox label a {
    color: #3498db;
    text-decoration: none;
}
.contact-info-section p i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
    text-align: center;
}
.map-container {
    height: 300px; 
    background-color: #e9e9e9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 2rem;
    overflow: hidden;
    display: flex; 
    justify-content: center;
    align-items: center;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-consent-banner {
    text-align: center;
    padding: 20px;
}
.map-consent-banner p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.map-consent-btn {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.map-consent-btn:hover {
    background-color: #3498db;
}

/* Modal-Styling (für Kontaktformular) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    padding-top: 15%;
}
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.modal-content h3 { color: #2c3e50; }
.modal-content p { margin-bottom: 1.5rem; }
.modal-content button {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


/* --- Leistungs-Seite (aus leistungen.html) --- */
.page-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-btn-container {
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Impressum & Datenschutz --- */
.legal-content-container {
    background-color: #f9f9f9; 
    padding: 2.5rem 0;
}
.legal-content {
    background-color: #ffffff;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p, .legal-content li {
    font-size: 0.95rem;
    line-height: 1.7;
}
.legal-content ul {
    padding-left: 20px;
}

/* --- Footer (Einheitlich) --- */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem; 
    margin-top: 0;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-nav li {
    margin: 0.25rem 1rem;
}
.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: #3498db;
}


/* --- Media Queries (Responsiveness) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    .navbar .logo {
        margin-bottom: 1rem;
    }
    .navbar nav ul {
        justify-content: center;
        width: 100%;
    }
    .navbar nav li {
        margin: 0 0.75rem;
    }
    .whatsapp-header-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin: 0;
        padding: 8px 12px; 
    }
    .whatsapp-header-btn span {
        display: none; 
    }
    
    .hero {
        height: auto;
        padding: 4rem 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    h2, .page-title {
        font-size: 2rem;
    }
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-form-section, .contact-info-section {
        min-width: 0; 
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        max-width: 100%; 
    }
    .legal-content {
        padding: 1.5rem;
    }
}
