German chancellor Friedrich Merz promised to lead Germany out of the political drift of recent years.