As far as I know, the attacker in munich (unlike the guy in Würzburg) was neither a nazi, nor a islamist. He was just sick, and attracted to mass murderers. That's why he adored the murderer from norway.
German gun laws are pretty complex and sometimes just weird. I'll write a little on that topic, when I have some time left.