﻿/*
Theme Name: Cvtx-Theme SPD
Theme URI: http://cvtx-project.org
Description: Wordpress-Theme for the cvtx-plugin (SPD version).
Author: Max Löffler & Alexander Fecke
Author URI: http://cvtx-project.org
Version: 0.1

License:
License URI:

*/
@font-face {
    font-family: TheSans;
    src: url(http://spd-landesparteitag.de/font/thesans-lp5plain-webfont.eot);
    src: url(http://spd-landesparteitag.de/font/thesans-lp5plain-webfont.eot?#iefix) format('embedded-opentype'),
         url(http://spd-landesparteitag.de/font/thesans-lp5plain-webfont.woff) format('woff'),
         url(http://spd-landesparteitag.de/font/thesans-lp5plain-webfont.ttf) format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: TheSans;
    src: url(http://spd-landesparteitag.de/font/thesans-lp7bld-webfont.eot);
    src: url(http://spd-landesparteitag.de/font/thesans-lp7bld-webfont.eot?#iefix) format('embedded-opentype'),
         url(http://spd-landesparteitag.de/font/thesans-lp7bld-webfont.woff) format('woff'),
         url(http://spd-landesparteitag.de/font/thesans-lp7bld-webfont.ttf) format('truetype');
    font-weight: bold;
}

body {
  font-family: TheSans, Calibri, sans-serif;
  background: white;
  margin:0px;
  padding:0px;
}

body.overlay {
	overflow-y: hidden;
}

.wp_themeSkin iframe { 
  background: #fff !important;
  color:#000;
}

a {
  text-decoration: none;
  color: #e3000f;
}

a:hover, a:focus, a:active {
  color: #999;
}

/**
 * Structure
 */

.wrapper {
  width: 95%;
  padding: 0 2.5%;
  margin: 0 auto;
  position: relative;
}

header,
#header {
  background: url('images/silhouette.png') bottom center repeat-x;
  padding:0px;
  height:300px;
  position: relative;
}

#headerimg {
  position: absolute;
  margin-top:2.5em;
}

#content {
  background: white;
  width: 100%;
  min-height: 100px;
  float:left;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  border-top-right-radius:6px;
  margin-bottom:1em;
}

#c_wrap {
  margin-top:10px;
}

#sidebar {
  width: 100%;
  float: right;
  min-height:100px;
}

#footer {
  clear: both;
  background: #e6e6e6;
  padding: 20px;
  font-size:0.8em;
  border-top: 6px solid #e3000f;
}

@media (min-width: 680px) {
  #sidebar ul.side li {
    float: left;
    width: 274px;
    margin-right: 10px;
  }
}

@media (min-width: 970px) {
  header, #header {
    height:445px;  
  }
  #headerimg {
    margin-top:4.5em;
  }
  .wrapper {
    width: 941px;
    padding: 0;
  }
  #content {
    width: 610px;
  }
  #c_wrap {
    padding: 20px 20px 1px 0;
  }
  #content .inner {
    padding: 0px 15px 15px 15px;
  }
  #sidebar {
    width: 274px;
    margin-right: 20px;
  }
  #sidebar ul.side li {
    float: none;
    width: auto;
    margin-right: 0px;
  }
  #footer {
    margin-right: 20px;
  }
}

#content h2:first-child {
  margin-top: 0;
}

#page-foot {
  padding: 15px 20px;
  font-size: 12px;
  color: #999;
}

#footer a {
  color: black;
}

#footer a:hover {
  color: #e3000f;
}

#footer h4 {
  text-transform: uppercase;
  color: #980065;
  font-weight: normal;
  margin-top: 0px;
  font-size: 14px;
}

#footer ul {
  padding: 0;
  margin: 0;
}

#footer > ul > li {
  display: block;
  float: left;
  margin: 12px 20px 10px 0;
  width: 17%;
  height: 220px;
}

#footer > ul > li > ul > li {
  margin: 8px 0;
  font-size: 12px;
}

#footer > ul li {
  list-style: none;
}

div.spd-cvtx-entry {
  padding-left: 15px;
}

div.spd-cvtx-entry.antrag {
  border-left: 5px solid #e3000f;
}

div.spd-cvtx-entry.ak-version {
  border-left: 5px solid #980065;
}

div.spd-cvtx-entry.allgemein {
  border-left: 5px solid #999;
}

#ae_antraege > h3.top {
  text-transform: uppercase;
  font-size:1.1em;
  padding:7px 13px 7px 13px;
  margin: 25px -15px 0px -15px;
  background: #980065;
  color: white;
}

