Sorry for the noise. It was a problem with one of the accounts. Now it works as expected. Only one account needed and both cardav and caldav can connect. Tasks also work.