/* ============================================================
   MARAMAU Kontaktformular v1.0.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

.mm-kf-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: Verdana, Geneva, sans-serif;
}

/* ── Erfolgsmeldung ── */
.mm-kf-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: #f0f4f8;
    border: 0.5px solid rgba(42,90,140,0.15);
    border-radius: 2px;
    gap: 1rem;
}
.mm-kf-success svg {
    width: 52px; height: 52px;
    color: #0d1f35;
    stroke: #0d1f35;
}
.mm-kf-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #0d1f35;
    margin: 0;
}
.mm-kf-success p {
    font-size: 14px;
    color: #3d5a73;
    margin: 0;
    line-height: 1.7;
}

/* ── Formular ── */
.mm-kf {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    border: 0.5px solid rgba(42,90,140,0.12);
    border-radius: 2px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(13,31,53,0.06);
}

/* ── Honeypot verstecken ── */
.mm-kf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ── Feldgruppe ── */
.mm-kf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-kf-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0d1f35;
}

.mm-kf-req {
    color: #2a5a8c;
    margin-left: 2px;
}

/* ── Eingabefelder ── */
.mm-kf-input {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    color: #0d1f35;
    background: #f0f4f8;
    border: 0.5px solid rgba(42,90,140,0.2);
    border-radius: 1px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.mm-kf-input::placeholder {
    color: rgba(42,90,140,0.35);
}

.mm-kf-input:focus {
    border-color: #2a5a8c;
    background: #fff;
}

.mm-kf-input--error {
    border-color: #8b1a1a !important;
    background: #fff5f5 !important;
}

.mm-kf-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

/* ── Fehlermeldungen ── */
.mm-kf-error {
    font-size: 11px;
    color: #8b1a1a;
    min-height: 14px;
    letter-spacing: 0.03em;
}

.mm-kf-error--global {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

/* ── Datenschutz ── */
.mm-kf-datenschutz {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mm-kf-datenschutz label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.mm-kf-datenschutz input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #0d1f35;
    cursor: pointer;
}

.mm-kf-datenschutz span {
    font-size: 12px;
    color: #3d5a73;
    line-height: 1.6;
}

.mm-kf-datenschutz a {
    color: #2a5a8c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mm-kf-datenschutz a:hover {
    color: #0d1f35;
}

/* ── Footer / Button ── */
.mm-kf-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.mm-kf-btn {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8daea;
    background: #0d1f35;
    border: none;
    border-radius: 1px;
    padding: 14px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.mm-kf-btn:hover {
    background: #1a3352;
    color: #e8f2f8;
}

.mm-kf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mm-kf-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.mm-kf-btn:hover .mm-kf-btn-icon {
    transform: translateX(3px);
}

/* Lade-Spinner */
.mm-kf-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(200,218,234,0.3);
    border-top-color: #c8daea;
    border-radius: 50%;
    animation: mm-kf-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.mm-kf-btn--loading .mm-kf-btn-text { opacity: 0.6; }
.mm-kf-btn--loading .mm-kf-btn-icon { display: none; }
.mm-kf-btn--loading .mm-kf-spinner  { display: block; }

@keyframes mm-kf-spin {
    to { transform: rotate(360deg); }
}

/* ── Trennlinie ── */
.mm-kf-divider {
    height: 0.5px;
    background: rgba(42,90,140,0.1);
    margin: 4px 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .mm-kf {
        padding: 1.5rem;
        gap: 16px;
    }
    .mm-kf-btn {
        width: 100%;
        justify-content: center;
    }
}
