/* ── Kran-Finder Wizard ─────────────────────────── */

/* hidden-Attribut hat immer Vorrang vor Display-Regeln */
[hidden] {
    display: none !important;
}

/* Schritt-Indikator */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
}
.wstep {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
}
.wstep__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d9dbd8;
    background: #fff;
    color: #9a9c98;
    font-size: 0.82rem;
    font-weight: 800;
    transition: all 0.25s ease;
}
.wstep__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #9a9c98;
    white-space: nowrap;
    transition: color 0.25s ease;
}
.wstep__line {
    flex: 1;
    height: 2px;
    background: #e2e4e1;
    margin-bottom: 16px;
    border-radius: 1px;
}
.wstep.is-active .wstep__dot {
    border-color: #f7a600;
    background: #f7a600;
    color: #1d1d1b;
    box-shadow: 0 0 0 4px rgba(247, 166, 0, 0.18);
}
.wstep.is-active .wstep__label { color: #1d1d1b; }
.wstep.is-done .wstep__dot {
    border-color: #1d1d1b;
    background: #1d1d1b;
    color: #f7a600;
}
.wstep.is-done .wstep__label { color: #1d1d1b; }

/* Schritte */
.wizard-step h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: #1d1d1b;
}
.wizard-step h3.space-heading {
    margin: 20px 0 10px;
    font-size: 1rem;
    color: #1d1d1b;
}

/* Icon-Karten */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.card-grid--small {
    grid-template-columns: repeat(2, 1fr);
}
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px 12px;
    background: #fff;
    border: 1.5px solid #e2e4e1;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.card:hover {
    border-color: #f7a600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.card.is-active {
    border-color: #f7a600;
    border-width: 1.5px;
    box-shadow: 0 0 0 3px rgba(247, 166, 0, 0.22), 0 3px 10px rgba(0,0,0,0.07);
    background: #fffaf0;
}
.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f6f4ef;
    transition: background 0.15s;
}
.card.is-active .card__icon,
.card:hover .card__icon {
    background: #fdeecd;
}
.card__icon svg { display: block; }
.card__label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1d1d1b;
}
.card__hint {
    font-size: 0.74rem;
    color: #7f8c8d;
    line-height: 1.25;
}

/* ── Zugeklappte Auswahl ──────────────────────────
   Nach der Wahl bleibt nur die getroffene Auswahl als schmale Zeile
   stehen; "Ändern" holt die übrigen Karten zurück. Schafft Platz für
   die Folgefragen darunter. */
.card-change {
    display: none;
    flex: 0 0 auto;
    align-self: center;
    padding: 6px 12px;
    background: none;
    border: 1px solid #d8dad6;
    border-radius: 99px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6f6f6d;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.card-change:hover { border-color: #f7a600; color: #1d1d1b; }
.card-change:focus-visible { outline: 2px solid #f7a600; outline-offset: 2px; }

.card-grid.is-collapsed {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
}
.card-grid.is-collapsed .card { display: none; }
.card-grid.is-collapsed .card.is-active {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 14px;
    text-align: left;
    transform: none;
}
.card-grid.is-collapsed .card.is-active:hover {
    transform: none;
    box-shadow: 0 0 0 3px rgba(247, 166, 0, 0.22), 0 3px 10px rgba(0,0,0,0.07);
}
.card-grid.is-collapsed .card__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}
.card-grid.is-collapsed .card__icon svg { width: 22px; height: 22px; }
.card-grid.is-collapsed .card__hint { display: none; }
.card-grid.is-collapsed .card-change { display: inline-flex; align-items: center; }

/* Slider */
.slider-field {
    margin: 14px 0 18px;
}
.slider-field label {
    display: block;
    font-size: 0.9rem;
    color: #1d1d1b;
    margin-bottom: 6px;
}
.slider-field label strong {
    color: #f7a600;
    font-size: 1.05rem;
}
.slider-field input[type="range"] {
    width: 100%;
    accent-color: #f7a600;
    cursor: pointer;
    height: 28px;
}
.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #95a5a6;
}

/* Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}
.wizard-nav .btn {
    min-width: 130px;
}
.wizard-nav .btn--primary {
    margin-left: auto;
}
.btn--ghost {
    background: transparent;
    border: 2px solid #dfe6ec;
    color: #1d1d1b;
    border-radius: 4px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.btn--ghost:hover {
    border-color: #1d1d1b;
}

/* Empfehlungs-Karte */
.result-card--highlight {
    border: 1.5px solid #f7a600;
    border-top: 4px solid #f7a600;
    background: #fffdf8;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}
.result-card__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #b47a00;
    margin-bottom: 4px;
}

/* Szenario-Zusammenfassung */
.scenario-summary {
    margin: 14px 0;
    padding: 10px 14px;
    background: #f7f7f5;
    border-left: 4px solid #1d1d1b;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1d1d1b;
}

/* Anfrage-Formular */
.inquiry-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8edf1;
}
.inquiry-form h3 {
    margin: 0 0 4px;
    color: #1d1d1b;
}
.inquiry-form__note {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: #7f8c8d;
}
.form-grid--inquiry {
    grid-template-columns: repeat(2, 1fr);
}
.field--full {
    grid-column: 1 / -1;
}
.field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dfe6ec;
    border-radius: 4px;
    font: inherit;
    resize: vertical;
}
/* Honeypot – für Menschen unsichtbar */
.field--hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.inquiry-form__privacy {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: #95a5a6;
}
.inquiry-status {
    margin-top: 14px;
    padding: 14px;
    border-radius: 4px;
    font-size: 0.95rem;
}
.inquiry-status--ok {
    background: #e8f8f0;
    border: 1px solid #2ecc71;
    color: #1e8449;
}
.inquiry-status--error {
    background: #fdedec;
    border: 1px solid #e74c3c;
    color: #922b21;
}

