/* =========================
   KONTAKT – GRUNDLAYOUT
   ========================= */

.kontakt-form {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;

    background: var(--bg-content);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

/* =========================
   FORMULARFELDER
   ========================= */

.kontakt-form label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.kontakt-form input[type="text"],
.kontakt-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;

    border-radius: 6px;
    border: 1px solid var(--border-gray);

    font-size: 0.95rem;
    font-family: inherit;
}

.kontakt-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Fokus */
.kontakt-form input:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

/* =========================
   CAPTCHA – TABELLE
   ========================= */

.captcha-table {
    width: auto;
    table-layout: auto;
/*    margin: 18px 0;*/
    border-collapse: collapse;
    background:var(--bg-main);
}

.captcha-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

/* Spalte 1: Label */
.captcha-col-label {
    font-weight: 600;
    width: 1%;
    text-align: center;
    padding: 10px;
}

/* Spalte 2: Aufgabe (2px tiefer) */
.captcha-col-task {
    font-weight: 600;
    width: auto;
    text-align: left;
}

/* Spalte 3: Input */
.captcha-col-input {
    width: auto;
    text-align: center;
}

.captcha-col-label,
.captcha-col-task {
    width: auto;
    white-space: nowrap;
}

.captcha-col-input input {
    width: 60px;
    padding: 6px 8px;
    text-align: center;

    border-radius: 6px;
    border: 1px solid var(--border-gray);
    font-size: 0.95rem;
}

/* Pfeile entfernen */
.captcha-col-input input::-webkit-inner-spin-button,
.captcha-col-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-col-input input[type="number"] {
    -moz-appearance: textfield;
}

/* =========================
   DATENSCHUTZ
   ========================= */

.privacy-table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
}

.privacy-checkbox {
    width: 20px;
    vertical-align: top;
}

.privacy-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.privacy-text a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.privacy-text a:hover {
    text-decoration: underline;
}

/* =========================
   BUTTON + STATUS
   ========================= */

.send-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.send-hint {
    font-size: 0.9rem;
    color: #cc0000;
    white-space: nowrap;
}

#sendBtn {
    padding: 10px 22px;
    border-radius: 6px;

    background: var(--gold);
    color: var(--text-dark);
    border: none;

    font-weight: 600;
    cursor: pointer;
}

#sendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.required {
    color: #cc0000;
    font-weight: 700;
}

.form-error {
    margin-bottom: 15px;
    padding: 10px 14px;
    background: #ffe5e5;
    border: 1px solid #cc0000;
    border-radius: 6px;
    color: #990000;
    font-size: 0.9rem;
}

.char-hint {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #cc0000;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 600px) {

    .send-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-table td {
        display: block;
        width: 100%;
    }

    .captcha-col-task {
        text-align: left;
        margin-bottom: 6px;
        top: 0; /* mobil wieder neutral */
    }
}
