/*
 * Global footer.
 *
 * Was front-page-only (`body:not(.home) .footer { display: none }`), with inner
 * pages getting a near-duplicate of it inside the sticky nav bar instead. It is
 * now the single footer on every page and the duplicate is gone.
 *
 * Compacted at the same time: the contact block used to be a three-row table
 * (names, then e-mails, then phone numbers) that needed ~260px of height. Each
 * person is now one line, so the whole footer is a heading, two lines and a
 * bottom rule.
 */
.footer {
	padding: clamp(18px, 2vw, 26px) 0 max(14px, env(safe-area-inset-bottom));
	font-family: 'Open Sans', Arial, sans-serif;
}

.footer-inner {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 32px);
}

.footer-shadow {
	box-shadow: black 0px 0px 30px;
}

.footer-heading {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0 0 10px;
}

.footer-people {
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * One person per line: name, then e-mail, then phone, laid out inline and
 * allowed to wrap onto a second line on narrow screens rather than forcing a
 * horizontal scrollbar.
 */
.footer-person {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px clamp(14px, 2vw, 26px);
	padding: 5px 0;
	font-size: clamp(13px, 0.6vw + 10.7px, 15px);
}

/*
 * The name and the e-mail address each reserve a column, so the three fields
 * line up down the rows without a table.
 *
 * The address needs its reserve as much as the name does. Left at its content
 * width it measured 181px on one row and 186px on the other — the same
 * character count, different letters — and that 5px put the two phone numbers
 * out of line with each other. The reserve has to stay wider than the longest
 * address the block will ever hold; at 15px, the largest this text goes, the
 * present two need 186px.
 *
 * min(100%, …) rather than a flat width: on a screen too narrow for the row,
 * the field takes the full width instead and the row wraps, which is what it
 * has always done.
 */
.footer-person-name {
	color: #fff;
	font-weight: 600;
	flex: 0 0 auto;
	min-width: min(100%, 250px);
}

.footer-person-link {
	color: #cfcfcf;
	text-decoration: none;
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	white-space: nowrap;
}

.footer-person-link[href^="mailto:"] {
	flex: 0 0 auto;
	min-width: min(100%, 205px);
}

/*
 * The glyphs carry a per-person accent — teal for Doris, the identity yellow
 * for Gernot — set as a variable on the <li> so the two links of a row can
 * never disagree with each other.
 *
 * Colour only, and only on the icon: the address beside it stays #cfcfcf. Both
 * accents read clearly on this dark ground (--brand-teal is 4.6:1 on #343a40,
 * --brand-yellow 8.7:1), and the icons are aria-hidden with the address spelled
 * out next to them, so nothing is carried by colour alone — WCAG 1.4.1.
 */
.footer-person {
	--footer-accent: var(--brand-teal);
}

.footer-person--yellow {
	--footer-accent: var(--brand-yellow);
}

.footer-person-link i {
	color: var(--footer-accent);
	font-size: 0.85em;
}

.footer-person-link:hover,
.footer-person-link:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Bottom rule --------------------------------------------------------- */
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.copyright-text {
	margin: 0;
	color: #b8b8b8;
	font-size: 12px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	font-size: 12px;
}

.footer-links a {
	color: #cfcfcf;
	text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.footer a:focus-visible {
	outline: 2px solid var(--brand-teal);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (max-width: 640px) {
	.footer-bottom {
		justify-content: flex-start;
	}
}
