.is-hidden { display: none !important; }

.wpcf7 .cf7-card.success {
    border-color: color-mix(in srgb, var(--bs-primary) 25%, #fff);
}

/* Felder: volle Breite, modern */
.wpcf7 form p {
    margin-bottom: 14px;
}

.wpcf7 label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 10px;
    padding: 12px 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 20%, transparent);
}

/* Fehlermeldungen & Validation */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form .wpcf7-not-valid-tip {
    color: #b91c1c;
}

.wpcf7 form .wpcf7-not-valid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

/* Submit-Button */
.wpcf7 input[type="submit"] {
    display: inline-block;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    background: var(--bs-primary);
    color: #fff;
    cursor: pointer;
    transition: transform .05s ease, filter .2s;
}

.wpcf7 input[type="submit"]:hover {
    filter: brightness(1.03);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(1px);
}

/* Danke-Box */
.wpcf7 .cform-thanks {
    margin-top: 16px;
}