/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #000;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 300;
}

::-moz-selection {
    background: #11749e;
    color: #fff;
    text-shadow: none;
}

::selection {
    background: #11749e;
    color: #fff;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.flexslider .caption-align-left.caption-wrapper {
   bottom: 80vh !important;
}

.ce-textpic.ce-left.ce-intext img {
   padding: 20px;
}


.ce-textpic.ce-left.ce-intext p {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

h1, h2, h3, h4, h5 {
    font-weight: 300;
}

h1, h2 {
    font-size: 50px;
    text-transform: uppercase;
    color: #cecece;
    text-align: center;
    font-weight: 500;
    margin: 60px 0 35px;
    clear: both;
}

h3 {
    font-size: 28px;
    color: #222;
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
    margin-bottom: 60px;
    line-height: 35px;
}

h4 {
    font-size: 22px;
    margin: 15px 0 30px;
}

#sitemap h4 {
    font-size: 16px;
    margin: 0 0 15px;
    text-transform: uppercase;
}


/* ========================================================================== */


body {
    font-family: 'Open Sans', sans-serif;
    color: #000;
    font-size: 14px;
    line-height: 24px;
    font-weight: 300;
}

a {
    color: #11749e;
    text-decoration: none;
    font-weight: 400;
}

a:hover { text-decoration: underline; }

.wrapper {
    margin: 0 5%;
    position: relative;
}



/* Clearing floats */
.wrapper:after {
	clear: both;
}
.wrapper:before,
.wrapper:after {
	display: table;
	content: "";
}


.header-container {
    background: url(../img/header-01.jpg) no-repeat center center;
    background-size: cover;
    height: 290px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1;
}

.logo {
    margin: 10px 0;
}

.top-nav {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    top: 0;
    width: 100%;
    z-index: 9999;
    position: fixed;

	-webkit-transition: background 0.2s;
	-moz-transition: background 0.2s;
	-ms-transition: background 0.2s;
	-o-transition: background 0.2s;
	transition: background 0.2s;
}

.top-nav::before {
	width: 100%;
	height: 85px;
	content: "";
	display: block;
	position: fixed;
	background: -moz-linear-gradient(top,  rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
	background: -webkit-linear-gradient(top,  rgba(0,0,0,0.85) 0%,rgba(0,0,0,0) 100%);
	background: linear-gradient(to bottom,  rgba(0,0,0,0.85) 0%,rgba(0,0,0,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );

}

.top-nav.mini { background: rgba(0,0,0,0.65); }


.main-container {
    margin-top: 290px;
    width: 100%;
    z-index: 1;
    background: #fff;
}

.info-container .wrapper {
	width: 850px;
	width: 960px;
	position: relative;
	font-weight: 300;
}

.info-container {
    background: #11749e;
    min-height: 200px;
    padding: 20px 0 45px;
    color: #fff;
}

.info-container ::-moz-selection {
    background: #fff;
    color: #11749e;
    text-shadow: none;
}

.info-container ::selection {
    background: #fff;
    color: #11749e;
    text-shadow: none;
}

.info-container a {
    color: #fff;
    font-weight: 300;
    text-decoration: none;
}

.info-container h2 { color: #5993b2; }
.info-container h3 { color: #fff; }

.border-top h2 { margin: 10px 0 35px; }

.border-top { padding: 20px 0 0; }

.border-top .wrapper::before {
    content: "";
    width: 1085px;
    height: 40px;
    position: absolute;
    top: -60px;
    left: -40px;
    background: #fff;
}

.border-bottom { padding: 90px 0 45px; }
.border-bottom .wrapper::before {
    content: "";
    width: 1085px;
    height: 40px;
    position: absolute;
    top: -90px;
    left: -63px;
    background: #fff;
}


.tel, .mail {
    font-size: 26px;
    height: 28px;
    color: #11749e;
    padding-left: 35px;
    margin-bottom: -4px;
    display: block;
}

.mail {
    background: url(../img/mail-icon-blau.png) left center no-repeat;
    background-size: 22px;
    font-weight: 300;
}

.main-container .mail {
    font-size: 16px;
    background-size: 18px;
    padding-left: 25px;
    display: inline;
    margin: 0;

}

.home .tel {
    background: url(../img/tel-icon-blau.png) left center no-repeat;
}

.info-container .tel {
    background: url(../img/tel-icon.png) left center no-repeat;
    color: white;
    margin-bottom: 15px;
}

.info-container .mail {
    background: url(../img/mail-icon.png) left center no-repeat;
    background-size: 22px;
    color: white;
}


.widget-container {
    background: #222;
    height: 150px;
    padding: 35px 0 45px;
    color: #fff;
}

#sitemap ul,
#sitemap li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sitemap > li {
    float: left;
    width: 230px;
}

#sitemap li li {
    list-style: square inside;
    color: #8d8d8d;
}

#sitemap li a { font-weight: 300; }

#sitemap li li a { color: #8d8d8d; }




.footer-container{
    background: #181818;
}

.widget-container .wrapper a,
.footer-container .wrapper a {
    color: #fff;
}

.widget-container .wrapper a:hover,
.footer-container .wrapper a:hover {
    text-decoration: underline;
}

a#scroll-to-top { float: right; }

a#scroll-to-top:after {
    content: "▲";
    margin-left: 10px;
    font-size: 8px;
    position: relative;
    top: -2px;
}



/* ==============
    MOBILE: Menu
   ============== */

nav {
    float: right;
    width: 760px;
}

nav, nav * { font-weight: 300 !important; }

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    width: 100%;
}

