Hamburg relegated from Bundesliga for first time