I have the following code and would like to set the legend below both subfigures in the centre. It would also be great to have subcaption (a) to be positioned horizontally with the corresponding pie.
I found: How to put small numbers outside the pie slices without making a mess. But I don't know how to transfer this idea to my case.
Thank you so much for your help!
\documentclass[a4paper]{scrreprt}
\usepackage{subcaption}
\usepackage{tikz}
\usepackage{pgf-pie}
\begin{document}
\begin{center}
\begin{figure}
\centering
\begin{subfigure}[b]{0.35\textwidth}
\begin{tikzpicture}[scale=.85]
\tikzset{lines/.style={draw=black},}
\pie[color={gray,gray!50,gray!20},text=pin,sum=auto, after number=\%,style={lines},rotate=3.5,explode={0, 0, 0.5}]{85.8/Voters,12/Inactive,2.2/}
\end{tikzpicture}
\subcaption{Overall structure}
\end{subfigure}\hfill
\begin{subfigure}[b]{0.35\textwidth}
\begin{tikzpicture}[scale=.85]
\tikzset{lines/.style={draw=white},}
\pie[sum=2.2, after number=\%,text=legend,every only number node/.style={text=black},style={lines}]{.4/Hyperactives,.1/Soc. Med. Opposers,.6/Apathetic Members,.3/Financiers,.2/Interested Sustainers,.3/Analog Activists,.3/Informed Members}
\end{tikzpicture}
\subcaption{Affiliation clusters}
\end{subfigure}
\caption{Overview of party affiliation}
\end{figure}
\end{center}
\end{document}

