#contact {
    grid-row: 6/7;
    color: white;
    background-color: orange;
    margin-top: 5%;
}

#contactheader {
    text-align: center;
    padding: 5%;
}

#contactheader img {
    margin-bottom: 10px;
}

#contactheader h4 {
    font-size: 1.2rem;
    margin: 0;
}

#contactheader h1 {
    font-size: 1.8rem;
    margin: 10px 0;
}

/* Allgemeine Stile für das Formular */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 5%;
}

/* Eingabefelder und Dropdown */
form input,
form select {
    flex-grow: 1;
    min-width: 150px;
    padding: 13px;
    font-size: 1rem;
    border: none;
    box-sizing: border-box;
}

/* Abstand zum linken Rand für das erste Eingabefeld */
form input:first-of-type {
    margin-left: 15px; /* Abstand von 15px zum linken Rand */
}

/* Div als Button */
.submit-btn {
    cursor: pointer;
    padding: 10px 20px;
    background-color: white;
    color: rgb(255, 194, 41);
    border: none;
    font-weight: bold;
    transition: background-color 0.3s;
    min-width: 150px;
    text-align: center;
}

/* Abstand zum rechten Rand für den Button */
.submit-btn {
    margin-right: 15px; /* Abstand von 15px zum rechten Rand */
}

.submit-btn:hover {
    background-color: #f1f1f1;
}

.submit-btn img {
    margin-left: 10px;
    max-height: 20px;
}

/* Basis-Stile für das select-Element */
form select {
    appearance: none; /* Entfernt die native Darstellung des Dropdowns */
    -webkit-appearance: none; /* Für Safari und macOS */
    -moz-appearance: none; /* Für Firefox */
    background-image: url('arrowdown.svg'); /* Dein benutzerdefiniertes Pfeil-Icon */
    background-position: right 10px center; /* Position des Pfeils */
    background-repeat: no-repeat;
    box-sizing: border-box; /* Padding in der Breite berücksichtigen */
    font-size: 1rem;
    border-radius: 0%;
}

/* Styling für die Optionen im Dropdown */
form select option {
    padding: 10px;
    font-size: 1rem;
}

form select {
    background-size: 15px; /* Pfeil-Größe verkleinern */
}

/* Media Queries für kleinere Bildschirme */
@media screen and (max-width: 768px) {
    #contact{
        padding-top: 5%;
        margin-top: 10%;
    }
    /* Für Geräte mit max. Bildschirmbreite von 768px (z.B. Tablets) */
    form input,
    form select,
    .submit-btn {
        border-radius: 0; /* Entfernt abgerundete Ecken in der Mobilansicht */
    }
    
    #contactheader h1 {
        font-size: 1.5rem;
    }

    #contactheader h4 {
        font-size: 1rem;
    }

    form {
        padding-bottom: 10%;
        gap: 10px;
    }

    form input,
    form select,
    .submit-btn {
        width: 100%; /* Eingabefelder, Dropdown und Button über die gesamte Breite */
        font-size: 1rem;
    }

    /* Abstand zum linken Rand für das erste Eingabefeld */
    form input:first-of-type {
        margin-left: 0; /* Kein Abstand mehr bei kleinen Geräten */
    }

    /* Button */
    .submit-btn {
        margin-right: 0; /* Kein Abstand mehr für den Button */
    }
}
