/* Draft 1: logo in the navigation bar, one footer block. Loaded after the theme styles. */

#logo img {
	display: block;
	width: auto;
	max-height: none;
}

@media only screen and (min-width: 769px) {
	#site-header #header-core {
		display: flex;
		align-items: stretch;
		max-width: 1400px;
		padding: 0 24px;
		box-sizing: border-box;
	}
	#logo {
		float: none;
		flex: none;
		margin: 0;
		padding: 8px 22px;
		background: #b4b2b3;
		display: flex;
		align-items: center;
	}
	#logo img {
		height: 76px;
	}
	#site-header #header .header-links > ul > li > a {
		padding: 33px 22px;
	}
	#header-links {
		float: none;
		flex: 1;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	#header-links-inner {
		float: none;
	}
}

@media only screen and (min-width: 769px) and (max-width: 1180px) {
	#site-header #header .header-links > ul > li > a {
		padding: 33px 11px;
		font-size: 13px;
	}
	#header-search {
		padding-left: 12px;
	}
	#header-search,
	#header-search .search {
		width: 130px;
	}
}

@media only screen and (min-width: 769px) and (max-width: 960px) {
	#site-header #header-core {
		flex-wrap: wrap;
	}
	#header-links {
		flex-basis: 100%;
		justify-content: center;
	}
	#site-header #header .header-links > ul > li > a {
		padding: 23px 11px;
	}
	#header-search,
	#header-search .search {
		width: 110px;
	}
}

@media only screen and (max-width: 768px) {
	#logo {
		padding: 5px 14px !important;
		background: #b4b2b3;
	}
	#logo img {
		height: 42px;
	}
}

/* Long German words such as "Industrievertretung" broke mid-word on phones */
@media only screen and (max-width: 568px) {
	#content h1 {
		font-size: 30px;
		overflow-wrap: normal;
		hyphens: auto;
	}
}

/* The footer fills at least one screen. Type follows the web-design scale (16 px floor column):
   body 16/24, column titles as Subtitle 18/24, 20/28 from 1024 px. The theme sets the root to 10 px, so sizes use px. Abel has one weight, so titles stay at 400. */
.kz-footer {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	background: #232323;
	color: #e6e6e6;
	font-family: Abel, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
.kz-footer-core {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	max-width: 1216px;
	margin: 0 auto;
	padding: 64px 24px 24px;
	box-sizing: border-box;
}
.kz-footer-main {
	display: grid;
	grid-template-columns: 280px repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 40px 64px;
	margin-block: auto;
}
.kz-footer-logo {
	grid-row: span 2;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
	background: #b4b2b3;
}
.kz-footer-logo img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
}
.kz-footer h3 {
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #444;
	color: #e6e6e6;
	font-family: Abel, sans-serif;
	font-size: 18px;
	font-weight: normal;
	line-height: 1.333;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
}
.kz-footer p,
.kz-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	text-wrap: pretty;
}
.kz-footer a {
	color: #e6e6e6;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.kz-footer a:hover,
.kz-footer a[aria-current="page"] {
	color: #fff;
}
.kz-footer .kz-footer-copy {
	margin-top: 48px;
	padding-top: 12px;
	border-top: 1px solid #444;
	color: #a0a0a0;
}

@media only screen and (min-width: 1024px) {
	.kz-footer h3 {
		font-size: 20px;
		line-height: 1.4;
	}
}

@media only screen and (max-width: 1100px) {
	.kz-footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.kz-footer-logo {
		grid-column: 1 / -1;
		grid-row: auto;
		align-self: start;
		justify-self: start;
		box-sizing: border-box;
		width: 280px;
		max-width: 100%;
	}
}

@media only screen and (max-width: 568px) {
	.kz-footer-main {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The team pages use Font Awesome 5 class names, but the theme ships Font Awesome 4.7 */
.far::before,
.fas::before {
	display: inline-block;
	margin-right: 6px;
	font-family: FontAwesome;
	font-style: normal;
}
.far.fa-building::before {
	content: "\f0f7";
}
.far.fa-envelope::before {
	content: "\f003";
}

/* Home slider: the theme script adds .rslides and sets the height only after the page has loaded.
   Until then the slider has 0 height and the page jumps down by up to 375px. Reserve the same
   height (375px at 1140px and wider, 375/1140 of the width below) and show the first slide. */
#slider .slides:not(.rslides) {
	width: 100%;
	height: auto;
	aspect-ratio: 1140 / 375;
	max-height: 375px;
	overflow: hidden;
}
#slider .slides:not(.rslides) li:not(:first-child) {
	display: none;
}
#slider .slides:not(.rslides) li:first-child,
#slider .slides:not(.rslides) li:first-child img {
	width: 100%;
	height: 100%;
}

/* Embedded videos: the theme script resizes them to the column width at 640:360 after load.
   Give them that size from the start, so the text below does not jump (mainly on phones). */
#content iframe[src*="//www.youtube.com"],
#content iframe[src*="//player.vimeo.com"] {
	width: 100%;
	height: auto;
	aspect-ratio: 640 / 360;
}
