/* Kontaktformular (kontakt.php): Gestaltung wie bisher, ergänzt um Fehlerdarstellung, Honeypot und ALTCHA */

.contact-form .form-control {
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    border-radius: 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    color: #555555;
    display: block;
    height: 38px;
    line-height: 1.55;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
    width: 100%;
    font-size: 13px;
}

.contact-form textarea.form-control {
    height: auto;
}

.contact-form legend {
    font-family: 'Roboto', sans-serif;
    font-size: 38px;
    color: #006633;
    font-weight: 700;
    padding: 0 0 15px 0;
    margin: 0 0 30px 0;
    text-align: center;
    border-bottom: 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .control-label {
    display: block;
    font-weight: bold;
}

.contact-form .mandatory {
    color: #a94442;
}

.contact-form .powermail_submit {
    cursor: pointer;
    min-height: 44px;
    padding: 10px 30px;
}

/* Fehlerdarstellung: rote Umrandung + Text mit Symbol (nicht nur Farbe) */
.contact-form .has-error .form-control,
.contact-form .form-control[aria-invalid="true"] {
    border: 2px solid #c9302c;
    box-shadow: 0 0 0 1px rgba(201, 48, 44, 0.25);
}

.contact-form .has-error .control-label {
    color: #a94442;
}

.contact-form .field-error {
    color: #a94442;
    font-weight: bold;
    margin: 5px 0 0 0;
}

.form-error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.form-error-summary a {
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
}

.form-error-summary:focus,
#form-success:focus {
    outline: 3px solid #006633;
    outline-offset: 2px;
}

/* Honeypot: für Besucher unsichtbar, bleibt im Dokument (Bots füllen es aus) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ALTCHA direkt vor dem Absenden-Button */
.altcha-group altcha-widget {
    display: block;
    max-width: 400px;
    --altcha-max-width: 100%;
}

.altcha-label:focus {
    outline: 3px solid #006633;
}

.altcha-group.has-error altcha-widget {
    outline: 2px solid #c9302c;
}
