It's possible (but I do not know) that in Germany the way the costs for supply of electrical energy are charged is similar to Australia.
Here the cost of retail electrical energy you purchase is made up of:
- the cost of the energy generation
- the cost of transmission and the distribution network
- the cost of the management of the network and market(s)
- the cost of carbon (if any)
- the cost of taxes (general consumption tax)
- profit margin (which ain't large here, it's a pretty heavily regulated sector)
In Australia the cost of energy generation only makes up about 25-30% of the total retail price of energy purchased from the grid. The biggest cost components are the transmission and distribution costs.
In Australia, all the above costs are included in the price of electrical energy you purchase, but most not all applicable to any energy you sell back to the grid. If they were, then yes you might be paid a similar price for exported energy as you pay to import it but you would also be expected to pay for all the other costs such as access to the transmission network as well as all the other charges, and ultimately what you would receive is just the generation value of the energy.
As a variable generator/supplier of energy to the grid, your energy is worth about the same as the spot wholesale electricity price in the market, and the daytime wholesale spot price at that. That's what the retailer would normally pay for it. When a retailer charges a customer here for energy, out of that the retailer then has to pay for all of the other costs to the transmission network providers, govt etc. Those charges don't apply to energy they purchase (IOW those tolls only apply in one direction, and are measured on the retail meter import register).
Most people on retail electricity supply contracts don't of course receive the variable spot price for their exports, much like they don't pay the spot price for energy they import (although there are some plans where this is possible if you so choose).
Retailers smooth out their export tariff in the same way they do for energy you import from the grid.
As a rule of thumb, export tariffs here are going to be about 1/3 to 1/4 of the import tariff. Often lower because daytime energy here is typically abundant (lots of solar PV) and is cheaper than say energy in the evening when supply is more reliant on more expensive fossil fuel generation.