/* Sticky footer: kurze Danke-Seite füllt mindestens die Viewport-Höhe */
body.hegewald-danke-modus #page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.hegewald-danke-modus #page > #content {
	flex: 1 0 auto;
}

body.hegewald-danke-modus footer.footer {
	flex-shrink: 0;
	margin-top: auto;
}

.hegewald-danke {
	position: relative;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

.hegewald-danke > .container {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-bottom: 2rem;
}

.hegewald-danke__card {
	max-width: 720px;
	margin: 0 auto;
	box-shadow: 0 2px 1.5em rgba(0, 0, 0, 0.12);
}

.hegewald-danke__inner {
	font-family: Inter, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #2d3c4b;
}

.hegewald-danke__portrait {
	margin: 0 0 1.75rem;
	text-align: left;
}

.hegewald-danke__portrait-img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
	margin: 0;
	border-radius: 4px;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.hegewald-danke__lead {
	font-size: 1.125rem;
	font-weight: 700;
	margin-top: 0;
}

.hegewald-danke__inner p {
	margin: 0 0 1.25rem;
}

.hegewald-danke__inline-link {
	color: #52b7c1;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hegewald-danke__inline-link:hover,
.hegewald-danke__inline-link:focus-visible {
	color: #3da0aa;
}

.hegewald-danke__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2rem 0 2.25rem;
}

.hegewald-danke__button {
	display: inline-block;
	padding: 0.65em 1.75em;
	background-color: #52b7c1;
	color: #fff !important;
	text-decoration: none !important;
	font-family: Inter, sans-serif;
	font-weight: 800;
	font-size: 1rem;
	text-align: center;
	transition: background-color 0.2s ease;
	border: none;
}

.hegewald-danke__button:hover,
.hegewald-danke__button:focus-visible {
	background-color: #3da0aa;
	color: #fff !important;
	outline: none;
}

.hegewald-danke__signoff {
	margin-bottom: 0 !important;
	margin-top: 0.5rem;
}

body.hegewald-danke-modus .hegewald-danke__card {
	animation: hegewald-danke-fade-in 0.5s ease-out;
}

@keyframes hegewald-danke-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 640px) {
	.hegewald-danke__actions {
		flex-direction: column;
	}

	.hegewald-danke__button {
		width: 100%;
	}
}
