/*
 * aps-recht.de – Stylesheet der statischen Seite.
 *
 * Abgeleitet aus dem WordPress-Theme „Harrison“ (ThemeZee, GPL v2), Version 1.3.6,
 * reduziert auf die Regeln, die die vier Seiten tatsächlich nutzen. Klassennamen
 * und Werte entsprechen dem Original, damit das Ergebnis mit der alten Seite
 * vergleichbar bleibt. Die Customizer-Overrides der alten Installation stehen
 * am Ende unter „Anpassungen der alten Installation“.
 */

/* --------------------------------------------------------------
 * CSS-Variablen (Theme :root)
 * -------------------------------------------------------------- */
:root {
	--primary-color: #c9493b;
	--secondary-color: #e36355;
	--light-gray-color: #e4e4e4;
	--gray-color: #848484;
	--dark-gray-color: #242424;
	--text-color: rgba(0, 0, 0, 0.9);
	--medium-text-color: rgba(0, 0, 0, 0.7);
	--light-text-color: rgba(0, 0, 0, 0.5);
	--page-background-color: #fff;
	--page-border-color: rgba(0, 0, 0, 0.1);
	--link-color: #c9493b;
	--link-hover-color: #e36355;
	--header-background-color: #fff;
	--header-text-color: rgba(0, 0, 0, 0.9);
	--header-text-hover-color: #e36355;
	--header-border-color: rgba(0, 0, 0, 0.1);
	--title-color: #202020;
	--title-hover-color: #e36355;
	--footer-background-color: #202020;
	--footer-text-color: rgba(255, 255, 255, 0.5);
	--footer-link-color: rgba(255, 255, 255, 0.95);
	--footer-link-hover-color: rgba(255, 255, 255, 0.5);
	--text-font: "Barlow", arial, helvetica, sans-serif;
	--title-font: "Barlow", arial, helvetica, sans-serif;
	--navi-font: "Barlow", arial, helvetica, sans-serif;
	--title-font-weight: bold;
	--navi-font-weight: normal;
	--text-line-height: 1.75;
	--title-line-height: 1.4;
}

/* --------------------------------------------------------------
 * Normalize (Minimum)
 * -------------------------------------------------------------- */
html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: #353535;
}

main,
header,
footer,
nav,
article,
figure {
	display: block;
}

figure {
	margin: 0;
}

img {
	border: 0;
	max-width: 100%;
	height: auto;
}

button {
	font: inherit;
	margin: 0;
	overflow: visible;
	text-transform: none;
	-webkit-appearance: button;
}

/* --------------------------------------------------------------
 * Typografie
 * -------------------------------------------------------------- */
body,
button {
	color: var(--text-color);
	font-size: 1rem;
	font-family: var(--text-font);
	line-height: var(--text-line-height);
}

h1,
h2,
h3 {
	clear: both;
	margin: 1em 0 0.75em;
	font-family: var(--title-font);
	font-weight: var(--title-font-weight);
	line-height: var(--title-line-height);
}

h1 {
	font-size: 2.25rem;
}

h2 {
	font-size: 1.75rem;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin: 0 0 1.5em;
}

b,
strong {
	font-weight: bold;
}

blockquote {
	margin: 1.5em 0;
	padding-left: 1.5em;
	border-left: 3px solid;
	border-color: var(--text-color);
	color: var(--light-text-color);
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: normal;
}

blockquote cite {
	display: block;
	margin-top: 1em;
	color: var(--text-color);
	font-family: var(--text-font);
	font-size: 1rem;
	font-style: normal;
}

blockquote cite::before {
	content: "\2014\00a0";
}

hr {
	box-sizing: content-box;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	height: 1px;
	border: 0;
	background-color: var(--page-border-color);
}

a {
	color: var(--link-color);
	text-decoration: underline;
}

a:hover,
a:focus,
a:active {
	color: var(--link-hover-color);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* --------------------------------------------------------------
 * Barrierefreiheit
 * -------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	margin: -1px;
	width: 1px;
	height: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	display: block;
	top: 5px;
	left: 5px;
	z-index: 100000;
	clip: auto !important;
	clip-path: none;
	padding: 15px 23px 14px;
	width: auto;
	height: auto;
	border-radius: 3px;
	background-color: #f1f1f1;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	color: #21759b;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.875rem;
	line-height: normal;
}

/* --------------------------------------------------------------
 * Site-Layout
 * -------------------------------------------------------------- */
.site {
	margin: 0 auto;
	padding: 0;
	width: 100%;
	overflow: hidden;
	max-width: 1440px;
	background-color: var(--page-background-color);
}

/* Die alte Installation nutzt das breite Layout: kein Maximum, volle Fensterbreite. */
body.wide-theme-layout .site {
	max-width: 100%;
}

