/*
Theme Name: CM-Theme
Author: Knick Design
Text Domain: cm-theme
Description: Custom Theme for Chemnitz Marathon
Version: 1.1
License: 
License URI: 
Tags:
*/


/* Global
----------------------------------------------- */

html {
	background: url(img/bg-gradient.png) repeat-x #7fbffe;
}

body {
	width: 970px;
	margin: 0 auto;	
	color: #333333;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

h1,h2,h3,h4,h5,h6 {
	clear: both;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

a {
	color: #6497c9;
	text-decoration: none;
}

a:visited {
	color: #869bae;
}

a:hover,
a:focus,
a:active {
	color: #406080;
}

embed,
iframe,
object {
	max-width: 100%;
}

.dosis {
	font-family: 'Dosis', Helvetica, Arial, sans-serif;
}


/* Ausrichtung */

.clearfix:after,
#side-header:after,
#site-footer:after {
	content: ".";
	clear: both;
	display: block;
	visibility: hidden;
	height: 0px;
}

.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}


/* Screenreader-Text */

.assistive-text {
	clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}


/* Header
----------------------------------------------- */

.mobile-countdown {
	display: none;
	margin: 5px auto;
	position: relative;
}

.mobile-countdown .widget-title {
	display: none;
}

.only-mobile {
	display: none;
	clear: both;
}

.mobile-menu {
	display: none;
	width: 470px;
	background: #333;
	background-size: 18px auto;
	font-family: 'Dosis', Helvetica, Arial, sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 24px;
	padding: 5px 10px;
	color: #fff;			
	border-radius: 3px;
	box-shadow: none;
	z-index: 22;
	position: relative;
	cursor: pointer;
}

.mobile-menu:after {
	content: "\f333";
	color: #fff;
	font-family: 'dashicons'; 
	text-transform: none;
	font-size: 30px;
	line-height: 36px;
	position: absolute;
	right: 10px;
}

.mobile-navigation {
	display: none;
	background-color: #444;
	padding-top: 1px;
	margin-top: -10px;
	z-index: 21;
}

.mobile-navigation ul {
	padding: 0;
	margin: 20px 0 0;
	border-top: solid 1px #333;
}

.mobile-navigation li {
	display: block; 
	position: relative;
}

.mobile-navigation li:after {
	content: "\f139";
	color: #333;
	font-family: 'dashicons'; 
	text-transform: none;
	font-size: 40px;
	position: absolute;
	right: 10px;
	margin-top: -50px;
	z-index: 999;
}

.mobile-navigation a {
	display: block;
	padding: 5px 60px !important;
	background-color: #3f3f3f;
	text-decoration: none;
	border-bottom: 1px solid #333;
	font-family: 'Dosis', Helvetica, Arial, sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	color: #fff;
	font-size: 18px;
	text-decoration: none;
	transition:  color .1s linear, background-color .1s linear;
	background-position: 20px center !important;
}

.mobile-navigation a:visited {
	color: #ccc;
}

.mobile-navigation a:hover,
.mobile-navigation a:focus,
.mobile-navigation a:active {
	background-color: #333;
	text-decoration: none;
	color: #FFF;
}

.mobile-navigation a:before {
	content: "\f460";
	color: #666;
	font-family: 'dashicons'; 
	text-transform: none;
	font-size: 28px;
	line-height: 28px;
	position: absolute;
	margin-left: -40px;
}

.mobile-navigation .menu-item-home a:before { content: "\f102";}
.mobile-navigation a[href*="baer-service.de"]:before { content: "\f337";}
.mobile-navigation a[href$="/ausschreibung/"]:before { content: none;}
.mobile-navigation a[href$="-EN.pdf"]:before { content: none;}
.mobile-navigation a[href$="-CZ.pdf"]:before { content: none;}
.mobile-navigation a[href$="/vereinspokal/"]:before { content: "\f313";}
.mobile-navigation a[href$="/strecke/"]:before { content:"\f238";}
.mobile-navigation a[href$="/partner/"]:before { content:"\f307";}
.mobile-navigation a[href$="/spendenziele/"]:before { content:"\f487";}
.mobile-navigation a[href$="/archiv/"]:before { content:"\f322";}
.mobile-navigation a[href$="/unterkunfte/"]:before { content:"\f513";}

