/* Gemeinsame CSS für alle Seiten */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

header {
    background: #a8d0e6;
    color: #333;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000; /* Ein hoher Wert, um sicherzustellen, dass es über anderen Inhalten liegt */
}

header img {
    height: 50px;
    transition: height 0.3s ease; /* Weichere Übergänge bei Größenänderungen */
    margin-right: 10px;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #f9f9f9;
    margin-top: 20px;
    border-radius: 5px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #d8e2dc;
}

#menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

main {
    flex-grow: 1;
    padding: 20px;
}

footer {
    background: #a8d0e6;
    color: #333;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto;
    font-size: 13px;
}

footer p {
    margin: 0;
}

.contact-info p {
    margin: 10px 0;
    font-size: 16px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #a8d0e6;
    color: #333;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #d8e2dc;
}

/* Tabelle Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #a8d0e6;
    color: #333;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Style für das Logo im Header */
.header-logo {
    height: 50px;
    max-width: 100%;
}

/* Style für das Logo im Hauptinhalt (Willkommens-Text) */
.main-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 200px; /* Noch kleinere Anpassung für sehr kleine Bildschirme */
    }

    body {
        font-size: 12px; /* Weitere Reduzierung der Schriftgröße */
    }

    th, td {
        padding: 6px; /* Noch weniger Padding */
    }

    h2 {
        font-size: 20px; /* Noch kleinere Schriftgröße für Überschriften */
    }

    header h1 {
        font-size: 20px;
    }

    header img {
        height: 80px; /* Noch größeres Logo bei sehr kleinen Bildschirmen */
    }
}


form {
    margin: 20px 0;
}

label {
    display: block;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: #a8d0e6;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #8cb0c2;
}

.g-signin2 {
    margin: 20px 0;
}


/* Styling für Fehlermeldungen */
.error-message {
    display: flex;
    align-items: center;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-icon {
    font-size: 20px;
    margin-right: 10px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Preisliste-Sektion */
#preisliste {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Flexbox Layout für "Über mich" Sektion */
#ueber_mich {
    display: flex;
    align-items: center;
    gap: 20px; /* Abstand zwischen Bild und Text */
    padding: 20px;
    max-width: 1200px; /* Maximale Breite der Sektion */
    margin: auto; /* Zentrieren der Sektion */
    flex-wrap: wrap; /* Bei Bedarf Umbruch auf kleineren Bildschirmen */
}

/* Styling für das Bild */
#ueber_mich img {
    width: 350px; /* Breite des Bildes */
    height: auto; /* Automatische Höhe basierend auf der Breite */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optionaler Schatten für bessere Sichtbarkeit */
    margin-right: 100px;
}

/* Styling für den Textbereich */
#ueber_mich p {
    flex: 1; /* Textbereich nimmt den verfügbaren Platz ein */
    line-height: 1.6; /* Zeilenhöhe für bessere Lesbarkeit */
}

/* Styling für die Kontaktinformationen */
.contact-info {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: #333;
    font-size: 18px;
}

.contact-info a {
    text-decoration: none;
    color: #333;
}

/* Grundlegendes Styling für den Sprachumschalter */
.language-switcher {
    position: relative;
    display: inline-block;
    max-width: fit-content; /* Passt die Breite an den Inhalt an */
}

.selected-language {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    gap: 10px; /* Abstand zwischen Flagge und Text */
}

