How does the German election system work?

The September 26 election will determine who replaces Chancellor Angela Merkel, who steps down after 16 years in office.