Yes, FM must be expressly referred to and defined in a contract. Parties have the freedom to agree on the risk allocation and determination of an FM event.
Generally, the FM clause contains a carve-out for payment obligations.
Exemption from duty to perform (section 275(1) German Civil Code): a debtor is "exempt" from performance in case the performance of an obligation is impossible, e.g. the performance of an obligation could become impossible in case of a lock-down imposed by the Government.
Frustration / clausula rebus sic stantibus: recognized under German statutory law. In essence, German law provides that a contract may be amended if one party cannot reasonably be expected to uphold the terms of the contract due to a significant change in circumstances from when the contract was entered into. In general, the threshold for frustration is very high. Courts would only allow an adaptation of the contract in exceptional circumstances. However, there are some cases where courts have adapted the commercial terms of the contract if the contract has become loss-making for one of the parties and if this is due to a change that was unforeseeable at the time of the conclusion of the contract.