If the situation warrants an EU261 claim, you would file a claim with the operating carrier from the EU. In this case, LH.
However, since your FRA-ORD flight was posted as ontime, despite of the wait for an open gate, this is not one of those cases where EU261 applies.