If you were departing the EU on any carrier, or arriving in the EU on a carrier licensed in the EU, you would be entitled to a refund for a delay over 5 hours. Unfortunately, CO is not legally required to refund your money, but LH might be. The code share certainly confuses things.