/*###################################*/
/* Schriften */

@font-face {
	font-family: "biolinum";
	src: url(css/Lato/fonts/Lato-Regular.woff2) format("woff2"),
	     url(css/Lato/fonts/Lato-Regular.woff) format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "biolinum";
	src: url(css/Lato/fonts/Lato-Bold.woff2) format("woff2"),
	     url(css/Lato/fonts/Lato-Bold.woff) format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--schrift: "biolinum", "Lato", "Segoe UI", Arial, sans-serif;
	--akzent: #2F6698;
	--akzent-dunkel: #194467;
	--text: #333333;
}

body {
	margin: 0;
	background-image: linear-gradient(rgba(240,240,240,1), rgba(253,253,253,1));
}

/* Ankersprünge unter dem sticky Header */
[id] {
	scroll-margin-top: 6rem;
}

/*###################################*/
/* Sprungmarke */

.skiplink {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #FFFFFF;
	color: #1A1A1A;
	font-family: var(--schrift);
	padding: 12px 20px;
	z-index: 2000;
}
.skiplink:focus {
	left: 0;
}

a:focus-visible,
.skiplink:focus {
	outline: 3px solid #B35C00;
	outline-offset: 2px;
}
#main-text:focus {
	outline: none;
}

/*###################################*/
/* Kopf */

#header {
	position: sticky;
	top: 0px;
	display: flex;
	flex-flow: row wrap;
	width: 100%;
	margin-top: 0px;
	background-color: var(--akzent-dunkel);
	box-shadow: 2px 2px 3px 0px rgba(100, 100, 100, 0.5);
	z-index: 1000;
}
#titel {
	min-width: 300px;
	height: auto;
	display: flex;
	flex: 2 1 0%;
	flex-direction: row;
	align-items: center;
	padding-left: 2.5em;
	padding-right: 4em;
	font-family: var(--schrift);
	font-size: 1em;
	color: #FFFFFF;
	padding-top: 1.4em;
	padding-bottom: 1.4em;
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
#titel a {
	color: inherit;
	text-decoration: none;
}

#lang {
	min-width: 160px;
	justify-content: center;
	align-items: center;
	display: flex;
	gap: 0.7em;
	flex: 1 1 0%;
	padding-right: 2.5em;
}

.sprache {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5em;
	height: 2.5em;
	border-radius: 50%;
	box-sizing: border-box;
	font-family: var(--schrift);
	font-size: 1.05em;
	letter-spacing: 0.03em;
	text-decoration: none;
	border: 1.5px solid rgba(255,255,255,0.65);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sprache-aktiv {
	background-color: #FFFFFF;
	color: var(--akzent-dunkel);
	font-weight: 700;
	border-color: #FFFFFF;
	cursor: default;
}

.sprache-inaktiv {
	background-color: transparent;
	color: #FFFFFF;
	font-weight: 400;
}
.sprache-inaktiv:hover,
.sprache-inaktiv:focus-visible {
	background-color: rgba(255,255,255,0.2);
	border-color: #FFFFFF;
}

/*###################################*/
/* Fuß */

#footer {
	margin-top: 60px;
	border-top: 1px solid #CCC;
	justify-content: center;
	padding-top: 30px;
	padding-bottom: 30px;
	width: 100%;
	display: flex;
	background-color: #333;
}
#footer-container {
	width: 100%;
	max-width: 1090px;
	display: flex;
	flex-flow: row wrap;
}
.footer-item {
	justify-content: space-around;
	flex: 1 1 0%;
	flex-direction: row;
	min-width: 220px;
	padding-top: 30px;
	padding-bottom: 30px;
	font-family: var(--schrift);
	font-size: 1em;
	line-height: 1.5em;
	color: #E6E6E6;
	padding-left: 30px;
	padding-right: 30px;
	border-left: 1px solid #808080;
	font-weight: normal;
}
.footer-item ul {
	font-family: var(--schrift);
	font-size: 1em;
	line-height: 1.5em;
}
.footer-item li {
	text-decoration: none;
	margin-top: 10px;
	list-style-position: outside;
	text-align: left;
	margin-left: -20px;
	color: #E6E6E6;
}
.footer-item a {
	color: #E6E6E6;
}

/*###################################*/
/* Navigation (für spätere Ausbaustufen) */

