Germany's medium-term economic growth prospects weak, however, reflecting long-standing structural challenges, says rating agency