/* ==========================================================================
   info_header – shared header of the public pages (reference "Atrium
   Infoseiten Kopfzeile"): manufacturer logo | signet + "Atrium"
   (brand_lockup), navigation, controls ("Anmelden" ghost, call to action
   lime, optional hint).
   T523 (reference 01.11.2026, menu "mega"): the navigation is the trigger
   "Produkt" (info_header_menu_control – navy on the product and every topic
   page, grey while open, chevron turns) followed by "Preise" and "Hilfe"
   (pills, current page navy). The trigger opens the overview of all pages
   below the header (info_header_panel – white, radius 0 0 40 40, over a
   blurred backdrop info_header_backdrop): product card, "Funktionen" (topics
   with icon, title, text and their deepenings), "Auf dieser Seite",
   "Service", call to action. Compact (< 940 px): trigger "Menü" at the right,
   no "Preise" and "Hilfe" in the row (they are in the overview). Narrow
   (< 720 px): no manufacturer logo, smaller paddings. Replaces the overflow
   menu "⋯" (T384). T488 stays (deviation from the reference, which moves
   "Anmelden" into the overview below 940 px): "Anmelden" stays in the row –
   info.js takes the first step that fits: round symbol
   (info_header_login_compact), the signet without "Atrium"
   (info_header_brand_compact), only then "Anmelden" in the overview alone
   (info_header_login_in_menu).
   T329: sticky at the top of the window; info.js keeps --info-header-height
   (offset of anchors and the help categories) and marks info_header_stuck
   (soft shadow) once the page has scrolled.
   ========================================================================== */
html:has(.info_header) { --info-header-height: 82px; scroll-padding-top: var(--info-header-height); }
.info_header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 18px 28px; border-bottom: 1px solid var(--q-bright); background: var(--q-white); }
.info_header { transition: box-shadow var(--dur-base) ease; }
.info_header_stuck { box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .20); }
.info_header_brand { flex: none; gap: 18px; text-decoration: none; }
.info_header_brand .brand_lockup_manufacturer { height: 40px; }
.info_header_brand .brand_lockup_divider { height: 32px; }
.info_header_brand .brand_lockup_title { font-size: 20px; }
.info_header_brand .brand_lockup_signet + .brand_lockup_title { margin-left: -8px; } /* signet and name: 10 px apart */

/* Navigation: trigger, then "Preise" and "Hilfe" */
.info_header_nav { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: safe center; gap: 4px; }
.info_header_nav_items { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; min-width: 0; }
.info_header_nav_entry { flex: none; display: flex; }
.info_header_nav_item { white-space: nowrap; padding: 12px 14px; border-radius: var(--radius-pill); font-size: var(--fs-14); font-weight: var(--w-medium, 500); color: var(--q-dark); text-decoration: none; transition: background var(--dur-fast) ease, color var(--dur-fast) ease; }
.info_header_nav_item:hover { background: var(--q-highlight-4); color: var(--q-highlight-2); }
.info_header_nav_item_current, .info_header_nav_item_current:hover { background: var(--q-highlight-2); color: var(--q-white); font-weight: var(--w-bold); }
.info_header_nav_item:focus-visible, .info_header_menu_control:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.info_header_menu_control {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border: none; border-radius: var(--radius-pill); cursor: pointer;
  font: inherit; font-size: var(--fs-14); font-weight: var(--w-medium, 500); color: var(--q-dark); background: transparent; transition: background var(--dur-base) ease, color var(--dur-base) ease;
}
.info_header_menu_control:hover, .info_header_menu_control[aria-expanded="true"] { background: var(--q-highlight-4); color: var(--q-highlight-2); }
.info_header_menu_control_current, .info_header_menu_control_current:hover, .info_header_menu_control_current[aria-expanded="true"] { background: var(--q-highlight-2); color: var(--q-white); font-weight: var(--w-bold); }
.info_header_menu_control_label_compact { display: none; }
.info_header_menu_control_icon { width: 10px; height: 10px; flex: none; background: currentColor; -webkit-mask: url("../../assets/icons/arrow_down_dark.svg") center / 10px no-repeat; mask: url("../../assets/icons/arrow_down_dark.svg") center / 10px no-repeat; transition: transform var(--dur-base) var(--ease-std); }
.info_header_menu_control[aria-expanded="true"] .info_header_menu_control_icon { transform: rotate(180deg); }

