Pandemic, inflation weaken German consumer sentiment