1. There are further limits on the size of harvests, making growing at home pretty much infeasible.
2. German rental law is very restrictive. Essentially, for most purposes, you are the master of the place you inhabit. Such a restriction will probably not be legal and thus non-binding, even if stated in the contract.