/* ==========================================================================
   FAQ Section - ESGscheibe (light theme)
   ========================================================================== */

.ts-faq-section {
    background: #ffffff;
    position: relative;
    border-top: 1px solid #eef0f3;
}

.ts-faq-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Category Card */
.ts-faq-category {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e8ec;
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 1px 2px rgba(15, 29, 46, 0.04);
}

.ts-faq-category:hover {
    transform: translateY(-2px);
    border-color: #cdd4dc;
    box-shadow: 0 8px 24px rgba(15, 29, 46, 0.08);
}

/* Category Header */
.ts-faq-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f3;
}

.ts-faq-category-icon {
    width: 44px;
    height: 44px;
    background: rgba(30, 81, 114, 0.08);
    border: 1px solid rgba(30, 81, 114, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ts-faq-category-icon svg {
    color: #1e5172;
}

.ts-faq-category-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #0f1d2e;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* FAQ Items Container */
.ts-faq-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Individual Question Item */
.ts-faq-item {
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ts-faq-item:hover {
    background: #f4f6f8;
    border-color: #dde2e7;
}

.ts-faq-item.active {
    background: #ffffff;
    border-color: #1e5172;
}

/* Question Button */
.ts-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    color: #0f1d2e;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ts-faq-question:hover {
    color: #1e5172;
}

.ts-faq-item.active .ts-faq-question {
    color: #1e5172;
    font-weight: 600;
}

.ts-faq-question span {
    flex: 1;
    line-height: 1.4;
}

/* Arrow Icon */
.ts-faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0f3;
    border: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ts-faq-icon svg {
    width: 14px;
    height: 14px;
    color: #5b6b7a;
    transition: transform 0.3s ease, color 0.3s ease;
}

.ts-faq-item.active .ts-faq-icon {
    background: #1e5172;
    border-color: #1e5172;
}

.ts-faq-item.active .ts-faq-icon svg {
    transform: rotate(180deg);
    color: #ffffff;
}

/* Answer - Smooth accordion */
.ts-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.ts-faq-item.active .ts-faq-answer {
    grid-template-rows: 1fr;
}

.ts-faq-answer > div {
    overflow: hidden;
}

.ts-faq-answer p {
    color: #5b6b7a;
    line-height: 1.65;
    font-size: 0.9rem;
    margin: 0;
    padding: 0 1.25rem 1.15rem 1.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ts-faq-item.active .ts-faq-answer p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* CTA Footer */
.ts-faq-cta {
    background: linear-gradient(135deg, #1e5172 0%, #2a6b94 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(30, 81, 114, 0.18);
    position: relative;
    overflow: hidden;
}

.ts-faq-cta-content {
    position: relative;
    z-index: 2;
}

.ts-faq-cta h3 {
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ts-faq-cta p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    margin: 0 auto 1.75rem;
    max-width: 620px;
    line-height: 1.55;
}

.ts-faq-cta .ts-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 500;
}

.ts-faq-cta .ts-btn-secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #1e5172;
    transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 1024px) {
    .ts-faq-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ts-faq-section {
        padding: 3rem 0;
    }
    .ts-faq-categories {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .ts-faq-category {
        padding: 1.25rem;
        border-radius: 12px;
    }
    .ts-faq-category-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.875rem;
    }
    .ts-faq-category-header h3 {
        font-size: 1.1rem;
    }
    .ts-faq-category-icon {
        width: 38px;
        height: 38px;
    }
    .ts-faq-category-icon svg {
        width: 20px;
        height: 20px;
    }
    .ts-faq-items {
        gap: 0.4rem;
    }
    .ts-faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        gap: 0.75rem;
    }
    .ts-faq-icon {
        width: 24px;
        height: 24px;
    }
    .ts-faq-icon svg {
        width: 12px;
        height: 12px;
    }
    .ts-faq-answer p {
        font-size: 0.85rem;
        padding: 0 1rem 1rem 1rem;
    }
    .ts-faq-cta {
        padding: 2rem 1.5rem;
        border-radius: 14px;
    }
    .ts-faq-cta h3 {
        font-size: 1.3rem;
    }
    .ts-faq-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    .ts-faq-cta .ts-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .ts-faq-category {
        padding: 1rem;
    }
    .ts-faq-category-header h3 {
        font-size: 1.05rem;
    }
    .ts-faq-question {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
    .ts-faq-answer p {
        font-size: 0.8125rem;
        padding: 0 0.875rem 0.875rem 0.875rem;
    }
    .ts-faq-cta {
        padding: 1.5rem 1.25rem;
    }
    .ts-faq-cta h3 {
        font-size: 1.15rem;
    }
}
