How exactly invoices have to be issued and what the requirements are for being able to claim sales tax from electronically issued invoices is a closed book for many people.
Now there is a document that answers all the questions about all the EU countries at once and also provides guidance on the relevant, often country-specific, standards. The PDF can be found here.
The comments and tables on Germany start on page 66 .
Have fun working through 😉