You might think it's all fun and games when it comes to sweets and candy; but apparently not so.

There's been a long-running legal battle between Haribo and Lindt Chocolate —and you won't believe why. 

Back in 2012, the gummy bear company decided that the Swiss chocolatier's famous gold-foil chocolate bears too closely resembled its cartoon mascot.

But this week, a federal court judge finally settled the debate.  

"Lindt's sales of bear-shaped chocolates wrapped in a golden foil with a red ribbon is neither a violation of Haribo's 'Gold Bear' trademark nor an illegal imitation of the fruit gum products." 

And Lindt wins!

According to Agence France-Passe, the main argument for Lindt was that the chocolate bears were inspired by another of its successful sellers, the famous gold-foil bunny offered at Easter that also dons a red ribbon around its necks.

The gold bunny was first created in 1952. In comparison, the first batch of Haribo Gold Bears was produced in 1967. 

A German court originally ruled in favour of Haribo before an appeals court countered that verdict by siding with Lindt and stating that the chocolate bears could not be mistaken for Haribo's sweets.

To reach a final verdict, the case was taken to the Federal Court of Justice where Lindt was the ultimate victor.