@charset "utf-8";
/* CSS Document */

/* Allgemeines */

html, body {
	height: 100%;
	}
body {
	margin: 0;
	padding: 0;
	background: url(bilder/hintergrund.gif);
	font-family: 'CarlitoRegular', Helvetica, sans-serif;
	font-size: 1.1em;
	line-height: 1.4;
	color: #000;
	hyphens: auto;
	word-wrap: break-word;
	overflow-y: scroll;
	}
@font-face {
	 font-family: 'CarlitoRegular';
	 src: url('fonts/carlito/Carlito-Regular.ttf') format('truetype');
	 font-weight: normal;
}
@font-face {
	 font-family: 'CarlitoBold';
	 src: url('fonts/carlito/Carlito-Bold.ttf') format('truetype');
	 font-weight: bold;
}
@font-face {
	 font-family: 'CarlitoItalic';
	 src: url('fonts/carlito/Carlito-Italic.ttf') format('truetype');
	 font-style: italic;
}
@font-face {
	 font-family: 'Kavivanar';
	 src: url('fonts/kavivanar/Kavivanar-Regular.ttf') format('truetype');
	 font-weight: cursive;
}
ul, li {
	margin: 0;
	padding: 0;
	list-style: none;
	}
a {
	color: #000;
	text-decoration: none;
	}
main a, footer a {
	text-decoration: underline;
	}		
a:hover {
	color: #23685A;
	}
a.active {
	color: #23685A;
	}
p {
	margin: 0.6em 0;	
	}
h1 {
	margin-top: 0;
	font-size: 1.8em;
	font-weight: normal;
	max-width: 100%;
	}
.nur_schmal {
	display: none;
	}		
h2 {
	font-family: 'Carlito-Italic', Helvetica, sans-serif;
	font-size: 1.4em;
	font-weight: normal;
	font-style: italic;
	margin-top: 1.0em;
	}
h3 {
	font-size: 1.4em;
	font-weight: normal;
	margin-top: 0;
	}
h4 {
	font-size: 1.1em;
	margin: 1.0em 0 0.6em 0;
	}
.unterbild {
	font-family: 'Carlito-Italic', Helvetica, sans-serif;
	font-size: 0.8em;
	font-weight: normal;
	font-style: italic;
	margin: 0.2em 0 0 0
}
.enum {
	margin-left: 0.8em;
	text-indent: -0.8em;	
}
.enum2 {
	margin: 0 0 0 0.8em;
	text-indent: -0.8em;	
}
.schließen {
	display: inline-block;
	position: absolute;
	right: 0;
	cursor: pointer;
	padding: 4px;
	background-color: rgba(255, 255, 255, 0.6);
}
.infobox {
	display: none;
	position: fixed;
	top: 2%;
	left: 50%;
	transform: translate(-50%, 0);
	z-index: 12;
	width: 80%;
	min-width: 254px;
	max-width: 1200px;
	height: 85%;
	padding: 4%;
	overflow: auto;
	background-color: #FFF;
	border: 1px solid #000;
	box-shadow: 0 25px 50px 0 #333;
}
.infobox p img {
	width: 100%; 
	max-width: 370px; 
	height: auto; 
	box-shadow: 0 1px 2px 0 #777;
}

/* Wrapper */

#content {
	min-height: 100%;
	width: 80%;
	min-width: 300px;
	max-width: 1200px;
	margin: auto;
	background: #F8FCF8;
	box-shadow: 0 2px 10px 0 #000;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	}
header {
	display: flex;
	flex-shrink: 0;
	background-color: #FFF;
	align-items: center;
	justify-content: center;
	}
header a {
	display: flex;
	align-items: center;
	}
header img {
	width: 100%;
	height: auto;
	}
header.breit {
	display: flex;
}
header.klein {
	display: none;
}
		
/* Menü oben */

nav {
	width: 96%;
	padding: 0 2%;
	margin-top: -4px;
	background-color: #EBF5EB;
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
	flex-shrink: 0;
	}	
nav.breit {
	display: block;
		}
nav ul {
	display: flex;
    justify-content: space-between;
	align-items: center;
	}
nav li {
	display: block;
	width: 16.66%;
	text-align: center; 
	}	