nav ul li {
    position: relative;
    float: left;
}

li.lang img { margin-left: 5px; }

nav > ul > li > a {
    display: block;
    line-height: 75px;
    text-decoration: none;
    color: #fff;
    margin: 0 0 0 15px;
    padding: 5px 10px 0;

    font-size: 18px;
    font-weight: 300;
    border-bottom: 5px solid transparent;

    float: left;
    margin-bottom: 0;
}

nav ul ul {
    position: absolute;
    top: 80px;
    left: 15px;
    border-top: 1px solid transparent;
    padding: 5px 0;
    font-size: 14px;
    display: none;
}

nav ul ul li {
    clear: both;
    background: rgba(17,116,158,0.85);
    width: 190px;
}

nav ul ul a {
    color: #fff;
    padding: 5px 15px;
    width: 100%;
    display: block;
}

nav > ul > li:hover > ul { display: block; }

nav ul ul a:hover {
	font-weight: 600 !important;
	text-decoration: none;
}

nav > ul > li:hover > a {
    border-bottom: 5px solid #11749e;
    text-decoration: none;
    color: #ccc;
}



nav li.lang > a {
    font-size: 14px;
    line-height: 8px;
    margin-top: 33px;
    padding-left: 0;
}

nav li.lang > a:before {
    border-left: 1px solid #fff;
    content: "";
    margin-right: 35px;
}

/* kde, 160516: simplify language selection
nav li.lang > a:after {
    content: "▼";
    margin-left: 10px;
    font-size: 8px;
    position: relative;
    top: -1px;
}
*/
nav li.lang:hover > a { border-bottom: 5px solid transparent; }

/* kde, 160516: simplify language selection
nav li.lang ul {
    background: rgba(0,0,0,0.8);
    top: 50px;
    left: 45px;
    font-size: 12px;
    padding: 5px 0;
}

nav li.lang li,
nav li.lang:hover a{ width: 100%; }
*/




/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0 0;
    padding: 1px 0 0;
}

.main aside {
    color: white;
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: white;
    line-height: 55px;
    height: 56px;
    font-size: 12px;
    text-transform: uppercase;
}

/* ===============
    CONTENT
   =============== */


.grau {
    background: #f3f3f3;
    padding: 25px 20px;
    margin-bottom: 100px;
    clear: both;
}

.center { text-align: center; }

div.blogteaser,
.quarter {
    width: 210px;
    margin: 0 40px 40px 0;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    float: left;
}

div.blogteaser:nth-of-type(4n),
.quarter:nth-of-type(4n) { margin-right: 0; }

.title {
    color: #11749e;
    font-size: 14px;
    text-transform: capitalize;
    display: block;
    margin: 25px 0 10px;
    font-weight: 400;
}

