/* Lead-Funnel "Website-Kosten-Guide" — component styles */

.funnel-header {
    display: flex;
    justify-content: center;
    padding: 32px 24px 0;
}

body.funnel-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.funnel-page .funnel-wrapper {
    flex: 1;
}

body.funnel-page .site-footer {
    margin-top: auto;
}

.funnel-wrapper {
    padding: 48px 0;
}

.funnel-card {
    padding: 48px 40px;
    border-radius: 24px;
}

/* Step bar */
.step-bar {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.step-item.step-active,
.step-item.step-done {
    opacity: 1;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 6px;
    color: var(--text-main);
}

.step-item.step-active .step-circle {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 0 16px var(--primary-glow);
}

.step-item.step-done .step-circle {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #06110b;
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Question + answers */
.question-headline {
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.3;
}

.answer-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.answer-tile {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.05rem;
    cursor: pointer;
    transition: 0.2s;
}

.answer-tile:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.08);
}

.answer-tile.selected {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.18);
}

.funnel-back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
}

.funnel-back-link:hover {
    color: var(--text-main);
}

.funnel-contact-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* Mehr Luft im Kontakt-Formular */
#contact-step .form-group {
    margin-bottom: 32px;
}

#contact-step .form-group label {
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
}

#contact-step .glass-form input {
    padding: 18px 20px;
}

#contact-step .funnel-back-link {
    display: block;
    text-align: center;
}

/* Großer, einladender CTA-Button */
.funnel-card .btn-primary.full-width,
.success-step .btn-primary.full-width {
    font-size: 1.35rem;
    font-weight: 700;
    padding: 26px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-purple), #c084fc);
    box-shadow: 0 10px 40px var(--primary-glow);
}

.funnel-card .btn-primary.full-width:hover,
.success-step .btn-primary.full-width:hover {
    box-shadow: 0 10px 50px var(--primary-glow), 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

/* Success screen */
.success-step {
    text-align: center;
}

.success-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Field validation + loading state (this page doesn't include index.html's inline copy) */
.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-group input.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.18) !important;
}

.btn-loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: funnel-spin 0.7s linear infinite;
}

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

@media (max-width: 600px) {
    .funnel-card { padding: 32px 22px; }
    .step-bar { gap: 16px; }
    .question-headline { font-size: 1.35rem; }
}
