German exec jailed 7.5 years for manslaughter after dropping newborn from the window, claiming stress at work led to the accident.
The motive behind Jovanovic's actions was reportedly her fear that motherhood would jeopardise her professional career as a lawyer for a prestigious car brand.
It's complicated. Basically it's illegal, but there's exceptions. The one exception that makes this law very weak, is that it isn't illegal anymore if you got counseling at a place specialised for it.
Rape and medicinic reasons are also exceptions and counseling with the doctor is enough in that case.
It also has to happen in the first 90 days after getting pregnant.
This is a very complicated and backwards way of saying: it's not illegal, you're required to talk to a specialized counselor first though. That's also frankly not an un reasonable requirement.
You also have the option to give up newborns at hospital sites anonymously and safely without any fear of persecution. I would have expected that you would know such a thing if you're smart enough to become a lawyer, this was anything but a rational decision.