/* Formular-Design – passend zum bestehenden 12-Spalten-Raster */
form {
    width: 100%;
    font-family: var(--main-fontfamily, sans-serif);
}

form,
form *,
form *::before,
form *::after {
    box-sizing: border-box;
}

form fieldset.form-group {
    min-width: 0;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

form fieldset.form-group legend {
    font-family: var(--head-fontfamily, serif);
    width: 100%;
    padding: 0 0 10px;
    border-bottom: 0;
    color: #252525;
    font-size: 22px;
    font-weight: 600;
}

form .form-group {
    margin-bottom: 18px;
}

form .control-label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

form .required {
    color: #b82f29;
}

form .input {
    width: 100%;
}

form .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd0d5;
    border-radius: var(--button-radius);
    outline: none;
    background-color: #fff;
    color: #252525;
    font-family: var(--main-fontfamily, sans-serif);
    font-size: 15px;
    line-height: normal;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form .form-control:focus {
    border-color: #b82f29;
    box-shadow: 0 0 0 3px rgb(184 47 41 / 14%);
}

form .form-control::placeholder {
    color: #8a9097;
}

form select.form-control {
    padding-right: 32px;
    cursor: pointer;
}

form textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 10px 12px;
    resize: vertical;
}

form .actions {
    margin-top: 10px;
}

/* Bootstrap 5: Button-Variablen und tatsächliche Farben überschreiben. */
form .actions .btn.btn-primary,
form .actions button.btn.btn-primary[type="submit"] {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--main-color, #b82f29);
    --bs-btn-border-color: var(--main-color, #b82f29);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--second-color, #81c200);
    --bs-btn-hover-border-color: var(--second-color, #81c200);
    --bs-btn-focus-shadow-rgb: 184, 47, 41;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--second-color, #81c200);
    --bs-btn-active-border-color: var(--second-color, #81c200);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--main-color, #b82f29);
    --bs-btn-disabled-border-color: var(--main-color, #b82f29);
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    min-height: 40px;
    padding: 10px 22px;
    border: 1px solid var(--main-color, #b82f29) !important;
    border-radius: var(--button-radius);
    background-color: var(--main-color, #b82f29) !important;
    background-image: none !important;
    color: #fff !important;
    font-family: var(--head-fontfamily, serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

form .actions .btn.btn-primary:hover,
form .actions button.btn.btn-primary[type="submit"]:hover,
form .actions .btn.btn-primary:active,
form .actions .btn.btn-primary.active,
form .actions .btn.btn-primary:focus-visible {
    border-color: var(--second-color, #81c200) !important;
    background-color: var(--second-color, #81c200) !important;
    background-image: none !important;
    color: #fff !important;
}

form .actions .btn.btn-primary:focus-visible {
    outline: 3px solid rgb(184 47 41 / 30%);
    outline-offset: 2px;
}

form .actions .btn.btn-primary:disabled,
form .actions .btn.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auf sehr schmalen Geräten ausreichend Platz für PLZ und Ort lassen. */
@media (max-width: 575px) {
    form .row > .col-xs-2 {
        width: 33.33333333%;
    }

    form .row > .col-xs-10 {
        width: 66.66666667%;
    }
}
