VAT is calculated based on the delivery adress, that's European law.
I have delivery adresses in Germany and Luxembourg.
Based on the the total amount (determining if shipping is free, or not), I decide if I have it shipped to Luxembourg (VAT= 15%) and paying the shipping fees (8€), or have it shipped to Germany and eating the increased VAT 18%.