German giant may lay off thousands