
##################################
### TEUTONIC EMPIRE FOCUS TREE
##################################

focus_tree = {
    id = teutonicfocustree

    country = {
        factor = 0
        modifier = {
            add = 10
            tag = GEM
        }
    }

    default = no

    ###########################################
    #### HOCHMEISTER WILHEIM II PATH
    ###########################################
    focus = {
        id = GEM_hochmeisterwilheim
        icon =  GFX_GEM_hochmeisterwilhelm
        x = 45
        y = 0
        cost = 10
        mutually_exclusive = { focus = GEM_rallytheheer }
        completion_reward = {
            add_political_power = 75
            army_experience = 5
            add_threat = 5
            country_event = teuton.1 #####news event for this

            custom_effect_tooltip = tooltipwhitelinelol
			custom_effect_tooltip = historicalpath_tt
        }

    }

    focus = {
        id = GEM_rallytheheer
        icon =  GFX_focus_GER_german_hegemony_in_the_middle_east_demcoratic
        x = 70
        y = 0
        cost = 10
        mutually_exclusive = { focus = GEM_hochmeisterwilheim }
        completion_reward = {
            add_war_support = 0.01
        }
    }

    ######################
    #### CLERGY PATH
    ######################
    focus = {
        id = GEM_dissolutionofthesenate
        icon =  GFX_focus_SWI_dissolve_the_federal_council
        relative_position_id = GEM_hochmeisterwilheim
        x = -5
        y = 1
        cost = 5
        prerequisite = { focus = GEM_hochmeisterwilheim }
        mutually_exclusive = { focus = GEM_thesentorialquestion }
        completion_reward = {
            add_stability = 0.1
            add_political_power = -25
            country_event = teuton.2 #### The Last Debate Event (TWO OPTIONS TO DISBAND THE SENATE)
        }

    }

    focus = {
        id = GEM_puppetprimeminister
        icon =  GFX_focus_generic_freedom_council
        relative_position_id = GEM_dissolutionofthesenate
        x = -1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_dissolutionofthesenate }
        completion_reward = {
            add_stability = 0.05
            add_political_power = -25
            custom_effect_tooltip = tooltipwhitelinelol
			custom_effect_tooltip = unlockjosefkammhuber
        }

    }
    focus = {
        id = GEM_militarisetheclergy
        icon =  GFX_focus_focus_fra_national_resistance_council
        relative_position_id = GEM_dissolutionofthesenate
        x = 1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_dissolutionofthesenate }
        completion_reward = {
            add_war_support = 0.15
            add_ideas = militarisedclergy
        }

    }
    focus = {
        id = GEM_crushthedissidents
        icon =  GFX_focus_spr_crush_the_revolution
        relative_position_id = GEM_militarisetheclergy
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_militarisetheclergy }
        completion_reward = {
            add_stability = -0.20
            country_event = teuton.5 ### EXECUTE, TRIALS OR EXILE 
        }

    }
    focus = {
        id = GEM_destroybureacracy
        icon =  GFX_focus_BUL_destroy_the_zveno
        relative_position_id = GEM_militarisetheclergy
        x = -2
        y = 1
        cost = 5
        prerequisite = { focus = GEM_militarisetheclergy focus = GEM_puppetprimeminister }
        completion_reward = {
            swap_ideas = {
                remove_idea = bureaucraticrestraints
                add_idea = reformedbureaucracy
            }
        }

    }
    focus = {
        id = GEM_absoluteimperialcontrol
        icon =  GFX_focus_PER_expand_imperial_guard
        relative_position_id = GEM_destroybureacracy
        x = 1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_destroybureacracy }
        prerequisite = { focus = GEM_crushthedissidents }
        completion_reward = {
            add_political_power = 50
            add_war_support = 0.10
            add_stability = 0.05
            
            swap_ideas = {
                remove_idea = theteutonicsenate
                add_idea = absoluteimperialcontrol
            }
        }

    }
    focus = {
        id = GEM_preparefortheinevitablewar
        icon =  GFX_focus_BRA_rubber_war
        relative_position_id = GEM_absoluteimperialcontrol
        x = 0
        y = 1
        cost = 10
        prerequisite = { focus = GEM_absoluteimperialcontrol }
        completion_reward = {
            add_ideas = preparingforwar ###output and warsupport gain also news event on dissolution of senate
            hidden_effect = {
                GEM = { news_event = { id = teuton.547 days = 3 }}
            }
        }

    }



    ######################
    #### SENATORIAL PATH
    ######################
    focus = {
        id = GEM_thesentorialquestion
        icon =  GFX_focus_generic_monarchist_sentiment
        relative_position_id = GEM_hochmeisterwilheim
        x = 5
        y = 1
        cost = 5
        prerequisite = { focus = GEM_hochmeisterwilheim }
        mutually_exclusive = { focus = GEM_dissolutionofthesenate }
        completion_reward = {
            add_political_power = 50
            country_event = teuton.455 ### senators wanna oust kaiser, kaiser must decide what to do with them. all lose stabiity eitheray 
        }

    }
    focus = {
        id = GEM_reformorruin
        icon =  GFX_reformorruin
        relative_position_id = GEM_thesentorialquestion
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_thesentorialquestion }
        completion_reward = {
            swap_ideas = {
                remove_idea = theteutonicsenate
                add_idea = reforming ### bad modifiers
            }

        }

    }
    focus = {
        id = GEM_constitutionaldraft
        icon =  GFX_constitutionaldraft
        relative_position_id = GEM_reformorruin
        x = -1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_reformorruin }
        mutually_exclusive = { focus = GEM_kaisersultimatum }
        completion_reward = {
            swap_ideas = {
                remove_idea = reforming
                add_idea = reforming2 ###modifiying its effects
            }
        }

    }
    focus = {
        id = GEM_kaisersultimatum
        icon =  GFX_focus_GER_new_reforms_in_the_wehrmacht
        relative_position_id = GEM_reformorruin
        x = 1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_reformorruin }
        mutually_exclusive = { focus = GEM_constitutionaldraft }
        completion_reward = {
            country_event = teuton.555 #### either pass or not, RNG!
        }

    }

    focus = {
        id = GEM_senatorialelections
        icon =  GFX_focus_generic_election
        relative_position_id = GEM_constitutionaldraft
        x = 1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_constitutionaldraft focus = GEM_kaisersultimatum }
        completion_reward = {
            add_stability = 0.15
            country_event = senatorialelections ###choose three senators, one better than all
            remove_idea = bureaucraticrestraints
        }

    }

    focus = {
        id = GEM_passthelawofreichstag
        icon =  GFX_focus_ARG_the_clean_election
        relative_position_id = GEM_senatorialelections
        x = 0
        y = 1
        cost = 10
        prerequisite = { focus = GEM_senatorialelections }
        completion_reward = {
            remove_idea = reforming2
            country_event = teuton.777 ### strip all senatorial power, add stability, war support, pp gain, and etc. also news event
        } 

    }



    ######################
    #### ORDENPOLIZEI
    ######################

    focus = {
        id = GEM_establishtheordenspolizei
        icon =  GFX_focus_AFG_work_with_german_inteligence
        relative_position_id = GEM_hochmeisterwilheim
        x = 0
        y = 2
        cost = 10
        prerequisite = { focus = GEM_hochmeisterwilheim }
        completion_reward = {
			create_intelligence_agency = {
				name = "Ordenspolizei"
				icon = GFX_intelligence_agency_logo_generic_7
			}
        }

    }
    focus = {
        id = GEM_formdepartment
        icon =  GFX_focus_ARG_end_operation_bolivar
        relative_position_id = GEM_establishtheordenspolizei
        x = 1
        y = 1
        cost = 10
        prerequisite = { focus = GEM_establishtheordenspolizei }
        completion_reward = {
			upgrade_intelligence_agency = upgrade_form_department
        }

    }
    focus = {
        id = GEM_operationaleffectiveness
        icon =  GFX_focus_CHL_cooperation_with_the_falange
        relative_position_id = GEM_establishtheordenspolizei
        x = -1
        y = 1
        cost = 10
        prerequisite = { focus = GEM_establishtheordenspolizei }
        completion_reward = {
            upgrade_intelligence_agency = upgrade_commando_training
        }

    }
    focus = {
        id = GEM_eyesandearseverywhere
        icon =  GFX_focus_generic_secret_service_agency
        relative_position_id = GEM_operationaleffectiveness
        x = 1
        y = 1
        cost = 10
        prerequisite = { focus = GEM_operationaleffectiveness }
        prerequisite = { focus = GEM_formdepartment }
        completion_reward = {
            add_ideas = eyesandeareverywhere
        }

    }

    ######################
    #### CENTRAL PATH
    ######################

    focus = {
        id = GEM_unionwithaustria
        icon =  GFX_focus_GER_glory_to_the_imperial_army
        relative_position_id = GEM_preparefortheinevitablewar
        x = 5
        y = 1
        cost = 10
        prerequisite = { focus = GEM_preparefortheinevitablewar focus = GEM_passthelawofreichstag }
        completion_reward = {
            AUT = { country_event = { id = teuton.6 days = 1 }} #### anschluss CHANGE LATER

			add_political_power = 50 
        }

    }

    focus = {
        id = GEM_antiromanpact
        icon =  GFX_antiromanpact
        relative_position_id = GEM_unionwithaustria
        x = 3
        y = 1
        cost = 5
        prerequisite = { focus = GEM_unionwithaustria }
        completion_reward = { ###add traits
            hidden_effect = {
				news_event = antiromanpactalert
            }

			create_faction = Kaiserpakt
            set_faction_leader = yes

            custom_effect_tooltip = tooltipwhitelinelol
			custom_effect_tooltip = historicalpath_tt
        }

    }

    focus = {
        id = GEM_invitefrancians
        icon =  GFX_invitefrancians
        relative_position_id = GEM_antiromanpact
        x = 2
        y = 1
        cost = 5
        prerequisite = { focus = GEM_antiromanpact }
        completion_reward = {
            FAC = { country_event = { id = teuton.207 days = 1 }}
        }

    }

    focus = {
        id = GEM_invitebrits
        icon =  GFX_GEM_invitebritain
        relative_position_id = GEM_antiromanpact
        x = 5
        y = 1
        cost = 5
        prerequisite = { focus = GEM_antiromanpact }
        completion_reward = {
            GBB = { country_event = { id = teuton.208 days = 1 }}
        }

    }
    focus = {
        id = GEM_asserteasternclaims
        icon =  GFX_focus_POL_belarus_army
        relative_position_id = GEM_antiromanpact
		available = {
			has_war_with_major = yes
		}
        x = 8
        y = 1
        cost = 5
        prerequisite = { focus = GEM_antiromanpact }
        completion_reward = {
			add_state_claim = 814
			add_state_claim = 815
			add_state_claim = 189

			news_event = teuton.551255 ### teutonic empire asserts eastern claims
        }
    }

    focus = {
        id = GEM_endthecommonwealth
        icon =  GFX_focus_GER_further_demands_for_polish_territory
        relative_position_id = GEM_asserteasternclaims
		mutually_exclusive = { focus = GEM_protectthecommonwealth }
        x = 1
        y = 2
        cost = 5
        prerequisite = { focus = GEM_asserteasternclaims }
        completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = COP
			}
        }
    }

    focus = {
        id = GEM_protectthecommonwealth
        icon =  GFX_focus_GER_realpolitik
        relative_position_id = GEM_asserteasternclaims
		mutually_exclusive = { focus = GEM_endthecommonwealth }
        x = -1
        y = 2
        cost = 5
        prerequisite = { focus = GEM_asserteasternclaims }
        completion_reward = {
			COP = { country_event = { id = teuton.466 days = 1 }}
        }
    }
    focus = { 
        id = GEM_fateofthecommonwealth
        icon =  GFX_focus_POL_expand_polish_intelligence
        relative_position_id = GEM_protectthecommonwealth
		available = {
			COP = { is_puppet = yes }
		}
        x = 1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_protectthecommonwealth focus = GEM_endthecommonwealth }
        completion_reward = {
			country_event = teuton.9
        }
    }

    focus = {
        id = GEM_invitetheczech
        icon =  GFX_focus_CZE_czechoslovak_legion_export
        relative_position_id = GEM_antiromanpact
        x = -2
        y = 1
        cost = 5
        prerequisite = { focus = GEM_antiromanpact }
        mutually_exclusive = { focus = GEM_sudenland }
        completion_reward = {
			CES = { country_event = { id = teuton.299 days = 1 }} 
        }

    }

    focus = { ### WIP
        id = GEM_beneluxquestion
        icon =  GFX_focus_generic_influence_benelux
        relative_position_id = GEM_sudenland
        x = 1
        y = 3
        cost = 5
        prerequisite = { focus = GEM_invitetheczech focus = GEM_sudenland }
        completion_reward = {
			UNP = { country_event = { id = teuton.10 days = 1 }}
        }
    }

    focus = {
        id = GEM_alliancewithiberia
        icon =  GFX_ERE_reachouttohispania
        relative_position_id = GEM_beneluxquestion
        x = 1
        y = 1
        cost = 10
        prerequisite = { focus = GEM_beneluxquestion }
        mutually_exclusive = { focus = GEM_warwithiberia }
        completion_reward = {
			IBC = { country_event = { id = teuton.16 days = 1 }} 
        }

    }
    focus = {
        id = GEM_treatywithnewspain
        icon =  GFX_focus_spa_no_compromise_on_carlist_ideals
        relative_position_id = GEM_alliancewithiberia
        x = 1
        y = 1
        cost = 10
        prerequisite = { focus = GEM_alliancewithiberia focus = GEM_warwithiberia }
        completion_reward = {
			NSR = { country_event = { id = teuton.771727 days = 1  }}
        }

    }
    focus = {
        id = GEM_finalblowtoallromans
        icon =  GFX_focus_RAJ_lions_of_the_great_war
        relative_position_id = GEM_treatywithnewspain
        x = 2
        y = 2
        cost = 15
        prerequisite = { focus = GEM_alliancewithiberia focus = GEM_theafricanfrontier }
        completion_reward = {
			create_wargoal = {
				target = LSA
				type = annex_everything
			}
			add_ideas = finalblowtoallromans
        }

    }
    focus = {
        id = GEM_warwithiberia
        icon =  GFX_focus_generic_free_iberia
        relative_position_id = GEM_beneluxquestion
        x = 3
        y = 1
        cost = 10
        prerequisite = { focus = GEM_beneluxquestion }
        mutually_exclusive = { focus = GEM_alliancewithiberia }
        completion_reward = {
            create_wargoal = {
                type = puppet_wargoal_focus
                target = IBC
            }
        }

    }
    focus = {
        id = GEM_sudenland
        icon =  GFX_focus_generic_attack_czechoslovakia
        relative_position_id = GEM_antiromanpact
        x = -4
        y = 1
        cost = 5
        prerequisite = { focus = GEM_antiromanpact }
        mutually_exclusive = { focus = GEM_invitetheczech }
        completion_reward = {
			CES = { country_event = { id = teuton.300 days = 1 }}
        }

    }

    focus = {
        id = GEM_czechclaims
        icon =  GFX_focus_PER_czech_tanks
        relative_position_id = GEM_sudenland
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_sudenland }
        completion_reward = {
			add_state_claim = 9
			add_state_claim = 75
			add_state_claim = 664 
        }

    }
    focus = {
        id = GEM_integrateczechslovakia
        icon =  GFX_focus_GER_integrate_czechoslovakia
        relative_position_id = GEM_czechclaims
        x = -1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_czechclaims focus = GEM_berlinmoscowpact }
        completion_reward = {
			add_state_core = 9
			add_state_core = 73
			add_state_core = 71
			add_state_core = 74
			add_state_core = 75
			add_state_core = 69
			add_state_core = 972
			add_state_core = 664
			add_state_core = 70
			add_state_core = 72
        }

    }
    focus = {
        id = GEM_influencescandivaia
        icon =  GFX_focus_generic_scandinavian_alliance
        relative_position_id = GEM_integrateczechslovakia
        x = -4
        y = 0
        cost = 5
        prerequisite = { focus = GEM_berlinmoscowpact focus = GEM_expandtheacademy }
        completion_reward = {
			diplomatic_relation = {
				country = FLN
				relation = guarantee
				active = yes
			}
			diplomatic_relation = {
				country = SNW
				relation = guarantee
				active = yes
			}
			diplomatic_relation = {
				country = DNK
				relation = guarantee
				active = yes
			}
        }

    }
    focus = {
        id = GEM_securefinland
        icon =  GFX_focus_FIN_a_cry_for_help
        relative_position_id = GEM_influencescandivaia
        x = -1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_influencescandivaia }
        completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = FLN
			}
        }

    }
    focus = {
        id = GEM_demandstoswedenandnorway
        icon =  GFX_focus_FIN_northern_defense_front
        relative_position_id = GEM_influencescandivaia
        x = 1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_influencescandivaia }
        completion_reward = {
			SNW = { country_event = { id = teuton.13 days = 1 }}
        }

    }

    focus = {
        id = GEM_prepareforthegreatwar
        icon =  GFX_focus_GRE_reviving_the_spartan_warrior_spirit
        relative_position_id = GEM_invitebrits
        x = -1.5
        y = 2
        cost = 5
        prerequisite = { focus = GEM_invitebrits }
        prerequisite = { focus = GEM_invitefrancians }
        completion_reward = {
            add_threat = 5
            add_timed_ideas = { idea = preparingformountainwarfare days = 200 }
			
            hidden_effect = {
                WRE = { country_event = { id = teuton.666 days = 1 }} 
                ERE = { country_event = { id = teuton.667 days = 1 }}
            }
			
        }

    }
    focus = {
        id = GEM_crushtheeagle
        icon =  GFX_focus_generic_total_war
        relative_position_id = GEM_invitebrits
        x = -1.5
        y = 3
        cost = 10
        prerequisite = { focus = GEM_prepareforthegreatwar }
        completion_reward = {
            add_threat = 5
            WRE = { country_event = { id = teuton.69 days = 1 }} ####declaration of war
        }

    }
    focus = {
        id = GEM_antiromandoctrine
        icon =  GFX_focus_GRE_reviving_the_double_headed_eagle
        relative_position_id = GEM_invitefrancians
        x = -1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_invitefrancians }
        completion_reward = {
            add_timed_idea = { idea = antiromandoctrine days = 365 }
        }

    }
    focus = {
        id = GEM_winbyair
        icon =  GFX_SOV_increase_aircraft_production_ccp_2d_sov_compatibility
        relative_position_id = GEM_antiromandoctrine
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_antiromandoctrine }
        completion_reward = {
            add_ideas = winbyair
        }

    }



        focus = {
        id = GEM_reorganisetheheer
        icon =  GFX_focus_DEN_haeren_reorganization
        relative_position_id = GEM_unionwithaustria
        x = -3
        y = 1
        cost = 5
        prerequisite = { focus = GEM_unionwithaustria }
        mutually_exclusive = { focus = GEM_armyloyalty }
        completion_reward = {
            add_political_power = 50
            add_stability = 0.05

            custom_effect_tooltip = tooltipwhitelinelol
			custom_effect_tooltip = unlockwalterhermann
        }

    }

    focus = {
        id = GEM_treatywiththerussians
        icon =  GFX_focus_generic_diplomatic_treaty
        relative_position_id = GEM_reorganisetheheer
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_reorganisetheheer }
        completion_reward = {
            RSF = { country_event = { id = teuton.99 days = 1 }}
        }

    }
    focus = {
        id = GEM_berlinmoscowpact
        icon =  GFX_goal_generic_forceful_treaty
        relative_position_id = GEM_treatywiththerussians
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_treatywiththerussians }
        completion_reward = {
            RSF = { country_event = { id = teuton.100 days = 1 }} ###always decline!
        }

    }

    focus = {
        id = GEM_expandteutoniclegions
        icon =  GFX_focus_ETH_ecole_militaire_haile_selassie_1er
        relative_position_id = GEM_reorganisetheheer
        x = -2
        y = 1
        cost = 5
        prerequisite = { focus = GEM_reorganisetheheer }
        completion_reward = {
            country_event = teuton.867 ###similar to home legions
        }

    }
    focus = {
        id = GEM_womensarmycorps
        icon =  GFX_focus_SOV_womens_fascist_movement
        relative_position_id = GEM_expandteutoniclegions
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_expandteutoniclegions }
        completion_reward = {
            add_ideas = womenarmyscorpsp
        }

    }

    focus = {
        id = GEM_openupanewfrontagainsteastrome #### inviteromaniansandinstantwar
        icon =  GFX_focus_DEN_fromandskorpset
        relative_position_id = GEM_crushtheeagle
        x = 1
        y = 2
        cost = 5
        prerequisite = { focus = GEM_crushtheeagle }
        completion_reward = {
			WAI = { country_event = { id = teuton.788 days = 1 }}
        }
    }

    focus = {
        id = GEM_allythepannonians
        icon =  GFX_focus_HUN_proclaim_greater_hungary
        relative_position_id = GEM_crushtheeagle
		mutually_exclusive = { focus = GEM_liberatepannonia }
        x = 3
        y = 2
        cost = 5
        prerequisite = { focus = GEM_crushtheeagle }
        completion_reward = {
			PAM = { country_event = { id = teuton.21565 days = 1 }}
        }
    }

    focus = {
        id = GEM_liberatepannonia
        icon =  GFX_focus_generic_attack_hungary
        relative_position_id = GEM_crushtheeagle
		mutually_exclusive = { focus = GEM_allythepannonians }
        x = 5
        y = 2
        cost = 5
        prerequisite = { focus = GEM_crushtheeagle }
        completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = PAM
			}
        }
    }

    focus = {
        id = GEM_theafricanfrontier
        icon =  GFX_focus_GER_afrikakorps
        relative_position_id = GEM_crushtheeagle
        x = -1
        y = 2
        cost = 10
        prerequisite = { focus = GEM_crushtheeagle }
        completion_reward = {
			add_timed_idea = { idea = afrikacorps1 days = 565 }
        }

    }
    focus = {
        id = GEM_theasianfront
        icon =  GFX_focus_GER_create_asian_reichskommissariat
        relative_position_id = GEM_theafricanfrontier
        x = 1
        y = 1
        cost = 10
        prerequisite = { focus = GEM_theafricanfrontier focus = GEM_openupanewfrontagainsteastrome focus = GEM_allythepannonians focus = GEM_liberatepannonia}
        completion_reward = {
			add_timed_idea = { idea = GEM_asianfront days = 767 }
        }

    }

        focus = {
        id = GEM_armyloyalty
        icon =  GFX_focus_DEN_reorganize_sovaernet
        relative_position_id = GEM_unionwithaustria
		mutually_exclusive = { focus = GEM_reorganisetheheer }
        x = -9
        y = 1
        cost = 5
        prerequisite = { focus = GEM_unionwithaustria }
        completion_reward = {
            swap_ideas = {
                remove_idea = decentralisedarmy
                add_idea = armyloyal1
            }
        }

    }


        focus = {
        id = GEM_armyindoctrination
        icon =  GFX_SOV_an_adaptable_army_ccp_2d_sov_compatibility
        relative_position_id = GEM_armyloyalty
        x = -1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_armyloyalty }
		mutually_exclusive = { focus = GEM_appointloyalofficers }
        completion_reward = {
			if = {
				limit = { has_idea = armyloyal3 }
				swap_ideas = {
					remove_idea = armyloyal3
					add_idea = armyloyal2
				}
			}
			else = {
				swap_ideas = {
					remove_idea = armyloyal1
					add_idea = armyloyal2
				}
			}
        }

    }

        focus = {
        id = GEM_appointloyalofficers ###nepotism
        icon =  GFX_focus_CONGO_congo_army
        relative_position_id = GEM_armyloyalty
		mutually_exclusive = { focus = GEM_armyindoctrination }
        x = 1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_armyloyalty }
        completion_reward = {

        add_doctrine_cost_reduction = {
	        cost_reduction = 0.5
	        uses = 2
	        category = land_doctrine
        }

			if = {
				limit = { has_idea = armyloyal2 }
				swap_ideas = {
					remove_idea = armyloyal2
					add_idea = armyloyal3
				}
			}
			else = {
				swap_ideas = {
					remove_idea = armyloyal1
					add_idea = armyloyal3
				}
			}
        }

    }

        focus = { ### W.I.P
        id = GEM_prisonerformations
        icon =  GFX_focus_GER_support_the_proletarian_uprising
        relative_position_id = GEM_armyindoctrination
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_armyindoctrination }
        completion_reward = {
            add_manpower = 10000
            country_event = teuton.2222
        }

    }
        focus = {
        id = GEM_expandtheacademy
        icon =  GFX_focus_ETH_expand_the_kebur_zabagna
        relative_position_id = GEM_appointloyalofficers
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_appointloyalofficers }
        completion_reward = {
            add_manpower = 15000
            add_timed_idea = { idea = expandedacademy days = 250 }
            add_tech_bonus = {
                bonus = 0.75
                uses = 2
                category = support_tech
            }
            add_doctrine_cost_reduction = {
	            cost_reduction = 0.75
	            uses = 1
	            category = special_forces_doctrine
            }
        }

    }

        focus = {
        id = GEM_anewtypeofwarfare
        icon =  GFX_focus_FIN_confederated_finno_russian_republics
        relative_position_id = GEM_armyloyalty
        x = 0
        y = 3
        cost = 5
        prerequisite = { focus = GEM_appointloyalofficers focus = GEM_armyindoctrination }
        completion_reward = {
			add_tech_bonus = {
				ahead_reduction = 2
				uses = 1
				category = armor
				category = artillery
				category = naval_equipment
				category = air_equipment
			}
        }

    }
    ###########################################
    #### ANTILEGIONSTATES
    ###########################################
    focus = {
        id = GEM_crossingthealtanic
        icon =  GFX_focus_usa_tank_destroyer_doctrine
        relative_position_id = GEM_beneluxquestion
        x = -3
        y = 1
        cost = 10
        prerequisite = { focus = GEM_beneluxquestion focus = GEM_demandstoswedenandnorway }
        completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = LSA
			}
			add_timed_idea = { idea = crossingthealtanic days = 365 }
        }

    }
    focus = {
        id = GEM_antilegionaares
        icon =  GFX_focus_NORDIC_com_selector_army
        relative_position_id = GEM_crossingthealtanic
        x = 2
        y = 1
        cost = 10
        prerequisite = { focus = GEM_crossingthealtanic }
        completion_reward = {
			add_ideas = antilegionary
        }

    }
    focus = {
        id = GEM_shatterlegionaryair
        icon =  GFX_focus_HUN_establish_the_mavag_aircraft_factory
        relative_position_id = GEM_crossingthealtanic
        x = 0
        y = 1
        cost = 10
        prerequisite = { focus = GEM_crossingthealtanic }
        completion_reward = {
			add_timed_idea = { idea = shatterlegionaryair days = 565 }
        }

    }
    focus = {
        id = GEM_altanicnavaldominance
        icon =  GFX_SOV_an_oceangoing_navy_ccp_2d_sov_compatibility
        relative_position_id = GEM_crossingthealtanic
        x = -2
        y = 1
        cost = 10
        prerequisite = { focus = GEM_crossingthealtanic }
        completion_reward = {
			add_timed_idea = { idea = altanticnavaldominance days = 565 }
        }

    }
    focus = {
        id = GEM_fateofthelegionstates
        icon =  GFX_focus_usa_voter_registration_act
        relative_position_id = GEM_shatterlegionaryair
        x = 0
        y = 1
        cost = 10
        prerequisite = { focus = GEM_shatterlegionaryair focus = GEM_altanicnavaldominance focus = GEM_antilegionaares }
        completion_reward = {
        }

    }
    ###########################################
    #### CHINESE INTERVENTION TREE
    ###########################################
    focus = {
        id = GEM_backtherepublicans
        icon =  GFX_focus_chi_one_china_policy
		relative_position_id = GEM_hochmeisterwilheim
        x = 10
        y = 1
        cost = 5
        prerequisite = { focus = GEM_hochmeisterwilheim focus = GEM_rallytheheer }
        mutually_exclusive = { focus = GEM_supportthenorthernimperialists }
        completion_reward = {
            add_opinion_modifier = {
                target = CRP     
                modifier = medium_increase
            }
        }

    }
    focus = {
        id = GEM_oldcoloniesinasia
        icon =  GFX_focus_BRA_amazon_colonization
        relative_position_id = GEM_backtherepublicans
        x = 2.5
        y = 1
        cost = 10
        prerequisite = { focus = GEM_backtherepublicans focus = GEM_supportthenorthernimperialists }
        completion_reward = {
            add_war_support = 0.2
        }
    }
    focus = {
        id = GEM_strengthencolonialpresence
        icon =  GFX_focus_CHL_protect_the_easter_island
        relative_position_id = GEM_oldcoloniesinasia
        x = 0
        y = 1
        cost = 10
        prerequisite = { focus = GEM_oldcoloniesinasia }
        completion_reward = {
            add_war_support = 0.2
        }
    }
    focus = {
        id = GEM_militarysupport
        icon =  GFX_focus_CZE_military_research_institute
        relative_position_id = GEM_backtherepublicans
        x = 0
        y = 1
        cost = 5
        prerequisite = { focus = GEM_backtherepublicans }
        completion_reward = {
            send_equipment = {
                equipment = infantry_equipment
                amount = 10000
                target = CRP
            }
        }
    }
    focus = {
        id = GEM_quidproquo
        icon =  GFX_focus_generic_purchase_mechanized_equipment
        relative_position_id = GEM_backtherepublicans
        x = -2
        y = 1
        cost = 5
        prerequisite = { focus = GEM_backtherepublicans }
        completion_reward = {
            add_offsite_building = { type = industrial_complex level = 2 }
        }
    }
    focus = {
        id = GEM_allyrepublicans
        icon =  GFX_SOV_autonomous_soviet_republics_ccp_2d_sov_compatibility
        relative_position_id = GEM_militarysupport
        x = -1
        y = 1
        cost = 5
        prerequisite = { focus = GEM_militarysupport }
        prerequisite = { focus = GEM_quidproquo }
        completion_reward = {
            CRP = { country_event = { id = teuton.555 days = 1 }} ### Ally OR GURANTEE?
        }
    }
    focus = {
        id = GEM_legacyof1901
        icon =  GFX_focus_CHL_fuerza_aerea_de_chile
        relative_position_id = GEM_allyrepublicans
        x = 0
        y = 2
        cost = 5
        prerequisite = { focus = GEM_allyrepublicans }
        completion_reward = {
            add_timed_idea = { idea = legacyof1901 days = 365 }
			CRP = { country_event = { id = teuton.1882 days = 1 }}
            create_wargoal = {
                type = puppet_wargoal_focus
                target = JAP
            }
            add_threat = 3
        }
    }

    focus = {
        id = GEM_supportthenorthernimperialists
        icon =  GFX_focus_ARG_the_war_machine
		relative_position_id = GEM_hochmeisterwilheim
        x = 15
        y = 1
        cost = 10
        prerequisite = { focus = GEM_hochmeisterwilheim focus = GEM_rallytheheer }
        mutually_exclusive = { focus = GEM_backtherepublicans }
        completion_reward = {
            add_opinion_modifier = {
                target = MIG
                modifier = medium_increase
            }
        }
    }
    focus = {
        id = GEM_chinesenavalcoorperation
        icon =  GFX_focus_HUN_expand_the_diosgyor_machinery_factory
        relative_position_id = GEM_supportthenorthernimperialists
        x = 2
        y = 1
        cost = 10
        prerequisite = { focus = GEM_supportthenorthernimperialists }
        completion_reward = {
			add_tech_bonus = {
				bonus = 0.75
				uses = 2
				category = mio_cat_tech_all_capital_ship_and_modules
				category = mio_cat_tech_all_carrier_and_modules
			}
			navy_experience = 25

        }
    }
    focus = {
        id = GEM_pacificdominance
        icon =  GFX_focus_GER_expand_pacific_holdings
        relative_position_id = GEM_chinesenavalcoorperation
        x = 0 
        y = 2
        cost = 10
        prerequisite = { focus = GEM_chinesenavalcoorperation }
        completion_reward = {

			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = marine_tech
			}
			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = tp_tech
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_doctrine_cost_reduction = {
					cost_reduction = 0.5
					uses = 2
					category = cat_marines_doctrine
				}
			}

			add_timed_idea = {
				idea = GER_pacific_blitzkrieg_ns
				days = 365
			}

        }
    }
    focus = {
        id = GEM_chineseconcessions
        icon =  GFX_focus_ARG_strengthening_the_concordancia
        relative_position_id = GEM_supportthenorthernimperialists
        x = 0 
        y = 2
        cost = 10
        prerequisite = { focus = GEM_supportthenorthernimperialists }
        completion_reward = {
			add_offsite_building = { type = industrial_complex level = 2 }
        }
    }
    focus = {
        id = GEM_teutonicsouthasia
        icon =  GFX_focus_GER_south_east_asian_natural_wealth
        relative_position_id = GEM_chineseconcessions
        x = -1
        y = 1
        cost = 10
        prerequisite = { focus = GEM_chineseconcessions }
        completion_reward = {
            add_war_support = 0.2 
        }
    }





	focus = {
		id = GEM_theteutonicarmy
		icon = GFX_teutonicarmy

		x = 13
		y = 0
		cost = 5
		available = {
		}

		completion_reward = {
			add_command_power = 25
			army_experience = 25

		}
	}
	
	
	focus = {
		id = GEM_thelegacyoftheorder
		icon = GFX_focus_GER_prussian_legacy
		prerequisite = { focus = GEM_theteutonicarmy }
		mutually_exclusive = { focus = GEM_teutonicpanzerdoctrine }
		x = -4
		y = 1
		relative_position_id = GEM_theteutonicarmy
		cost = 5
		available = {
		}

		completion_reward = {
			add_command_power = 25
			army_experience = 15

			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 2
				category = cat_grand_battle_plan
			}

			add_ideas = teutoniclegacy

		}
	}
	
	focus = {
		id = GEM_motoriseddevelopment
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = GEM_thelegacyoftheorder }

		x = -1
		y = 1
		relative_position_id = GEM_thelegacyoftheorder
		cost = 5
		available = {
		}
		completion_reward = {
            swap_ideas = {
				remove_idea = teutoniclegacy
				add_idea = teutoniclegacy1
			}
		}
	}

	focus = {
		id = GEM_pomeriantradition
		icon = GFX_focus_generic_little_entente
		prerequisite = { focus = GEM_thelegacyoftheorder }

		x = 1
		y = 1
		relative_position_id = GEM_thelegacyoftheorder
		cost = 5
		available = {
		}

		completion_reward = {
			army_experience = 15

			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 2
				category = land_doctrine
			}

		}
	}			

	focus = {
		id = GEM_artillerypriority
		icon = GFX_focus_SWE_let_fly_all_guns
		prerequisite = { focus = GEM_pomeriantradition }
		prerequisite = { focus = GEM_motoriseddevelopment }

		x = 1
		y = 1
		relative_position_id = GEM_motoriseddevelopment
		cost = 10
		available = {
		}

		completion_reward = { #### STILL W.I.P


			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = artillery
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = infantry_weapons
			}

			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.5
			}

			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				custom_effect_tooltip = generic_skip_one_line_tt

				create_equipment_variant = {
					name = "Sturmpanzer"
					parent_version = 0
					type = medium_tank_artillery_chassis_1
					modules = {
						main_armament_slot = tank_medium_howitzer
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_bogie_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_gasoline_engine
					}
					upgrades = {
						tank_nsb_engine_upgrade = 6
						tank_nsb_armor_upgrade = 2
					}
					icon = "GFX_GER_basic_medium_art_medium"
				}

				create_equipment_variant = {
					name = "Nashorn"
					parent_version = 0
					type = medium_tank_destroyer_chassis_1
					modules = {
						main_armament_slot = tank_medium_cannon
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_bogie_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_gasoline_engine
					}
					upgrades = {
						tank_nsb_engine_upgrade = 6
						tank_nsb_armor_upgrade = 2
					}
					icon = "GFX_GER_basic_light_td"
				}
			}
		}
	}
	
	focus = {
		id = GEM_teutonictrooper
		icon = GFX_focus_CHL_departemento_de_las_tropas_nacistas_de_asalto
		prerequisite = { focus = GEM_artillerypriority }

		x = 0
		y = 1
		relative_position_id = GEM_artillerypriority
		cost = 5
		available = {
		}

		completion_reward = {
			army_experience = 15

			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = infantry_weapons
			}

		}
	}
	

	
	
	focus = {
		id = GEM_centralisedcommand
		icon = GFX_goal_generic_axis_build_infantry
		prerequisite = { focus = GEM_thelegacyoftheorder focus = GEM_teutonicpanzerdoctrine }

		x = 4
		y = 3
		relative_position_id = GEM_thelegacyoftheorder
		cost = 5
		available = {
		}

		completion_reward = {
			army_experience = 25
			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}


		}
	}
	
	focus = {
		id = GER_establish_the_afrikakorps
		icon = GFX_focus_GER_afrikakorps
		prerequisite = { focus = GEM_centralisedcommand }

		x = -2
		y = 1
		relative_position_id = GEM_centralisedcommand
		cost = 5
		available = {
			OR = {
				AND = {
					any_controlled_state = {
						is_fully_controlled_by = ROOT
						OR =  {
							is_on_continent = africa
							is_on_continent = asia
						}
					}
				}
				AND = {
					any_subject_country = {
						any_controlled_state = {
							is_fully_controlled_by = PREV
							OR =  {
								is_on_continent = africa
								is_on_continent = asia
							}
						}
					}
				}
				AND = {
					any_allied_country = {
						any_controlled_state = {
							is_fully_controlled_by = PREV
							OR =  {
								is_on_continent = africa
								is_on_continent = asia
							}
						}
					}
				}
			}
		}

		completion_reward = {

				### GER_military_acclimatization_hot_climate_gain_factor = 0.1


		}
	}

	focus = {
		id = GER_establish_the_skijager
		icon = GFX_focus_GER_gebirgsjager
		prerequisite = { focus = GEM_centralisedcommand }

		x = 2
		y = 1
		relative_position_id = GEM_centralisedcommand
		cost = 5
		available = {
		}

		completion_reward = {

				### GER_military_special_forces_cap = 0.05

				### GER_military_acclimatization_cold_climate_gain_factor = 0.1


			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}

				add_doctrine_cost_reduction = {
					cost_reduction = 0.25
					uses = 2
					category = cat_mountaineers_doctrine
				}
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = mountaineers_tech
			}
		}
	}
	
	focus = {
		id = GEM_panzergrenadier
		icon = GFX_focus_generic_mechanized
		prerequisite = { focus = GEM_centralisedcommand }

		x = 0
		y = 1
		relative_position_id = GEM_centralisedcommand
		cost = 10
		available = {
		}

		completion_reward = {

			add_tech_bonus = {
				ahead_reduction = 1
				bonus = 1
				uses = 1
				category = cat_mechanized_equipment
			}
		}
	}
	
	focus = {
		id = GEM_nationaliseautoindustries
		icon = GFX_focus_generic_truck
		prerequisite = { focus = GEM_panzergrenadier }

		x = -3
		y = 1
		relative_position_id = GEM_panzergrenadier
		cost = 5
		available = {
		}
		continue_if_invalid = yes

		completion_reward = {
			51 = { #Rhineland
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = cat_mechanized_equipment
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				add_tech_bonus = {
					bonus = 1
					uses = 1
					category = cat_armored_cars
				}

				set_technology = {
					GER_heavy_armored_car = 1
					popup = yes
				}
			}


		}
	}
	
	focus = {
		id = GEM_teutonrail
		icon = GFX_focus_GER_kriegslokomotive
		prerequisite = { focus = GEM_panzergrenadier }

		x = 3
		y = 1
		relative_position_id = GEM_panzergrenadier
		cost = 5
		available = {
			has_war = yes
		}

		completion_reward = {
			if = {
				limit = {
					controls_state = 64
				}
				64 = { #Brandenburg
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_state = {
					limit = {
						is_controlled_by = ROOT
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			


			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = train_tech
			}



			add_equipment_to_stockpile = {
				type = train_equipment
				amount = 15
			}


		}
	}
	
	focus = {
		id = GEM_logisticaldevelopments
		icon = GFX_focus_generic_reinforcing_the_supply_network
		prerequisite = { focus = GEM_panzergrenadier }

		x = -1
		y = 1
		relative_position_id = GEM_panzergrenadier
		cost = 5
		available = {
			has_war = yes
		}
		continue_if_invalid = yes

		search_filters = {}

		completion_reward = {

				### GER_military_supply_factor = 0.15

				### GER_military_army_fuel_consumption_factor = -0.1

		}
	}
	focus = {
		id = GEM_defendthevaterland
		icon = GFX_goal_generic_defence
		mutually_exclusive = { focus = GEM_logisticaldevelopments }
		prerequisite = { focus = GEM_panzergrenadier }

		x = 1
		y = 1
		relative_position_id = GEM_panzergrenadier
		cost = 5
		available = {
			has_war = yes
		}

		completion_reward = {
			add_timed_idea = {
				idea = GEM_defendthevaterland_ns ###constructionspeed and entrenchment
				days = 545
			}
		}
	}
	
	focus = {
		id = GEM_wunderweapon
		icon = GFX_focus_wonderweapons
		prerequisite = { focus = GEM_logisticaldevelopments focus = GEM_defendthevaterland }
		x = 1
		y = 1
		relative_position_id = GEM_logisticaldevelopments
		cost = 5
		available = {
			has_war_with_major = yes
		}

		completion_reward = {
			if = {
				limit = {
					NOT = { has_tech = atomic_research }
				}
				add_tech_bonus = {
					bonus = 1.0
					uses = 1
					category = nuclear
				}
			}
			else = {
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.5
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			if = {
				limit = {
					OR = {
						NOT = { is_special_project_completed = sp:sp_nuclear_reactor }
						NOT = { is_special_project_completed = sp:sp_nuclear_bomb }
						AND = {
							has_dlc = "Gotterdammerung"
							NOT = { is_special_project_completed = sp:sp_nuclear_warheads }
						}
					}
				}
				GER_add_or_modify_wunderwaffen = yes
			}
			if = {
				limit = {
					NOT = { is_special_project_completed = sp:sp_nuclear_reactor }
				}
				add_to_variable = { 
					GER_wunderwaffen_sp_nuclear_reactor_speed_factor = GER_wunderwaffe_research_speed_bonus
					tooltip = sp_nuclear_reactor_speed_factor_tt
				}
			}

			if = {
				limit = {
					NOT = { is_special_project_completed = sp:sp_nuclear_bomb }
				}
				add_to_variable = { 
					GER_wunderwaffen_sp_nuclear_bomb_speed_factor = GER_wunderwaffe_research_speed_bonus
					tooltip = sp_nuclear_bomb_speed_factor_tt
				}
			}
			if = {
				limit = {
					has_dlc = "Gotterdammerung"
					NOT = { is_special_project_completed = sp:sp_nuclear_warheads }
				}
				add_to_variable = { 
					GER_wunderwaffen_sp_nuclear_warheads_speed_factor = GER_wunderwaffe_research_speed_bonus
					tooltip = sp_nuclear_warheads_speed_factor_tt
				}
			}
		}
	}
	
	focus = {
		id = GEM_teutonicpanzerdoctrine

		icon = GFX_focus_generic_tank_assault
		alternate_icon = GFX_focus_GEM_teutonicpanzerdoctrine_historical

		prerequisite = { focus = GEM_theteutonicarmy }
		mutually_exclusive = { focus = GEM_thelegacyoftheorder }
		x = 4
		y = 1
		relative_position_id = GEM_theteutonicarmy
		cost = 5
		available = {
		}

		completion_reward = {
			add_command_power = 25
			army_experience = 15

			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 1
				category = cat_mobile_warfare
			}
		}
	}
	
	focus = {
		id = GEM_panzerschool
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = GEM_teutonicpanzerdoctrine }

		x = -1
		y = 1
		relative_position_id = GEM_teutonicpanzerdoctrine
		cost = 5
		available = {
		}

		completion_reward = {
			army_experience = 15

			add_doctrine_cost_reduction = {
				name = GEM_teutonicpanzerdoctrine
				cost_reduction = 0.25
				uses = 2
				category = land_doctrine
			}

				### GER_military_org_loss_when_moving = -0.1
		}
	}
	
	focus = {
		id = GEM_advancedpanzerresearch
		icon = GFX_focus_generic_army_tanks2
		prerequisite = { focus = GEM_teutonicpanzerdoctrine }

		x = 1
		y = 1
		relative_position_id = GEM_teutonicpanzerdoctrine
		cost = 10
		available = {
		}

		completion_reward = {
			add_tech_bonus = {
				ahead_reduction = 1
				bonus = 1
				uses = 1
				category = cat_medium_armor
			}


			if = {
				limit = { 
					has_dlc = "No Step Back"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				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"
					type = medium_tank_chassis_1
					parent_version = 0
					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"
				}
				create_equipment_variant = {
					name = "Sturmgeschütz III"
					parent_version = 0
					type = medium_tank_artillery_chassis_1
					modules = {
						main_armament_slot = tank_medium_howitzer
						turret_type_slot = tank_medium_fixed_superstructure_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
					}
					upgrades = {
						tank_nsb_engine_upgrade = 4
						tank_nsb_armor_upgrade = 3
					}
					icon = "GFX_GER_basic_medium_td_medium"
				}
			}
		}
	}
	
	focus = {
		id = GEM_expandarmouredcapacity
		icon = GFX_focus_generic_heavy_tank
		prerequisite = { focus = GEM_advancedpanzerresearch }
		prerequisite = { focus = GEM_panzerschool }
		x = 0
		y = 1
		relative_position_id = GEM_panzerschool
		cost = 5
		available = {
		}

		completion_reward = {
			add_tech_bonus = {
				ahead_reduction = 1
				bonus = 1
				uses = 1
				category = cat_heavy_armor
			}
			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = cat_medium_armor
			}
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.5
			}

			
			if = {
				limit = { 
					has_dlc = "No Step Back"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_equipment_variant = {
					name = "Panther Ausf. A"
					type = medium_tank_chassis_3
					modules = {
						main_armament_slot = tank_high_velocity_cannon
						turret_type_slot = tank_medium_three_man_tank_turret
						suspension_type_slot = tank_interleaved_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_gasoline_engine
						special_type_slot_1 = tank_radio_1
						special_type_slot_2 = sloped_armor
						special_type_slot_3 = smoke_launchers
					}
					upgrades = {
						tank_nsb_engine_upgrade = 6
						tank_nsb_armor_upgrade = 4
					}
					icon = "GFX_GER_advanced_medium_tank_medium"
				}
				create_equipment_variant = {
					name = "Tiger I Ausf. A"
					type = heavy_tank_chassis_2
					modules = {
						main_armament_slot = tank_heavy_cannon
						turret_type_slot = tank_heavy_three_man_tank_turret
						suspension_type_slot = tank_interleaved_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
						special_type_slot_3 = additional_machine_guns
					}
					upgrades = {
						tank_nsb_engine_upgrade = 8
						tank_nsb_armor_upgrade = 6
					}
					icon = "GFX_GER_advanced_heavy_tank_medium"
				}
			}

		}
	}
	
	focus = {
		id = GEM_combinedarms

		icon = GFX_focus_generic_tank_air_support
		alternate_icon = GFX_focus_GEM_combinedarms_historical

		prerequisite = { focus = GEM_advancedpanzerresearch }

		x = 0
		y = 1
		relative_position_id = GEM_advancedpanzerresearch
		cost = 5
		available = {
		}


		completion_reward = {
            add_ideas = combinationarms
		}
	}
	
	focus = {
		id = GEM_militarymotorcycle
		icon = GFX_focus_generic_motor_cycle
		prerequisite = { focus = GEM_expandarmouredcapacity focus = GEM_combinedarms }

		x = 1
		y = 1
		relative_position_id = GEM_expandarmouredcapacity
		cost = 5
		available = {
		}

		completion_reward = {
			add_tech_bonus = {
				name = GEM_militarymotorcycle
				uses = 1
				bonus = 0.5
				category = military_police_tech
			}

			if = {
				limit = {
					has_dlc = "Gotterdammerung"
				}
				if = {
					limit = {
						NOT = { has_tech = sp_armored_motorized_military_police_tech }
					}
					add_tech_bonus = {
						name = GEM_militarymotorcycle
						uses = 1
						bonus = 1
						technology = sp_armored_motorized_military_police_tech
					}
				}
				add_equipment_bonus = {
					name = GEM_militarymotorcycle
					bonus = {
						motorbike_equipment_1 = {
							build_cost_ic = -0.25
						}
					}
				}
			}

			if = {
				limit = {
					controls_state = 54
					54 = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
				}
				54 = { #Franken
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_state = {
					limit = {
						is_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	#LUFTWAFFE
	focus = {
		id = GEM_theteutonicairforce
		icon = GFX_teutonicairforce

		x = 0
		y = 0
		cost = 5

		complete_tooltip = {
			
			air_experience = 25
			every_state = {
				limit = { has_state_flag = GEM_theteutonicairforce_flag }
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			every_state = {
				limit = { has_state_flag = GEM_theteutonicairforce_flag }
				add_building_construction = {
					type = air_base
					level = 6
					instant_build = yes
				}
			}
		}
		
		completion_reward = {			
			
			air_experience = 25

			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
					}
				}				
			}

			random_owned_controlled_state = {
				limit = {
					air_base > 3
					air_base < 9
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					air_base > 3
					air_base < 9
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					air_base > 2
					air_base < 9
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = GEM_airpriority
		icon = GFX_focus_generic_air_research_boost
		prerequisite = { focus = GEM_theteutonicairforce }

		x = -3
		y = 1
		relative_position_id = GEM_theteutonicairforce
		cost = 5

		completion_reward = {
			if = {
				limit = {
					controls_state = 59
				}
				59 = { #Hannover
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_core_state = {
					limit = {
						is_fully_controlled_by = ROOT
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}

			add_tech_bonus = {
				bonus = 0.25
				uses = 2
				category = air_equipment
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.5
			}

		}
	}
	
	focus = {
		id = GEM_divebombers

		icon = GFX_focus_generic_cas_aircraft
		alternate_icon = GFX_focus_GER_sturzkampfbomber_historical

		prerequisite = { focus = GEM_airpriority }
		mutually_exclusive = { focus = GEM_tacbombers focus = GEM_stratbomber }
		x = -2
		y = 1
		relative_position_id = GEM_airpriority
		cost = 5
		available = {
		}

		completion_reward = {

			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 1
				category = battlefield_support_tree
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = light_air
			}

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_equipment_variant = { 
					name = "Ju 87 G" 
					type = small_plane_cas_airframe_2
					allow_without_tech = no
					design_team = mio:GER_junkers_organization
					modules = {
						fixed_main_weapon_slot = bomb_locks
						fixed_auxiliary_weapon_slot_1 = tank_buster_1
						engine_type_slot = engine_3_1x
						special_type_slot_1 = lmg_defense_turret
						special_type_slot_2 = empty
					}
					icon = "GFX_GER_CAS2_medium"
					model = "GER_CAS_equipment_2_entity"
				}
			}

				### GER_military_air_cas_efficiency = 0.1

			add_ace = {
				name = Hans
				surname = Rudel
				callsign = Adler #made-up-ish; "Eagle of the Eastern Front" was his real nickname
				type = support_genius
			}
			add_ace = {
				name = Anton
				surname = Hubsch
				callsign = Toni
				type = support_unique
			}
			add_ace = {
				name = Gerhard
				surname = Studemann
				callsign = Stutz
				type = support_unique
			}
			add_ace = {
				name = Alois
				surname = Wosnitza
				callsign = Ritter #Made-up
				type = support_unique
			}

		}
	}
	
	focus = {
		id = GEM_tacbombers
		icon = GFX_goal_generic_air_bomber
		prerequisite = { focus = GEM_airpriority }
		mutually_exclusive = { focus = GEM_divebombers focus = GEM_stratbomber }
		x = 0
		y = 1
		relative_position_id = GEM_airpriority
		cost = 5
		available = {
		}

		completion_reward = {

			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 2
				category = operational_integrity_tree
			}
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = medium_air
			}

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_equipment_variant = { 
					name = "Ju 88" 
					type = medium_plane_airframe_2
					allow_without_tech = no
					design_team = mio:GER_dornier_organization
					modules = {
						fixed_main_weapon_slot = medium_bomb_bay
						fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
						fixed_auxiliary_weapon_slot_2 = torpedo_mounting
						engine_type_slot = engine_3_2x
						special_type_slot_1 = lmg_defense_turret_2x
						special_type_slot_2 = empty	
					}
					icon = "GFX_GER_tactical_bomber2_medium"
					model = "GER_medium_plane_entity"
				}
			}

				### GER_military_air_strategic_bomber_bombing_factor = 0.1

				### GER_military_air_cas_efficiency = 0.05

			add_ace = {
				name = Werner
				surname = Baumbach
				callsign = "Papa Bär" #made-up
				type = bomber_unique
			}
			add_ace = {
				name = Bernhard
				surname = Jope
				callsign = Senker #made-up
				type = bomber_unique
			}
			add_ace = {
				name = Anton
				surname = Hubsch
				callsign = Toni
				type = support_unique
			}
			add_ace = {
				name = Gerhard
				surname = Studemann
				callsign = Stutz
				type = support_unique
			}

		}
	}
	
	focus = {
		id = GEM_stratbomber
		icon = GFX_focus_generic_long_range_aircraft
		prerequisite = { focus = GEM_airpriority }
		mutually_exclusive = { focus = GEM_divebombers focus = GEM_tacbombers }
		x = 2
		y = 1
		relative_position_id = GEM_airpriority
		cost = 5
		available = {
		}

		completion_reward = {

			add_doctrine_cost_reduction = {
				name = GEM_stratbomber
				cost_reduction = 0.25
				uses = 2
				category = strategic_destruction_tree
			}
			add_tech_bonus = {
				name = GEM_stratbomber
				bonus = 0.5
				uses = 1
				category = heavy_air
			}

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_equipment_variant = { 
					name = "Ju 89" 
					type = large_plane_airframe_1
					allow_without_tech = no
					design_team = mio:GER_heinkel_organization
					modules = {
						fixed_main_weapon_slot = large_bomb_bay
						fixed_auxiliary_weapon_slot_1 = empty
						fixed_auxiliary_weapon_slot_2 = empty
						engine_type_slot = engine_2_4x
						special_type_slot_1 = lmg_defense_turret_2x
						special_type_slot_2 = lmg_defense_turret
					}
					icon = "GFX_GER_strategic_bomber1_medium"
					model = "GER_strat_bomber_equipment_1_entity"
				}
			}

				### GER_military_air_range_factor = 0.15

				### GER_military_air_strategic_bomber_bombing_factor = 0.05

			add_ace = {
				name = Hansgeorg
				surname = Batcher
				callsign = Schützin #made-up
				type = bomber_genius
			}
			add_ace = {
				name = Werner
				surname = Baumbach
				callsign = "Papa Bär" #made-up
				type = bomber_unique
			}
			add_ace = {
				name = Bernhard
				surname = Jope
				callsign = Senker #made-up
				type = bomber_unique
			}
			add_ace = {
				name = Horst
				surname = Rudat
				callsign = Mistel #made-up
				type = bomber_unique
			}


		}
	}
	
	focus = {
		id = GEM_rocketinnovations
		icon = GFX_focus_rocketry
		prerequisite = { focus = GEM_divebombers focus = GEM_tacbombers focus = GEM_stratbomber }

		x = 2
		y = 2
		relative_position_id = GEM_divebombers
		cost = 5

		completion_reward = {
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = rocketry
			}

			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.75
			}

			add_timed_idea = {
				idea = GER_rocketry_idea
				days = 730
			}

				### GER_wunderwaffen_sp_tag_rocket_speed_factor = 0.15

			
		}
	}
	
	focus = {
		id = GEM_fallschirmjager
		icon = GFX_focus_generic_paratrooper
		prerequisite = { focus = GEM_theteutonicairforce }

		x = 0
		y = 1
		relative_position_id = GEM_formtheteutonairschool
		cost = 5

		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				if = {
					limit = {
						NOT = { has_completed_focus = GER_marinestosstrupp }
					}
					add_potential_special_forces_tree = yes
				}
				add_doctrine_cost_reduction = {
					cost_reduction = 0.25
					uses = 2
					category = cat_paratroopers_doctrine
				}
			}
			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = para_tech
			}

				### GER_military_special_forces_cap = 0.05
		}
	}
	
	focus = {
		id = GEM_formtheteutonairschool
		icon = GFX_focus_SOV_flying_clubs
		prerequisite = { focus = GEM_theteutonicairforce }

		x = 3
		y = 1
		relative_position_id = GEM_theteutonicairforce
		cost = 5

		completion_reward = {
			air_experience = 25
			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}


			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_equipment_variant = { 
					name = "FW 190" 
					type = small_plane_airframe_2
					allow_without_tech = no
					design_team = mio:GER_messerschmitt_organization
					modules = {
						fixed_main_weapon_slot = light_mg_4x
						fixed_auxiliary_weapon_slot_1 = aircraft_cannon_1_2x
						engine_type_slot = engine_3_1x
						special_type_slot_1 = armor_plate_small
						special_type_slot_2 = drop_tanks	
					}
					icon = "GFX_GER_fighter2_medium"
					model = "GER_fighter_equipment_2_entity"
				}
			}

			add_ace = {
				name = Erich
				surname = Hartmann
				callsign = Bubi
				type = fighter_genius
			}

			add_ace = {
				name = Gerhard
				surname = Barkhorn
				callsign = Gerd
				type = fighter_genius
			}

			add_ace = {
				name = Gunther
				surname = Rall
				callsign = Adlerauge #Made-up nickname
				type = fighter_genius
			}

		}
	}

	focus = {
		id = GEM_reorganisetheairforce
		icon = GFX_goal_generic_build_airforce
		prerequisite = { focus = GEM_formtheteutonairschool }

		x = -2
		y = 1
		relative_position_id = GEM_formtheteutonairschool
		cost = 5

		completion_reward = {
			add_command_power = 25
			air_experience = 25

			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 2
				category = air_doctrine
			}


				### GER_military_air_manpower_requirement_factor = -0.1


		}
	}

	focus = {
		id = GEM_solveaeronauticalbottlenecks
		icon = GFX_goal_generic_air_production
		prerequisite = { focus = GEM_reorganisetheairforce }

		x = -1
		y = 1
		relative_position_id = GEM_reorganisetheairforce
		cost = 10

		completion_reward = {

			add_research_slot = 1

		}
	}
	
	focus = {
		id = GEM_developradar
		icon = GFX_goal_generic_radar
		prerequisite = { focus = GEM_formtheteutonairschool }

		x = 2
		y = 1
		relative_position_id = GEM_formtheteutonairschool
		cost = 5
		available = {
			has_tech = improved_radio
		}

		completion_reward = {
			add_timed_idea = {
				idea = GER_knickebein
				days = 545
			}

			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = radar_tech
			}
		}
	}
	
	focus = {
		id = GEM_vaterlanddefense
		icon = GFX_goal_generic_CAS
		prerequisite = { focus = GEM_reorganisetheairforce focus = GEM_developradar }

		x = 2
		y = 1
		relative_position_id = GEM_reorganisetheairforce
		cost = 10
		available = {
			has_war_with_major = yes
		}

		completion_reward = {
			add_timed_idea = {
				idea = GEM_vaterlanddefense_ns
				days = 730
			}
		}
	}
	
	focus = {
		id = GEM_southernfortifications
		icon = GFX_focus_generic_energy
		prerequisite = { focus = GEM_vaterlanddefense }

		x = -1
		y = 1
		relative_position_id = GEM_vaterlanddefense
		cost = 5
		available = {
			has_war_with_major = yes
			is_special_project_completed = sp:sp_air_radar
			custom_trigger_tooltip = {
				tooltip = GER_controls_atlantic_coast_brittany_finnmark_tt
				OR = {
					925 = { #Finnmark
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					924 = { #Troms
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					144 = { #Nordland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					923 = { #Helgeland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					143 = { #Trondelag
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					142 = { #Vestlandet
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					922 = { #Agder
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					921 = { #Telemark
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					110 = { #Oslo
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					915 = { #Halland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					140 = { #Västergötland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					99 = { #Jylland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					912 = { #Sonderjylland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					36 = { #Friesland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					7 = { #Holland
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					35 = { #Brabant
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					6 = { #Vlaanderen
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					29 = { #Nord-Pas-de_calais
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					785 = { #Picardy
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					15 = { #Normandy
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					14 = { #Brittany
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }

		completion_reward = {
			add_timed_idea = {
				idea = GER_the_kammhuber_line
				days = 365
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = GER_controls_atlantic_coast_brittany_finnmark_effects_tt
			every_state = {
				limit = { 
					anti_air_building < 5
					state_is_fully_controlled_by_ROOT_or_subject = yes
					is_coastal = yes 
					OR = {
						state = 925
						state = 924
						state = 144
						state = 923
						state = 143
						state = 142
						state = 922
						state = 921
						state = 110
						state = 915
						state = 140
						state = 99
						state = 912
						state = 909
						state = 58 
						state = 59
						state = 56
						state = 36
						state = 7
						state = 35
						state = 6
						state = 977
						state = 29
						state = 785
						state = 15
						state = 14
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = GEM_nightfighters
		icon = GFX_goal_generic_air_fighter2
		prerequisite = { focus = GEM_vaterlanddefense }

		x = 1
		y = 1
		relative_position_id = GEM_vaterlanddefense
		cost = 5
		available = {
			has_tech = centimetric_radar
			has_war_with_major = yes
		}

		completion_reward = {
			add_timed_idea = {
				idea = GER_nachtjagdgeschwader
				days = 365
			}

			add_ace = {
				name = Heinz
				surname = Schnaufer
				callsign = "The Spook" #actually "The Spook of St. Trond"
				type = fighter_unique
			}
			add_ace = {
				name = Helmut
				surname = Lent
				callsign = "The Moonlight Hunter" #made-up
				type = fighter_unique
			}
		}
	}
	
	focus = {
		id = GEM_torpedobombers
		icon = GFX_goal_generic_air_naval_bomber
		prerequisite = { focus = GEM_developradar }

		x = 0
		y = 1
		relative_position_id = GEM_developradar
		cost = 5
		available = {
		}
		completion_reward = {

			add_tech_bonus = {
				name = GEM_torpedobombers
				bonus = 0.5
				uses = 1
				category = cat_air_bombs
			}


			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_equipment_variant = { 
					name = "He 115" 
					type = small_plane_naval_bomber_airframe_2
					allow_without_tech = no
					design_team = mio:GER_fieseler_organization
					modules = {
						fixed_main_weapon_slot = torpedo_mounting
						fixed_auxiliary_weapon_slot_1 = bomb_locks
						engine_type_slot = engine_2_2x
						special_type_slot_1 = lmg_defense_turret	
						special_type_slot_2 = empty
					}
					icon = "GFX_GER_naval_bomber2_medium"
					model = "GER_nav_bomber_equipment_2_entity"
				}
			}

				### GER_military_air_nav_efficiency = 0.1

		}
	}

	focus = {
		id = GEM_aerodynamicresearchinstitute
		icon = GFX_focus_generic_aircraft_production
		prerequisite = { focus = GEM_solveaeronauticalbottlenecks focus = GEM_southernfortifications focus = GEM_nightfighters}
		prerequisite = { focus = GEM_rocketinnovations }

		x = 0
		y = 2
		relative_position_id = GEM_solveaeronauticalbottlenecks
		cost = 5

		completion_reward = {
			if = {
				limit = {
					controls_state = 59
				}
				59 = { #Hannover
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_state = {
					limit = {
						is_controlled_by = ROOT
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}

			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.5
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				create_equipment_variant = { 
					name = "Me 262" 
					allow_without_tech = no
					type = small_plane_airframe_4
					design_team = mio:GER_messerschmitt_organization
					modules = {
						fixed_main_weapon_slot = aircraft_cannon_2_2x
						fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
						engine_type_slot = jet_engine_2x
						special_type_slot_1 = armor_plate_small
						special_type_slot_2 = drop_tanks	
						special_type_slot_3 = self_sealing_fuel_tanks_small	
					}
					icon = "GFX_GER_jet_plane_1_medium"
					model = "GER_jet_plane_entity"
				}
				create_equipment_variant = { 
					name = "Ar 234" 
					allow_without_tech = no
					type = medium_plane_airframe_4
					design_team = mio:GER_dornier_organization
					modules = {
						fixed_main_weapon_slot = medium_bomb_bay
						fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
						fixed_auxiliary_weapon_slot_2 = bomb_locks
						engine_type_slot = jet_engine_2x
						special_type_slot_1 = fuel_tanks_medium
						special_type_slot_2 = empty	
					}
					icon = "GFX_medium_plane_4_medium"
					model = "GER_medium_jet_plane_1_entity"
				}

			}


				### GER_military_air_agility_factor = 0.05

				### GER_wunderwaffen_sp_tag_jet_speed_factor = GER_wunderwaffe_research_speed_bonus


		}
	}

	focus = {
		id = GEM_internaldevelopments

		icon = GFX_focus_GEM_internaldevelopments
		alternate_icon = GFX_focus_GEM_internaldevelopments_historical

		mutually_exclusive = { focus = GER_prioritize_economic_growth }
		x = 27
		y = 0
		cost = 5

		completion_reward = {
			every_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				random_select_amount = 2
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = industry
			}
		}
	}
	
	focus = {
		id = GEM_defenseindustry
		icon = GFX_focus_GER_autarky_ambitions
		prerequisite = { focus = GEM_internaldevelopments  }

		x = -3
		y = 1
		relative_position_id = GEM_internaldevelopments
		cost = 5
		available = {
		}

		completion_reward = {
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			every_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
				}
				random_select_amount = 4
				add_extra_state_shared_building_slots = 1
			}

			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = industry
			}

		}
	}
	
	focus = {
		id = GEM_rationing
		icon = GFX_focus_generic_price_controls
		prerequisite = { focus = GEM_defenseindustry }

		x = 3
		y = 1
		relative_position_id = GEM_defenseindustry
		cost = 5
		available = {
		}

		completion_reward = {
			add_stability = -0.05
59 = {
	add_building_construction = {
		type = industrial_complex
        	province = { all_provinces = yes }
		    level = 3
	}
} 
			 
		}
	}
	
	focus = {
		id = GEM_rampupcivilianindustry
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = GEM_defenseindustry }

		x = -2
		y = 1
		relative_position_id = GEM_defenseindustry
		cost = 5
		available = {
		}

		continue_if_invalid = yes

		completion_reward = {
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				prioritize = { 59 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				add_resource = {
					type = steel
					amount = 6
				}
			}
			

			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = excavation_tech
			}

		}
	}
	
	focus = {
		id = GEM_confiscateromanbusinesses
		icon = GFX_focus_DEN_heavy_regulations
		prerequisite = { focus = GEM_rampupcivilianindustry }

		x = 0
		y = 1
		relative_position_id = GEM_rampupcivilianindustry
		cost = 5
		available = {
			any_controlled_state = {
				NOT = { is_core_of = ROOT }
				is_fully_controlled_by = ROOT
				OR = {
					steel > 24
					aluminium > 19
					oil > 14
					tungsten > 9
					chromium > 9
				}
			}
		}

		cancel = {
			NOT = {
				any_controlled_state = {
					is_core_of = ROOT
					OR = {
						steel > 25
						aluminium > 20
						oil > 15
						tungsten > 10
						chromium > 10
					}
				}
			}
		}

		bypass = {
			OR = {
				has_resources_in_country = {
					resource = steel
					amount > 799
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = steel
						amount > 799
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = aluminium
					amount > 499
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = aluminium
						amount > 499
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = tungsten
					amount > 99
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = tungsten
						amount > 99
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = chromium
					amount > 99
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = chromium
						amount > 99
						extracted = yes
					}
				}
			}
		}

		completion_reward = {
			random_controlled_state = {
				limit = {
					NOT = { is_core_of = ROOT }
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_controlled_state = {
				limit = {
					NOT = { is_core_of = ROOT }
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			every_controlled_state = {
				limit = {
					NOT = { 
						is_core_of = ROOT 
						any_neighbor_state = {
							controller = {
								has_war_with = ROOT
							}
						}	
					}
					is_fully_controlled_by = ROOT
					is_on_continent = europe
					OR = {
						steel > 19
						aluminium > 10
						oil > 9
						tungsten > 9
						chromium > 9
					}
				}
				random_select_amount = 5
			}

			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = excavation_tech
			}
			add_equipment_to_stockpile = {
				type = train_equipment
				amount = 20
			}

		}
	}
	
	focus = {
		id = GEM_oilproduction
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = GEM_defenseindustry }

		x = 1
		y = 1
		relative_position_id = GEM_defenseindustry
		cost = 5


		continue_if_invalid = yes

		completion_reward = {
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = synthetic_refinery
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 65 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}

			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = synth_resources
			}

		}
	}
	
	focus = {
		id = GER_subsidize_hoesch_benzin
		icon = GFX_focus_GER_subsidize_hoesch_benzin
		prerequisite = { focus = GEM_oilproduction }

		x = -1
		y = 1
		relative_position_id = GEM_oilproduction
		cost = 5
		available = {
			custom_trigger_tooltip = {
				tooltip = GER_industrial_consumer_goods_factor_limit_tt
				check_variable = { GER_industrial_consumer_goods_factor < 0.9 }
			}
			has_tech = oil_processing
		}

		continue_if_invalid = yes

		bypass = {
			OR = {
				has_resources_in_country = {
					resource = oil
					amount > 149
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = oil
						amount > 149
						extracted = yes
					}
				}
			}
		}

		completion_reward = {

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = synthetic_refinery
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 57 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}

			###	GER_industrial_consumer_goods_factor = 0.1

			if = {
				limit = {
					OR = {
						has_dynamic_modifier = { modifier = GER_mefo_bills_modifier }
						has_dynamic_modifier = { modifier = GER_economy_of_conquest_modifier }
					}
				}
				GER_add_mefo_bills_penalty = yes
			}


			###	GER_wehrwirtschaft_production_oil_factor = 0.1
			

			add_tech_bonus = {
				name = GER_subsidize_hoesch_benzin
				bonus = 1
				uses = 1
				category = synth_resources
			}

		}
	}
	
	focus = {
		id = GEM_syntheticcompanies
		icon = GFX_focus_generic_rubber
		prerequisite = { focus = GEM_oilproduction }

		x = 1
		y = 1
		relative_position_id = GEM_oilproduction
		cost = 5


		bypass = {
			OR = {
				has_resources_in_country = {
					resource = rubber
					amount > 99
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = rubber
						amount > 99
						extracted = yes
					}
				}
			}
		}

		completion_reward = {
        	random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = synthetic_refinery
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 65 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}

			modify_building_resources = {
        	   building = synthetic_refinery
        	   resource = rubber
        	   amount = 2
        	}

			add_tech_bonus = {
				name = GEM_syntheticcompanies
				bonus = 1
				uses = 1
				category = synth_resources
			}

		}
	}
	
	focus = {
		id = GEM_fulldefenseindustry
		icon = GFX_focus_GEM_fulldefenseindustry
		prerequisite = { focus = GEM_confiscateromanbusinesses }
		prerequisite = { focus = GER_subsidize_hoesch_benzin }
		prerequisite = { focus = GEM_syntheticcompanies }

		x = 3
		y = 1
		relative_position_id = GEM_confiscateromanbusinesses
		cost = 10
		available = {
			all_core_state = {
				is_fully_controlled_by = ROOT
			}
			OR = {
				has_resources_in_country = {
					resource = steel
					amount > 799 #This needs to correspond to the Bypass values in the previous focuses
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = steel
						amount > 799 #This needs to correspond to the Bypass values in the previous focuses
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = aluminium
					amount > 199 #This needs to correspond to the Bypass values in the previous focuses
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = aluminium
						amount > 199 #This needs to correspond to the Bypass values in the previous focuses
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = oil
					amount > 149 #This needs to correspond to the Bypass values in the previous focuses
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = oil
						amount > 149 #This needs to correspond to the Bypass values in the previous focuses
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = tungsten
					amount > 99 #This needs to correspond to the Bypass values in the previous focuses
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = tungsten
						amount > 99 #This needs to correspond to the Bypass values in the previous focuses
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = chromium
					amount > 99 #This needs to correspond to the Bypass values in the previous focuses
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = chromium
						amount > 99 #This needs to correspond to the Bypass values in the previous focuses
						extracted = yes
					}
				}
			}
			OR = {
				has_resources_in_country = {
					resource = rubber
					amount > 49 #This needs to correspond to the Bypass values in the previous focuses
					extracted = yes
				}
				any_subject_country = {
					has_resources_in_country = {
						resource = rubber
						amount > 49 #This needs to correspond to the Bypass values in the previous focuses
						extracted = yes
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_war_support = 0.2
		}
	}


	focus = {
		id = GEM_rampuparmamentindustry
		icon = GFX_focus_generic_combined_arms
		prerequisite = { focus = GEM_internaldevelopments }

		x = 3
		y = 1
		relative_position_id = GEM_internaldevelopments
		cost = 5

		completion_reward = {
			every_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				random_select_amount = 2
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			add_ideas = concentratedarmamentproduction
		}
	}

	focus = {
		id = GEM_teutoniceastindies
		icon = GFX_SOV_claims_in_baltic_ccp_2d_sov_compatibility
		prerequisite = { focus = GEM_internaldevelopments }

		x = 7
		y = 1
		relative_position_id = GEM_internaldevelopments
		cost = 5

		completion_reward = {
			TEI = { add_ideas = TEI_theteutoniceastindies } ### resourcerights/civmiltooverlord
		}
	}
	focus = {
		id = GEM_asianindustries
		icon = GFX_focus_generic_mining_industry
		prerequisite = { focus = GEM_teutoniceastindies }
        mutually_exclusive = { focus = GEM_aluminmumextraction }
		x = -1
		y = 1
		relative_position_id = GEM_teutoniceastindies
		cost = 5

		completion_reward = {
			add_offsite_building = { type = arms_factory level = 3 }
			add_offsite_building = { type = industrial_complex level = 2 }
		}
	}
	focus = {
		id = GEM_rubberrefineries
		icon = GFX_focus_BRA_rubber_war
		prerequisite = { focus = GEM_asianindustries }

		x = 0
		y = 1
		relative_position_id = GEM_asianindustries
		cost = 5

		completion_reward = {
			672 = {
				add_building_construction = {
					type = synthetic_refinery
					level = 5
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = GEM_aluminmumextraction
		icon = GFX_focus_generic_aluminum
		prerequisite = { focus = GEM_teutoniceastindies }
        mutually_exclusive = { focus = GEM_asianindustries }
		x = 1
		y = 1
		relative_position_id = GEM_teutoniceastindies
		cost = 5

		completion_reward = {
			add_resource = {
				type = aluminium
				amount = 100
				state = 672
			}

			TEI = { 
				give_resource_rights = {
					receiver = GEM
					state = 672
					resources = { aluminium }
				}
			}
		}
	}
	focus = {
		id = GEM_balancedcolonialindustry
		icon = GFX_focus_SWE_SKF_ball_bearings
		prerequisite = { focus = GEM_aluminmumextraction }

		x = 0
		y = 1
		relative_position_id = GEM_aluminmumextraction
		cost = 5

		completion_reward = {
			add_resource = {
				type = aluminium
				amount = 25
				state = 672
			}
			add_resource = {
				type = rubber
				amount = 25
				state = 672
			}
		}
	}
	focus = {
		id = GEM_concentratedarmsindustry
		icon = GFX_focus_generic_reorient_production
		prerequisite = { focus = GEM_rampuparmamentindustry }

		x = -1
		y = 1
		relative_position_id = GEM_rampuparmamentindustry
		cost = 5

		completion_reward = {
			every_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				random_select_amount = 2
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = GEM_productiongoals
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = GEM_rampuparmamentindustry }

		x = 1
		y = 1
		relative_position_id = GEM_rampuparmamentindustry
		cost = 5

		completion_reward = {
			random_core_state = {
				limit = {
					is_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			swap_ideas = {
				remove_idea = concentratedarmamentproduction
				add_idea = concentratedarmamentproduction2
			}

		}
	}
	
		
	focus = {
		id = GEM_centralisedproduction
		icon = GFX_focus_generic_central_planning
		prerequisite = { focus = GEM_concentratedarmsindustry focus = GEM_productiongoals}

		x = 1
		y = 1
		relative_position_id = GEM_concentratedarmsindustry
		cost = 5
		available = {
			has_war_with_major = yes
			has_civil_war = no
		}

		continue_if_invalid = yes

		completion_reward = {

			swap_ideas = { ### change economy law
				remove_idea = concentratedarmamentproduction2
				add_idea = concentratedarmamentproduction3
			}
			
			add_ideas = war_economy


		}
	}

	focus = {
		id = GEM_increasecapacity
		icon = GFX_focus_generic_mass_production
		prerequisite = { focus = GEM_centralisedproduction }
		mutually_exclusive = { focus = GEM_armamentpriority }

		x = 1
		y = 1
		relative_position_id = GEM_centralisedproduction
		cost = 5

		completion_reward = {
			every_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				random_select_amount = 2
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			swap_ideas = {
				remove_idea = concentratedarmamentproduction3
				add_idea = concentratedarmamentproduction5
			}




		}
	}

	focus = {
		id = GEM_armamentpriority
		icon = GFX_focus_generic_military_industry
		prerequisite = { focus = GEM_centralisedproduction }
        mutually_exclusive = { focus = GEM_increasecapacity }
		x = -1
		y = 1
		relative_position_id = GEM_centralisedproduction
		cost = 5
		available = {
		}
		completion_reward = {

			swap_ideas = {
				remove_idea = concentratedarmamentproduction3
				add_idea = concentratedarmamentproduction4
			}

		}
	}
	
	focus = {
		id = GEM_totaler_krieg
		icon = GFX_focus_generic_total_war
		prerequisite = { focus = GEM_increasecapacity focus = GEM_armamentpriority }

		x = 1
		y = 1
		relative_position_id = GEM_armamentpriority
		cost = 5
		available = {
			has_war_with_major = yes
			OR = {
				has_war_support > 0.89
				surrender_progress > 0
			}
		}

		completion_reward = {
			add_war_support = 0.05

			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = totaler_krieg_economy

		}
	}
}