You are absolutely right! As already mentioned, my primary concern was initially about the question of what different requirements there are for the owner in a semi-detached house or a two-family house. I did not expect the whole project to be questioned :D
Unfortunately, the distinction is not that clear. Courts only ever issue rulings for the one specific case. The fact is that a semi-detached house (fire separation wall, 2 heating systems, independent house connections, separate billing) does not count as a two-family house with facilitated termination rights. However, a house with 2 identical apartments one above the other does count, i.e. one apartment does not have to be subordinate to the other in practice (I recently even read a case where the terminating landlord lives in the granny flat). How it looks in a dispute if it "visually" is a semi-detached house but, for example, shares a heating system (i.e. joint utility billing) then depends on the judge in each case. Shared facilities such as a drying room, bicycle room, or similar certainly help with the argument.
By the way, I would not rent a semi-detached house or house-like apartment completely without a garden and terrace. Just a terrace and your children running around in the garden in front of the terrace is also not ideal. But – depending on the plot – there is certainly the possibility to place the building so that a "rather small" and a "large" garden result.
If tenancy law plays less of a role (because it is risky anyway). When building a real semi-detached house with a shared plot (whether actual or as a condominium ownership), a 100% mortgage could be taken out on the part to be rented and accordingly less on the owner-occupied part (2 separate loans). This would optimize the interest deduction and would not be based on the calculated percentages of living space and land area.