A Federal President is not obliged by constitution to refrain from political views.
The Federal President does have a role in the political system, especially at the establishment of a new government and the dissolution of the Bundestag (parliament).