/* ==========================================================================
   BSS Theme – Beratungs-Funnel (Kostenlose Beratung + Danke-Seite)
   ========================================================================== */

/* Ablenkungsfrei: Navigation und Kontaktbereich auf den Funnel-Seiten ausblenden */
.bss-funnel-page .site-nav .nav-links,
.bss-funnel-page .site-nav .mobile-menu-toggle {
    display: none !important;
}

.bf-page {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 70%);
    padding: 7.5rem 1rem 4rem;
    min-height: 100vh;
}

.bf-wrap {
    max-width: 680px;
    margin: 0 auto;
}

/* Intro */
.bf-intro {
    text-align: center;
    margin-bottom: 1.75rem;
}

.bf-badge {
    display: inline-block;
    background: var(--light-pink);
    color: var(--primary-pink);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.bf-intro h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.bf-intro p {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Karte */
.bf-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(200, 75, 108, 0.12);
    padding: 1.5rem 1.25rem 1.25rem;
    position: relative;
    scroll-margin-top: 90px;
}

@media (min-width: 640px) {
    .bf-card {
        padding: 2.25rem 2.5rem 1.75rem;
    }
}

/* Fortschritt */
.bf-progress {
    height: 8px;
    background: var(--light-pink);
    border-radius: 50px;
    overflow: hidden;
}

.bf-progress-bar {
    height: 100%;
    width: 12%;
    background: linear-gradient(90deg, var(--accent-pink), var(--primary-pink));
    border-radius: 50px;
    transition: width 0.4s ease;
}

.bf-progress-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0.5rem 0 1.25rem;
    min-height: 1.2em;
}

.bf-error {
    margin: 0 0 1.25rem;
}

/* Schritte */
.bf-step {
    border: 0;
    margin: 0 0 2rem;
    padding: 0;
    min-width: 0;
}

.bf-form.bf-js .bf-step {
    margin-bottom: 0;
}

.bf-form.bf-js .bf-step.is-active {
    animation: bfFadeIn 0.3s ease;
}

@keyframes bfFadeIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

.bf-question {
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding: 0;
    outline: none;
}

.bf-hint {
    margin: -0.75rem 0 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Antwort-Kacheln */
.bf-options {
    display: grid;
    gap: 0.75rem;
}

.bf-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 58px;
    padding: 0.85rem 1.1rem;
    border: 2px solid #ececec;
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .bf-option:hover {
        border-color: var(--accent-pink);
        background: var(--light-bg);
    }
}

.bf-option:active {
    transform: scale(0.99);
}

.bf-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bf-option::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #cfcfcf;
    border-radius: 50%;
    background: var(--white) center / 12px no-repeat;
    transition: all 0.2s ease;
}

.bf-step[data-type="multi"] .bf-option::before {
    border-radius: 6px;
}

.bf-option:has(input:checked) {
    border-color: var(--primary-pink);
    background: var(--light-pink);
}

.bf-option:has(input:checked)::before {
    border-color: var(--primary-pink);
    background-color: var(--primary-pink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bf-option:has(input:focus-visible) {
    outline: 3px solid rgba(200, 75, 108, 0.35);
    outline-offset: 2px;
}

.bf-step-error,
.bf-field-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    min-height: 0;
}

.bf-step-error:empty,
.bf-field-error:empty {
    display: none;
}

.bf-next {
    margin-top: 1.25rem;
    width: 100%;
}

/* Kontaktschritt */
.bf-row {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 560px) {
    .bf-row {
        grid-template-columns: 1fr 1fr;
    }
}

.bf-step-contact .form-group {
    margin-bottom: 1.1rem;
}

.bf-step-contact .form-group input.is-invalid {
    border-color: #dc2626;
}

.bf-phone {
    display: flex;
    gap: 0.5rem;
}

.form-group .bf-phone select {
    width: auto;
    flex: 0 0 auto;
    padding-left: 0.8rem;
    padding-right: 0.6rem;
}

.bf-phone input {
    flex: 1 1 auto;
    min-width: 0;
}

.bf-field-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.4rem;
}

.bf-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.bf-label small,
.bf-message summary small {
    font-weight: 400;
    color: var(--text-gray);
}

.bf-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.bf-chip {
    cursor: pointer;
}

.bf-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bf-chip span {
    display: block;
    text-align: center;
    padding: 0.55rem 0.5rem;
    border: 2px solid #ececec;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.bf-chip input:checked + span {
    border-color: var(--primary-pink);
    background: var(--light-pink);
    color: var(--primary-pink);
}

.bf-chip input:focus-visible + span {
    outline: 3px solid rgba(200, 75, 108, 0.35);
    outline-offset: 2px;
}

.bf-message {
    margin: 0.25rem 0 1.25rem;
}

.bf-message summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-pink);
    margin-bottom: 0.75rem;
}

.bf-message textarea {
    min-height: 90px;
}

.bf-submit {
    width: 100%;
    margin-top: 0.25rem;
}

.bf-privacy {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.bf-privacy a {
    text-decoration: underline;
}

/* Zurück */
.bf-back {
    background: none;
    border: 0;
    color: var(--text-gray);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 0 0;
}

.bf-back:hover {
    color: var(--primary-pink);
}

/* Honeypot */
.bf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Vertrauen */
.bf-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.bf-trust li::before {
    content: '\2713';
    color: var(--primary-pink);
    font-weight: 800;
    margin-right: 0.4rem;
}

.bf-quote {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 2rem auto 0;
    max-width: 560px;
}

.bf-quote img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bf-quote blockquote p {
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.bf-quote figcaption {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.35rem;
}

/* Danke-Seite */
.bf-thanks-card {
    text-align: left;
}

.bf-thanks-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-pink);
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.bf-thanks-card h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    margin-bottom: 0.9rem;
}

.bf-thanks-lead {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.bf-thanks-card h2,
.bf-prepare h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.bf-next-steps {
    list-style: none;
    counter-reset: bfstep;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 1rem;
}

.bf-next-steps li {
    counter-increment: bfstep;
    position: relative;
    padding-left: 3rem;
}

.bf-next-steps li::before {
    content: counter(bfstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--light-pink);
    color: var(--primary-pink);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bf-next-steps strong {
    display: block;
}

.bf-next-steps span {
    color: var(--text-gray);
}

.bf-thanks-contact {
    font-size: 0.95rem;
    color: var(--text-gray);
    border-top: 1px solid #f0e3e8;
    padding-top: 1.25rem;
}

.bf-prepare {
    margin-top: 2.5rem;
    text-align: center;
}

.bf-prepare > p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.bf-prepare .video-container {
    max-width: none;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.bf-back-home {
    margin-top: 1.5rem;
}
