Despite a tense final quarter that saw multiple penalty corners, Spain's defence stood firm to deny Germany an equaliser.