/*
 * Intro-Startseite – nachgebaut nach der bisherigen Intro-Seite (HTML5 UP „Big Picture“, angepasst).
 * Eigener Code, keine Dateien des alten Systems; nur die Bilder sind übernommen.
 */

html {
	scroll-behavior: smooth;
}

body.wfm-intro {
	margin: 0;
	background: #fff;
	color: #000;
	font-family: "Source Sans Pro", sans-serif;
	font-weight: 300;
	font-size: 13pt;
	line-height: 1.75em;
	text-shadow: 0 0 1px #fff;
	-webkit-font-smoothing: antialiased;
}

.wfm-intro *,
.wfm-intro *::before,
.wfm-intro *::after {
	box-sizing: border-box;
}

.wfm-intro img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

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

/* Bühne mit Logo */

.wfm-intro-buehne {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 3em 1.5em;
	background: url("images/intro.jpg") no-repeat bottom center / cover fixed;
	color: #fff;
	text-align: center;
}

.wfm-intro-logo {
	width: 480px;
	max-width: 85%;
}

.wfm-intro-weiter {
	display: block;
	width: 5em;
	height: 5em;
	margin-top: 6em;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(64, 64, 64, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4v23M7 18l9 9 9-9' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / 2.5em 2.5em;
	transition: background-color 0.2s ease-in-out;
}

.wfm-intro-weiter:hover,
.wfm-intro-weiter:focus {
	background-color: rgba(145, 146, 147, 0.25);
}

/* Willkommen mit Kacheln */

.wfm-intro-willkommen {
	padding: 6em 1.5em;
	background: url("images/two.jpg") no-repeat center / cover fixed;
	text-align: center;
	overflow-x: hidden;
}

.wfm-intro-text {
	max-width: 960px;
	margin: 0 auto 2em;
}

.wfm-intro-text h2 {
	margin: 0 0 0.5em;
	font-size: 2.25em;
	font-weight: 300;
	letter-spacing: -2px;
	line-height: 1.25em;
	text-shadow: 10px 10px 50px #fff;
}

.wfm-intro-text p {
	margin: 0;
}

.wfm-intro-kacheln {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	max-width: 720px;
	margin: 0 auto;
}

.wfm-intro-kachel {
	display: block;
	position: relative;
	left: 0;
	opacity: 1;
	transition: left 1s ease, opacity 1s ease;
}

/* Einfliegen beim Scrollen – nur mit JavaScript und ohne Bewegungsreduzierung */
@media (prefers-reduced-motion: no-preference) {
	.wfm-js .wfm-intro-kacheln:not(.ist-sichtbar) .wfm-intro-kachel {
		opacity: 0;
	}
	.wfm-js .wfm-intro-kacheln:not(.ist-sichtbar) .von-links {
		left: -14em;
	}
	.wfm-js .wfm-intro-kacheln:not(.ist-sichtbar) .von-rechts {
		left: 14em;
	}
}

.wfm-intro-links {
	margin: 3em 0 0;
}

.wfm-intro-links a {
	color: #98c593;
	text-decoration: underline;
	transition: color 0.2s ease-in-out;
}

.wfm-intro-links a:hover,
.wfm-intro-links a:focus {
	color: #734720;
}

/* Bildschirmgrößen wie im Vorbild */

@media screen and (min-width: 1681px) {
	body.wfm-intro {
		font-size: 16pt;
	}
}

@media screen and (max-width: 736px) {
	body.wfm-intro {
		font-size: 12pt;
	}
	.wfm-intro-kacheln {
		grid-template-columns: 1fr;
		max-width: 440px;
	}
	.wfm-intro-text h2 {
		font-size: 1.75em;
		letter-spacing: -1px;
	}
}

/* Feste Hintergründe ruckeln auf Touch-Geräten bzw. werden dort ignoriert */
@media (hover: none) {
	.wfm-intro-buehne,
	.wfm-intro-willkommen {
		background-attachment: scroll;
	}
}
