/* =========================================================
   screen.css
   Modernes, responsives Layout
   ========================================================= */

/* ---------- Grundeinstellungen ---------- */

:root {
	--color-text: #242424;
	--color-muted: #666;
	--color-accent: #8b6f3d;
	--color-accent-dark: #6f572f;
	--color-border: #ddd;
	--color-background: #f5f4f1;
	--color-surface: #fff;

	--content-width: 900px;
	--spacing: 1.5rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--color-background);
	color: var(--color-text);

	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;

	font-size: 1rem;
	line-height: 1.7;
}


/* ---------- Hauptbereich ---------- */

main {
	width: min(100% - 2rem, var(--content-width));
	margin: 3rem auto;
	padding: 3rem 4rem;

	background: var(--color-surface);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}


/* ---------- Header ---------- */

header {
	text-align: center;
}

.logo {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	margin: 0 auto 1.5rem;
}

.center {
	text-align: center;
}

h1 {
	margin: 0;
	color: var(--color-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	font-weight: 400;
	line-height: 1.25;
}

header hr,
footer hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 2rem 0;
}


/* ---------- Sections ---------- */

section {
	margin: 0 0 3.5rem;
}

section:last-of-type {
	margin-bottom: 2rem;
}

h2 {
	margin: 0 0 1.25rem;
	color: var(--color-text);

	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 3vw, 1.8rem);
	font-weight: 400;
	line-height: 1.3;
}

h3 {
	margin: 2rem 0 0.4rem;

	color: var(--color-accent);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

p {
	margin: 0 0 1.25rem;
}

strong {
	font-weight: 650;
}


/* ---------- Links ---------- */

a {
	color: var(--color-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition:
		color 0.2s ease,
		text-decoration-color 0.2s ease;
}

a:hover {
	color: var(--color-text);
}

a:focus-visible {
	outline: 3px solid rgba(139, 111, 61, 0.35);
	outline-offset: 3px;
	border-radius: 2px;
}


/* ---------- Listen ---------- */

ul {
	margin: 1rem 0 0;
	padding-left: 1.4rem;
}

li {
	margin-bottom: 0.9rem;
	padding-left: 0.25rem;
}

li:last-child {
	margin-bottom: 0;
}


/* ---------- Pflichtinformationen ---------- */

section:nth-of-type(3) ul {
	padding-left: 1.2rem;
}

section:nth-of-type(3) li {
	margin-bottom: 1.2rem;
}


/* ---------- Footer ---------- */

footer {
	color: var(--color-muted);
	font-size: 0.9rem;
}

footer hr {
	margin: 3rem 0 1rem;
}

footer p {
	margin: 0;
}


/* =========================================================
   Responsive Design
   ========================================================= */

/* Tablets */

@media (max-width: 700px) {

	main {
		width: min(100% - 1.5rem, var(--content-width));
		margin: 1.5rem auto;
		padding: 2.5rem 2rem;
	}

	section {
		margin-bottom: 3rem;
	}

}


/* Smartphones */

@media (max-width: 500px) {

	body {
		font-size: 0.98rem;
		line-height: 1.65;
	}

	main {
		width: 100%;
		margin: 0;
		padding: 1.75rem 1.25rem;
		box-shadow: none;
	}

	.logo {
		margin-bottom: 1.25rem;
	}

	h1 {
		font-size: 1.7rem;
	}

	h2 {
		font-size: 1.4rem;
	}

	h3 {
		margin-top: 1.75rem;
	}

	header hr {
		margin: 1.5rem 0 2.5rem;
	}

	section {
		margin-bottom: 2.75rem;
	}

	ul {
		padding-left: 1.2rem;
	}

}


/* Sehr kleine Displays */

@media (max-width: 350px) {

	main {
		padding: 1.5rem 1rem;
	}

	h1 {
		font-size: 1.5rem;
	}

	h2 {
		font-size: 1.3rem;
	}

}