A lock device includes a first lock part, a second lock part, which can be arranged on the first lock part in a fastening direction and is connected to the first lock part in a closing state, and an actuating element, on which the second lock part is movably arranged. In the closing state the second lock part is held on the first lock part via the actuating element, and the second lock part acts with the actuating element such that in a loaded state, when force is acting on the second lock part relative to the first lock part along the fastening direction, the actuating element is rigidly connected to the first lock part and holds the second lock part on the first lock part, whereas in an unloaded state the second lock part can be detached from the first lock part by actuation of the actuating element.