...    hk, sk = row['Hauptkategorie'], row['Subkategorie']
    # preserve clear C and B tech/bureaucracy/medical/purchase
    if hk in ["C"]:
        return hk, sk
    if hk=="B" and sk in ["Arzttermine/Medikation","Bürokratie","Kaufberatung","Technische Hilfe"]:
        return hk, sk
    if hk=="D":
        return hk, sk
    # if not clearly assigned, consider psych by scores
    psych = (row['Therapie_Score'...