﻿/* Zentrale Design-Steuerung für Insel-Elektriker.com 
   Optimiert für Mobile & SEO
*/

:root {
    --brand-color: #E8B92F;
    --dark-color: #231F20;
    --text-color: #333333;
    --bg-color: #ffffff;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* Verhindert zu kleine Schrift auf Handys */
    font-size: 16px; 
}

/* Texteinstellungen für alle Elemente */
div, p, span, td {
    font-family: Verdana, Geneva, sans-serif;
    color: var(--text-color);
}

/* Überschriften modernisieren */
h1, h2, h3, b, u {
    color: var(--dark-color);
}

/* Links als Buttons oder Akzente */
a:link, a:visited {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

a:hover {
    color: var(--brand-color);
}

/* Spezielle Klasse für die Menü-Links (falls benötigt) */
.nav-link {
    background-color: var(--brand-color);
    padding: 8px 15px;
    border-radius: 4px;
    margin: 5px;
    display: inline-block;
}

/* Responsive Bilder: Verhindert, dass Bilder breiter als das Display sind */
img {
    max-width: 100%;
    height: auto;
}

/* Tabellen-Fix: Macht Tabellen auf dem Handy scrollbar, falls sie zu breit sind */
table {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
}

/* Mobile Optimierung: Schriftgröße auf sehr kleinen Geräten leicht anpassen */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }
}

@media screen and (max-width: 600px) {
    .nav-bar {
        line-height: 2.8; 
        font-size: 1.1rem;
    }
    
    .nav-bar a {
        display: inline-block;
        padding: 5px 15px;
        margin: 3px;
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .brand-info {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }

    .service-section {
        flex-direction: column !important;
    }
}