A connecting device for releasably connecting two assemblies (4, 5), comprising a first connecting part which includes an engagement opening and a first magnetic element, and a second connecting part which includes an engaging portion and a second magnetic element, wherein the first connecting part and the second connecting part can be connected with each other in that the engaging portion of the second connecting part can be brought into engagement with the engagement opening of the first connecting part in an engagement direction, wherein the first magnetic element and the second magnetic element cooperate in a magnetically attracting manner when the first connecting part and the second connecting part are connected, wherein the engagement opening and the engaging portion have a shape tapering in the engagement direction in a cross-sectional plane defined by the engagement direction and a transverse direction extending transversely to the engagement direction, the first connecting part has a first contact surface at least sectionally delimiting the engagement opening, and the second connecting part has a second contact surface at least sectionally delimiting the engaging portion, wherein in a connected position, in which the engaging portion of the second connecting part is in engagement with the engagement opening of the first connecting part, the first contact surface and the second contact surface face each other, wherein the first contact surface circumferentially extends around the engagement opening of the first connecting part and the second contact surface circumferentially extends around the engaging portion of the second connecting part, characterized in that the first connecting part includes a further engaging portion and/or the second connecting part includes a further engagement opening. a first connecting part which includes an engagement opening and a first magnetic element, and a second connecting part which includes an engaging portion and a second magnetic element, wherein the first connecting part and the second connecting part can be connected with each other in that the engaging portion of the second connecting part can be brought into engagement with the engagement opening of the first connecting part in an engagement direction, wherein the first magnetic element and the second magnetic element cooperate in a magnetically attracting manner when the first connecting part and the second connecting part are connected, wherein the engagement opening and the engaging portion have a shape tapering in the engagement direction in a cross-sectional plane defined by the engagement direction and a transverse direction extending transversely to the engagement direction, the first connecting part has a first contact surface at least sectionally delimiting the engagement opening, and the second connecting part has a second contact surface at least sectionally delimiting the engaging portion, wherein in a connected position, in which the engaging portion of the second connecting part is in engagement with the engagement opening of the first connecting part, the first contact surface and the second contact surface face each other, wherein the first contact surface circumferentially extends around the engagement opening of the first connecting part and the second contact surface circumferentially extends around the engaging portion of the second connecting part, characterized in that the first connecting part includes a further engaging portion and/or the second connecting part includes a further engagement opening.