@import url(/theme/css/fonts.css);

* {
	box-sizing: border-box;
	sacrifice: goat;
}

html, button, input, select, textarea,
.pure-g [class *= "pure-u"] {
	background-color: #fcfcfc;
	font-family: "Open Sans", sans-serif;
	font-weight: 200;
}

body, html {
	overflow-x: hidden;
}

a, a:hover, a:active, a:focus {
	outline: none;
	color: #2a7cb4;
	text-decoration: none;
}

#header {
	position: relative;
	width: 100%;
	height: 0;
	display: block;
}

#state {
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 1em;
	padding-right: 1em;
}

.state_closed #state, .state_closed #statebar {
	background-color: #B42A35;
}

.state_open #state, .state_open #statebar {
	background-color: #2ab433;
}

.state_closed.state_is_uncertain #state, .state_closed.state_is_uncertain #statebar {
	background-color: #AE6167;
}

.state_open.state_is_uncertain #state, .state_open.state_is_uncertain #statebar {
	background-color: #76b77a;
}

.state_closed #state .text:after {
	content: "Subraum zu";
}

.state_open #state .text:after {
	content: "Subraum offen";
}

.state_closed.state_is_uncertain #state .text:after {
	content: "Subraum evtl. zu";
}

.state_open.state_is_uncertain #state .text:after {
	content: "Subraum evtl. offen";
}

.state_closed #state i::before {
	content: "\f204";
}

.state_open #state i::before {
	content: "\f205";
}

.pure-form {
	padding-left: 1em;
	padding-right: 1em;
	font-size: 80%;
}

.pure-menu-horizontal .pure-form {
	margin-top: 0.2em;
	margin-bottom: -0.2em;
}

.pure-menu .pure-form input {
	background-color: #404040;
	border: thin solid #333;
	box-shadow: 0px 1px 3px #333 inset;
	color: #fff;
}

.pure-form input {
	font-family: "Open Sans", sans-serif;
}

.pure-form i.fa-search {
	position: absolute;
	right: 1.7em;
	padding-top: 0.6em;
}

/* Thanks Obama. */
::-webkit-input-placeholder,
:-moz-placeholder, /* Firefox 18- */
::-moz-placeholder, /* Firefox 19+ */
:-ms-input-placeholder {
	color: #FFF;
}

div#menu > div {
	border: 0px;
}

div#menu,
div#menu div.pure-menu {
	background: #191818;
	color: #FFF;
	font-family: "Open Sans", sans-serif;
	font-weight: 300;
}

.pure-menu a {
	color: #FFF;
}

div.logo {
	width: 100%;
	margin: 0px auto;
}

div.logo > a > img {
	max-width: 100%;
	max-height: 6em;
	border: 0px;
	margin: 0px auto;
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 1em;
	padding-bottom: 0.5em;
}

div.logo-text {
	display: inherit;
}

div.logo-notext {
	display: none;
}

div#logo > a {
	border: 0px;
}

div.pure-u-lg-1-2 {
	width: 49%;
}

@media screen and (min-width: 48em) {
	section#content.landing {
		background-image: url(/theme/img/background-horiz.svg) !important;
	}

	#statebar {
		width: 100%;
		height: 3px;
		position: fixed;
		top: 0;
		z-index: 1;
	}

	#state {
		position: fixed;
		right: 0px;
		top: 0px;
		border-bottom-left-radius: 5px;
		z-index: 1000;
	}

	div.logo-text {
		display: none;
	}

	div.logo-notext {
		display: inherit;
	}

	div#layout > div#menu {
		top: 0px;
		bottom: 0px;
		left: 0px;
		overflow-y: auto;
		position: fixed;
		max-width: 11em;
	}

	div.pure-menu-horizontal {
		padding-right: 140px;
	}

	div#content.withmenu {
		margin-left: 10.99em;
	}

	div.logo > img {
		max-height: 100%;
	}
}

@media screen and (min-width: 100em) {
	/*
	.entry-content {
		-webkit-column-width: 40em;
		-webkit-column-gap: 2.5em;
		-moz-column-width: 40em;
		-moz-column-gap: 2.5em;
		column-width: 40em;
		column-gap: 2.5em;
	}
	*/
	.entry-content {
		max-width: 70em;
		margin: auto;
	}
}

img {
	object-fit: contain;
	border: thin #ccc solid;
	max-width: 95%;
}

video {
	max-width: 95%;
}

div.box {
	padding: 1em;
}

div#footer {
	padding-top: 1em;
}

h1, h2, h3, h1 > a {
	margin-top: 15px;
	margin-bottom: 0px;
	color: #000;
	text-decoration: none;
	font-weight: 500;
	font-family: "Advent Pro";
}

h1 > img.author-img {
	width: 1em;
	height: 1em;
}

h2 {
	margin: 0px;
	margin-top: 5px;
	margin-bottom: 1em;
}

section#content > h1 {
	border-bottom: thin dashed #ccc;
	padding-left: 20px;
}

section#content div.landing {
	max-width: 70em;
	margin: auto;
	background-color: #fcfcfc;
	opacity: 0.9;
	text-shadow: 0px 0px 2px #CCC;
}

section#content.landing {
	background-image: url(/theme/img/background-vert.svg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 70em;
}

.pure-menu li a:hover, .pure-menu li a:focus {
	background: #333;
}

.pure-menu-selected {
	background: #2980B9;
}

.pure-menu-selected > a {
	color: #FFF !important;
}

.pure-menu-selected > a:hover  {
	background: #303030 !important;
}

.FlattrButton {
	float: left;
	margin-right: 1em;
	height: 2em;
}

