/* ==========================================================================
   loader – loading animation QZ-L09 "Punkte" (docs/design/loading_animations)
   Three brand colours in an offset rhythm. Compact enough for buttons, table
   rows and forms. Speed via --q-loader-speed. Reduced motion: static, dimmed.
   ========================================================================== */
.loader {
  --q-loader-speed: 1;
  --loader-size: 10px;
  --loader-gap: 9px;
  --loader-lift: -7px;
  display: inline-flex; align-items: flex-end; gap: var(--loader-gap);
  height: calc(var(--loader-size) * 2); vertical-align: middle;
}
.loader_dot {
  width: var(--loader-size); height: var(--loader-size); border-radius: 50%;
  background: var(--q-highlight-1);
  animation: q-loader-dot calc(1.2s / var(--q-loader-speed)) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.loader_dot:nth-child(2) { background: var(--q-highlight-3); animation-delay: calc(0.15s / var(--q-loader-speed)); }
.loader_dot:nth-child(3) { background: var(--q-highlight-2); animation-delay: calc(0.3s / var(--q-loader-speed)); }

@keyframes q-loader-dot {
  0%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(var(--loader-lift)); opacity: 1; }
}

/* Variants */
.loader_small { --loader-size: 6px; --loader-gap: 5px; --loader-lift: -4px; }
.loader_large { --loader-size: 14px; --loader-gap: 12px; --loader-lift: -10px; }
.loader_on_dark .loader_dot:nth-child(3) { background: var(--q-white); }
/* T242: centred horizontally and vertically – it fills its container (a section's scroll area: the visible part below the
   head) and keeps 48 px around it where the container has no height of its own (dialogs, cards) */
.loader_centered { display: flex; justify-content: center; align-items: center; padding: 48px 0; height: auto; min-height: 100%; box-sizing: border-box; }

/* Boot screen: see components/start_screen.css (start_screen_loader) */

:root[data-motion="reduce"] .loader_dot { animation: none; } /* T236 */
:root[data-motion="reduce"] .loader_dot:nth-child(2) { opacity: .6; }
:root[data-motion="reduce"] .loader_dot:nth-child(3) { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .loader_dot { animation: none; }
  .loader_dot:nth-child(2) { opacity: .6; }
  .loader_dot:nth-child(3) { opacity: .35; }
}
