/*
 * info_help – public help page "/hilfe" (T305, reference "Quantiz Atrium Hilfe" 02.10.2026): search, categories,
 * question groups and the empty state. Questions themselves are info_page_faq items; the closing cards are info_page cards.
 * Base components: info_page (section, header, faq, cards, actions), content_link_button.
 *
 * Structure: info_help_intro > info_page_section_header (info_help_title) · info_help_search (_icon · _input · _clear)
 *            info_help > info_help_categories > info_help_category[aria-current] (_icon · _label · _count)
 *                      · info_help_body > info_help_result · info_help_group[data-help-group] (info_help_group_header >
 *                        _icon · _title; info_page_faq > info_page_faq_item > … info_help_answer > info_page_faq_answer ·
 *                        info_help_badge) · info_help_empty (_title · _text)
 */

.info_help_intro { align-items: center; gap: 22px; }
.info_help_title { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.2; color: var(--q-highlight-3); text-align: center; text-wrap: balance; }

/* search */
.info_help_search { width: 100%; max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--q-highlight-4); border-radius: var(--radius-pill); padding: 14px 16px 14px 24px; }
.info_help_search:focus-within { box-shadow: var(--shadow-focus); }
.info_help_search_icon { width: 18px; height: 18px; flex: none; background: url("../../assets/icons/search_dark.svg") center / 17px no-repeat; opacity: .55; }
.info_help_search_input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; outline: none; font: inherit; font-size: var(--fs-16); font-weight: var(--w-light); color: var(--q-dark); }
.info_help_search_input::placeholder { color: var(--q-medium); }
.info_help_search_input::-webkit-search-cancel-button { display: none; }
.info_help_search_clear { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: var(--q-white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.info_help_search_clear[hidden] { display: none; }
.info_help_search_clear::before { content: ""; width: 11px; height: 11px; background: var(--q-dark); -webkit-mask: url("../../assets/icons/close_dark.svg") center / 11px no-repeat; mask: url("../../assets/icons/close_dark.svg") center / 11px no-repeat; }
.info_help_search_clear:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* layout: categories beside the questions */
.info_help { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: clamp(24px, 4vw, 56px); max-width: 1160px; }
.info_help_categories { flex: 1 1 250px; min-width: 0; max-width: 270px; position: sticky; top: calc(var(--info-header-height, 0px) + 24px); z-index: 2; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; }
.info_help_category { flex: none; min-height: 44px; display: flex; align-items: center; gap: 10px; border-radius: var(--radius-pill); padding: 11px 16px; font-size: var(--fs-14); font-weight: var(--w-regular); color: var(--q-highlight-2); text-decoration: none; transition: background var(--dur-fast) ease; }
.info_help_category:hover { background: var(--q-white); color: var(--q-highlight-2); }
.info_help_category:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.info_help_category[aria-current="true"] { background: var(--q-highlight-2); color: var(--q-white); font-weight: var(--w-bold); }
.info_help_category_icon { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / 16px no-repeat; mask: var(--icon) center / 16px no-repeat; }
.info_help_category_label { flex: 1; white-space: nowrap; }
.info_help_category_count { font-size: var(--fs-12); font-weight: var(--w-bold); opacity: .7; }
.info_help_body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.info_help_result { margin: 0; font-size: var(--fs-14); font-weight: var(--w-bold); color: var(--q-highlight-2); }
.info_help_result[hidden], .info_help_group[hidden], .info_help_empty[hidden], .info_page_faq_item[hidden] { display: none; }

/* group of a category */
.info_help_group { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.info_help_group_header { display: flex; align-items: center; gap: 12px; }
.info_help_group_icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--q-white); display: flex; align-items: center; justify-content: center; }
.info_help_group_icon::before { content: ""; width: 18px; height: 18px; background: var(--q-highlight-3); -webkit-mask: var(--icon) center / 18px no-repeat; mask: var(--icon) center / 18px no-repeat; }
.info_help_group_title { margin: 0; font-family: var(--font-display); font-size: var(--fs-22); font-weight: 600; color: var(--q-highlight-2); text-align: left; }
.info_help_answer { display: flex; flex-direction: column; gap: 12px; padding-bottom: 22px; }
.info_help_answer .info_page_faq_answer { padding-bottom: 0; }
.info_help_badge { align-self: flex-start; margin: 0 24px; font-size: var(--fs-12); font-weight: var(--w-bold); color: var(--q-highlight-2); background: rgba(198, 211, 28, .35); border-radius: var(--radius-pill); padding: 5px 12px; text-decoration: none; }
.info_help_badge:hover { color: var(--q-highlight-2); background: rgba(198, 211, 28, .55); }

/* nothing found */
.info_help_empty { background: var(--q-white); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.info_help_empty_title { margin: 0; font-family: var(--font-display); font-size: var(--fs-18); font-weight: 600; color: var(--q-highlight-2); }
.info_help_empty_text { margin: 0; font-size: var(--fs-15); line-height: 1.6; text-wrap: pretty; }

/* narrow: the categories become one horizontally scrolling bar that stays on top */
@media (max-width: 820px) {
  .info_help_categories { max-width: calc(100% + 40px); top: var(--info-header-height, 0px); flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -20px; padding: 10px 20px; background: var(--q-highlight-4); scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
  .info_help_category { padding: 9px 14px; background: var(--q-white); scroll-snap-align: start; }
  .info_help_group { scroll-margin-top: 88px; } /* below the sticky bar of the categories (64 px) */
}
@media print {
  .info_help_search, .info_help_categories { display: none; }
}

/* T564: the keyboard shortcuts use the rows of info_search_keys – inside a foldable item with one column width; note below */
.info_help_answer .info_search_keys_items { padding: 0 24px 14px; }
.info_help_answer .info_search_keys_item { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
@media (max-width: 759px) {
  .info_help_answer .info_search_keys_items { padding: 0 18px 12px; }
  .info_help_answer .info_search_keys_item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
.info_help_group_note { margin: 12px 0 0; font-size: var(--fs-13); line-height: 1.5; text-wrap: pretty; }
