:
There is an obligation on one side to attach to an existing firewall of the neighbor, i.e., closed construction (like a semi-detached house), therefore no boundary distance to this neighbor. Hence, on this property, a building up to about 9.30m wide can be constructed if the clearance distance to the other neighbor is observed on one side.
:
The minimum distance is standardized at 3m, i.e., even if your explicitly calculated clearance is only 2.xx m, the 3m minimum distance must be maintained. In areas without a development plan, the wording stated in the state building code applies, or one must/may adapt to the local conditions in these areas. This goes so far that the standardized distances can also be undercut if it is customary locally. For this, however, you should definitely consult your architect/building planner, who is familiar with the local regulations and—especially in such cases—with the general attitude of the building authority or the responsible officer.
Roughly speaking, you are correct, see State Building Code BY,
(4) The depth of the clearance distances is 1 H, at least 3 m.
In core areas, a depth of 0.50 H, at least 3 m, is sufficient; in commercial and industrial areas a depth of 0.25 H, at least 3 m.
In special areas that are not used for recreation, smaller depths than according to sentence 1, but not less than 3 m, may be permitted if the use of the special area justifies this.
If your house is located in a core area, you may calculate the clearance distance with a factor of 0.5, which would be 4m x 0.5 = 2m. Then the minimum distance of 3m applies, i.e., the building body could even be 9.30m wide if no other conditions oppose it.
Best regards
Dirk Grafe