* {
	padding: 0;
	margin: 0;
	list-style: none;
	-moz-box-sizing: border-box; 
	box-sizing: border-box; 
}

body {
	background: white;
	font-family: "HelveticaNeueLight", "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue", Arial, Helvetica, sans-serif
}



a.back {
	display: none;
}

/* color grey: #F7F7F7 */
#nav-topbar,
#topbar,
#nav {
    background: #F7F7F7;
}
#topbar,
#content,
#nav {
	border-right-color: #8E8E93;
}
#nav-topbar,
#topbar {
	border-bottom-color: #bcbcbc;
}
#topbar .title,
#nav-topbar .title {
	color: black;
}
#nav a.back,
#topbar a.nav,
#content .article_item h1,
a,
button#passwort_button {
	color: #007AFF;
}
#nav li {
	border-color: #c8c7cc;
}
#nav li a.touch,
#nav ul li.active a {
	background: #d9d9d9;
	color: black;
}
#content .article_item {
	border-bottom-color: #BDBEC2;
}

#nav .version {
	font-size: 10px;
	padding: 10px;
	color: #ccc;
}


/* topbar with link and title */
#nav-topbar,
#topbar {
    display: block;
    width: 770px;
    height: 44px;
    
    border-bottom-width: 1px;
	border-bottom-style: solid;
    
    position: fixed;
    z-index: 2;
    right: 0;
}
#topbar {
	left: 330px;
	border-right-width: 1px;
	border-right-style: solid;
}
#nav-topbar {
    width: 100%;
    position: absolute;
}
#topbar .title,
#nav-topbar .title {
    font-size: 17px;
    font-family: 'HelveticaNeue-Medium', 'Helvetica Neue Medium', 'HelveticaNeueMedium', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    right: 0;
    padding-top: 11px;
    z-index: 1;
}


#nav a.back,
#topbar a.nav {
	display: none;
}

#nav a.back,
#topbar a.nav {
    position: absolute;
    left: 5px;
    top: 0px;
    padding: 11px;
    float: none;
    background: none;
    
    
    border-radius: 0;
    z-index: 2;
    font-size: 17px;
    text-decoration: none; 
    
}
#slideriosTopbar a.close,
#topbar a.nav {
    background-image: url(../image/ios7-backicon.png);
    background-repeat:  no-repeat;
    background-size: 12px;
    background-position: 4px center;	
	padding-left: 24px
}

#topbar #reload_link,
#topbar #progress {
	position: absolute; 
	right: 5px; 
	top: 0px;
	padding: 11px;
	z-index: 2;
	font-size: 17px;
    text-decoration: none; 
}
#topbar #progress {
	font-size: 14px;
	padding-top: 12px;
	padding-right: 5px;
	right: 0px;
}
#topbar #reload_link {
	background-image: url(../image/ios7-reloadicon.png);
	background-repeat:  no-repeat;
	background-size: 18px;
	background-position: left center;	
	text-indent: -50px; 
	overflow: hidden;
}

/*navigation */
#nav {
    width: 330px;
    position: fixed;
    
    border-right-width: 1px;
	border-right-style: solid;
    
    z-index: 2;
    left: 0;
    top: 0;
    height: 100%;
}
#nav ul {
    width: 100%;
    padding: 0;
    padding-top: 44px;
    padding-bottom: 30px;
    background: white;
    overflow-y: scroll;
}
#nav li {
    margin: 0;
    float: left;
    width: 100%;
    margin-top: -1px;
    padding: 0;
    
    border-bottom-width: 1px;
	border-bottom-style: solid;
	border-top-width: 1px;
	border-top-style: solid;
}
#nav ul a {
    float: left;
    background: none;
    color: black;
    text-decoration: none;
    
    font-size: 17px;
    border: none;
    
    border-radius: 0;
    width: 100%;
    padding: 14px 15px;
    
}


/* content */
#content {
    width: 770px;
    left: 330px;
    top: 0;
    padding-top: 64px;
    background: white;
    overflow-y: scroll;
    position: absolute;
    z-index: 1;
    
    border-right-width: 1px;
	border-right-style: solid;
}
#content .article_item {
	margin-bottom: 20px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

#content .article_item h1 {
	font-weight: normal;
	cursor: pointer;

	font-size: 18px;
	padding: 5px 20px;
}
#content .active h1 {
	font-family: 'HelveticaNeue-Medium', 'Helvetica Neue Medium', 'HelveticaNeueMedium', 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