nav a {
	display: block;
	font-size: 1.1em;
	border-right: 2px solid #FFF;
	padding: 4% 0;
	}
nav a:hover {
	background-color: #F8FCF8;
	}	
nav a.active {
	background-color: #F8FCF8;
	}
nav.breit ul li {
	position: relative;
	}
.aufklapp {
	display: none;
	position: absolute;
	left: -1px;
	z-index: 12;
	width: 100%;
	padding-top: 6%;
	background-color: #EBF5EB;	
	box-shadow: 0 1px 0 1px #FFF, 0 3px 3px 0 #777;
	}	
nav.breit ul li:hover .aufklapp {
	display: inline;
	}	
.aufklapp li {
	width: 100%;
	min-height: 2.8em;
	}
.aufklapp a {
	border-right: none;
	margin-left: -1px;
	}
.wiea {
	display: block;
	font-size: 1.1em;
	border-right: 2px solid #FFF;
	padding: 4% 0;
}
.wiea:hover {
	color: #23685A;
	background-color: #F8FCF8;
}
.wiea.active {
	color: #23685A;
	background-color: #F8FCF8;
	}
	
/* Inhaltsbereich */
main {
	min-height: 600px;
	width: 100%;
	flex-grow: 1;
	flex-shrink: 0;
	/*overflow: auto;*/
}
main img {
	box-shadow: 0 1px 2px 0 #777;
	border: 1px solid #FFF;
}
article, section {
	width: 92%;
	padding: 4%;
	display: flex;
	flex-direction: column;
	overflow: auto;
}

/* Mitte */
#hinweis_js {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 98%;
	height: 98.7%;
	display: flex;
	text-align: center;
	align-items: center;
	justify-content: center;
	margin: 1% 1% 0 1%;
	background-color: #FFF;
}
.row {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: flex-start;
	justify-content: center;
	}
.wiea_mitte {
	text-decoration: underline;
	cursor: pointer;
	margin: 0.5em 0 2em 0;
	}
.wiea_mitte:hover {
	color: #23685A;
	}	
.referenz, .mitarbeiter {
	position: relative; 
	overflow: hidden;
	box-shadow: 0 1px 2px 0 #777;
}
.mitarbeiter {
	width: 15.66%;
	margin: 0.5%;
	padding-top: 15.66%;	 /* aspect-ratio 1:1, ausgehend von width in % (bei 6 Bildern plus margin 94% : 6 = 15.66%) */
}
#ma_01, #ma_02 {
	cursor: pointer;
	width: 32%;
	text-align: center; 
}
#ma_01 img, #ma_02 img {
	width: 80%;
	height: auto;
}
.referenz {
	width: 31.83%;
	padding-top: 23.87%;	/* aspect-ratio 4:3, ausgehend von width 31,83% */
	margin: 0.75%; 
	}
.referenz div, .mitarbeiter div {
	position: absolute; 
	top: 0; 
	left: 0; 
	bottom: 0; 
	right: 0; 
	text-align: center; 
	background-color: #EBF5EB;
}
.referenz a:hover {
	opacity: 0.6;
}
.referenz div img, .mitarbeiter div img {
	width: 100%;
	height: auto;	
}
.referenz div p, .mitarbeiter div p {
	position: absolute; 
	width: 100%;
	bottom: -2px;
	margin: 0;
	font-family: 'Kavivanar', cursive;
	letter-spacing: 0.05em;
	text-align: center;
	color: #FFF;
	background: rgba(0,0,0,0.3);
}
.referenz div p {
	opacity: 1.0;
	font-size: 1.2em;
	line-height: 1.2em;
	padding: 1px 0 2px 0;
}
.mitarbeiter div p {
	opacity: 0;
	transition: 0.7s;
	font-size: 0.9em;
	line-height: 1em;
	padding: 1px 0 3px 0;
}
.mitarbeiter:hover div p {
	opacity: 1.0;
}
.center {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: flex-start;
	justify-content: center;
}
.center_column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.center_column h1, .center_column h3, .center_column p {
	text-align: center;
}
.bild_neben_text {width: 28%;}
.bild_neben_text img {
	width: 100%; 
	height: auto;
}	
.text_neben_bild_rechts {
	width: 68%;
	padding-left: 4%;
}
.text_neben_bild_links {
	width: 68%;
	padding-right: 4%;
}
.comic {
	width: 100%;
}
.comic img {
	width: 100%;
	height: auto;
	box-shadow: none;
	border: none;
}
.ref_alt {
	display: flex;
	justify-content: center;
	max-width: 400px;
}
.ref_alt2 {
	display: flex;
	justify-content: space-between;
	margin: 10px 0 20px 0;
	width: 93%;
	max-width: 400px;
}
.ref_alt2 img {
	width: 120px;
}
.slider_referenz {
	width: 80%;
	margin: 1.2em auto;
}
.slider_referenz .nivo-nextNav {
    right: -1.5%;
}

