In Star Alliance,
operating metal counts, not the marketing carrier. Lufthansa and Continental, respectively. So you're awarded miles, regardless of what the marketing carrier sells, based on the operating carrier's fare codes. Not saying it's right or wrong, but that's *A.
You were sold an L fare ticket on
Lufthansa, not Continental. Lufthansa fares earn according to
this table.