According to this article a new bill regarding IT security is being planned in Germany.
If this bill is passed it will be illegal to refuse turning over your credentials (e.g. for social media, e-mail, encrypted devices and other accounts) to government agencies, such as the police.
Punishment could be up to six months of coercive detention, no matter whether their allegations are true or not. Just another steps towards the abolishment of the constitutional democracy.
In case you don’t like either handing over your credentials or getting detained I recommend to store sensitive information in a hidden, encrypted volume on an encrypted device. Doing it this way will give you plausible deniability. This is your ultimate “Get Out of Jail Free” card.