GENERAL PART
Aim of the Criminal Code
Chapter III
Obstacles of Criminal Prosecution
Title I
Grounds for the Preclusion of Punishability
Insane Mental State
Section 24
(1) That person shall not be punishable, who perpetrates an act in such an insane state of mental functions - thus in particular lunacy, imbecility, dementia, cognitive or personality disorder -,
which makes him unable to recognize the consequences of the act or to act in accordance with this recognition.
(2) The punishment may be mitigated without limitation if the insane state of mental function hinders the perpetrator in the recognition of the consequences of the act or in acting in accordance with this recognition.
Incapacity - national proceedings
Insanity - national proceedings
Mental disease or defect - national proceedings
EDIT.