/* Redesign — FAQ views (Faqs/index, Faqs/show, faq module partial).
   Loaded via __css('pages/redesign-faq').
   Card look mirrors the FAQ cards from webroot/redesign/branche-erste-hilfe.html.
   All rules are scoped with body:not(.controller-handbuch) so the Handbuch
   (config 2332, styled via kutego.css/documentation.css) keeps its legacy look. */

/* ---------- Category block ---------- */
body:not(.controller-handbuch) .faq-category { margin-bottom: 44px; }
body:not(.controller-handbuch) .faq-category h2.highlight {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.1;
    margin: 0 0 18px;
    background: none;
}
body:not(.controller-handbuch) .faq-category h2.highlight a {
    color: var(--muted);
    margin-left: 10px;
    text-decoration: none;
}
body:not(.controller-handbuch) .faq-category h2.highlight a:hover { color: var(--blue-dark); }

/* ---------- Question/answer cards (Faqs/_item.tpl.php) ---------- */
body:not(.controller-handbuch) .faq-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--sh-sm);
    padding: 26px 26px 24px;
    margin-bottom: 20px;
}
body:not(.controller-handbuch) .faq-card h3.faq-headline {
    font-size: 1.08rem;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 10px !important;
    scroll-margin-top: 110px;
}
body:not(.controller-handbuch) .faq-card h3.faq-headline a {
    color: var(--muted);
    text-decoration: none;
}
body:not(.controller-handbuch) .faq-card h3.faq-headline a:hover { color: var(--blue-dark); }
body:not(.controller-handbuch) .faq-card p,
body:not(.controller-handbuch) .faq-card li {
    color: var(--text-mid);
    font-size: .96rem;
    line-height: 1.6;
}
body:not(.controller-handbuch) .faq-card p { margin: 0 0 12px; }
body:not(.controller-handbuch) .faq-card p:last-child { margin-bottom: 0; }
body:not(.controller-handbuch) .faq-card img { border-radius: 14px; }
body:not(.controller-handbuch) .faq-card a { color: var(--blue-dark); }
body:not(.controller-handbuch) .faq-card > div { scroll-margin-top: 110px; }

/* check-icon lists produced by parseFaqText() (styles.css no longer loaded) */
body:not(.controller-handbuch) .faq-card ul.check-icons {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
body:not(.controller-handbuch) .faq-card ul.check-icons li {
    position: relative;
    padding: 4px 0 4px 26px;
}
body:not(.controller-handbuch) .faq-card ul.check-icons li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--yellow);
    font-size: .8rem;
}

/* ---------- Accordion variant (Faqs/show.tpl.php outside root/handbuch) ----------
   Landing pages style this via .faq-module in redesign-landingpage.css — those
   embeds are excluded via :not(.faq-module *) so their look stays untouched;
   these rules cover module embeds outside the landing page context. */
body:not(.controller-handbuch) .accordion-clean .card:not(.faq-module *) {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--sh-sm);
    padding: 22px 26px;
    margin-bottom: 16px;
}
body:not(.controller-handbuch) .accordion-clean .card-header:not(.faq-module *) {
    background: none;
    border: none;
    padding: 0;
}
body:not(.controller-handbuch) .accordion-clean .card-header a.card-title:not(.faq-module *) {
    display: block;
    font-family: var(--f-body-bold);
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    padding: 0;
    text-align: left;
    white-space: normal;
}
body:not(.controller-handbuch) .accordion-clean .card-body:not(.faq-module *) {
    padding: 12px 0 0;
    color: var(--text-mid);
    font-size: .96rem;
    line-height: 1.6;
}