/* The overview below the header (absolute to the sticky header) and the blurred backdrop over the page */
.info_header_backdrop { position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(16, 49, 78, .16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.info_header_panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 32px) clamp(14px, 3vw, 28px) clamp(22px, 3vw, 36px); border-top: 1px solid var(--q-bright); border-radius: 0 0 40px 40px;
  background: var(--q-white); box-shadow: 0 12px 12px -6px rgba(0, 0, 0, .2); animation: q-fade 150ms var(--ease-out);
}
.info_header_backdrop[hidden], .info_header_panel[hidden] { display: none; }
.info_header_panel_body { max-width: 1264px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(16px, 2.4vw, 32px); }
.info_header_panel_intro { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 32px; background: var(--q-highlight-4); }
.info_header_panel_brand .brand_lockup_signet { width: 36px; height: 36px; }
.info_header_panel_brand .brand_lockup_title { font-size: 20px; }
.info_header_panel_text { margin: 0; font-size: var(--fs-14); line-height: 1.5; color: var(--q-dark); text-wrap: pretty; }
.info_header_panel_product { align-self: flex-start; border-color: var(--q-white); background: var(--q-white); }
.info_header_panel_product:hover { border-color: var(--q-highlight-2); }
.info_header_panel_product_current { border-color: var(--q-highlight-1); }
.info_header_panel_group { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.info_header_panel_group_features { flex: 2.6 1 460px; }
.info_header_panel_group_aside { flex: 1 1 200px; }
.info_header_panel_title { margin: 0 12px; font-size: var(--fs-12); font-weight: var(--w-bold); letter-spacing: .10em; text-transform: uppercase; color: var(--q-highlight-2); }
.info_header_panel_items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 4px 12px; }
.info_header_panel_service { grid-template-columns: 1fr; gap: 2px; }
.info_header_panel_item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* entry of a topic: icon well, title, text – the current one grey with a lime well */
.info_header_panel_link { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 24px; color: var(--q-highlight-2); text-decoration: none; transition: background-color var(--dur-fast) ease; }
.info_header_panel_link:hover, .info_header_panel_link_current { background: var(--q-highlight-4); color: var(--q-highlight-2); }
.info_header_panel_link_icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--q-highlight-4); color: var(--q-highlight-2); display: flex; align-items: center; justify-content: center; }
.info_header_panel_link_icon .info_page_icon { width: 18px; height: 18px; -webkit-mask-size: 18px; mask-size: 18px; }
.info_header_panel_link_current .info_header_panel_link_icon { background: var(--q-highlight-1); }
.info_header_panel_link_text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.info_header_panel_link_title { font-family: var(--font-display); font-size: var(--fs-16); font-weight: 600; line-height: 1.3; color: var(--q-highlight-2); }
.info_header_panel_link_description { font-size: var(--fs-13); font-weight: var(--w-light); line-height: 1.45; color: var(--q-dark); text-wrap: pretty; }
/* variant: one line with a smaller well ("Service") */
.info_header_panel_link_compact { align-items: center; gap: 12px; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: 20px; }
.info_header_panel_link_compact .info_header_panel_link_icon { width: 34px; height: 34px; }
.info_header_panel_link_compact .info_header_panel_link_icon .info_page_icon { width: 16px; height: 16px; -webkit-mask-size: 16px; mask-size: 16px; }
.info_header_panel_link_compact .info_header_panel_link_title { font-family: inherit; font-size: var(--fs-14); font-weight: var(--w-bold); }
.info_header_panel_link_compact.info_header_panel_link_current { background: none; } /* the current page: only the lime well */
.info_header_panel_link_compact:hover { background: var(--q-highlight-4); }