.selected-language img {
    width: 20px;
    height: auto;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: black;
    gap: 10px; /* Abstand zwischen Flagge und Text */
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content img {
    width: 20px;
    height: auto;
}

/* Dropdown anzeigen, wenn der Nutzer darauf klickt */
.dropdown:hover .dropdown-content {
    display: block;
}

.selected-language {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: white; /* Hintergrund der ausgewählten Sprache auf weiß setzen */
    padding: 5px 10px;
    border-radius: 5px; /* Abgerundete Ecken */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: leichter Schatten */
}

.selected-language img {
    width: 30px;
    height: auto;
    margin-right: 8px; /* Abstandsregelung zwischen Flagge und Text */
}

            /*SPRACHSTEUERUNG*/


        /* Allgemeine Layout-Anpassungen */
        .content-wrapper {
            display: flex;
            align-items: center;
        }

        .content-wrapper img {
            margin-right: 20px;
            max-height: 350px;
            max-width: 350px;
            margin-top: 50px;
        }

        /* Sprachumschalter-Styling */
        .language-content {
            display: none;
        }

        .language-content.active {
            display: block;
        }

        .language-switcher {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            z-index: 1001; /* Ein hoher Wert, um sicherzustellen, dass es über anderen Inhalten liegt */
        }

        .language-switcher select {
            border: none;
            padding: 5px 10px;
            font-size: 16px;
            cursor: pointer;
            background-color: #fff;
        }

        .language-switcher select:focus {
            outline: none;
        }

        /* Medienabfragen für kleinere Bildschirme */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .language-switcher {
        position: static; /* Standard-Positionierung aufheben */
        margin-top: 10px;
        left: auto;
        top: auto;
        display: flex;
        align-items: center; /* Flagge und Text nebeneinander ausrichten */
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: #fff;
    }

    .language-switcher img {
        width: 20px; /* Flaggenbreite reduzieren */
        height: auto; /* Proportionale Höhe */
        margin-right: 5px; /* Abstand zwischen Flagge und Text */
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .content-wrapper img {
        margin: 0 0 20px 0;
    }

    .selected-language span {
        display: none; /* Versteckt den Text der Sprache auf kleinen Bildschirmen */
    }

    .contact-info p {
        flex-direction: row;
        flex-wrap: wrap; /* Damit die Inhalte sich besser an den Platz anpassen */
        font-size: 14px;
        margin-bottom: 8px;
    }

    .contact-info i {
        margin-right: 8px;
        font-size: 16px;
    }

    .contact-info strong {
        margin-right: 5px;
    }

    .contact-info a {
        display: inline-block; /* Damit die E-Mail-Adresse nicht umbricht */
        word-break: break-word; /* Ermöglicht den Umbruch von langen Wörtern */
    }

    body {
        font-size: 14px; /* Reduziere die Schriftgröße */
    }

    th, td {
        padding: 8px; /* Weniger Padding für kleinere Bildschirme */
    }
    
    h2 {
        font-size: 24px; /* Kleinere Schriftgröße für Überschriften */
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: #f9f9f9;
        width: 100%;
        top: 70px;
        left: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    #menu-toggle {
        display: block;
    }

    #navbar.active ul {
        display: flex;
        
    }

    header h1 {
        font-size: 24px;
    }

    header img {
        height: 60px; /* Größeres Logo bei kleineren Bildschirmen */
    }

    .language-content.de {
        font-size: 0.9em; /* oder eine andere Größe nach Bedarf */
    }

    #ueber_mich img {
        width: 250px; /* Breite des Bildes */
        height: auto; /* Automatische Höhe basierend auf der Breite */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optionaler Schatten für bessere Sichtbarkeit */
        margin-right: 100px;
    }

    .content-wrapper-ablauf {
        width: auto; /* Breite basierend auf dem Inhalt */
        padding: 10px; /* Etwas weniger Padding für kleinere Bildschirme */
        border-radius: 5px; /* Etwas kleinerer Radius für mobile Geräte */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Weniger Schatten für mobile Geräte */
    }

    .ablauf-main h2 {
        font-size: 1.2em; /* Kleinere Schriftgröße für h2 auf kleineren Bildschirmen */
    }

    .ablauf-main h3 {
        font-size: 1.0em; /* Kleinere Schriftgröße für h3 auf kleineren Bildschirmen */
    }
}

.angebote-page {
    background-image: url('img/sand_Hintergrund.jpg'); /* Pfad zum Hintergrundbild */
    background-size: cover; /* Bild skalieren, um den gesamten Hintergrund zu bedecken */
    background-position: center; /* Bild in der Mitte zentrieren */
    background-repeat: no-repeat; /* Wiederholung des Bildes verhindern */
    background-attachment: fixed; /* Bild fixieren, sodass es beim Scrollen nicht bewegt wird */

}

.angebote-container {
    background-color: #ffffff;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: none;
    color: white;
    
}

details {
    margin-bottom: 15px;
    border-bottom: 1px solid #ffffff; /* Weißer Strich als Trennlinie */
}

summary {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    list-style: none;
}

summary::after {
    content: '▼';
    font-size: 1em;
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(180deg); /* Pfeil nach oben, wenn geöffnet */
}

.angebot-content {
    padding: 15px 0;
    border-top: 1px solid #ccc;
}

.angebot-content img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.ablauf-page {
    background-image: url('img/baum.jpg'); /* Pfad zum Hintergrundbild */
    background-size: cover; /* Bild skalieren, um den gesamten Hintergrund zu bedecken */
    background-position: center; /* Bild in der Mitte zentrieren */
    background-repeat: no-repeat; /* Wiederholung des Bildes verhindern */
    background-attachment: fixed; /* Bild fixieren, sodass es beim Scrollen nicht bewegt wird */
}

.content-wrapper-ablauf {
    background-color: rgba(255, 255, 255, 0.9); /* Weiß und halbtransparent */
    padding: 10px; /* Padding für kleinere Bildschirme */
    border-radius: 5px; /* Kleinerer Radius für mobile Geräte */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Weniger Schatten für mobile Geräte */
    max-width: 100%; /* Maximalbreite auf 100% der Bildschirmbreite setzen */
    margin: 0 auto; /* Zentriert den Container */
    box-sizing: border-box; /* Stellt sicher, dass Padding und Border in der Gesamtbreite enthalten sind */
    overflow: hidden; /* Verhindert, dass Inhalte aus dem Container herausragen */
}

.textarea-placeholder::placeholder {
    white-space: pre-line;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.custom-checkbox.checked {
    background-color: #007bff;
    border-color: #007bff;
    animation: checkmark-pop 0.3s ease-out;
}

.custom-checkbox.checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes checkmark-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
}

.checkbox-container label {
    cursor: pointer;
    user-select: none;
}

.locations {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.location {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location iframe {
    width: 100%;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .locations {
        flex-direction: column;
    }
    
    .location {
        margin-bottom: 1rem;
    }
}

/* Verbessertes Hover-Effekt für die Location-Boxen */
.location:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    border-radius: 5px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #a8d0e6;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #000;
}