/**
 * Voice Search FAQ Styles
 * Optimiert für mobile-first Design und Voice Search
 */

/* Voice Search Indicator */
.voice-indicator {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.voice-indicator i {
    font-size: 0.875rem;
}

/* Voice Search Answer Container */
.voice-search-answer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    transition: all 0.3s ease;
}

.voice-search-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.voice-search-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    border-radius: 1rem 1rem 0 0;
}

/* Speakable Content */
.speakable {
    position: relative;
    transition: all 0.3s ease;
}

.speakable::after {
    content: '🎤';
    position: absolute;
    right: -1.5rem;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
}

.speakable:hover::after {
    opacity: 0.7;
}

/* Voice Search Question Variations */
.voice-variation {
    display: none; /* Versteckt für SEO, aber für Crawler sichtbar */
}

/* Enhanced FAQ Items */
.accordion-item[data-voice-optimized="true"] {
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.accordion-item[data-voice-optimized="true"] .accordion-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 600;
}

.accordion-item[data-voice-optimized="true"] .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Voice Search CTA */
.voice-search-cta {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.voice-search-cta h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.voice-search-cta .btn {
    background: white;
    color: #007bff;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.voice-search-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile-First Optimizations */
@media (max-width: 768px) {
    .voice-search-answer {
        padding: 1rem;
        margin: 0.75rem 0;
        border-radius: 0.75rem;
    }
    
    .voice-indicator {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }
    
    .voice-search-cta {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .voice-search-cta .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Touch-friendly speakable indicators */
    .speakable::after {
        right: -1rem;
        font-size: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .voice-search-answer {
        border-width: 3px;
        background: white;
    }
    
    .voice-indicator {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .voice-search-answer,
    .speakable,
    .voice-search-cta .btn {
        transition: none;
    }
    
    .voice-search-answer:hover,
    .voice-search-cta .btn:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .voice-search-answer {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #20c997;
        color: #e2e8f0;
    }
    
    .voice-indicator {
        background: linear-gradient(135deg, #20c997, #17a2b8);
    }
}

/* Voice Search Performance Indicator */
.voice-search-performance {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-search-performance.show {
    opacity: 1;
}

.voice-search-performance.good {
    background: rgba(40, 167, 69, 0.9);
}

.voice-search-performance.warning {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.voice-search-performance.error {
    background: rgba(220, 53, 69, 0.9);
}

/* Voice Search Analytics */
.voice-search-analytics {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #28a745;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.voice-search-analytics.show {
    display: block;
}

.voice-search-analytics h3 {
    color: #28a745;
    margin-bottom: 1rem;
}

.voice-search-analytics .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Voice Search Test Results */
.voice-test-results {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.voice-test-results .test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.voice-test-results .test-item:last-child {
    border-bottom: none;
}

.voice-test-results .test-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.voice-test-results .test-status.pass {
    background: #d4edda;
    color: #155724;
}

.voice-test-results .test-status.fail {
    background: #f8d7da;
    color: #721c24;
}

/* Voice Search Loading States */
.voice-search-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.voice-search-loading .spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e9ecef;
    border-top: 2px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Voice Search Error States */
.voice-search-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.voice-search-error .error-icon {
    color: #dc3545;
    margin-right: 0.5rem;
}

/* Voice Search Success States */
.voice-search-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.voice-search-success .success-icon {
    color: #28a745;
    margin-right: 0.5rem;
}

/* Voice Search Categories */
.voice-search-categories {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.voice-category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.voice-category-card:hover {
    border-color: #28a745;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
}

.voice-category-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.voice-category-card h5 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.voice-category-card p {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0;
}

/* Voice Questions List */
.voice-questions {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.voice-questions li {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #495057;
    transition: all 0.3s ease;
}

.voice-questions li:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.voice-questions li::before {
    content: '🎤';
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Voice Search Accordion Enhancements */
.accordion-item[data-voice-category] {
    border: none;
    margin-bottom: 1rem;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.accordion-item[data-voice-category]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.accordion-item[data-voice-category] .accordion-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 1rem 1rem 0 0;
}

.accordion-item[data-voice-category] .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: white;
    box-shadow: none;
}

.accordion-item[data-voice-category] .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    filter: brightness(0) invert(1);
}

.accordion-item[data-voice-category] .accordion-body {
    background: white;
    padding: 2rem;
    color: #495057;
    line-height: 1.7;
    border-radius: 0 0 1rem 1rem;
}

/* Voice Search Header Enhancements */
.voice-search-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
}

.voice-search-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.voice-search-header .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.voice-search-header .voice-indicator {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

/* Voice Search Stats Enhancements */
.voice-search-stats {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-search-stats h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.voice-search-stats p {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
}

/* Mobile-First Enhancements */
@media (max-width: 768px) {
    .voice-search-header {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .voice-search-header h1 {
        font-size: 2rem;
    }
    
    .voice-search-header .lead {
        font-size: 1rem;
    }
    
    .voice-search-categories {
        padding: 1.5rem;
    }
    
    .voice-category-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .voice-category-card i {
        font-size: 1.5rem;
    }
    
    .voice-category-card h5 {
        font-size: 1rem;
    }
    
    .voice-category-card p {
        font-size: 0.875rem;
    }
    
    .accordion-item[data-voice-category] .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-item[data-voice-category] .accordion-body {
        padding: 1.5rem;
    }
    
    .voice-questions li {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .voice-search-stats {
        padding: 1.5rem;
    }
    
    .voice-search-stats h3 {
        font-size: 2rem;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .voice-search-header h1 {
        font-size: 1.75rem;
    }
    
    .voice-category-card {
        padding: 0.75rem;
    }
    
    .voice-category-card i {
        font-size: 1.25rem;
    }
    
    .accordion-item[data-voice-category] .accordion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .accordion-item[data-voice-category] .accordion-body {
        padding: 1rem;
    }
    
    .voice-search-answer {
        padding: 0.75rem;
    }
    
    .voice-indicator {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Voice Search Animation */
@keyframes voicePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.voice-search-answer:hover {
    animation: voicePulse 0.6s ease-in-out;
}

/* Voice Search Focus States */
.voice-search-answer:focus-within {
    outline: 3px solid #28a745;
    outline-offset: 2px;
}

/* Voice Search Print Styles */
@media print {
    .voice-search-cta,
    .voice-search-performance,
    .voice-search-analytics {
        display: none !important;
    }
    
    .voice-search-answer {
        border: 1px solid #000;
        background: white !important;
        color: black !important;
    }
    
    .voice-indicator {
        background: #000 !important;
        color: white !important;
    }
}