.mobile-navigation div.close {
	height: 30px;
	color: #333;
	font-family: 'dashicons'; 
	text-transform: none;
	text-align: center;
	font-size: 28px;
	line-height: 28px;
	cursor: pointer;
}

.mobile-navigation div.close:before {
	content: "\f153";
}	

.mobile-navigation .sub-menu {
	display: none;
}

#masthead {
	background-color: #333; 
	color: #fff; 
	border-radius: 3px;
	height: 30px;
	line-height: 30px;
	font-size: 14px;
	padding: 0px 20px;
	margin-top: 5px;
	box-shadow: 0px 2px 2px rgba(51, 102, 151, 0.5);
	position: relative;
	z-index: 20;
}

#masthead .site-description {
	float: left;
}

#masthead .menu-head-container {
	float: right;
}

#menu-head  {
	margin: 0;
	list-style: none; 
	color: #fff;
}

#menu-head li {
	float: left;
	margin-left: 20px;
}

#menu-head li a {
	text-decoration: none;	
	color: #fff;
}

#menu-head li a:hover,
#menu-head li a:focus,
#menu-head li a:active {
	text-decoration: underline;	
}
	
#masthead .herz {
	background-image: url(img/herz.png);
	width: 37px;
	height: 33px;
	margin: 5px 10px;
	display: inline-block;
	vertical-align: -24px;
}
	
#headgrafik {
	height: 260px;
	position: relative;
}
	
#headgrafik .runner {
	background-image: url(img/runner.png);
	background-repeat: no-repeat;
	width: 259px;
	height: 360px;
	margin: 20px 0 0 -40px;
	position: absolute;
	z-index: 1;
}

#headgrafik .wortmarke {
	width: 500px;
	margin: 40px 0 0 150px;
	position: absolute;
	z-index: 2;
	display: block;
}

#headgrafik .datum {
	margin: 30px 0 0 500px;
	position: absolute;
	z-index: 3;
	font-weight: 200; 
	font-size: 48px;
	color: #d6e9f9;
}

#headgrafik .marginalie {
	background-image: url(img/bg-raster.gif);
	background-repeat: repeat;
	width: 230px;
	height: 230px;
	margin: 0px 0 0 730px;
	position: relative;
	z-index: 4;
	padding-top: 1px;
}

#headgrafik .lions {
	width: 130px;
	position: relative;
	z-index: 2;
	margin: 50px 50px 0;
	display: block;
}


/* Hauptnavigation
----------------------------------------------- */

.main-navigation {
	clear: both;
	display: block;
	float: left;
	width: 100%;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
	margin-bottom: 40px;
}

.main-navigation ul.sub-menu {
	display: none !important;
}

.main-navigation li {
	display: block; 
	margin: 0 10px;
	position: relative;
}

.main-navigation a {
	display: inline-block;
	padding: 5px 10px;
	background-color: #fff;
	text-decoration: none;
	border-bottom: 1px solid #ccc;
	font-family: 'Dosis', Helvetica, Arial, sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	color: #333;
	font-size: 18px;
	text-decoration: none;
	transition:  color .1s linear, background-color .1s linear;
}

.main-navigation a:visited {
	color: #666;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active {
	background-color: #333;
	text-decoration: none;
	border-bottom: 1px solid #ccc;
	color: #FFF;
	padding-left: 15px;
}

a[href$="/ausschreibung/"] {
	padding-left: 45px;
	background-image: url("img/flagge-deutschland.png");
	background-repeat: no-repeat;
	background-size: auto 18px;
	background-position: 10px center;
}

a[href$="-EN.pdf"] {
	padding-left: 45px;
	background-image: url("img/flagge-vereinigtes-koenigreich.png");
	background-repeat: no-repeat;
	background-size: auto 18px;
	background-position: 10px center;
}

a[href$="-CZ.pdf"] {
	padding-left: 45px;
	background-image: url("img/flagge-tschechische-republik.png");
	background-repeat: no-repeat;
	background-size: auto 18px;
	background-position: 10px center;
}

