I have now expanded as far as I could without war. So here I am trying to understand war mechanics

Failed with my first attempts. 1st try I attacked a weak empire which had a defensive pack with a superior empire. Second try I forgot to build ground forces and now I run out of money.