Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:2/4
K:G
['dB eB dc/B/ cg', 'ff Bd g>f ea g2 ee gg'  
X:1
L:1/8
M:2/4
K:G
"G" dB eB |"D7" dc/B/ cg | fc c>f |"G" eB B2 | dB eB |"D7" dc/B/ cg | fd b>a |"G" gg g z :: 
[K:D]"A7" g/f/e/d/ cc |"D" dd A2 |"A7" ee A2 |"D" ff d2 |"A7" g/f/e/d/ cc |"D" dd A2 |"A7" eA a>c | 
"D" dd d"_>Teil A" z :|[K:C]"C" ee gg | c/c/c ee | Gc e>d |"G7" PcB B2 |"Dm" ff aa |"G7" d/d/d ff | 
 Bd g>f |"C" ea g2 | ee gg | c/c/c ee | Gc e>c |"Dm" PBA A2 | f/e/d/^c/ df |"C" gg/f/ eg | 
"G7" ff/e/ dg |"C" cc c"_Fine" z |]  