Die Vertauschten Köpfe by Thomas Mann

A mythic tale in which two very different men — one sensual and strong, the other intellectual and reflective — become rivals for the same woman's love, and a supernatural mishap swaps their heads, forcing everyone to confront unsettling questions of identity, the relation between body and soul, and the limits of reason and passion; the story follows the comic and then tragic consequences of the exchange as social, moral, and metaphysical conflicts come to a head.