In Germany, you're required to submit your address of residence to a municipal office. When there's an election, you'll get a notification sent to this address. At your assigned polling station (which, at least for city dwellers, is usually within walking distance), you can just show the notification, no ID required. Or, if you forgot the notification card, you can show your ID, that works, too.