Typically, an hour is already enough in Frankfurt. However, there can always be an uncommonly long line or some other issue, and then two hours are better. Your main concern should be that LH typically doesn't wait for connections, and those are often delayed.