.main-navigation a[href$="/ausschreibung/"]:hover,
.main-navigation a[href$="/ausschreibung/"]:focus,
.main-navigation a[href$="/ausschreibung/"]:active,
.main-navigation a[href$="-EN.pdf"]:hover,
.main-navigation a[href$="-EN.pdf"]:focus,
.main-navigation a[href$="-EN.pdf"]:active,
.main-navigation a[href$="-CZ.pdf"]:hover,
.main-navigation a[href$="-CZ.pdf"]:focus,
.main-navigation a[href$="-CZ.pdf"]:active {
	padding-left: 50px;
	background-position: 15px center;
}


/* Inhalt
----------------------------------------------- */

.post {
	margin-bottom: 2em;
}

.entry-title {
	font-family: 'Dosis', Helvetica, Arial, sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 22px;
	line-height: 24px;
}

.entry-meta {
	color: #ccc;
	font-size: 12px;
	margin-top: -1em;
}

.home .entry-content {
	margin-top: -1em;
}

.entry-content p {
	text-align: justify;
}

.entry-content p,
.entry-content table {
	word-wrap: break-word;
}


/* Kurzmitteilungen */

.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}


/* Media TODO */

.site-header img,
.entry-content img,
.comment-content img,
.widget img {
	max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
.site-header img,
.entry-content img,
img[class*="align"],
img[class*="wp-image-"] {
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
.site-header img,
.entry-content img,
img.size-full {
	max-width: 100%;
	width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
}
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}
.wp-caption {
	border: 1px solid #ccc;
	max-width: 100%;
}
.wp-caption.aligncenter,
.wp-caption.alignleft,
.wp-caption.alignright {
	margin-bottom: 1.5em;
}
.wp-caption img {
	display: block;
	margin: 1.2% auto 0;
	max-width: 98%;
}
.wp-caption-text {
	text-align: center;
}
.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}
.site-content .gallery {
	margin-bottom: 1.5em;
}

.site-content .gallery a img {
	border: 10px solid white !important;
	height: auto;
	max-width: 90%;
	border-bottom: none !important;
}
.site-content .gallery dd {
	margin: 0;
}


/* Post-Navigation */

.site-content .site-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}
.site-content .nav-previous {
	float: left;
	width: 50%;
}
.site-content .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

#nav-above.site-navigation {
	margin: 0;
	border-bottom: 1px solid #CCC;
}

#nav-below.site-navigation {
	margin: 0;
	border-top: 1px solid #CCC;
}

nav .nav-previous a {
	text-decoration: none;
	font-size: 14px;
}

nav .nav-next a {
	text-decoration: none;
	font-size: 14px;
}

nav .meta-nav {
	display: none;
}


/* Inhalt
----------------------------------------------- */

#primary {
	z-index: 20;
	position: relative;
	clear: both;
	background-color: #fff;
	background-image: url(img/bg-raster-wide.gif);
	padding-bottom: 1em;
}

#left {
	float: left;
	width: 250px;
	border-top: 10px solid #333;
	border-top-left-radius: 3px;
}

#left #main-countdown-widget {
	background-color: #fff;
	padding: 5px 0;
}

#left #main-countdown-widget .widget-title {
	display: none;
}

#content {
	float: left;
	margin-top: -30px;
}

#content .start-slider {
	width: 730px;
	height: 250px;
	border: 2px solid #fff;
	background-color: #FFF;
	position: absolute;
	box-shadow: 3px 3px 10px 0 #666;
}

.middle {
	width: 460px;
	margin-top: 250px;
	float: left;
	padding: 5px;
}

.no-sidebar #content {
	margin-bottom: -1em;
}

.no-sidebar .middle {
	width: 710px;
	background-color: white;
}

.right {
	width: 250px;
	margin-top: 110px;
	float: left;
}

.column-bg {
	width: 230px;
	margin: 0 10px 2em;
}

.column-bg h3 {
	margin: 10px; 
	background-color: #fff; 
	font-family: 'Dosis', Helvetica, Arial, sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 14px;
	padding: 0 10px;
}

.right .column-bg:first-of-type {
	margin-top: 165px;
}
	
	
/* Page Style */	

.page-head {
	height: 150px;
	width: 730px;
	border: solid 2px white;
	overflow: hidden;
	background-color: white;
	position: absolute;
	box-shadow: 3px 3px 10px 0px #666;
}
	
body:not(.home) .middle {
	margin-top: 150px;
}

