/*
 ******************************************************************************
 * CodeBase                                      A PHP based source code libary
 * --------                                      ------------------------------
 *
 * Copyright (c) 2008, Christoph Mewes
 * All rights reserved.
 *
 * CodeBase is copyrighted free software created and maintained by Christoph
 * Mewes (christoph.mewes@gmail.com) and released under the standard BSD
 * Licence. For details consult the file LICENSE.
 ******************************************************************************
*/

p, li, h1, h2, h3, h4, h5, h6, div       { font-size: 13px; font-family: Trebuchet MS, serif; }
p, li, h1, h2, h3, h4, h5, h6       { margin: 10px 0px; line-height: 19px; }
body    { margin: 0; padding: 0; }
a { color: #3A64B6; text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: italic; }
strong { font-weight: bold; }
#page   { margin: 0; padding: 0; }
#container { margin: 0 10px; }

h1 { font-size: 20px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

#mainTitle { font-size: 22px; }

/*** Header ***/

#header {
	position: relative;
	background: url("../../images/default/header.png") repeat-x left bottom;
	height: 79px;
	margin: 0;
}

#header h1,
#header h2 {
	color: white;
	margin:0px 0 0px 10px;
}

#header h1 { font-size: 28px; line-height: 50px; }
#header h2 { font-size: 13px; font-style: italic; line-height: 15px; }

#searchform {
	position: absolute;
	right: 20px;
	top: 28px;
}

/*** Navigation ***/

/* erste Ebene */
#nav {
	position: absolute;
	top: 79px;
	left: 0px;
	right: 0px;
	height: 25px;
	background: #7cb93a;
	border-bottom: 2px solid #6A9C31;
}

#nav ul {
	margin-left: -5px;
	overflow: hidden;
}

#nav li {
	padding: 6px 0px 6px 0px;
	float: left;
	font-size: 13px;
	width: 60px;
	text-align: center;
	margin: 0;
	line-height: 14px !important;
}

#nav #login {
	width: 120px;
	float: right;
	text-align: right;
}

#nav li#current {
	padding-bottom: 5px;
	border-bottom: 2px solid #4A6E21;
	margin-bottom: 0px;
}

#nav li a {
	padding: 6px 10px 6px 10px;
	color: white;
	font-weight: bold;
}

#nav li:hover {
	padding-bottom: 5px;
	border-bottom: 2px solid #4A6E21;
}

#nav li:hover a {
	text-decoration: none;
}

/*** Pfad ***/

#path {
   font-size: 12px;
   margin: 28px -10px 0px -10px;
   padding: 1px 10px 0px 10px;
   line-height: 29px;
   border-bottom: 1px solid #DDD;
   background: #F5F5F5;
   position: relative;
}

#commentLink {
   position: absolute;
   right: 10px;
   top: 1px;
   line-height: 29px;
   font-size: 12px;
}

/*** Inhalt ***/

#innerContainer { position: relative; }

#content {
   margin-left: 215px;
   margin-top: 10px;
   padding: 5px;
}

#sidebar {
   position: absolute;
   left: 0;
   top: 0;
   width: 200px;
   padding: 5px;
}

/*** Sidebar ***/

#sidebar div,
#sidebar h3,
#sidebar li {
	line-height: 12px !important;
}

#sidebar h3 {
	background:#F5F5F5 url("../../images/default/sidebar-header.png") repeat-x left bottom;
	margin-bottom: 0;
	font-size: 12px;
	border-bottom: 1px solid #DDD;
	padding:6px;
	font-weight: bold;
}

#sidebar ul.lvl1 {
	margin-bottom: 20px;
}

#sidebar li {
	margin: 0;
}

#sidebar li div {
	border-width: 0px 1px 1px 1px;
	border-color: #DDD;
	border-style: solid;
	font-size: 12px;
	padding: 6px 6px 5px 6px;
	margin: 0;
	position: relative;
}

