/* Häufige Fragen (/faq) – baut auf site.css auf (Tokens --sp-*, .sp-block, .sp-in, .sp-prose) */
.faq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Suche */
.faq-search { position: relative; display: flex; gap: 0.6rem; max-width: 44rem; margin-top: 2rem; }
.faq-search__icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.faq-search input {
    flex: 1; min-width: 0; min-height: 3.25rem; padding: 0.75rem 1rem 0.75rem 3rem;
    font: inherit; font-size: 1.0625rem; color: var(--text); background: var(--sp-surface);
    border: 1px solid var(--sp-line); border-radius: 6px;
}
.faq-search input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
.faq-search .faq-search__btn { margin-top: 0; }
.faq-search__btn::after { content: none; }

/* Besonders oft gefragt: nummerierte Liste in zwei Spalten */
.faq-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 3.5rem); counter-reset: faq; }
.faq-top li { counter-increment: faq; border-top: 1px solid var(--sp-line); }
.faq-top a { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 0.75rem; padding: 1.1rem 0; color: inherit; text-decoration: none; }
.faq-top a::before { content: counter(faq, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); line-height: 1.3; }
.faq-top__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
.faq-top__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-top: 0.25rem; }
.faq-top a:hover .faq-top__title { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }

/* Themen */
.faq-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
.faq-topic h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.25; }
.faq-topic h3 a { color: var(--text); text-decoration: none; }
.faq-topic h3 a:hover { color: var(--accent); }
.faq-topic__desc { margin: 0.4rem 0 0.75rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.faq-topic ul { list-style: none; margin: 0; padding: 0; }
.faq-topic li { border-top: 1px solid var(--sp-line); }
.faq-topic li a { display: block; padding: 0.6rem 0; color: var(--text); text-decoration: none; line-height: 1.4; }
.faq-topic li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.faq-more, .faq-back { display: inline-block; margin-top: 0.5rem; font-weight: 700; color: var(--accent); text-underline-offset: 0.18em; }

/* Listen (Treffer, Thema, Weitere Fragen) */
.faq-list { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.faq-item { border-top: 1px solid var(--sp-line); }
.faq-item:last-child { border-bottom: 1px solid var(--sp-line); }
.faq-item a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; color: inherit; text-decoration: none; }
.faq-item a::after { content: "→"; position: absolute; right: 0.25rem; top: 1.15rem; color: var(--accent); transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-item a:hover::after { transform: translateX(4px); }
.faq-item__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
.faq-item a:hover .faq-item__title { color: var(--accent); }
.faq-item__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.faq-item__cat { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.faq-empty { color: var(--muted); max-width: var(--sp-measure); }

/* Artikel */
.faq-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.95rem; color: var(--muted); }
.faq-crumbs a { color: var(--accent); font-weight: 600; text-underline-offset: 0.18em; }
.faq-title { max-width: 26ch; }
.faq-updated { margin: 2.5rem 0 0; font-size: 0.875rem; color: var(--muted); }
.faq .sp-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.9rem 1rem; background: var(--sp-tint); border-radius: 6px; font-size: 0.95rem; }
.faq .sp-prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.faq .sp-prose th, .faq .sp-prose td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: top; }

/* Ihre Frage ist nicht dabei? */
.faq-help__box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 10px; color: var(--sp-cream); background: var(--sp-deep);
}
.faq-help__box .sp-h2 { color: var(--sp-surface); margin-bottom: 0.5rem; }
.faq-help__box p { margin: 0; max-width: 46ch; color: color-mix(in srgb, var(--sp-cream) 85%, transparent); }
.faq-help__box .sp-btn { margin-top: 0; }
.faq-help__box .faq-help__guide { margin-top: 0.75rem; }
.faq-help__guide a { color: var(--sp-surface); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
    .faq-top { grid-template-columns: minmax(0, 1fr); }
    .faq-search { flex-direction: column; }
    .faq-search__icon { top: 1.625rem; }
}
@media print { .faq-search, .faq-help { display: none; } }

/* Anleitungs-Bilder und Sprungmarken in Artikeln */
.faq .sp-prose h2[id], .faq .sp-prose h3[id] { scroll-margin-top: 6rem; }
.faq .sp-prose img { display: block; max-width: 100%; height: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--sp-line); border-radius: 10px; box-shadow: 0 6px 24px rgb(0 0 0 / .06); }
.faq .sp-prose img[src*="faq-handy-"] { max-width: min(100%, 320px); }
.faq .sp-prose img[src*="faq-passkey-karte"], .faq .sp-prose img[src*="faq-anmelden-ohne-passwort"], .faq .sp-prose img[src*="faq-konto-passwort-aendern"] { max-width: min(100%, 560px); }
.faq-search-count { color: var(--muted); font-weight: 400; font-size: 0.7em; }
