﻿### search_filters = {FOCUS_FILTER_POLITICAL}
### search_filters = {FOCUS_FILTER_RESEARCH}
### search_filters = {FOCUS_FILTER_INDUSTRY}
### search_filters = {FOCUS_FILTER_STABILITY}
### search_filters = {FOCUS_FILTER_WAR_SUPPORT}
### search_filters = {FOCUS_FILTER_MANPOWER}
### search_filters = {FOCUS_FILTER_ANNEXATION}
### search_filters = {FOCUS_FILTER_SPA_CIVIL_WAR}

focus_tree = {
	id = german_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = GER
		}
	}
	
	default = no

	focus = {
		id = GER_four_year_plan
		icon = GFX_goal_generic_construction
		x = 6
		y = 0
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_tech_bonus = {
				name = GER_four_year_plan
				bonus = 1.0
				uses = 2
				category = industry
			}
			custom_effect_tooltip = new_deci_plan
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = hjalmar_schacht
		}
		
	}

	focus = {
		id = GER_west_wall
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = GER_four_year_plan }
		x = -3
		y = 1
		relative_position_id = GER_four_year_plan
		cost = 10
		ai_will_do = {
			factor = 8
		}
			
		completion_reward = {
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = todt
			50 = {
				if = {
					limit = { is_controlled_by = ROOT }
					custom_effect_tooltip = GER_west_wall_forts
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 3
							province = 11640
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 6712
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 6542
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 3530
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 42 = { is_demilitarized_zone = yes } }
				custom_effect_tooltip = GER_west_wall_tt
			}
			42 = {
				custom_effect_tooltip = GER_west_wall_forts
			}
			hidden_effect = {
				42 = {
					if = {
						limit = { is_controlled_by = ROOT }
						add_building_construction = {
							type = bunker
							level = 3
							province = 3558
							instant_build = yes
						}
						
						add_building_construction = {
							type = bunker
							level = 3
							province = 563
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 11531
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 9575
							instant_build = yes
						}
					}
				}
			}			
		}
	}

	focus = {
		id = GER_atlantikwall
		icon = GFX_focus_generic_coastal_fort
		prerequisite = { focus = GER_west_wall }
		available = {
			OR = {
				FRA = { has_capitulated = yes }
				NOT = { country_exists = FRA }
			}
			OR = {
				has_full_control_of_state = 19
				has_full_control_of_state = 23
				has_full_control_of_state = 30
				has_full_control_of_state = 14
				has_full_control_of_state = 15
				has_full_control_of_state = 29
				has_full_control_of_state = 6
				has_full_control_of_state = 7
				has_full_control_of_state = 36
				has_full_control_of_state = 99
				has_full_control_of_state = 110
				has_full_control_of_state = 142
				has_full_control_of_state = 143
				has_full_control_of_state = 144
				has_full_control_of_state = 785
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 2
		relative_position_id = GER_west_wall
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			add_ideas = GER_atlantikwall_idea
			custom_effect_tooltip = atlantikwall_tooltip
			custom_effect_tooltip = atlantikwall_tooltip_2
			hidden_effect = {
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 19
						}
					}
					19 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 23
						}
					}
					23 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 30
						}
					}
					30 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 14
						}
					}
					14 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 15
						}
					}
					15 = {
						#Fortify naval bases a bit extra close to Calais
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 3
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 29
						}
					}
					29 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
	
						#Bonus Fortifications on Calais coastline
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 2
            	    	    instant_build = yes
            	    	}
            	    	#Biggest fortifications on Calais itself
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_victory_point = yes
            	    	    }
            	    	    level = 3
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 6
						}
					}
					6 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}	
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 7
						}
					}
					7 = {
						#Fortify naval bases a bit extra close to Calais
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 3
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}	
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 36
						}
					}	
					36 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 56
						}
					}		
					56 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 59
						}
					}		
					59 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 58
						}
					}		
					58 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 99
						}
					}		
					99 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 110
						}
					}		
					110 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 142
						}
					}		
					142 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 143
						}
					}		
					143 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 144
						}
					}		
					144 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}
				if = {
					limit = {
						any_country = {
							OR = {
								tag = GER
								is_in_faction_with = GER
							}
							has_full_control_of_state = 785
						}
					}
					785 = {
						#Fortify naval bases
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 2
							instant_build = yes
						}
						add_building_construction = {
            	    	    type = coastal_bunker
            	    	    province = {
            	    	        all_provinces = yes
            	    	        limit_to_coastal = yes
            	    	    }
            	    	    level = 1
            	    	    instant_build = yes
            	    	}
					}
				}	
			}
		}
	}

	focus = {
		id = GER_ostwall
		icon = GFX_goal_generic_fortify_city
		prerequisite = { focus = GER_barbarossa_preperations }
		available = {
			any_country = {
				OR = {
					tag = GER
					is_in_faction_with = GER
				}
				OR = {
					has_full_control_of_state = 191
					has_full_control_of_state = 209
					has_full_control_of_state = 210
					has_full_control_of_state = 207
					has_full_control_of_state = 206
					has_full_control_of_state = 204
					has_full_control_of_state = 194
					has_full_control_of_state = 202
					has_full_control_of_state = 203
					has_full_control_of_state = 226
					has_full_control_of_state = 200
				}
			}
		}
		x = 0
		y = 2
		relative_position_id = GER_barbarossa_preperations
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			add_ideas = GER_ostwall_idea
			custom_effect_tooltip = GER_ostwall_forts
			custom_effect_tooltip = GER_ostwall_forts_2
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 191 
					}
				}
				hidden_effect = {
					191 = {
						add_building_construction = {
							type = bunker
							level = 2
							province = 4640
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 209
					}
				}
				hidden_effect = {
					209 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 415
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3310
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 210 
					}
				}
				hidden_effect = {
					210 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 3333
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 11259
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 9386
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 207 
					}
				}
				hidden_effect = {
					207 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 323
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 11241
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 11220
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3331
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 206 
					}
				}
				hidden_effect = {
					206 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 9289
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3378
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 204 
					}
				}
				hidden_effect = {
					204 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 6373
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 194 
					}
				}
				hidden_effect = {
					194 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 6319
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 9249
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3507
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 202 
					}
				}
				hidden_effect = {
					202 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 9568
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3543
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 5
							province = 525
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3494
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 203 
					}
				}
				hidden_effect = {
					203 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 11454
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 488
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 3468
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 6478
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 226 
					}
				}
				hidden_effect = {
					226 = {
						add_building_construction = {
							type = bunker
							level = 1
							province = 9433
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 11437
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { 
					any_country = {
						OR = {
							tag = GER
							is_in_faction_with = GER
						}
						has_full_control_of_state = 200 
					}
				}
				hidden_effect = {
					200 = {
						add_building_construction = {
							type = bunker
							level = 3
							province = 11405
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 6596
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 1
							province = 11700
							instant_build = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = GER_autarky
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = GER_four_year_plan }
		x = 4
		y = 1
		relative_position_id = GER_four_year_plan
		cost = 10
		
		ai_will_do = {
			factor = 9
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_tech_bonus = {
				name = GER_autarky
				bonus = 1.0
				uses = 2
				technology = excavation1
				technology = excavation2
				technology = excavation3
				technology = excavation4
				technology = excavation5
			}
			add_ideas = GER_autarky_idea
		}
	}

	focus = {
		id = GER_hermann_goring_werke
		icon = GFX_goal_generic_construct_civ_factory
		dynamic = yes
		prerequisite = { focus = GER_autarky }
		x = 2
		y = 1
		relative_position_id = GER_autarky
		cost = 10
		ai_will_do = {
			factor = 9
		}

		available_if_capitulated = no

		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = GER_industrial_effort_2IC }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}			
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_industrial_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_industrial_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_industrial_effort_2IC
			}
		}
	}

	focus = {
		id = GER_kdf_wagen
		icon = GFX_kdf_wagen_two
		dynamic = yes
		prerequisite = { focus = GER_hermann_goring_werke }
		x = 0
		y = 1
		relative_position_id = GER_hermann_goring_werke
		cost = 10
		ai_will_do = {
			factor = 5
		}

		available_if_capitulated = no

		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = GER_industrial_effort_2_2IC }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_industrial_effort_2_2IC
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_industrial_effort_2_2IC
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_industrial_effort_2_2IC
			}
		}
	}

	focus = {
		id = GER_coal_liquidization
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = GER_autarky }
		x = 0
		y = 1
		relative_position_id = GER_autarky
		cost = 10
		ai_will_do = {
			factor = 4
		}

		available = {
			has_full_control_of_state = 65
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_tech_bonus = {
				name = GER_coal_liquidization
				bonus = 3.0
				uses = 1
				category = synth_resources
			}
			if = {
				limit = {
					has_full_control_of_state = 65
				}
				65 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = synthetic_refinery
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = GER_synthetic_rubber
		icon = GFX_focus_generic_rubber
		prerequisite = { focus = GER_coal_liquidization }
		x = 0
		y = 1
		relative_position_id = GER_coal_liquidization
		cost = 10
		ai_will_do = {
			factor = 4
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
	
        	modify_building_resources = {
        	   building = synthetic_refinery
        	   resource = rubber
        	   amount = 2
        	}
		}
	}

	focus = {
		id = GER_extra_tech_slot
		icon = GFX_focus_research
		text = extra_tech_slot
		prerequisite = { focus = GER_kdf_wagen focus = GER_synthetic_rubber }
		x = -1
		y = 1
		relative_position_id = GER_kdf_wagen
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = GER_autobahn
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = GER_autarky }
		x = -2
		y = 1
		relative_position_id = GER_autarky
		cost = 10
		ai_will_do = {
			factor = 12
		}

		available = {
			OR = {
				has_full_control_of_state = 64
				has_full_control_of_state = 59
				has_full_control_of_state = 60
				has_full_control_of_state = 54
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			custom_effect_tooltip = GER_autobahn_tt
			hidden_effect = {
				64 = {
					if = {
						limit = { is_controlled_by = ROOT }
						add_building_construction = {
							type = infrastructure
							level = 5
							instant_build = yes
						}
					}
				}
				59 = {
					if = {
						limit = { is_controlled_by = ROOT }

						add_building_construction = {
							type = infrastructure
							level = 5
							instant_build = yes
						}
					}
				}
				60 = {
					if = {
						limit = { is_controlled_by = ROOT }
						add_building_construction = {
							type = infrastructure
							level = 5
							instant_build = yes
						}
					}
				}
				54 = {
					if = {
						limit = { is_controlled_by = ROOT }
						add_building_construction = {
							type = infrastructure
							level = 5
							instant_build = yes
						}
					}
				}
			}		
		}
	}

	focus = {
		id = GER_german_war_economy
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = GER_autobahn }
		mutually_exclusive = { focus = GER_integrate_war_economies }
		x = 0
		y = 1
		relative_position_id = GER_autobahn
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = no
		available = {
			has_war_support > 0.49
		}
		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = GER_german_war_economy }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			if = {
				limit = {
					NOT = { has_idea = war_economy }
					NOT = { has_idea = tot_economic_mobilisation }
				}
				add_ideas = war_economy
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_german_war_economy
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_german_war_economy
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_german_war_economy
			}
		}
	}

	focus = {
		id = GER_grosraumwirtschaft
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = GER_four_year_plan }
		x = 0
		y = 1
		relative_position_id = GER_four_year_plan
		cost = 10
		
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = GER_grosraumwirtschaft
		}
	}

	focus = {
		id = GER_align_hungary
		icon = GFX_goal_generic_positive_trade_relations
		prerequisite = { focus = GER_grosraumwirtschaft }
		x = 0
		y = 1
		relative_position_id = GER_grosraumwirtschaft
		cost = 10
		
		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = { has_war_with = HUN }
		}

		bypass = {
			HUN = {
				OR = {
					exists = no
					is_subject = yes			
					AND = {
						is_subject = no
						is_in_faction_with = ROOT
					}
				}
			}
		}
		
		completion_reward = {
			if = {
				limit = {
					has_government = fascism
				}
				HUN = {
					add_timed_idea = { idea = GER_align_hungary days = 730 }
				}
			}	
			if = {
				limit = {
					has_government = neutrality
				}
				HUN = {
					add_timed_idea = { idea = GER_align_hungary_unaligned days = 730 }
				}
			}	
			if = {
				limit = {
					has_government = democratic
				}
				HUN = {
					add_timed_idea = { idea = GER_align_hungary_democratic days = 730 }
				}
			}	
			HUN = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_align_hungary
				}
			}
		}
	}

	focus = {
		id = GER_align_romania
		icon = GFX_goal_generic_positive_trade_relations
		prerequisite = { focus = GER_grosraumwirtschaft }
		x = -2
		y = 1
		relative_position_id = GER_grosraumwirtschaft
		cost = 10
		
		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = { has_war_with = ROM }
		}

		bypass = {
			ROM = {
				OR = {
					exists = no
					is_subject = yes
					AND = {
						is_subject = no
						is_in_faction_with = ROOT
					}
				}
			}
		}
		
		completion_reward = {
			if = {
				limit = {
					has_government = fascism
				}
				ROM = {
					add_timed_idea = { idea = GER_align_romania days = 730 }
				}
			}	
			if = {
				limit = {
					has_government = neutrality
				}
				ROM = {
					add_timed_idea = { idea = GER_align_romania_unaligned days = 730 }
				}
			}	
			if = {
				limit = {
					has_government = democratic
				}
				ROM = {
					add_timed_idea = { idea = GER_align_romania_democratic days = 730 }
				}
			}	
			ROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_align_romania
				}
			}
		}
	}

	focus = {
		id = GER_integrate_war_economies
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = GER_align_hungary }
		prerequisite = { focus = GER_align_romania }
		mutually_exclusive = { focus = GER_german_war_economy }
		x = 0
		y = 1
		relative_position_id = GER_align_hungary
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			OR = {
				HUN = {
					is_in_faction_with = ROOT
					is_free_or_subject_of_root = yes
				}
				ROM = {
					is_in_faction_with = ROOT
					is_free_or_subject_of_root = yes
				}
			}
		}

		available_if_capitulated = no
		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = GER_integrate_war_economies_1 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			every_state = {
				limit = { has_state_flag = GER_integrate_war_economies_2 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			HUN = {
				every_state = {
					limit = { has_state_flag = GER_integrate_war_economies_1 }
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
				every_state = {
					limit = { has_state_flag = GER_integrate_war_economies_2 }
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
			ROM = {
				every_state = {
					limit = { has_state_flag = GER_integrate_war_economies_1 }
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
				every_state = {
					limit = { has_state_flag = GER_integrate_war_economies_2 }
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			if = {
				limit = {
					NOT = { is_in_faction_with = HUN }
				}
				custom_effect_tooltip = GER_integrate_war_economies_tt
				custom_effect_tooltip = GER_integrate_war_economies_tt3
			}
			if = {
				limit = {
					NOT = { is_in_faction_with = ROM }
				}
				custom_effect_tooltip = GER_integrate_war_economies_tt2
				custom_effect_tooltip = GER_integrate_war_economies_tt4
			}
			if = {
				limit = {
					HUN = {
						is_in_faction_with = GER
						is_free_or_subject_of_root = yes
					}
				}
				HUN = { country_event = { id = wtt_germany.72 } }
				effect_tooltip = {
					random_owned_controlled_state = {
						limit = {
							free_building_slots = {
								building = arms_factory
								size > 1
								include_locked = yes
							}
							NOT = { has_state_flag = GER_integrate_war_economies }
						}
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						set_state_flag = GER_integrate_war_economies
					}
					random_owned_controlled_state = {
						limit = {
							free_building_slots = {
								building = arms_factory
								size > 1
								include_locked = yes
							}
							NOT = { has_state_flag = GER_integrate_war_economies }
						}
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						set_state_flag = GER_integrate_war_economies
					}
					HUN = {
						random_owned_controlled_state = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 1
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
								type = arms_factory
								level = 2
								instant_build = yes
							}
							set_state_flag = GER_integrate_war_economies_1
						}
						random_owned_controlled_state = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 1
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
								type = arms_factory
								level = 2
								instant_build = yes
							}
							set_state_flag = GER_integrate_war_economies_2
						}
					}
					if = {
						limit = {
							has_dlc = "Death or Dishonor" 
						}
						set_autonomy = { target = HUN autonomy_state = autonomy_satellite }
					}
					if = {
						limit = { 
							has_dlc = "Together for Victory"
							NOT = { has_dlc = "Death or Dishonor" } 
						}
						set_autonomy = { target = HUN autonomy_state = autonomy_dominion }
					}
					if = {
						limit = { 
							NOT = { has_dlc = "Together for Victory" }
							NOT = { has_dlc = "Death or Dishonor" }
						}
						puppet = HUN
					}
				}
				custom_effect_tooltip = GER_integrate_war_economies_tt3
			}
			if = {
				limit = {
					ROM = {
						is_in_faction_with = GER
						is_free_or_subject_of_root = yes
					}
				}
				ROM = { country_event = { id = wtt_germany.72 } }
				effect_tooltip = {
					random_owned_controlled_state = {
						limit = {
							free_building_slots = {
								building = arms_factory
								size > 1
								include_locked = yes
							}
							NOT = { has_state_flag = GER_integrate_war_economies }
						}
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						set_state_flag = GER_integrate_war_economies
					}
					random_owned_controlled_state = {
						limit = {
							free_building_slots = {
								building = arms_factory
								size > 1
								include_locked = yes
							}
							NOT = { has_state_flag = GER_integrate_war_economies }
						}
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						set_state_flag = GER_integrate_war_economies
					}
					ROM = {
						random_owned_controlled_state = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 1
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
								type = arms_factory
								level = 2
								instant_build = yes
							}
							set_state_flag = GER_integrate_war_economies_1
						}
						random_owned_controlled_state = {
							limit = {
								free_building_slots = {
									building = arms_factory
									size > 1
									include_locked = yes
								}
							}
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
								type = arms_factory
								level = 2
								instant_build = yes
							}
							set_state_flag = GER_integrate_war_economies_2
						}
					}
					if = {
						limit = {
							has_dlc = "Death or Dishonor" 
						}
						set_autonomy = { target = ROM autonomy_state = autonomy_satellite }
					}
					if = {
						limit = { 
							has_dlc = "Together for Victory"
							NOT = { has_dlc = "Death or Dishonor" } 
						}
						set_autonomy = { target = ROM autonomy_state = autonomy_dominion }
					}
					if = {
						limit = { 
							NOT = { has_dlc = "Together for Victory" }
							NOT = { has_dlc = "Death or Dishonor" }
						}
						puppet = ROM
					}
				}
				custom_effect_tooltip = GER_integrate_war_economies_tt4
			}
		}
	}

	focus = {
		id = GER_form_the_reichskommissariats
		icon = GFX_focus_ger_reichskommisariats
		prerequisite = { focus = GER_german_war_economy focus = GER_integrate_war_economies }
		available = {
			has_government = fascism
		}
		x = 1
		y = 1
		relative_position_id = GER_integrate_war_economies
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			custom_effect_tooltip = GER_reichskommissariats_tt
			unlock_decision_tooltip = GER_reichskommissariat_norwegen
			unlock_decision_tooltip = GER_reichskommissariat_niederlande
			unlock_decision_tooltip = GER_reichskommissariat_belgien_nordfrankreich
			unlock_decision_tooltip = GER_reichskommissariat_ostland
			unlock_decision_tooltip = GER_reichskommissariat_ukraine
			custom_effect_tooltip = GER_rk_mos
			custom_effect_tooltip = GER_rk_kau
		}
	}


	focus = {
		id = GER_air_innovation
		text = air_innovation
		icon = GFX_goal_generic_build_airforce
		x = 16
		y = 0
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		complete_tooltip = {
			air_experience = 25
			add_doctrine_cost_reduction = {
				name = air_sup_bonus
				cost_reduction = 0.25
				uses = 2
				category = battlefield_support_tree
			}
			every_state = {
				limit = { has_state_flag = GER_air_innovation_2air }
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			every_state = {
				limit = { has_state_flag = GER_air_innovation_6air }
				add_building_construction = {
					type = air_base
					level = 6
					instant_build = yes
				}
			}
			custom_effect_tooltip = available_chief_of_airforce
			show_ideas_tooltip = ritter_von_greim
		}
		
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			
			air_experience = 25

			add_doctrine_cost_reduction = {
				name = air_sup_bonus
				cost_reduction = 0.25
				uses = 2
				category = battlefield_support_tree
			}

			if = {
				limit = {
					NOT = {
						any_owned_state = {
							air_base > 3
							air_base < 9
						}
					}
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = air_base
							size > 5
						}
					}
					add_building_construction = {
						type = air_base
						level = 6
						instant_build = yes
					}
					set_state_flag = GER_air_innovation_6air
				}				
			}

			random_owned_controlled_state = {
				limit = {
					air_base > 3
					air_base < 9
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_air_innovation_2air
			}
			random_owned_controlled_state = {
				limit = {
					air_base > 3
					air_base < 9
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_air_innovation_2air
			}
			random_owned_controlled_state = {
				limit = {
					air_base > 2
					air_base < 9
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_air_innovation_2air
			}
			custom_effect_tooltip = available_chief_of_airforce
			show_ideas_tooltip = ritter_von_greim
			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = hugo_sperrle
		}
	}

	focus = {
		id = GER_tactical_air_effort
		icon = GFX_goal_generic_CAS
		prerequisite = { focus = GER_air_innovation }
		mutually_exclusive = { focus = GER_strategic_air_effort }
		x = 1
		y = 2
		relative_position_id = GER_air_innovation
		cost = 10
		ai_will_do = {
			factor = 0.25
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = op_dest_bonus
				cost_reduction = 0.25
				uses = 2
				category = battlefield_support_tree
			}
			add_tech_bonus = {
				name = bomber_bonus
				bonus = 1.0
				uses = 1
				category = tactical_bomber
				category = cas_bomber			
			}
		}
	}

	focus = {
		id = GER_long_range_escorts
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = GER_tactical_air_effort focus = GER_strategic_air_effort }
		x = -1
		y = 1
		relative_position_id = GER_tactical_air_effort
		cost = 10
		ai_will_do = {
			factor = 0.1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = GER_long_range_escorts
				bonus = 1.0
				uses = 2
				category = cat_heavy_fighter
			}
		}
	}
	

	focus = {
		id = GER_naval_air_effort
		text = naval_air_effort
		icon = GFX_goal_generic_air_naval_bomber
		prerequisite = { focus = GER_tactical_air_effort }
		x = 0
		y = 2
		relative_position_id = GER_tactical_air_effort
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = nav_bomber_bonus
				bonus = 1.0
				uses = 2
				category = naval_bomber
			}
		}
	}

	focus = {
		id = GER_strategic_air_effort
		icon = GFX_goal_generic_air_bomber
		prerequisite = { focus = GER_air_innovation }
		mutually_exclusive = { focus = GER_tactical_air_effort }
		x = -1
		y = 2
		relative_position_id = GER_air_innovation
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			# Balance research bonus for 2 techs in battlefield_support_tree
			add_doctrine_cost_reduction = {
				name = strat_dest_bonus
				cost_reduction = 0.25
				uses = 2
				category = battlefield_support_tree
			}
			add_tech_bonus = {
				name = bomber_bonus
				bonus = 1.0
				uses = 1
				category = cat_strategic_bomber
			}
		}
	}

	focus = {
		id = GER_army_innovation
		icon = GFX_goal_generic_axis_build_infantry
		x = 19
		y = 0
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			# Balance research bonus for 2 techs under land_doctrine
			
			army_experience = 10

			
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = walther_von_brauchitsch
			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = erwin_rommel 
		}
	}
	
	focus = {
		id = GER_soviet_treaty
		icon = GFX_goal_generic_scientific_exchange
		prerequisite = { focus = GER_army_innovation }
		available = {
			NOT = { has_completed_focus = GER_anti_soviet_pact }
			OR = {
				NOT = { has_completed_focus = GER_bulwark_against_bolshevism }
				NOT = { has_completed_focus = GER_the_great_red_menace }
			}
		}
		#cancel = { 
		#	OR = {
		#		has_war_with = SOV
		#		NOT = { country_exists = SOV }
		#	} 
		#}
		bypass = { 
			OR = {
				has_war_with = SOV
				NOT = { country_exists = SOV }
				has_completed_focus = GER_bulwark_against_bolshevism
				has_completed_focus = GER_the_great_red_menace
			}
		}

		x = 0
		y = 2
		relative_position_id = GER_army_innovation
		cost = 10
		ai_will_do = {
			factor = 10
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			SOV = {
				country_event = { id = germany.75 days = 1 }
				custom_effect_tooltip = needs_approval
				# Actual reward effects added in event if Soviets approve
				effect_tooltip = {
					# Trade influence with the USSR? Or simply let the opinion mod do the work
					give_SOV_armor_research_bonuses = yes
				}
			}

			if = {
				limit = { 
					has_dlc = "No Step Back"
				}
				#custom_effect_tooltip = GER_soviet_treaty_research_nsb_tt #Obsolete now
				effect_tooltip = {
					create_equipment_variant = {
						name = "Panzer III Ausf. A"
						type = medium_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_high_velocity_cannon
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = smoke_launchers
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 3
						}
						icon = "GFX_GER_basic_medium_tank_medium"
					}
					create_equipment_variant = {
						name = "Panzer IV Ausf. A"
						type = medium_tank_chassis_1
						parent_version = 1
						modules = {
							main_armament_slot = tank_close_support_gun
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = smoke_launchers
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 2
						}
						icon = "GFX_GER_basic_medium_tank_medium"
					}	
					add_tech_bonus = {
						name = armor_bonus
						bonus = 1.0
						uses = 2
						category = armor
					}
				}
			}
			else = {
				effect_tooltip = {
					add_tech_bonus = {
						name = med_armor_bonus
						ahead_reduction = 1
						category = cat_medium_armor
					}
					add_tech_bonus = {
						name = armor_bonus
						bonus = 1.0
						uses = 2
						category = armor
					}
				}
			}
		}
	}

	focus = {
		id = GER_air_innovation_2
		icon = GFX_goal_generic_air_fighter2
		prerequisite = { focus = GER_strategic_air_effort focus = GER_tactical_air_effort focus = GER_soviet_treaty }
		x = 0
		y = 2
		relative_position_id = GER_strategic_air_effort
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = { 
			air_experience = 50

			add_ideas = GER_air_innovations_2_idea
			# Balance research bonus to next tech among radio, radio_detection, decimetric_radar, improved_decimetric_radar, centimetric_radar, improved_centimetric_radar, advanced_centimetric_radar
			add_tech_bonus = {
				name = radar_tech_bonus
				bonus = 1.0
				uses = 1
				category = radar_tech
			}
			if = {
				limit = {
					has_opinion_modifier = sov_ger_treaty
					NOT = { has_war_with = SOV }
				}
				SOV = {
					country_event = { id = germany.78 days = 1 }
				}
			}
		}
	}

	focus = {
		id = GER_army_innovation_2
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = GER_soviet_treaty }
		x = 0
		y = 2
		relative_position_id = GER_soviet_treaty
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			# Balance research bonus to 2 techs in land_doctrine
			army_experience = 20
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
			if = {
				limit = {
					NOT = {
						has_dlc = "No Step Back"
					}
				}
				add_tech_bonus = {
					bonus = 1.0
					uses = 1
					name = mech_army_bonus
					technology = basic_medium_tank
					technology = improved_medium_tank
					technology = advanced_medium_tank
					technology = mechanised_infantry
				}	
			}
			else = {
				add_tech_bonus = {
					bonus = 1.0
					uses = 1
					name = mech_army_bonus
					technology = basic_medium_tank_chassis
					technology = improved_medium_tank_chassis
					technology = advanced_medium_tank_chassis
					technology = mechanised_infantry
				}
			}
		}
	}

	focus = {
		id = GER_rocketry_focus
		icon = GFX_focus_rocketry
		prerequisite = { focus = GER_extra_tech_slot }
		prerequisite = { focus = GER_air_innovation_2 }
		x = 2
		y = 1
		relative_position_id = GER_extra_tech_slot
		cost = 10
		ai_will_do = {
			factor = 1
		}	

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_ideas = GER_rocketry_idea
			add_tech_bonus = {
				name = GER_rocketry_focus
				bonus = 1.0
				uses = 2
				category = rocketry
			}
			add_tech_bonus = {
				name = GER_rocketry_focus
				bonus = 1.0
				uses = 2
				category = jet_technology
			}
		}
	}

	focus = {
		id = GER_wunderwaffe
		icon = GFX_focus_wonderweapons
		prerequisite = { focus = GER_rocketry_focus }
		x = 0
		y = 1
		relative_position_id = GER_rocketry_focus
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = secret_bonus
				bonus = 1.0
				uses = 1
				category = nuclear
				category = rocketry
			}
		}
	}
	
	focus = { #should already be signed in 39
		id = GER_mol_rib_pact
		icon = GFX_goal_molotov_ribbentrop_pact
		prerequisite = { focus = GER_soviet_treaty }
		mutually_exclusive = { focus = GER_anti_soviet_pact }
		available = {
			is_subject = no
			has_government = fascism
			has_army_manpower = { size > 849999 } #ca 90 div
			SOV = {
				NOT = { has_war_with = GER }
				country_exists = SOV
				has_civil_war = no
			}
			NOT = { has_completed_focus = GER_bulwark_against_bolshevism }
			NOT = { has_completed_focus = GER_the_great_red_menace }
			NOT = { has_global_flag = beck_ribbentrop_signed }
		}
		cancel = {
			OR = {
				has_war_with = SOV
				NOT = { country_exists = SOV }
				has_global_flag = beck_ribbentrop_signed
			}
		}
		cancel_if_invalid = no
		x = 1
		y = 3
		relative_position_id = GER_soviet_treaty
		cost = 8
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { has_completed_focus = GER_anti_comitern_pact }
			}
			modifier ={
				factor = 2
				has_idea = SOV_soviet_german_trade_agreement
			}
		}	
		completion_reward = {
			
			SOV = {
				country_event = { id = germany.11 days = 1 }
				custom_effect_tooltip = GER_mol_rib_pact_tt
				custom_effect_tooltip = needs_approval
			}
		}
	}
	
	focus = {
		id = GER_soviet_ally
		icon = GFX_goal_generic_dangerous_deal
		prerequisite = { focus = GER_mol_rib_pact }
		mutually_exclusive = { focus = GER_ussr_war_goal }
		available = {
			is_subject = no
			has_government = fascism
			has_war = no
			SOV = {
				has_war = no
				NOT = { has_war_with = GER }
				is_subject = no
			}
		}
		bypass = {
			SOV = {
				is_in_faction_with = GER
			}
		}
		x = 1
		y = 1
		relative_position_id = GER_mol_rib_pact
		cost = 10
		ai_will_do = {
			factor = 0.01
			modifier = {
				factor = 0
				NOT = { is_in_faction_with = POL }
				country_exists = POL
			}			
			modifier = {
				factor = 0
				OR = {
					has_war_with = POL
					has_war_with = FRA
				}
			}				
		}	
		completion_reward = {
			if = {
				limit = { is_faction_leader = yes }
				custom_effect_tooltip = ger_sov_buddies_tooltip_2
			}
			custom_effect_tooltip = ger_sov_buddies_tooltip
			add_ideas = soviet_german_friendship
			SOV = {
				add_opinion_modifier = { target = GER modifier = ger_sov_alliance_focus }
				add_ideas = soviet_german_friendship
				country_event = germany.89
			}
		}
	}
	
	focus = {
		id = GER_turkey_puppet
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = GER_turkey_friend }
		available = {
			is_subject = no
			has_government = fascism
			OR = {
				GRE = {
					is_in_faction_with = GER
					all_owned_state = {
						controller = { is_in_faction_with = GER }
					}
				}
			}
			NOT = { has_war_with = SOV }
			country_exists = TUR
		}
		x = 0
		y = 1
		relative_position_id = GER_turkey_friend
		cost = 10
		ai_will_do = {
			factor = 1
		}	
		completion_reward = {
			TUR = { country_event = { id = germany.79 days = 1 } }
		}
	}

	focus = {
		id = GER_rhineland
		icon = GFX_rhineland_bois
		mutually_exclusive = { focus = GER_oppose_hitler }
		x = 35
		y = 0
		cost = 10

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					has_completed_focus = GER_oppose_hitler
				}
			}
		}

		available = {
			is_subject = no
		}
		bypass = {
			42 = { is_demilitarized_zone = no }
			51 = { is_demilitarized_zone = no }
		}
		ai_will_do = {
			factor = 10
		}
		search_filters = { FOCUS_FILTER_POLITICAL }	
		completion_reward = {
			42 = { set_demilitarized_zone = no }
			51 = { set_demilitarized_zone = no }
			set_global_flag = rhineland_remilitarized
			custom_effect_tooltip = GER_rhineland_ultimatum
			add_political_power = 120
			army_experience = 5
			add_named_threat = { threat = 5 name = GER_rhineland }
			if = {
				limit = { FRA = { is_subject = no } }
				FRA = {
					country_event = { id = germany.60 }
					custom_effect_tooltip = may_provoke_hostility
				}
			}
			hidden_effect = {
				if = {
					limit = {
						has_game_rule = {
							rule = obsolete_focus_branches_visibility
							option = HIDE
						}
					}
					mark_focus_tree_layout_dirty = yes
				}
			}
		}		
	}

	focus = {
		id = GER_japan_friend
		icon = GFX_japan_friendd
		prerequisite = { focus = GER_rhineland }
		mutually_exclusive = { focus = GER_china_friend }
		available = {
			is_subject = no
			AND = {
				country_exists = JAP
				JAP = { is_subject = no }
				NOT = { has_war_with = JAP }
				JAP = {
					custom_trigger_tooltip = {
						tooltip = GER_alone_or_peace_faction_tt
						is_alone_or_in_faction_at_peace_with_GER = yes
					}
				}
			}
		}
		x = -8
		y = 1
		relative_position_id = GER_rhineland
		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 1
			modifier = {
				is_in_faction_with = JAP
				factor = 0 #GER-sempai has already noticed you!
			}
		}	
		completion_reward = {
			JAP = {
				add_opinion_modifier = { target = GER modifier = ger_jap_diplomacy_focus }
			}
			event_target:WTT_current_china_leader = {
				add_opinion_modifier = { target = GER modifier = withdrew_advisors }
				country_event = { id = china.3 hours = 6 }
			}
			custom_effect_tooltip = GER_japan_friend_tt
			set_global_flag = falkenhausen_recalled
			if = {
				limit = {
					has_dlc = "Waking the Tiger"
				}
				create_corps_commander = {
					name = "Alexander von Falkenhausen"
					gfx = GFX_portrait_chi_alexander_von_falkenhausen
					skill = 3
					attack_skill = 2
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 3
					legacy_id = 603
					traits = { infantry_officer }
				}
			}
		}
	}

	focus = {
		id = GER_china_friend
		icon = GFX_china_friendd
		prerequisite = { focus = GER_rhineland }
		mutually_exclusive = { focus = GER_japan_friend }
		available = {
			is_subject = no
			AND = {
				country_exists = CHI
				CHI = { is_subject = no }
				NOT = { has_war_with = CHI }
				CHI = {
					custom_trigger_tooltip = {
						tooltip = GER_alone_or_peace_faction_tt
						is_alone_or_in_faction_at_peace_with_GER = yes
					}
				}
			}
		}
		x = -11
		y = 1
		relative_position_id = GER_rhineland
		cost = 10
		ai_will_do = {
			factor = 0.5
			modifier = {
				is_in_faction_with = JAP
				factor = 0
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			event_target:WTT_current_china_leader = {
				add_offsite_building = { type = arms_factory level = 2 }
				add_opinion_modifier = { target = GER modifier = ger_chi_diplomacy_focus }
				set_country_flag = GER_befriended_by_germany_flag
			}
			JAP = {
				add_opinion_modifier = { target = GER modifier = supported_the_chinese }
			}
		}
	}

	focus = {
		id = GER_anti_comitern_pact
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = GER_rhineland  }
		x = -13
		y = 2
		relative_position_id = GER_rhineland
		cost = 8
		available = {
			is_subject = no
			NOT = { has_government = communism }
			NOT = { is_in_faction_with = SOU }
			
		}
		bypass = {

			SOU = {
				NOT = {
					has_government = communism
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			SOU = { add_opinion_modifier = { target = ROOT modifier = pact_against_us } }
			add_named_threat = { threat = 2 name = GER_anti_comitern_pact }
			every_other_country = {
				limit = {
					NOT = { tag = GER }
					NOT = { has_war_with = GER }
					NOT = { is_in_faction_with = SOU }
					is_subject = no
					OR = {
						capital_scope = {
								is_on_continent = europe
						}
						capital_scope = {
								is_on_continent = asia
						}
						num_of_factories > 30
					}
					OR = {
						has_government = fascism 
						AND = {
							is_neighbor_of = SOU
							NOT = { has_government = communism }
						}
					}
				}
				country_event = germany.5
			}
		}
	}

	focus = {
		id = GER_anti_soviet_pact
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = GER_anti_comitern_pact }
		mutually_exclusive = { focus = GER_mol_rib_pact }
		available = {
			is_subject = no
			has_army_manpower = { size > 849999 } #ca 90 div
			SOU = {
				has_government = communism
			}
		}
		x = 0
		y = 3
		relative_position_id = GER_anti_comitern_pact
		cost = 10
		ai_will_do = {
			factor = 2.5
			modifier ={
				factor = 0.1
				has_idea = SOV_soviet_german_trade_agreement
			}
		}
		completion_reward = {
			hidden_effect = {
				SOV = { remove_opinion_modifier = { target = ROOT modifier = pact_against_us } }
				add_ideas = anti_soviet_pact
			}
			SOU = { add_opinion_modifier = { target = ROOT modifier = worse_pact_against_us } }
			custom_effect_tooltip = GER_anti_soviet_pact_tt_3
			custom_effect_tooltip = GER_anti_soviet_pact_tt
			custom_effect_tooltip = GER_anti_soviet_pact_tt_2
			every_other_country = {
				limit = {
					has_opinion_modifier = anti_comintern_pact_opinion
					OR = {
						NOT = { is_in_faction = yes }
						is_in_faction_with = GER
					}
					NOT = { tag = GER }
					NOT = { has_war_with = GER }
				}
				country_event = germany.83
			}
			hidden_effect = {
				news_event = { hours = 12 id = news.215 }
			}
		}
	}

	focus = {
		id = GER_ussr_war_goal
		icon = GFX_operation_barbarossa
		prerequisite = { focus = GER_anti_comitern_pact }
		mutually_exclusive = { focus = GER_soviet_ally }
		available_if_capitulated = no
		will_lead_to_war_with = SOV

		cancel = {
			is_subject = yes
			NOT = { country_exists = SOV }
		}
		
		available = {
			is_subject = no
			has_completed_focus = GER_barbarossa_preperations
			
		}
		x = 1
		y = 4
		relative_position_id = GER_anti_comitern_pact
		cost = 8
		historical_ai = {
			NOT = {
				any_home_area_neighbor_country = {
					has_war_with = ROOT					
				}		
			}
		}
		bypass = {
			has_war_with = SOV
		}
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_army_manpower = { size < 1199999 }
					any_home_area_neighbor_country = {
						has_war_with = ROOT
					}
				}
			}
			modifier = {
				factor = 0 #AI should not pick this focus if it does not share a border with the Soviets
				NOT = { 
					any_home_area_neighbor_country = {
						tag = SOV
					}
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				date < 1939.1.1
			}
		}	
		completion_reward = {
			IF = {
				limit = { SOV = { has_civil_war = no } }
				create_wargoal = {
					type = annex_everything
					target = SOV
					expire = 0
				}
			}
			ELSE = {
				every_country = {
					limit = { original_tag = SOV }
					GER = {
						create_wargoal = {
							type = annex_everything
							target = PREV
							expire = 0
						}
					}
				}
			}
		}
	}

	focus = {
		id = GER_turkey_friend
		icon = GFX_turk_friendd
		prerequisite = { focus = GER_italy_ally }


		available = { 
			is_subject = no 
			NOT = { has_war_with = TUR }
			TUR = {
				exists = yes
				is_subject = no
			}

			TUR = {
				custom_trigger_tooltip = {
					tooltip = GER_alone_or_peace_faction_tt
					is_alone_or_in_faction_at_peace_with_GER = yes
				}
			}
		}

		#bypass = {
		#	OR = {
		#		TUR = { is_in_faction_with = GER }
		#		NOT = { country_exists = TUR }
		#	}
		#}
		x = 0
		y = 1
		relative_position_id = GER_italy_ally
		cost = 10
		ai_will_do = {
			factor = 1
		}	

		available_if_capitulated = no
		completion_reward = {
			TUR = {
				add_opinion_modifier = { target = GER modifier = ger_tur_diplomacy_focus }
				if = {
					limit = {
						TUR = {
							is_ai = yes
							NOT = {
								is_in_faction = yes
							}
							NOT = {
								is_puppet = yes
							}
							has_government = ROOT
						}
						GER = { is_faction_leader = yes }
					}
					TUR = {
						country_event = generic.5
					}
					add_ai_strategy = {
						type = alliance
						id = "GER"
						value = 200
					}
				}
				if = {
					limit = {
						GER = {
							has_government = fascism
						}
					}
					add_timed_idea = { idea = fascist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = communism
						}
					}
					add_timed_idea = { idea = communist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = democratic
						}
					}
					add_timed_idea = { idea = democratic_influence days = 1095 }
				}
				country_event = { id = generic.1 }
			}
		}
	}

	focus = {
		id = GER_anschluss
		icon = GFX_anschluss_bois
		prerequisite = { focus = GER_rhineland }
		available_if_capitulated = no
		available = {
			is_subject = no
			has_army_manpower = { size > 499999 }

			check_variable = { num_equipment_in_armies_k@infantry_equipment > 40 }
			custom_trigger_tooltip = {
			 	tooltip = GER_anschluss_eq_trigger_tt
			 	check_variable = { num_equipment_in_armies_k@infantry_equipment > 40 }
			 }
			 
			NOT = { has_idea = rhineland_challenge_met }
			if = {
				limit = {
					SWI = { has_completed_focus = SWI_gotthard_union }
				}
				NOT = { 
					AUS = { has_idea = SWI_swiss_democratic_propaganda }
				}
			}
		}
		cancel = {
			OR = {
				is_subject = yes
				has_idea = rhineland_challenge_met
				has_war_with = AUS
			}
		}
		cancel_if_invalid = no
		x = 0
		y = 1
		relative_position_id = GER_rhineland
		cost = 8
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				date < 1938.1.1
			}
		}

		bypass = {
			OR = {
				AUS = {
					OR = {
						is_subject = yes
						exists = no 
						AND = {
							is_in_faction = yes
							NOT = { is_in_faction_with = GER }
						}
					}
				}
				GER = {
					owns_state = 4
					owns_state = 152
					owns_state = 153
					owns_state = 848
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			army_experience = 10
			if = {
				limit = {
					country_exists = AUS
					AUS = {
						has_civil_war = no
						OR = {
							owns_state = 4
							owns_state = 152
							owns_state = 153
							owns_state = 848
						}
					}
					ITA = {
						NOT = {
							has_completed_focus = ITA_guarantee_austrian_independence
						}
					}
					
				}

				AUS = {
					country_event = {
						id = germany.28
						days = 1
					}
				}				
				custom_effect_tooltip = anschluss_mefo_bills_tt
			}
			if = {
				limit = {
					country_exists = AUS
					AUS = {
						has_civil_war = no
						OR = {
							owns_state = 4
							owns_state = 152
							owns_state = 153
							owns_state = 848 #Vorarlberg 
						}
					}
					ITA = {
						has_completed_focus = ITA_guarantee_austrian_independence
					}
				}
 
				ITA = {
					country_event = {
						id = BBA_italy_interaction_events.24
						days = 1
					}
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = AUS
						has_civil_war = yes
						OR = {
							owns_state = 4
							owns_state = 152
							owns_state = 153
							owns_state = 848
						}
						
					}
					ITA = {
						NOT = {
							has_completed_focus = ITA_guarantee_austrian_independence
						}
					}
				}
				custom_effect_tooltip = germany.126.warning
				random_other_country = {
					limit = {
						original_tag = AUS
						OR = {
							has_government = fascism
							AND = {
								has_government = neutrality
								NOT = {
									any_other_country = {
										original_tag = AUS
										has_government = fascism
									}
								}
							}
							NOT = {
								any_other_country = {
									original_tag = AUS
									OR = {
										has_government = fascism
										has_government = neutrality
									}
								}
							}							
						}
						
					}
					country_event = { id = germany.126 days = 1 }
				}
			}

			if = {
				limit = {
					4 = {
						owner = {
							NOT = {
								tag = AUS
							}
							NOT = {
								is_in_faction_with = ROOT
							}
						}
					}
				}
				add_state_core = 4
			}
			if = {
				limit = {
					152 = {
						owner = {
							NOT = {
								tag = AUS
							}
							NOT = {
								is_in_faction_with = ROOT
							}
						}
					}
				}
				add_state_core = 152
			}
			if = {
				limit = {
					153 = {
						owner = {
							NOT = {
								tag = AUS
							}
							NOT = {
								is_in_faction_with = ROOT
							}
						}
					}
				}
				add_state_core = 153
			}
			if = {
				limit = {
					848 = {
						owner = {
							NOT = {
								tag = AUS
							}
							NOT = {
								is_in_faction_with = ROOT
							}
						}
					}
				}
				add_state_core = 848
			}
		}
	}

	focus = {
		id = GER_demand_memel
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = GER_anschluss }
		available = { is_subject = no }
		x = 0
		y = 1
		relative_position_id = GER_anschluss
		cost = 10
		bypass = {
			188 = { is_owned_by = GER }
			85 = { is_owned_by = GER }
			86 = { is_owned_by = GER }
		}
		ai_will_do = {
			factor = 10	
			modifier = {
				factor = 0
				date < 1939.1.1
			}
		}	
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			188 = { add_claim_by = GER }
			85 = { add_claim_by = GER }
			807 = { add_claim_by = GER }
			86 = { add_claim_by = GER }
			762 = { add_claim_by = GER }
			add_named_threat = { threat = 3 name = GER_demand_memel_threat }
			if = {
				limit = {
					LIT = { 
						owns_state = 188
						controls_state = 188 
					}
				}
				LIT = {
					country_event = { id = baltic.4 }
				}
			}
		}
	}

	focus = {
		id = GER_danzig_or_war
		icon = GFX_danzig_war
		prerequisite = { focus = GER_demand_memel }
		mutually_exclusive = { focus = GER_danzig_vs_slovakia }
		will_lead_to_war_with = POL
		available = {
			is_subject = no
			has_army_manpower = { size > 949999 } #100 div			
			#Make custom trigger tooltip here
			85 = {
				owner = {
					original_tag = POL
				}
				controller = {
					original_tag = POL
				}
			}
			OR = {
				POL = {
					has_civil_war = no
				}
				#custom_trigger_tooltip = {
					#tooltip = GER_danzig_trigger_polish_civil_war
					AND = {
						any_other_country = {
							original_tag = POL
							has_civil_war = yes
							OR = {
								is_in_faction_with = ROOT
								has_volunteers_amount_from = {
									tag = GER
									count > 0
								}
							}
						}
					}
				#}
			}
		}

		bypass = {
			OR = {
				has_war_with = POL
				is_in_faction_with = POL
				NOT = {
					85 = {
						controller = {
							original_tag = POL 
						}
						owner = {
							original_tag = POL 
						}
					}
				}
			}
		}
		cancel_if_invalid = no
		x = 0
		y = 3
		relative_position_id = GER_demand_memel
		cost = 8
		ai_will_do = {
			factor = 10	
			modifier = {
				factor = 0
				OR = {
					date < 1939.1.1
					any_neighbor_country = {
						has_war_with = GER
						NOT = { has_capitulated = yes }
						strength_ratio = {
							tag = GER
							ratio > 0.6
						}
					}
				}
			}
		}	
		completion_reward = {
			add_named_threat = { threat = 5 name = GER_danzig_or_war }
			if = {
				limit = {
					85 = {
						controller = {
							tag = POL
							has_civil_war = no
						}
					}
				}
				effect_tooltip = {
					transfer_state = 85
					add_state_core = 85
					transfer_state = 807
					add_state_core = 807
					remove_state_claim = 86
					remove_state_claim = 762
				}
				POL = {
					country_event = { id = germany.86 }
					if = {
						limit = { NOT = { is_in_faction_with = ROOT } }
						custom_effect_tooltip = needs_approval
					}
					if = {
						limit = { 
							is_in_faction_with = ROOT 
							ROOT = { is_faction_leader = yes }
						}
						custom_effect_tooltip = GER_danzig_or_war_POL_faction_GER_leader
					}
					if = {
						limit = {
							is_in_faction_with = ROOT 
							NOT = { ROOT = { is_faction_leader = yes } }
						}
						custom_effect_tooltip = GER_danzig_or_war_POL_faction_GER_noleader
					}
				}
			}
			if = {
				limit = {
					85 = {
						owner = {
							OR = {
								original_tag = POL
								tag = POL
							}
						}
					}
				}
				random_other_country = {
					limit = {
						original_tag = POL
						has_civil_war = yes
						OR = {
							is_in_faction_with = GER
							has_volunteers_amount_from = {
								tag = GER
								count > 0
							}
						}
					}
					country_event = { id = germany.113 days = 1 }
				}
				custom_effect_tooltip = GER_danzig_or_war_POL_civil_war
			}
		}
	}
	
	focus = {
		id = GER_weserubung
		icon = GFX_goal_generic_more_territorial_claims
		prerequisite = { focus = GER_danzig_or_war }
		mutually_exclusive = { focus = GER_denmark_friend }
		will_lead_to_war_with = DEN 
		will_lead_to_war_with = NOR

		bypass = {
			AND = {
				DEN = { 
					OR = {
						is_in_faction_with = ROOT
						exists = no
					}
				}
				NOR = { 
					OR = {
						is_in_faction_with = ROOT
						exists = no
					}
				}
			}
		}
		
		available = {
			10 = {
				controller = {
					OR = {
						is_in_faction_with = ROOT
						original_tag = GER
					}
				}
			}
			85 = {
				controller = {
					OR = {
						is_in_faction_with = ROOT
						original_tag = GER
					}
				}
			}
			OR = { 
				has_war_with = ENG
				NOT = {country_exists = ENG}
			}
		}
		
		x = 1
		y = 2
		relative_position_id = GER_danzig_or_war
		cost = 4
		ai_will_do = {
			factor = 10	
			modifier = {
				factor = 0
				date < 1939.1.1
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {

			if = {
				limit = {
					NOT = { DEN = { is_in_faction_with = GER } }
					country_exists = DEN					
				} 
				create_wargoal = {
					type = take_state_focus
					target = DEN
					expire = 0
					generator = { 37 }
				}
			}


			if = {
				limit = {
					NOT = { NOR = { is_in_faction_with = GER } }
					country_exists = NOR					
				} 
				create_wargoal = {
					type = take_state_focus
					target = NOR
					expire = 0
					generator = { 110 }
				}
			}
			
			add_tech_bonus = {
				name = tp_bonus
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = tp_tech
			}
			hidden_effect = {
				news_event = { hours = 6 id = news.233 }
			}	
		}
	}
	
	focus = {
		id = GER_around_maginot
		icon = GFX_goal_generic_attack_allies
		prerequisite = { focus = GER_danzig_or_war focus = GER_poland_friend}
		
		available = {
			OR = {
				NOT = { HOL = { is_in_faction_with = GER } }
				NOT = { BEL = { is_in_faction_with = GER } }
				NOT = { LUX = { is_in_faction_with = GER } }
			}
		}

		bypass = {
			HOL = {
				OR = {
					exists = no
					is_in_faction_with = GER
					has_war_with = ROOT
				}
			}
			BEL = {
				OR = {
					exists = no
					is_in_faction_with = GER
					has_war_with = ROOT
				}
			}
			LUX = {
				OR = {
					exists = no
					is_in_faction_with = GER
					has_war_with = ROOT
				}
			}
		}

		historical_ai = {
			date > 1939.1.1
			NOT = {
				any_home_area_neighbor_country = {
					NOT = { tag = FRA }
					has_war_with = ROOT
					surrender_progress < 0.5
				}
			}
		}
		will_lead_to_war_with = BEL
		will_lead_to_war_with = HOL
		will_lead_to_war_with = LUX
		will_lead_to_war_with = FRA
		x = -1
		y = 2
		relative_position_id = GER_danzig_or_war
		cost = 4
		ai_will_do = {
			factor = 10			
			modifier = {
				factor = 0.05
				date < 1939.1.1
			}			
			modifier = {
				factor = 0.2
				any_home_area_neighbor_country = {
					NOT = { tag = FRA }
					has_war_with = ROOT
					surrender_progress < 0.5
				}
			}
		}	
		completion_reward = {
			#limit wargoals to when it makes sense to give them. No faction, war or non exist
			if = { 
				limit = {
					country_exists = BEL
					NOT = { BEL = { is_in_faction_with = GER } }
					NOT = { has_war_with = BEL }
				}
				create_wargoal = {
					type = take_state_focus
					target = BEL
					expire = 0
					generator = { 6 }
				}
			}
			if =  {
				limit = {
					country_exists = HOL
					NOT = { HOL = { is_in_faction_with = GER } }
					NOT = { has_war_with = HOL }
					NOT = { HOL = { has_completed_focus = HOL_cave_to_the_germans } }
				}
				create_wargoal = {
					type = take_state_focus
					target = HOL
					expire = 0
					generator = { 7 }
				}
			}
			if =  {
				limit = {
					country_exists = HOL
					NOT = { HOL = { is_in_faction_with = GER } }
					NOT = { has_war_with = HOL }
					HOL = { has_completed_focus = HOL_cave_to_the_germans } 
					NOT = { HOL = { has_completed_focus = HOL_the_netherlands_first } }
				}
				HOL = {
					country_event = { id = mtg_germany.1 hours = 6 }
				}
			}
			if = {
				limit = {
					country_exists = LUX
					NOT = { LUX = { is_in_faction_with = GER } }
					NOT = { has_war_with = LUX }
				}
				create_wargoal = {
					type = take_state_focus
					target = LUX
					expire = 0
					generator = { 8 }
				}			
			}
			hidden_effect = {
				news_event = { hours = 6 id = news.234 }
			}
		}
	}
	
	focus = {
		id = GER_czech_friend
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = GER_anschluss }
		mutually_exclusive = { focus = GER_demand_sudetenland }
		available = { 
			has_army_manpower = { size > 749999 }
			NOT = { has_war_with = CZE }
			CZE = {
				custom_trigger_tooltip = {
					tooltip = GER_alone_or_peace_faction_tt
					is_alone_or_in_faction_at_peace_with_GER = yes
				}
				exists = yes
			}
		}
		bypass = {
			CZE = { is_in_faction_with = GER }
		}
		cancel = {
			OR = {
				NOT = { country_exists = CZE }
				has_war_with = CZE
			}
		}
		cancel_if_invalid = no
		x = -4
		y = 1
		relative_position_id = GER_anschluss
		cost = 10
		ai_will_do = {
			factor = 2.5
			modifier = {
				factor = 0
				CZE = {
					has_opinion = {
						target = GER
						value < 0
					}
				}
			}
			modifier = {
				factor = 5
				CZE = {
					has_opinion = {
						target = GER
						value > 20
					}
				}
			}
			modifier = {
				factor = 4
				CZE = {
					has_completed_focus = CZE_german_leanings
				}
			}
			modifier = {
				factor = 4
				CZE = {
					has_completed_focus = CZE_deliver_sudetenland
				}
			}
			modifier = {
				factor = 2
				CZE = {
					has_completed_focus = CZE_go_right
				}
			}
		}		
		completion_reward = {
			CZE = {
				add_opinion_modifier = { target = GER modifier = ger_cze_diplomatic_focus }
				if = {
					limit = {
						GER = {
							has_government = fascism
						}
					}
					add_timed_idea = { idea = fascist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = communism
						}
					}
					add_timed_idea = { idea = communist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = democratic
						}
					}
					add_timed_idea = { idea = democratic_influence days = 1095 }
				}
				country_event = { id = generic.1 }
			}
			hidden_effect = {
				news_event = { hours = 6 id = news.200 }
			}
		}
	}
	
	focus = {
		id = GER_demand_sudetenland
		icon = GFX_goal_demand_sudetenland
		prerequisite = { focus = GER_anschluss }
		mutually_exclusive = { focus = GER_czech_friend }
		will_lead_to_war_with = CZE
		will_lead_to_war_with = FRA
		available = {
			is_subject = no
			has_army_manpower = { size > 724999 } #80 div		
			NOT = {
				AND = {
					CZE = { is_in_faction_with = GER }
					has_war = yes
				}
			}
		}
		bypass = {
			OR = {
				CZE = { is_puppet_of = GER }
				69 = { 
					CONTROLLER = {
						has_war_with = GER
					}
				}
				GER = { controls_state = 69 }
			}
		}
		cancel = {
			is_puppet = yes
		}
		cancel_if_invalid = yes
		x = -2
		y = 1
		relative_position_id = GER_anschluss
		cost = 10
		ai_will_do = {
			factor = 10
		}	
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if =  {
				limit = {
					OR = {
						ENG = { exists = no }
						ENG = {
							is_subject = yes
						}
						ENG = { has_completed_focus = ENG_a_change_in_course }
						has_war_with = ENG
						has_war_with = FRA
						AND = {
							CZE = { is_subject = yes }
							OR = {
								CZE = { 
									NOT = {
										is_puppet_of = HUN
									}
								}
								NOT = { has_dlc = "Death or Dishonor" }
							}
						}
						CZE = { has_war_with = ENG }
						CZE = { has_war_with = FRA }
						CZE = { is_in_faction_with = GER }
					}
					CZE = { controls_state = 69 }
				}
				if = {
					limit = {
						CZE = { is_subject = no }
					}
					CZE = {
						country_event = { id = germany.122 }
					}
					else = {
						CZE = {
							OVERLORD = { country_event = { id = germany.122 } }
						}
					}
				}
			}
			if = {
				limit = {
					has_dlc = "Death or Dishonor"
					CZE = { NOT = { is_in_faction_with = GER } } #in case AH is in faction with GER and dragged a subject CZE along.
					OR = {
						69 = { is_owned_by = HUN } #AH restored
						AND = {
							CZE = { is_subject_of = HUN }
							69 = { is_owned_by = CZE }
						}
					}
				}
				HUN = {
					country_event = germany.122
				}
			}
			if = {
				limit = {
					ENG = { exists = yes }
					ENG = { is_subject = no }
					NOT = { ENG = { has_completed_focus = ENG_a_change_in_course } }
					NOT = { has_war_with = ENG }
					NOT = { has_war_with = FRA }
					CZE = { is_subject = no }
					NOT = {
						AND = {
							CZE = { is_in_faction_with = HOL }
							HOL = { is_faction_leader = yes }
							HOL = { has_completed_focus = HOL_foundations_for_a_european_union }
						}
					}
					CZE = { NOT = { is_in_faction_with = GER } }
					CZE = { NOT = { has_war_with = ENG } }
					CZE = { controls_state = 69 }
					OR = {
						HUN = {
							NOT = {
								has_completed_focus = HUN_protect_czechoslovakia #DOD only
							}
						}
						CZE = {
							has_country_flag = HUN_AH_CZE_refused
						}
					}
				}
				ENG = {
					country_event = germany.40
				}
				add_named_threat = { threat = 4 name = GER_demand_sudetenland_threat }
			}
			if = {
				limit = {
					HOL = { exists = yes }
					HOL = { is_subject = no }
					HOL = { has_completed_focus = HOL_foundations_for_a_european_union }
					HOL = { is_faction_leader = yes }
					NOT = { has_war_with = HOL }
					NOT = { has_war_with = FRA }
					CZE = { is_subject = no }
					CZE = { is_in_faction_with = HOL }
					CZE = { controls_state = 69 }
					OR = {
						HUN = {
							NOT = {
								has_completed_focus = HUN_protect_czechoslovakia #DOD only
							}
						}
						CZE = {
							has_country_flag = HUN_AH_CZE_refused
						}
					}
				}
				HOL = {
					country_event = germany.40
				}
				add_named_threat = { threat = 3 name = GER_demand_sudetenland_threat }
			}
			69 = {
				add_claim_by = GER
			}
			if = { 
				limit = {
					NOT = { CZE = { controls_state = 69 } }
					NOT = {
						69 = { is_controlled_by = HUN }
						HUN = { has_completed_focus = HUN_protect_czechoslovakia }
					}
					69 = {
						controller = {
							NOT = { is_in_faction_with = GER }
						}
					}
				}
				69 = { #This technically allows nations who are in a war with CZE to give away their land... diplomacy never looked so real.
					controller = {
						country_event = { id = germany.1041 days = 2 random_days = 10 }
					}
				}
				add_named_threat = { threat = 3 name = GER_demand_sudetenland_threat }
			}
		}
	}

	focus = {
		id = GER_first_vienna_award
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = GER_demand_sudetenland }
		bypass = {
			OR = {
				AND = {
					NOT = { CZE = { controls_state = 664 } }
					NOT = { owns_state = 664 }
				}
				HUN = { is_friend_or_potential_friend_of_GER = no }
				CZE = { is_puppet_of = GER }
				CZE = { is_in_faction_with = GER }
			}
		}
		available = {
			is_subject = no
			owns_state = 69
		}
		x = 0
		y = 1
		relative_position_id = GER_demand_sudetenland
		cost = 10
		ai_will_do = {
			factor = 10
		}	
		completion_reward = {
			HUN = {
				country_event = { id = germany.51 }
				add_opinion_modifier = { target = GER modifier = GER_first_vienna_award_GER }
			}
			every_other_country = {
				limit = {
					is_faction_leader = yes
				}
				reverse_add_opinion_modifier = { target = HUN modifier = GER_first_vienna_award_other }
			}
		}
	}

	focus = {
		id = GER_end_of_czechoslovakia
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = GER_first_vienna_award }
		available = { 
			is_subject = no
			has_army_manpower = { size > 749999 }
			NOT = { has_war_with = CZE }
		}

		bypass = {
			OR = {
				CZE = { is_puppet_of = GER }
				CZE = { is_in_faction_with = GER }
				has_war_with = CZE
				NOT = { country_exists = CZE }
				any_other_country = {
					is_in_faction_with = GER
					CZE = {
						is_puppet_of = PREV
					}
				}
			}
		}

		x = 0
		y = 1
		relative_position_id = GER_first_vienna_award
		cost = 10
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = { 
					country_exists = CZE 
					CZE = {
						NOT = {
							is_subject_of = HUN
							is_in_faction_with = POL
						}
						has_war = no
					}
					NOT = { POL = { has_guaranteed = CZE } }
				}
				set_global_flag = end_of_czechoslovakia
				CZE = { country_event = germany.53 }
			}
			if = {
				limit = { 
					OR = {
						CZE = {
							is_subject_of = HUN
						}
						HUN = {
							owns_state = 9#Prague - AH annexed CZE
						}
					}
				}
				add_state_claim = 9
				add_state_claim = 75
				create_wargoal = {
					type = take_state_focus
					target = CZE
					generator = { 9 75 }
				}
			}
			if = {
				limit = { 
					OR = { #If Poland has done Miedzymorze or Baltic Alliance
						CZE = {
							is_in_faction_with = POL
						}
						CZE = {
							has_war = yes
						}
						POL = { has_guaranteed = CZE }
					}
				}
				add_state_claim = 9
				add_state_claim = 75
				create_wargoal = {
					type = take_state_focus
					target = CZE
					generator = { 9 75 }
				}
			}
			if = {
				limit = { NOT = { country_exists = CZE } }
				country_event = { id = germany.55 hours = 6 }
			}
			add_named_threat = { threat = 5 name = GER_end_of_czechoslovakia }
			custom_effect_tooltip = end_of_czechoslovakia_mefo_bills_tt
		}
	}

	focus = {
		id = GER_second_vienna_award
		icon = GFX_goal_generic_cavalry
		prerequisite = { focus = GER_czech_friend focus = GER_end_of_czechoslovakia }
		x = 0
		y = 4
		relative_position_id = GER_czech_friend
		cost = 10
		ai_will_do = {
			factor = 10
		}
		available = {
			is_subject = no
			has_army_manpower = { size > 749999 }
			has_capitulated = no
		}
		bypass = {
			OR = {
				AND = {
					OR = {
						HUN = {
							NOT = { has_government = fascism }
							is_friend_or_potential_friend_of_GER = no
						}
						ROM = {
							OR = {
								AND = {
									NOT = { controls_state = 76 }
									NOT = { controls_state = 83 }
									NOT = { controls_state = 84 }
								}
								has_war_with = HUN
								AND = {
									is_in_faction_with = GER
									HUN = { NOT = { is_in_faction_with = GER } }#GER should not want to give territory to Hungary if Romania joined the axis early.
								}
							}
						}
					}
					OR = {
						BUL = { is_friend_or_potential_friend_of_GER = no }
						ROM = {
							OR = {
								NOT = { controls_state = 77 }
								has_war_with = BUL					
							}
						}					
					}
				}
				HUN = { exists = no } 
				ROM = { exists = no	}
				HUN = { has_capitulated = yes }
				ROM = { has_capitulated = yes }
				HUN = { is_subject_of = ROM } #just rude
			}
		}
		completion_reward = {
			if = {
				limit = {
					HUN = {
						is_friend_or_potential_friend_of_GER = yes
					}
					ROM = {
						controls_state = 76
						NOT = { has_war_with = HUN }
					}
				}
				country_event = { id = germany.20 }
			}
		}
	}

	focus = {
		id = GER_italy_ally
		icon = GFX_italy_friendly
		prerequisite = { focus = GER_rhineland }
		available = {
			NOT = { has_war_with = ITA }
			ITA = {
				has_country_leader = {
					character = ITA_benito_mussolini
					ruling_only = yes
				}
			}
			NOT = { has_country_flag = ENG_ditched_the_italians_flag }
		}

		bypass = {
			OR = {
				is_in_faction_with = ITA
				has_war_with = ITA
				NOT = { country_exists = ITA }
				ITA = {
					NOT = {
						ITA = {
							has_country_leader = {
								character = ITA_benito_mussolini
								ruling_only = yes
							}
						}
					}
				}
			}
		}

		x = 8
		y = 1
		relative_position_id = GER_rhineland
		cost = 10
		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes

		completion_reward = {
			ITA = {
				add_opinion_modifier = { target = GER modifier = ger_ita_alliance_focus }
			}
		}
	}
	
	focus = {
		id = GER_nationalist_spain_ally
		icon = GFX_ally_spain
		prerequisite = { focus = GER_meet_with_franco }
		available = {
			if = {
				limit = {
					NOT = { has_dlc = "La Resistance" }
				}
				SPR = { has_civil_war = no }
				any_other_country = {
					original_tag = SPR
					has_government = fascism
					NOT = { has_war_with = GER }
					NOT = { is_in_faction_with = GER }
				}
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				SPA = {
					exists = yes
					has_civil_war = no
					NOT = { has_war_with = GER }
					NOT = { is_in_faction_with = GER }
					NOT = { has_completed_focus = SPA_join_the_allies }
				}
			}
			FRA = {
				OR = {
					exists = no
					has_capitulated = yes
					has_government = fascism
				}
			}
		}
		
		#bypass = {
		#	any_other_country = {
		#		original_tag = SPR
		#		has_government = fascism
		#		is_in_faction_with = GER
		#	}
		#}
		x = -1
		y = 4
		relative_position_id = GER_condor_legion
		cost = 10
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					is_historical_focus_on = yes
					date < 1942.01.01
					surrender_progress > 0
					AND = {
						has_war_with = ENG
						ENG = { surrender_progress < 0.2 }
					}
				}
			}
		}
		completion_reward = {
			if = {
				limit = {
					OR = { 
						AND = {
							NOT = { has_dlc = "La Resistance" }
							NOT = { country_exists = SPR }
							SPR = { NOT = { has_government = fascism } }
						}
						AND = {
							has_dlc = "La Resistance"
							NOT = { country_exists = SPA }
						}
					}
				}
				custom_effect_tooltip = GER_nationalist_spain_ally_tt
			}
			if = {
				limit = {
					NOT = { has_dlc = "La Resistance" }
				}
				random_other_country = {
					limit = {
						original_tag = SPR
						has_government = fascism
					}
					remove_ideas = SPA_recovering_from_civil_war
					add_opinion_modifier = { target = GER modifier = ger_spa_alliance_focus }
				}
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				SPA = {
					remove_ideas = SPA_recovering_from_civil_war
					add_opinion_modifier = { target = GER modifier = ger_spa_alliance_focus }
				}
			}
		}
	}



	focus = {
		id = GER_danzig_vs_slovakia
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = GER_end_of_czechoslovakia }
		mutually_exclusive = { focus = GER_danzig_or_war }
		available = {
			is_subject = no
			OR = {
				SLO = {
					exists = yes
					is_in_faction_with = GER
				}
				owns_state = 70
			}
			NOT = { owns_state = 85 }
			NOT = { has_war_with = POL }
			POL = { owns_state = 72 }
		}


		x = 0
		y = 1
		relative_position_id = GER_end_of_czechoslovakia
		cost = 10
		ai_will_do = {
			factor = 0
		}	
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			POL = {
				country_event = { id = germany.80 days = 1 }
			}
		}
	}

	focus = {
		id = GER_poland_friend
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = GER_danzig_vs_slovakia }
		available = {
			NOT = { has_global_flag = sov_yes_pact }
			NOT = { has_war_with = POL }
			POL = {
				custom_trigger_tooltip = {
					tooltip = GER_alone_or_peace_faction_tt
					is_alone_or_in_faction_at_peace_with_GER = yes
				}
			}
		}
		bypass = {
			is_in_faction_with = POL
			is_alone_or_in_faction_at_peace_with_GER = no
		}
		x = 0
		y = 1
		relative_position_id = GER_danzig_vs_slovakia
		cost = 10
		ai_will_do = {
			factor = 0
		}	
		completion_reward = {
			POL = {
				add_opinion_modifier = { target = GER modifier = ger_pol_diplomacy_focus }
				if = {
					limit = {
						GER = {
							has_government = fascism
						}
					}
					add_timed_idea = { idea = fascist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = communism
						}
					}
					add_timed_idea = { idea = communist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = democratic
						}
					}
					add_timed_idea = { idea = democratic_influence days = 1095 }
				}
				country_event = { id = generic.1 }
			}
		}
	}

	focus = {
		id = GER_war_with_france
		icon = GFX_fra_war
		prerequisite = { focus = GER_around_maginot focus = GER_weserubung }
		available = {
			is_subject = no			
			NOT = { is_in_faction_with = FRA }
		}
		x = 1
		y = 1
		relative_position_id = GER_around_maginot
		cost = 10
		bypass = {
			OR = {
				NOT = { country_exists = FRA }
				has_war_with = FRA
			}
		}
		historical_ai = {
			date > 1939.1.1
			NOT = {
				any_neighbor_country = {
					has_war_with = ROOT
				}		
			}
		}
		ai_will_do = {
			factor = 10			
			modifier = {
				factor = 0.05
				date < 1939.1.1
			}
		}	
		completion_reward = {
			add_named_threat = { threat = 5 name = GER_war_with_france_threat }
 			create_wargoal = {
 				type = take_state_focus
 				target = FRA
 				expire = 0
 				generator = { 28 }
 			}
		}
	}	

	focus = {
		id = GER_operation_tannenbaum
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = GER_war_with_france }
		available = {
			is_subject = no
			NOT = { is_in_faction_with = SWI }
		}
		bypass = {
			NOT = { country_exists = SWI }
			has_war_with = SWI
		}
		cancel_if_invalid = yes
		will_lead_to_war_with = SWI
		x = 0
		y = 1
		relative_position_id = GER_war_with_france
		cost = 10
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = SWI
				expire = 0
			}
		}
	}

	focus = {
		id = GER_reintegrate_luxemburg_and_alsace_lorraine
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = GER_war_with_france }
		available = {
			is_subject = no
			has_full_control_of_state = 8
			has_full_control_of_state = 28
			OR = {
				FRA = { has_capitulated = yes }
				FRA = { is_subject_of = GER }
				NOT = {
					any_country = {
						original_tag = FRA
						exists = yes
					}
				}
				owns_state = 28
			}
			OR = {
				LUX = { has_capitulated = yes }
				NOT = {
					any_country = {
						original_tag = LUX
						exists = yes
					}
				}
			}
		}
		bypass = {
		}
		cancel_if_invalid = yes
		x = -2
		y = 1
		relative_position_id = GER_war_with_france
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			add_state_core = 8
			add_state_core = 28
			if = {
				limit = {
					NOT = { owns_state = 28 }
				}
				transfer_state = 28
			}
			28 = { set_state_name = "Elsass-Lothringen" }
			set_province_name = { id = 9503 name = "Strassburg" }
			set_province_name = { id = 678 name = "Mulhausen" }
			if = {
				limit = {
					has_global_flag = flag_franco_british_union
				}
				ENG = {
					country_event = { id = wtt_germany.63 }
				}
			}
			else_if = {
				limit = {
					any_country = {
						original_tag = FRA
						exists = yes
					}
				}
				FRA = {
					country_event = { id = wtt_germany.63 }
				}
			}
			if = {
				limit = {
					any_country = {
						original_tag = LUX
						exists = yes
					}
				}
				LUX = {
					country_event = { id = wtt_germany.64 }
				}
			}
		}
	}

	
	focus = {
		id = GER_naval_rearmament
		icon = GFX_goal_generic_build_navy
		x = 45
		y = 1

		offset = {
			x = -8
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = GER_oppose_hitler
			}
		}

		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		bypass = {
			custom_trigger_tooltip =  {
				tooltip = naval_effort_tt
				NOT = {
					any_owned_state = {
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
				}
			}
		}

		complete_tooltip = {
			every_state = {
				limit = {	has_state_flag = GER_naval_rearmament_2dockyards }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			every_state = {
				limit = {	has_state_flag = GER_naval_rearmament_1dockyard }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_naval_rearmament_2dockyards
			}
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				set_state_flag = GER_naval_rearmament_1dockyard
			}
		}
	}
	
	focus = {
		id = GER_naval_effort
		text = naval_effort
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = GER_naval_rearmament }
		x = 0
		y = 3
		relative_position_id = GER_naval_rearmament
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		complete_tooltip = {
			navy_experience = 25
			every_state = {
				limit = { has_state_flag = GER_naval_effort_2dockyards }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = dd_bonus
				bonus = 1.0
				uses = 1
				category = dd_tech
			}
			add_tech_bonus = {
				name = cr_bonus
				bonus = 1.0
				uses = 1
				category = cl_tech
				category = ca_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			navy_experience = 25
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_naval_effort_2dockyards
			}
			add_tech_bonus = {
				name = dd_bonus
				bonus = 1.0
				uses = 1
				category = dd_tech
			}
			add_tech_bonus = {
				name = cr_bonus
				bonus = 1.0
				uses = 1
				category = cl_tech
				category = ca_tech
			}
		}
	}

	focus = {
		id = GER_naval_effort2
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = GER_naval_effort }
		x = 0
		y = 1
		relative_position_id = GER_naval_effort
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = GER_naval_effort_2dockyards }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
					NOT = { has_state_flag = GER_naval_effort2_2dockyards }
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_naval_effort2_2dockyards
			}
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
					NOT = { has_state_flag = GER_naval_effort2_2dockyards }
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_naval_effort2_2dockyards
			}
		}
	}

	focus = {
		id = GER_plan_z
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = GER_naval_effort }
		mutually_exclusive = { focus = GER_u_boat_effort focus = GER_rebuild_the_high_seas_fleet focus = GER_accept_british_naval_dominance }
		x = -1
		y = 3
		relative_position_id = GER_naval_effort
		cost = 10
		ai_will_do = {
			factor = 0.25
		}	

		available_if_capitulated = yes

		complete_tooltip = {
			navy_experience = 50
			every_state = {
				limit = { has_state_flag = GER_plan_z_dockyards }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = bc_bonus
				bonus = 1.0
				uses = 1
				category = bc_tech
			}
			add_tech_bonus = {
				name = bb_bonus
				bonus = 1.0
				uses = 1
				category = bb_tech
				category = shbb_tech
			}
			add_tech_bonus = {
				name = cv_bonus
				bonus = 1.0
				uses = 1
				category = cv_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			navy_experience = 50
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_plan_z_dockyards
			}
			add_tech_bonus = {
				name = bc_bonus
				bonus = 1.0
				uses = 1
				category = bc_tech
			}
			add_tech_bonus = {
				name = bb_bonus
				bonus = 1.0
				uses = 1
				category = bb_tech
				category = shbb_tech
			}
			add_tech_bonus = {
				name = cv_bonus
				bonus = 1.0
				uses = 1
				category = cv_tech
			}
		}
	}

	focus = {
		id = GER_u_boat_effort
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = GER_naval_effort }
		mutually_exclusive = { focus = GER_plan_z focus = GER_rebuild_the_high_seas_fleet focus = GER_accept_british_naval_dominance }
		x = 1
		y = 3
		relative_position_id = GER_naval_effort
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		complete_tooltip = {
			navy_experience = 25
			every_state = {
				limit = { has_state_flag = GER_u_boat_effort_2dockyards }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = GER_u_boat_effort
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				set_technology = { cruiser_submarines = 1 }
			}
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
		completion_reward = {
			navy_experience = 25
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_u_boat_effort_2dockyards
			}
			add_tech_bonus = {
				name = GER_u_boat_effort
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				set_technology = { cruiser_submarines = 1 }
			}
		}
	}

	focus = {
		id = GER_trade_interdiction
		icon = GFX_goal_generic_wolf_pack
		prerequisite = { focus = GER_u_boat_effort }
		x = 0
		y = 1
		relative_position_id = GER_u_boat_effort
		cost = 10
		ai_will_do = {
			factor = 1
		}
			
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = ti_bonus
				name = GER_trade_interdiction
				cost_reduction = 0.25
				uses = 2
				category = trade_interdiction_tree
			}
		}
	}

	focus = {
		id = GER_modular_construction
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = GER_trade_interdiction }
		x = 0
		y = 1
		relative_position_id = GER_trade_interdiction
		cost = 10
		ai_will_do = {
			factor = 1
		}
			
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = GER_modular_construction
		}
	}

	focus = {
		id = GER_denmark_friend
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = GER_plan_z }
		mutually_exclusive = { focus = GER_weserubung }

		available = {
			has_government = fascism
			country_exists = DEN
			NOT = {
				has_war_with = DEN
			}
			DEN = {
				custom_trigger_tooltip = {
					tooltip = GER_alone_or_peace_faction_tt
					is_alone_or_in_faction_at_peace_with_GER = yes
				}
			}
		}
		bypass = {
			OR = {
				is_in_faction_with = DEN
			}
		}
		x = -2
		y = 1
		relative_position_id = GER_plan_z
		cost = 10
		ai_will_do = {
			factor = 1
		}	
		completion_reward = {
			DEN = {
				add_opinion_modifier = { target = GER modifier = ger_naval_intimidation_focus }
				if = {
					limit = {
						GER = {
							has_government = fascism
						}
					}
					add_timed_idea = { idea = fascist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = communism
						}
					}
					add_timed_idea = { idea = communist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = democratic
						}
					}
					add_timed_idea = { idea = democratic_influence days = 1095 }
				}
				country_event = { id = generic.1 }
			}
			hidden_effect = {
				news_event = { hours = 6 id = news.232 }
			}
		}
	}

	focus = {
		id = GER_norway_friend
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = GER_denmark_friend }
		available = {
			has_government = fascism
			NOT = { has_war_with = NOR }
			NOR = {
				custom_trigger_tooltip = {
					tooltip = GER_alone_or_peace_faction_tt
					is_alone_or_in_faction_at_peace_with_GER = yes
				}
			}
		}
		bypass = {
			OR = {
				is_in_faction_with = NOR
				NOT = { country_exists = NOR }
			}
		}
		x = -1
		y = 1
		relative_position_id = GER_denmark_friend
		cost = 10
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_RESEARCH }	
		completion_reward = {
			NOR = {
				add_opinion_modifier = { target = GER modifier = ger_naval_intimidation_focus }
				if = {
					limit = {
						GER = {
							has_government = fascism
						}
					}
					add_timed_idea = { idea = fascist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = communism
						}
					}
					add_timed_idea = { idea = communist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = democratic
						}
					}
					add_timed_idea = { idea = democratic_influence days = 1095 }
				}
				country_event = { id = generic.1 }
			}
			
			add_tech_bonus = {
				name = tp_bonus
				bonus = 1.0
				uses = 2
				technology = transport
				technology = landing_craft
				technology = tank_landing_craft
			}			
		}
	}

	focus = {
		id = GER_dutch_friend
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = GER_denmark_friend }
		available = {
			has_government = fascism
			NOT = { has_war_with = HOL }
			HOL = {
				custom_trigger_tooltip = {
					tooltip = GER_alone_or_peace_faction_tt
					is_alone_or_in_faction_at_peace_with_GER = yes
				}
			}
		}
		bypass = {
			OR = {
				HOL = { is_in_faction_with = GER }
				NOT = { country_exists = HOL }
			}
		}
		x = 1
		y = 1
		relative_position_id = GER_denmark_friend
		cost = 10
		ai_will_do = {
			factor = 1
		}	
		completion_reward = {
			HOL = {
				add_opinion_modifier = { target = GER modifier = ger_naval_intimidation_focus }
				if = {
					limit = {
						GER = {
							has_government = fascism
						}
					}
					add_timed_idea = { idea = fascist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = communism
						}
					}
					add_timed_idea = { idea = communist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = democratic
						}
					}
					add_timed_idea = { idea = democratic_influence days = 1095 }
				}
				country_event = { id = generic.1 }
			}
			JAP = {
				add_opinion_modifier = { target = GER modifier = befriended_the_dutch }
			}
		}
	}

	focus = {
		id = GER_sweden_friend
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = GER_norway_friend }
		available = {
			has_government = fascism
			NOT = { has_war_with = SWE }
			SWE = {
				custom_trigger_tooltip = {
					tooltip = GER_alone_or_peace_faction_tt
					is_alone_or_in_faction_at_peace_with_GER = yes
				}
			}
		}
		bypass = {
			OR = {
				SWE = { is_in_faction_with = GER }
				NOT = { country_exists = SWE }
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_norway_friend
		cost = 10
		ai_will_do = {
			factor = 1
		}	
		completion_reward = {
			SWE = {
				add_opinion_modifier = { target = GER modifier = ger_naval_intimidation_focus }
				if = {
					limit = {
						GER = {
							has_government = fascism
						}
					}
					add_timed_idea = { idea = fascist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = communism
						}
					}
					add_timed_idea = { idea = communist_influence days = 1095 }
				}
				if = {
					limit = {
						GER = {
							has_government = democratic
						}
					}
					add_timed_idea = { idea = democratic_influence days = 1095 }
				}
				country_event = { id = generic.1 }
				if = {
					limit = { has_idea = neutrality_idea }
					remove_ideas = neutrality_idea
				}
			}
		}
	}

	focus = {
		id = GER_improve_national_spirit
		prerequisite = { focus = GER_anschluss }
		icon = GFX_goal_support_fascism
		available = {
			custom_trigger_tooltip = {
				tooltip = GER_improve_national_spirit_tooltip
				OR = {
					GER = { controls_state = 126 }
					any_other_country = {
						is_in_faction_with = GER
						controls_state = 126
					}
				}
				OR = {
					GER = { controls_state = 16 }
					any_other_country = {
						is_in_faction_with = GER
						controls_state = 16
					}
				}
			}
		}
		cancel = {
			AND = {
				has_war = no
				126 = {
					owner = {
						NOT = { tag = GER }
						NOT = { is_in_faction_with = GER }
					}
				}
				16 = {
					owner = {
						NOT = { tag = GER }
						NOT = { is_in_faction_with = GER }
					}
				}
			}
		}
		cancel_if_invalid = no
		x = 4
		y = 1
		relative_position_id = GER_anschluss
		cost = 10
		ai_will_do = {
			factor = 10
		}	
		completion_reward = {
			remove_ideas = sour_loser
			add_ideas = triumphant_will
		}
	}

	############################################
	############## BALKAN BRANCH ###############
	############################################

	focus = {
		id = GER_demand_slovenia
		prerequisite = { focus = GER_anschluss }
		icon = GFX_goal_generic_political_pressure
		available = {
			is_subject = no
			controls_state = 4
			controls_state = 152
			has_army_manpower = { size > 749999 } #ca 80 div
		}
		bypass = {
			OR = {
				NOT = {
					AND = {
						OR = {
							YUG = { owns_state = 102 }
							102 = { owner = { is_subject_of = YUG } }
						}
						OR = {
							YUG = { owns_state = 853 }
							853 = { owner = { is_subject_of = YUG } }
						}
					}
				}
				has_war_with = YUG
				is_in_faction_with = YUG
				YUG = { is_subject_of = GER }
				YUG = { has_non_aggression_pact_with = GER }
				YUG = { has_opinion_modifier = tripartite_pact_opinion }
			}
		}
		cancel_if_invalid = yes
		x = 2
		y = 1
		relative_position_id = GER_anschluss
		cost = 10
		ai_will_do = {
			factor = 1
		}	
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_named_threat = { threat = 2 name = GER_demand_slovenia_threat }
			YUG = { add_opinion_modifier = { target = GER modifier = GER_demand_slovenia_YUG } }
			if = {
				limit = {
					NOT = { has_war_with = ENG }
					YUG = { 
						is_subject = no
						NOT = { has_war_with = ENG }
					}
				}
				ENG = {
					country_event = { id = britain.14 }
				}
			}
			if = {
				limit = {
					OR = {
						YUG = { is_puppet = yes }
						YUG = { has_war_with = ENG }
						has_war_with = ENG
					}
				}
				create_wargoal = {
					type = annex_everything
					target = YUG
					expire = 0
				}
			}
		}
	}

	focus = {
		id = GER_first_ljubljana_award
		prerequisite = { focus = GER_demand_slovenia }
		icon = GFX_goal_generic_military_deal
		available = {
			is_subject = no
			NOT = { is_in_faction_with = YUG }
			NOT = { YUG = { has_non_aggression_pact_with = GER } }
			NOT = { YUG = { has_opinion_modifier = tripartite_pact_opinion } }
			OR = {
				AND = {
					country_exists = YUG
					NOT = { has_war_with = YUG }
					OR = {
						owns_state = 102
						102 = { owner = { is_subject_of = YUG } }
						owns_state = 853
						853 = { owner = { is_subject_of = YUG } }
					}
				}
				custom_trigger_tooltip = {
					tooltip = GER_first_ljubljana_award_tt
					AND = {
						NOT = { country_exists = YUG }
						OR = {
							owns_state = 102
							102 = { owner = { is_subject_of = YUG } }
						}
						OR = {
							owns_state = 853
							853 = { owner = { is_subject_of = YUG } }
						}
						OR = {
							owns_state = 45
							45 = { owner = { is_subject_of = YUG } }
						}
						OR = { #Macedonia
							owns_state = 106
							106 = { owner = { is_subject_of = YUG } }
						}
						OR = { #New Southern Serbia state
							owns_state = 803
							803 = { owner = { is_subject_of = YUG } }
						}
						OR = { #Herzegovina
							owns_state = 804
							804 = { owner = { is_subject_of = YUG } }
						}
						OR = { #Kosovo
							owns_state = 802
							802 = { owner = { is_subject_of = YUG } }
						}
						OR = {
							owns_state = 103
							103 = { owner = { is_subject_of = YUG } }
						}
						OR = {
							owns_state = 105
							105 = { owner = { is_subject_of = YUG } }
						}
					}
				}
			}
			OR = {
				YUG = {
					is_subject = no
				}
				YUG = {
					is_puppet_of = GER
				}
			}
		}

		bypass = {
			OR = {	
				is_in_faction_with = YUG
				YUG = { has_non_aggression_pact_with = GER }
				YUG = { has_opinion_modifier = tripartite_pact_opinion }
				NOT = { country_exists = YUG }
				NOT = {
					OR = {
						YUG = {
							owns_state = 45
						}
						45 = { owner = { is_subject_of = YUG } }
						
						YUG = {
							owns_state = 106
						}
						106 = { owner = { is_subject_of = YUG } }
					}
				}
				AND = {
					HUN = { is_friend_or_potential_friend_of_GER = no }
					BUL = { is_friend_or_potential_friend_of_GER = no }
					ITA = { is_friend_or_potential_friend_of_GER = no }
				}
			}
		}

		x = 0
		y = 1
		relative_position_id = GER_demand_slovenia
		cost = 10
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			if = {
				limit = {
					HUN = {
						is_friend_or_potential_friend_of_GER = yes
						NOT = { is_in_faction_with = YUG }
					}
				}
				hidden_effect = {
					if = {
						limit = { 
							OR = {
								45 = { is_owned_by = YUG }
								45 = { is_owned_by = GER }
							}
						}
						HUN = {
							country_event = { id = hungary.6 days = 1 }
							add_opinion_modifier = { target = GER modifier = GER_first_ljubljana_award_GER }
							set_country_flag = GER_first_ljubljana_award
						}
					}
				}
				effect_tooltip = {
					if = {
						limit = {
								OR = {
									45 = { is_owned_by = YUG }
									45 = { is_owned_by = GER }
								}
						}
						HUN = {
							add_opinion_modifier = { target = GER modifier = GER_first_ljubljana_award_GER }
							transfer_state = 45
						}
					}
				}
				every_other_country = {
					limit = { 
						is_faction_leader = yes
						NOT = { tag = GER }
					}
					reverse_add_opinion_modifier = { target = HUN modifier = GER_first_ljubljana_award_other }
				}				
			}
			if = {
				limit = {
					BUL = {
						is_friend_or_potential_friend_of_GER = yes
						NOT = { is_in_faction_with = YUG }
					}
				}
				hidden_effect = {
					if = {
						limit = {
							OR = {
								106 = { is_owned_by = YUG }
								106 = { is_owned_by = GER }
								803 = { is_owned_by = YUG }
								803 = { is_owned_by = GER }
							}
						}
						BUL = { 
							country_event = { id = bulgaria.3 days = 1 } 
							add_opinion_modifier = { target = GER modifier = GER_first_ljubljana_award_GER }
							set_country_flag = GER_first_ljubljana_award
						}
					}
				}
				effect_tooltip = {
					if = {
						limit = {
							OR = {
								106 = { is_owned_by = YUG }
								106 = { is_owned_by = GER }
								803 = { is_owned_by = YUG }
								803 = { is_owned_by = GER }
							}
						}
						BUL = {
							add_opinion_modifier = { target = GER modifier = GER_first_ljubljana_award_GER }
							if = {
								limit = {
									106 = { is_owned_by = YUG }
									106 = { is_owned_by = GER }
								}
								transfer_state = 106
							}
							if = {
								limit = {
									803 = { is_owned_by = YUG }
									803 = { is_owned_by = GER }
								}
								transfer_state = 803
							}
						}
					}
				}
				every_other_country = {
					limit = { 
						is_faction_leader = yes
						NOT = { tag = GER }
					}
					reverse_add_opinion_modifier = { target = BUL modifier = GER_first_ljubljana_award_other }
				}				
			}
			if = {
				limit = {
					ITA = {
						OR = {
							has_completed_focus = ITA_balkan_ambition
							owns_state = 44
						}
						is_friend_or_potential_friend_of_GER = yes
						NOT = { is_in_faction_with = YUG }
					}
				}
				hidden_effect = {
					ITA = { country_event = { id = italy.13 days = 1 } 
						add_opinion_modifier = { target = GER modifier = GER_first_ljubljana_award_GER }
					}
					set_country_flag = GER_first_ljubljana_award
				}
				effect_tooltip = {
					ITA = {
						add_opinion_modifier = { target = GER modifier = GER_first_ljubljana_award_GER }
						if = {
							limit = { has_completed_focus = ITA_balkan_ambition }
							transfer_state = 103
						}
						if = {
							limit = { owns_state = 44 }
							transfer_state = 105
						}
						if = {
							limit = { owns_state = 44 }
							transfer_state = 802
						}
					}
				}
				every_other_country = {
					limit = { 
						is_faction_leader = yes
						NOT = { tag = GER }
					}
					reverse_add_opinion_modifier = { target = ITA modifier = GER_first_ljubljana_award_other }
				}				
			}
			#hidden_effect = {
			#	news_event = { hours = 6 id = news.208 }
			#}
		}
	}

	focus = {
		id = GER_fate_of_yugoslavia
		prerequisite = { focus = GER_first_ljubljana_award }
		icon = GFX_goal_generic_territory_or_war
		available = {
			is_subject = no
			NOT = { has_war_with = YUG }
			NOT = { is_in_faction_with = YUG }
		}
		bypass = {
			OR = {
				NOT = { country_exists = YUG }
				any_other_country = {
					is_in_faction_with = ROOT
					YUG = {
						is_puppet_of = PREV
					}
				}
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_first_ljubljana_award
		cost = 10
		ai_will_do = {
			factor = 10
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }	
		completion_reward = {
			country_event = { id = germany.98 }
			custom_effect_tooltip = yugoslavia_mefo_bills_tt
		}
	}

	focus = {
		id = GER_second_ljubljana_award
		mutually_exclusive = { focus = GER_war_with_greece } 
		prerequisite = { focus = GER_fate_of_yugoslavia }
		icon = GFX_goal_generic_forceful_treaty
		available = {
			is_subject = no
			GRE = { 
				has_war = no 
				owns_state = 731
				owns_state = 186
				owns_state = 185
				owns_state = 47 
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_fate_of_yugoslavia
		cost = 10
		ai_will_do = {
			factor = 10
		}

		#bypass = {
		#	OR = {
		#		GRE = {
		#			NOT = { owns_state = 731 }
		#			NOT = { owns_state = 186 }
		#			NOT = { owns_state = 185 }
		#			NOT = { owns_state = 47 }
		#		}
		#		AND = {
		#			OR = {
		#				NOT = { country_exists = ITA }
		#				ITA = { has_war_with = GRE }
		#				NOT = { has_completed_focus = ITA_war_with_greece }
		#				AND = {
		#					ITA = {
		#						NOT = { is_in_faction_with = GER }
		#						is_in_faction = yes
		#					}
		#				}
		#			}
		#			OR = {
		#				NOT = { country_exists = BUL }
		#				BUL = { has_war_with = GRE }
		#				AND = {
		#					BUL = {
		#						NOT = { is_in_faction_with = GER }
		#						is_in_faction = yes
		#					}
		#				}
		#			}
		#			AND = {
		#				731 = {
		#					OR = {
		#						NOT = { any_neighbor_state = { is_owned_by = GER } }
		#						NOT = { is_owned_by = GRE }
		#					}
		#				}
		#				47 = {
		#					OR = {
		#						NOT = { any_neighbor_state = { is_owned_by = GER } }
		#						NOT = { is_owned_by = GRE }
		#					}
		#				}
		#				185 = {
		#					OR = {
		#						NOT = { any_neighbor_state = { is_owned_by = GER } }
		#						NOT = { is_owned_by = GRE }
		#					}
		#				}
		#			}
		#		}
		#	}
		#}

		completion_reward = {
			add_named_threat = { threat = 2 name = GER_second_ljubljana_award }
			if = {
				limit = {
					GRE = {
						OR = {
							owns_state = 185
							owns_state = 186
							owns_state = 47
						} 
					}
					ITA = {
						NOT = { has_war_with = GRE }
						country_exists = ITA
						has_completed_focus = ITA_war_with_greece
						OR = {
							is_in_faction_with = GER
							is_in_faction = no							
						}
					}
				}
				set_global_flag = GER_second_ljubljana_award_ITA_event
				country_event = { id = germany.99 }
			}
			if = {
				limit = {
					GRE = { owns_state = 184 }
					BUL = {
						NOT = { has_war_with = GRE }
						country_exists = BUL
						OR = {
							is_in_faction_with = GER
							is_in_faction = no							
						}
					}
				}
				set_global_flag = GER_second_ljubljana_award_BUL_event
				country_event = { id = germany.100 }
			}
			if = {
				limit = {
					any_neighbor_country = {
						tag = GRE
					}
					OR = {
						NOT = { country_exists = ITA }
						AND = {
							ITA = {
								NOT = { is_in_faction_with = GER }
								is_in_faction = yes
							}
						}
					}
					OR = {
						NOT = { country_exists = BUL }
						AND = {
							BUL = {
								NOT = { is_in_faction_with = GER }
								is_in_faction = yes
							}
						}
					}
				}
				set_global_flag = GER_second_ljubljana_award_GER_event
				country_event = { id = germany.101 }
			}
			custom_effect_tooltip = GER_second_ljubljana_award_tt
		}
	}

	focus = {
		id = GER_war_with_greece
		prerequisite = { focus = GER_fate_of_yugoslavia }
		mutually_exclusive = { focus = GER_second_ljubljana_award } 
		icon = GFX_goal_generic_occupy_states_ongoing_war
		will_lead_to_war_with = GRE
		available = {
			GRE = { 
				exists = yes
				has_war = yes
			}
			NOT = { is_in_faction_with = GRE }
		}
		x = 2
		y = 1
		relative_position_id = GER_fate_of_yugoslavia
		cost = 10
		ai_will_do = {
			factor = 10
		}	
		completion_reward = {
			create_wargoal = {
				target = GRE
				type = annex_everything
				expire = 0
			}
		}
	}

	focus = {
		id = GER_fate_of_greece
		prerequisite = { focus = GER_second_ljubljana_award }
		icon = GFX_goal_demand_sudetenland
		available = {
			country_exists = GRE
			NOT = { has_war_with = GRE }
			GRE = {
				is_subject = no
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_second_ljubljana_award
		cost = 10
		ai_will_do = {
			factor = 10
		}	
		completion_reward = {
			GRE = { country_event = { id = greece.3 hours = 6 } }
		}
	}

	focus = {
		id = GER_oppose_hitler
		icon = GFX_focus_ger_oppose_hitler
		mutually_exclusive = { focus = GER_rhineland }

		allow_branch = {
			has_dlc = "Waking the Tiger"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					has_completed_focus = GER_rhineland
				}
			}
		}

		available = {
			is_subject = no
			has_government = fascism
		}
		x = 57
		y = 0

		offset = {
			x = -8
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = GER_oppose_hitler
			}
		}
		offset = {
			x = -8
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = GER_reestablish_free_elections
			}
		}

		offset = {
			x = -1
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = GER_revive_the_kaiserreich
			}
		}

		cost = 10
		ai_will_do = {
			factor = 7
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			hidden_effect = { #offset from fascist reasons on 00_on_actions
				add_ai_strategy = {
				   type = alliance
				   id = POL
				   value = 2000
				}
				POL = {
					add_ai_strategy = {
					   type = alliance
					   id = GER
					   value = 2000
					}
				}
			}
			custom_effect_tooltip = GER_oppose_hitler_civil_war
			effect_tooltip = {
				GER_remove_mefo_bills = yes
			}
			42 = { set_demilitarized_zone = no }
			51 = { set_demilitarized_zone = no }
			add_political_power = 120
			add_named_threat = { threat = 5 name = GER_oppose_hitler }
			country_event = { id = wtt_germany.1 }
			hidden_effect = {
				if = {
					limit = {
						has_game_rule = {
							rule = obsolete_focus_branches_visibility
							option = HIDE
						}
					}
					mark_focus_tree_layout_dirty = yes
				}
			}
		}
	}

	focus = {
		id = GER_secure_the_new_state
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = GER_oppose_hitler }
		available = {
			is_subject = no
			has_war = no
			NOT = {
				any_country = {
					original_tag = GER
					has_government = fascism
				}
			}
		}
		x = 0
		y = 2
		relative_position_id = GER_oppose_hitler
		cost = 10
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_stability = 0.1
			add_political_power = 120
			add_timed_idea = {
				idea = GER_clamp_down_on_fascism
				days = 720
			}
		}
	}

	focus = {
		id = GER_revive_the_kaiserreich
		icon = GFX_focus_ger_revive_kaiserreich
		prerequisite = { focus = GER_secure_the_new_state }
		mutually_exclusive = { focus = GER_reestablish_free_elections }
		bypass = {
			has_country_flag = GER_mackensen_dead
			NOT = { has_government = democratic }
		}

		allow_branch = {
			has_dlc = "Waking the Tiger"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = GER_rhineland
						has_completed_focus = GER_reestablish_free_elections
					}
				}
			}
		}

		offset = {
			x = 1
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = GER_revive_the_kaiserreich
			}
		}

		available = {
			is_subject = no
		}
		x = -1
		y = 1
		relative_position_id = GER_secure_the_new_state
		cost = 10
		ai_will_do = {
			factor = 3
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = GER_revive_the_kaiserreich
			custom_effect_tooltip = GER_revive_the_kaiserreich_tt
			hidden_effect = { set_cosmetic_tag = GER_german_empire }
			set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
			set_rule = { can_send_volunteers = yes }
			add_named_threat = { threat = 5 name = GER_revive_the_kaiserreich }
			hidden_effect = {
				if = {
					limit = {
						has_game_rule = {
							rule = obsolete_focus_branches_visibility
							option = HIDE
						}
					}
					mark_focus_tree_layout_dirty = yes
				}
			}
		}
	}

	focus = {
		id = GER_rebuild_the_nation
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = GER_revive_the_kaiserreich focus = GER_reestablish_free_elections }

		allow_branch = {
			has_dlc = "Waking the Tiger"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					has_completed_focus = GER_rhineland
				}
			}
		}

		available = {
		}
		x = 1
		y = 1
		relative_position_id = GER_revive_the_kaiserreich
		cost = 10
		ai_will_do = {
			factor = 9
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_timed_idea = { idea = GER_rebuild_the_nation days = 365 }
			add_ideas = GER_national_revitalization
		}
	}

	focus = {
		id = GER_fan_the_prussian_militarism
		icon = GFX_focus_generic_military_mission
		prerequisite = { focus = GER_rebuild_the_nation }
		available = {
		}
		x = -1
		y = 1
		relative_position_id = GER_rebuild_the_nation
		cost = 5
		ai_will_do = {
			factor = 8
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_idea = GER_national_revitalization
						has_idea = GER_national_revitalization3
					}
				}
				effect_tooltip = {
					swap_ideas = {
						remove_idea = GER_national_revitalization
						add_idea = GER_national_revitalization2
					}
				}
			}
			if = {
				limit = {
					has_idea = GER_national_revitalization
				}
				swap_ideas = {
					remove_idea =GER_national_revitalization
					add_idea = GER_national_revitalization2
				}
			}
			if = {
				limit = {
					has_idea = GER_national_revitalization3
				}
				swap_ideas = {
					remove_idea = GER_national_revitalization3
					add_idea = GER_national_revitalization4
				}
			}
		}
	}

	focus = {
		id = GER_a_new_and_better_germany
		icon = GFX_goal_generic_construction
		prerequisite = { focus = GER_rebuild_the_nation }
		available = {
		}
		x = 1
		y = 1
		relative_position_id = GER_rebuild_the_nation
		cost = 5
		ai_will_do = {
			factor = 8
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_idea = GER_national_revitalization
						has_idea = GER_national_revitalization2
					}
				}
				effect_tooltip = {
					swap_ideas = {
						remove_idea = GER_national_revitalization
						add_idea = GER_national_revitalization3
					}
				}
			}
			if = {
				limit = {
					has_idea = GER_national_revitalization
				}
				swap_ideas = {
					remove_idea = GER_national_revitalization
					add_idea = GER_national_revitalization3
				}
			}
			if = {
				limit = {
					has_idea = GER_national_revitalization2
				}
				swap_ideas = {
					remove_idea = GER_national_revitalization2
					add_idea = GER_national_revitalization4
				}
			}
		}
	}

	focus = {
		id = GER_bulwark_against_bolshevism
		icon = GFX_focus_ger_bulwark_against_bolshevism
		prerequisite = { focus = GER_fan_the_prussian_militarism }
		prerequisite = { focus = GER_a_new_and_better_germany }
		available = {
			is_subject = no
		}
		x = 1
		y = 1
		relative_position_id = GER_fan_the_prussian_militarism
		cost = 10
		ai_will_do = {
			factor = 5
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = GER_bulwark_against_bolshevism
			custom_effect_tooltip = GER_bulwark_against_bolshevism_tt
			SOV = { 
				add_opinion_modifier = { target = GER modifier = embargo } 
			}
		}
	}

	focus = {
		id = GER_return_of_the_kaiser
		icon = GFX_focus_ger_return_of_the_kaiser
		prerequisite = { focus = GER_revive_the_kaiserreich }
		available = {
			is_subject = no
			neutrality > 0.4
			has_country_leader = { ruling_only = yes character = GER_august_von_mackensen }
			HOL = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}
		bypass = {
			has_country_flag = GER_mackensen_dead
			NOT = { has_government = democratic }
		}
		x = -2
		y = 1
		relative_position_id = GER_revive_the_kaiserreich
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			add_named_threat = { threat = 5 name = GER_return_of_the_kaiser }
			HOL = {
				country_event = { id = wtt_germany.3 }
			}
		}
	}

	focus = {
		id = GER_focus_on_the_true_enemy
		icon = GFX_goal_generic_occupy_states_coastal
		prerequisite = { focus = GER_return_of_the_kaiser }
		prerequisite = { focus = GER_naval_effort }
		mutually_exclusive = { focus = GER_expatriate_the_communists }
		available = {
			is_subject = no
		}
		x = -6
		y = 1
		relative_position_id = GER_return_of_the_kaiser
		cost = 10
		ai_will_do = {
			factor = 3
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.05
			add_named_threat = { threat = 5 name = GER_focus_on_the_true_enemy }
			swap_ideas = {
				remove_idea = GER_revive_the_kaiserreich
				add_idea = GER_revive_the_kaiserreich2
			}
		}
	}

	focus = {
		id = GER_rebuild_the_high_seas_fleet
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = GER_focus_on_the_true_enemy }
		mutually_exclusive = { focus = GER_plan_z focus = GER_u_boat_effort focus = GER_accept_british_naval_dominance }
		available = {
			is_subject = no
		}
		x = 0
		y = 2
		relative_position_id = GER_focus_on_the_true_enemy
		cost = 10
		ai_will_do = {
			factor = 1
		}
		complete_tooltip = {
			navy_experience = 50
			every_state = {
				limit = { has_state_flag = GER_rebuild_the_high_seas_fleet_dockyards }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = bc_bonus
				bonus = 1.0
				uses = 1
				category = bc_tech
			}
			add_tech_bonus = {
				name = bb_bonus
				bonus = 1.0
				uses = 1
				category = bb_tech
				category = shbb_tech
			}
			add_ideas = GER_rebuild_the_high_seas_fleet
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
		completion_reward = {
			navy_experience = 50
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_rebuild_the_high_seas_fleet_dockyards
			}
			add_tech_bonus = {
				name = bc_bonus
				bonus = 1.0
				uses = 1
				category = bc_tech
			}
			add_tech_bonus = {
				name = bb_bonus
				bonus = 1.0
				uses = 1
				category = bb_tech
				category = shbb_tech
			}
			add_ideas = GER_rebuild_the_high_seas_fleet
		}
	}

	focus = {
		id = GER_our_place_in_the_sun
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = GER_rebuild_the_high_seas_fleet }
		available = {
			is_subject = no
		}
		x = 0
		y = 1
		relative_position_id = GER_rebuild_the_high_seas_fleet
		cost = 5
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.05
			ENG = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_our_place_in_the_sun
				}
			}
			FRA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_our_place_in_the_sun
				}
			}
			add_named_threat = { threat = 5 name = GER_our_place_in_the_sun }
			if = {
				limit = {
					743 = { is_controlled_by = event_target:WTT_current_china_leader }
					NOT = {
						has_war_with = event_target:WTT_current_china_leader
					}
				}
				event_target:WTT_current_china_leader = { country_event = { id = wtt_germany.38 days = 1 } }
			}
			if = {
				limit = {
					743 = { is_controlled_by = JAP }
					NOT = {
						has_war_with = JAP
					}
				}
				JAP = { country_event = { id = wtt_germany.43 days = 1 } }
			}
		}
	}

	focus = {
		id = GER_pride_of_the_modern_germany
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = GER_our_place_in_the_sun }
		available = {
			is_subject = no
		}
		x = 0
		y = 1
		relative_position_id = GER_our_place_in_the_sun
		cost = 10
		ai_will_do = {
			factor = 9
		}
		
		complete_tooltip = {
			navy_experience = 50
			every_state = {
				limit = { has_state_flag = GER_rebuild_the_high_seas_fleet_dockyards }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = GER_pride_of_the_modern_germany
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = bc_tech
				category = bb_tech
				category = shbb_tech
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
		completion_reward = {
			navy_experience = 50
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_pride_of_the_modern_germany_dockyards
			}
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
					NOT = { has_state_flag = GER_pride_of_the_modern_germany_dockyards }
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = GER_pride_of_the_modern_germany_dockyards
			}
			add_tech_bonus = {
				name = GER_pride_of_the_modern_germany
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = bc_tech
				category = bb_tech
				category = shbb_tech
			}
		}
	}

	focus = {
		id = GER_prepare_for_the_next_blockade
		icon = GFX_goal_generic_consumer_goods
		prerequisite = { focus = GER_our_place_in_the_sun }
		available = {
			is_subject = no
		}
		x = -1
		y = 2
		relative_position_id = GER_our_place_in_the_sun
		cost = 10
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_stability = 0.05
			add_ideas = GER_prepare_for_the_next_blockade
		}
	}

	focus = {
		id = GER_break_the_anglo_french_colonial_hegemony
		icon = GFX_focus_ger_break_anglo_french_colonial_hegemony
		prerequisite = { focus = GER_prepare_for_the_next_blockade }
		available = {
			is_subject = no
			NOT = { is_in_faction_with = ENG }
			NOT = { is_in_faction_with = FRA }
			NOT = { ENG = { has_completed_focus = ENG_decolonization } }
		}
		cancel_if_invalid = yes
		will_lead_to_war_with = ENG
		will_lead_to_war_with = FRA
		x = 0
		y = 1
		relative_position_id = GER_prepare_for_the_next_blockade
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = ENG
				expire = 0
			}
			create_wargoal = {
				type = annex_everything
				target = FRA
				expire = 0
			}
			if = {
				limit = {
					BEL = {
						OR = {
							owns_state = 768
							owns_state = 769
						}
					}
				}
				create_wargoal = {
					type = take_state_focus
					target = BEL
					expire = 0
					generator = { 768 769 }
				}
			}
			if = {
				limit = {
					NOT = {
						SAF = {
							is_subject_of = ENG
						}
					}
				}
				create_wargoal = {
					type = take_state_focus
					target = SAF
					expire = 0
					generator = { 541 }
				}
			}
			if = {
				limit = {
					country_exists = NMB
				}
				create_wargoal = {
					type = take_state_focus
					target = NMB
					expire = 0
					generator = { 541 }
				}
			}
			if = {
				limit = {
					country_exists = CMR
				}
				create_wargoal = {
					type = take_state_focus
					target = CMR
					expire = 0
					generator = { 773 }
				}
			}
			if = {
				limit = {
					country_exists = TOG
				}
				create_wargoal = {
					type = take_state_focus
					target = TOG
					expire = 0
					generator = { 777 }
				}
			}
			if = {
				limit = {
					country_exists = TZN
				}
				create_wargoal = {
					type = take_state_focus
					target = TZN
					expire = 0
					generator = { 549 }
				}
			}
			if = {
				limit = {
					country_exists = RWA
				}
				create_wargoal = {
					type = take_state_focus
					target = RWA
					expire = 0
					generator = { 768 }
				}
			}
			if = {
				limit = {
					country_exists = BRD
				}
				create_wargoal = {
					type = take_state_focus
					target = BRD
					expire = 0
					generator = { 769 }
				}
			}
			add_state_claim = 523
			add_state_claim = 773
			add_state_claim = 541
			add_state_claim = 546
			add_state_claim = 737
			add_state_claim = 684
			add_state_claim = 633
			add_state_claim = 646
			add_state_claim = 647
			add_state_claim = 726
			add_state_claim = 777
			add_state_claim = 768
			add_state_claim = 769
		}
	}

	focus = {
		id = GER_schlieffen_once_more # Schlieffen 2.0!
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = GER_break_the_anglo_french_colonial_hegemony }
		available = {
			is_subject = no
			OR = {
				has_war_with = FRA
				AND = {
					has_war_with = ENG
					has_global_flag = flag_franco_british_union
				}
			}
			NOT = { is_in_faction_with = BEL }
			NOT = { is_in_faction_with = LUX }
		}
		bypass = {
			NOT = { country_exists = BEL }
			NOT = { country_exists = LUX }
		}
		cancel_if_invalid = yes
		will_lead_to_war_with = BEL
		will_lead_to_war_with = LUX
		x = 0
		y = 1
		relative_position_id = GER_break_the_anglo_french_colonial_hegemony
		cost = 4
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = BEL
				expire = 0
			}
			create_wargoal = {
				type = annex_everything
				target = LUX
				expire = 0
			}
		}
	}

	focus = {
		id = GER_crossing_the_atlantic
		icon = GFX_goal_generic_build_navy
		prerequisite = { focus = GER_break_the_anglo_french_colonial_hegemony focus = GER_plan_z focus = GER_modular_construction }
		available = {
			is_subject = no
			has_war_with = USA
			OR = {
				AND = {
					has_war_with = SOV
					SOV = { has_capitulated = yes }
				}
				SOV = { exists = no }
				SOV = { is_puppet = yes }
			}
			NOT = {
				any_country = {
					NOT = { tag = ENG }
					has_war_with = GER
					is_in_faction_with = USA
					any_owned_state = { is_on_continent = europe }
					has_capitulated = no
				}
			}
		}
		cancel_if_invalid = yes
		x = -1
		y = 3
		relative_position_id = GER_modular_construction
		cost = 10
		ai_will_do = {
			factor = 10
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			every_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_on_continent = europe
					is_coastal = yes
					arms_factory < 1
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				custom_effect_tooltip = GER_crossing_the_atlantic_2_factories_tt
				hidden_effect = {
					random_state = {
						limit = {
							is_fully_controlled_by = ROOT
							is_on_continent = europe
							NOT = { is_coastal = yes }
							arms_factory > 1
						}
						remove_building = {
							type = arms_factory
							level = 2
						}
					}
				}
			}
			every_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_on_continent = europe
					is_coastal = yes
					AND = {
						arms_factory < 2
						arms_factory > 0
					}
				}
				add_extra_state_shared_building_slots = 1
				remove_building = {
						type = arms_factory
						level = 1
					}
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				custom_effect_tooltip = GER_crossing_the_atlantic_1_factory_tt
				hidden_effect = {
					random_state = {
						limit = {
							is_fully_controlled_by = ROOT
							is_on_continent = europe
							NOT = { is_coastal = yes }
							arms_factory > 0
						}
						remove_building = {
							type = arms_factory
							level = 1
						}
					}
				}
			}
			every_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_on_continent = europe
					is_coastal = yes
					arms_factory > 1
				}
				remove_building = {
						type = arms_factory
						level = 2
					}
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = GER_the_central_powers
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = GER_our_place_in_the_sun }
		available = {
			is_subject = no
		}
		bypass = {
			is_in_faction = yes
		}
		x = 1
		y = 2
		relative_position_id = GER_our_place_in_the_sun
		cost = 5
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			set_rule = { can_create_factions = yes }
			if = {
				limit = {
					is_in_faction = no
				}
				create_faction = "GER_central_powers_faction"
			}

			if = {
				limit = {
					ITA = { 
						is_subject = no
						is_in_faction = no
						has_government = neutrality
						NOT = { has_war_with = GER }
					}					
				}
				ITA = { country_event = { id = generic.5 } }
			}
			if = {
				limit = {
					HUN = { 
						is_subject = no
						is_in_faction = no
						has_government = neutrality
						NOT = { has_war_with = GER }
					}					
					NOT = { country_exists = AUS }
				}
				HUN = { country_event = { id = generic.5 } }
			}
			if = {
				limit = {
					AUS = { 
						exists = yes
						is_subject = no
						is_in_faction = no
						has_government = neutrality
						NOT = { has_war_with = GER }
					}		
					NOT = { country_exists = HUN }			
				}
				AUS = { country_event = { id = generic.5 } }
			}
			if = {
                limit = {
                    BUL = { 
                        exists = yes
                        is_subject = no
                        is_in_faction = no
                        has_government = neutrality
                        NOT = { has_war_with = GER }
                    }
                }
                BUL = { country_event = { id = generic.5 } }
            }
		}
	}

	focus = {
		id = GER_prepare_italian_coup
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = GER_the_central_powers }
		available = {
			is_subject = no
			NOT = { has_war_with = ITA }
			ITA = {
				has_government = fascism
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_the_central_powers
		cost = 10
		ai_will_do = {
			factor = 10
		}

		select_effect = {
			ITA = {
				country_event = {
				    id = wtt_germany.1006
				    days = 1
				    random = 2
				}
			}
		}
		
		completion_reward = {
			ITA = {
				country_event = { id = wtt_germany.8 }
			}
			custom_effect_tooltip = GER_prepare_italian_coup_tt
			effect_tooltip = {
				ITA = {
					add_timed_idea = { idea = GER_preparing_ITA_coup days = 1095 }
				}
			}
		}
	}

	focus = {
		id = GER_assassinate_mussolini
		icon = GFX_focus_ger_assassinate_mussolini
		prerequisite = { focus = GER_prepare_italian_coup }
		available = {
			is_subject = no
			NOT = { has_war_with = ITA }
			ITA = { has_country_leader = { ruling_only = yes character = ITA_benito_mussolini } }
			NOT = {	ITA = {	has_completed_focus = ITA_banda_carita } }
			custom_trigger_tooltip = {
				tooltip = GER_italy_declined_assassination_tt
				NOT = {
					has_country_flag = GER_italy_declined_assassination_of_mussolini_flag
				}
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_prepare_italian_coup
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			ITA = {
				country_event = { id = wtt_germany.11 }
			}
			effect_tooltip = {
				ITA = {
					set_politics = { ruling_party = neutrality elections_allowed = no }
					add_popularity = { ideology = neutrality popularity = 0.1 }
					effect_tooltip = {
						create_country_leader = {
							name = "Vittorio Emanuele III"
							desc = "POLITICS_VITTORIO_EMANUELE_III_DESC"
							picture = "GFX_portrait_italy_vittorio_emanuele_iii"
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								the_soldier_king
							}
						}
					}
					swap_ideas = {
						remove_idea = GER_preparing_ITA_coup
						add_idea = GER_preparing_ITA_coup2
					}
					GER = {
						add_to_faction = ITA
						country_event = { id = wtt_germany.12 }
					}
				}
			}
		}
	}

	focus = {
		id = GER_rekindle_imperial_sentiment
		icon = GFX_focus_proclaim_the_restauration_of_Austria_Hungary
		prerequisite = { focus = GER_the_central_powers }
		available = {
			is_subject = no
			NOT = { has_war_with = AUS }
			NOT = { has_war_with = HUN }
			NOT = { has_war_with = CZE }
		}
		bypass = {
			HUN = {
				is_in_faction_with = ROOT
				has_completed_focus = HUN_proclaim_the_restoration_of_austria_hungary
			}
		}
		cancel_if_invalid = yes
		x = 2
		y = 1
		relative_position_id = GER_the_central_powers
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			if = {
				limit = {
					AUS = { exists = yes }
				}
				AUS = {
					add_timed_idea = { idea = GER_rekindle_imperial_sentiment days = 1095 }
				}
			}
			if = {
				limit = {
					HUN = { exists = yes }
				}
				HUN = {
					add_timed_idea = { idea = GER_rekindle_imperial_sentiment days = 1095 }
				}
			}
			if = {
				limit = {
					CZE = { exists = yes }
				}
				CZE = {
					add_timed_idea = { idea = GER_rekindle_imperial_sentiment days = 1095 }
				}
			}
			custom_effect_tooltip = GER_rekindle_imperial_sentiment_tt
		}
	}

	focus = {
		id = GER_expatriate_the_communists
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = GER_return_of_the_kaiser }
		mutually_exclusive = { focus = GER_focus_on_the_true_enemy }
		available = {
			is_subject = no
			NOT = { has_war_with = FRA }
		}
		cancel_if_invalid = yes
		x = -2
		y = 1
		relative_position_id = GER_return_of_the_kaiser
		cost = 10
		ai_will_do = {
			factor = 0.5
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.05
			add_timed_idea = {
				idea = GER_expatriate_the_communists
				days = 720
			}
			add_named_threat = { threat = 5 name = GER_expatriate_the_communists }
			FRA = { 
				add_timed_idea = {
					idea = GER_communist_refugees
					days = 720
				}
				country_event = { id = wtt_germany.17 }
			}
			hidden_effect = {
				if = {
					limit = {
						NOT = { has_dlc = "La Resistance" }
						AND = {
							has_global_flag = spanish_civil_war
							NOT = { has_global_flag = scw_over }
						}
					}
					random_other_country = {
						limit = {
							original_tag = SPR
							has_government = communism
						}
						country_event = { id = wtt_germany.2 days = 1 }
					}
				}
				if = {
					limit = {
						has_dlc = "La Resistance"
						AND = {
							has_global_flag = spanish_civil_war
							NOT = { has_global_flag = scw_over }
						}
					}
					SPD = {
						country_event = { id = wtt_germany.2 days = 1 }
					}
				}
			}
		}
	}

	focus = {
		id = GER_accept_british_naval_dominance
		icon = GFX_focus_ger_accept_british_naval_dominance
		prerequisite = { focus = GER_expatriate_the_communists }
		mutually_exclusive = { focus = GER_plan_z focus = GER_u_boat_effort focus = GER_rebuild_the_high_seas_fleet }
		available = {
			is_subject = no
			NOT = { has_war_with = ENG }
		}
		cancel_if_invalid = yes
		x = 0
		y = 2
		relative_position_id = GER_expatriate_the_communists
		cost = 10
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			ENG = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_accept_british_naval_dominance_opinion
				}
			}
			add_ideas = GER_redirecting_naval_production
		}
	}

	focus = {
		id = GER_ally_the_shade
		icon = GFX_goal_generic_dangerous_deal
		prerequisite = { focus = GER_accept_british_naval_dominance }
		available = {
			is_subject = no
			NOT = { has_war_with = ENG }
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_accept_british_naval_dominance
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			ENG = {
				country_event = { id = generic.2 }
				add_ai_strategy = {
					type = befriend
					id = "GER"			
					value = 1000
				}
				add_ai_strategy = {
					type = alliance
					id = "GER"			
					value = 200
				}	
			}
		}
	}

	focus = {
		id = GER_carte_blanche_for_alsace_and_french_colonies
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = GER_ally_the_shade }
		will_lead_to_war_with = FRA
		available = {
			is_subject = no
			FRA = { has_government = communism }
			NOT = { is_in_faction_with = FRA }
		}
		cancel_if_invalid = yes
		x = 0
		y = 2
		relative_position_id = GER_ally_the_shade
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = FRA
				expire = 0
			}
			add_state_claim = 28
			add_state_claim = 773
			add_state_claim = 777
		}
	}

	focus = {
		id = GER_bypass_maginot_in_the_south
		icon = GFX_focus_attack_switzerland
		prerequisite = { focus = GER_carte_blanche_for_alsace_and_french_colonies }
		available = {
			is_subject = no
			has_war_with = FRA
			NOT = { is_in_faction_with = SWI }
		}
		bypass = {
			NOT = { country_exists = SWI }
		}
		cancel_if_invalid = yes
		will_lead_to_war_with = SWI
		x = 0
		y = 2
		relative_position_id = GER_carte_blanche_for_alsace_and_french_colonies
		cost = 4
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = SWI
				expire = 0
			}
		}
	}

	focus = {
		id = GER_reinstate_imperial_possessions
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = GER_schlieffen_once_more focus = GER_bypass_maginot_in_the_south }
		available = {
			is_subject = no
			has_full_control_of_state = 28
			OR = {
				FRA = { has_capitulated = yes }
				FRA = { is_subject_of = GER }
				NOT = {
					any_country = {
						original_tag = FRA
						exists = yes
					}
				}
				owns_state = 28
			}
		}
		bypass = {
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_schlieffen_once_more
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			add_state_core = 28
			if = {
				limit = {
					NOT = { owns_state = 28 }
				}
				transfer_state = 28
			}
			28 = { set_state_name = "Elsass-Lothringen" }
			set_province_name = { id = 9503 name = "Strassburg" }
			set_province_name = { id = 678 name = "Mulhausen" }
			FRA = {
				country_event = { id = wtt_germany.63 }
			}
		}
	}

	focus = {
		id = GER_see_to_the_eastern_front
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = GER_return_of_the_kaiser }
		available = { 
			is_subject = no
			has_full_control_of_state = 5
		}
		cancel_if_invalid = yes
		x = 0
		y = 2
		relative_position_id = GER_return_of_the_kaiser
		cost = 10
		ai_will_do = {
			factor = 5
		}
		
		completion_reward = {
			188 = { add_claim_by = GER }
			add_named_threat = { threat = 4 name = GER_demand_memel_threat }
			random_other_country = {
				limit = {
					owns_state = 188
					controls_state = 188 
				}
				country_event = { id = baltic.4 }
			}
			if = {
				limit = {
					has_full_control_of_state = 5
				}
				5 = {
					custom_effect_tooltip = GER_see_to_the_eastern_front_tt
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 2
							province = 9327
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = 11386
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = 9372
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 763
				}
				763 = {
					custom_effect_tooltip = GER_see_to_the_eastern_front_tt2
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 2
							province = 11265
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = 348
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = 281
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = 3384
							instant_build = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = GER_danzig_for_guarantees
		icon = GFX_focus_generic_polish_deal
		prerequisite = { focus = GER_see_to_the_eastern_front }
		prerequisite = { focus = GER_bulwark_against_bolshevism }
		available = { 
			is_subject = no
			NOT = { has_war_with = POL }
			NOT = { is_in_faction_with = POL }
		}
		bypass = {
			OR = {
				AND = {
					POL = { has_war = yes }
					NOT = { has_war_with = POL }
				}
				AND = {
					POL = { is_subject = yes }
					NOT = { POL = { is_subject_of = GER } }
				}
				POL = { exists = no }
				AND = {
					owns_state = 85
					owns_state = 86
					owns_state = 762
					owns_state = 807
				}
			}
		}
		cancel_if_invalid = yes
		x = 2
		y = 2
		relative_position_id = GER_see_to_the_eastern_front
		cost = 10
		ai_will_do = {
			factor = 5
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			POL = { country_event = { id = wtt_germany.14 } }
		}
	}

	focus = {
		id = GER_safeguard_the_baltic
		icon = GFX_goal_generic_defence
		prerequisite = { focus = GER_see_to_the_eastern_front }
		available = {
			is_subject = no
			NOT = { has_war_with = EST }
			NOT = { has_war_with = LAT }
			NOT = { has_war_with = LIT }
		}
		bypass = {
			OR = {
				has_guaranteed = EST
				NOT = { country_exists = EST }
				AND = {
					EST = { has_war = yes }
					NOT = { has_war_with = EST }
				}
				AND = {
					EST = { is_subject = yes }
					NOT = { EST = { is_subject_of = GER } }
				}
			}
			OR = {
				has_guaranteed = LAT
				NOT = { country_exists = LAT }
				AND = {
					LAT = { has_war = yes }
					NOT = { has_war_with = LAT }
				}
				AND = {
					LAT = { is_subject = yes }
					NOT = { LAT = { is_subject_of = GER } }
				}
			}
			OR = {
				has_guaranteed = LIT
				NOT = { country_exists = LIT }
				AND = {
					LIT = { has_war = yes }
					NOT = { has_war_with = LIT }
				}
				AND = {
					LIT = { is_subject = yes }
					NOT = { LIT = { is_subject_of = GER } }
				}
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_see_to_the_eastern_front
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			if = {
				limit = { country_exists = EST }
				EST = {	
					add_timed_idea = {
						idea = GER_safeguard_the_baltic
						days = 720
					}
					add_ai_strategy = {
						type = befriend
						id = "GER"			
						value = 200
					}
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}
				}

				if = { 
					limit = { NOT = { is_subject_of = ROOT } }
					give_guarantee = EST
				}
			}
			if = {
				limit = { country_exists = LAT }
				LAT = {
					add_timed_idea = {
						idea = GER_safeguard_the_baltic
						days = 720
					}
					add_ai_strategy = {
						type = befriend
						id = "GER"			
						value = 200
					}
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}
				}

				if = { 
					limit = { NOT = { is_subject_of = ROOT } }
					give_guarantee = LAT
				}
			}
			if = {
				limit = { country_exists = LIT }
				LIT = {
					add_timed_idea = {
						idea = GER_safeguard_the_baltic
						days = 720
					}
					add_ai_strategy = {
						type = befriend
						id = "GER"			
						value = 200
					}
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}
				}

				if = { 
					limit = { NOT = { is_subject_of = ROOT } }
					give_guarantee = LIT
				}
			}
		}
	}

	focus = {
		id = GER_support_the_finns
		icon = GFX_focus_invite_finland
		prerequisite = { focus = GER_safeguard_the_baltic }
		available = {
			is_subject = no
			NOT = { has_war_with = FIN }
		}
		bypass = {
			OR = {
				AND = {
					FIN = { has_war = yes }
					NOT = { has_war_with = FIN }
				}
				AND = {
					FIN = { is_subject = yes }
					NOT = { FIN = { is_subject_of = GER } }
				}
				FIN = { exists = no }
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_safeguard_the_baltic
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			diplomatic_relation = {
				country = FIN
				relation = guarantee
				active = yes
			}
			add_ai_strategy = {
				type = support
				id = "FIN"			
				value = 200
			}
			FIN = {
				add_ideas = GER_FIN_industrial_support
				add_ai_strategy = {
					type = befriend
					id = "GER"			
					value = 200
				}
				add_ai_strategy = {
					type = alliance
					id = "GER"			
					value = 200
				}
			}
		}
	}

	focus = {
		id = GER_anti_comintern_pact_unaligned
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = GER_support_the_finns }
		prerequisite = { focus = GER_danzig_for_guarantees }
		x = 1
		y = 1
		relative_position_id = GER_support_the_finns
		cost = 10
		available = {
			is_subject = no
			NOT = { has_government = communism }
			NOT = { is_in_faction_with = SOV }
		}
		bypass = {
			SOV = {
				NOT = {
					has_government = communism
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			SOV = { add_opinion_modifier = { target = ROOT modifier = pact_against_us } }
			add_named_threat = { threat = 2 name = GER_anti_comintern_pact_unaligned }
			every_other_country = {
				limit = {
					NOT = { tag = GER }
					NOT = { has_war_with = GER }
					NOT = { is_in_faction_with = SOV }
					is_subject = no
					OR = {
						capital_scope = {
								is_on_continent = europe
						}
						AND = {
							capital_scope = {
									is_on_continent = asia
							}
							is_neighbor_of = SOV
						}
						num_of_factories > 30
					}
					OR = {
						has_government = neutrality 
						AND = {
							is_neighbor_of = SOV
							NOT = { has_government = communism }
						}
					}
				}
				country_event = germany.5
			}
		}
	}

	focus = {
		id = GER_anti_soviet_pact_unaligned
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = GER_anti_comintern_pact_unaligned }
		available = {
			is_subject = no
			has_army_manpower = { size > 849999 } #ca 90 div
		}
		bypass = {
			SOV = {
				NOT = {
					has_government = communism
				}
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_anti_comintern_pact_unaligned
		cost = 10
		ai_will_do = {
			factor = 2.5	
		}
		completion_reward = {
			hidden_effect = {
				SOV = { remove_opinion_modifier = { target = ROOT modifier = pact_against_us } }
				add_ideas = anti_soviet_pact
			}
			SOV = { add_opinion_modifier = { target = ROOT modifier = worse_pact_against_us } }
			custom_effect_tooltip = GER_anti_soviet_pact_tt_3
			custom_effect_tooltip = GER_anti_soviet_pact_tt
			custom_effect_tooltip = GER_anti_soviet_pact_tt_2
			every_other_country = {
				limit = {
					has_opinion_modifier = anti_comintern_pact_opinion
					is_subject = no
					NOT = { tag = GER }
					NOT = { has_war_with = GER }
					NOT = { has_idea = anti_soviet_pact }
				}
				country_event = germany.83
			}
			hidden_effect = {
				news_event = { id = wtt_news.20 hours = 6 }
			}
		}
	}

	focus = {
		id = GER_tackle_the_communist_threat
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = GER_anti_soviet_pact_unaligned focus = GER_carte_blanche_for_alsace_and_french_colonies }
		available = {
			is_subject = no
			SOV = {
				has_government = communism
				has_war = yes
			}
			NOT = { is_in_faction_with = SOV }
		}
		bypass = {
			OR = {
				has_war_with = SOV
				NOT = { country_exists = SOV }
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_anti_soviet_pact_unaligned
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			if = {
				limit = {
					NOT = { is_in_faction = yes }
				}
				create_faction = "GER_anti_communist_bloc"
			}
			create_wargoal = {
				type = annex_everything
				target = SOV
				expire = 0
			}
		}
	}

	focus = {
		id = GER_the_iberian_problem
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = GER_tackle_the_communist_threat }
		available = {
			is_subject = no
			any_country = {
				original_tag = SPR
				has_government = communism
				NOT = { has_war_with = ROOT }
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_tackle_the_communist_threat
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			custom_effect_tooltip = GER_spain_wargoal_tt
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SPR
						has_government = communism
					}
					GER = {
						create_wargoal = {
							type = annex_everything
							target = PREV
							expire = 0
						}
					}
				}
			}
		}
	}

	focus = {
		id = GER_reestablish_free_elections
		icon = GFX_goal_support_democracy
		prerequisite = { focus = GER_secure_the_new_state }
		mutually_exclusive = { focus = GER_revive_the_kaiserreich }
	
		allow_branch = {
			has_dlc = "Waking the Tiger"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = GER_rhineland
						has_completed_focus = GER_revive_the_kaiserreich
					}
				}
			}
		}

		offset = {
			x = -1
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = GER_reestablish_free_elections
			}
		}
	
		available = {
			is_subject = no
		}
		cancel_if_invalid = yes
		x = 1
		y = 1
		relative_position_id = GER_secure_the_new_state
		cost = 10
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_timed_idea = {
				idea = GER_reestablish_free_elections
				days = 720
			}
			set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
			hidden_effect = {
				if = {
					limit = {
						has_game_rule = {
							rule = obsolete_focus_branches_visibility
							option = HIDE
						}
					}
					mark_focus_tree_layout_dirty = yes
				}
			}
		}
	}

	focus = {
		id = GER_the_monarchy_compromise
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		prerequisite = { focus = GER_reestablish_free_elections }
		available = {
			is_subject = no
			democratic > 0.4
		}
		cancel_if_invalid = yes
		x = 2
		y = 1
		relative_position_id = GER_reestablish_free_elections
		cost = 10
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_popularity = { ideology = democratic popularity = 0.1 }
			set_politics = { ruling_party = democratic elections_allowed = yes }
			add_ideas = { GER_wilhelm_iii }
			add_stability = 0.05
			hidden_effect = {
				set_cosmetic_tag = GER_german_monarchy
			}
		}
	}

	focus = {
		id = GER_the_great_red_menace
		icon = GFX_focus_ger_great_red_menace
		prerequisite = { focus = GER_the_monarchy_compromise }
		available = {
			is_subject = no
			has_war = no
			SOV = { 
				NOT = {
					has_government = democratic 
				}
			}
			has_added_tension_amount < 15
		}
		cancel_if_invalid = yes
		x = 0
		y = 2
		relative_position_id = GER_the_monarchy_compromise
		cost = 10
		ai_will_do = {
			factor = 8
		}
		
		completion_reward = {
			add_named_threat = { threat = 10 name = GER_the_great_red_menace }
			SOV = { country_event = { id = wtt_germany.19 days = 1 } }
			hidden_effect = { news_event = { id = wtt_news.21 hours = 6 } }
			every_other_country = {
				limit = {
					any_owned_state = { is_on_continent = europe }
					NOT = {
						tag = ENG
						tag = FRA
						tag = SWI
						tag = ITA
						tag = IRE
						tag = TUR
						tag = ALB
						original_tag = SPR
						tag = POR
						tag = GRE
						has_government = communism
						has_government = fascism
					}
				}
				country_event = { id = wtt_germany.24 }
				add_timed_idea = { idea = GER_the_great_red_menace days = 1095 }
				add_ai_strategy = {
					type = befriend
					id = "GER"			
					value = 200
				}
				add_ai_strategy = {
					type = befriend
					id = "ENG"			
					value = -200
				}
			}
			SOV = { 
				add_opinion_modifier = { target = GER modifier = embargo } 
			}
		}
	}

	focus = {
		id = GER_central_european_alliance
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = GER_the_great_red_menace }
		prerequisite = { focus = GER_bulwark_against_bolshevism }
		available = {
			is_subject = no
			has_war = no
		}

		bypass = {
			is_faction_leader = yes
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_the_great_red_menace
		cost = 10
		ai_will_do = {
			factor = 5
		}
		
		completion_reward = {
			custom_effect_tooltip = GER_central_european_alliance_tt
			effect_tooltip = {
				create_faction = "GER_central_european_alliance"
			}
			hidden_effect = {
				if = {
					limit = {
						is_in_faction = no
					}
					create_faction = "GER_central_european_alliance"
				}
			}
			every_country = {
				limit = {
					has_idea = GER_the_great_red_menace
					has_idea = neutrality_idea
				}
				remove_ideas = neutrality_idea
			}
			SOV = { country_event = { id = wtt_germany.20 days = 1 } }
			hidden_effect = {
				news_event = { id = wtt_news.22 hours = 6 }
				if = {
					limit = {
						FRA = { has_government = communism }
					}
					random_other_country = {
						limit = {
							original_tag = SPR
							has_government = communism
						}
						add_ai_strategy = {
							type = befriend
							id = "FRA"			
							value = 200
						}
						add_ai_strategy = {
							type = alliance
							id = "FRA"			
							value = 200
						}
					}
				}
				if = {
					limit = {
						SOV = { has_government = communism }
					}
					random_other_country = {
						limit = {
							original_tag = SPR
							has_government = communism
							NOT = { has_completed_focus = SPR_hinder_nkvd_interference }
						}
						add_ai_strategy = {
							type = befriend
							id = "SOV"			
							value = 200
						}
						add_ai_strategy = {
							type = alliance
							id = "SOV"			
							value = 200
						}
					}
				}
				if = {
					limit = {
						FRA = { has_government = fascism }
					}
					random_other_country = {
						limit = {
							original_tag = SPR
							has_government = fascism
						}
						add_ai_strategy = {
							type = befriend
							id = "FRA"			
							value = 200
						}
						add_ai_strategy = {
							type = alliance
							id = "FRA"			
							value = 200
						}
					}
				}
				if = {
					limit = {
						SOV = { has_government = fascism } #futureproofing
					}
					random_other_country = {
						limit = {
							original_tag = SPR
							has_government = fascism
						}
						add_ai_strategy = {
							type = befriend
							id = "SOV"			
							value = 200
						}
						add_ai_strategy = {
							type = alliance
							id = "SOV"			
							value = 200
						}
					}
				}
				# Making England less likely to guarantee European nations.
				ENG = {
					GER_democratic_nations_ai_strategies = yes
				}
			}
		}
	}

	focus = {
		id = GER_danubian_membership
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = GER_central_european_alliance }
		available = {
			is_subject = no
			is_faction_leader = yes
			NOT = { has_war_with = AUS }
			NOT = { has_war_with = CZE }
			NOT = { has_war_with = HUN }
		}
		bypass = {
			OR = {
				NOT = { country_exists = AUS }
				AUS = { is_subject = yes }
				is_in_faction_with = AUS
			}
			OR = {
				NOT = { country_exists = CZE }
				CZE = { is_subject = yes }
				is_in_faction_with = HUN
			}
			OR = {
				NOT = { country_exists = HUN }
				HUN = { is_subject = yes }
				is_in_faction_with = HUN
			}

		}
		cancel_if_invalid = yes
		x = -2
		y = 1
		relative_position_id = GER_central_european_alliance
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			custom_effect_tooltip = invite_non_fascist_communist_only_TT
			if = {
				limit = {
					AUS = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						exists = yes
						is_subject = no
					}
					
				}
				AUS = {
					country_event = { id = generic.5 }
				}
			}
			if = {
				limit = {
					CZE = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						exists = yes
						is_subject = no
					}					
				}
				CZE = {
					country_event = { id = generic.5 }
				}
			}
			if = {
				limit = {
					HUN = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						exists = yes
						is_subject = no
					}
					
				}
				HUN = {
					country_event = { id = generic.5 }
				}
			}
		}
	}

	focus = {
		id = GER_danubian_expansion
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = GER_danubian_membership }
		available = {
			is_subject = no
			is_faction_leader = yes
			NOT = { has_war_with = YUG }
			NOT = { has_war_with = ROM }
		}
		bypass = {
			OR = {
				NOT = { country_exists = YUG }
				YUG = { is_subject = yes }
				is_in_faction_with = YUG
			}
			OR = {
				NOT = { country_exists = ROM }
				ROM = { is_subject = yes }
				is_in_faction_with = ROM
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_danubian_membership
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			custom_effect_tooltip = invite_non_fascist_communist_only_TT
			if = {
				limit = {
					YUG = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_in_faction = no
						exists = yes
						is_subject = no
					}
				}
				YUG = {
					country_event = { id = generic.5 }
				}
			}
			if = {
				limit = {
					ROM = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_in_faction = no
						exists = yes
						is_subject = no
					}
				}
				ROM = {
					country_event = { id = generic.5 }
				}
			}
		}
	}

	focus = {
		id = GER_no_balkan_communism
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = GER_danubian_expansion }
		available = {
			is_subject = no
			OR = {
				any_country = { 
					original_tag = HUN
					has_government = communism 
				}
				any_country = { 
					original_tag = ROM
					has_government = communism 
				}
				any_country = { 
					original_tag = YUG
					has_government = communism 
				}
				any_country = { 
					original_tag = BUL
					has_government = communism 
				}
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_danubian_expansion
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			custom_effect_tooltip = GER_no_balkan_communism_tt
			if = {
				limit = {
					any_country = { 
						original_tag = HUN
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_balkan_communism_HUN_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = HUN
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
			if = {
				limit = {
					any_country = { 
						original_tag = ROM
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_balkan_communism_ROM_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = ROM
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
			if = {
				limit = {
					any_country = { 
						original_tag = YUG
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_balkan_communism_YUG_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = YUG
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
			if = {
				limit = {
					any_country = { 
						original_tag = BUL
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_balkan_communism_BUL_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = BUL
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = GER_low_countries_membership
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = GER_central_european_alliance }
		available = {
			is_subject = no
			is_faction_leader = yes
			NOT = { has_war_with = HOL }
			NOT = { has_war_with = BEL }
			NOT = { has_war_with = LUX }
		}
		bypass = {
			OR = {
				NOT = { country_exists = HOL }
				HOL = { is_subject = yes }
				is_in_faction_with = HOL
			}
			OR = {
				NOT = { country_exists = BEL }
				BEL = { is_subject = yes }
				is_in_faction_with = BEL
			}
			OR = {
				NOT = { country_exists = LUX }
				LUX = { is_subject = yes }
				is_in_faction_with = LUX
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_central_european_alliance
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			custom_effect_tooltip = invite_non_fascist_communist_only_TT
			if = {
				limit = {
					HOL = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				HOL = {
					country_event = { id = generic.5 }
				}
			}
			if = {
				limit = {
					BEL = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				BEL = {
					country_event = { id = generic.5 }
				}
			}
			if = {
				limit = {
					LUX = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				LUX = {
					country_event = { id = generic.5 }
				}
			}
		}
	}

	focus = {
		id = GER_no_reds_in_western_europe
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = GER_low_countries_membership }
		available = {
			is_subject = no
			OR = {
				any_country = { 
					original_tag = FRA
					has_government = communism 
				}
				any_country = { 
					original_tag = HOL
					has_government = communism 
				}
				any_country = { 
					original_tag = BEL
					has_government = communism 
				}
				any_country = { 
					original_tag = LUX
					has_government = communism 
				}
			}
		}
		x = 0
		y = 1
		relative_position_id = GER_low_countries_membership
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			custom_effect_tooltip = GER_no_reds_in_western_europe_tt
			if = {
				limit = {
					any_country = { 
						original_tag = FRA
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_reds_in_western_europe_FRA_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = FRA
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
			if = {
				limit = {
					any_country = { 
						original_tag = HOL
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_reds_in_western_europe_HOL_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = HOL
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
			if = {
				limit = {
					any_country = { 
						original_tag = BEL
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_reds_in_western_europe_BEL_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = BEL
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
			if = {
				limit = {
					any_country = { 
						original_tag = LUX
						has_government = communism 
					}
				}
				custom_effect_tooltip = GER_no_reds_in_western_europe_LUX_tt
				hidden_effect = {
					random_other_country = {
						limit = {
							original_tag = LUX
							has_government = communism
						}
						GER = {
							create_wargoal = {
								type = topple_government
								target = PREV
								expire = 0
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = GER_scandinavian_membership
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = GER_central_european_alliance }
		available = {
			is_subject = no
			is_faction_leader = yes
			NOT = { has_war_with = NOR }
			NOT = { has_war_with = SWE }
			NOT = { has_war_with = DEN }
		}
		bypass = {
			OR = {
				NOT = { country_exists = NOR }
				NOR = { is_subject = yes }
				is_in_faction_with = NOR
			}
			OR = {
				NOT = { country_exists = SWE }
				SWE = { is_subject = yes }
				is_in_faction_with = SWE
			}
			OR = {
				NOT = { country_exists = DEN }
				DEN = { is_subject = yes }
				is_in_faction_with = DEN
			}
		}
		cancel_if_invalid = yes
		x = 3
		y = 1
		relative_position_id = GER_central_european_alliance
		cost = 10
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			custom_effect_tooltip = invite_non_fascist_communist_only_TT
			if = {
				limit = {
					NOR = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				NOR = {
					country_event = { id = generic.5 }
				}
			}
			if = {
				limit = {
					SWE = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				SWE = {
					country_event = { id = generic.5 }
				}
			}
			if = {
				limit = {
					DEN = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				DEN = {
					country_event = { id = generic.5 }
				}
			}
		}
	}

	focus = {
		id = GER_baltic_membership
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = GER_scandinavian_membership }
		available = {
			is_subject = no
			is_faction_leader = yes
			NOT = { has_war_with = EST }
			NOT = { has_war_with = LAT }
			NOT = { has_war_with = LIT }
			SOV = {
				OR = {
					NOT = { has_war_with = EST }
					NOT = { has_war_with = LAT }
					NOT = { has_war_with = LIT }
				}
			}
		}
		bypass = {
			EST = {
				OR = {
					is_in_faction_with = ROOT
					is_in_faction_with = SOV
					exists = no
					has_war_with = SOV
					is_subject = yes
				}
			}
			LAT = {
				OR = {
					is_in_faction_with = ROOT
					is_in_faction_with = SOV
					exists = no
					has_war_with = SOV
					is_subject = yes
				}
			}
			LIT = {
				OR = {
					is_in_faction_with = ROOT
					is_in_faction_with = SOV
					exists = no
					has_war_with = SOV
					is_subject = yes
				}
			}
		}
		cancel_if_invalid = yes
		x = -2
		y = 2
		relative_position_id = GER_scandinavian_membership
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			add_named_threat = { threat = 5 name = GER_baltic_membership }
			custom_effect_tooltip = invite_non_fascist_communist_only_TT
			if = {
				limit = {
					EST = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				EST = {
					country_event = { id = generic.5 }
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}	
				}
			}
			if = {
				limit = {
					LAT = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				LAT = {
					country_event = { id = generic.5 }
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}	
				}
			}
			if = {
				limit = {
					LIT = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				LIT = {
					country_event = { id = generic.5 }
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}	
				}
			}
			SOV = { country_event = { id = wtt_germany.21 } }
			POL = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
			FIN = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
		}
	}

	focus = {
		id = GER_polish_membership
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = GER_scandinavian_membership }
		available = {
			is_subject = no
			is_faction_leader = yes
			NOT = { has_war_with = POL }
			SOV = { NOT = { has_war_with = POL } }
		}
		bypass = {
			OR = {
				is_in_faction_with = POL
				NOT = { country_exists = POL }
				POL = { is_subject = yes }
				SOV = { 
					OR = {
						is_in_faction_with = POL
						has_war_with = POL
					}
				}
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 2
		relative_position_id = GER_scandinavian_membership
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			add_named_threat = { threat = 5 name = GER_polish_membership }
			custom_effect_tooltip = invite_non_fascist_communist_only_TT
			if = {
				limit = {
					POL = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				POL = {
					country_event = { id = generic.5 }
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}	
				}
			}
			SOV = { country_event = { id = wtt_germany.22 } }
			EST = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
			LAT = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
			LIT = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
			FIN = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
		}
	}

	focus = {
		id = GER_finnish_membership
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = GER_scandinavian_membership }
		available = {
			is_subject = no
			is_faction_leader = yes
			NOT = { has_war_with = FIN }
			SOV = { NOT = { has_war_with = FIN } }
		}
		bypass = {
			OR = {
				is_in_faction_with = FIN
				NOT = { country_exists = FIN }
				is_subject = yes
				SOV = { 
					OR = { 
						is_in_faction_with = FIN
						has_war_with = FIN
					}
				}
			}
		}
		cancel_if_invalid = yes
		x = 2
		y = 2
		relative_position_id = GER_scandinavian_membership
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			add_named_threat = { threat = 5 name = GER_finnish_membership }
			custom_effect_tooltip = invite_non_fascist_communist_only_TT
			if = {
				limit = {
					FIN = {
						NOT = {
							has_government = communism
							has_government = fascism
						}
						is_subject = no
					}
				}
				FIN = {
					country_event = { id = generic.5 }
					add_ai_strategy = {
						type = alliance
						id = "GER"			
						value = 200
					}	
				}
			}
			SOV = { country_event = { id = wtt_germany.23 } }
			EST = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
			LAT = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
			LIT = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
			POL = {
				add_ai_strategy = {
					type = alliance
					id = "ENG"			
					value = -500
				}	
			}
		}
	}

	focus = {
		id = GER_strike_at_the_source
		icon = GFX_focus_ger_strike_at_the_source
		prerequisite = { focus = GER_baltic_membership }
		prerequisite = { focus = GER_polish_membership }
		prerequisite = { focus = GER_finnish_membership }
		available = {
			is_subject = no
			SOV = {
				has_government = communism
			}
			NOT = { is_in_faction_with = SOV }
		}
		bypass = {
			OR = {
				has_war_with = SOV
				NOT = { country_exists = SOV }
			}
		}
		cancel_if_invalid = yes
		x = 0
		y = 1
		relative_position_id = GER_polish_membership
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			create_wargoal = {
				type = topple_government
				target = SOV
				expire = 0
			}
			if = {
				limit = {
					FRA = { has_government = communism }
				}
				add_ai_strategy = {
					type = antagonize
					id = "GER"
					value = 200
				}
			}
		}
	}

	focus = {
		id = GER_reverse_the_brain_drain
		icon = GFX_focus_research
		prerequisite = { focus = GER_the_monarchy_compromise }
		available = {
			is_subject = no
		}
		x = 2
		y = 1
		relative_position_id = GER_the_monarchy_compromise
		cost = 10
		ai_will_do = {
			factor = 5
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = GER_shared_rd_programs
		icon = GFX_goal_tfv_generic_tech_sharing
		prerequisite = { focus = GER_reverse_the_brain_drain }
		prerequisite = { focus = GER_central_european_alliance }
		available = {
			is_subject = no
		}
		x = 7
		y = 1
		relative_position_id = GER_central_european_alliance
		cost = 10
		ai_will_do = {
			factor = 3
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_to_tech_sharing_group = ger_dem_research
			every_other_country = {
				limit = { is_in_faction_with = GER }
				add_to_tech_sharing_group = ger_dem_research 
			}
		}
	}

	focus = {
		id = GER_the_mannheim_project
		icon = GFX_focus_wonderweapons
		prerequisite = { focus = GER_shared_rd_programs }
		prerequisite = { focus = GER_scandinavian_membership }
		available = {
			is_subject = no
			is_in_faction_with = NOR
		}
		x = -1
		y = 1
		relative_position_id = GER_shared_rd_programs
		cost = 10
		ai_will_do = {
			factor = 1
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			custom_effect_tooltip = GER_the_mannheim_project_tt
			if = {
				limit = {
					NOT = { has_tech = atomic_research }
				}
				add_tech_bonus = {
					name = GER_the_mannheim_project
					bonus = 1.0
					ahead_reduction = 2
					technology = atomic_research
				}
			}
			if = {
				limit = {
					has_tech = atomic_research
					NOT = { has_tech = nuclear_reactor }
				}
				add_tech_bonus = {
					name = GER_the_mannheim_project
					bonus = 1.0
					ahead_reduction = 2
					technology = nuclear_reactor
				}
			}
			if = {
				limit = {
					has_tech = nuclear_reactor
				}
				55 = {
					add_building_construction = {
						type = nuclear_reactor
						level = 1
						instant_build = yes
					}
				}
				add_tech_bonus = {
					name = GER_the_mannheim_project
					bonus = 1.0
					technology = nukes
				}
			}
		}
	}

	focus = {
		id = GER_pool_technical_know_how
		icon = GFX_goal_generic_production
		prerequisite = { focus = GER_shared_rd_programs }
		available = {
			is_subject = no
		}
		x = 1
		y = 1
		relative_position_id = GER_shared_rd_programs
		cost = 10
		ai_will_do = {
			factor = 3
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = GER_pool_technical_know_how
			custom_effect_tooltip = GER_pool_technical_know_how_tt
			hidden_effect = {
				every_other_country = {
					limit = { is_in_faction_with = GER }
					add_ideas = GER_pool_technical_know_how
				}
			}
		}
	}
	
	focus = {
	id = GER_condor_legion
	icon = GFX_ger_condor_legion
	search_filters = { FOCUS_FILTER_SPA_CIVIL_WAR }
	prerequisite = { focus = GER_rhineland }
	available = {
	has_completed_focus = GER_rhineland
	SPR = { has_civil_war = yes }
	GER = { has_war = no }
	}
	x = -6
	y = 1
	relative_position_id = GER_rhineland
	cost = 2
	ai_will_do = {
	    factor = 15
	}
	completion_reward = {
	set_rule = { can_send_volunteers = yes }
	add_political_power = +50
	set_power_balance = {
	    id = GER_power_balance
	    set_default = yes
	}
	}
	}
	
	
	focus = {
	id = GER_operation_brunete
	icon = GFX_operation_brunete_goal
	prerequisite = { focus = GER_condor_legion }
	mutually_exclusive = {  }
	search_filters = { FOCUS_FILTER_SPA_CIVIL_WAR }
	available = {
	SPR = { has_civil_war = yes }
	}
	x = 0
	y = 1
	relative_position_id = GER_condor_legion
	cost = 4
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_power_balance_value = {
    id = GER_power_balance
    value = +0.10
	
    }
	add_timed_idea = {
	idea = GER_operation_brunete
	days = 60
	
	}
	
	}
	}
	
	
	focus = {
	id = GER_meet_with_franco
	icon = GFX_meet_franco
	prerequisite = { focus = GER_condor_legion }
	mutually_exclusive = { focus = GER_backdoor_backstabbing }
	available = {
	has_country_flag = spa_end
	}
	x = -1
	y = 3
	relative_position_id = GER_condor_legion
	cost = 8
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_political_power = 50
	}
	}
	
	focus = {
	id = GER_backdoor_backstabbing
	icon = GFX_backdoor_backstabbing
	prerequisite = { focus = GER_condor_legion }
	mutually_exclusive = { focus = GER_meet_with_franco }
	available = {
	has_country_flag = spa_end
	power_balance_value = {
				id = GER_power_balance
				value > 0.8
			}
	}
	x = 1
	y = 3
	relative_position_id = GER_condor_legion
	cost = 8
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_political_power = -50
	}
	}
	
	focus = {
	id = GER_secret_weapon_shipments
	icon = GFX_weapon_shipments
	prerequisite = { focus = GER_operation_brunete }
	mutually_exclusive = {  }
	search_filters = { FOCUS_FILTER_SPA_CIVIL_WAR }
	available = {
	SPR = { has_civil_war = yes }
	has_equipment = {
    infantry_equipment_1 > 1500
    }
	has_equipment = {
    support_equipment_1 > 200
    }
	has_equipment = {
    artillery_equipment_1 > 100
    }
	}
	x = 0
	y = 2
	relative_position_id = GER_condor_legion
	cost = 4
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_power_balance_value = {
    id = GER_power_balance
    value = +0.10
	
    }
	GER = {
	send_equipment = {

        type = infantry_equipment_1

        amount = 1500
		
		target = SPA

    }
	send_equipment = {

        type = support_equipment_1

        amount = 200
		
		target = SPA
    }
	send_equipment = {

        type = artillery_equipment_1

        amount = 100
		
		target = SPA

    }
    }
	}
	}
	
	focus = {
	id = GER_barbarossa_preperations
	icon = GFX_barb_prepare
	prerequisite = { focus = GER_anti_comitern_pact }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	NOT = { has_completed_focus = GER_soviet_ally }
	}
	x = 3
	y = 1
	relative_position_id = GER_anti_comitern_pact
	cost = 8
	ai_will_do = {
	    factor = 10
	}
	completion_reward = {
	add_timed_idea = {
	idea = GER_barb_preper
	days = 240
	}
	}
	}
	
	focus = {
	id = GER_kickstart_winter_gear_production
	icon = GFX_winter_gear
	prerequisite = { focus = GER_barbarossa_preperations }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	GER = { has_war_with = SOV }
	}
	x = 1
	y = 1
	relative_position_id = GER_barbarossa_preperations
	cost = 8
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_ideas = GER_winter_produce
	add_equipment_to_stockpile = {
    type = support_equipment_1
    amount = 450
    producer = GER
    }
	}
	}
	
	focus = {
	id = GER_logistics_reinforcements
	icon = GFX_supply_reinforce
	prerequisite = { focus = GER_barbarossa_preperations }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	GER = { has_war_with = SOV }
	}
	x = -1
	y = 1
	relative_position_id = GER_barbarossa_preperations
	cost = 8
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_ideas = GER_logistics_reinfo
	}
	}
	
	focus = {
	id = GER_carve_up_spain
	icon = GFX_carve_spain
	prerequisite = { focus = GER_backdoor_backstabbing }
	available = {
	FRA = {
	has_capitulated = yes
	}
	}
	x = 1
	y = 4
	relative_position_id = GER_condor_legion
	cost = 8
	ai_will_do = {
	    factor = 0
	}
	completion_reward = {
	custom_effect_tooltip = GER_decision_unlock_iberia
	}
	}
	
	focus = {
	id = GER_seize_occupied_industry
	icon = GFX_seize_industry
	prerequisite = { focus = GER_form_the_reichskommissariats }
	mutually_exclusive = {  }
	search_filters = { FOCUS_FILTER_INDUSTRY }
	available = {
	
	}
	x = 0
	y = 1
	relative_position_id = GER_form_the_reichskommissariats
	cost = 5
	ai_will_do = {
	    factor = 3
	}
    completion_reward = {
	custom_effect_tooltip = decide_rk_res
	}
	}
	
	focus = {
	id = GER_save_the_duce
	icon = GFX_save_duce
	prerequisite = { focus = GER_rhineland }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	ITA = { has_civil_war = yes }
	}
	bypass = {
	ITA = { is_subject_of = GER }
	}
	x = -3
	y = 1
	relative_position_id = GER_rhineland
	cost = 5
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	RSI = {
	country_event = cltree.9
	}
	add_timed_idea = {
	
	idea = GER_ita_intervene
	days = 50
	}
	}
	}
	
	focus = {
	id = GER_merge_the_ss_gestapo
	icon = GFX_ss_gestapo
	prerequisite = { focus = GER_rhineland }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	power_balance_value = {
				id = GER_power_balance_ss
				value < -0.6
			}
	}
	x = 6
	y = 1
	relative_position_id = GER_rhineland
	cost = 5
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_power_balance_value = {
    id = GER_power_balance_ss
    value = 0.1
	
	}
	add_stability = 0.15
	}
	}
	
	focus = {
	id = GER_himmlers_playground
	icon = GFX_himmlers_playground
	prerequisite = { focus = GER_merge_the_ss_gestapo }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	}
	x = 0
	y = 1
	relative_position_id = GER_merge_the_ss_gestapo
	cost = 5
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_power_balance_value = {
    id = GER_power_balance_ss
    value = 0.25
	
	}
	
	}
	}
	
	focus = {
	id = GER_welthauptstadt
	icon = GFX_welthauptstadt_germania
	prerequisite = { focus = GER_improve_national_spirit }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	}
	x = 0
	y = 1
	relative_position_id = GER_improve_national_spirit
	cost = 20
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	64 = {
    add_extra_state_shared_building_slots = 5
    add_building_construction = {
        type = industrial_complex
        level = 5
        instant_build = yes
    }
    }
	64 = {
    add_extra_state_shared_building_slots = 5
    add_building_construction = {
        type = arms_factory
        level = 5
        instant_build = yes
    }
    }
	set_province_name = { 
	id = 6521 
	name = "Germania" 
	}
	add_victory_points = { province = 6521 value = 25 }
	}
	}
	
	focus = {
	id = GER_exploit_oilfields
	icon = GFX_steal_oil
	prerequisite = { focus = GER_ussr_war_goal }
	mutually_exclusive = {  }
	search_filters = { }
	available = {
	controls_state = 218
	controls_state = 234
	controls_state = 235
	controls_state = 238
	}
	x = 0
	y = 2
	relative_position_id = GER_ussr_war_goal
	cost = 8
	ai_will_do = {
	    factor = 3
	}
	completion_reward = {
	add_resource = {
    type = oil
    amount = 42
    state = 64
    }
	}
	}
}