/* Fußzeile */	

footer {
	flex-shrink: 0;
	width: 92%;
	border-top: 2px solid #000;
	background-color: #EBF5EB;
	padding: 0.5% 4%;
	}	
footer ul {
    display: flex;
	justify-content: space-between;
	align-items: center;
	}
footer ul li a {
    display: flex;
	align-items: center;
	}
footer img#fb {
	width: 1.8em;
	height: auto;
	}
footer img#in {
	width: 1.6em;
	height: auto;
	}	
footer span {
	display: block;
	padding: 3% 0;
	}
	
@media screen and (max-width: 1000px) {
.mitarbeiter div p {
	font-size: 0.7em;
}
.referenz div p {
	font-size: 1.0em;
	padding: 2px 0 4px 0;
	}
}

@media screen and (min-width: 841px) {		
#nav_button, nav.klein, nav.klein ul, nav.klein a  {
	display: none;
	}	
}
	
@media screen and (max-width: 840px) {
#content {
	width: 90%;
}
header.breit {
	display: none;
}
header.klein {
	display: flex;
}
nav.breit {
	display: none;
	}	
nav.klein {
	display: block;
	}
article {
	margin: 0;	
	padding: 4%;
	box-shadow: none;
	}
#nav_button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1% 4%;
	background-color: #EBF5EB;
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
	}
#nav_button a {
	display: flex;
	align-items: center;
	}
nav.klein {
	width: 100%;
	padding: 0;
	border-top: none;	
	}
nav.klein ul {
	display: block;
	}	
nav.klein ul li {
	width: 100%;
	}	
nav.klein ul li a {
	display: block;
	margin: 0;
	padding: 1% 4%;
	border-right: none;
	text-align: left;
	font-size: 1.2em;
	}
nav.klein .wiea {
	display: block;
	margin: 0;
	padding: 1% 4%;
	border-right: none;
	text-align: left;
	font-size: 1.2em;
	cursor: text;
	}
.nur_schmal {
	display: block;
	}	
.bild_neben_text {
	width: 60%; 
	margin: 0.6em;
	}
.bild_neben_text img {
	width: 100%; 
	height: auto;
	}	
.text_neben_bild_links, .text_neben_bild_rechts {
	width: 100%;
	padding: 0;
	}	
#ma_01, #ma_02 {
	width: 48%;
	margin: 1%;
}
.infobox {
	height: 91%;
	}
.infobox p img {
	max-width: 240px; 
	}
.referenz {
	width: 48%;
	padding-top: 36%;	/* aspect-ratio 4:3, ausgehend von 48% */
	margin: 1%;
	}
.mitarbeiter {
	width: 23%;
	margin: 1%;
	padding-top: 23%;	 /* aspect-ratio 1:1, ausgehend von width in % */
}
#ma_01 {
	width: 47%; 
	margin-right: 2%;
}
#ma_02 {
	width: 47%; 
	margin-left: 2%;
}
.ref_alt {
	max-width: 93%;
	}
.slider_referenz {
	width: 96%;
	}	
footer {
	padding: 2% 4% 2% 4%;	
	}
footer ul  {
	flex-direction: column;
}
footer ul li {
	width: 100%;
	text-align: center;
	}
footer a {
	flex-direction: column;
	padding: 1% 4%;
	font-size: 1.2em;
	}
footer img#fb {
	margin-bottom: 1%;
	}
footer span {
	padding: 2% 0;
	}
}

@media screen and (max-width: 600px) {
.referenz div p {
	font-size: 0.9em;
	line-height: 1em;
	}
}