/* RESET */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
.clearfix:after{clear:both;content:' ';display:block;font-size:0;line-height:0;visibility:hidden;width:0;height:0;}.clearfix {display:inline-block;}* html .clearfix {height: 1%;}.clearfix {display: block;}

body {
	color: #333;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	background-color: #fff;
	overflow-y: scroll;
}

body.ready .hideOnReady,
body.list .hideOnList,
body.matrix .hideOnMatrix { display: none; }
body.matrix.end .showAfterMatrix { display: block; }

body .showOnReady,
body .showOnList,
body .showOnMatrix { display: none; }

body.ready .showOnReady,
body.list .showOnList,
body.matrix .showOnMatrix { display: block; }

a { color: #0094d8; text-decoration: none; }
a:hover { color: #005a8d; }

h1, h2, h3 { font-size: 36px; font-weight: 300; margin: 0.5em 0; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

p { font-weight: 400; }

.maxwidth {
	width: 100%;
	max-width: 800px;
	padding: 20px;
	margin: 0 auto;
	box-sizing: border-box;
}

.fadein {
	animation: fadein 2s;
}
.fadeindelayed {
	animation: fadeindelayed 3s;
}
.fadeindelayeder {
	animation: fadeindelayed 6s;
}

.button {
	display: block;
	font-weight: 600;
	border: 1px solid #0094d8;
	padding: 1em;
	margin-bottom: 2px;
	cursor: pointer;
	animation: fadein 1s;
}
.button .description { color: #666; font-weight: 400; }
.button:hover, .button.active, .active > .button { color: #fff; background-color: #005a8d; border-color: #005a8d; }

.button.secondary { background-color: #eee; border: none; }
.button.secondary:hover, .button.secondary.active, .active > .button.secondary { background-color: #0094d8; }
.button.secondary:hover .description { color: #eee; }

.button.answer,
.button.next { position: relative; padding-left: 3em; }
.button.answer:before,
.button.next:before {
	content: '';
	display: block;
	position: absolute;
	top: 1em;
	left: 1em;
	width: 1em;
	height: 1em;
	border: 4px solid #aaa;
	border-radius: 1em;
}
.button.answer:hover,
.button.next:hover { color: #000; background-color: #fff; }
.button.answer:hover:before,
.button.next:hover:before { background-color: #666; }

.button.answer.active,
.button.next.active { color: #0094d8; background-color: #fff; }
.button.answer.active:before,
.button.next.active:before { background-color: #005a8d; border-color: #0094d8; }

.button.back { position: relative; padding-left: 2em; color: #999; border-color: #999; }
.button.back:before {
	content: '\2191';
	position: absolute;
	display: block;
	left: 1em;
	line-height: 1rem;
}
body.end .button.back { color: #0094d8; border-color: #0094d8; }
.button.back:hover,
body.end .button.back:hover { color: #fff; background-color: #005a8d; border-color: #005a8d; }


.info, .notice {
	font-size: 13px;
	padding: 1em;
	margin: 1em 0;
	border: 1px solid #005a8d;
}

.notice { border-color: red; }

#mainwrapper { position: relative; }
#maincontent .inner { padding-bottom: 0; min-height: 100vh; }

/* Kopfbereich */
#mainheader .inner {
	position: relative;
	height: auto;
	background: url(../images/header.png) no-repeat top center/contain;
	margin-bottom: 1em;
	z-index: 11;
}
#appSubtitle { margin-top: 0.5em; max-width: 55%; }

@media (min-width: 640px) {
	#mainheader .inner { height: 28vw; }
}

@media (min-width: 800px) {
	#mainheader .inner { height: 230px; }
}

#logo { display: none; color: #fff; font-weight: 500; line-height: 100%; margin: 0; }
#logo .version { position: absolute; top: 0; right: 0.5em; color: #fff; font-size: 12px; font-weight: 300; }

/* Fußbereich */

#mainfooter {
	background-color: #005A8D;
}
#mainfooter .inner {
	width: 100%;
	padding: 10px 20px;
	color: #fff;
	font-size: 14px;
	text-align: center;
}
#desc_logo_lsjv {
	background: url(../images/logo_lsjv.png) no-repeat center center/contain;
}
#desc_logo_suchtpraevention_rlp {
	background: url(../images/logo_suchtpraevention_rlp.svg) no-repeat center center/contain;
}

/* Inhaltsbereich */

.appDescription {
	margin: 1em 0;
}
.appDescription h3 {
	font-weight: 500;
}
.appDescription p {
	font-weight: 300;
	margin-bottom: 1rem;
}
.appDescription ul,
.appDescription ol {
	margin-left: 1rem;
	margin-bottom: 1rem;
}
@media (min-width: 640px) {
	.appDescription ul,
	.appDescription ol {
		margin-left: 3rem;
	}
}
.appDescription ul {
	list-style-type: disc;
}
.appDescription ol {
	list-style-type: decimal;
}
.appDescription li {
	margin-bottom: 0.5rem;
}
.appDescriptionBottom {
	padding: 20px;
	background-color: #efefef;
}
@media (max-width: 639px) {
	.appDescriptionBottom {
		margin: 0 -20px;
	}
}

.appLogos {
	text-align: center;
}
.appLogos a {
	display: inline-block;
	margin-right: 20px;
	height: 100px;
	width: 40%;
	font-size: 0;
	text-indent: -200%;
}
@media (min-width: 640px) {
	.appLogos a {
		height: 150px;
	}
}

.listHeadline { margin-top: 1.5em; }
.situationList ul { display: none; }
.situationList.active ul { display: block; }

#mainnav {
	margin-bottom: 4rem;
}

/* Matrizen */

.node {
	position: relative;
	padding: 1em 0;
	margin-bottom: 1em;
	animation: fadein 2s;
}
.node h2 { 
	margin: 0 0 0.5em 0;
	transition: background-color 1s;
}
.node.current h2 { background-color: #ff0; }
.node .description { margin-bottom: 1em; }

.node.nextdelayed {
	border-bottom: 2px solid #eee;
}

.node .nodeId { display: none; }
.node:hover .nodeId {
	display: block;
	position: absolute;
	top: 0.25em;
	right: 0.25em;
	color: #ddd;
}

/* Nodetypen */

.actionnode {
	border: 1px dotted #0094d8;
	padding: 1em;
	margin-bottom: 2em; 
}
.actionnode:before {
	content: 'Aktion:';
	position: absolute;
	display: block;
	top: 0.25em;
	left: 1em;
	color: #005a8d;
	font-weight: 500;
	transition: background-color 1s;
}
.actionnode.current:before {
	background-color: #ff0;
}
.actionnode .description { font-weight: 500; }

.actionnode.notcurrent:after,
.questionnode.notcurrent:after {
	content: '\2193';
	position: absolute;
	display: block;
	bottom: -1em;
	left: 50%;
	margin-left: -0.5em;
}
.actionnode.notcurrent:after { bottom: -2em; }

.examplenode {
	padding: 1em;
	background-color: #eee;
}
.examplenode.closed .description {
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.examplenode.closed:after {
	content: 'weiterlesen...';
	position: absolute;
	display: block;
	bottom: -1.5em;
	left: 1em;
	padding-bottom: 2em;
	color: #005a8d;
}

.textnode + .textnode {
	padding-top: 0;
}

.installButton {
	max-width: 350px;
}

/* Animationen */

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeout {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes fadeindelayed {
    0% { opacity: 0; }
	33% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeindelayeder {
    0% { opacity: 0; }
	66% { opacity: 0; }
    100% { opacity: 1; }
}