ATLASGAL -- Evolutionary trends in high-mass star formation