/* reset  list style */
.cbp-tm-menu,
.cbp-tm-menu ul {
	list-style: none;
}

/* set menu position; change here to set to relative or float, etc. */
.cbp-tm-menu {
	display: block;
	position: absolute;
	z-index: 999;
	top: 0;
	right: 5%;
	width: auto;
	text-align: right;
	padding: 0;
	margin: 0;
}

/* first level menu items */
.cbp-tm-menu > li {
	display: inline-block;
	margin: 8px;
	margin-top: 2vw;
	position: relative;
}

.cbp-tm-menu > li > a {
	font-size: 1.5em;
	padding: 10px;
	display: block;
	color: #fff;
	text-decoration:none;
}

.cbp-tm-menu > li > a:hover,
.cbp-tm-menu > li > a:active, 
.cbp-tm-menu > li > a.aktiv {
	color: #3b75be;
	background-color: #ebebeb;
}

/* sumbenu with transitions */
.cbp-tm-submenu {
	position: absolute;
	display: block;
	visibility: hidden;
	opacity: 0;
	padding: 0;
	text-align: left;
	pointer-events: none;
	-webkit-transition: visibility 0s, opacity 0s;
	-moz-transition: visibility 0s, opacity 0s;
	transition: visibility 0s, opacity 0s;
}

.cbp-tm-show .cbp-tm-submenu {
	width: 12em;
	left: 50%;
	margin: 0 0 0 -6em;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	-webkit-transition: visibility 0s, opacity 0.3s;
	-moz-transition: visibility 0s, opacity 0.3s;
	transition: visibility 0s, opacity 0.3s;
}

.cbp-tm-show-above .cbp-tm-submenu {
	bottom: 100%;
	padding-bottom: 10px;
}

.cbp-tm-show-below .cbp-tm-submenu {
	top: 100%;
	padding-top: 10px;
}

/* extreme cases: not enough space on the sides */
.cbp-tm-nospace-right .cbp-tm-submenu {
	right: 0;
	left: auto;
}

.cbp-tm-nospace-left .cbp-tm-submenu {
	left: 0;
}

/* last menu item has to fit on the screen */
.cbp-tm-menu > li:last-child .cbp-tm-submenu {
	right: 0;
}

/* 	
arrow: depending on where the menu will be shown, we set 
the right position for the arrow
*/

.cbp-tm-submenu:after {
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.cbp-tm-show-above .cbp-tm-submenu:after {
	top: 100%;
	margin-top: -10px;
}

.cbp-tm-show-below .cbp-tm-submenu:after {
	bottom: 100%;
	margin-bottom: -10px;
}

.cbp-tm-submenu:after {
	border-color: transparent;
	border-width: 16px;
	margin-left: -16px;
	left: 50%;
}

.cbp-tm-show-above .cbp-tm-submenu:after {
	border-top-color: #3b75be;
}

.cbp-tm-show-below .cbp-tm-submenu:after {
	border-bottom-color: #3b75be;
}

.cbp-tm-submenu > li {
	display: block;
}

.cbp-tm-submenu > li > a {
	padding: 5px 2.3em 5px 0.6em; /* top/bottom paddings in 'em' cause a tiny "jump" in Chrome on Win */
	display: block;
	font-size: 1.2em;
	position: relative;
	color: #FFF;
	background:#3b75be;
	border: 4px solid #3b75be;
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	transition: all 0.2s;
	text-decoration:none;
	width:110%;
}

.cbp-tm-submenu > li > a:hover,
.cbp-tm-submenu > li > a:active {
	color: #3b75be;
	background-color: #9dbadf;
}

/* Media Queries */

@media only screen and (max-width: 1440px) { 

.cbp-tm-menu {
	right: 2%;
	font-size: 88%;
}

/* first level menu items */
.cbp-tm-menu > li {
	display: inline-block;
	margin: 8px;
	margin-top: 1.5vw;
	position: relative;
}

}

@media only screen and (max-width: 1100px) { 

.cbp-tm-menu {
	right: 0%;
	font-size: 80%;
}

/* first level menu items */
.cbp-tm-menu > li {
	display: inline-block;
	margin: 8px;
	margin-top: 1.5vw;
	position: relative;
}


}


@media only screen and (max-width: 880px) { 

	
.cbp-tm-menu {
	display: block;
	position: absolute;
	z-index: 1000;
	top: 0;
	right: 0%;
	width: 100%;
	padding: 0;
	margin: 0;
	font-size: 75%;
	background-color: #02639d;
}

.cbp-tm-menu,
.cbp-tm-submenu {
text-align: left;
	}

.cbp-tm-menu > li {
		display: block;
		margin: 0;
		border-bottom: 1px solid #ccc;
	}

.cbp-tm-menu > li:first-child {
		margin-top: 145px;
	}
	


	li.cbp-tm-show > a,
	.cbp-tm-menu > li > a:hover,
	.cbp-tm-menu > li > a:active {
		color: #fff;
		background: #02639d;
	}

	.cbp-tm-submenu {
		position: relative;
		display: none;
		width: 100%;
	}

	.cbp-tm-submenu > li {
		padding: 0;
	}

	.cbp-tm-submenu > li > a {
		padding: 0.6em 0.6em 0.6em 0.6em;
		border: none;
	}

	.cbp-tm-submenu:after {
		display: none;
	}

	.cbp-tm-menu .cbp-tm-show .cbp-tm-submenu {
		display: block;
		width: 100%;
		left: 0;
		margin: 0;
		padding: 0;
	}

}


@media only screen and (max-width: 640px) { 

.cbp-tm-menu > li:first-child {
		margin-top: 120px;
	}

}