#nav-gruppe {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-bottom: 54px;
	border-top: 1px dashed #999;
	border-bottom: 1px dashed #999;
}
#nav-container {
	width: 100%;
	max-width: 1090px;
	display: flex;
	flex-flow: row wrap;
}
.nav-item {
	justify-content: space-around;
	flex-direction: row;
	font-family: var(--schrift);
	padding: 6px 12px;
	margin-left: 6px;
	font-size: 1.1em;
	color: #FFFFFF;
	text-decoration: none;
	background-color: #5C7186;
	border: 1px solid #2D3D4D;
	box-shadow: 1px 1px 5px 3px rgba(200, 200, 200, 0.5);
}
.nav-item a {
	color: #FFF;
	text-decoration: none;
}

/*###################################*/
/* Inhalt */

#main-gruppe {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	width: 100%;
	margin-top: 20px;
}
#main-container {
	max-width: 1090px;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}
#main-text {
	max-width: 680px;
	min-width: 220px;
	flex: 3 1 0%;
	padding-left: 4em;
	padding-right: 4em;
	padding-top: 2em;
	padding-bottom: 5em;
}

h1 {
	font-family: var(--schrift);
	font-size: 2.4em;
	font-weight: 700;
	line-height: 1.15em;
	color: #262626;
	margin-top: 40px;
	margin-bottom: 30px;
	padding-bottom: 0.6em;
}

h2 {
	font-family: var(--schrift);
	font-size: 1.8em;
	font-stretch: condensed;
	font-weight: 400;
	line-height: 1.5em;
	color: #6B6666;
	margin-top: 70px;
	margin-bottom: 40px;
}

h1, h2 {
	position: relative;
}

h1::after,
h2::after {
	content: "";
	display: block;
	width: 100px;
	height: 3px;
	background-color: var(--akzent-dunkel);
	margin-top: 0.5em;
}

h3 {
	font-family: var(--schrift);
	font-size: 1.4em;
	font-weight: 400;
	line-height: 1.2em;
	color: #FFF;
	margin-top: 40px;
	margin-bottom: 40px;
	background-color: #1F6E8F;
	display: inline-block;
	padding: 10px;
	text-transform: uppercase;
}

/* Leistungsfelder: schlichte Zwischenüberschrift statt fettem Lead-in */
h3.leistung {
	display: block;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--akzent-dunkel);
	background: none;
	text-transform: none;
	padding: 0;
	margin: 2.6em 0 0.5em;
}
h3.leistung + p {
	margin-top: 0;
}

h3.gruppe {
	display: block;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--akzent-dunkel);
	background: none;
	text-transform: none;
	padding: 0;
	margin: 2em 0 0.6em;
}
	
h3.gruppe + ul {
	margin-top: 0;
}
	
p {
	font-family: var(--schrift);
	font-size: 1.1em;
	line-height: 1.6em;
	color: var(--text);
}

abbr[title] {
	text-decoration: underline dotted var(--akzent);
	text-underline-offset: 3px;
	cursor: help;
}

.leistungen {
	font-size: 1.4em;
	line-height: 1.6em;
	color: #555555;
	margin-bottom: 2.5em;
}

.initiale {
	font-size: 5em;
	line-height: 0.9em;
	float: left;
	padding-right: 10px;
	font-weight: bolder;
}

figure {
	margin: 0 0 3em 0;
}
.bild {
	height: auto;
	width: 140%;
	margin-left: -20%;
	padding: 3px;
	border: 1px solid #999;
	box-shadow: 2px 2px 3px 0px rgba(100, 100, 100, 0.5);
	box-sizing: border-box;
}
.kontaktbild {
	height: auto;
	padding: 3px;
	border: 1px solid #999;
	box-shadow: 2px 2px 3px 0px rgba(100, 100, 100, 0.5);
	max-width: 100%;
}
.bildunterschrift {
	font-family: var(--schrift);
	font-size: 0.9em;
	color: var(--text);
	line-height: 1.4em;
	margin-top: 0.5em;
	background-color: #E6E6E6;
	padding: 0.8em 1em;
}

.textlink {
	color: var(--akzent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Listen im Fließtext – bewusst NICHT .galerie */
#main-text > ul:not(.galerie) {
	font-family: var(--schrift);
	font-size: 1.1em;
	line-height: 1.5em;
	color: var(--text);
}
#main-text > ul:not(.galerie) li {
	margin-bottom: 1em;
}

