.wbb-kontaktformular { max-width: 560px; }

.wbb-kf-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}
.wbb-kf-field input[type="text"],
.wbb-kf-field input[type="email"],
.wbb-kf-field input[type="tel"],
.wbb-kf-field input[type="number"],
.wbb-kf-field select,
.wbb-kf-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(8, 8, 138, 0.45);
    color: #08088A;
    border-radius: 2px;
    padding: 10px 12px;
    background-color: rgba(8, 8, 138, 0.03);
    font-family: inherit;
    font-size: inherit;
}
/* "Ich bin ein Mensch" — Checkbox-Optik mit Animation (Captcha-Stil) */
.wbb-kf-human-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    color: #08088A;
    padding: 14px 22px 14px 16px;
    border-radius: 3px;
    font-family: inherit;
    font-size: inherit;
    transition: box-shadow 0.2s;
}
.wbb-kf-human-btn:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }

/* Die Checkbox pulsiert dezent, bis sie geklickt wurde */
.wbb-kf-human-box {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border: 2px solid rgba(8, 8, 138, 0.55);
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    animation: wbb-kf-pulse 2s ease-in-out infinite;
}
@keyframes wbb-kf-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(8, 8, 138, 0.35); }
    50%      { box-shadow: 0 0 0 5px rgba(8, 8, 138, 0); }
}

/* Klick: Checkbox wird kurz zum Prüf-Spinner */
.wbb-kf-human-btn.is-checking { cursor: wait; }
.wbb-kf-human-btn.is-checking .wbb-kf-human-box {
    animation: wbb-kf-spin 0.6s linear infinite;
    border-radius: 50%;
    border-color: rgba(8, 8, 138, 0.2);
    border-top-color: #08088A;
}
@keyframes wbb-kf-spin {
    to { transform: rotate(360deg); }
}

/* Bestätigt: grüner Haken poppt auf */
.wbb-kf-human-btn.is-confirmed { cursor: default; }
.wbb-kf-human-btn.is-confirmed .wbb-kf-human-box {
    animation: none;
    border-color: #1a7a1a;
    background-color: #1a7a1a;
}
.wbb-kf-human-btn.is-confirmed .wbb-kf-human-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    animation: wbb-kf-pop 0.25s ease-out;
}
@keyframes wbb-kf-pop {
    0%   { transform: rotate(45deg) scale(0); }
    70%  { transform: rotate(45deg) scale(1.3); }
    100% { transform: rotate(45deg) scale(1); }
}
.wbb-kf-human-btn.is-confirmed .wbb-kf-human-text {
    color: #1a7a1a;
    font-weight: bold;
}
.wbb-kf-noscript { color: #a01818; display: block; margin-top: 6px; }
.wbb-kf-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Honeypot: visuell und für Screenreader verstecken */
.wbb-kf-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.wbb-kf-privacy label { font-weight: normal; }
.wbb-kf-privacy input { margin-right: 6px; }

.wbb-kf-submit {
    cursor: pointer;
    background-color: rgba(8, 8, 138, 0.08);
    border: 1px solid rgba(8, 8, 138, 0.35);
    color: #08088A;
    padding: 10px 18px;
    border-radius: 2px;
    font-family: inherit;
    font-size: inherit;
}
.wbb-kf-submit:hover { border-color: rgba(8, 8, 138, 0.8); }

.wbb-kf-success {
    border: 1px solid #1a7a1a;
    background-color: rgba(26, 122, 26, 0.08);
    color: #1a7a1a;
    padding: 12px 15px;
    border-radius: 3px;
    font-weight: bold;
}
.wbb-kf-errors {
    border: 1px solid #a01818;
    background-color: rgba(160, 24, 24, 0.06);
    color: #a01818;
    padding: 12px 15px;
    border-radius: 3px;
}
.wbb-kf-errors ul { margin: 6px 0 0 20px; }
