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 in a closing state to the first lock part, and an actuating element, on which the second lock part is movably arranged. The second lock part is in the closing state held on the first lock part via the actuating element and acts together with the actuating element in such a way that in a loaded state, when a 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.