/* Eigenes Captcha (Proof-of-Work) und Formular-Hinweis */
.gx-captcha {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.gx-captcha.is-done {
    border-color: #10b981;
    background: #f0fdf9;
}

.gx-captcha.is-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.gx-captcha .gx-captcha-box {
    /* !important: Seitenstile wie ".form-group label" haben sonst Vorrang */
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gx-captcha .gx-captcha-check {
    display: block !important;
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.gx-captcha .gx-captcha-mark {
    display: block;
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border: 2px solid #94a3b8;
    border-radius: 8px;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gx-captcha-box:hover .gx-captcha-mark {
    border-color: #1E73BE;
}

.gx-captcha-check:focus-visible + .gx-captcha-mark {
    outline: 3px solid #1E73BE;
    outline-offset: 2px;
}

.gx-captcha.is-working .gx-captcha-mark {
    border-color: #e2e8f0;
    border-top-color: #1E73BE;
    border-radius: 50%;
    animation: gx-captcha-spin 0.8s linear infinite;
}

.gx-captcha.is-done .gx-captcha-mark {
    background: #10b981;
    border-color: #10b981;
}

.gx-captcha.is-done .gx-captcha-mark::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 7px;
    height: 13px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.gx-captcha.is-error .gx-captcha-mark {
    border-color: #dc2626;
}

.gx-captcha-status {
    font-size: 0.85rem;
    color: #64748b;
}

.gx-captcha.is-done .gx-captcha-status {
    color: #047857;
    font-weight: 600;
}

.gx-captcha.is-error .gx-captcha-status {
    color: #b91c1c;
}

.gx-captcha-brand {
    margin-left: auto;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: right;
}

@keyframes gx-captcha-spin {
    to { transform: rotate(360deg); }
}

/* Versteckte Falle fuer Bots */
.gx-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hinweis nach dem Absenden (statt Browser-Meldung) */
.gx-notice {
    margin: 0 0 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.gx-notice[hidden] {
    display: none;
}

.gx-notice.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.gx-notice.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.gx-notice a {
    color: inherit;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .gx-captcha.is-working .gx-captcha-mark {
        animation-duration: 2.4s;
    }
}