#content #articles > h1 {
	color: #333;
	font-weight: normal;
	font-size: 25px;
	padding: 5px;
	padding-left: 10px;
}

/* article collapse/expand */
#content .article_item .text_measure {
	float: left;
	padding: 10px 20px;
	width: 100%;
}
#content .article_item .text {
	-webkit-transition: height .5s;
	transition: height .5s;
	height: 0;
	overflow: hidden;
}


/* text */
.text p {
	font-size: 17px;
	margin: 8px 0;
	line-height: 160%;
}
.text img {
	width: 100%;
}
.text ul {
	padding-left: 20px;
	padding-bottom: 10px;
}
.text ul li {
	list-style: square;
	padding-bottom: 5px;
	line-height: 140%;
}
.text b,
.text strong {
	font-weight: normal;
	font-family: 'HelveticaNeue-Medium', 'Helvetica Neue Medium', 'HelveticaNeueMedium', 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
a {
    text-decoration: underline;
}
#slideriosTopbar a.touch,
#topbar a.touch,
#nav-topbar a.touch,
#content a.touch,
#content h1.touch,
#topbar a.active,
#topbar a.touch {
	opacity: 0.5;
    background-color: none;
}

/* gallery */
.gallery_event a {
	float: left;
	width: 25%;
	overflow: hidden;
	position: relative;
	background-size: cover;
	background-position: 50% 50%;
	border: 1px solid white;
}
.gallery_event a .height {
	padding-top: 100%;
}


/* password screen */
input#passwort_input {
	padding: 10px;
	width: 50%;
	font-size: 20px;
	margin-left: 25%;
	margin-top: 100px;
	border: 1px solid #BDBEC2;
	color: #ccc;
}
button#passwort_button {
	border: none;
	background: none;
	font-size: 18px;
	cursor: pointer;
}


@media all and (max-width: 1100px) {
	body {
		-webkit-text-size-adjust: none;
		-webkit-tap-highlight-color: rgba(0,0,0,0);
		background: white;
	}
	body.ios-homescreen {
		/*background:#F7F7F7;*/
		position: relative;
	}
	
	#bg {
		display: none;
	}


	/*navigation */
	#nav {
		width: 30%;
	}
	#nav ul {
		-webkit-overflow-scrolling: touch;
	}
	body.ios-homescreen #nav ul {
		padding-top: 64px;
	}
	
	/* topbar with link and title */
	#nav-topbar,
	#topbar {
		left: 0;
		width: 100%;
		border-right: none;
	}
	#topbar .title {
		width: 70%;
	}
	body.ios-homescreen #nav-topbar,
	body.ios-homescreen #topbar {
		height: 64px;
	}
	
	body.ios-homescreen #nav a.back,
	body.ios-homescreen #nav-topbar .title,
	body.ios-homescreen #topbar a.nav,
	body.ios-homescreen #topbar .title,
	body.ios-homescreen #topbar #progress,
	body.ios-homescreen #topbar #reload_link {
		top: 20px;
	}
	
	
	
	/* content */
	#content {
		width: 70%;
		right: 0;
		left: auto;
		border-right: none;
		-webkit-overflow-scrolling: touch;
	}
	body.ios-homescreen #content {
		padding-top: 84px;
	}
	
	/* text */
	a {
		-webkit-touch-callout: none !important;
	}

}


@media all and (max-width: 800px) {
	
	#nav {
		width: 40%;
		
		-webkit-transform: translate3d(-100%,0,0);
		transform: translate3d(-100%,0,0);
		
		-webkit-transition: all .2s;
		transition: all .2s;
		
	}
	
	body.nav-panel #nav {		
		-webkit-transform: translate3d(0,0,0);
		transform: translate3d(0,0,0);
	}
	
	#content {
		width: 100%;
		left: 0;
	}
	
	#topbar .title {
		width: 100%;
	}

	#nav a.back,
	#topbar a.nav {
	    display: block;
	}

	
	
	#content .gallery_event .text_measure {
		padding: 20px 0;
	}

	/* text */
	
	
	/* navigation */
	
	

}

@media all and (max-width: 600px) {
	#nav {
		width: 60%;
	}
	
	#content .article_item h1,
	#content .article_item .text_measure {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media all and (max-width: 330px) {
	#nav {
		width: 100%;
	}
	#topbar a.nav {
		text-indent:-120px;
		padding-right:42px;
	}
}



