/* Shared motion layer for AEON Coach (/) and the OS dashboard (/os/).
   Bewegungssprache für Aeon, OS und Habits (Corporate, ruhig und präzise):
   - eine Kurve: ease-out cubic-bezier(.23,1,.32,1); Sheets: cubic-bezier(.32,.72,0,1); nie ease-in
   - Dauern: Druck 160 ms, Wechsel 180–220 ms, Karten und Sheets bis 340 ms; der Tagesring 500 ms als einziges langes Element
   - Druck skaliert auf .97, Einstieg 4–6 px nach oben mit Überblendung, Staffel 40 ms, höchstens acht Elemente
   - Häufige Aktionen (Tabwechsel) nur kurz einblenden; Hover nur mit Maus; prefers-reduced-motion nimmt alles Verschieben weg */
:root {
  --aeon-pointer-x: 0px;
  --aeon-pointer-y: 0px;
}

.aeon-route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 30px -18px rgba(0, 0, 0, .8);
  color: rgba(255, 255, 255, .88);
  font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .28s var(--aeon-motion-ease), border-color .28s, background .28s, box-shadow .28s;
}

.aeon-route-link--os {
  position: fixed;
  z-index: 40;
  top: max(18px, env(safe-area-inset-top));
  right: clamp(16px, 3vw, 42px);
}

#login .aeon-route-link--coach {
  position: absolute;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: clamp(14px, 3vw, 30px);
}

.aeon-route-link__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ea1ff;
  box-shadow: 0 0 12px 3px rgba(115, 137, 255, .62);
}

.aeon-route-link:focus-visible {
  outline: 2px solid rgba(158, 177, 255, .95);
  outline-offset: 4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .aeon-route-link:hover {
    transform: translateY(-2px);
    border-color: rgba(176, 190, 255, .45);
    background: linear-gradient(145deg, rgba(129, 148, 255, .24), rgba(255, 255, 255, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 12px 34px -16px rgba(95, 119, 255, .55);
  }
}

@media (max-width: 700px) {
  .aeon-route-link--os { top: max(12px, env(safe-area-inset-top)); right: 12px; }
  .aeon-route-link { min-height: 36px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .aeon-route-link { transition: none; }
}
