Jurgen Klopp has reached an agreement in principle to succeed Julian Nagelsmann as the manager of the German national team.