Context. The spin evolution of young protostars, surrounded by an accretion disk, still poses problems for observations and theoretical models. In recent studies, the importance of the magnetic star-disk interaction for stellar spin evolution has been elaborated. The accretion disk in these studies, however, is only represented by a simplified model and important features are not considered. Aims. A more realistic representation of the accretion disk is indispensable for a better understanding of the star-disk interaction and the stellar spin evolution. The aim of this study is to investigate the influence of a hydrodynamic disk evolution on the stellar rotational period and vice versa during the accretion phase. Methods. We combined the im...