.contact {
    background-color: #fff;
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center; /* Formular in der Mitte der Seite ausrichten */
    align-items: center;
    flex-direction: column;
}

.formal {
    color: #333;
    padding: 0 15px 50px 15px;
    width: 94%;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstände zwischen den Spalten */
    justify-content: space-between;
}

.col-md-6 {
    flex: 0 0 calc(48% - 10px); /* Spalten nehmen etwas weniger als 50% ein */
    max-width: calc(48% - 10px);
    box-sizing: border-box;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: -50px;
}

.form-group {
    margin-bottom: 20px; /* Abstand zwischen Feldern */
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 8px; /* Abstand zwischen Label und Eingabefeld */
    font-weight: 500;
    font-size: 14px;
}

#success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.button {
    text-align: left; /* Button linksbündig */
    margin-top: 30px;
}

.btn-primary {
    font-size: 18px;
    font-weight: 400;
    padding: 12px 30px;
    border-radius: 5px;
    background: linear-gradient(90deg, #43b02a 0%, #0056b3 75.55%);
    color: #fff;
    border: none;
    text-transform: uppercase;
    display: inline-block;
    text-align: left; /* Text im Button linksbündig */
}

.btn-primary:hover {
    background: #43b02a;
    color: #fff;
}

.required-info {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.required-star {
    color: #d9534f;
    font-weight: bold;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .formal {
        max-width: 100%; /* Volle Breite bei kleinen Bildschirmen */
    }

    .col-md-6 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .form-group {
        margin-bottom: 10px;
    }

    label {
        font-size: 13px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 10px 15px;
    }
}
