/*
Theme Name: BGV2 Parent Theme
Version: 2.2.5
Author: Jörg Kruse
Author URI: https://jkip.de/
 */

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	src: url('font/open-sans-v18-latin-regular.woff2') format('woff2')
}
@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 400;
	src: url('font/open-sans-v18-latin-italic.woff2') format('woff2')
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	src: url('font/open-sans-v18-latin-700.woff2') format('woff2')
}
@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 700;
	src: url('font/open-sans-v18-latin-700italic.woff2') format('woff2')
}

* {
	margin: 0;
	padding: 0;
}
.content * + * {
	margin-top: 1.5em;
}
.content * + br {
	margin-top: 0;
}
.content li + li {
	margin-top: 0.5em;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100vh;
	line-height: 1.7rem;
	font-family: 'Open Sans', sans-serif;
	font-size: 1.1em;
}
.admin-bar {
	min-height: calc(100vh - 46px);
}
@media screen and (min-width: 783px) {
	.admin-bar {
		min-height: calc(100vh - 32px);
	}
}

a {
	text-decoration: none;
	color: var(--link-color);
}
a:hover {
	color: var(--link-hover-color);
}
a:visited {
	color: var(--link-visited-color);
}
h1, h2, h3 {
	font-weight: normal;
}
li {
	list-style-position: inside;
}
nav li {
	list-style-type: none;
}
.date {
	font-size: 0.8em;
}
.content .date + p {
	margin-top: 0.5em;
}
.alignleft {
	float: left;
	margin-right: 1em;
	margin-bottom: 1em;
}
.alignright {
	float: right;
	margin-left: 1em;
	margin-bottom: 1em;
}
.wp-caption-text {
	margin-top: 0;
	font-size: 0.8em;
	font-style: italic;
}

.wrapper {
	margin: 0 1em;
}
@media screen and (min-width: 83em) {
	.wrapper {
		margin: 0 auto;
		max-width: 75em;
	}
}

#header {
	position: sticky;
	top: 0;
	background-color: rgba(239, 239, 239, 0.8);
	z-index: 10;
}
@media screen and (min-width: 601px) {
	.admin-bar #header {
		top: 46px;
	}
}
@media screen and (min-width: 783px) {
	.admin-bar #header {
		top: 32px;
	}
}
#header .wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em 0;
}

#hamburger {
	background: none;
	border: none;
	font-size: 2.5em;
	cursor: pointer;
}
#outstanding-menu {
	display: none;
}
#top-menu {
	position: absolute;
	z-index: 100;
	top: 0;
	transition: transform .5s ease;
	transform: translateY(-100%);
	width: 100%;
	background-color: #eef7ff;
}
.show-menu #top-menu {
	transform: translateY(0);
}
#top-menu ul.sub-menu {
	display: none;
	margin-left: 2rem;
}
#top-menu li a {
	display: block;
	margin-left: 2rem;
	padding: 0.5rem 0;
	width: calc(100% - 3rem);
	border-bottom: 1px solid #bbdbf7;
	font-size: 1.5rem;
}
#top-menu .menu-item-has-children {
	position: relative;
}
#top-menu .menu-item-has-children button {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.5rem 0;
	height: 2rem;
	width: 2rem;
	background-color: transparent;
	outline: none;
	cursor: pointer;
	border: none;
	box-shadow: none;
	font-size: 1.5rem;
	color: var(--link-color);
}
#menu-main li:last-child {
	border-bottom: none;
}

@media screen and (min-width: 75em) {
	#hamburger {
		display: none;
	}
	#menu-outstanding {
		display: none;
	}
	#outstanding-menu {
		display: block;
	}
	#outstanding-menu ul {
		display: flex;
	}
	#outstanding-menu li {
		margin-left: 1em;
		font-size: 2rem;
	}
	#outstanding-menu li:first-child {
		margin-left: 0;
	}
	#top-menu .wrapper {
		display: flex;
		justify-content: flex-end;
	}
}

#main .wrapper {
	padding: 2em 0;
}

.content * + .teaser {
	margin-top: 3em;
}
.teaser .content {
	margin-top: 0;
}
.thumbnail img {
	max-width: 300px;
	height: auto;
}

