Related-party transactions - Additional Information (Detail) - EUR (€) € in Thousands  | 
12 Months Ended | ||||
|---|---|---|---|---|---|
Dec. 31, 2021  | 
Dec. 31, 2020  | 
Dec. 31, 2019  | 
Jul. 28, 2021  | 
Mar. 26, 2021  | 
|
| Related Party Transactions [Line Items] | |||||
| Percentage of voting equity interests acquired | 100.00% | 100.00% | |||
| Share-based payment expenses | € 89,636 | € 2,450 | € 0 | ||
| Mega E [Member] | |||||
| Related Party Transactions [Line Items] | |||||
| Percentage of voting equity interests acquired | 100.00% | ||||
| General and administrative Expenses [Member] | |||||
| Related Party Transactions [Line Items] | |||||
| Share-based payment expenses | 89,636 | 2,450 | 0 | ||
| External Consulting Services [Member] | |||||
| Related Party Transactions [Line Items] | |||||
| Share-based payment expenses | € 202,201 | € 4,650 | € 0 | ||
| X | ||||||||||
- Definition Related party transactions. No definition available. 
  | 
| X | ||||||||||
- Definition The amount of compensation to key management personnel in the form of share-based payments. [Refer: Key management personnel of entity or parent [member]] Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition The percentage of voting equity interests acquired in a business combination. [Refer: Business combinations [member]] Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |