Death does not automatically end a contract1##
Therefore the landlord’s (and tenant’s through their estate) rights and obligations are unchanged.
I can’t speak for Germany but must jurisdiction’s residential tenancy laws give the landlord and the estate and sometimes co-tenants the right to give notice upon death of a tenant.
1 Except for personal services contracts where the service must be performed by the contracted party personally e.g. employment contracts.