/* Allgemeine Formular-Stile */
form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f1f1;
}

form label {
    font-size: 16px;
    font-weight: 600;
   
    display: block;
    color: #555;
}

/* Felder nebeneinander anordnen */
.form-group {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* Abstände zwischen den Feldern */
    margin-bottom: 5px;
}

.field-half {
    width: 48%; /* Jedes Feld nimmt 48% der Breite ein */
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

/* Fokussierung der Felder */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #0073aa;
    background-color: #fff;
    outline: none;
}

/* Submit-Button */
input[type="submit"] {
    background-color: #004f9f;
    color: #fff;
    padding: 14px 0;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #005a8d;
}

/* Container für die Radio-Buttons */
.radio-group {
    display: flex;
    gap: 20px; 
    margin-top: 10px;
}

/* Container für jede Radio-Button-Eingabe */
.radio-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

/* Unsichtbarer Radio-Button (mit input[type="radio"] wird er unsichtbar gemacht) */
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}


.radio-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}


.radio-label input[type="radio"]:checked + .radio-button {
    background-color: #004f9f;
    color: white;
    border-color: #004f9f;
}

/* Hover-Effekt für die Buttons */
.radio-button:hover {
    background-color: #e1e1e1;
    border-color: #bbb;
}


.radio-label input[type="radio"]:focus + .radio-button {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.8);
}





@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }

    .field-half {
        width: 100%;
    }
}