/**
 * GM Theme – newsletter + footer (4.0.7, 4.0.8), parts/footer.html.
 *
 * 1. Newsletter: its own white section above the footer (as on the
 *    original site): one sentence, below it e-mail field + button in one
 *    row. Field and button have the site's one style (components.css).
 * 2. Footer: the original arrangement – the logo large on the left and the
 *    menus (Menu, Rechtliches, Kontakt with Instagram / YouTube icons)
 *    directly next to it, in the 1200 px column. As the logo image of the
 *    original, the logo fills the width the menus leave, so only the
 *    column gap lies between them (4.0.8). Copyright centred below. Calm,
 *    professional: almost black (original colour), clear headings,
 *    readable links.
 */

/* ==========================================================================
   1. Newsletter
   ========================================================================== */

.gm-signup {
	--gm-signup-fg: #1d1d1f;
	--gm-signup-gutter: var(--wp--preset--spacing--50, 1.5rem);

	margin: 0 !important;
	padding: clamp(3.5rem, 7vw, 5rem) var(--gm-signup-gutter) !important;
	background: #fff !important;
	color: var(--gm-signup-fg);
	text-align: center;
}

.gm-signup .wp-block-group {
	padding: 0;
	background: none;
}

.gm-signup .gm-signup__inner {
	max-width: 46rem;
	margin: 0 auto;
}

.gm-signup .gm-signup__title {
	margin: 0 0 clamp(1.5rem, 3vw, 2rem);
	padding: 0 !important;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.014em;
	text-align: center;
	text-wrap: balance;
	color: var(--gm-signup-fg);
}

.gm-signup .gm-signup__form {
	max-width: 32rem;
	margin: 0 auto;
	text-align: left;
}

/* Fluent Form: e-mail field and button in one row. */
.gm-signup .fluentform,
.gm-signup .fluentform form {
	margin: 0;
}

.gm-signup .fluentform .ff-el-group {
	margin: 0 !important;
}

.gm-signup .fluentform .ff-t-container {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 0.5rem !important;
	align-items: flex-start;
	margin: 0 !important;
}

.gm-signup .fluentform .ff-t-cell {
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
}

.gm-signup .fluentform .ff-t-column-1 {
	flex: 1 1 auto !important;
	min-width: 0;
}

.gm-signup .fluentform .ff-t-column-2 {
	flex: 0 0 auto !important;
}

.gm-signup .fluentform .ff_submit_btn_wrapper {
	margin: 0 !important;
	text-align: left !important;
}

.gm-signup .fluentform .ff-btn-submit {
	margin: 0 !important;
	white-space: nowrap;
}

.gm-signup .fluentform .error,
.gm-signup .fluentform .text-danger {
	margin-top: 0.4rem;
	font-size: 0.8125rem;
	text-align: left;
}

.gm-signup .ff-message-success {
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px solid #d2d2d7;
	border-radius: var(--gm-radius, 15px);
	background: #f5f5f7;
	color: var(--gm-signup-fg);
	box-shadow: none;
	text-align: center;
}

/* ==========================================================================
   2. Footer
   ========================================================================== */