body:not(.home) .right {
	margin-top: 110px;
}

body:not(.home) .right .column-bg h3 {
	margin-top: 65px;
}

body:not(.home) #headgrafik {
	height: 210px;
}

body:not(.home) #headgrafik .lions {
	margin-top: 30px;
}

body:not(.home) #headgrafik .wortmarke {
	width: 440px;
	margin-top: 30px;
}

body:not(.home) #headgrafik .datum {
	font-size: 44px;
	margin-top: 20px;
}


/* Akkordion */

#accordion { 
	margin: 0 10px;
	position: relative;
}
	
#accordion h3 { 
	color: #444; 
	font-weight: bold;
	line-height: 30px; 
	padding: 0px;
	margin: 5px 0;
	cursor: pointer;
	border-bottom: 1px solid #ccc;
}

#accordion h3.ui-state-default:after {
	content: '\f132';
	font-family: 'dashicons'; 
	text-transform: none;
	font-size: 24px;
	position: absolute;
	right: 0px;	
	font-weight: normal;
}
		
#accordion h3.ui-state-active:after {
	content: '\f460';	
}


/* Advertisement */

.pure-g {
	margin-bottom: 2em;
}

.pure-g [class*="pure-u"] {
	vertical-align: middle;
}

.pure-g [class*="pure-u"] div a.partner-logo {
	margin: 1em auto;
	max-width: 90% !important;
}

.partner-logo {
	margin: 10px;
	width: 200px;
	text-align: center;
	display: block;
	background-color: white;
	padding: 5px;
}

.partner-logo img {
	width: auto;
	max-width: 100%;
	vertical-align: middle;
}


/* Footer
----------------------------------------------- */

#site-footer {
	background-color: #333;
	color: #fff;
	padding: 20px;
}

#social {
	float: left;
}

#social a {
	display: inline-block;
}

#social a .dashicons {
	width: auto;
	height: auto;
}

#social .dashicons:before {
	font-size: 1.5em;
	color: white;
}

#site-footer ul {
	margin: 0;
	padding: 0;
}

.menu-foot-container {
	float: right;
}

#menu-foot {
	list-style: none; 
	margin-top: 11px;
	font-size: 11px;
	font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
	color: #333;
	line-height: 1.28;
}
	
#menu-foot li {
	float: left;
	margin-left: 10px;
	padding-left: 10px;
	border-left: 1px solid #555;
}

#menu-foot li:first-of-type {
	border-left: none;
}

#menu-foot li a {
	text-decoration: none;	
	color: #ccc;
}

#menu-foot li a:hover,
#menu-foot li a:focus,
#menu-foot li a:active {
	text-decoration: underline;	
}

#menu-foot li.nolink a,
#menu-foot li.nolink a:hover,
#menu-foot li.nolink a:focus,
#menu-foot li.nolink a:active {
	text-decoration: none;
}
	

/* =Responsive
----------------------------------------------- */

@media only screen 
and (max-width : 997px)  {
	body {
		width: 730px;
	}

	#content {
		width: 480px;
	}

	#content .start-slider {
		width: 490px;
		overflow: hidden;
	}

	ul.slides li {
		width: auto !important;
		height: 250px;
		position: absolute !important;
	}

	.responsive-slider.flexslider .slide-title a {
		right: 240px;
	}

	.responsive-slider.flexslider .flex-control-nav {
		bottom: -240px !important;
	}

	.responsive-slider.flexslider .flex-direction-nav li a {
		top: 115px !important;
	}

	.middle,
	.no-sidebar .middle {
		box-sizing: border-box;
		width: 100%;
		overflow: hidden;
		padding: 10px 10px 10px 5px;
	}

	#content .page-head {
		width: 490px;
	}

	#headgrafik .marginalie {
		display: none;
	}

	#headgrafik .lions {
		margin-left: 10px;
	}

 	.widget-area {
		float: none;
		clear: both;
		background-color: #C9F;
		background: none;
		width: auto;
		margin: 0;
		padding: 10px 10px 10px 5px;
	}

	.widget-area .column-bg {
		margin: 0;
		padding: 0;
		width: auto;
		min-height: initial;
	}
	
	.widget-area .column-bg h3 {
		margin: 2em 0 0;
		padding: 0;
	}

	.widget-area .partner-haupt .a-single {
		box-sizing: border-box;
		width: 100%;
		padding: 25px;
	}

	.widget-area .partner-logo {
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.widget-area .partner-haupt img {
		width: 100%;
	}	

	.widget-area .partner-gross .a-single {
		box-sizing: border-box;
		height: 150px;
		width: 50%;
		float: left;
		padding: 20px;
	}

	.widget-area .partner-gross .partner-logo {
		height: 100%;
		width: 100%;
	}

	.widget-area .partner-gross img {
		max-height: 100%;
		margin: 0 auto;
		vertical-align: middle;
	}
}


