/* ============================================================
   Buchdrucker FAQs – Stylesheet
   Originaldesign aus faqbin/faqs.css, ergänzt um
   .seabim-highlight und .back-to-top
   ============================================================ */

.faqs .header {
    background: linear-gradient(135deg, #3c513c, #5e513c);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
}

.faqs .header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #fff;
}

.faqs .header .buchdrucker-faqs-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0;
}

/* ── Benefits (ausgeblendet, CSS bleibt für Kompatibilität) ── */
.seabim-benefits {
    background: #e8f4fd;
    border: 2px solid #0066cc;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.seabim-benefits h2 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.benefit-item h3 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ── Inhaltsverzeichnis ────────────────────────────────────── */
.toc {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toc h2 {
    color: var(--e-global-color-text);
    margin-bottom: 15px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.toc-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--e-global-color-text);
}


.toc-item a {
    color: var(--e-global-color-text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.toc-item a:hover {
    color: #004499;
}

.toc-item .faq-count {
    background: var(--e-global-color-text);
    color: white;
    font-size: 0.8rem;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── FAQ-Sektionen ─────────────────────────────────────────── */
.faq-section {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    background: linear-gradient(135deg, #3c513c, #5e513c);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
}

/* ── Accordion ─────────────────────────────────────────────── */
.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: var(--e-global-color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    line-height: 1.4;
}

.accordion-header:hover {
    background: #e8f4fd;
}

.accordion-header.active {
    background: var(--e-global-color-text);
    color: white;
}

.accordion-header span {
    flex-shrink: 0;
    font-size: 0.85rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 2000px;
}

.accordion-body {
    padding: 15px 20px;
    color: #555;
    line-height: 1.6;
}

/* ── Highlight-Formatierung (**fett** im Antworttext) ─────── */
.seabim-highlight {
    background: #fff3cd;
    color: #333;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}

/* ── Back-to-Top-Button ───────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #004499;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .faqs .header h1 {
        font-size: 1.8rem;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header {
        font-size: 0.95rem;
    }
}
