@font-face {
	font-family: 'Flavo Rista';
	src: url(/assets/fonts/FlavoRista.ttf);
	font-display: swap;
}

@font-face {
	font-family: 'Proxima Nova';
	src: url(/assets/fonts/proximanova_regular.ttf);
	font-display: swap;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	background-color: #9ECAD6;
}

/* Seite unsichtbar bis zum Laden */
body {
	font-family: 'Flavo Rista', serif;
	font-weight: 400;
	font-size: 1rem;
	background-color: #9ECAD6;
	color: #748DAE;
	visibility: hidden;
}

/* Animationen pausieren */
* {
	animation-play-state: paused !important;
}

/* Sichtbar & Animationen laufen */
body.visible {
	visibility: visible;
}

/* Sichtbar & Animationen laufen */
body.visible * {
	animation-play-state: running !important; 
}

#intro {
	margin: 0;
	height: 100svh;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	visibility: hidden;
	position: fixed;
	z-index: 100;
}

.intro-text {
	opacity: 0;
	margin: 0;
	animation-fill-mode: forwards;
	font-size: 4rem;
	line-height: .75;
}

@keyframes fadeIn {
	to { opacity: 1; visibility: visible; }
}

@keyframes fadeOut {
	from { opacity: 1; visibility: visible; }
	to   { opacity: 0; visibility: hidden; }
}

.intro-text:nth-child(1) {
	animation:
	fadeIn  0.3s ease-in  0s    forwards,
	fadeOut 0.3s ease-out 1.4s  forwards;
}

.intro-text:nth-child(2) {
	animation:
	fadeIn  0.3s ease-in  0.2s  forwards,
	fadeOut 0.3s ease-out 1.6s  forwards;
}

.intro-text:nth-child(3) {
	animation:
	fadeIn  0.3s ease-in  0.4s  forwards,
	fadeOut 0.3s ease-out 1.8s  forwards;
}

.intro-text:nth-child(4) {
	animation:
	fadeIn  0.3s ease-in  0.6s  forwards,
	fadeOut 0.3s ease-out 2s    forwards;
}

h1 {
	font-size: 3rem;
	line-height: .75;
}

hr {
	margin: 2rem 0;
	border: 1px solid #F5CBCB;
}

#content {
	visibility: hidden;
	opacity: 0;
	animation:
	fadeIn  0.3s ease-in  2.6s  forwards;
	margin: 2rem auto;
}

#header {
	margin-bottom: 1rem;
}

#header p, #footer p {
	font-family: 'Proxima Nova', sans-serif;
	font-size: 1.25rem;
	line-height: 1;
}

#header a:link, a:visited, a:hover, #footer a:link, a:visited, a:hover {
	color: #748DAE;
	text-decoration: underline;
}

.gallery-item {
	margin-bottom: 1rem;
}

/* Versatz für jedes zweite Element */
.gallery-item:nth-child(even) {
	margin-top: 2rem;
}

/* Bildcontainer für relative Positionierung */
.image-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

.image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0.3em;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
}

/* Text-Overlay relativ zum Bild */
.caption {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	font-family: 'Proxima Nova', sans-serif;
	background: #F5CBCB;
	color: #748DAE;
	padding: 0.2em 0.4em;
	border-radius: 0.3em;
	white-space: nowrap;
}

@media (min-width: 34em) {
	
	#content {
		margin: 4rem auto;
	}
	
	#header {
		margin-bottom: 3rem;
	}

	#header h1 {
		margin: 0;
		font-size: 4rem;
		line-height: .75;
	}

	#header p, #footer p {
		font-size: 2rem;
		line-height: 1;
	}
	
	hr {
		margin: 3rem 0;
	}

}
