Angela Merkel will leave office as one of modern Germany's longest-serving leaders and a global diplomatic heavyweight, with a legacy defined by her management of a succession of crises that shook a fragile Europe rather than any grand visions for her own country.