@media only screen
and (max-width : 758px)  {
	body { 
		width: 490px;
	}

	#left {
		display: none;
	}
	
	#primary {
		background: #fff url(img/bg-raster-grau.gif) repeat;
		padding: 10px;
	}

	.no-sidebar #content {
		margin-bottom: 0;
	}

	#content {
		width: 100%;
		background: #fff;
		margin: 0;
	}

	#content .start-slider {
		width: 486px;
		height: 166px;
		background-color: white;
		position: absolute;
		margin: -10px;
	}

	#content.page .page-head {
		display: none;
	}

	.middle {
		margin-top: 160px;
		padding: 10px;
	}

	body:not(.home) .middle {
		margin-top: 0;
	}


/* header */	

	#masthead {
		display: none;
	}

	.only-mobile,
	.mobile-menu,
	.mobile-countdown {
		display: block;
	}

	#headgrafik {
		height: 190px;
	}

	#headgrafik .wortmarke {
		width: 80%;
		margin: 40px 0 0 80px;
	}

	#headgrafik .runner {
		background-size: 80% auto;
		margin: 10px 0 0 -60px;
	}

	#headgrafik .datum {
		margin: 35px 0 0 350px;
		font-size: 30px;
	}

	#headgrafik .marginalie {
		display: none;
	}

	body:not(.home) #headgrafik {
		display: none;
	}


/* footer */

	footer {
		padding-top: 0;
		height: auto;
		padding-bottom: 10px;
	}

	footer #social {
		float: none;
	}

	footer.entry-meta {
		padding-top: 10px;
	}
		
	footer #menu-foot, footer #menu-head-1 {
		margin: 10px 0;
	}

	footer .menu-foot-container {
		float: none;
	}

	footer #menu-foot li:last-child {
		background-color: transparent;
	}

	footer #menu-foot li, footer #menu-head-1 li {
		float: none;
		display: block;
		border: 0;
		padding: 0px;
		margin: 5px 0;
		background-color: #3F3F3F;
	}

	footer #menu-foot li a, footer #menu-head-1 li a {
		display: block;
		line-height: 30px;
		padding: 0 10px;
	}
			
	footer #menu-head-1 {
		list-style: none; 
		margin-top: 11px;
		font-size: 11px;
		font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
		color: #333;
		line-height: 1.28;
		text-align: left;
		direction: ltr;
	}

	footer #menu-head-1 li a {
		text-decoration: none;	
		color: #ccc;
	}
	footer #menu-head-1 li a:hover,
	footer #menu-head-1 li a:focus,
	footer #menu-head-1 li a:active {
		text-decoration: underline;	
	}

	footer #menu-head-1 li.nolink a,
	footer #menu-head-1 li.nolink a:hover,
	footer #menu-head-1 li.nolink a:focus,
	footer #menu-head-1 li.nolink a:active {
		text-decoration: none;
	}
}


@media only screen
and (max-width : 499px)  {
	body {
		width: 100%;
		overflow-x: hidden;
	}

	#content .start-slider {
		width: auto;
		/*height: auto;*/
		right: 0;
		left: 0;
		margin: -10px 0 0 0;
		background-color: white;
		box-shadow: 0px 3px 10px rgba(0,0,0,0.3);
	}

	#content .responsive-slider.flexslider {
		margin-bottom: 0;
	}


/* header */

	.CM-mini-dashboard:before {
		display: none;
	}

	.mobile-menu {
		width: auto;
		border-radius: 0;
	}
		
	#headgrafik .wortmarke {
		margin-left: 5%;
	}

	#headgrafik .datum {
		right: 0;
		margin-right: 5%;
	}	
}