The German Federal Ministry of Health and the Robert Koch-Institut operate a web form which you have to fill out when you enter Germany from a COVID-19 high-risk area.
I had to submit my data, so I took a glimpse at what it does in the background.