/* ==========================================================================
   info_stage – the stage of the public info pages (T668, reference 21.11.2026
   "Quantiz Atrium Produkt" / "Atrium Themenseite", hero "Bühne").
   A photo over the whole width and at least the height of the window below the
   header; a navy shade from the bottom and the left; the text in white at the
   bottom left (badge, pretext, H1, lead, actions – the second action as glass).
   Product page (info_stage_product, info_stage_carousel): the motifs of the slot
   hero-stage cross-fade (900 ms), the current one zooms slowly (Ken Burns, the
   interval plus 600 ms); below the text the tabs – progress line (fills over
   the interval), number, name, short text – and the round button
   "Bildwechsel anhalten / fortsetzen" (info.js initStage).
   Topic pages (info_stage_topic): one photo that zooms once (14 s), the
   breadcrumbs on it in white.
   prefers-reduced-motion: no zoom, no cross-fade animation.
   ========================================================================== */
.info_stage {
  --info-stage-interval: 6000ms;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: max(480px, calc(100svh - var(--info-header-height, 82px) - 12px));
  background: var(--q-highlight-2); color: var(--q-white);
}
.info_stage_images { position: absolute; inset: 0; z-index: 0; }
.info_stage_image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; visibility: hidden; transition: opacity 900ms var(--ease-std), visibility 900ms;
}
.info_stage_image_current { opacity: 1; visibility: visible; animation: info_stage_zoom calc(var(--info-stage-interval) + 600ms) linear forwards; }
.info_stage_topic .info_stage_image_current { animation-duration: 14s; }
@keyframes info_stage_zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.info_stage_shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(16, 49, 78, .88) 0%, rgba(16, 49, 78, .55) 38%, rgba(16, 49, 78, .12) 70%, rgba(16, 49, 78, 0) 100%),
    linear-gradient(90deg, rgba(16, 49, 78, .45) 0%, rgba(16, 49, 78, 0) 60%);
}
.info_stage_topic .info_stage_shade {
  background: linear-gradient(to top, rgba(16, 49, 78, .88) 0%, rgba(16, 49, 78, .55) 40%, rgba(16, 49, 78, .12) 72%, rgba(16, 49, 78, .3) 100%),
    linear-gradient(90deg, rgba(16, 49, 78, .45) 0%, rgba(16, 49, 78, 0) 60%);
}

/* body: text at the bottom left, the tabs below ------------------------------- */
.info_stage_body {
  position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: 1320px; margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) clamp(20px, 5vw, 72px) clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: clamp(28px, 5vh, 56px); pointer-events: none;
}
.info_stage_topic .info_stage_body { flex: 1; justify-content: flex-end; padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 64px); }
.info_stage_text { display: flex; flex-direction: column; gap: 20px; max-width: 720px; pointer-events: auto; }
.info_stage_topic .info_stage_text { max-width: 760px; }
.info_stage_brand { display: flex; align-items: center; gap: 12px; }
.info_stage_badge { width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; color: var(--q-highlight-2); }
.info_stage_signet { width: 30px; height: 30px; }
.info_stage_badge .info_page_icon { width: 22px; height: 22px; -webkit-mask-size: 22px; mask-size: 22px; }
.info_stage_pretext { font-size: var(--fs-12); font-weight: var(--w-bold); letter-spacing: .10em; text-transform: uppercase; color: var(--q-white); }
.info_stage_title {
  margin: 0; font-family: var(--font-display); font-size: clamp(40px, 6vw, 76px); font-weight: 600; line-height: 1.08; color: var(--q-white);
  text-wrap: balance; text-shadow: 0 0 12px rgba(0, 0, 0, .2);
}
.info_stage_topic .info_stage_title { font-size: clamp(34px, 5vw, 64px); line-height: 1.1; }
.info_stage_lead { margin: 0; max-width: 600px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--q-white); text-wrap: pretty; text-shadow: 0 0 12px rgba(0, 0, 0, .2); }
.info_stage_topic .info_stage_lead { max-width: 620px; }
.info_stage_actions { margin-top: 4px; }
/* the second action as glass on the photo */
.info_page_action.info_stage_action_glass {
  border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); color: var(--q-white);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color 300ms ease;
}
.info_page_action.info_stage_action_glass:hover, .info_page_action.info_stage_action_glass:focus-visible { border-color: var(--q-white); color: var(--q-white); }