/*###################################*/
/* Unternavigation (für spätere Ausbaustufen) */

#subnav-menue {
	margin-top: 8em;
	margin-left: -2em;
	position: relative;
	width: 4px;
	margin-bottom: 16em;
}
.subnav_aktiv,
.subnav {
	font-family: var(--schrift);
	font-size: 1.2em;
	color: #2D3D4D;
	padding: 14px 20px;
	border: 1px solid #CCC;
	margin-top: -1px;
	box-shadow: 2px 2px 3px 0px rgba(100, 100, 100, 0.5);
	display: inline-block;
}
.subnav_aktiv {
	background-color: #EFEFEF;
	border-left: none;
	margin-left: -1em;
}
.subnav {
	background-color: #E7E7E7;
	margin-left: -1px;
}
.subnav a {
	color: #2D3D4D;
}

/*###################################*/
/* Aktuelles */

#news_box {
	background-color: #E6EFF4;
	padding: 14px 30px;
	box-shadow: 2px 2px 3px 0px rgba(100, 100, 100, 0.5);
	border: 3px solid #FFF;
}
.logo_box {
	padding: 1px;
	float: left;
}

/*###################################*/
/* Kachelgalerie */

.galerie {
	list-style: none;
	margin: 0 0 3em -20%;
	padding: 0;
	width: 140%;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5em;
}
.galerie li {
	margin: 0;
	display: flex;
}

.kachel {
	display: flex;
	flex-direction: column;
	width: 100%;
	text-decoration: none;
	color: var(--text);
	background-color: #FFF;
	border: 1px solid #999;
	box-shadow: 2px 2px 3px 0 rgba(100,100,100,0.5);
}
.kachel:hover,
.kachel:focus-visible {
	border-color: var(--akzent);
}

.kachel img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	background-color: #EEE;
}

.kachel-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1em 1.4em 1.3em;
	font-family: var(--schrift);
	font-size: 1rem;
	line-height: 1.5;
	hyphens: auto;
	overflow-wrap: break-word;
}
.kachel-titel {
	display: block;
	font-size: 1.1rem;
	line-height: 1.35;
	color: var(--akzent);
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-bottom: 0.6em;
}
.kachel-meta {
	display: block;
	margin-top: auto;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #4A4A4A;
}

.galerie-nachweis {
	font-size: 0.9em;
	line-height: 1.5em;
	color: #4A4A4A;
	margin: -1.5em 0 3em 0;
}

/*###################################*/
/* Kleine Bildschirme */

@media (max-width: 900px) {
	#main-text {
		padding-left: 1.5em;
		padding-right: 1.5em;
	}
	.bild {
		width: 100%;
		margin-left: 0;
	}
	#titel {
		padding-left: 1.2em;
		padding-right: 1.2em;
	}
	h1 {
		font-size: 1.9em;
	}
	.leistungen {
		font-size: 1.2em;
	}
	.footer-item {
		border-left: none;
		border-top: 1px solid #808080;
	}
	.galerie {
		width: 100%;
		margin-left: 0;
	}
}

/*###################################*/
/* Kartenvergrößerung (reines CSS, kein JavaScript) */

.karten-link {
	display: block;
}
.karten-vorschau {
	cursor: zoom-in;
}

.karten-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 3000;
	background: rgba(20, 20, 20, 0.92);
	align-items: center;
	justify-content: center;
	padding: 2em;
	box-sizing: border-box;
}
.karten-overlay:target {
	display: flex;
}
.karten-overlay img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	box-shadow: 2px 2px 12px 0 rgba(0,0,0,0.6);
}
.karten-schliessen {
	position: absolute;
	top: 1.2em;
	right: 1.5em;
	font-family: var(--schrift);
	font-size: 1.1em;
	color: #FFFFFF;
	background: #333;
	padding: 0.5em 0.9em;
	text-decoration: none;
	border: 1px solid #999;
}
.karten-schliessen:hover,
.karten-schliessen:focus-visible {
	background: var(--akzent-dunkel);
}

@media (prefers-reduced-motion: no-preference) {
	.karten-overlay img {
		transition: opacity 0.15s ease;
	}
}