.gm-foot {
	--gm-foot-bg: #1a1a1a; /* the original footer colour */
	--gm-foot-fg: #fff;
	--gm-foot-link: rgba(255, 255, 255, 0.82);
	--gm-foot-muted: rgba(255, 255, 255, 0.5);
	--gm-foot-edge: var(--gm-header-edge, var(--wp--preset--spacing--50, 1.5rem));

	margin: 0 !important;
	padding: 0 !important;
	background: var(--gm-foot-bg) !important;
	color: var(--gm-foot-link);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* Global styles give Groups padding/background and Headings 2.25rem padding. */
.gm-foot .wp-block-group {
	padding: 0;
	background: none;
}

.gm-foot .wp-block-heading {
	padding: 0 !important;
}

.gm-foot p,
.gm-foot ul {
	margin: 0;
}

.gm-foot a {
	color: var(--gm-foot-link);
	text-decoration: none;
	transition: color 0.2s ease;
}

.gm-foot a:hover,
.gm-foot a:focus-visible {
	color: var(--gm-foot-fg);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.gm-foot a:focus-visible {
	outline: 2px solid var(--gm-foot-fg);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Logo and menus in the site's 1200 px column, as on the original. */
.gm-foot .gm-foot__inner {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 1200px) + 2 * var(--gm-foot-edge));
	margin: 0 auto;
	padding: 0 var(--gm-foot-edge) !important;
}

/* Logo left, the menus directly next to it: the logo column takes the
   width the menus leave (as on the original, at every window width). */
.gm-foot .gm-foot__main {
	display: flex;
	align-items: center;
	gap: 3rem;
	padding: clamp(3rem, 6vw, 4.25rem) 0 0 !important;
}

.gm-foot .gm-foot__brand {
	flex: 1 1 0;
	min-width: 0;
	container-type: inline-size;
	line-height: 1;
}

/* Browsers without container units: size from the window width. */
.gm-foot .gm-brand--footer {
	--gm-brand-size: clamp(1.875rem, 0.6rem + 3.2vw, 3.5rem);
}

/* The logo is 9.68 em wide (brand.css): this size fills its column. */
@supports (width: 1cqw) {

	.gm-foot .gm-brand--footer {
		--gm-brand-size: calc(100cqw / 9.7);
	}
}

.gm-foot .gm-brand,
.gm-foot .gm-brand:hover,
.gm-foot .gm-brand:focus-visible {
	color: var(--gm-foot-fg);
	text-decoration: none;
}

.gm-foot .gm-foot__menus {
	flex: none;
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: 2rem 2.5rem;
}

/* Small headings in capitals, links readable and calm. */
.gm-foot .gm-foot__heading {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-align: left;
	text-transform: uppercase;
	color: var(--gm-foot-muted);
}

.gm-foot .gm-foot__links {
	padding: 0;
	list-style: none;
}

.gm-foot .gm-foot__links li {
	margin: 0 0 0.6rem;
	padding: 0;
}

.gm-foot .gm-foot__links li:last-child {
	margin-bottom: 0;
}

.gm-foot .gm-foot__links a {
	overflow-wrap: anywhere;
}

/* Instagram, YouTube. */
.gm-foot .gm-foot__social {
	gap: 1rem !important;
	margin: 1.4rem 0 0 !important;
	padding: 0 !important;
}

.gm-foot .gm-foot__social .wp-social-link {
	color: var(--gm-foot-link) !important;
	background: none !important;
	transition: color 0.2s ease;
}

.gm-foot .gm-foot__social .wp-social-link:hover {
	color: var(--gm-foot-fg) !important;
	transform: none;
}

.gm-foot .gm-foot__social .wp-social-link a {
	padding: 0.25rem;
	margin: -0.25rem;
	color: inherit;
}

.gm-foot .gm-foot__social svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
}

/* Copyright: small and quiet, centred. */
.gm-foot .gm-foot__bottom {
	padding: clamp(2.5rem, 5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2rem) !important;
	color: var(--gm-foot-muted);
	font-size: 0.8125rem;
	text-align: center;
}

.gm-foot .gm-foot__copy {
	font-size: inherit;
}

/* ---------- Tablet / mobile ---------- */

/* Logo above the menus: beside them it would get smaller than 30 px. */
@media (max-width: 899.5px) {

	.gm-foot .gm-foot__main {
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;
	}

	.gm-foot .gm-foot__brand {
		flex: none;
		container-type: normal;
	}

	.gm-foot .gm-brand--footer {
		--gm-brand-size: 1.875rem;
	}
}

@media (max-width: 767.5px) {

	.gm-foot .gm-foot__menus {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 1.5rem;
		width: 100%;
	}

	/* Kontakt (long e-mail address) gets the full width. */
	.gm-foot .gm-foot__menus > :last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 479.5px) {

	.gm-signup .fluentform .ff-t-container {
		flex-wrap: wrap;
	}

	.gm-signup .fluentform .ff-t-cell {
		flex: 1 1 100% !important;
	}

	.gm-signup .fluentform .ff-btn-submit {
		width: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	.gm-foot a,
	.gm-foot .gm-foot__social .wp-social-link {
		transition: none;
	}
}
