Domestic German applicants need a GPA of 1.3 or better on a scale from 1-6. That’s essentially perfect grades. (For context, the average GPA on exams was between 3.0 and 3.5 at my German high school, and our valedictorian had a GPA of 1.4. The GPA cut-off is a really high bar!)
If you are classified as a foreign applicant (not a German citizen living abroad, or a foreign citizen living in Germany) then the bar is set even higher for you. Even with perfect grades and test scores, your chances of getting into a medical school in Germany are slim as a foreigner. Many many Germans pay $$$ to study medicine abroad because they cannot get one of the coveted free spots in Germany.