* {
	box-sizing: border-box;
}

@font-face {
	font-family: "GigesthaVariable";
	src: url("./gigestha-variable/font.woff2") format("woff2");
}

:root {
	--bg: #fff7e9;
	--text: #514033;
	--muted: #7a6854;
	--primary: rgb(81, 64, 51);
	--primary-fg: hsl(0, 0%, 100%);
	--border: #e8dcc4;
	--card: #f5edd7;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 4rem;
}

body {
	margin: 0;
	font-family: "Ancizar Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 20px;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "GigesthaVariable", serif;
	font-weight: 500;
	line-height: 1.1;
	text-wrap: balance;
}

h1 {
	font-size: 4rem;
	margin: 0;
}

h2 {
	font-size: 2.5rem;
	margin-top: 0;
	margin-bottom: 1rem;
}

h3 {
	font-size: 2rem;
	margin: 1rem 0 0;
}

img {
	max-width: 100%;
	display: block;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.mobile-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text);
	padding: 0.5rem;
}

.nav {
	position: sticky;
	top: 0;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	z-index: 100;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;

	.container {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		gap: 0;
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.container.active {
		max-height: 300px;
	}

	a {
		text-decoration: none;
		transition: color 0.2s;
		display: block;
		padding: 1rem 1.5rem;
		border-bottom: 1px solid var(--border);

		&:last-child {
			border-bottom: none;
		}

		&:hover {
			color: var(--primary);
			background: var(--card);
		}
	}
}

a {
	color: var(--text);
}

@media (min-width: 600px) {
	.nav {
		.container {
			display: flex;
			position: static;
			flex-direction: row;
			max-height: none;
			overflow: visible;
			border-bottom: none;
			gap: 1rem;
		}

		a {
			padding: 1rem;
			border-bottom: none;
		}

		a:hover {
			background: transparent;
		}
	}

	.mobile-menu {
		display: none;
	}
}

figure {
	margin: 0;
}

section {
	padding-top: 8vh;
}

.hero {
	padding-top: 5vh;
	min-height: 70vh;
	display: flex;
	align-items: center;

	.container {
		display: grid;
		gap: 1rem;
		align-items: center;
	}

	figure {
		position: relative;
		aspect-ratio: 4 / 5;
		border-radius: 5px;
		overflow: hidden;
	}

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

@media (min-width: 768px) {
	.hero .container {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.aktuelles-content {
	display: flex;
	justify-content: center;
}

article.centered {
	max-width: 60ch;
	margin-inline: auto;
}

section h2 {
	text-align: center;
}

section .intro {
	text-align: center;
	max-width: 60ch;
	margin: 0 auto 3rem;
}

/* (shared by courses and ausbildungen) */
.CardGrid {
	display: grid;
	gap: 2rem;
	justify-content: center;
	justify-items: center;
}

@media (min-width: 768px) {
	.CardGrid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
	}
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 1rem;
	gap: 1rem;

	&.empty {
		text-align: center;
		color: var(--muted);
	}

	img {
		width: 100%;
		aspect-ratio: 4/3;
		object-fit: cover;
		border-radius: 1rem 1rem 0 0;
	}

	div {
		flex: 1;
	}

	p {
		margin: 0 0 0.5rem;
	}
}

input[type="email"] {
	padding: 0.5em;
	font-family: inherit;
	font-size: 1rem;
}

input[type="submit"],
.btn {
	padding: 0.75rem;
	font-family: inherit;
	background: var(--primary);
	color: var(--primary-fg);
	border: none;
	border-radius: 0.5rem;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.2s;
}

.about {
	display: grid;
	gap: 3rem;
	align-items: start;
	background: transparent;
	border: none;
	padding: 0;
}

.about p {
	margin-bottom: 1.5rem;
}

.about img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 5px;
}

@media (min-width: 768px) {
	.about {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
		place-items: center;
	}
}

.footer {
	padding-top: 8vh;
}

/* Mailchimp newsletter */
#mc_embed_shell {
	margin-top: 2rem;
	h2 {
		text-align: center;
	}
}
#mc_embed_signup form {
	margin: 0 !important;
}

#mc_embed_signup_scroll {
	display: flex;
	place-content: center;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

p.centered {
	text-align: center;
}
