Own use
The landlord may give notice only where they genuinely need the dwelling for themselves or a close relative — bound to narrow conditions and notice periods (section 573 BGB), rarely viable for communities of heirs.
German: Eigenbedarf
This explanation is for orientation; German law applies. No legal advice in individual cases.