/**
 * Wartungsseite (page-under-construction.php)
 *
 * 1:1 wie die bisherige Wartungsseite: Plugin „CMP – Coming Soon & Maintenance“,
 * Theme „Hardwork“ (NiteoThemes), Schriften Nunito 700 + Average Sans 400 bei 22 px.
 * Eigenständig – theme.css wird auf dieser Seite nicht geladen.
 */

@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Average Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/average-sans-latin-400-normal.woff2') format('woff2');
}

:root {
	--pfn-wartung-text: #ffffff;
	--pfn-wartung-overlay: #0a0a0a;     /* Abdunklung über dem Foto … */
	--pfn-wartung-overlay-opacity: 0.6; /* … zu 60 % */
}

/* Einstellungen aus dem Plugin (Schrift, Größen, Farben) */
body {
	font-family: 'Average Sans', sans-serif;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--pfn-wartung-text);
}
a { color: var(--pfn-wartung-text); }
h1 {
	font-family: 'Nunito', sans-serif;
	font-size: 2.2727272727273em;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0;
}
@media screen and (min-width: 1024px) {
	.logo-wrapper img { max-height: 130px; }
}

/* Theme „Hardwork“ */
body {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-height: 100vh;
	position: relative;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1 {
	margin-bottom: .5em;
	margin-top: 0;
}

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

.logo-wrapper.image {
	margin-bottom: 2em;
}

.section {
	flex-grow: 1;
	padding: 2em;
	text-align: center;
	position: relative;
}

.section-body {
	display: flex;
	justify-content: center;
	flex-direction: column;
	flex-grow: 10;
	width: 70%;
	max-width: 1170px;
	min-height: calc(100vh - 7em);
	margin: 0 auto;
}

.graphic-logo {
	width: auto;
	max-width: 500px;
	max-height: 300px;
	margin: 0 auto;
}

.section-body p {
	font-size: 1em;
	line-height: 1.5em;
}

#background-wrapper, #background-image, .background-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#background-wrapper {
	overflow: hidden;
}

#background-image {
	background-attachment: fixed;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transition: opacity .5s;
}

#background-image.loaded {
	opacity: 1;
}

.background-overlay {
	background-color: var(--pfn-wartung-overlay);
	opacity: var(--pfn-wartung-overlay-opacity);
}

.social-list {
	height: 3em;
	padding: 0;
	margin: 0;
	z-index: 100;
	text-align: center;
}

.social-list li {
	list-style: none;
	display: inline-block;
	padding: 0 2px;
}

.social-list a {
	display: block;
	height: 3em;
	width: 2.5em;
	line-height: 3em;
	background: transparent;
	transition: background 300ms linear;
	border-radius: 5px;
}

/* Icons als SVG – gleiche Größe und Lage wie die Font-Awesome-Schrift des Plugins */
.social-list svg {
	display: inline-block;
	width: auto;
	height: 1em;
	vertical-align: -.125em;
	overflow: visible;
	fill: currentColor;
	transition: all 300ms linear;
}

.social-list a:hover svg {
	animation: pfn-wartung-spin 300ms linear;
}

@keyframes pfn-wartung-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media only screen and (max-width: 1024px) {
	.graphic-logo {
		padding: 20px 0;
	}
	.section-body, .social-list {
		font-size: 16px !important;
	}
	.section-body h1 {
		font-size: 1.8em !important;
	}
}

@media only screen and (max-width: 680px) {
	.section-body, .social-list {
		font-size: 15px !important;
	}
}

@media only screen and (max-width: 560px) {
	.section {
		padding: 4em 1em;
		min-height: calc(100vh - 11em);
	}
	.section-body {
		width: auto;
	}
	.graphic-logo {
		max-height: 200px;
		padding-bottom: 0;
		max-width: 100%;
	}
	.section-body, .social-list {
		font-size: 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	#background-image, .social-list svg { transition: none; }
	.social-list a:hover svg { animation: none; }
}