.info-container .title { color: #fff; }

.icon {
	background: #2e85aa;
	width: 100px;
	height: 100px;
	border-radius: 100px;
	text-align: center;
/* 	font-size: 28px; */
	line-height: 100px;
	margin: 0 auto;
}

.icon img { height: 36px; }

.left {
    width: 42%;
    float: left;
}

.right {
    width: 42%;
    float: right;
}

.info-container ul,
.main-container ul {
	list-style: none;
}

.info-container ul li::before,
.main-container ul li::before {
	content: "■  ";
	color: #11749e;
}

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





/* ==========================================================================
   Media Queries
   ========================================================================== */



/* ===============
    FULLWIDTH
   =============== */

/*@media only screen and (min-width: 1140px) {*/
    /* 1140px - 10% for margins */

    .wrapper {
        width: 960px;
        margin: 0 auto;
    }

    img.burger,
    img.cross {
    	display: none;
	}

/*}*/




/* ============
    MEDIUM
   ============ */

@media only screen and (max-width: 980px) {
    /* 768px - 10% for margins */

	.wrapper,
	.info-container .wrapper {
        width: 600px;
        margin: 0 auto;
	}

	nav { width: 600px; }

	nav > ul > li > a { line-height: 50px; }

	li.lang {
		position: absolute;
		right: 0;
		top: 5px;
	}

	nav li.lang > a:before { border: 0; }

	nav ul ul { top: 55px; }

	.slidercontent { margin-top: 180px; }

	.main-container .halb-rechts {
		font-size: 13px;
		line-height: 20px;
		padding: 15px 30px;
	}

	.home .tel,
	.home .mail {
		background-size: 16px;
		padding-left: 22px;
		font-size: 17px;
		height: 22px;
		line-height: 28px;
		margin-bottom: 15px;
	}

	.info-container .tel { background-size: 18px; }
	.info-container .mail { padding-left: 32px; }

	.info-container aside { font-size: 12px; }

	.border-top .wrapper::before,
	.border-bottom .wrapper::before { display: none; }

	.border-top { padding: 50px 0 0; }
	.border-bottom { padding: 30px 0 45px; }

	h2 {
		font-size: 40px;
		margin: 40px 0 15px;
	}
	h3 {
		margin-bottom: 30px;
		font-size: 22px;
	}
	h4 { font-size: 20px; }

	div.blogteaser,
	.quarter {
	    width: 280px;
	    margin: 0 40px 40px 0;
	    text-align: center;
	    font-size: 12px;
	    line-height: 18px;
	    float: left;
	}

	.quarter { height: 220px; }

	div.blogteaser:nth-of-type(2n),
	.quarter:nth-of-type(2n) { margin-right: 0; }

	.widget-container {
		height: auto;
		padding: 35px 0 0;
	}

	#sitemap > li {
		width: 280px;
		margin-bottom: 50px;
	}

	body .box-img,
	body .ce-left .ce-media *,
	body .ce-right .ce-media * { max-width: 300px; }

}




/* ====================
    SMALL
   ==================== */

