The invention relates to a lock device (1), in particular for retrofitting on a window (2) or a door, comprising the following: a socket (10) which has a bore (11) and a pivot lever (20) which has a locking bar (21) and a bolt (22) that protrudes from the locking bar (21), extends into the bore (11), and has a longitudinal axis (L). The pivot lever (20) can be moved between a retracted position and an extended position along the longitudinal axis (L) of the bolt (22) in a first rotational position and a second rotational position about the longitudinal axis (L). The pivot lever (20) is blocked from rotating about the longitudinal axis (L) by the socket (10) in the retracted position and can be rotated about a longitudinal axis (L) between the first rotational position and the second rotational position in the extended position. A spring (23) is provided which is adapted so as to act between the socket (10) and the pivot lever (20) such that the pivot lever (20) is held in the retracted position by the spring