/* ============================
   FAQ Page Styles
   Einzigartige Klassen: uix-faq-*
   ============================ */

/* ============================
   Hero Section
   ============================ */
   .uix-faq-page {
    background: #fff;
    min-height: 100vh;
}

.uix-faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.uix-faq-hero {
    padding: 8rem 0 3rem;
    background: #fff;
}

.uix-faq-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #171717;
    margin-bottom: 1rem;
}

.uix-faq-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #171717;
    margin: 0 0 1rem;
}

.uix-faq-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin: 0 0 2rem;
    max-width: 600px;
}

.uix-faq-divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin-bottom: 1rem;
}

.uix-faq-breadcrumb {
    font-size: 0.875rem;
    color: #666;
}

.uix-faq-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.uix-faq-breadcrumb a:hover {
    color: #171717;
}

.uix-faq-breadcrumb span {
    margin: 0 0.5rem;
}

.uix-faq-breadcrumb span:last-child {
    color: #171717;
    margin-left: 0;
}

/* ============================
   Search Section
   ============================ */
.uix-faq-search-section {
    padding: 2rem 0 3rem;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.uix-faq-search-wrapper {
    position: relative;
    max-width: 600px;
    margin-bottom: 2rem;
}

.uix-faq-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 0 1.5rem;
    transition: box-shadow 0.2s, background 0.2s;
}

.uix-faq-search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px #171717;
}

.uix-faq-search-icon {
    color: #888;
    flex-shrink: 0;
}

.uix-faq-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    font-size: 1rem;
    color: #171717;
    outline: none;
}

.uix-faq-search-input::placeholder {
    color: #888;
}

.uix-faq-search-clear {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.uix-faq-search-clear:hover {
    color: #171717;
}

/* Autocomplete Dropdown */
.uix-faq-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    overflow: hidden;
    z-index: 100;
    display: none;
}

.uix-faq-autocomplete.active {
    display: block;
}

.uix-faq-autocomplete-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.uix-faq-autocomplete-item:last-child {
    border-bottom: none;
}

.uix-faq-autocomplete-item:hover,
.uix-faq-autocomplete-item.highlighted {
    background: #f5f5f5;
}

.uix-faq-autocomplete-item svg {
    color: #888;
    flex-shrink: 0;
}

.uix-faq-autocomplete-item span {
    color: #171717;
    font-size: 0.9375rem;
}

.uix-faq-autocomplete-item mark {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    color: #171717;
    padding: 0 2px;
    border-radius: 2px;
}

/* Filter Buttons */
.uix-faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.uix-faq-filter-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    background: #fff;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.uix-faq-filter-btn:hover {
    border-color: #171717;
    color: #171717;
}

.uix-faq-filter-btn.active {
    background: #171717;
    border-color: #171717;
    color: #fff;
}

/* ============================
   FAQ Content Section
   ============================ */
.uix-faq-content-section {
    padding: 3rem 0 5rem;
}

.uix-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uix-faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.uix-faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.uix-faq-item.hidden {
    display: none;
}

.uix-faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: background 0.2s;
}

.uix-faq-question:hover {
    background: #fafafa;
}

.uix-faq-question-text {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #171717;
    line-height: 1.4;
}

.uix-faq-category-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    white-space: nowrap;
}

.uix-faq-icon {
    color: #888;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.uix-faq-item.open .uix-faq-icon {
    transform: rotate(180deg);
}

/* Answer Accordion */
.uix-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.uix-faq-item.open .uix-faq-answer {
    max-height: 1000px;
}

.uix-faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.uix-faq-answer-content p {
    margin: 0 0 1rem;
}

.uix-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.uix-faq-answer-content a {
    color: #171717;
    text-decoration: underline;
    text-decoration-color: #00ff88;
    text-underline-offset: 3px;
}

.uix-faq-answer-content a:hover {
    text-decoration-color: #00d4ff;
}

.uix-faq-answer-content ul,
.uix-faq-answer-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.uix-faq-answer-content li {
    margin-bottom: 0.5rem;
}

/* Empty & No Results */
.uix-faq-empty,
.uix-faq-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.uix-faq-no-results a {
    color: #171717;
    font-weight: 500;
}

/* ============================
   CTA Section
   ============================ */
.uix-faq-cta {
    padding: 5rem 0;
    background: #171717;
}

.uix-faq-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.uix-faq-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.uix-faq-cta p {
    color: #a3a3a3;
    margin: 0 0 2rem;
}

.uix-faq-cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #fff;
    color: #171717;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.uix-faq-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
    .uix-faq-hero {
        padding: 6rem 0 2rem;
    }
    
    .uix-faq-question {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .uix-faq-question-text {
        font-size: 1rem;
        order: 1;
        width: calc(100% - 40px);
    }
    
    .uix-faq-category-tag {
        order: 3;
        margin-top: 0.5rem;
    }
    
    .uix-faq-icon {
        order: 2;
    }
    
    .uix-faq-answer-content {
        padding: 0 1rem 1rem;
    }
    
    .uix-faq-filters {
        gap: 0.5rem;
    }
    
    .uix-faq-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}
