The law is rather complex (as is German tradition), but basically it legalizes cannabis social clubs, personal use with limited possession, and limited personal production (3 flowering plants at a time).
Here are all the 183 pages: https://www.bundesgesundheitsministerium.de/fileadmin/Dateie...