If I use the option \usepackage[automark,headsepline]{scrlayer-scrpage}
every even numbered page has the section title in the headings and every odd numbered page the subsection-title. If there is no subsection, there is no heading. I want that there is the section title on odd numbered pages if there is no subsection.
In the following example I want the heading '2 section 2' at page 5 in the output for example.
\documentclass[12pt,twoside,parskip=half-,numbers=noenddot,BCOR=8mm,headheight=29pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[automark,headsepline]{scrlayer-scrpage}
\begin{document}
Some text\dots
\clearpage
\section{section 1}
A section\dots
\clearpage
\subsection{subsection 1}
A subsection\dots
\cleardoublepage
\section{section 2}
Another section\dots
\end{document}
How can I do so?