/* FAQ Container */
.faq-container  {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 500;
}

/* Section Head für FAQ */
.section-head {
    text-align: center;
    margin: 50px auto 60px auto;
    padding: 0 20px 1.5rem 20px;
    max-width: 800px;
    position: relative;
}

.section-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: #ccc;
}

.section-head .main-heading {
    display: block;
    font-size: var(--font-size-main-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.section-head .sub-heading {
    display: block;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 65ch;
    margin: 0 auto;
    font-weight: var(--font-weight-regular);
}

/* FAQ Category Heading */
.faq-heading {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
    letter-spacing: -0.3px;
}

.faq-heading::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--secondary-dark);
}

/* Accordion Item */
.accordion {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    border: 1px solid var(--gray-medium);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.accordion.active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-dark);
}

/* Accordion Header */
.accordion-header {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--gray-light);
    transition: all 0.3s ease;
    color: var(--text-color);
    border: none;
    line-height: 1.5;
}

.accordion-header:hover {
    background: var(--secondary-light);
    color: var(--white);
}

.accordion-header.active {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: var(--font-weight-bold);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
    background-color: var(--white);
}

.accordion-content.active {
    max-height: 500px;
    padding: 24px;
}

.accordion-content p {
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-color);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
}

.accordion-content p + p {
    margin-top: 12px;
}

.accordion-content strong {
    color: var(--secondary-dark);
    font-weight: var(--font-weight-bold);
}

/* Icon für Accordion */
.accordion-header::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.accordion-header.active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-container {
        padding: 30px 20px;
        margin-bottom: 40px;
        border-radius: 12px;
    }
    
    .section-head {
        margin: 30px auto 40px auto;
    }
    
    .section-head .main-heading {
        font-size: 1.75rem;
    }
    
    .section-head .sub-heading {
        font-size: 1rem;
    }
    
    .faq-heading {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .accordion-header {
        padding: 16px 18px;
        font-size: 0.95rem;
        gap: 12px;
    }
    
    .accordion-content.active {
        padding: 20px 18px;
    }
    
    .accordion-content p {
        font-size: 0.9rem;
    }
}
