/* MFM Anfrage-Wizard — mobile-first, MFM-Farbwelt (Teal #00a19a / Blau #094c7d) */

.mfm-wizard { max-width: 720px; margin: 0 auto; }
.mfm-wizard[data-loading] { min-height: 200px; }

.mfm-wz-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(2, 6, 23, .06);
    padding: 1.5rem;
}

.mfm-wz-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .6rem; min-height: 28px;
}
.mfm-wz-back {
    background: none; border: 0; color: #00a19a; font-weight: 600;
    font-size: .9rem; cursor: pointer; padding: .25rem .25rem .25rem 0;
}
.mfm-wz-count { font-size: .8rem; color: #64748b; font-weight: 600; }

.mfm-wz-bar {
    height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden;
    margin-bottom: 1.1rem;
}
.mfm-wz-bar span {
    display: block; height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #094c7d, #00a19a);
    transition: width .35s ease;
}

.mfm-wz-title {
    margin: 0 0 .5rem; font-size: 1.3rem; line-height: 1.3; color: #0f172a;
}
.mfm-wz-sub { color: #475569; font-size: .95rem; line-height: 1.55; margin: 0 0 1.1rem; }
.mfm-wz-decline-text { font-size: 1rem; }

/* Themenwahl */
.mfm-wz-topics {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem;
}
@media (min-width: 640px) { .mfm-wz-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mfm-wz-topic {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1rem .6rem; min-height: 92px; justify-content: center;
    background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: .88rem; font-weight: 600; color: #0f172a; line-height: 1.25;
    cursor: pointer; text-align: center;
    transition: border-color .2s, background .2s, transform .15s;
}
.mfm-wz-topic:hover { border-color: #00a19a; background: #f0fdfa; transform: translateY(-1px); }
.mfm-wz-topic-ic svg { width: 26px; height: 26px; color: #00a19a; }

/* Antwort-Chips */
.mfm-wz-chips { display: flex; flex-direction: column; gap: .6rem; }
.mfm-wz-chip {
    width: 100%; text-align: left; padding: .95rem 1.1rem; min-height: 52px;
    background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 1rem; font-weight: 600; color: #0f172a; line-height: 1.35;
    cursor: pointer; transition: border-color .2s, background .2s;
}
.mfm-wz-chip:hover { border-color: #00a19a; background: #f0fdfa; }
.mfm-wz-chip-multi { position: relative; padding-right: 3rem; }
.mfm-wz-chip-multi::after {
    content: ''; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border: 2px solid #cbd5e1; border-radius: 6px;
    background: #fff; transition: all .2s;
}
.mfm-wz-chip-multi.on { border-color: #00a19a; background: #f0fdfa; }
.mfm-wz-chip-multi.on::after {
    background: #00a19a; border-color: #00a19a;
    content: '\2713'; color: #fff; font-size: 15px; line-height: 19px; text-align: center;
}

/* Buttons */
.mfm-wz-next {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; margin-top: 1rem; padding: 1rem 1.5rem;
    background: #008580; color: #fff; border: 2px solid #008580;
    border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
}
.mfm-wz-next:hover { background: #006b66; border-color: #006b66; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 133, 128, .25); }
.mfm-wz-next:disabled { background: #94a3b8; border-color: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }
.mfm-wz-next svg { width: 18px; height: 18px; }
.mfm-wz-tel { background: #094c7d; border-color: #094c7d; }
.mfm-wz-tel:hover { background: #073a5f; border-color: #073a5f; }
.mfm-wz-skip {
    display: block; width: 100%; margin-top: .6rem; padding: .5rem;
    background: none; border: 0; color: #64748b; font-size: .9rem;
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.mfm-wz-skip:hover { color: #00a19a; }

/* Eingaben — 16px verhindert iOS-Autozoom.
   !important, weil Theme-Regeln (.entry-content input) sonst auf 15px drücken. */
.mfm-wizard .mfm-wz-input,
.mfm-unified-subpage .entry-content .mfm-wizard .mfm-wz-input {
    width: 100%; padding: .8rem .9rem; border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 16px !important; font-family: inherit; color: #0f172a; background: #fff;
    box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
}
.mfm-wz-input:focus { border-color: #00a19a; outline: none; box-shadow: 0 0 0 3px rgba(0, 161, 154, .15); }
.mfm-wz-input.err { border-color: #ef4444; }
textarea.mfm-wz-input { resize: vertical; min-height: 96px; }

/* Foto-Upload */
.mfm-wz-upload {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 1.1rem; border: 2px dashed #94a3b8; border-radius: 12px;
    color: #094c7d; font-weight: 600; font-size: .95rem; cursor: pointer;
    background: #f8fafc; transition: border-color .2s, background .2s;
}
.mfm-wz-upload:hover { border-color: #00a19a; background: #f0fdfa; }
.mfm-wz-upload-ic svg { width: 20px; height: 20px; color: #00a19a; }
.mfm-wz-upstatus { font-size: .85rem; color: #64748b; margin-top: .5rem; min-height: 1.2em; }
.mfm-wz-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.mfm-wz-thumb { position: relative; display: block; }
.mfm-wz-thumb img {
    width: 84px; height: 84px; object-fit: cover; border-radius: 10px;
    border: 2px solid #e2e8f0; display: block;
}
.mfm-wz-thumb button {
    position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
    border-radius: 50%; border: 0; background: #0f172a; color: #fff;
    font-size: 14px; line-height: 1; cursor: pointer;
}

/* Kontakt-Schritt */
.mfm-wz-summary {
    list-style: none; margin: 0 0 1.2rem; padding: .9rem 1rem;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    display: flex; flex-direction: column; gap: .45rem;
}
.mfm-wz-summary li { display: flex; flex-direction: column; font-size: .88rem; }
.mfm-wz-summary li span { color: #64748b; }
.mfm-wz-summary li strong { color: #0f172a; font-weight: 600; }
.mfm-wz-form label { display: block; font-size: .9rem; font-weight: 600; color: #0f172a; margin-bottom: .9rem; }
.mfm-wz-form label .mfm-wz-input { margin-top: .3rem; font-weight: 400; }
.mfm-wz-row { display: grid; grid-template-columns: 1fr; gap: 0 .9rem; }
@media (min-width: 560px) { .mfm-wz-row { grid-template-columns: 1fr 1fr; } }
.mfm-wz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mfm-wz-ds { font-weight: 400 !important; font-size: .85rem !important; color: #475569 !important; line-height: 1.5; }
.mfm-wz-ds input { margin-right: .45rem; accent-color: #00a19a; }
.mfm-wz-ds a { color: #00a19a; text-decoration: underline; }
.mfm-wz-status { margin-top: .8rem; font-size: .92rem; min-height: 1.3em; }
.mfm-wz-status.err { color: #b91c1c; font-weight: 600; }

/* Erfolg */
.mfm-wz-success { text-align: center; padding: 1.5rem .5rem; }
.mfm-wz-success-ic {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
    background: linear-gradient(135deg, #094c7d, #00a19a); color: #fff;
    font-size: 2rem; line-height: 64px;
}
.mfm-wz-success h3 { color: #094c7d; margin: 0 0 .6rem; }
.mfm-wz-success p { color: #475569; line-height: 1.6; }
.mfm-wz-success a { color: #00a19a; font-weight: 600; }

.mfm-wz-noscript { padding: 1rem; background: #fef9c3; border-radius: 10px; }

/* Interessen-Kacheln (Startseite) sind jetzt Links zum Wizard */
a.mfm-contact-item { text-decoration: none; color: inherit; cursor: pointer; }
a.mfm-contact-item:hover .mfm-contact-icon { transform: translateY(-2px); }
a.mfm-contact-item .mfm-contact-icon { transition: transform .2s ease; }

/* Theme-Isolation auf Unterseiten (analog kontakt-formular.css) */
.mfm-unified-subpage .entry-content .mfm-wz-card h3::after { display: none; }
.mfm-unified-subpage .entry-content .mfm-wz-card p { color: #475569; }

@media (max-width: 480px) {
    .mfm-wz-card { padding: 1.1rem .9rem; border-radius: 12px; }
    .mfm-wz-title { font-size: 1.15rem; }
}
