@charset "utf-8";

/* Grundlayout */
* {
	box-sizing: border-box;
}

html {
	background: #fff;
}

body {
	margin: 0;
	background: #fff;
	color: #2F343A;
	font-family: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.45;
	text-align: left;
}

img {
	max-width: 100%;
	height: auto;
}

#wrapper,
#main {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	background: #fff;
}

/* Kopfbereich und Navigation */
.site-header {
	min-height: 200px;
	display: flex;
	align-items: flex-end;
	gap: 30px;
	padding: 20px 20px 15px;
	background: #fff;
}

.site-logo {
	display: block;
	flex: 0 0 187px;
	line-height: 0;
}

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

.main-nav {
	margin-left: auto;
	padding-bottom: 8px;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li {
	margin: 0;
	padding: 0;
}

.main-nav li::before {
	content: none;
}

.main-nav a {
	font-size: 22px;
	line-height: 1.2;
	white-space: nowrap;
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
	color: #0078D4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Startseite */
.startseite-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
}

.startseite-links img {
	display: block;
	width: 650px;
	height: 600px;
	object-fit: cover;
}

.startseite-rechts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 300px);
}

.startseite-rechts a {
	display: block;
	line-height: 0;
}

.startseite-rechts img {
	display: block;
	width: 325px;
	height: 300px;
	object-fit: cover;
}

/* Headerbilder */
.inhaltsseitenheaderbild {
	width: 100%;
	background: #fff;
	line-height: 0;
	overflow: hidden;
}

.inhaltsseitenheaderbild img {
	display: block;
	width: 100%;
	height: auto;
}

/* Inhaltsseiten */
.content-layout {
	display: grid;
	grid-template-columns: 50px minmax(0, 905px) 295px 50px;
	align-items: start;
	width: 100%;
}

.content-main {
	grid-column: 2;
	min-width: 0;
}

#contentlinks {
	width: 790px;
	max-width: 100%;
	padding: 0 0 25px;
	text-align: left;
}

.sidebar {
	grid-column: 3;
	width: 275px;
	min-height: 540px;
	margin: 0;
	padding: 18px 20px 22px;
	border: 1px solid #9AA8B0;
	background: #fff;
	color: #2F343A;
}

.sidebar h2 {
	margin-top: 0;
}

.sidebar h2 + p {
	margin-top: -2px;
}

.sidebar-portrait {
	display: block;
	width: 210px;
	height: 210px;
	margin: 28px auto 30px;
}

.sidebar address {
	margin: 0;
	font-style: normal;
	line-height: 1.5;
}

.kurs {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 28px;
}

.kurs > a {
	flex: 0 0 200px;
	line-height: 0;
}

.kurs img {
	display: block;
	width: 200px;
	height: 200px;
	object-fit: cover;
}

.kurstext {
	min-width: 0;
}

.kurstext h3 {
	margin-top: 0;
}

#contentlinks h2 img {
	vertical-align: middle;
	margin-right: 8px;
}

/* Trenner */
.trenner {
	width: 200px;
	height: 1px;
	margin: 28px auto;
	border: 0;
	background: #C8D0D5;
}

/* Fußzeile */
.site-footer {
	clear: both;
	width: 100%;
	padding: 20px 20px 16px;
	background: #fff;
	text-align: center;
}

.site-footer .fusszeile1,
.site-footer .fusszeile2 {
	margin: 0;
}

.site-footer .fusszeile2 {
	margin-top: 6px;
}

.site-footer .fusszeile2 span {
	margin: 0 14px;
	color: #7C8D97;
}

/* Barrierefreiheit */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

a:focus-visible {
	outline: 3px solid #0078D4;
	outline-offset: 3px;
}

/* Responsive – Desktop bleibt unverändert, kleinere Geräte werden gestapelt */
@media (max-width: 1000px) {
	.site-header {
		min-height: 0;
		align-items: center;
		padding: 18px 20px;
	}

	.site-logo {
		flex-basis: 150px;
	}

	.site-logo img {
		width: 150px;
		height: auto;
	}

	.main-nav {
		padding-bottom: 0;
	}

	.main-nav ul {
		gap: 10px 18px;
	}

	.main-nav a {
		font-size: 18px;
	}

	.content-layout {
		display: block;
		padding: 0 24px;
	}

	#contentlinks {
		width: 100%;
	}

	.sidebar {
		width: 100%;
		min-height: 0;
		margin: 24px 0 0;
	}

	.startseite-grid {
		grid-template-columns: 1fr;
	}

	.startseite-links img {
		width: 100%;
		height: auto;
	}

	.startseite-rechts {
		grid-template-rows: auto;
	}

	.startseite-rechts img {
		width: 100%;
		height: auto;
	}
}

@media (max-width: 680px) {
	body {
		font-size: 16px;
	}

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

	.site-logo {
		flex-basis: auto;
	}

	.main-nav {
		width: 100%;
	}

	.main-nav ul {
		justify-content: flex-start;
		gap: 10px 16px;
	}

	.main-nav a {
		font-size: 17px;
	}

	.startseite-rechts {
		grid-template-columns: 1fr;
	}

	.kurs {
		flex-direction: column;
	}

	.kurs > a {
		flex-basis: auto;
	}

	.content-layout {
		padding: 0 18px;
	}

	.site-footer .fusszeile2 span {
		display: none;
	}

	.site-footer .fusszeile2 a {
		display: block;
		margin: 5px 0;
	}
}