@media only screen and (max-width: 620px) {
    /* 480px - 10% for margins */

	html, body {
		overflow-x: hidden;
		width: 100%;
	}

     .wrapper {
        width: 100%;
        margin: 0 auto;
    }

    body .info-container .wrapper {
    	width: 80%;
    	padding: 25px;
    }

    .left, .right {
    	float: none;
    	clear: both;
    	margin-bottom: 35px;
    	width: 100%;
    }

    body .ce-column,
    body .ce-gallery {
    	clear: both;
    	width: 100%;
    }

	body .ce-gallery *,
	.box-img * {
    	width: 100%;
    	height: auto;
    	min-width: 100%;
    	max-width: 100%;
    	margin-bottom: 15px;
	}

	body .box-img,
	body .ce-left .ce-media *,
	body .ce-right .ce-media * {
		max-width: none;
		height: auto;
	}

	div .ce-bodytext { padding: 20px; }

	body .halb-links,
	body .halb-rechts {
		float: none;
		clear: both;
		width: 100%;
		height: auto;
		margin-bottom: 0;
	}

	h1 {
		font-size: 40px;
		margin: 40px 0 0px;
		line-height: 40px;
	}

	h2 {
		font-size: 29px;
		margin: 10px 0 15px;
	}

	.border-bottom { padding: 0; }

	.home .tel,
	.home .mail,
	.info-container .tel,
	.info-container .mail {
		background-size: 20px;
		padding-left: 32px;
		font-size: 20px;
		height: 28px;
		line-height: 28px;
		margin-bottom: 15px;
	}


	div .ce-textpic { margin-bottom: 35px; }

	.footer-container footer {
		height: auto;
		width: 90%;
		line-height: 25px;
		padding: 10px 0;
	}

	div #sitemap > li { margin-bottom: 25px; }


	div.blogteaser,
	.quarter {
	    width: 100%;
	    margin: auto;
	    font-size: 12px;
	    line-height: 18px;
	    float: none;
	    clear: both;
	}

	.quarter {
		height: 250px;
		margin: 0;
	}

	div.blogteaser:nth-of-type(2n),
	.quarter:nth-of-type(2n) { margin-right: 30px; }

	.info-container { padding: 10px 0 0px; }

	.widget-container {
		height: auto;
		padding: 35px 0 0;
	}

	#sitemap > li {
		width: 100%;
		margin-bottom: 50px;
	}

	.logo { margin-left: 15px; }

	body img.burger {
    	display: block;
    	position: fixed;
    	top: 22px;
    	right: 15px;
    	cursor: pointer;
    	z-index: 5;
	}

	body img.cross {
    	display: block;
    	position: absolute;
    	top: 20px;
    	right: 15px;
    	cursor: pointer;
    	z-index: 15;
	}

	nav {
		position: fixed;
		width: 100%;
		min-height: 100%;
		background: #000;
		top: 0;
		left: 0;
		left: -100%;
		z-index: 10;
	}

	body nav ul li {
		clear: both;
		float: none;
	}

	body nav > ul > li > a { line-height: 30px; }


	body nav ul li a {
		width: 90%;
		position: relative;
		z-index: 15;
	}


	body li.lang {
		position: relative;
		padding: 0;
	}

	body nav li.lang > a { margin-top: 10px; }

	nav ul ul {
		position: relative;
		padding: 0;
		top: 0;
	}

	nav ul ul li {
		background: transparent;
		margin-left: 15px;
		width: 100%;
	}

	body nav li.lang > a:before { margin-right: 10px; }

	nav > ul > li > ul { display: block; }


	body.home .wsflexslider .caption-title { font-size: 28px; }

/*	div.flexslider { max-height: 550px; }*/

	body.home .wsflexslider .caption-title,
	body.home .wsflexslider .caption-body { width: 94%; }

	.wsflexslider .caption-text {
		width: 300px !important;
		padding-top: 0 !important;
	}

	div.scrollDown {
		display: none;
	}
/*	body .slidercontent { margin-top:75px; } */

	/* Teamgeist */
        body#page17 .ce-gallery {
                width: 35%;
                margin-right: 10px !important;
        }

        body#page17 .ce-bodytext.ce-left {
                width: 52%;
                float: right;
        }

        body#page17 .ce-bodytext.ce-right {
                width: 52%;
                float: left;
        }
}

@media only screen and (max-height: 650px) {
	.wsflexslider .caption-text {
		top: 20% !important;
	}
}






/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}






/* Home */

body.home .header-container,
body.home .header-container * {
	font-weight: 300 !important;
	bottom: 0;
}


/* Slider */


body.home .header-container .flexslider {
	border: 0;
	position: relative;
}

.home .main-container { margin-top: 0; }

.home .wsflexslider .caption-text {
	background: transparent;
}

.home .wsflexslider .caption-title,
.home .wsflexslider .caption-body {
	background: rgba(0,0,0,0.75);
	padding: 10px 15px;
	color: #fff;
	margin-bottom: 5px;
	width: 550px;
}

.home .wsflexslider .caption-title {
	font-size: 28px;
	line-height: 35px;
}

.home .wsflexslider .caption-wrapper.caption-align-right .caption-text { right: 250px; }

