/*
 * The 404 page (404.php).
 *
 * A large 404 in the identity's two colours beside one friendly sentence,
 * then "Meinten Sie …" when there are near misses, then every section of the
 * site as a card. Open Sans for the sentences, as on Team and Partner; the
 * names on the cards keep the site's DIN Alternate.
 */
.fehlerseite {
	font-family: 'Open Sans', sans-serif;
}

/* --- Head ---------------------------------------------------------------- */
.fehlerseite-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px clamp(24px, 4vw, 56px);
	margin: 8px 0 clamp(28px, 4vw, 44px);
}

/*
 * Decoration (aria-hidden): the h1 above already says what happened. The 0 in
 * the middle is yellow, as the logo's second colour; teal, at this size, is
 * well past the 3:1 large text needs (2.5:1 is for body text, and this is
 * not read as text).
 */
.p-bar-text .fehlerseite-zahl {
	margin: 0;
	font-family: 'DIN Alternate Bold', 'Open Sans', sans-serif;
	font-size: clamp(88px, 12vw, 168px);
	line-height: 0.9;
	letter-spacing: -2px;
	color: var(--brand-teal);
	user-select: none;
}

.fehlerseite-zahl span {
	color: var(--brand-yellow-rule);
}

.fehlerseite-text {
	flex: 1 1 320px;
	max-width: 60ch;
}

.p-bar-text .fehlerseite-lead {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
	color: #222;
	text-wrap: pretty;
}

.p-bar-text .fehlerseite-adresse {
	margin: 12px 0 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	color: #555;
}

.fehlerseite-adresse code {
	padding: 2px 6px;
	border-radius: 4px;
	background: #f2f2ef;
	color: #333;
	font-size: 13px;
	word-break: break-all;
}

/* --- Section headings ---------------------------------------------------- */
.p-bar-text.fehlerseite h2 {
	margin: 0 0 14px;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #057e65;
}

/* --- Meinten Sie … -------------------------------------------------------- */
.fehlerseite-vorschlaege {
	margin: 0 0 clamp(28px, 4vw, 44px);
	padding: 18px 22px;
	border: 1px solid color-mix(in srgb, var(--brand-yellow-rule) 45%, #fff);
	border-radius: 8px;
	background: color-mix(in srgb, var(--brand-yellow) 14%, #fff);
}

.fehlerseite-vorschlaege ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fehlerseite-vorschlaege li + li {
	margin-top: 6px;
}

.fehlerseite-vorschlaege a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	font-family: 'Open Sans', sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: #1c1c1c;
	text-decoration: underline;
	text-decoration-color: var(--brand-yellow-rule);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.fehlerseite-vorschlaege a:hover,
.fehlerseite-vorschlaege a:focus-visible {
	color: #057e65;
	text-decoration-color: currentColor;
}

.fehlerseite-vorschlaege .fa-arrow-right {
	font-size: 13px;
}

/* --- Sections ------------------------------------------------------------ */
.fehlerseite-karten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fehlerseite-karte {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	row-gap: 2px;
	align-items: center;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid #e2e2dc;
	border-radius: 8px;
	background: #fff;
	color: #1c1c1c;
	text-decoration: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.25s ease,
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.fehlerseite-karte .fas {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--brand-teal) 12%, #fff);
	color: #057e65;
	font-size: 17px;
}

/* Every second card in the yellow, as the logo alternates its two colours. */
.fehlerseite-karten li:nth-child(even) .fehlerseite-karte .fas {
	background: color-mix(in srgb, var(--brand-yellow) 30%, #fff);
	color: #5c5200;
}

.fehlerseite-karte-name {
	font-family: 'DIN Alternate Bold', 'Open Sans', sans-serif;
	font-size: 20px;
	line-height: 1.2;
}

.fehlerseite-karte-zeile {
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #555;
}

.fehlerseite-karte:hover,
.fehlerseite-karte:focus-visible {
	border-color: var(--brand-teal-ink);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
	color: #1c1c1c;
	text-decoration: none;
}

.fehlerseite-karte:hover .fehlerseite-karte-name,
.fehlerseite-karte:focus-visible .fehlerseite-karte-name {
	color: #057e65;
}

.fehlerseite-karte:focus-visible {
	outline: 3px solid var(--brand-teal-ink);
	outline-offset: 3px;
}

/* --- Last line ----------------------------------------------------------- */
.p-bar-text .fehlerseite-aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: clamp(24px, 3vw, 36px) 0 0;
	font-family: 'Open Sans', sans-serif;
}

.fehlerseite-knopf {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: var(--tap);
	padding: 8px 22px;
	border-radius: 24px;
	background: #057e65;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.fehlerseite-knopf:hover,
.fehlerseite-knopf:focus-visible {
	background: #046a55;
	color: #fff;
	text-decoration: none;
}

.fehlerseite-knopf:focus-visible {
	outline: 3px solid #1c1c1c;
	outline-offset: 3px;
}

.fehlerseite-link {
	font-size: 16px;
	font-weight: 600;
	color: #057e65;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.fehlerseite-link:hover,
.fehlerseite-link:focus-visible {
	color: #1c1c1c;
}

@media (prefers-reduced-motion: reduce) {
	.fehlerseite-karte,
	.fehlerseite-knopf {
		transition: none;
	}

	.fehlerseite-karte:hover,
	.fehlerseite-karte:focus-visible {
		transform: none;
	}
}
