/* ELEKTROTECHNIK WEGERER - DARK MODE
    Design by Marketing-Profi
*/

:root {
    --bg-color: #000000;          
    --card-bg: #111111;           
    --card-border: #333333;       
    --text-main: #ffffff;         
    --text-muted: #a1a1aa;        
    --accent: #3b82f6;            
    --accent-hover: #60a5fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    
    /* === NEU: DER BLITZ IM HINTERGRUND === */
    /* Die Zahl 0.03 steht für 3% Sichtbarkeit. Wenn er dir zu dunkel ist, mach 0.05 daraus! */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255, 255, 255, 0.03)' d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: 80vmin; /* Passt sich automatisch perfekt an Handy- und PC-Bildschirme an */
    
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* HEADER */
header {
    border-bottom: 1px solid var(--card-border);
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* LOGO VERGRÖSSERT & WEISS HINTERLEGT */
.logo-img {
    max-height: 150px; 
    width: auto;
    background-color: #ffffff; /* Weißer Hintergrund */
    padding: 10px; /* Etwas Abstand zum Rand, damit das Logo nicht klebt */
    border-radius: 8px; /* Leicht abgerundete Ecken für eine moderne Optik */
}

.header-info {
    display: flex;
    gap: 40px;
    text-align: right;
    font-size: 0.9rem;
    align-items: center; /* NEU: Zentriert das Portrait und den Text vertikal */
}

/* NEU: Styling für das Portrait */
.portrait-img {
    height: 150px; /* Hier vergrößert von 80px auf 100px */
    width: 150px;  /* Hier vergrößert von 80px auf 100px */
    object-fit: cover; 
    border-radius: 50%; 
    border: 2px solid var(--accent); 
}

@media (max-width: 768px) {
    /* Damit das Portrait auf dem Handy nicht zu groß wirkt oder das Layout sprengt */
    .portrait-img {
        height: 80px; /* Auf dem Handy auch etwas größer (vorher 60px) */
        width: 80px;
        margin-top: 10px;
    }
}


.info-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.info-link {
    color: var(--text-main);
    font-weight: 600;
}

/* SERVICES FLEX-GRID (Symmetrische Anordnung) */
.services {
    padding: 60px 0;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 25px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: calc(33.333% - 17px); 
    /* Ein leichter Blur-Effekt, damit der Blitz im Hintergrund nicht beim Lesen stört */
    backdrop-filter: blur(5px);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

.service-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-weight: 300;
}

/* EMERGENCY SECTION */
.emergency {
    padding: 40px 0 80px;
}

.emergency-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #050505 100%);
    border: 1px solid #333;
    border-left: 4px solid var(--accent);
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.emergency-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.emergency-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-glow {
    display: inline-block;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-glow:hover {
    background: var(--accent);
    color: var(--text-main);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0 20px;
    background: #050505;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p {
    color: var(--text-muted);
}

.hours-table {
    width: 100%;
    color: var(--text-muted);
    border-collapse: collapse;
}

.hours-table td {
    padding: 5px 0;
    border-bottom: 1px solid #222;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links a {
    color: var(--text-muted);
    margin-left: 10px;
}

.legal-links a:hover {
    color: var(--text-main);
}

/* LEGAL PAGES STYLING (Impressum & Datenschutz) */
.legal-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    margin: 60px auto;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.legal-content h1 { font-size: 2.2rem; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; color: var(--accent); }
.legal-content h3 { font-size: 1.2rem; margin-top: 20px; margin-bottom: 10px; }
.legal-content p, .legal-content li { margin-bottom: 15px; color: var(--text-muted); }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .service-card {
        width: calc(50% - 13px); /* Bei Tablet 2 Boxen nebeneinander */
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .header-info {
        justify-content: center;
        text-align: center;
    }
    .d-none-mobile {
        display: none;
    }
    .service-card {
        width: 100%; /* Auf dem Handy alle untereinander */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3 {
        margin: 0 auto 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .emergency-box {
        padding: 30px 20px;
    }
}