/* Junior Uni Daun footer (reference: junioruniblazor.seminarverwaltung.software) */

body.has-k3-junior-header {
	--k3-footer-teal: #00adca;
}

body.has-k3-junior-header .k3-site-footer {
	background: var(--k3-footer-teal);
	color: #ffffff;
	width: 100%;
	margin: 0;
	margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px));
	margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px));
	padding: clamp(2rem, 3vw, 3.6rem) var(--wp--style--root--padding-right, 0px) 0 var(--wp--style--root--padding-left, 0px);
	box-sizing: border-box;
}

body.has-k3-junior-header .k3-site-footer__inner {
	width: 100%;
	max-width: var(--k3-header-content-width, var(--wp--style--global--wide-size, 1200px));
	margin: 0 auto;
	box-sizing: border-box;
}

body.has-k3-junior-header .k3-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: start;
}

body.has-k3-junior-header .k3-site-footer__heading {
	margin: 0 0 0.65rem;
	padding: 0 0 0 0.65rem;
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}

body.has-k3-junior-header .k3-site-footer__divider {
	width: 15%;
	min-width: 48px;
	height: 0;
	border-top: 3px solid #ffffff;
	margin: 0 auto 0.35rem;
}

body.has-k3-junior-header .k3-site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

body.has-k3-junior-header .k3-site-footer__links li {
	margin: 0;
	padding: 0;
}

body.has-k3-junior-header .k3-site-footer__links a,
body.has-k3-junior-header .k3-site-footer__legal a {
	color: #ffffff;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

body.has-k3-junior-header .k3-site-footer__links a {
	display: inline-block;
	padding: 0.2rem 0;
	font-size: 1rem;
	line-height: 1.5;
}

body.has-k3-junior-header .k3-site-footer__links a:hover,
body.has-k3-junior-header .k3-site-footer__links a:focus-visible,
body.has-k3-junior-header .k3-site-footer__legal a:hover,
body.has-k3-junior-header .k3-site-footer__legal a:focus-visible {
	opacity: 0.85;
	text-decoration: underline;
}

body.has-k3-junior-header .k3-site-footer__column--quote {
	display: flex;
	align-items: center;
	justify-content: center;
}

body.has-k3-junior-header .k3-site-footer__quote {
	margin: 0;
	padding: 1.25rem 0;
	border-top: 5px solid #ffffff;
	border-bottom: 5px solid #ffffff;
	text-align: center;
	color: #ffffff;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	line-height: 1.8;
}

body.has-k3-junior-header .k3-site-footer__quote p {
	margin: 0;
}

body.has-k3-junior-header .k3-site-footer__quote p + p {
	margin-top: 0.35rem;
}

body.has-k3-junior-header .k3-site-footer__bottom {
	margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
	padding-bottom: clamp(1.5rem, 2vw, 2rem);
}

body.has-k3-junior-header .k3-site-footer__legal {
	margin: 0;
	text-align: center;
	color: #ffffff;
	font-size: 1rem;
	line-height: 1.6;
}

body.has-k3-junior-header .k3-site-footer__copyright {
	margin-right: 0.35rem;
}

body.has-k3-junior-header .k3-site-footer__legal a {
	margin: 0 0.35rem;
}

/* Hide the default block-theme footer when the custom footer is active */
body.has-k3-junior-header footer.wp-block-template-part:not(.k3-site-footer) {
	display: none !important;
}

@media (max-width: 900px) {
	body.has-k3-junior-header .k3-site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	body.has-k3-junior-header .k3-site-footer__column--quote {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	body.has-k3-junior-header .k3-site-footer__grid {
		grid-template-columns: 1fr;
	}

	body.has-k3-junior-header .k3-site-footer__legal {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.35rem;
	}

	body.has-k3-junior-header .k3-site-footer__legal a {
		margin: 0;
	}
}