#ae_antraege > ul {
  margin: 0;
  padding: 0;
  font-size: 0.9em;
}

#ae_antraege > ul > li {
  list-style: none;
  padding: 15px 0 1em 15px;
  -moz-box-shadow:inset 0 1px rgba(153,153,153,0.2);
  -webkit-box-shadow:inset 0 1px rgba(153,153,153,0.2);
  -o-box-shadow:inset 0 1px rgba(153,153,153,0.2);
  -ms-box-shadow:inset 0 1px rgba(153,153,153,0.2);
  box-shadow:inset 0 1px rgba(153,153,153,0.2);
}

#ae_antraege > ul > li > h4.title, strong.title-ak {
  color: #980065;
}

#ae_antraege > ul > li > h4.title.top {
  margin-top: 0;
}

#ae_antraege > ul > li > h4.title.poll {
  margin-bottom: 0;
}

#ae_antraege > ul > li.cvtx-declined {
  border-left: 5px solid #e3000f;
  background: rgba(227,0,15,0.02);
}

#ae_antraege > ul > li.cvtx-accepted {
  border-left: 5px solid #4e8816;
  background: rgba(78,136,22,0.02);
}

#ae_antraege > ul > li.cvtx-done {
  border-left: 5px solid #999;
  background: rgba(153,153,153,0.02);
}

/**
 * Menu
 */
nav {
  position: absolute;
  bottom: 20px;
}

nav ul {
  padding:0px;
  margin:0px;
}

nav ul li {
  float: left;
  margin-right:1px;
  padding: 0px;
  list-style:none;
}

nav ul li a {
  color: #fff;
  display: block;
  text-transform: uppercase;
  font-family: TheSans, Calibri, sans-serif;
  font-weight: bold;
  font-size: 17px;
  padding: 0 10px;
  line-height: 40px;
}

nav ul li.current_page_item {
  background: white;
  color: #e3000f;
}

nav ul li.current_page_item a {
  color: #e3000f;
}

nav ul li a:hover {
  background: white;
  color: #980065;
}

nav div.inside {
  clear: both;
}

/* Second Level */
nav ul li ul.depth-0 {
	display: none;
	position: absolute;
	border-radius: 7px;
	background: rgba(255,255,255,0.94);
	margin-left: -5px;
	margin-top: 9px;
  padding-bottom: 8px;
}

nav ul.menu li span.arrow {
	height: 8px;
	width: 17px;
	margin-top: -7px;
	z-index: 100;
	position: absolute;
	background: url(images/menu_up.png);
}

nav ul li ul li {
	background: transparent;
	float: none;
	margin-top:5px;
	padding: 5px 0px 0px 10px;
	border-top: 1px solid rgba(0,0,0,0.05);
	border-radius: 0px;
	min-width:150px;
}

nav ul li ul li ul {
	margin: 0px;
	padding: 0px;
}

/* Third Level */

nav ul li ul li.current_page_item {
	background: transparent;
}

div.filler {
  height: 2em;
  width: 100%;
  background: #980065;
}

.ae_antraege_overlay {
  position: absolute;
  top:0px;
  left:0px;
  background: rgba(0,0,0,0.6);
}

#ae_window {
  position: relative;
  left:50px;
  background: white;
  z-index: 1000;
  border-radius:5px;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.4);
  -webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.4);
  -moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.4);
}

#ae_window .navi {
  height:1.8em;
  background: rgba(0,0,0,0.2);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-size:0.8em;
  padding-top:0.4em;
}

#ae_window .result {
  padding: 5px 15px;
  overflow: auto;
  position: relative;
}

#ae_window td.verfahren {
	width: 75px;
}

span.replace {
  text-indent:-9999px;
}

.navi .close {
  background: url(images/cross.png) no-repeat;
  width:20px;
  height:20px;
  display: block;
  margin-left:10px;
  float: left;
}

.navi .print {
  background: url(images/printer.png) no-repeat;
  margin-right:12px;
  width:20px;
  height:20px;
  display: block;
  float: right;
}

/**
 * Header
 */
header .wrapper {
  height: 100%;
}

#header.mail {
  box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
  -webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
  -moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.3);    
}

#spd {
  width: 150px;
  height: 150px;
  position: absolute;
  right: 0px;
  margin-top:2.5em;
}

header h1 a,
#header h1 a {
  text-transform: uppercase;
  text-decoration: none;
  font-size:1.2em;
}

header h1,
#header h1 {
  margin-top:0px;
  margin-bottom: 0.2em;
  color: #980065
}

header .description,
#header .description {
  color: black;
  text-transform: uppercase;
}

