Stepping-into-the-shoes principle
On a gratuitous acquisition, the heirs take over the deceased person’s acquisition data. For the speculation period their purchase date counts, not the inheritance.
German: Fußstapfentheorie
This explanation is for orientation; German law applies. No legal advice in individual cases.