#sidebar li.folder div {
	background: url("../../images/default/folder.png") 3px 3px no-repeat;
	padding-left: 22px;
}

#sidebar .lvl2,
#sidebar .lvl3,
#sidebar .lvl4,
#sidebar .lvl5 {
	display: none;
}

#sidebar .openCategory .lvl2,
#sidebar .openCategory .lvl2 .openCategory .lvl3,
#sidebar .openCategory .lvl2 .openCategory .lvl3 .openCategory .lvl4,
#sidebar .openCategory .lvl2 .openCategory .lvl3 .openCategory .lvl4 .openCategory .lvl5 {
	display: block;
}

#sidebar .lvl2 div,
#sidebar .lvl3 div,
#sidebar .lvl4 div,
#sidebar .lvl5 div {
	padding-left: 22px;
	display: block;
}

#sidebar .lvl2 li div { padding-left: 29px; background: #F8F8F8 url("../../images/default/folder.png") 10px 3px no-repeat; }
#sidebar .lvl3 li div { padding-left: 36px; background: #F0F0F0 url("../../images/default/folder.png") 17px 3px no-repeat; }
#sidebar .lvl4 li div { padding-left: 43px; background: #D8D8D8 url("../../images/default/folder.png") 24px 3px no-repeat; }
#sidebar .lvl5 li div { padding-left: 50px; background: #D0D0D0 url("../../images/default/folder.png") 31px 3px no-repeat; }

#sidebar .sidebar-toggle {
	position: absolute;
	background: red;
	width: 13px;
	right: 5px;
	top: 5px;
	height: 13px;
	padding: 0 !important;
	border: none;
	background:url("../../images/default/toggle.png") no-repeat 50% 50% !important;
	cursor: pointer;
}

#sidebar .openCategory div div.sidebar-toggle {
	background:url("../../images/default/toggle-minus.png") no-repeat 50% 50% !important;
}

#sidebar .closedCategory div div.sidebar-toggle {
	background:url("../../images/default/toggle.png") no-repeat 50% 50% !important;
}

#sidebar div.current {
	font-weight: bold;
	font-style: italic;
}

#sidebar li.snippet div {
	background: url("../../images/default/script.png") 3px 3px no-repeat;
	padding-left: 22px;
}

/*** Fußzeile ***/

#footer { clear: both; margin: 15px 0px 15px 215px; text-align: center; font-size: 12px; color: #666; }


/*** Allgemeine Klassen ***/

.hidden { display: none; }
.clear { clear: both; }
.longtext p { text-align: justify; }
pre { overflow:auto; font-family: Consolas, Courier New, monospace; color: #000; font-size: 13px; line-height: 15px; }
.longtext pre { margin-left: 10px; }
p code { font-family: Consolas, Courier New, monospace; color: #2B2B73; }
.center { text-align: center; }
.right { text-align: right; }
.error,
.success {
	padding: 5px 3px 5px 25px;
	width: 660px;
	margin: 10px auto;
	clear: both;
}
.error {
	border: 1px solid #FF9999;
	background: #FFDDDD url("../../images/default/error.png") 5px 50% no-repeat;
}
.success {
	border: 1px solid #99FF99;
	background: #DDFFDD url("../../images/default/success.png") 5px 50% no-repeat;
}
.path { color: #777; }

/*** Snippets ***/

.snippetDetails {
	float: right;
	margin: 5px 0px 10px 0px;
}

.snippetDetails li {
	display: inline;
	font-size: 12px;
	margin-left: 20px;
}

.snippetDetails li.time {
	background: url("../../images/default/time.png") left 50% no-repeat;
	padding-left: 20px;
}

.snippetDetails li.download {
	background: url("../../images/default/disk.png") left 50% no-repeat;
	padding-left: 20px;
}

/*** Kategorieliste ***/

#categories li {
	float: left;
	width: 190px;
	font-size: 20px;
	border: 1px solid #DDD;
	margin-right: 10px;
	height: 58px;
	padding: 5px;
	background: #F5F5F5 url("../../images/default/folder.png") 180px top no-repeat;
	margin-top: 0;
}

#categories li.empty {
	background-color: #F9F9F9;
	border-color: #EEE;
}

#categories li.empty a {
	color: #88A5D9;
}