/* breadcrumbs on the photo (topic pages) ------------------------------------- */
.info_stage_breadcrumbs { position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: 1320px; margin: 0 auto; padding: 18px clamp(20px, 5vw, 72px) 0; align-self: center; order: -1; }
.info_stage_breadcrumbs .breadcrumbs_item_link, .info_stage_breadcrumbs .breadcrumbs_item_current { color: var(--q-white); }
.info_stage_breadcrumbs .breadcrumbs_item_link:hover { color: var(--q-highlight-1); }
.info_stage_breadcrumbs .breadcrumbs_item_current { font-weight: 300; }
.info_stage_breadcrumbs .breadcrumbs_item:not(:last-child)::after { background: rgba(255, 255, 255, .6); }

/* tabs of the motifs (product page) ------------------------------------------- */
.info_stage_controls { display: flex; align-items: flex-end; gap: 12px; pointer-events: auto; }
.info_stage_tabs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.info_stage_tab {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0 0 4px; border: none; background: transparent; cursor: pointer;
  text-align: left; color: var(--q-white); font: inherit; opacity: .72; transition: opacity 300ms ease; border-radius: 4px;
}
.info_stage_tab:hover, .info_stage_tab[aria-selected="true"] { opacity: 1; }
.info_stage_tab:focus-visible { outline: 2px solid var(--q-white); outline-offset: 4px; opacity: 1; }
.info_stage_tab_progress { position: relative; display: block; width: 100%; height: 3px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .3); overflow: hidden; }
.info_stage_tab_fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: var(--radius-pill); background: var(--q-highlight-1); }
/* without the change (no JavaScript, paused, reduced motion) the current tab is full */
.info_stage_tab[aria-selected="true"] .info_stage_tab_fill { width: 100%; }
.info_stage_running .info_stage_tab[aria-selected="true"] .info_stage_tab_fill { width: 0; animation: info_stage_fill var(--info-stage-interval) linear forwards; }
@keyframes info_stage_fill { from { width: 0; } to { width: 100%; } }
/* a hidden browser tab holds the time and the zoom */
.info_stage_hidden .info_stage_tab_fill, .info_stage_hidden .info_stage_image_current { animation-play-state: paused; }
.info_stage_tab_head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.info_stage_tab_number { font-family: var(--font-display); font-size: var(--fs-13); font-weight: var(--w-bold); color: var(--q-highlight-1); }
.info_stage_tab_label { font-size: 15px; font-weight: var(--w-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info_stage_tab_text { font-size: var(--fs-13); line-height: 1.4; color: var(--q-white); text-wrap: pretty; }
.info_stage_toggle {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--q-white); padding: 0; transition: background 300ms ease;
}
.info_stage_toggle[hidden] { display: none; }
.info_stage_toggle:hover { background: rgba(255, 255, 255, .3); }
.info_stage_toggle:focus-visible { outline: 2px solid var(--q-white); outline-offset: 3px; }
.info_stage_toggle_icon { width: 16px; height: 16px; background: currentColor; -webkit-mask: url("../../assets/icons/audio_pause_dark.svg") center / 16px no-repeat; mask: url("../../assets/icons/audio_pause_dark.svg") center / 16px no-repeat; }
.info_stage_paused .info_stage_toggle_icon { -webkit-mask-image: url("../../assets/icons/audio_play_dark.svg"); mask-image: url("../../assets/icons/audio_play_dark.svg"); }

/* smartphone: the text keeps room, the tabs show the name only ------------------- */
@media (max-width: 719px) {
  .info_stage_body { padding-top: clamp(96px, 14vh, 140px); }
  .info_stage_tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .info_stage_tab_text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .info_stage_image { transition: none; }
  .info_stage_image_current { animation: none; }
}
