/* ===========================================
   Seibersdorfer Produktfinder – Stylesheet
   Version 1.0.0
   =========================================== */

.spf-wrapper {
    padding: 2rem 0;
    font-family: inherit;
    box-sizing: border-box;
}

.spf-wrapper *,
.spf-wrapper *::before,
.spf-wrapper *::after {
    box-sizing: border-box;
}

/* Card -------------------------------------------------- */
.spf-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 2rem 2rem 1.75rem;
    max-width: 660px;
    margin: 0 auto;
}

/* Progress bar ------------------------------------------ */
.spf-progress {
    display: flex;
    gap: 5px;
    margin-bottom: 1.75rem;
}

.spf-dot {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #e0e0e0;
    transition: background 0.3s;
}

.spf-dot.done   { background: var(--spf-accent, #1D9E75); }
.spf-dot.active { background: var(--spf-accent-light, #5DCAA5); }

/* Typography -------------------------------------------- */
.spf-step-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 0.4rem;
}

.spf-question {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
}

.spf-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 1.25rem;
}

/* Category grid ----------------------------------------- */
.spf-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.spf-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}

.spf-cat-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.spf-cat-btn.spf-selected {
    border: 2px solid var(--spf-accent, #1D9E75);
    background: #E1F5EE;
}

.spf-cat-icon {
    font-size: 28px;
    line-height: 1;
}

.spf-cat-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.spf-cat-sub {
    font-size: 11px;
    color: #666;
    display: block;
}

/* Options list ------------------------------------------ */
.spf-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.spf-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    text-align: left;
    width: 100%;
    transition: border-color 0.15s, background 0.15s;
}

.spf-option:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.spf-option.spf-selected {
    border: 2px solid var(--spf-accent, #1D9E75);
    background: #E1F5EE;
}

.spf-opt-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f0f0f0;
    font-size: 20px;
    transition: background 0.15s;
}

.spf-option.spf-selected .spf-opt-icon {
    background: #9FE1CB;
}

.spf-opt-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.spf-opt-sub {
    font-size: 12px;
    color: #666;
    display: block;
}

/* Navigation -------------------------------------------- */
.spf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spf-btn {
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #1a1a1a;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spf-btn:hover {
    background: #f5f5f5;
}

.spf-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.spf-btn.spf-primary {
    background: var(--spf-accent, #1D9E75);
    border-color: var(--spf-accent, #1D9E75);
    color: #fff;
}

.spf-btn.spf-primary:hover {
    background: #0F6E56;
    border-color: #0F6E56;
}

/* Result ------------------------------------------------ */
.spf-result {
    text-align: center;
}

.spf-result-badge {
    display: inline-block;
    background: #E1F5EE;
    color: #0F6E56;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.spf-result-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
}

.spf-result-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.spf-result-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
}

.spf-prop {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
}

.spf-prop-label {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 2px;
}

.spf-prop-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.spf-result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.spf-result-actions .spf-btn-shop {
    padding: 11px 24px;
    border-radius: 8px;
    background: var(--spf-accent, #1D9E75);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.spf-result-actions .spf-btn-shop:hover {
    background: #0F6E56;
    color: #fff;
    text-decoration: none;
}

.spf-restart-link {
    font-size: 13px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.25rem;
    display: inline-block;
}

.spf-restart-link:hover {
    color: #333;
}

/* Arrow icons (pure CSS, no icon font dependency) ------- */
.spf-arrow-right::after { content: " →"; }
.spf-arrow-left::before { content: "← "; }

/* Responsive -------------------------------------------- */
@media (max-width: 520px) {
    .spf-card {
        padding: 1.25rem 1rem 1.25rem;
        border-radius: 10px;
    }

    .spf-cat-grid {
        grid-template-columns: 1fr;
    }

    .spf-result-props {
        grid-template-columns: 1fr;
    }

    .spf-question {
        font-size: 17px;
    }
}
