/* MaHe Contact Forms — Frontend, angepasst an Marzahn-Hellersdorf LIVE */

:root {
    --mcf-green:       #3a7d1e;   /* MaHe Logo-Grün                  */
    --mcf-green-dark:  #2c5f17;   /* Hover                           */
    --mcf-green-light: #eef5e9;   /* Hintergrund-Akzent              */
    --mcf-border:      #d0d0d0;
    --mcf-border-focus:#3a7d1e;
    --mcf-text:        #1a1a1a;
    --mcf-muted:       #555;
    --mcf-error:       #c0392b;
    --mcf-radius:      3px;       /* MaHe ist eckig, kein großes Rounding */
}

/* ── Wrapper ─────────────────────────────────────────── */
.mcf-wrap {
    font-family: inherit;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--mcf-text);
}

.mcf-form-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 6px 0;
    border-bottom: 2px solid var(--mcf-green);
    padding-bottom: 6px;
}
.mcf-form-desc {
    color: var(--mcf-muted);
    font-size: 0.93em;
    margin: 0 0 18px 0;
}

/* ── Grid ────────────────────────────────────────────── */
.mcf-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    margin-bottom: 14px;
}

.mcf-field          { box-sizing: border-box; }
.mcf-field--full    { width: 100%; }
.mcf-field--half    { width: calc(50% - 8px); }
.mcf-field--third   { width: calc(33.333% - 11px); }

@media (max-width: 580px) {
    .mcf-field--half,
    .mcf-field--third { width: 100%; }
}

/* ── Labels ──────────────────────────────────────────── */
.mcf-label {
    display: block;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 5px;
    color: var(--mcf-text);
}
.mcf-required {
    color: var(--mcf-error);
    margin-left: 2px;
}

/* ── Inputs / Textarea / Select ──────────────────────── */
.mcf-input,
.mcf-textarea,
.mcf-select {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid var(--mcf-border);
    border-radius: var(--mcf-radius);
    font-size: 0.95em;
    font-family: inherit;
    color: var(--mcf-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.5;
}

.mcf-input:focus,
.mcf-textarea:focus,
.mcf-select:focus {
    outline: none;
    border-color: var(--mcf-border-focus);
    box-shadow: 0 0 0 3px rgba(58,125,30,.13);
}

.mcf-input.mcf-invalid,
.mcf-textarea.mcf-invalid,
.mcf-select.mcf-invalid {
    border-color: var(--mcf-error);
    box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}

.mcf-textarea       { resize: vertical; min-height: 110px; }
.mcf-select         { appearance: auto; }

/* Auto-expanding single-line textarea */
.mcf-input-auto {
    resize: none;
    overflow: hidden;
    min-height: 0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Checkboxes & Radios ─────────────────────────────── */
.mcf-check-group    { display: flex; flex-direction: column; gap: 7px; }
.mcf-check-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.93em;
    cursor: pointer;
    line-height: 1.5;
}
.mcf-check {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--mcf-green);
    width: 16px;
    height: 16px;
}

/* ── Datenschutz / Consent ───────────────────────────── */
.mcf-consent {
    background: var(--mcf-green-light);
    border: 1px solid #b8d9a0;
    border-radius: var(--mcf-radius);
    padding: 10px 13px;
    font-size: 0.88em;
    line-height: 1.5;
}
.mcf-consent a {
    color: var(--mcf-green);
    text-decoration: underline;
    font-weight: 600;
}
.mcf-consent a:hover { color: var(--mcf-green-dark); }

/* ── Datei-Upload ────────────────────────────────────── */
.mcf-file {
    display: block;
    width: 100%;
    font-size: 0.9em;
    padding: 7px 0;
    cursor: pointer;
    color: var(--mcf-muted);
}
.mcf-file-hint {
    display: block;
    color: #888;
    font-size: 0.77em;
    margin-top: 3px;
}

/* ── Submit-Button ───────────────────────────────────── */
.mcf-submit-row { margin-top: 8px; }

.mcf-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mcf-green);
    color: #fff;
    border: none;
    border-radius: var(--mcf-radius);
    padding: 10px 26px;
    font-size: 0.95em;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .18s;
}
.mcf-btn-submit:hover    { background: var(--mcf-green-dark); }
.mcf-btn-submit:active   { opacity: .9; }
.mcf-btn-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── Spinner ─────────────────────────────────────────── */
.mcf-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mcf-spin .6s linear infinite;
}
@keyframes mcf-spin { to { transform: rotate(360deg); } }

/* ── Meldungen ───────────────────────────────────────── */
.mcf-messages {
    padding: 11px 15px;
    border-radius: var(--mcf-radius);
    margin-bottom: 16px;
    font-size: .92em;
    line-height: 1.55;
    border-left: 4px solid transparent;
}
.mcf-messages.mcf-success {
    background: #f0f9eb;
    border-left-color: var(--mcf-green);
    color: #2c5f17;
}
.mcf-messages.mcf-error {
    background: #fdf0ef;
    border-left-color: var(--mcf-error);
    color: #922b21;
}

/* ── reCAPTCHA-Hinweis ───────────────────────────────── */
.mcf-recaptcha-notice {
    color: #aaa;
    font-size: 11px;
    margin-bottom: 8px;
}

/* ── Honeypot ────────────────────────────────────────── */
.mcf-hp { display: none !important; }
