not have all their marbles
Hat der nicht alle Tassen im Schrank?
Is he completely out of his mind?
— Die unendliche Geschichte (1984)
Du hast nicht alle Tassen im Schrank.
You’re off your rocker.
Merkst du nicht, dass die nicht alle Tassen im Schrank hat?
Don't you realize she's not all there?
— The Mermaid (2016)