/*
 * Kontaktformular (kontakt.php).
 * Optik aus dem Original (Powermail) übernommen; Fehlerdarstellung ergänzt.
 */

.form-input,
.form-select,
.form-textarea {
    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;
    font-size: 13px;
    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%;
}

.form-input,
.form-select {
    height: 34px;
}

.form-textarea {
    min-height: 34px;
}

.form-field {
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.form-field label {
    font-weight: normal;
    margin-bottom: 0;
}

.form-field ul {
    margin: 0;
    padding: 0 0 0 15px;
}

.required-mark {
    color: #a94442;
}

/* Fehler: rote Umrandung, Meldung am Feld (zusätzlich zur Farbe als Text, nicht nur farbig) */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: #c9302c;
    box-shadow: 0 0 0 2px rgba(201, 48, 44, 0.35);
}

.field-error {
    color: #a94442;
    font-weight: 400;
    margin: 4px 0 0;
}

.field-error::before {
    content: "Fehler: ";
    font-weight: 700;
}

.form-error-summary {
    background-color: #fdf3f2;
    border: 2px solid #c9302c;
    color: #7a1f1c;
    margin-bottom: 20px;
    padding: 12px 15px;
}

.form-error-summary[hidden] {
    display: none;
}

.form-error-summary p {
    margin: 0 0 6px;
}

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

.form-error-summary a {
    color: #7a1f1c;
    text-decoration: underline;
}

.form-info {
    font-size: 13px;
}

/* Honeypot: aus dem sichtbaren Bereich, für Besucher unerreichbar */
.hp-field {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* ALTCHA-Widget in der Optik der Seite */
altcha-widget {
    display: block;
    max-width: 320px;
}
