National legal basis
Trans-European Railway Interoperability Regulation
The EU Member States are obliged to transpose the EU directives into national law. In Germany, the Directive (EU) 2016/797 was conveyed into "Regulation on railway authorisation for placing in service" (EIGV).
EIGV
Regulation on railway authorisation for placing in service
AEG
General Railway Law