A lamp unit for a motor-vehicle headlamp, comprising: at least one dipped-beam module for generating a dipped-beam light distribution, for the most part below a horizontal cut-off line imaged substantially in front of the motor vehicle, at least one main-beam module for generating a main-beam light distribution, for the most part above the cut-off line, an imaging optical element connected downstream of the dipped-beam module and the main-beam module in the optical beam direction for generating a total light distribution of the light modules, having an optical axis and a focal surface orientated substantially normal to the optical axis , and a diaphragm , which has a diaphragm edge and extends essentially up to the focal surface of the imaging optical element for generating the horizontal cut-off line in a light image generated by the lamp unit , characterized in that the diaphragm has a substantially flat opaque diaphragm region and has a transparent diaphragm region with a geometric structure made from a transparent material at the diaphragm edge in the region of the focal surface , wherein the geometric structure comprises at least one prism body with a substantially triangular cross-sectional area, the at least one prism body is elongated and the longitudinal extent runs substantially transversely to the optical axis , the at least one prism body has a first, a second and a third prism surface, wherein the first prism surface is substantially flush with the flat opaque diaphragm region , the second prism surface faces the opaque diaphragm region and encloses an internal angle α1 ≥ θ with the first prism surface , and the third prism surface faces away from the opaque diaphragm region and encloses an internal angle a2 ≥ θ with the first prism surface , wherein θ is the critical angle of total internal reflection of the transparent material, the internal angles a1 and a2 are the same or different, and with the proviso that the internal angle a1 or the internal angle a2 is not 45°. at least one dipped-beam module for generating a dipped-beam light distribution, for the most part below a horizontal cut-off line imaged substantially in front of the motor vehicle, at least one main-beam module for generating a main-beam light distribution, for the most part above the cut-off line, an imaging optical element connected downstream of the dipped-beam module and the main-beam module in the optical beam direction for generating a total light distribution of the light modules, having an optical axis and a focal surface orientated substantially normal to the optical axis , and a diaphragm , which has a diaphragm edge and extends essentially up to the focal surface of the imaging optical element for generating the horizontal cut-off line in a light image generated by the lamp unit , characterized in that the diaphragm has a substantially flat opaque diaphragm region and has a transparent diaphragm region with a geometric structure made from a transparent material at the diaphragm edge in the region of the focal surface , wherein the geometric structure comprises at least one prism body with a substantially triangular cross-sectional area, the at least one prism body is elongated and the longitudinal extent runs substantially transversely to the optical axis , the at least one prism body has a first, a second and a third prism surface, wherein the first prism surface is substantially flush with the flat opaque diaphragm region , the second prism surface faces the opaque diaphragm region and encloses an internal angle α1 ≥ θ with the first prism surface , and the third prism surface faces away from the opaque diaphragm region and encloses an internal angle a2 ≥ θ with the first prism surface , wherein θ is the critical angle of total internal reflection of the transparent material, the internal angles a1 and a2 are the same or different, and with the proviso that the internal angle a1 or the internal angle a2 is not 45°. <EOS>