/*
 * Mirrors the static page styles of www.kurvenheld.de (assets/css/default.css) so the
 * redemption page looks like the rest of the site. Kept as its own copy rather than
 * loading the site stylesheet: the page must render even when the website is slow or
 * unreachable, and a webfont served from another host needs CORS headers.
 */

@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	src: url('/assets/promo/fonts/inter-v12-latin-regular.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	src: url('/assets/promo/fonts/inter-v12-latin-500.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	src: url('/assets/promo/fonts/inter-v12-latin-700.woff2') format('woff2');
}

:root {
	--bg: #ffffff;
	--color-default: #000;
	--color-mark: #FFE121;
	--color-bright: #FFF;
	--color-soft: #0000B2;
	--color-softest: #B7B7B7;
	--font-main: Inter, sans-serif;
}

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

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	font-family: var(--font-main);
	font-size: 1.6rem;
	line-height: 1.5;
	color: var(--color-default);
	background: var(--bg);
}

p,
h1,
h2,
h3 {
	overflow-wrap: break-word;
}

#global {
	width: 98%;
	max-width: 1280px;
	margin: 0 auto;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 1.6rem;
	background-color: var(--color-default);
	clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

header img {
	width: 100%;
	max-width: 180px;
}

.static-content {
	padding: 5rem 7%;
	max-width: 600px;
}

h2 {
	font-size: 2.5rem;
	margin: 0 0 2.5rem;
	line-height: 1.2;
	font-weight: 800;
}

@media screen and (min-width: 620px) {

	h2 {
		font-size: 3.5rem;
	}
}

h3 {
	font-weight: 400;
	font-size: 2.5rem;
	line-height: 1.3;
	margin: 0 0 2.5rem;
}

p {
	font-size: 1.5rem;
	margin: 0 0 2.5rem;
}

.hint {
	font-size: 1.3rem;
	color: #555;
}

.newcomer-hint {
	font-size: 1.2rem;
}

.newcomer-hint a {
	color: var(--color-default);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid var(--color-mark);
}

.newcomer-hint a:hover {
	border-bottom: 2px solid var(--color-default);
}

.newcomer {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid var(--color-default);
}

.newcomer h3 {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.newcomer ol {
	margin: 0 0 2.5rem;
	padding-left: 2.2rem;
	font-size: 1.5rem;
}

.newcomer li {
	margin-bottom: 0.8rem;
}

.download {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2.5rem;
}

.qr {
	margin: 0;
	text-align: center;
	border: 2px solid var(--color-default);
	padding: 1rem 1rem 0.5rem;
}

.qr img {
	display: block;
	width: 160px;
	height: 160px;
}

.qr figcaption {
	font-size: 1.2rem;
	margin-top: 0.5rem;
}

.stores {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 200px;
}

.stores.always {
	display: block;
}

/* Scanning a code with the phone that shows it is pointless, so touch devices get the buttons only. */
@media (pointer: coarse), (max-width: 620px) {

	.qr {
		display: none;
	}

	.stores {
		display: block;
	}
}

.stores li {
	margin-bottom: 1rem;
}

a.store {
	display: block;
	padding: 1.4rem 2rem;
	text-align: center;
	font-size: 1.6rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--color-default);
	background: var(--color-mark);
	border: 2px solid var(--color-default);
}

a.store:hover {
	background: var(--color-default);
	color: var(--color-mark);
}

.error {
	background-color: var(--color-mark);
	border-left: 6px solid var(--color-default);
	padding: 1.5rem 2rem;
	margin-bottom: 3rem;
	font-size: 1.5rem;
	font-weight: 500;
}

form {
	margin: 0 0 1rem;
}

label {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

input {
	width: 100%;
	padding: 1.4rem 1.6rem;
	font-family: var(--font-main);
	font-size: 1.7rem;
	color: var(--color-default);
	background: var(--color-bright);
	border: 2px solid var(--color-default);
	border-radius: 0;
	margin-bottom: 2rem;
}

input:focus {
	outline: 3px solid var(--color-mark);
	outline-offset: 2px;
}

input.pin,
input.code {
	font-weight: 700;
	letter-spacing: 0.2em;
	text-align: center;
}

input.pin {
	font-size: 3rem;
}

button {
	display: inline-block;
	width: 100%;
	padding: 1.4rem 2rem;
	font-family: var(--font-main);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--color-default);
	background: var(--color-mark);
	border: 2px solid var(--color-default);
	border-radius: 0;
	cursor: pointer;
}

button:hover {
	background: var(--color-default);
	color: var(--color-mark);
}

form.secondary {
	margin: 0;
}

button.link {
	width: auto;
	padding: 0.8rem 0;
	background: none;
	border: none;
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--color-default);
	border-bottom: 2px solid var(--color-mark);
}

button.link:hover {
	background: none;
	color: var(--color-default);
	border-bottom: 2px solid var(--color-default);
}

.done h2::after {
	content: '';
	display: block;
	width: 8rem;
	height: 1rem;
	margin-top: 2rem;
	background: var(--color-mark);
}

.prefooter {
	clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 95%);
	background-color: var(--color-mark);
	margin-top: 5rem;
}

@media screen and (min-width: 720px) {

	.prefooter {
		margin: 2.5rem 0 0;
	}
}

.prefooter nav {
	display: flex;
	margin: 0 auto;
	max-width: 960px;
	padding: 5rem 2rem;
	flex-wrap: wrap;
}

.prefooter nav div {
	flex: 0 0 calc(50% - 4rem);
	margin: 1rem;
}

@media screen and (min-width: 620px) {

	.prefooter nav div {
		flex: 0 1 calc(25% - 4rem);
		margin-left: auto;
	}
}

.prefooter h3 {
	font-size: 2rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--color-bright);
}

.prefooter ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 1.3rem;
	line-height: 2;
}

.prefooter a {
	color: var(--color-default);
	text-decoration: none;
}

.prefooter a:hover {
	border-bottom: 2px solid var(--color-default);
}

.prefooter nav .social {
	display: flex;
	justify-content: start;
}

@media screen and (min-width: 620px) {

	.prefooter nav .social {
		justify-content: end;
	}
}

.prefooter .social img {
	width: 35px;
	margin: 0 1rem 0 0;
}

footer {
	background-color: var(--color-default);
	color: var(--color-bright);
	clip-path: polygon(0 0%, 100% 5%, 100% 100%, 0 100%);
	margin: -2.7rem auto 0;
	width: 100%;
}

footer div {
	margin: 0 auto;
	padding: 5rem 3rem;
	max-width: 960px;
}

footer h2 {
	color: var(--color-mark);
	font-size: 2rem;
	margin-bottom: 1rem;
}

footer img {
	width: 160px;
}

footer ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	margin: 3rem 0 0;
	padding: 0;
	font-size: 1.3rem;
}

footer a {
	color: var(--color-bright);
	text-decoration: none;
	border-bottom: 2px solid var(--color-mark);
}

footer a:hover {
	border-bottom: 2px solid var(--color-bright);
}

p.copyright {
	border-top: 2px solid var(--color-mark);
	margin-top: 3rem;
	padding-top: 1rem;
	font-size: 1.3rem;
}
