You can patent “software” even in Germany. Beyond that, you ask the developers to sign an NDA. If your idea is so simple that a developer can just copy it, then it is doubtful it is a billion dollar idea.