/* Grundlegende Stildefinitionen */
:root {
    --primary-color: #6c757d; /* Grau */
    --secondary-color:  #007bff; /* Ein helles Blau */
    --accent-color: #28a745; /* Grün für Call-to-Actions */
    --text-color: #343a40; /* Dunkles Grau für Text */
    --bg-light: #f8f9fa; /* Hellgrau für Hintergrund von Abschnitten */
    --font-family: 'Arial', sans-serif; /* Oder eine Google Font */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

header .logo a {
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

header .logo img {
    max-height: 75px;
    width: auto;
    display: block;
}

header .logo h1 {
    margin: 0;
    font-size: 1.8rem;
    white-space: nowrap;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Mindesthöhe für Hero-Bereich */
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #218838; /* Etwas dunklerer Grünton */
}

/* Allgemeine Sektionen */
.section-padded {
    padding: 60px 0;
}

.section-padded h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-padded h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Leistungen Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

/* Kontakt Sektion */
.contact-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.btn {
    align-self: flex-start; /* Button linksbündig */
    width: auto;
}

/* Footer */
footer {
    background: var(--text-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 0 10px;
        margin-bottom: 10px;
    }

    .hero-section h2 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-padded h3 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
        min-height: 300px;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }
}

/* --- Dark Mode Styles --- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a; /* Dunkler Hintergrund */
        color: #e0e0e0; /* Heller Text */
    }

    header {
        background: #333; /* Dunklerer Header */
        box-shadow: 0 2px 5px rgba(255,255,255,0.1);
    }

    header nav ul li a {
        color: #f0f0f0;
    }

    header nav ul li a:hover {
        color: var(--primary-color); /* Oder eine helle Akzentfarbe */
    }

    .hero-section {
        /* Hintergrundbild kann beibehalten oder für Dark Mode angepasst werden */
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero-bg.jpg') no-repeat center center/cover;
    }

    h1, h2, h3, h4 {
        color: #f0f0f0; /* Überschriften heller */
    }

    .section-padded h3::after {
        background: var(--primary-color); /* Akzentlinie beibehalten */
    }

    .bg-light {
        background-color: #2b2b2b; /* Dunklerer Hintergrund für helle Sektionen */
    }

    .service-item {
        background: #3a3a3a; /* Dunklerer Hintergrund für Service-Boxen */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .service-item h4 {
        color: var(--primary-color); /* Akzentfarbe für Titel beibehalten */
    }

    .service-item p {
        color: #cccccc; /* Hellerer Text für Service-Boxen */
    }

    .btn {
        background: #007bff; /* Oder eine andere leuchtende Akzentfarbe im Dark Mode */
        color: #fff;
    }

    .btn:hover {
        background: #0056b3; /* Dunklerer Hover-Zustand */
    }

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

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        background-color: #333;
        color: #e0e0e0;
        border: 1px solid #555;
    }

    footer {
        background: #222; /* Dunklerer Footer */
        color: #ccc;
    }

    footer a {
        color: #f0f0f0;
    }

    footer a:hover {
        color: var(--primary-color);
    }
}