/**
 * Content
 */

#content .inner .entry {
  font-size:0.9em;
}

.clear-block {
  clear: both;
}

.postmetadata {
  padding:0.5em 1em;
  clear: both;
  background: #e6e6e6;
}

/**
 * Sidebar
 */
#sidebar ul.side {
  padding:0px;
  margin:0px;
}

#sidebar ul.side li {
  background: white;
  list-style-type: none;
  padding: 15px 15px 15px;
  font-size:0.9em;
  margin-bottom:10px;
}

#sidebar ul.side li ul li {
  padding: 0.5em;
  margin: 0px;
}

#sidebar ul.side li#first {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

#sidebar ul.side li > h2 {
  text-transform: uppercase;
  font-size:1.1em;
  padding:7px 13px 7px 13px;
  margin: -15px -15px 0px -15px;
  background: #980065;
  color: white;
}

#sidebar ul.side li.widget ul li {
  list-style: disc;
}

#sidebar ul.side li.widget_countwidget {
  background: url(images/statistik.png) no-repeat bottom right white;
}

#sidebar ul.side li.widget_rss_aeantrag_widget .inner {
  background: url(images/rss.png) no-repeat top right white;
  padding-right: 40px;
}

/**
 * Antraege
 */
 
del {
	color: red;
}

ins {
	color: green;
}
 
ul#antraege {
  margin: 0px;
  padding:0px;
  list-style:none;
}

ul#antraege li.top > ul {
  padding-right: 15px;
}

ul#antraege li.top h3 {
  padding:0.5em 0.7em;
  background: #fafafa;
  border-top-left-radius:3px;
  border-top-right-radius:3px;
  margin:0px;
}

ul#antraege li.top {
  clear: both;
  background: url(images/verlauf2.png) bottom repeat-x;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  padding-bottom:1em;
  border: 1px solid #eee;
  margin-bottom: 1em;
  margin-top: 1em;
}

ul#antraege li.top div.top_content {
  padding: 1em 2em;
}

ul#antraege li.rss p {
  font-size: 0.8em;
  margin: 1em 1em 0 1em;
}

ul#antraege li.rss h3 {
  background: url(images/rss.png) right top no-repeat #fafafa;
}

ul#antraege li.top div.top_info {
  font-size: 0.8em;
  margin: 1em;
}

ul#antraege li.top ul li.antrag span.steller,
ul#antraege li.top ul li.antrag span.version-ak {
  font-size:0.8em;
}

ul#antraege li.top ul li.antrag span.version-ak strong.title-ak {
  color: black;
}

ul#antraege li.overview ul li a {
  text-decoration: none;
}

ul#antraege li.overview ul li {
  margin-top:0.8em;
  font-size:0.9em;
}

ul#antraege li.top ul li.antrag, 
ul#antraege li.top ul li.application {
  list-style:url(images/arrow.png);
}

ul#antraege li.top h4 {
  margin-bottom:0.5em;
}

ul#antraege li.top ul li.antrag ul,
ul#antraege li.top ul li.application ul, 
ul#antraege li.top div.top_content ul {
  margin-top:0.5em;
  padding:0px;
}

ul#antraege li.top div.top_content ul.options li {
  font-size: 0.9em;
}

ul#antraege li.top ul.options li {
  list-style: none;
  margin-right:10px;
  font-size:0.8em;
  float:left;
  margin-bottom:1em;
}

ul#antraege li.top ul.ae_antraege li {
  float:none;
  list-style:none;
  margin-left:1em;
  line-height:1.5em;
}

ul#antraege li.top ul.ae_antraege li span {
  font-weight: bold;
}

ul#antraege li.top ul.ae_antraege {
  clear: both;
  margin-top:1em;
  font-size:0.8em;
}

ul#antraege li.top div.top_content ul.ae_antraege {
  font-size: 0.9em;
}

#ae_antraege table {
  font-size:0.8em;
  width:100%;
}

#ae_antraege table tr td.text {
  width: 40%;
}

#ae_antraege table tr td {
  padding-right:10px;
}

#ae_antraege table tr td{
  border-bottom:1px solid #eee;
  vertical-align: top;
  padding: 1em;
}

#ae_antraege table tr td p {
  margin:0;
}

#ae_antraege table th {
  text-align:left;
  padding-bottom:5px;
  padding-right:10px;
}

#ae_antraege td.verfahren span.procedure {
	display: none;
	background: white;
	border-radius: 3px;
	width: 150px;
	padding: 10px;
	position: absolute;
	z-index: 110;
	margin-left: -180px;
	margin-top: -15px;
}

