/**
 * The consent banner — see inc/consent.php.
 *
 * A bar at the foot of the window rather than a sheet over the page: the
 * visitor came to read something, and a question that hides what they came
 * for is a question answered to get rid of it. Both buttons are the same
 * size — refusing has to be as easy as agreeing (Art. 7 Abs. 3 DSGVO), and a
 * grey "no" beside a coloured "yes" is the dark pattern the supervisory
 * authorities name by name.
 *
 * The bar is graphite in both themes, so its colours come from --sc-graphite
 * and not from --sc-text: the dark theme turns --sc-text near-white, which
 * would have given the banner a white background under white text.
 */
.sc-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: var(--sc-graphite, #252123);
	color: #fff;
	/* On the light page the shadow separates the bar from the content; on the
	   dark one, where graphite and paper are a step apart, the hairline does. */
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 -2px 18px rgba(37, 33, 35, 0.28);
}

.sc-consent[hidden] {
	display: none;
}

.sc-consent__inner {
	max-width: var(--sc-page-width, 1200px);
	margin: 0 auto;
	padding: 1.1rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	justify-content: space-between;
}

.sc-consent__text {
	flex: 1 1 28rem;
}

.sc-consent__title {
	margin: 0 0 0.3rem;
	font-family: Teko, Inter, sans-serif;
	font-size: 1.5rem;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.sc-consent__text p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #e6e3e4;
}

.sc-consent__text a {
	color: var(--sc-teal-light, #64d3de);
	text-decoration: underline;
}

.sc-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.sc-consent__btn {
	flex: 1 1 11rem;
	padding: 0.72rem 1.4rem;
	border: 2px solid transparent;
	font-family: Teko, Inter, sans-serif;
	font-size: 1.15rem;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sc-consent__btn--accent {
	/* Graphite on the accent yellow: white on #FFB039 is about 1.9:1. */
	background: var(--sc-accent, #ffb039);
	color: var(--sc-on-accent, #252123);
}

.sc-consent__btn--accent:hover,
.sc-consent__btn--accent:focus-visible {
	background: var(--sc-accent-dark, #f09c1c);
}

.sc-consent__btn--plain {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.sc-consent__btn--plain:hover,
.sc-consent__btn--plain:focus-visible {
	background: #fff;
	color: var(--sc-graphite, #252123);
}

.sc-consent__btn:focus-visible {
	outline: 3px solid var(--sc-teal-light, #64d3de);
	outline-offset: 2px;
}

/* The footer link that opens the banner again. A button, because it calls
   nothing up over the network and leads to no page. */
.footer-linkbtn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	/* No underline: it stands in a list of links that carry none, and a
	   button that looks different from its neighbours reads as a different
	   kind of thing. */
	text-decoration: none;
	cursor: pointer;
}

.footer-linkbtn:hover,
.footer-linkbtn:focus-visible {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.sc-consent__inner {
		padding: 1rem 1.1rem;
	}

	.sc-consent__actions {
		width: 100%;
	}
}