.home .wsflexslider p { margin: 0; padding: 0; }

.home .flex-control-nav {
	z-index: 999;
	bottom: 0;
}

div.scrollDown {
	height: 75px;
        margin-bottom:75px;
/*        background-color: red; */
	position: inherit;
	width: 100%;
	z-index: 20;
}

div.scrollDown a {
	height: 100%;
	background: url(../img/scroll.png) no-repeat center bottom;
	display: block;
	text-align: center;
	text-decoration: none;
	color: #fff;
}

div#welcome {
	height: 85px;
}

.home .flex-control-paging li a {
	background: transparent;
	border: 2px solid #fff;
	border-radius: 100px;
	width: 8px;
	height: 8px;
}
.home .flex-control-paging li a.flex-active,
.home .flex-control-paging li a:hover { background: #fff; }

.flex-control-nav li { margin: 0 4px; }

.caption-body .internal-link::after {
	content: " ›";
}

.wsflexslider .caption-title { font-weight: bold; }
.wsflexslider .caption-body p { margin-bottom: 0; }
.wsflexslider .caption-text { padding: 17px; }

  .wsflexslider .caption-align-left .caption-text { left: 20px; }
  .wsflexslider .caption-align-left .caption-link { left: 20px; }
  .wsflexslider .caption-align-right .caption-text { right: 20px; }
  .wsflexslider .caption-align-right .caption-link { right: 20px; }
  .wsflexslider .caption-link { position: absolute; bottom: 20px; }
  .wsflexslider .caption-text { position: absolute; width: 350px; top: 20px; background: rgba(255,255,255,0.9); }


/* Arrows */
.flex-direction-nav a {
	opacity: 1;
	color: #fff;
	overflow: visible;
	text-shadow: none;
	width: auto;
	top: inherit;
}

.flex-direction-nav .flex-prev { left: 5px; }
.flex-direction-nav .flex-next { right: 5px; }

.flex-direction-nav a:before {
	content: "‹ ";
	font-size: 12px;
	display: inline;
}
.flex-direction-nav a.flex-next:before { content: ""; }
.flex-direction-nav a.flex-next:after { content: " ›"; }

/* Boxen */

.halb-links,
.halb-rechts {
	width: 50%;
	box-sizing: border-box;
	padding: 40px 45px;
	background: #eee;
	height: 356px;
	margin-bottom: 50px;
}

.halb-links { float: left; }
.halb-rechts { float: right; }

.box-img,
.ce-left .ce-media *,
.ce-right .ce-media * {
	padding: 0;
	max-width: 481px;
}

.clear { clear: both; }



/* Content-Elements */

.ce-textpic {
	background: #eee;
	margin-bottom: 70px;
}

.ce-left .ce-gallery {
	padding: 0;
	margin-right: 40px !important;
	margin-bottom: 0 !important;
}

.ce-right .ce-gallery {
	padding: 0;
	margin-left: 40px !important;
	margin-bottom: 0 !important;
}

.ce-bodytext {
	padding: 20px 40px;
}



/* kd */

.subpage h1 {
    margin-bottom: 35px;
}

.info-container aside.right span.mail { margin-top: 20px; }

.home .wsflexslider .caption-text a {
    color: #fff;
    font-weight: 400 !important;
}

.ce-media iframe {
    width: 380px;
}

.flexslider .slides > li {
    background-position: center;
    height: 100%;
    width: 100%;
    display: none;
    -webkit-backface-visibility: hidden;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.flexslider-container,
.flexslider .slides,
.flex-viewport {
    height: 100%;
}

ul.slides {
    margin: 0;
    padding: 0;
}

.flexslider {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border: 0px;
    overflow: hidden;
}

.ce-intext.ce-left ol, .ce-intext.ce-left ul {
    padding-left: 20px;
}

.flexslider .slides img {
    height: auto; min-width: 100%; min-height: 100%; object-fit: cover; 
}


p.align-center .mail {
    display: inline;
}

div.ce-textpic.ce-right > div.ce-gallery > div > div > figure > figcaption {
    text-align: right;
    margin-right: 5px;
}