#ae_antraege td.verfahren span.procedure p {
	margin-top: 1em;
}

#ae_antraege td.verfahren span.procedure span.arrow {
	display: block;
	height: 10px;
	width: 5px;
	position: absolute;
	margin-top: -6px;
	margin-left: 160px;
	background: url(images/procedure_up.png) no-repeat;
}

#ae_antraege td.verfahren span.flag {
	display: block;
	height: 10px;
	width: 10px;
	background-color: #afafaf;
	border-radius: 10px;
}

#ae_antraege td.verfahren span.flag.a {
	background-color: green;
}

#ae_antraege td.verfahren span.flag.b {
	background-color: #ff9900;
}

#ae_antraege td.verfahren span.flag.c {
	background-color: red;
}

#ae_antraege tr.withdrawn {
	color: #afafaf;
}

#ae_antraege tr.withdrawn td.verfahren {
	color: black;
}

.form-required {
    color: red;
}

form.cvtx_form label {
    font-weight: bold;
    color: #333;
    display: block;
}

form.cvtx_form .form-item {
    margin: 1em 0;
    font-size: 12px;
    padding: 0px 14px;
}

form.cvtx_form div.form-group {
    border: 1px solid #eee;
    padding: 0em 1em 1em;
    margin-top:1em;
}

form.cvtx_form span.ending {
    color: grey;
}

/*
#add_aeantrag form,
#add_aeantrag p {
    font-size:0.8em;
}
*/

/*
form input,
form textarea {
    background: url(images/verlauf2.png) bottom repeat-x;
    border: 1px solid #eee;
    padding: 0.3em;
    border-radius:3px;
}
*/
form input.submit {
  font-weight: bold;
  padding: 1em;
  background: white;
  font-size:0.8em;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius:3px;
}

.cvtx_form fieldset {
	background-color: #eee;
	border: 1px solid lightGrey;
	border-bottom-left-radius: 3px 3px;
	border-bottom-right-radius: 3px 3px;
	border-top-left-radius: 3px 3px;
	border-top-right-radius: 3px 3px;
	clear: both;
	margin: 15px 0px;
}

.cvtx_form fieldset .legend {
	color: #900;
	font-size: inherit;
	margin: 5px 14px;
	padding: 0px 6px;
}

.cvtx_form fieldset .legend h3 {
	font-size: 20px;
}

#searchsubmit {
	padding: 0.3em 0.8em;
  font-weight: bold;
  background: white;
  font-size:0.8em;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius:3px;
}

input {
    padding: 0.4em 0.8em;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius:3px;
}

.cvtx_form input {
    border: 1px solid rgba(0,0,0,0.2);
}

.cvtx_form #cvt_application_photo {
    border: none;
    box-shadow: none;
}

p#message {
  background: #fafafa;
  padding:1em;
  border-radius: 4px;
  border: 1px solid #333;
}

p#message.error {
  background: #fef5f1;
  border-color: #ed541d;
}

p#message.success {
  background: #f8fff0;
  border-color: #be7;
}

p#message ul {
  margin-top: 0.8em;
  margin-bottom:0px;
}

form.cvtx_antrag_form .error {
  border-color: red;
}

ul.reader_list li h4 {
  margin:0em;
}

ul.reader_list li {
  padding-top: 7px;
}

#wp-admin-bar-cvtx-default li span.pending-count {
  text-shadow: none;
  color: red;
}

/* Application */
div.cvtx_application .entry {
    float:left;
    width: 424px;
}

div.cvtx_application .metainfos {
    margin-left: 434px;
    width: 160px;
    padding: 10px;
    background: #cdd9cd;
    font-size: 0.8em;
}

div.cvtx_application .metainfos p {
    margin-bottom: 1em;
    font-size: 0.85em;
    color: #0A321E;
    font-weight: bold;
    text-transform: uppercase;
}

div.cvtx_application .metainfos span {
    display: block;
    font-size: 1.2em;
    font-weight: normal;
    color: #000;
    text-transform: none;
}

/* =Images
-------------------------------------------------------------- */

