Link with note sent, however, in these cases you have to be very careful to match the correct commentary to the correct law. Musketier has linked the Bavarian version, which does not have to be identical to the Brandenburg one and, as far as I have checked, it is not.
This ranges from the Building Code to the respective State Building Regulations, special provisions in the building area down to case-by-case decisions – and this is usually not to be clarified here in the forum, but always only with the help of professional planners on site, i.e. building authority, architect, publicly appointed surveyor.
Best regards
Dirk Grafe