* {
  margin: 0;
  padding: 0;
  border: 0;
}

.normal {
  direction: ltr;
}

.rueck {
  direction: rtl;
}

html, body {
  position: relative;
  height: 100%;
}

html {
  overflow-y: scroll;
  background: #531D1D url(bg/bg.png) top left repeat-x;
}

body {
  margin: 0 auto;
  background: #531D1D url(bg/header_out.png) top center no-repeat;
  width: 1000px;
}

a[href^="http"] {
  background: url(bg/ext.png) no-repeat top right;
  padding-right: 10px;
}

a[href^="https"] {
  background: url(bg/ext.png) no-repeat top right;
  padding-right: 10px;
}

#footer [href^="http"], #nav [href^="http"] {
  background: transparent;
  padding-right: 0;
}

/* DIV */

#main {
  background: transparent url(bg/main_bg.png) top center repeat-y;
}

#container, #footer {
  position: relative;
  background: #143A3A;
  width: 800px;
  border: 2px solid #270300;
  border-width: 0 2px;
  margin: 0 auto;
}

#container {
  position: relative;
  background: #143A3A url(bg/header_mid.png) top center no-repeat; 
}

#header {
  position: relative;
  background: transparent; 
  height: 150px;
  width: 100%;
  border-top: 10px # solid;
}

#header_sub {
  position: absolute;
  background: transparent url(bg/header_logo.png) top left no-repeat;
  width: 350px;
  height: 70px;
  top: 55px;
  left: 100px;
}

#header_homelink {
  display: block;
  width: 350px;
  height: 70px;
}

#nav {
  position: relative;
  float: left;
  width: 13em;
}

#content {
  position: relative;
  background: #e7ebeb url(bg/content_l.png) top left repeat-y;
  float: right;
  width: 41em;
  margin: 3em 1.5em 1em 1em;
}

#content_r {
  background: transparent url(bg/content_r.png) top right repeat-y;
}

#content_bl {
  background: transparent url(bg/content_bl.png) bottom left no-repeat;
}

#content_br {
  background: transparent url(bg/content_br.png) bottom right no-repeat;
  padding-bottom: 1em;
}

#content_tl {
  background: transparent url(bg/content_tl.png) top left no-repeat;
}

#content_tr {
  background: transparent url(bg/content_tr.png) top right no-repeat;
  min-height: 38px;
  padding: 3em 0.5em 1em 0.5em;
}

#footer {
  position: relative;
  padding-top: 80px;
  border-bottom: 3px #270300 solid;
}

p, form, .codeblock, ul {  
  padding-top: 1em;
  margin: 0 20px;
}

ul {
  padding-left: 20px;
}

/* Navigation */

ul.menu, ul.sub {
  list-style-type: none;
  padding: 0;
}

ul.menu li, ul.sub li {
  padding: 0;
  margin-bottom: 0.4em;
}

ul.menu {
  margin: 70px 0px 0 10px;
}

ul.sub {
  display: none;
  margin: 5px 10px 10px 5px;
}

ul.sub li {
  margin-left: 10px;
  text-indent: 0px;
}

#nav a {
  display: block;
  border: 0px solid #E7EBEB;
  border-width: 1px 0;
}

#nav a:hover {
  background: #E7EBEB;
  color: #260300;
}

body.webdesign ul.webdesign,
body.web ul.web,
body.sonstiges ul.sonstiges {
  display: block;
}

body.home #nav a.home,
body.webdesign #nav a.webdesign,
body.web #nav a.web,
body.board #nav a.board,
body.impressum #nav a.impressum,
body.sitemap #nav a.sitemap,
body.sonstiges #nav a.sonstiges {
  background: #531D1D;
  
}


#nav.einleitung a.einleitung,
#nav.equipment a.equipment,
#nav.xhtml a.xhtml,
#nav.stylesheets a.stylesheets,
#nav.php a.php,
#nav.farben a.farben,
#nav.richtlinien a.richtlinien,
#nav.links a.links,
#nav.literatur a.literatur,
#nav.glossar a.glossar,
#nav.artikel_spamschutz a.artikel_spamschutz,
#nav.danke a.danke,
#nav.todo a.todo,
#nav.bewertung a.bewertung, 
#nav.werbung a.werbung { 
  background: #531D1D;
}

/* Klassen */

.clear {
  clear: both;
}

.f_left {
  float: left;
  margin: 1em;
}

.f_right {
  float: right;
  margin: 1em;
}

ul.eins, ul.zwei {
  margin-left: 0;
  list-style-type: none;
}

ul.zwei {
  padding-top: 0;
}

ul.eins li {
  margin-top: 0.8em;
}

ul.zwei li {
  margin-top: 0.4em;
}

.ul_sur {
  float: left;
  padding: 0em 0.8em 0.8em 0em;
  margin: 1em 0 1em 4em;
}

.opacity {
  opacity: 0.4;
 
}

.opacity:hover {
  opacity: 1.0;

}

.social {
  border: 1px solid #c5c9c9;
}

.netcup {
  background: #E7EBEB;
  border: 2px #270300 solid;
  margin: 0.5em 1em;
}

.codeblock {
  background: #f7f6e8;
  margin-top: 10px;
  padding: 0.2em 0.4em;
  border: 1px solid #c5c9c9;
}

.werbebanner {
  margin-left: 20px;
  float: right;
}

.gutschein {
  width: 12em;
  list-style-type: none;
  padding: 0.5em;
  text-align: center;
  font-weight: bold;
  border: 1px solid #c5c9c9;
}

.literatur div.literatur {
  position: relative;
  border: 2px solid #c5c9c9;
  margin: 2em 1em 0 1em;
  padding-bottom: 1em;
}

.literatur img {
  margin: 1em;
  border: 1px solid black; 
}

.literatur a.left {
  float: left;
  position: relative;
}

.literatur a.left span {
  position: absolute;
  width: 100%;
  bottom: 0em;
  left: 20px;
  font-size: 0.9em;
  font-style: italic;
}

/* Bilder */

.imgLeft {
  float: left;
  margin: 12px 5px 1.6em 20px;
}

.imgRight {
  float: right;
  margin: 12px 10px 1.6em 5px;
}

.imgLeft, .imgRight {
	background: url(bg/schatten.png) no-repeat bottom right;
  position: relative; /*necessary for fucking IE6*/	
  text-align: center;
}

.imgRight span, .imgLeft span {
  position: absolute;
  width: 100%;
  bottom: -1.2em;
  left: 0;
  font-size: 0.9em;
  font-style: italic;
}

.imgLeft img, .imgRight img {
  display: block;
  position: relative; /*necessary for fucking IE6*/
  background-color: #fff;
  margin: -3px 3px 3px -3px;
	padding: 4px;
	border: 1px solid #666;
}

/* Tabelle */

table {
  margin: 1em 0 1em 1em;
  border: 0px solid #c5c9c9;
  width: 38em;
}

td, th {
  border: 1px solid #c5c9c9;
  margin: 0;
  background: #f7f6e8;
}

td, th {
  padding: 0.4em 0.5em;
  vertical-align: top;
}

th.name {
  width: 12em;
}

td.newlink {
  background-image: url(bg/new.png);
  background-repeat: no-repeat;
  padding-top: 1em;
}

/* Textarea */

#content.danke textarea {
  border: 1px solid #c5c9c9;
  padding: 3px;
  margin: 10px 0;
  width: 35em;
}
