Lufthansa posts $1.24B loss