I was afraid, confused and frightened, as any reasonable person in the situation when my home was broken into when I was asleep.
33 StGB
Whoever exceeds the limits of self-defence due to confusion, fear or fright incurs no penalty.
The other legalese is literally making sure noone tries to use it as an excuse to "pre-emptively" maliciously defend themselves by shooting, idk, e.g. all the gingers, or shoots a child for stealing an apple from your orchard.
Heck, even shooting your stalker could be considered justified self defense under German law.