   /* ══════════════════════════════════════════════════════════════════
   FAQ – ÜBERSICHTSSEITE
   Ergänzung für pforte-bestattungsart-konfessionsart.css
   ══════════════════════════════════════════════════════════════════ */

/* ── VARIABLEN ───────────────────────────────────────────────── */
:root {
    --text-primary:   #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-muted:     #8a8a8a;
    --bg-primary:     #fafafa;
    --bg-secondary:   #f2f2f2;
    --bg-card:        #ffffff;
    --accent-main:    #5c7a6e;
    --accent-light:   #7a9e8f;
    --accent-dark:    #3d5248;
    --accent-sage:    #5c7a6e;
    --border-light:   #e2e2e2;
    --accent-warm:    #c4956a;
    --shadow-card:    0 2px 8px rgba(0,0,0,0.07);
    --shadow-hover:   0 8px 28px rgba(0,0,0,0.13);
    --transition:     0.25s ease;
    --radius:         8px;
}

/* ── HEADER ──────────────────────────────────────────────────── */

.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}



.logo {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
}
.logo span { color: var(--accent-warm); }



.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover { color: var(--accent-sage); }

.btn {
    padding: 8px 8px;
    background: var(--accent-sage);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background var(--transition);
    white-space: nowrap;
}

.btn:hover { background: #6a7f6e; }

.btn {
    padding: 8px 8px;
    background: var(--accent-sage);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background var(--transition);
    white-space: nowrap;
}

.btn:hover { background: #6a7f6e; }





/* ── BURGER ──────────────────────────────────────────────────── */
.burger { display: none; }

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .header-inner { position: relative; }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
        z-index: 10;
        background: none;
        border: none;
    }

    /* .btn { display: none; } */

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-light);
        gap: 4px;
        z-index: 100;
    }

    .nav.open { display: flex; }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 16px;
    }

    .nav-link:last-child { border-bottom: none; }
}














.faq-hero {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    padding: 25px 20px 20px;
    text-align: center;
    color: white;
}

.faq-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.faq-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.faq-search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 8px;
    position: relative;
}




.faq-search-input {
    width: 100%;
    padding: 20px 60px 20px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    outline: none;
}

.faq-search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #666;
}

.faq-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    margin-top: 10px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.faq-autocomplete.active {
    display: block;
}

.faq-ac-item {
    padding: 15px 20px;
    border-bottom: 1px solid #E0E0E0;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-ac-item:hover {
    background: #F5F5F5;
}

.faq-ac-item:last-child {
    border-bottom: none;
}

.faq-ac-cat {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 3px;
}

.faq-ac-question {
    font-weight: 600;
    color: #333;
}

.faq-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 10px;
}

.faq-section {
    margin-bottom: 10px;
}






.faq-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #1A1A1A;
    text-align: center;
    margin: 0 0 30px;
    padding-bottom: 16px;
    position: relative;

}
.faq-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #D84315, #F4511E);
    border-radius: 2px;
}


.faq-section-title a {
    color: #1A1A1A;
    text-decoration: none;
}


@media (max-width: 768px) {
    .faq-section-title {
        font-size: 1.3rem; /* ~20px */
    }
}







.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.faq-box {
    background: white;
    border: 3px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.faq-box:hover {
    border-color: #546E7A;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.faq-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #D84315 0%, #F4511E 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.faq-box:hover::before {
    opacity: 1;
}

.faq-box {
    display: block;
    text-decoration: none;
    color: inherit;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding-right: 30px;
}

.faq-preview {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: #546E7A;
    opacity: 0.5;
}

.faq-cat-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #F5F5F5;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
}









/* ── Sidebar Wrapper ─────────────────────────────── */
.faq-sidebar {
    width: auto;
    flex-shrink: 0;
}

/* ── Haupt-Kategorien (kat_id, kat_id2, kat_id3) ── */
.faq-sidebar-main {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.faq-sidebar-main-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 14px;
}


.faq-main-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #F5F5F5;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.faq-main-cat:last-child {
    margin-bottom: 0;
}

.faq-main-cat:hover {
    background: #EEF4F6;
    border-color: #546E7A;
}

.faq-main-cat.active {
    background: #EEF4F6;
    border-color: #546E7A;
}

.faq-main-cat-emoji {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.faq-main-cat-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}












/* Wrapper: nicht mehr Grid, sondern Spalten nebeneinander */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Gruppe */
.faq-sidebar-group {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px;
}

/* Gruppen-Titel */
.faq-sidebar-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #546E7A;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F0F0F0;
}

/* Links innerhalb der Gruppe */
.faq-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Kompakte Karte */
.faq-cat-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
    border: none;
    background: transparent;
}

.faq-cat-card:hover {
    background: #F5F5F5;
}

.faq-cat-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.faq-cat-title {
    font-size: 0.83rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}





.faq-cat-count {
    font-size: 0.72rem;
    color: #999;
    margin-left: auto;
    flex-shrink: 0;
}





.faq-detail-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.faq-detail-main {
    min-width: 0;
}

.faq-sidebar {
    position: sticky;
    top: 80px;
}