.site-header,
.site-container {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.site-content {
	padding: 1.5rem 1.5rem 0;
}

.site-main {
	margin-left: auto;
	margin-right: auto;
	max-width: 880px;
}

/* --------------------------------------------------------------
 * Header
 * -------------------------------------------------------------- */
.site-header {
	background-color: var(--header-background-color);
	border-bottom: 1px solid;
	border-color: var(--header-border-color);
}

.header-main {
	display: flex;
	flex-wrap: wrap;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.site-logo {
	margin-right: 1.25rem;
}

.site-logo .custom-logo {
	margin: 0;
	padding: 0;
	max-width: 100%;
	height: auto;
	border: none;
	vertical-align: top;
}

.site-branding {
	display: flex;
	margin: 0;
	padding: 0;
	max-width: 100%;
	flex-direction: column;
	justify-content: center;
}

.site-title {
	margin: 0;
	padding: 0;
	color: var(--header-text-color);
	text-decoration: none;
	font-size: 1.5rem;
	font-family: var(--title-font);
	font-weight: var(--title-font-weight);
	line-height: var(--title-line-height);
}

.site-title a:link,
.site-title a:visited {
	color: var(--header-text-color);
	text-decoration: none;
	transition: all 0.15s ease;
}

.site-title a:hover,
.site-title a:active {
	color: var(--header-text-hover-color);
}

/* Der Seitentitel ist in der alten Installation ausgeblendet (nur für Screenreader). */
body.site-title-hidden .site-header .site-title {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
}

.header-image {
	margin-top: -1px;
}

.header-image img {
	margin: 0;
	width: 100%;
	height: auto;
	vertical-align: top;
}

/* --------------------------------------------------------------
 * Navigation
 * -------------------------------------------------------------- */
.primary-navigation {
	position: relative;
	width: 100%;
}

.main-navigation ul {
	margin: 0;
	padding: 0;
	color: var(--header-text-color);
	list-style: none;
	font-size: 1.0625rem;
	font-family: var(--navi-font);
	font-weight: var(--navi-font-weight);
}

.main-navigation > ul {
	margin-top: 1.5rem;
}

/* Auf kleinen Bildschirmen ist das Menü eingeklappt. */
.main-navigation ul {
	display: none;
}

.main-navigation.toggled-on > ul.menu {
	display: block;
}

.main-navigation ul li {
	position: relative;
	margin: 0;
}

.main-navigation ul a {
	display: block;
	margin: 0;
	padding: 1rem;
	border-top: 1px solid;
	border-color: var(--header-border-color);
	text-decoration: none;
}

.main-navigation ul a,
.main-navigation ul a:link,
.main-navigation ul a:visited {
	color: var(--header-text-color);
	text-decoration: none;
	transition: all 0.15s ease;
}

.main-navigation ul a:hover,
.main-navigation ul a:active,
.main-navigation ul a:focus {
	color: var(--header-text-hover-color);
}

.main-navigation ul li.current-menu-item > a {
	text-decoration: underline;
}

.primary-menu-toggle {
	display: block;
	margin: 0;
	margin-left: auto;
	padding: 1rem;
	border: none;
	background: none;
	color: var(--header-text-color);
	text-decoration: none;
	font-size: 1.0625rem;
	font-family: var(--navi-font);
	font-weight: var(--navi-font-weight);
	text-align: left;
	transition: all 0.15s ease;
}

.primary-menu-toggle .menu-toggle-text {
	display: none;
}

.primary-menu-toggle:focus {
	outline: thin dotted;
	color: var(--header-text-color);
	background: none;
}

.primary-menu-toggle:hover,
.primary-menu-toggle:active {
	color: var(--header-text-hover-color);
	background: none;
	cursor: pointer;
}

.primary-menu-toggle .icon {
	margin: 0;
	width: 28px;
	height: 28px;
	vertical-align: top;
	fill: var(--header-text-color);
	transition: fill 0.15s ease;
}

.primary-menu-toggle:hover .icon,
.primary-menu-toggle:active .icon {
	fill: var(--header-text-hover-color);
}

.primary-menu-toggle[aria-expanded="true"] .icon-menu,
.primary-menu-toggle[aria-expanded="false"] .icon-close {
	display: none;
}

.primary-menu-toggle[aria-expanded="true"] .icon-close {
	display: inline-block;
}

/* --------------------------------------------------------------
 * Seiteninhalt
 * -------------------------------------------------------------- */
.entry-header {
	margin-bottom: 1rem;
}

.entry-title {
	margin: 0;
	padding: 0;
	color: var(--title-color);
	word-wrap: break-word;
	font-size: 1.5rem;
}

.entry-content {
	font-size: 1.0625rem;
}

.entry-content a {
	word-wrap: break-word;
}

/* --------------------------------------------------------------
 * Blöcke (WordPress-Blockmarkup der alten Seite)
 * -------------------------------------------------------------- */
.wp-block-columns,
.wp-block-image {
	margin-bottom: 1.5em;
}

.wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 1.75em;
}

.wp-block-column {
	flex-grow: 1;
	min-width: 0;
	word-break: break-word;
	overflow-wrap: break-word;
}

.wp-block-image img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

.wp-block-quote > p:last-of-type {
	margin-bottom: 0;
}

.wp-block-separator {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	border: none;
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	margin-left: auto;
	margin-right: auto;
	max-width: 6rem;
	height: 3px;
}

/* --------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------- */
.site-footer {
	padding: 1rem 1.5rem;
	font-size: 0.9375rem;
	color: var(--footer-text-color);
	background-color: var(--footer-background-color);
}

.site-footer a:link,
.site-footer a:visited {
	color: var(--footer-link-color);
}

.site-footer a:hover,
.site-footer a:active {
	color: var(--footer-link-hover-color);
}

/* --------------------------------------------------------------
 * Media Queries
 * -------------------------------------------------------------- */
@media only screen and (min-width: 400px) {
	.primary-menu-toggle .menu-toggle-text {
		display: inline-block;
		margin-left: 0.5rem;
	}
}

@media only screen and (min-width: 480px) {
	.site-header,
	.site-container {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.header-main {
		padding-top: 1.5rem;
		padding-bottom: 1.5rem;
	}

	.site-content {
		padding: 2rem 2rem 0;
	}

	.site-footer {
		padding: 2rem;
	}
}

@media only screen and (min-width: 600px) {
	.wp-block-column {
		flex-basis: calc(50% - 1rem);
		flex-grow: 0;
	}

	.wp-block-column:nth-child(even) {
		margin-left: 2rem;
	}
}

@media only screen and (min-width: 640px) {
	.site-header,
	.site-container {
		padding-left: 3rem;
		padding-right: 3rem;
	}

	.header-main {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.site-content {
		padding: 3rem 3rem 0;
	}

	.site-footer {
		padding: 3rem;
	}

	.site-title {
		font-size: 1.75rem;
	}

	.entry-title {
		font-size: 2rem;
	}

	.entry-content {
		font-size: 1.0625rem;
	}
}

@media only screen and (min-width: 782px) {
	.wp-block-columns {
		flex-wrap: nowrap;
	}

	.wp-block-column {
		flex-basis: 0;
		flex-grow: 1;
	}

	/* Spaltenbreiten der Startseite (statt Inline-Styles, die die CSP verbietet) */
	.wp-block-column.aps-spalte-drittel {
		flex-basis: 33.33%;
		flex-grow: 0;
	}

	.wp-block-column.aps-spalte-zweidrittel {
		flex-basis: 66.66%;
		flex-grow: 0;
	}

	.wp-block-column:not(:first-child) {
		margin-left: 1.5rem;
	}
}

@media only screen and (min-width: 960px) {
	.site-header,
	.site-container {
		padding-left: 4rem;
		padding-right: 4rem;
	}

	.header-main {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.site-content {
		padding: 4rem 4rem 0;
	}

	.site-footer {
		padding: 4rem;
	}

	.site-title {
		font-size: 2rem;
	}

	.entry-title {
		font-size: 2.5rem;
	}

	.entry-content {
		font-size: 1.125rem;
	}

	.wp-block-column:not(:first-child) {
		margin-left: 1.75rem;
	}

	/* Navigation: ab hier ausgeklappt, Toggle verschwindet. */
	.primary-menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: block;
	}

	.primary-navigation {
		display: flex;
		margin-left: auto;
		width: auto;
		align-items: center;
	}

	#masthead .main-navigation > ul.menu {
		display: flex;
		flex-flow: row wrap;
		margin: 0;
		border-bottom: none;
	}

	.main-navigation > ul > li {
		padding: 0.8rem 1rem;
	}

	.main-navigation > ul > li > a {
		padding: 0.2rem 0;
		border: none;
		border-bottom: 3px solid transparent;
	}

	.main-navigation > ul > li.current-menu-item > a {
		text-decoration: none;
		border-color: var(--header-text-color);
	}
}

@media only screen and (min-width: 1280px) {
	.site-header,
	.site-container {
		padding-left: 5rem;
		padding-right: 5rem;
	}

	.header-main {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.site-content {
		padding: 5rem 5rem 0;
	}

	.site-footer {
		padding: 5rem;
	}

	.site-title {
		font-size: 2.25rem;
	}

	.entry-title {
		font-size: 3rem;
	}

	.entry-content {
		font-size: 1.1875rem;
	}

	.wp-block-column:not(:first-child) {
		margin-left: 2rem;
	}
}

/* --------------------------------------------------------------
 * Anpassungen der alten Installation (WordPress-Customizer)
 * -------------------------------------------------------------- */
.site-logo .custom-logo {
	width: 299px;
}

body.custom-background {
	background-color: #ffffff;
}

.header-main {
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}

.site-footer {
	padding: 1rem !important;
}
