There are numerous places on the internet where you can legally download e-books. Here are some of them:
The oldest and biggest collection of free e-books is Project Gutenberg
The german version one canm find on https://www.projekt-gutenberg.org/
http://www.deutschestextarchiv.de/