Tried it again. Now I disabled DHCP in pi-hole and enabled DHCP in the router. In the router I set the DNS server to pi-hole's IP address. Then internet does not work anymore. So if the pi-hole is my DNS it cannot resolve. I used this guide: How do I configure my devices to use Pi-hole as their DNS server?