/* =========================================================
   Steuer Termin Funnel – Frontend Styles
   ========================================================= */

.stf-funnel {
    --stf-brand: #0a3d62;
    --stf-bg: #ffffff;
    --stf-text: #0f172a;
    --stf-muted: #64748b;
    --stf-border: #e2e8f0;
    --stf-border-strong: #cbd5e1;
    --stf-radius: 10px;
    --stf-radius-lg: 14px;
    --stf-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .04);
    --stf-shadow-hover: 0 6px 20px rgba(15, 23, 42, .08);

    max-width: 880px;
    margin: 0 auto;
    color: var(--stf-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

/* ----------- Steps Indicator ----------- */
.stf-steps {
    margin-bottom: 24px;
}

.stf-steps ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.stf-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--stf-muted);
    font-size: 13px;
    font-weight: 500;
    transition: background .2s, color .2s;
}

.stf-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--stf-muted);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--stf-border-strong);
}

.stf-step--active {
    background: var(--stf-brand);
    color: #ffffff;
}
.stf-step--active .stf-step-num {
    background: #ffffff;
    color: var(--stf-brand);
    border-color: transparent;
}
.stf-step--done {
    background: rgba(10, 61, 98, .08);
    color: var(--stf-brand);
}
.stf-step--done .stf-step-num {
    background: var(--stf-brand);
    color: #ffffff;
    border-color: transparent;
}

@media (max-width: 540px) {
    .stf-step-label {
        display: none;
    }
}

/* ----------- Pages ----------- */
.stf-page {
    display: none;
    animation: stf-fade .25s ease-out;
}
.stf-page--active {
    display: block;
}

@keyframes stf-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stf-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--stf-text);
    margin: 0 0 28px;
    line-height: 1.3;
}

@media (max-width: 540px) {
    .stf-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

/* ----------- Tiles (große Auswahl-Karten) ----------- */
.stf-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 540px) {
    .stf-tiles {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.stf-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 36px 24px;
    background: #ffffff !important;
    border: 2px solid var(--stf-border);
    border-radius: var(--stf-radius-lg);
    cursor: pointer;
    transition: border-color .2s, transform .15s, box-shadow .2s, background .2s, color .2s;
    font-family: inherit;
    text-align: center;
    color: var(--stf-text);
}

.stf-tile:hover,
.stf-tile:focus,
.stf-tile:focus-visible {
    background: #173C60 !important;
    border-color: #173C60;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--stf-shadow-hover);
}

.stf-tile:focus-visible {
    outline: 2px solid #173C60;
    outline-offset: 2px;
}

.stf-tile.is-selected {
    background: #173C60 !important;
    border-color: #173C60;
    color: #ffffff;
    box-shadow: var(--stf-shadow-hover);
}

/* Icon-Kreis: passt sich Hover/Selected an */
.stf-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(23, 60, 96, .08);
    color: #173C60;
    transition: background .2s, color .2s;
}

.stf-tile:hover .stf-tile-icon,
.stf-tile:focus .stf-tile-icon,
.stf-tile.is-selected .stf-tile-icon {
    background: rgba(255, 255, 255, .15);
    color: #ffffff;
}

.stf-tile-label {
    font-size: 17px;
    font-weight: 600;
    color: inherit;
    transition: color .2s;
}

/* ----------- Navigation ----------- */
.stf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.stf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--stf-radius);
    background: var(--stf-brand);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
    text-decoration: none;
}

.stf-btn:hover {
    background: #082f4a;
}

.stf-btn--ghost {
    background: transparent;
    color: var(--stf-muted);
    border-color: var(--stf-border-strong);
}
.stf-btn--ghost:hover {
    background: #f1f5f9;
    color: var(--stf-text);
}

.stf-btn--link {
    background: transparent;
    color: var(--stf-brand);
    text-decoration: underline;
    padding: 4px 0;
    border: none;
    font-weight: 500;
    font-size: 14px;
}
.stf-btn--link:hover {
    background: transparent;
    color: #082f4a;
}

/* ----------- Preis-Hinweis ----------- */
.stf-price-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: var(--stf-radius);
    margin-bottom: 20px;
}

.stf-price-hint__icon {
    flex-shrink: 0;
    color: #ca8a04;
    margin-top: 1px;
}

.stf-price-hint__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #713f12;
}

.stf-price-hint__text {
    margin: 0;
    font-size: 14px;
    color: #713f12;
    line-height: 1.5;
}

/* ----------- Auswahl-Zusammenfassung ----------- */
.stf-selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: var(--stf-radius);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--stf-muted);
}

.stf-selection-summary [data-summary-text] {
    font-weight: 600;
    color: var(--stf-text);
}

/* ----------- Calendly ----------- */
.stf-calendly-wrap {
    border-radius: var(--stf-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.stf-calendly {
    width: 100%;
}

.stf-no-url {
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--stf-radius);
    color: #991b1b;
    text-align: center;
}
.stf-no-url p {
    margin: 0;
}

/* ----------- Success ----------- */
.stf-success {
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--stf-radius);
    color: #166534;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}
