Weed is essentially legal in both cities. In Barcelona through membership. While personal consumption is tolerated in Berlin most places cigarettes are.
> going to a store and buying a nicely packaged edible or a preroll is leagues above buying it off the street
If you want to fit in in these cities you need to drop this American fixation with commercialisation and bubble-wrapping every experience to make it "comfortable".