#categories li.empty:hover a {
	color: #3A64B6;
}

#categories li.empty:hover {
	background-color:#F0F0F0;
	border: 1px solid #DDD;
}

#categories li:hover,
#categories li:hover ul li {
	background-color:#F0F0F0;
}

#categories span,
#categories li.empty:hover span {
	display: block;
	font-size: 11px;
	color: #999;
}

#categories li.empty span {
	color: #BBB;
}

#categories li ul li {
	font-size: 12px;
	list-style: none;
	float: none;
	display: inline;
	border: none;
	padding: 0px;
	margin: 0;
	line-height: 12px;
	background: none;
}

#categories li ul li:after {
	content: ", ";
}

#categories li ul li.last:after {
	content: "";
}

/*** Snippetlist ***/

#snippets li,
#categoriesAlternative li {
	background: #F5F5F5 url("../../images/default/script.png") 5px 50% no-repeat;
	padding: 3px 5px 3px 28px;
	border: 1px solid #DDD;
	margin: 4px 0px;
	position: relative;
}

#categoriesAlternative li {
	background: #F5F5F5 url("../../images/default/folder.png") 5px 50% no-repeat;
}

#snippets li:hover,
#categoriesAlternative li:hover {
	background-color:#F0F0F0;
}

#snippets ul.details {
	position: absolute;
	right: 5px;
	top: 2px;
}

#snippets ul.details li {
	display: inline;
	padding: 0;
	border: none;
	font-size: 11px;
	margin-left: 30px;
}

#snippets ul.details li.comments {
	background: transparent url("../../images/default/user_comment.png") left 50% no-repeat;
	padding-left: 25px;
}

#snippets ul.details li.updated {
	background: transparent url("../../images/default/time.png") left 50% no-repeat;
	padding-left: 25px;
}

.sitemapColumn {
	float: left;
	margin-right: 15px;
	width: 30%;
}

.sitemapColumn li {
	list-style-type: disc;
	line-height: 13px;
	margin: 7px 0px 7px 15px;
}

.sitemapColumn ul {
	margin-bottom: 20px;
}

.sitemapColumn h2 {
	border-bottom: 1px solid #DDD;
	padding-left: 5px;
	padding-bottom: 3px;
}

/*** Formular ***/

.form {
	background: #F5F5F5;
	border: 1px solid #DDD;
	padding: 0px 5px;
	width: 670px;
	margin: auto;
}

div.form.small { width: 300px; }
div.form.small label { width: 120px; }

.form div {
	margin: 6px 0px;
}

.form span {
	position: relative;
	display: block;
}

.form span em {
	position: absolute;
	right: 10px;
	line-height: 20px;
	top: 0px;
	color: #999;
}

.text {
	width: 160px;
}

.text.email {
	width: 250px;
}

textarea.text {
	width: 500px;
	height: 100px;
}

input.text,
textarea.text {
	border: 1px solid #AAA;
	font-size: 11px;
	font-family: Trebuchet MS, sans-serif;
	padding: 3px;
	background: white;
}

input.text:focus,
textarea.text:focus {
	border: 1px solid #555;
	background: white;
}

label {
	float: left;
	width: 150px;
	line-height: 20px;
}

label em {
	display: block;
	font-size: 11px;
	line-height: 14px;
	color: #999;
}

/*** Kommentare ***/

.comment {
	width: 80%;
	min-width: 600px;
	margin: 15px auto;
}

.comment .headline {
	padding: 10px 10px 10px 10px;
	font-style: italic;
	font-size: 12px;
}

.comment .commentText {
	padding: 0px 10px 0px 10px;
	text-align: justify;
	background: #F5F5F5;
	border: 1px solid #DDD;
}
