I recently applied for a tourist visa to Morocco from Germany and finally succeeded.
Here is the link to the procedure and required documents. At the end of the page, there is a link to the visa application form which can be downloaded.
One has to send the filled out application form with the supporting documents (not original passport) via post to the consulate. There are three in Germany (Berlin, Frankfurt and Düsseldorf). You need to check which jurisdiction you fall under (which depends on the city you are registered in) and send your application to the corresponding consulate. I made a mistake of sending my application to a different consulate (Berlin) than to Frankfurt and got no response from them.
After about 2 weeks after sending your application, you need to get in touch with them and enquire about when you can collect your visa. They never contacted us and so we were constantly on the phone trying to reach someone at the consulate and finally succeeded and got an appointment for the stamping.
For collecting the visa, you need to go in person to the consulate with you original passport. Apparently from January, 2017 they have stopped sending and receiving the passports via post since there were instances when the passports were lost in transit.