For example the Engineer Law of Baden-Württemberg states in § 1.1:
(1) The professional title "engineer" may be held by anyone who
1. has successfully completed a course of study in a technical or natural science subject with a standard period of study of at least six semesters, corresponding to at least 180 ECTS credits, at a German state or state-recognised higher education institution, whereby this course of study must be predominantly in the fields of mathematics, information technology, natural sciences and technology, ... [1]
My own interpretation is that not all of these four aspects need to be included equally in a course of study. If the question is of practical importance to you, you should contact the Chamber of Engineers of the respective (federal) state for an authoritative answer.
[1] Original:
(1) Die Berufsbezeichnung »Ingenieurin« oder »Ingenieur« darf führen, wer
1. ein Studium in einer technischen oder naturwissenschaftlichen Fachrichtung mit einer Regelstudienzeit von mindestens sechs Semestern, was mindestens 180 ECTS-Punkten entspricht, an einer deutschen staatlichen oder staatlich anerkannten Hochschule mit Erfolg abgeschlossen hat, wobei dieses Studium überwiegend von den Bereichen Mathematik, Informatik, Naturwissenschaften und Technik geprägt sein muss, ...
[1] Original:
Source: https://www.landesrecht-bw.de/jportal/portal/t/3ba/page/bsba... (in German)