In this work the correlation between structural, electronic and optical properties of so-called phase-change materials is studied. Employing methods of computational physics, in particular density functional theory and many-body perturbation theory this work reveals the correlation between the change of the local atomic structure upon amorphization and the change of the electronic properties. In the phase change alloy Ge1Sb2Te4 the germanium atoms, which are octahedrally coordinated in the crystalline phase, switch to tetrahedrally coordinated positions in the amorphous phase. Calculations with density functional theory show, that such a local arrangement is energetically favorable while it correctly reproduces the experimentally observed d...