/* Profi-Modus-Umschalter */
.expert-toggle {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.82rem;
}
.expert-toggle a {
    color: #7f8c8d;
    text-decoration: underline;
}
.expert-toggle a:hover {
    color: #1d1d1b;
}

/* Mobil */
@media (max-width: 560px) {
    .card-grid,
    .form-grid--inquiry {
        grid-template-columns: 1fr;
    }
    .card {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 12px;
    }
    .card__hint { display: none; }
}

/* Feld-Hinweise */
.field-hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #6f6f6d;
    line-height: 1.4;
}
.field-hint--roof {
    margin: -6px 0 14px;
    padding: 8px 12px;
    background: #fff7e6;
    border-left: 3px solid #f7a600;
    border-radius: 4px;
    color: #1d1d1b;
}

/* ── Hinweisboxen (Halleneinsatz, enge Aufstellfläche) ── */
.note {
    margin: 10px 0 16px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #1d1d1b;
}
.note--info {
    background: #eef4fb;
    border-left: 3px solid #2f6fb0;
}
.note--warn {
    background: #fdecea;
    border-left: 3px solid #c0392b;
    font-weight: 500;
}
.result-notes .note { margin: 0 0 12px; }

/* ── Checkbox (Kopie an den Anfragenden) ── */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 1rem;
    font-size: 0.86rem;
    line-height: 1.45;
    cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #f7a600;
    cursor: pointer;
}

.expert-toggle__sep {
    margin: 0 0.5rem;
    color: #b8bab6;
}

/* ── Geräteabhängig: Handy (html[data-device="phone"]) ── */
html[data-device="phone"] .form-grid--inquiry { grid-template-columns: 1fr; }
html[data-device="phone"] .card {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
}
html[data-device="phone"] .card__icon { width: 44px; height: 44px; flex: 0 0 44px; }
html[data-device="phone"] .card__hint { display: none; }
html[data-device="phone"] .card-grid,
html[data-device="phone"] .card-grid--small { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) {
    html[data-device="phone"] .card-grid,
    html[data-device="phone"] .card-grid--small { grid-template-columns: 1fr; }
}
html[data-device="phone"] .wizard-steps { margin-bottom: 14px; }

/* ── Dispo-Ansicht (Link aus der Anfrage-Mail) ── */
.dispo-banner {
    margin: -6px 0 14px;
    padding: 8px 12px;
    background: #1d1d1b;
    color: #f7a600;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 4px;
    text-align: center;
}
.dispo-send {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8edf1;
}
.dispo-send__hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: #7f8c8d;
    text-align: center;
}

/* ── Passende Krane (Ergebnisschritt) ───────────────────── */

.crane-list {
    margin: 1.25rem 0 1.5rem;
}

.crane-list__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .65rem;
    color: var(--color-primary);
}

.crane-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.crane-item {
    border: 1px solid #e2e2df;
    border-left: 3px solid #d8d8d4;
    border-radius: 8px;
    padding: .65rem .8rem;
    background: #fff;
}

.crane-item--best {
    border-left-color: var(--color-accent);
    background: #fffaf0;
}

.crane-item__head {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.crane-item__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
}

.crane-item__badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7a5200;
    background: var(--color-accent);
    border-radius: 999px;
    padding: .12rem .5rem;
}

.crane-item__type {
    display: block;
    font-size: .8rem;
    color: #6b6b66;
    margin-top: .1rem;
}

.crane-item__fit {
    margin: .35rem 0 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.crane-item__specs {
    margin: .25rem 0 0;
    font-size: .8rem;
    color: #6b6b66;
    line-height: 1.45;
}

.crane-list__note {
    margin: .7rem 0 0;
    font-size: .78rem;
    color: #6b6b66;
    line-height: 1.5;
}

/* Telefonnummer der Disposition auf der Ergebniskarte (Regel: Tür + >2,5 t).
   Bewusst als Button-große Fläche – auf dem Handy ist das der einzige
   Weg, der dem Kunden hier noch angeboten wird. */
.dispo-phone {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #f7a600;
    color: #1d1d1b;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}
.dispo-phone:hover,
.dispo-phone:focus {
    background: #1d1d1b;
    color: #f7a600;
}
