score:4
Yes, you can leave the airport. At least, that is true as far as immigration law is concerned; whether you will have time to do so is another question.
In any event, your flight from Greece to Germany is an "internal" Schengen flight, without border controls, so you will clear the Schengen passport check when you arrive in Greece. This would be true even if you had no intention of leaving the airport.