.faq-container {
    padding-top: 100px;
    padding-bottom: 20px;
    height: calc(100vh - 120px);
    position: relative;
}

.scroll-container {
    overflow-y: auto;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
    -webkit-overflow-scrolling: touch; /* Für besseres Scrolling auf iOS */
}

.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.faq-container {
    padding-top: 100px;
    padding-bottom: 20px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.faq-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--light-text); /* Changed from rgba(255, 255, 255, 0.7) to var(--light-text) */
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-question i {
    margin-right: 1rem;
    color: var(--accent);
    font-size: 1rem;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 37, 133, 0.1);
    border-radius: 50%;
}

.faq-question h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

.faq-answer p {
    color: var(--light-text); /* Changed from rgba(255, 255, 255, 0.7) to var(--light-text) */
    line-height: 1.6;
    padding-bottom: 1.5rem;
    margin: 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Großer genug Wert für den Content */
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.contact-button {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-button:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
}

.cta-section p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .faq-container {
        padding-top: 80px;
        height: calc(100vh - 80px);
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1.2rem;
    }
    
    .content-box {
        padding: 1.5rem !important;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
}
