They may be operated according to the basic concepts of the laws governing associations. Other legal sorts (which include foundations or companies) will not be permissible. Exactly what is prohibited and what is permitted and to what extent? You can find responses to these and various issues from the FAQ https://buyweedonlineingermany.de/where-to-buy-weed-in-germany/