/* ======================================================================
   Suite switcher (S6, N6). Puls suite shared component, October 2026.
   Visual language of the home nav chips (#topbar nav on puls-muenster.de):
   a rounded groove with pill chips and a 7 to 8 px status dot; the current
   app is the filled pill. 44 px targets. Phones only: on desktop the nav is
   display:none, so desktop layouts stay identical.
   Theme through the custom properties below; ".suite-switch--dark" for the
   dark ZugPuls chrome. Override any --ss-* on the nav in the app css.
   ====================================================================== */
.suite-switch { display: none; }

@media (max-width: 720px), (pointer: coarse) and (max-height: 500px) {
  .suite-switch {
    --ss-groove: rgba(213, 226, 238, 0.58);
    --ss-groove-shadow: inset 0 1px 2px rgba(20, 40, 64, 0.10), inset 0 -1px 0 rgba(255, 255, 255, 0.6);
    --ss-ink: #3a4a5c;
    --ss-cur-bg: #ffffff;
    --ss-cur-ink: #14202c;
    --ss-cur-shadow: inset 0 1.5px 0 #ffffff, 0 1px 2px rgba(20, 40, 64, 0.10), 0 1px 1px rgba(20, 40, 64, 0.06);
    --ss-hover-bg: rgba(255, 255, 255, 0.55);
    --ss-off: #94a3b8;
    --ss-focus: #2563eb;
    --ss-font-size: 14px;
    display: flex;
    gap: 3px;
    padding: 4px;
    margin: 0 auto;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--ss-groove);
    box-shadow: var(--ss-groove-shadow);
  }
  .suite-switch--dark {
    --ss-groove: rgba(255, 255, 255, 0.07);
    --ss-groove-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --ss-ink: rgba(255, 255, 255, 0.78);
    --ss-cur-bg: rgba(255, 255, 255, 0.16);
    --ss-cur-ink: #ffffff;
    --ss-cur-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.35);
    --ss-hover-bg: rgba(255, 255, 255, 0.08);
    --ss-off: #64748b;
    --ss-focus: #93c5fd;
  }
  .suite-switch .ss-chip {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 999px;
    font: inherit;
    font-size: var(--ss-font-size);
    font-weight: 500;
    line-height: 1;
    color: var(--ss-ink);
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
  }
  .suite-switch .ss-chip[aria-current] {
    background: var(--ss-cur-bg);
    color: var(--ss-cur-ink);
    font-weight: 600;
    box-shadow: var(--ss-cur-shadow);
  }
  .suite-switch .ss-chip:focus-visible {
    outline: 2px solid var(--ss-focus);
    outline-offset: 1px;
  }
  .suite-switch .ss-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ss-off);
    transition: background 300ms ease, opacity 300ms ease;
  }
  .suite-switch .ss-dot[data-state="wait"] { opacity: 0.55; }
  .suite-switch .ss-dot[data-tone="good"]   { background: #16a34a; }
  .suite-switch .ss-dot[data-tone="leicht"] { background: #eab308; }
  .suite-switch .ss-dot[data-tone="orange"] { background: #ea580c; }
  .suite-switch .ss-dot[data-tone="bad"]    { background: #dc2626; }
  /* Leezen calm scale (home css "Leezen-Puls tones"): blue for less traffic */
  .suite-switch .ss-dot[data-tone="more"]   { background: #16a34a; }
  .suite-switch .ss-dot[data-tone="usual"]  { background: #6f9b8c; }
  .suite-switch .ss-dot[data-tone="less"]   { background: #8db4de; }
  .suite-switch .ss-dot[data-tone="less2"]  { background: #5288c7; }
  .suite-switch .ss-dot[data-tone="low"]    { background: #2b5594; }
  .suite-switch .ss-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  @media (hover: hover) {
    .suite-switch .ss-chip:not([aria-current]):hover { background: var(--ss-hover-bg); }
  }
  @media (hover: none) {
    .suite-switch .ss-chip:active { background: var(--ss-hover-bg); transform: scale(0.97); }
  }
  @media (prefers-reduced-motion: reduce) {
    .suite-switch .ss-chip, .suite-switch .ss-dot { transition: none; }
    .suite-switch .ss-chip:active { transform: none; }
  }
  @media (max-width: 340px) {
    .suite-switch { --ss-font-size: 13px; }
    .suite-switch .ss-chip { gap: 5px; padding: 0 4px; }
  }
}
