@font-face {
	font-family: 'montserrat';
	font-weight: normal;
	font-style: normal;
	src: url('montserrat-300.woff2') format('woff2'), url('montserrat-300.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'montserrat';
	font-weight: bold;
	font-style: normal;
	src: url('montserrat-700.woff2') format('woff2'), url('montserrat-700.woff') format('woff');
	font-display: swap;
}

body {
	margin: 0;
	background: #ffe url('reisebus.webp') center/cover fixed;
	color: #ab0000;
	font: 12pt/1.4 montserrat, sans-serif;
	text-align: center;
}

#ticker, nav, h1, footer {
	display: block;
	background-color: #e31e24;
	color: #fff;
}


/* HEADER  */

header {
	display: block;
	height: 420px;
	max-height: 52.2vw;
	background: url('wolken1.webp') center top/auto 420px;
	animation: wolken 3000s linear infinite;
}

@keyframes wolken {
	0% { background-position-x: 0%; }
	100% { background-position-x: 1000%; }
}

#logo {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	max-width: 100%;
	clip-path: polygon(
		0 0,
		100% 0,
		100% 95%,
		max(77vw,84%) 95%,
		max(77vw,84%) 100%,
		0 100%
	);
}


/* TICKER, NAVICON & NAV */

#ticker {
	position: sticky;
	top: 0;
	height: 114px; /* Fallback */
	height: clamp(60px, 15vw, 114px);
	border-bottom: 1px solid rgba(255,255,255,.3);
	/* overflow: hidden; /* Navicon shadow only within ticker bar */
	font-size: 18pt;
}

marquee {
	display: block;
	height: 100%;
	width: 82%; /* Fallback */
	width: calc(97.5% - clamp(60px, 15vw, 114px));
	margin-right: calc(2.5vw + 35px);
	align-content: center;
}

#navicon-checkbox {
	display: none;
}

#navicon {
	display: block;
	position: absolute;
	top: 0;
	right: 2.5vw;
	height: 114px; /* Fallback */
	height: clamp(60px, 15vw, 114px);
	width: 114px; /* Fallback */
	width: clamp(60px, 15vw, 114px);
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' viewBox='0 0 80 50' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Crect width='80' height='10'/%3E%3Crect y='20' width='80' height='10'/%3E%3Crect y='40' width='80' height='10'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 75%;
	cursor: pointer;
	user-select: none;
	z-index: 3;
}

nav {
	height: 0px;
	overflow: hidden;
	text-align: center;
	transition: all 333ms ease;
}

nav ul {
	list-style: none;
	padding: 0;
}

nav a {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: .25em;
}

#navicon-checkbox:checked ~ nav {
	height: 50vh;
}

/* MAIN */

h1 {
	font-size: 2em;
	display: inline-block;
	margin: 50px auto 80px;
	padding: .4em .6em;
	font-weight: bold;
	max-width: 80%;
	line-height: 1.1;
}

h1 span {
	font-weight: normal;
}

main {
	display: block;
	margin: auto;
	padding: 1em;
	background-color: rgba(255,255,238,.66);
	width: 800px;
	max-width: 95%;
	border-color: rgba(227,30,36,.66);
	border-width: 5px 0 5px 0;
	border-style: solid;
	box-sizing: border-box;
	text-align: left;
}

main a, main a:visited {
	color: #33f;
}


main figure {
	margin: 0;
	text-align: center;
}

main figcaption {
	font-size: .9em;
	font-style: italic;
	margin: .25em 0 .5em;
}

main img {
	border: 1px solid #fff;
	box-shadow: 8px 8px 0px rgba(227,30,36,.66);
	max-width: 100%;
	box-sizing: border-box;
}

/* FOOTER */

footer {
	text-align: center;
	margin-top: 80px;
	padding: 2em .5em;
	background-image: url('footer-bus.webp');
	background-size: contain;
	background-repeat: no-repeat;
	background-position-x: 105%;
}

footer a {
	color: inherit;
	white-space: nowrap;
}



/* RESPONSIVE */

@media (min-width: 808px) {
	marquee {
		font-size: 22pt;
	}
}

@media (min-width: 1250px) {
	body {
		text-align: left;
	}
	h1 {
		margin: 50px 10px 80px calc(50% - 600px);
	}

	main {
		font-size: 14pt;
	}
}