footer {
	clear: both;
	text-align: center;
	padding-bottom: 1em;
	overflow: hidden;
	position: relative;
}

footer.post-info {
	display: block;
	margin-top: 1em;
	border-top: thin dotted #ccc;
	padding-top: 0.5em;
}

footer.post-info .tag-list,
footer.post-info .author-list,
footer.post-info .edit-link {
	display: inline;
	margin-top: auto;
	margin-bottom: auto;
	padding: 0 0.2em;
}

.author-list {
	float: left;
}

.author-list a {
	text-decoration: none;
}

footer.post-info .tag-list {
	float: right;
	padding-left: 1em;
	padding-right: 0.5em;
}

footer.post-info .edit-link {
	float: right;
	margin-top: 0.2em;
	margin-left: 0.1em;
}

footer.post-info span.modified {
	padding-right: 1em;
	padding-left: 1em;
	margin: auto;
}

img.author-img {
	width: 2em;
	height: 2em;
	border-radius: 50%;
}

a.pure-menu-heading,
li.menu-item-divided {
	border-bottom: thin solid #333;
}

div.pure-menu-horizontal li.menu-item-divided {
	border-bottom: inherit;
	border-left: thin solid #333;
	height: 2em;
}

a.pure-menu-heading {
	font-weight: bold;
}

pre, code {
/* This is not working in IE and Firefow.
Also We would need to avoid 'column break after heading'. That's not easy.

	-webkit-column-break-inside: avoid;
	-moz-column-break-inside: avoid;
	column-break-inside: avoid;
*/
	padding-left: 0.2em;
	padding-right: 0.2em;
	background-color: #FFF;
	font-family: "PT Mono", monospace, serif;
}

/*TODO: The markdown compiler confuses code and pre.*/
div.highlight pre,
div.highlight code {
	border: 1px solid #e1e4e5;
	border-left: 3px solid #3498db;
	padding: 0.8em;
	font-size: 90%;
}

.post-thumbnail img {
	height: auto;
	max-width: 100%;
	width: 100%;
	border: none;
}

h1.entry-title {
	padding-top: 1px;
	position: relative;
	text-align: center;
	opacity: 0.7;
}

h1.entry-title.nodate {
	margin-top: 2em;
	margin-bottom: -0.5em !important;
	padding-top: 0.5em !important;
	opacity: 0.9;
}

header {
    padding-bottom: 2em;
}

header,
.entry-content {
	position: relative;
	display: block;
	background-color: #fcfcfc;
	line-height: 1.5;
}

header.has-cover {
	margin-top: -5.5em;
	opacity: 0.7;
}

header.nodate {
	opacity: 0.9;
}

header.has-cover h1.entry-title,
header.has-cover .date {
	margin: 0;
	padding: 0;
	font-weight: 500;
	font-family: "Advent Pro";
	text-align: center;
}

header,
.entry-content,
footer {
	padding-right: 20px;
	padding-left: 20px;
}

.date {
	color: #666;
	text-align: center;
}

article.index-entry {
	padding-bottom: 1em;
	border-bottom: thin solid #333;
}

article.index-entry:last-child {
	padding: 0px;
	border: 0px;
}

.paginator {
	text-align: center;
}

/* Image styling */
.lfloat {
	float: left;
	margin-left: 0;
	margin-right: 1em;
	margin-bottom: 1em;
}
.rfloat {
	float: right;
	margin-left: 1em;
	margin-right: 0;
	margin-bottom: 1em;
}
.smallimg { width: 15%; }
.mediumimg { width: 30%; }
.largeimg { width: 50%; }

/* CCC Hamburg tags. */
.post-category {
	background-image: url("/theme/img/tag.svg");
	background-repeat: no-repeat;
	background-size: cover;
	background-origin: border-box;
	background-position: center left;

	border-radius: 0px 4px 4px 0px;

	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2727272727;
	text-decoration:none;
	text-transform: uppercase;

	padding: 0.5em 1em 0.5em 1.5em;
	margin-left: 1em;
	margin-top: 5px;

	display: inline-block;
	position: relative;
}

.post-category:hover {
	background-image: url("/theme/img/tag-hover.svg");
	color: #fff;
}

.post-category:hover:before {
	border-right-color: #3498DB;
}

.post-category:before {
	background-color: #fff;
	border-radius: 50%;
	content: "";
	height: 5px;
	position: absolute;
	top: 0.9em;
	left: 8px;
	width: 5px;
}


/* Galery styling */

.gallery {
	padding: 0;
	-moz-columns: 15em;
	-webkit-columns: 15em;
	columns: 15em;
	-moz-column-gap: 0em;
	-webkit-column-gap: 0em;
	column-gap: 0em;
	line-height: 0;
	clear: both;
	list-style-type: none;
}

.gallery img{
	padding: 0.2em;
	display: inline-block;
	width: 100%;
	max-width: 100%;
	border: none;
}

.covid_banner {
	color: #B42A35;
	text-align: center;
	font-weight: 500;
	border: solid 0.2em #B42A35;
	padding: 1em;
	margin-bottom: 3em;
	background-color: #BF7C8124;
}

/* rendering fix für Satzung */
#Satzung\ und Beitragsordnung {
	counter-reset: parPrefix;
}

h2.parPrefix {
	padding-left: 30px;
	left: 15px;
	position: relative;
}

h2.parPrefix ~ ol {
	padding: 0 0 0 45px;
}

.parPrefix::before {
	counter-increment: parPrefix;
	content: "§" counter(parPrefix);
	position: absolute;
	left: -15px;
}