@charset "UTF-8";

:root {
	--blue: #009EE0;
	--text: #484A4D;
	--border-light: #ebebeb;
	--container-max: 790px;
	--box-max: 500px;
	--h1-max: 790px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, div, span, a, img {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

ul, ol { list-style: none; }

html {
	font-size: 13px;
	font-family: 'Open Sans', "Lucida Grande", Verdana, sans-serif;
	font-weight: 400;
	-webkit-text-size-adjust: 100%;
}

body {
	background: #ffffff url(../images/bg.png) repeat;
	color: var(--text);
	line-height: 1;
}

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 10px;
}

/* HEADER / MENU */

.site-header {
	margin-top: 35px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 25px;
}

.main-nav li {
	text-transform: uppercase;
}

.main-nav a {
	background-color: white;
	color: var(--text);
	text-decoration: none;
	padding: 7px 14px;
	display: inline-block;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
	background-color: var(--blue);
	color: white;
	outline: none;
}

.main-nav li.current a {
	background-color: var(--blue);
	color: white;
}

.site-logo img {
	display: block;
	width: 42px;
	height: 42px;
}

/* CONTENT */

.content {
	padding-top: 20px;
	line-height: 1.15;
}

.content h1 {
	max-width: var(--h1-max);
	width: 100%;
	color: var(--blue);
	margin: 10px 0;
	text-transform: uppercase;
	font-weight: 700;
	background-color: white;
	border: 1px solid var(--border-light);
	padding: 8px 22px;
	line-height: 1.3;
}

.whitebox {
	max-width: var(--box-max);
	background-color: white;
	border: 1px solid var(--border-light);
	padding: 0 12px;
	margin-bottom: 10px;
}

.whitebox p,
.content > p {
	color: var(--text);
	padding: 7px 0;
	line-height: 1.55;
}

.content > p {
	max-width: var(--box-max);
	background-color: white;
	border: 1px solid var(--border-light);
	padding: 7px 12px;
	margin-bottom: 10px;
}

.whitebox ul {
	list-style-image: url(../images/li.jpg);
	margin: 0 0 0 14px;
	padding: 7px 0;
}

.whitebox ul li {
	line-height: 1.55;
	padding: 1px 0;
}

.whitebox a,
.content > p a {
	color: var(--text);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.whitebox a:hover,
.whitebox a:focus-visible,
.content > p a:hover,
.content > p a:focus-visible {
	background-color: var(--blue);
	color: white;
	text-decoration: none;
	padding: 0 3px;
	outline: none;
}

.bold, b, strong {
	font-weight: 700;
}

.italic, em, i {
	font-style: italic;
}

/* REFERENZEN GRID */

.referenzen {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-top: 13px;
	max-width: 100%;
}

.referenzen > * {
	display: block;
	line-height: 0;
	background: white;
	border: 1px solid #f3f3f3;
	transition: transform 0.2s ease;
}

.referenzen a:hover,
.referenzen a:focus-visible {
	outline: none;
	transform: scale(1.10);
	position: relative;
	z-index: 1;
}

.referenzen img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 186 / 116;
	object-fit: contain;
	background: white;
}

/* KEY POINTS — 3 column grid (intro spans 2 of these) */

.intro-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 14px;
}

.intro-row > * {
	max-width: none;
	margin-bottom: 0;
}

.intro-row > :first-child {
	grid-column: span 2;
}

.key-points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 0 0 10px;
}

.key-point {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.key-point h2 {
	background: white;
	border: 1px solid var(--border-light);
	color: var(--blue);
	text-transform: uppercase;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.key-point h2 svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	stroke: currentColor;
}

.key-point p,
.key-point ul {
	background: white;
	border: 1px solid var(--border-light);
	color: var(--text);
	line-height: 1.55;
	padding: 10px 14px;
	margin: 0;
	flex-grow: 1;
}

.more-link {
	display: block;
	width: fit-content;
	margin-top: 12px;
	color: var(--blue);
	text-transform: uppercase;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.3px;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.more-link:hover,
.more-link:focus-visible {
	background-color: var(--blue);
	color: white;
	padding: 0 3px;
	outline: none;
}

.key-point ul {
	list-style-image: url(/images/li.jpg);
	padding-left: 28px;
}

.key-point ul li {
	line-height: 1.55;
	padding: 1px 0;
}

/* MAP */

.map-embed {
	max-width: var(--box-max);
	width: 100%;
	aspect-ratio: 5 / 3;
	border: 1px solid var(--blue);
	margin-top: 10px;
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* FOOTER SPACER */

.footer-spacer {
	height: 40px;
}

/* MOBILE */

@media (max-width: 768px) {
	.container {
		padding: 0 14px;
	}

	.site-header {
		margin-top: 20px;
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 14px;
	}

	.main-nav ul {
		gap: 6px;
		width: 100%;
	}

	.main-nav a {
		padding: 8px 16px;
	}

	.content h1 {
		max-width: 100%;
		font-size: 14px;
		line-height: 1.35;
	}

	.whitebox,
	.content > p {
		max-width: 100%;
	}

	.referenzen {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.key-points,
	.intro-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.intro-row > :first-child {
		grid-column: auto;
	}

	.map-embed {
		max-width: 100%;
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 400px) {
	.referenzen {
		grid-template-columns: repeat(2, 1fr);
	}
}