/* small links: deepenings below a topic (indented under its text) and "Auf dieser Seite" */
.info_header_panel_subitems { list-style: none; margin: 0 0 6px 66px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.info_header_panel_anchors { margin: 0 0 10px; }
.info_header_panel_sublink { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; border-radius: 16px; font-size: var(--fs-13); font-weight: var(--w-bold); color: var(--q-highlight-2); text-decoration: none; transition: background-color var(--dur-fast) ease; }
.info_header_panel_sublink:hover, .info_header_panel_sublink_current { background: var(--q-highlight-4); color: var(--q-highlight-2); }
.info_header_panel_sublink_icon { width: 14px; height: 14px; flex: none; background: var(--q-highlight-3); -webkit-mask: var(--icon) center / 14px no-repeat; mask: var(--icon) center / 14px no-repeat; }
.info_header_panel_anchors .info_header_panel_sublink_icon { -webkit-mask-size: 10px; mask-size: 10px; }
.info_header_panel_sublink_current .info_header_panel_sublink_label { box-shadow: inset 0 -2px 0 var(--q-highlight-1); }
.info_header_panel_link:focus-visible, .info_header_panel_sublink:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.info_header_panel_cta { align-self: flex-start; margin: 8px 0 0 6px; }

.info_header_controls { flex: none; display: flex; align-items: center; gap: 10px; }
.info_header_hint { font-size: var(--fs-13); color: var(--q-dark); white-space: nowrap; }
.info_header_login { border-color: var(--q-medium); }
.info_header_login .content_link_button_icon { width: 14px; height: 14px; }
.info_header_login_short { display: none; }

/* compact: "Menü" at the right, "Preise", "Hilfe", "Anmelden" only in the overview */
@media (max-width: 939px) {
  .info_header_nav { justify-content: flex-end; }
  .info_header_menu_control_label { display: none; }
  .info_header_menu_control_label_compact { display: inline; }
  .info_header_nav_items, .info_header_hint { display: none; }
}
/* narrow: no manufacturer logo, smaller paddings */
@media (max-width: 719px) {
  html:has(.info_header) { --info-header-height: 73px; }
  .info_header { gap: 10px; padding: 14px 16px; }
  .info_header_brand { gap: 10px; }
  .info_header_brand .brand_lockup_manufacturer, .info_header_brand .brand_lockup_divider { display: none; }
  .info_header_brand .brand_lockup_signet + .brand_lockup_title { margin-left: 0; font-size: 18px; }
  .info_header_controls { gap: 8px; }
  .info_header_menu_control { padding: 11px 12px 11px 14px; }
  .info_header_cta { padding-left: 12px; padding-right: 12px; }
  .info_header_login_short + .info_header_login_label, .info_header_login:has(.info_header_login_short) .info_header_login_label { display: none; }
  .info_header_login:has(.info_header_login_short) .info_header_login_short { display: inline; }
  .info_header_panel { border-radius: 0 0 28px 28px; }
  .info_header_panel_intro { border-radius: 28px; }
}
/* T488 (set by info.js only when the row does not fit): "Anmelden" as a round symbol – the label stays its accessible
   name (font-size 0 as content_link_button_collapsible) and the title –, then the signet without "Atrium", at last
   "Anmelden" only in the overview ("Service") */
.info_header_login_compact .info_header_login { flex: none; width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; gap: 0; font-size: 0; justify-content: center; border-radius: var(--radius-circle); }
.info_header_login_compact .info_header_login .content_link_button_icon { width: 16px; height: 16px; }
.info_header_brand_compact .info_header_brand .brand_lockup_title { display: none; }
.info_header_login_in_menu .info_header_login { display: none; }
@media (prefers-reduced-motion: reduce) { .info_header_panel { animation: none; } .info_header_menu_control_icon { transition: none; } }
@media print { .info_header { position: static; box-shadow: none; } .info_header_panel, .info_header_backdrop { display: none; } }
