/* FAQ Page Styles */
.faq-intro {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.faq-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/hintergrund_muster.png') repeat;
    opacity: 0.05;
    z-index: 1;
}

.faq-intro .container {
    position: relative;
    z-index: 2;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.intro-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2B9184, #4CAF50);
    border-radius: 2px;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
}

.intro-text p {
    margin-bottom: 1rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* FAQ Filter Buttons (im weißen FAQ-Bereich) – Zeile 1: 5 Buttons, Zeile 2: 4 Buttons */
.faq-filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto 2.5rem;
    padding-top: 0;
}

.faq-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.faq-filter-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 2px solid rgba(43, 145, 132, 0.4);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.faq-filter-btn:hover {
    border-color: #2B9184;
    color: #2B9184;
    background: rgba(43, 145, 132, 0.06);
}

.faq-filter-btn.active {
    background: linear-gradient(135deg, #2B9184, #1F7A6F);
    border-color: #2B9184;
    color: #ffffff;
}

@media (max-width: 768px) {
    .faq-filter-buttons {
        margin-bottom: 2rem;
        gap: 10px;
    }

    .faq-filter-btn {
        padding: 8px 14px;
        font-size: 0.875rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 32px 0 80px;
    background: #ffffff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Filter-Übergang: weiches Ein- und Ausblenden */
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.4s ease, margin-bottom 0.35s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    max-height: 800px;
}

.faq-item.faq-item-hidden {
    opacity: 0;
    transform: translateY(-14px);
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
    visibility: hidden;
}


.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #2B9184;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    padding: 28px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    padding-right: 40px;
    line-height: 1.4;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #2B9184;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(43, 145, 132, 0.1);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    background: rgba(43, 145, 132, 0.2);
}

.faq-answer {
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    padding: 32px;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-intro {
        padding: 50px 0 30px;
    }
    
    .intro-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .intro-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-question {
        padding: 20px 18px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 28px;
        line-height: 1.4;
    }
    
    .faq-question::after {
        right: 18px;
        font-size: 1.2rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 18px;
    }
    
    .faq-container {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .faq-intro {
        padding: 40px 0 25px;
    }
    
    .intro-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .intro-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-question {
        padding: 16px 14px;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
        padding-right: 22px;
        line-height: 1.3;
    }
    
    .faq-question::after {
        right: 14px;
        font-size: 1.1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 14px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .faq-container {
        padding: 0 6px;
    }
}

/* Kundenbewertungen Section */
.kundenbewertungen-section {
    padding: 80px 0 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    z-index: 3;
}

.kundenbewertungen-section .section-title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    position: relative;
}

.kundenbewertungen-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2B9184;
    border-radius: 2px;
}

.bewertungen-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.bewertungen-slider {
    position: relative;
    overflow: hidden; /* Max. 2 Karten sichtbar (50% pro Slide); Karte wächst nach unten mit */
    margin-bottom: 0;
    min-height: 400px; /* Mindesthöhe, wächst bei ausgeklappter Karte */
}

.bewertungen-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    height: 100%;
}

.bewertung-slide {
    flex: 0 0 50%;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bewertung-karte {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    width: 100%;
    height: 320px; /* Feste Höhe für alle Karten */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bewertung-sterne {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.bewertung-google-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 6px;
    flex-shrink: 0;
}

.bewertung-kunde {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    text-align: left;
}

.bewertung-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2B9184, #1F7A6F);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(43, 145, 132, 0.3);
    flex-shrink: 0;
}

.kunde-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stern {
    color: #ffa500;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bewertung-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    min-height: 0;
}

/* Ausklappbarer Text (Bewertung 5) */
.bewertung-karte-expandable .bewertung-text-expandable {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    flex-grow: 1;
    overflow: hidden;
}

.bewertung-karte-expandable .bewertung-text-content {
    max-height: 6.5em;
    overflow: hidden;
    transition: max-height 0.85s cubic-bezier(0.33, 1, 0.68, 1);
    text-align: center;
    width: 100%;
    flex-shrink: 0;
    min-height: 0;
}

.bewertung-karte-expandable {
    overflow: hidden;
    border-radius: 20px;
    height: auto;
    min-height: 320px;
    max-height: 320px;
    transition: max-height 0.85s cubic-bezier(0.33, 1, 0.68, 1);
}

.bewertung-karte-expandable.is-expanded {
    max-height: 720px;
}

.bewertung-karte-expandable.is-expanded .bewertung-text-content {
    max-height: 500px;
}

.bewertung-expand-btn {
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2B9184;
    background: transparent;
    border: 1px solid #2B9184;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
    min-width: 120px;
}

.bewertung-expand-btn:hover {
    background: rgba(43, 145, 132, 0.1);
}

.kunde-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2B9184;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kunde-firma {
    font-size: 0.8rem;
    font-weight: 400;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0.3px;
}

.bewertungen-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2px;
}

@media (min-width: 769px) {
    .bewertungen-pagination .pagination-dot:nth-child(n+4) {
        display: none;
    }
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid #2B9184;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-dot.active {
    background: #2B9184;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(43, 145, 132, 0.3);
}

.pagination-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(43, 145, 132, 0.2);
}

.pagination-dot.mobile-only {
    display: none;
}

/* Responsive Design für Kundenbewertungen */
@media (max-width: 768px) {
    .kundenbewertungen-section {
        padding: 60px 0 32px 0;
    }
    
    .kundenbewertungen-section .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .bewertungen-slider {
        height: 350px;
    }
    
    .bewertung-slide {
        flex: 0 0 100%;
        padding: 0 15px;
    }
    
    .bewertung-karte {
        padding: 25px 20px;
        height: 300px;
    }
    
    .bewertung-karte-expandable .bewertung-text-content {
        max-height: 6.2em;
    }

    .bewertung-karte-expandable.is-expanded {
        min-height: 300px;
    }

    .bewertung-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .stern {
        font-size: 1.3rem;
    }
    
    .bewertung-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .bewertung-kunde {
        gap: 12px;
    }
    
    .kunde-name {
        font-size: 0.85rem;
    }
    
    .kunde-firma {
        font-size: 0.75rem;
    }
    
    .pagination-dot.mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    .kundenbewertungen-section {
        padding: 50px 0 28px 0;
    }
    
    .kundenbewertungen-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .bewertungen-slider {
        height: 320px;
    }
    
    .bewertung-karte {
        padding: 20px 15px;
        height: 280px;
    }
    
    .bewertung-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .stern {
        font-size: 1.2rem;
    }
    
    .bewertung-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .bewertung-kunde {
        gap: 10px;
    }
    
    .kunde-name {
        font-size: 0.8rem;
    }
    
    .kunde-firma {
        font-size: 0.7rem;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
}