﻿/* ==================== Faz 42: Assistent „Firma melden“ ====================
   Eine Frage je Schritt, große Tipp-Flächen. Handy: Blatt von unten über die ganze Breite; breit: Fenster in der Mitte. */
.fm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1047; /* über Menü (1001) und Hinweis-Fenstern (1046), unter den Meldungen von uyarilar.css (1049+) */
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(16px + var(--lz-sa-oben, 0px)) calc(16px + var(--lz-sa-rechts, 0px)) calc(16px + var(--lz-sa-unten, 0px)) calc(16px + var(--lz-sa-links, 0px)); /* Faz 49: + Ränder des Geräts */
}

    .fm-overlay[hidden] { display: none; }

body.fm-offen { overflow: hidden; }

.fm-dialog {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: #1f2937;
}

.fm-kopf {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.fm-titel {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.fm-stand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.fm-schritt {
    font-size: 13px;
    color: #475569;
}

.fm-punkte {
    display: inline-flex;
    gap: 6px;
}

.fm-punkt {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

    .fm-punkt.fm-punkt-an { background: #0AAC4D; }

.fm-inhalt {
    padding: 18px;
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

.fm-start-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 8px;
}

.fm-frage {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.35;
}

.fm-text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 10px;
}

.fm-leise {
    color: #64748b;
    font-size: 14px;
}

.fm-feld {
    width: 100%;
    box-sizing: border-box;
    font-size: 17px;
    padding: 12px 14px;
    min-height: 50px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
}

    .fm-feld:focus {
        outline: none;
        border-color: #0AAC4D;
        box-shadow: 0 0 0 3px rgba(10, 172, 77, 0.18);
    }

.fm-hilfe {
    font-size: 13px;
    color: #64748b;
    margin: 8px 0 0;
    line-height: 1.45;
}

/* Antworten zum Tippen (eine Wahl) */
.fm-karten {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fm-karte {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .fm-karte:hover { border-color: #94a3b8; }
    .fm-karte:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

    .fm-karte.fm-gewaehlt {
        border-color: #0AAC4D;
        background: #f0fff4;
    }

.fm-karte-kreis {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #9ca3af;
    box-sizing: border-box;
}

.fm-karte.fm-gewaehlt .fm-karte-kreis {
    border-color: #0AAC4D;
    background: radial-gradient(circle, #0AAC4D 0 45%, #fff 50%);
}

.fm-karte-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fm-karte-titel {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.fm-karte-sub {
    font-size: 13px;
    color: #64748b;
}

/* Tage 1–7 */
.fm-tage {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.fm-tag {
    min-height: 52px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    color: #0f172a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .fm-tag.fm-gewaehlt {
        border-color: #0AAC4D;
        background: #0AAC4D;
        color: #fff;
    }

    .fm-tag:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Zusammenfassung */
.fm-liste {
    margin: 0 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

    .fm-liste > div {
        display: flex;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid #f1f5f9;
    }

        .fm-liste > div:last-child { border-bottom: none; }

    .fm-liste dt {
        flex: 0 0 76px;
        font-size: 13px;
        color: #64748b;
        padding-top: 2px;
    }

    .fm-liste dd {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 15px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

.fm-aendern {
    border: none;
    background: none;
    padding: 0 0 0 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    cursor: pointer;
    text-decoration: underline;
}

.fm-stapel {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #1e3a8a;
}

    .fm-stapel b { display: block; margin-bottom: 2px; }

.fm-fehler {
    margin: 0 18px 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fdecee;
    border: 1px solid #f5c2c7;
    color: #842029;
    font-size: 14px;
    font-weight: 600;
}

    .fm-fehler[hidden] { display: none; }

.fm-fuss {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.fm-rechts {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.fm-knopf {
    min-height: 46px;
    white-space: nowrap;
}

    .fm-knopf[hidden] { display: none; }

/* Handy: Blatt von unten */
@media (max-width: 560px) {
    .fm-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .fm-dialog {
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
    }

    .fm-inhalt { padding: 16px; }
    .fm-kopf { padding: 12px 16px 8px; }
    .fm-fehler { margin: 0 16px 10px; }

    .fm-fuss {
        padding: 10px 12px calc(10px + var(--lz-sa-unten, 0px));
        gap: 6px;
    }

    .fm-rechts { gap: 6px; }

    .fm-knopf {
        padding: 10px 11px;
        font-size: 14px;
    }
}

@media (max-width: 340px) {
    .fm-knopf { padding: 10px 8px; font-size: 13px; }
    .fm-tage { gap: 5px; }
    .fm-tag { font-size: 16px; }
}

/* Faz 44b: „Garage melden“ — Firma als kurzer Satz über der Frage */
.fm-text.fm-kontext {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
}