.faq-quick-links {
    background: #F8F8F8;
    padding: 60px 20px;
    margin-top: 60px;
}

.faq-quick-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-quick-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.faq-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.faq-quick-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.faq-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faq-quick-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.faq-quick-card a {
    color: #546E7A;
    text-decoration: none;
    font-weight: 600;
}








.faq-detail-hero {
    background: linear-gradient(135deg, #546E7A 0%, #37474F 100%);
    padding: 60px 20px;
    color: white;
}

.faq-detail-breadcrumb {
    max-width: 1000px;
    margin: 0 auto 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.faq-detail-breadcrumb a {
    color: white;
    text-decoration: none;
}

.faq-detail-cat {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.faq-detail-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin: 0 auto;
    /* max-width: 1000px; */
}

.faq-detail-content {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-answer-box {
    background: white;
    border: 4px solid #E0E0E0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
}

.faq-answer-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #D84315 0%, #F4511E 100%);
}

.faq-answer-box h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin: 0 0 20px 0;
}


.faq-answer-box a {
    color: #1A1A1A;
    text-decoration: none;
}






.faq-answer-box p {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.faq-answer-box ul {
    line-height: 1.8;
    color: #444;
    margin: 15px 0;
}

.faq-related {
    margin-top: 60px;
}

.faq-related-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.faq-related-card {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-related-card:hover {
    border-color: #546E7A;
    transform: translateY(-3px);
}

.faq-related-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.faq-related-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.faq-back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #546E7A;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.faq-back-btn:hover {
    background: #37474F;
}


.faq-answer-legal {
    font-size: .72rem;
    margin-top: 10px;
}




.faq-sidebar-contact {
    background: linear-gradient(135deg, #546E7A 0%, #37474F 100%);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    color: white;
    margin-bottom: 16px;
}

.faq-sidebar-contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.faq-sidebar-contact h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.faq-sidebar-contact p {
    font-size: 0.83rem;
    opacity: 0.88;
    line-height: 1.55;
    margin-bottom: 16px;
}

.faq-sidebar-contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #546E7A;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.faq-sidebar-contact-btn:hover {
    background: #F0F4F5;
    transform: translateY(-1px);
}






.faq-legal-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-left: 4px solid #FFC107;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #5D4037;
    line-height: 1.55;
}

.faq-legal-hint i {
    color: #FFC107;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-legal-hint p {
    margin: 0;
}

.faq-legal-hint strong {
    font-weight: 700;
}





/* ── Pagination ─────────────────────────────────────────── */
.faq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.faq-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.faq-page-num,
.faq-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #E0E0E0;
    background: white;
    color: #555;
}

.faq-page-num:hover,
.faq-page-btn:hover {
    background: #F5F5F5;
    border-color: #546E7A;
    color: #333;
}

.faq-page-num.active {
    background: #546E7A;
    border-color: #546E7A;
    color: white;
    font-weight: 700;
    pointer-events: none;
}

.faq-page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.faq-page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 38px;
    color: #999;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .faq-page-num,
    .faq-page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
}













.search-btn {
    width: auto;
    height: auto;
    padding: 4px;

    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.search-btn:hover .faq-search-icon {
    color: #546E7A;
}

.faq-search-icon {
    color: #999;
    font-size: 1.1rem;
    transition: color 0.2s;
}








.faq-jobportal-box {
    background: linear-gradient(135deg, #ddae79 0%, #FFF3E0 100%);
    border-radius: 12px;
    padding: 10px 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.faq-jobportal-box:hover {
    background: linear-gradient(135deg, #ddae79 0%, #FFF3E0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.35);
}

.faq-jobportal-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.faq-jobportal-box h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    line-height: 1.25;
    color: #171718;
    margin-bottom: 5px;
}

.faq-jobportal-box p {
    font-size: 1.1rem;
    color: #171718;
    line-height: 1.55;
    margin: 0;
}

.faq-jobportal-box strong {
    color: #171718;
    font-weight: 800;
}




















.faq-empty-box {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    margin: 20px 0;
}

.faq-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.faq-empty-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.faq-empty-box p {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.65;
    margin-bottom: 24px;
}

.faq-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #546E7A;
    color: white;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.faq-empty-btn:hover {
    background: #455A64;
    transform: translateY(-1px);
}
























@media (max-width: 768px) {
    .faq-detail-question {
        font-size: 1.8rem;
    }
    .faq-answer-box {
        padding: 20px;
    }

    
    .faq-hero h1 {
        font-size: 2rem;
    }
    .faq-grid,
    .faq-categories,
    .faq-quick-grid {
        grid-template-columns: 1fr;
    }

    .faq-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;        /* ← neu */
    }

    .faq-sidebar {
        position: static;  /* kein sticky auf Mobile */
        width: 100%;
    }

    .faq-sidebar-main,
    .faq-sidebar-all,
    .faq-sidebar-contact {
        width: 100%;
    }

    
    .faq-jobportal-box {
        width: 100%;
    }

    .faq-detail-main {
        width: 100%;
    }

}