/**
 * Morlok Group FAQ - Frontend Styles
 *
 * Neutrale, minimale Styles für die FAQ-Darstellung.
 * Kann über Theme-CSS angepasst werden.
 */

/* Container */
.morlok-faq-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* FAQ-Item */
.morlok-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
}

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

/* Frage */
.morlok-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    background: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.morlok-faq-question:hover {
    background: #f0f0f0;
}

.morlok-faq-question:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.morlok-faq-question-text {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.4;
    color: #333;
    flex: 1;
    padding-right: 15px;
}

/* Toggle-Indikator */
.morlok-faq-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.morlok-faq-toggle::before,
.morlok-faq-toggle::after {
    content: '';
    position: absolute;
    background: #666;
    transition: transform 0.2s ease;
}

.morlok-faq-toggle::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.morlok-faq-toggle::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Geöffneter Zustand */
.morlok-faq-item.is-open .morlok-faq-question {
    background: #f0f0f0;
    border-radius: 4px 4px 0 0;
}

.morlok-faq-item.is-open .morlok-faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Antwort */
.morlok-faq-answer {
    display: none;
    border-top: 1px solid #e0e0e0;
}

.morlok-faq-item.is-open .morlok-faq-answer {
    display: block;
}

.morlok-faq-answer-content {
    padding: 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #444;
}

.morlok-faq-answer-content p:first-child {
    margin-top: 0;
}

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

/* Fehlermeldung */
.morlok-faq-error {
    padding: 15px 20px;
    background: #fef0f0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 0.95em;
}

/* Hinweis */
.morlok-faq-notice {
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 600px) {
    .morlok-faq-question {
        padding: 12px 15px;
    }

    .morlok-faq-question-text {
        font-size: 0.95em;
    }

    .morlok-faq-answer-content {
        padding: 15px;
    }
}