/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
.alignleft,
img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
.alignright,
img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 4px;
}
.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}
.wp-caption {
	background: #f1f1f1;
	line-height: 18px;
	margin-bottom: 20px;
	max-width: 632px !important; /* prevent too-wide images from breaking layout */
	padding: 4px;
	text-align: center;
}
.wp-caption img {
	margin: 5px 5px 0;
}
.wp-caption p.wp-caption-text {
	color: #888;
	font-size: 12px;
	margin: 5px;
}
.wp-smiley {
	margin: 0;
}
.gallery {
	margin: 0 auto 18px;
}
.gallery .gallery-item {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 33%;
}
.gallery-columns-2 .gallery-item {
	width: 50%;
}
.gallery-columns-4 .gallery-item {
	width: 25%;
}
.gallery img {
	border: 2px solid #cfcfcf;
}
.gallery-columns-2 .attachment-medium {
	max-width: 92%;
	height: auto;
}
.gallery-columns-4 .attachment-thumbnail {
	max-width: 84%;
	height: auto;
}
.gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
}
.gallery dl {
	margin: 0;
}
.gallery img {
	border: 10px solid #f1f1f1;
}
.gallery br+br {
	display: none;
}
#content .attachment img {/* single attachment images should be centered */
	display: block;
	margin: 0 auto;
}

/* =Comments
-------------------------------------------------------------- */
#comments {
	clear: both;
}
#comments .navigation {
	padding: 0 0 18px 0;
}
h3#comments-title,
h3#reply-title {
	color: #000;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 0;
}
h3#comments-title {
	padding: 24px 0;
}
.commentlist {
	list-style: none;
	margin: 0;
}
.commentlist li.comment {
	border-bottom: 1px solid #e7e7e7;
	line-height: 24px;
	margin: 0 0 24px 0;
	padding: 0 0 0 56px;
	position: relative;
}
.commentlist li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}
#comments .comment-body ul,
#comments .comment-body ol {
	margin-bottom: 18px;
}
#comments .comment-body p:last-child {
	margin-bottom: 6px;
}
#comments .comment-body blockquote p:last-child {
	margin-bottom: 24px;
}
.commentlist ol {
	list-style: decimal;
}
.commentlist .avatar {
	position: absolute;
	top: 4px;
	left: 0;
}
.comment-author {
}
.comment-author cite {
	color: #000;
	font-style: normal;
	font-weight: bold;
}
.comment-author .says {
	font-style: italic;
}
.comment-meta {
	font-size: 12px;
	margin: 0 0 18px 0;
}
.comment-meta a:link,
.comment-meta a:visited {
	color: #888;
	text-decoration: none;
}
.comment-meta a:active,
.comment-meta a:hover {
	color: #ff4b33;
}
.commentlist .even {
}
.commentlist .bypostauthor {
}
.reply {
	font-size: 12px;
	padding: 0 0 24px 0;
}
.reply a,
a.comment-edit-link {
	color: #888;
}
.reply a:hover,
a.comment-edit-link:hover {
	color: #ff4b33;
}
.commentlist .children {
	list-style: none;
	margin: 0;
}
.commentlist .children li {
	border: none;
	margin: 0;
}
.nopassword,
.nocomments {
	display: none;
}
#comments .pingback {
	border-bottom: 1px solid #e7e7e7;
	margin-bottom: 18px;
	padding-bottom: 18px;
}
.commentlist li.comment+li.pingback {
	margin-top: -6px;
}
#comments .pingback p {
	color: #888;
	display: block;
	font-size: 12px;
	line-height: 18px;
	margin: 0;
}
#comments .pingback .url {
	font-size: 13px;
	font-style: italic;
}

/* Comments form */
input[type=submit] {
	color: #333;
}
#respond {
	border-top: 1px solid #e7e7e7;
	margin: 24px 0;
	overflow: hidden;
	position: relative;
}
#respond p {
	margin: 0;
}
#respond .comment-notes {
	margin-bottom: 1em;
}
.form-allowed-tags {
	line-height: 1em;
}
.children #respond {
	margin: 0 48px 0 0;
}
h3#reply-title {
	margin: 18px 0;
}
#comments-list #respond {
	margin: 0 0 18px 0;
}
#comments-list ul #respond {
	margin: 0;
}
#cancel-comment-reply-link {
	font-size: 12px;
	font-weight: normal;
	line-height: 18px;
}
#respond .required {
	color: #ff4b33;
	font-weight: bold;
}
#respond label {
	color: #888;
	font-size: 12px;
}
#respond input {
	margin: 0 0 9px;
	width: 98%;
}
#respond textarea {
	width: 98%;
}
#respond .form-allowed-tags {
	color: #888;
	font-size: 12px;
	line-height: 18px;
}
#respond .form-allowed-tags code {
	font-size: 11px;
}
#respond .form-submit {
	margin: 12px 0;
}
#respond .form-submit input {
	font-size: 14px;
	width: auto;
}

span.color-red {
  color: #e3000f;
}

span.color-lila {
  color: #980065;
}

span.color-grau {
  color: #999;
}