/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* Seriöse, gut lesbare Schriftart */
    background-color: #f4f4f4; /* Helles, neutrales Grau für eine ruhige Atmosphäre */
    color: #333;
    padding-top: 80px; /* Platz für fixierten Header */
    padding-bottom: 60px; /* Platz für fixierten Footer */
}

/* Kontaktbereich außen */
.info-section {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0; /* zentriert unter den Boxen */
}

/* Container für den Flex-Layout (Kontaktbereich etc.) */
.info-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Überschriften/Zeilen oben ausrichten */
    justify-content: space-between; /* Text und Map nebeneinander */
    gap: 2rem; /* Abstand zwischen Text und Map */
}

/* Zusätzliche Flex-Utility-Klasse (falls woanders genutzt) */
.flex-container {
    /* aktuell keine speziellen Overrides nötig */
}

/* Textinhalt */
.text-content {
    flex: 1 1 260px; /* Text bekommt min. Breite, wächst mit */
}

/* Bildinhalt (für alte Seiten, falls noch benutzt) */
.image-content {
    max-width: 50%;
    flex: 0 0 auto; /* Bild wird auf der rechten Seite fixiert */
}

.content-image {
    max-width: 100%; /* Bild passt sich dem Container an */
    height: auto;
}

/* Map-Container (für Google Maps) */
.map-container {
    flex: 1 1 420px;   /* Karte etwas dominanter */
    min-height: 350px; /* Höhe der Karte auf Desktop */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Fixierter Header */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #56ccf2, #2f80ed); /* Helles Blau zu Dunkelblau Verlauf */
    color: white;
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
}

header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
}

.main-nav {
    margin-top: 20px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-nav li {
    margin: 0 20px;
}

.main-nav a {
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #1abc9c; /* Sanftes Grün für Hover-Effekte */
}

/* Content */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px; /* Reduzierter Abstand für Header und Footer */
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    margin-bottom: 20px; /* Weniger Abstand unterhalb des Inhalts */
}

.content h2 {
    font-size: 2.5em;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

.content p {
    font-size: 1.2em;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

/* Call-to-Action */
.cta {
    background-color: #1abc9c; /* Sanftes Grün */
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    border-radius: 5px;
}

.cta a {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}

.cta:hover {
    background-color: #16a085; /* Etwas dunkleres Grün beim Hover */
}

/* Fixierter Footer (einheitlich) */
footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to top, #56ccf2, #2f80ed); /* Helles Blau zu Dunkelblau Verlauf */
    color: white;
    margin-top: 40px;
    z-index: 1000;
}

/* Navigation unterhalb des Headers */
.nav-sections {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 40px 0;
    margin-top: 40px; /* Abstand zum fixierten Header */
}

.nav-section {
    background-color: #ecf0f1; /* Helles Grau für das Hintergrund der Sektionen */
    padding: 20px;
    border-radius: 10px; /* Abgerundete Ecken für das Layout */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%; /* Jede Sektion bekommt 30% Breite */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-section:hover {
    transform: translateY(-5px); /* Leichter "Hochziehen"-Effekt */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.nav-section h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.nav-section ul {
    list-style: none;
    padding: 0;
}

.nav-section li {
    margin-bottom: 8px;
}

.nav-section a {
    color: #34495e;
    font-size: 1.1em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-section a:hover {
    color: #1abc9c; /* Sanftes Grün für Hover-Effekte */
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 15px 0; /* Weniger Abstand für Header auf mobilen Geräten */
    }

    header h1 {
        font-size: 1.8em; /* Kleinere Schriftgröße für den Header */
        margin-bottom: 10px; /* Weniger Abstand zur Navigation */
    }

    /* Navigation unter dem Header */
    .main-nav ul {
        flex-direction: column; /* Navigationselemente vertikal anordnen */
        padding: 0;
        margin-top: 10px;
        background-color: #2f80ed; /* Hintergrundfarbe der Navigation auf kleineren Geräten */
        width: 100%;
        position: absolute;
        top: 70px; /* Abstand zum Header */
        left: 0;
        z-index: 999; /* Sicherstellen, dass die Navigation oben angezeigt wird */
        display: none; /* Navigation verstecken */
    }

    .main-nav li {
        margin: 10px 0; /* Abstand zwischen den Links */
        text-align: center;
    }

    .main-nav a {
        color: white;
        font-size: 1.2em;
        text-decoration: none;
        display: block; /* Links blockartig anzeigen */
        padding: 10px;
    }

    .main-nav a:hover {
        background-color: #1abc9c; /* Sanftes Grün für Hover-Effekte */
    }

    /* Menü-Button für mobile Ansicht */
    .menu-toggle {
        display: block;
        background-color: #2f80ed;
        color: white;
        font-size: 1.5em;
        padding: 10px 20px;
        cursor: pointer;
        border: none;
        width: 100%;
        text-align: center;
    }

    /* Beim Klick auf den Menü-Button wird die Navigation sichtbar */
    .main-nav.open {
        display: block;
    }

    /* Content */
    .container {
        padding: 20px; /* Weniger Abstand für mobilen Bildschirm */
    }

    .content h2 {
        font-size: 2em; /* Kleinere Schriftgröße für den Titel */
    }

    .content p {
        font-size: 1.1em; /* Etwas kleinere Schrift für den Text */
    }

    .content img {
        width: 100%; /* Bilder passen sich der Bildschirmbreite an */
        height: auto;
    }

    /* Flex-Layout für Kontaktbereich auf Mobile untereinander */
    .info-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-container {
        width: 100%;
        min-height: 260px;
    }

    /* Formularelemente */
    .form-section {
        flex-direction: column; /* Formularelemente untereinander anordnen */
        align-items: flex-start; /* Vertikale Ausrichtung */
    }

    .input-group {
        width: 100%; /* Volle Breite für Eingabefelder */
    }

    form input,
    form textarea {
        width: 100%; /* Volle Breite für Input und Textarea */
    }

    /* Zurück-Button */
    .back-btn {
        font-size: 1em; /* Kleinere Schriftgröße */
        padding: 8px 16px; /* Weniger Abstand */
    }

    /* Footer */
    footer {
        position: relative;
        padding: 10px;
    }

    /* Call-to-Action */
    .cta {
        font-size: 18px;
        padding: 10px;
    }
}

/* Kontaktformular */
.form-section {
    display: flex; /* Flexbox-Layout für nebeneinander */
    gap: 10px; /* Abstand zwischen den Feldern */
    align-items: center; /* Vertikale Ausrichtung der Felder */
}

.input-group {
    display: flex; /* Flexbox für jedes Eingabefeld */
    flex-direction: column; /* Etikett über dem Input */
    flex: 1; /* Verhindert, dass die Eingabefelder zu klein werden */
}

form {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

form label {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
}

form input,
form textarea {
    font-size: 1em;
    padding: 10px;
    border: 2px solid #336699;
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

form input[type="submit"],
form input[type="reset"] {
    background-color: #1abc9c;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover,
form input[type="reset"]:hover {
    background-color: #16a085; /* Etwas dunkleres Grün beim Hover */
}

form textarea {
    resize: vertical;
    min-height: 150px;
}

form input[type="text"],
form input[type="email"],
form textarea {
    font-family: Arial, sans-serif;
}

/* Zurück-Button Style */
.back-button {
    text-align: center;
    margin-top: 20px;
}

.back-btn {
    font-size: 1.2em;
    color: white;
    background-color: #2f80ed; /* Blau passend zum Layout */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #56ccf2; /* Hellere Farbe beim Hover */
}
