/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

header {
    background-color: #800000;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
    letter-spacing: 2px;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: url('background.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero .btn {
    background: #800000;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
}

/* Services Section */
.services {
    background: #f4f4f4;
    padding: 2rem;
    text-align: center;
}

.services h2 {
    margin-bottom: 2rem;
}

.service-items {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap; /* Zeilenumbruch bei kleinen Bildschirmen */
}

.service-item {
    background: white;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1 1 calc(33.333% - 1rem); /* Dreispaltig auf größeren Bildschirmen */
    box-sizing: border-box;
}

.service-item h3 {
    margin-top: 0;
}

/* About Section */
.about {
    padding: 2rem;
    text-align: center;
}

.about h2 {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background: #f4f4f4;
    padding: 2rem;
    text-align: center;
}

.contact-info {
    text-align: center;
    font-size: 1em;
    margin-top: 10px;
    color: #555;
}

/* Formular-Styling */
.contact-form {
    background: white;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form h3 {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}

footer a {
    color: #800000;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Medienabfragen für Responsivität */
@media screen and (max-width: 768px) {
    .service-item {
        flex: 1 1 calc(50% - 1rem); /* Zweispaltig auf mittelgroßen Bildschirmen */
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .service-item {
        flex: 1 1 100%; /* Einspaltig auf kleinen Bildschirmen */
    }

    .nav ul {
        flex-direction: column; /* Navigation vertikal ausrichten */
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