@media screen and (min-width: 50em) {
	.thumbnail {
		float: left;
		margin-right: 2em;
		margin-bottom: 2em;
		width: 300px;
	}
	#posts .teaser {
		display: flex;
	}
	#posts .teaser .thumbnail {
		flex-shrink: 0;
		margin-bottom: 0;
	}
}

.more {
	padding: 0.1em;
	text-align: center;
}
.more button {
	display: none;
}
.more button {
	display: inline;
	padding: 0.5em 1em;
	border: var(--button-background-color);
	background-color: var(--button-background-color);
	outline: 0;
	font-size: 1.1rem;
	color: var(--button-text-color);
	cursor: pointer;
}
.more button::-moz-focus-inner {
	padding: 0;
	border: 0;
}
.more button:hover {
	border-color: #888;
	background-color: #888;
	color: #fff;
}

.page #content,
.single #content {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.page article,
.single article {
	overflow: hidden;
	max-width: 40em;
}
h1 {
	padding: 0.3em;
	line-height: 1.2em;
	text-align: center;
	font-size: 1.8em;
}
@media screen and (min-width: 50em) {
	h1 {
		padding: 0.5em;
		font-size: 2.5em;
	}
}

#sidebar {
	display: none;
}
@media screen and (min-width: 75em) {
	#sidebar {
		position: fixed;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		display: flex;
		align-items: flex-start;
		z-index: 20;
		color: var(--text-color);
	}
	#sidebar-content > div {
		display: none;
		position: absolute;
		top: 0;
		right: 4rem;
		margin-top: 0;
		padding: 1em;
		width: auto;
		border: 1px solid #fff;
		background-color: var(--background-color);
		white-space: nowrap;
	}
	#sidebar-content #sidebar-info {
		width: 37.5em;
		white-space: normal;
	}
	#sidebar-content h3 {
		margin-bottom: 1em;
		font-weight: bold;
	}
	#sidebar .buttons {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 1rem;
		height: 9rem;
		border: 1px solid var(--text-color);
		border-right: none;
		background-color: var(--background-color);
	}
	#sidebar .buttons a {
		display: flex;
	}
	#sidebar svg {
		width: 2rem;
		height: 2rem;
		fill: var(--text-color);
	}
}

.search-form input[type=search] {
	padding: 1em;
	width: 30em;
	border: none;
}
.search-form select {
	padding-left: 0.5em;
	height: 3em;
	border: none;
}
.search-form button {
	display: inline-block;
	margin-top: 0;
	padding: 0.4em 1em 0.6em;
	border: var(--button-background-color);
	background-color: var(--button-background-color);
	outline: 0;
	font-size: 1.1rem;
	color: var(--button-text-color);
	cursor: pointer;
}
.search-form button::-moz-focus-inner {
	padding: 0;
	border: 0;
}
.search-form button:hover {
	border-color: #888;
	background-color: #888;
	color: #fff;
}
#content .search-form {
	margin-bottom: 3em;
	text-align: center;
}
#content .search-form input[type=search] {
	border: solid 2px #888;
}

#footer-main {
	background-color: var(--background-color);
	color: var(--text-color);
}
#footer-main a {
	color: var(--text-color);
}
#footer-main .wrapper {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 3em 0;
}
#footer-main .widget {
	margin-bottom: 2em;
	width: 19em;
	font-size: 0.95em;
}

#back-to-top {
	position: absolute;
	right: 3rem;
	height: 3rem;
}
#back-to-top a {
	position: fixed;
	bottom: 3rem;
	display: none;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: var(--button-background-color);
	border-radius: 1.5rem;
	background-color: var(--button-background-color);
	color: var(--button-text-color);
}
#back-to-top a:hover,
#back-to-top a:focus,
#back-to-top a:visited {
	text-decoration: none;
}
#back-to-top a span {
	display: block;
	vertical-align: top;
	line-height: 2rem;
	font-size: 2rem;
}

@media screen and (min-width: 75em) {
	#dAopener {
    top: calc(50% + 100px);
  }
}
