/*
Theme Name: Blankslate DGPP 2019
Theme URI: http://dgpp.de/de
Author: Felix Caffier
Author URI: http://trisymphony.compact
Description: 2019 redesign of the DGPP website, based on Blankslate
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blankslate

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* resets -------------------------------------------------------------- */

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,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,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video { 
	font-size:100%;
	font:inherit;
	padding:0;
	border:0;
	margin:0;
	vertical-align:baseline;
}

ol,ul{list-style:none}

blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}

table{border-collapse:collapse;border-spacing:0}

article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display:block }

.clear{clear:both}

.sticky{} .bypostauthor{} .wp-caption{} .wp-caption-text{} .gallery-caption{} .alignright{} .alignleft{} .aligncenter{} .screen-reader-text { clip:rect(1px, 1px, 1px, 1px); position:absolute !important }

/* html, body, grid containers -------------------------------------------------------------- */

html {
	padding: 2% 2% 0 2%;
	
    background-color: #efcca3;
    background-image: url("img/background.jpg");
    background-repeat: repeat;
    background-position: 0% 30%;

	color: #111;
	font-family: Calibri, sans-serif;
	font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	-moz-font-smoothing: antialiased;
	-webkit-font-smoothing: antialiased;
	
	font-size: 1em;
	line-height: 1.2em;
}

body {
	margin: 0 auto 2% auto;
	max-width: 1800px;
	
	display:grid;
	grid-template-columns: 340px auto;
	grid-template-rows: 85px auto 4% 100px;
	grid-gap: 0% 0%;

	grid-template-areas: 
		"sidebar toparea"
		"sidebar content"
		"sidebar footer";
}

#content {
	grid-area: content;
	box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.1);
	background-color: rgba(255,255,255, 0.8);
	margin: 20px 0 30px 0;
	border-radius: 0 3px 3px 0;
}

#content-text {
	padding: 50px 5% 5% 5%;
	text-align: justify;
}

.sitehead {
	background-color: #fff;
	font-size: 2.3em;
	padding: 0.6em 5% 0.6em 5%;
	margin: 0;
	border-radius: 0 3px 0 0;
	font-weight: bold;
	color: #668065;
	font-style: italic;
	box-shadow: -5px 5px 15px 0 rgba(0,0,0,0.03);
}

/* sidebar -------------------------------------------------------------- */

#sidebarLeft {
	grid-area: sidebar;
	height: 98%;
	z-index: 1;
	
	padding: 30px;
	
	background-color: #fff;
	box-shadow: 5px 0 15px 5px rgba(0,0,0,0.07);
	border-radius: 3px;
}

#sidebarLeft h1 {
	display: block;
	font-weight: bolder;
	font-style: italic;
	font-size: 1.5em;
	
	margin: 0 0 0.8em 0;
	padding: 0 0 0 0.5em;
	
	color: #668065;
}

/* navigation -------------------------------------------------------------- */

.navMain, .navService, .navEvents, .navMembers {
	margin-bottom: 2.5em;
}

.navMain a, .navService a, .navEvents a, .navMembers a {
	display: block;
	width: auto;
	
	margin-bottom: 0.4em;
	padding: 0.3em 0 0.3em 1em;
	
	font-size: 1em;
	text-align: left;
	font-weight: bolder;
	
	color: #f28c15;
	background: #fdeedb;
	
	/* border: 1px solid #ffd5a2; */
	border-radius: 2px;
}

.navMain a:hover, .navService a:hover, .navEvents a:hover, .navMembers a:hover,
.navMain a:active, .navService a:active, .navEvents a:active, .navMembers a:active,
.navMain a:focus, .navService a:focus, .navEvents a:focus, .navMembers a:focus {
	color: #fff;
	background: linear-gradient(90deg, #e98f36 0%, #fff1e0 100%);
}

#menuSmall {
	grid-area: menuSmallArea;
	display: none;
	height: 0;
}

/* slide out */

#nav-toggle {
	position: absolute;
	opacity: 0;
	display: none;
}
.menu {
	position: fixed;
	z-index: 6;
	right: -100%;
	top: 0;
	overflow-y: auto;
	height: 100%;
	width: 240px;
	padding: 20px;
	margin: 0 -20px 0 0;
	cursor: pointer;
	background-color: #ffffff;
	transition: .53s transform;
	transition-timing-function: cubic-bezier(0.38, 0.52, 0.37, 1);
	box-shadow: -5px 0px 5px 0px rgba(0,0,0,0.1);
}
#navMain .menu a {
	display: block;
	width: 100%;
	margin-bottom: 2%;
}

#nav-toggle ~ label {
	display: block;
	transition: .5s transform;
	transition-timing-function: cubic-bezier(0.38, 0.52, 0.37, 1.27);
}

#nav-toggle:checked ~ label {
	background-color: #2A3D91;
	-webkit-transform: translateX(-150px);
	transform: translateX(-150px);
}
#nav-toggle:checked ~ label::before {
	content: "Schließen »";
	padding-right: 120px;
}
#nav-toggle:checked ~ label .toggle-words {
	display: none;
}
#nav-toggle:checked ~ .menu {
	-webkit-transform: translateX(-100vw);
	transform: translateX(-100vw);
}

/* header and footer -------------------------------------------------------------- */

#topLinks {
	grid-area: toparea;
	text-align: right;
}

#topLinks a, #nav-toggle ~ label {
	display: inline-block;
	font-weight: bolder;
	margin: 55px 0.6em 0 -0.4em;
	color: #f28c15;
	background-color: #fdeedb;
	padding: 1em 1em 2em 1em;
	border-radius: 2px 2px 0 0;
}

#topLinks a:hover, #topLinks a:active, #topLinks a:focus {
	color: #fff;
	background: linear-gradient(180deg, #e98f36 0%, #fff1e0 120%);
}

#logoSidebar {
	background-image: url('img/DGPPLogoRetina560.png');
	background-repeat: no-repeat;
	background-position: left top;
	background-size: 280px 250px;
	width: 280px;
	height: 250px;
	margin: 0 auto 50px auto;
}

#logoTop {
	display: none;
}

#footer {
	grid-area: footer;
	color: #333;
	font-size: 0.9em;
	margin-left: 40px;
}

/* headings and links -------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	font-weight: bolder;
	font-style: italic;
	line-height: 1.0em;
    word-wrap: break-word;
    margin: .6em 0 0.5em 0;
	color: #668065;
}

h1 { font-size: 2.5em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; margin-top: 1.4em }
h4 { font-size: 1.2em; margin-top: 1.4em }

#content-text h2 {
	padding: 0.5em 0.5em 0.5em 0.7em;
	margin: 2em -0.5em 0.5em -0.7em;
	background: linear-gradient(125deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 70%);
	border-radius: 2px;
}

#content-text h2.entry-title {
	margin: 0.2em -0.5em 0 -0.7em
}

.menu h1 {
	display: block;
	font-weight: bolder;
	font-style: italic;
	font-size: 1.5em;
	text-align: left;
	
	margin: 0 0 0.8em 0;
	padding: 0 0 0 0.5em;
	
	color: #668065;
}

a {
	color: #f28c15;
	font-weight: bolder;
	text-decoration: none;
}

a:hover,a:focus,a:active {
	color: #ab5c00;
	outline: 0;
	text-decoration: none;
}

.more-link {
	font-style: italic;
}

/* text -------------------------------------------------------------- */

::selection {
	background: #999;
	color: #fff;
	text-shadow: none;
}

ul.dgppul {
	margin: 0 0 0 1.5em;
	list-style-position: outside;
	text-align: left;
}

ul.dgppul li {
	list-style-type: square;
}

em {
	font-style: italic;
}

strong {
	font-weight: bolder;
}

/* form elements -------------------------------------------------------------- */

input[type=text], input[type=password] {
	border: 0;
	outline: none;
	background-color: #fff;
	border-radius: 2px;
	padding: 0.6em 0.8em 0.6em 0.8em;
	margin: 0 0 0.6em 0;
	font-size: 1em;
	font-weight: bolder;
	width: 60%;
	max-width: 500px;
	min-width: 200px;
	box-shadow: 0px 0 10px 0px rgba(0,0,0,0.05);
}

input[type=text]:focus, input[type=password]:focus {
	background-color: #fbe0bd;
	outline: none;
}

input[type=text]::placeholder, input[type=password]::placeholder {
	color: #ccc;
}

input[type=submit] {
	border: 0;
	outline: none;
	padding: 0.6em 0.8em 0.6em 0.8em;
	font-size: 1em;
	font-weight: bolder;
	text-align: center;
	
	color: #ff8900;
	background: #f6ddbf;
	border-radius: 2px;
	box-shadow: 0px 0 10px 0px rgba(0,0,0,0.05);
}

input[type=submit]:hover {
	color: #fff;
	background: #e98f36;
}

/* categories and articles -------------------------------------------------------------- */

#content-text.catlist {
	
}

#content-text.catlist article {
	padding: 0.5% 2% 2% 2%;
	margin: 0 -2% 2% -2%;
	background: linear-gradient(125deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 70%);
}

#content-text.catlist article:hover {
	background-color: #fff;
	box-shadow: -5px 5px 15px 0 rgba(0,0,0,0.03);
}

#content-text p {
	margin: 0 0 0.6em 0;
}

.article-footer {
	margin: 0 5% 2% 5%;
	clear: both;
}

.nav-previous, .nav-next {
	display: inline-block;
	width: 40%;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;	
}

.nav-next {
	float: right;
	text-align: right;
}

.entry-meta {
	margin: -0.5em 0 1em 0;
	color: #668065;
}

.entry-footer {
	margin: 3em 0 0 0;
}

/* images -------------------------------------------------------------- */

.imgleft {
	float: left;
	margin: 0 2% 2% 0;
}

.imgright {
	float: right;
	margin: 0 0 2% 2%;
}

#content-text img {
	max-width: 100%;
	height: auto;
	border-radius: 3px;
}

.imglink {
	display: inline-block;
	width: 31%;
	padding: 0 1em 0 0;
	word-wrap: break-word;
	vertical-align: top;
}

.imglink a {
	width: 100%;
}

.imglink a img {
	box-shadow: 0 5px 15px 0 rgba(0,0,0,0.19);
	width: 100%;
	height: auto;
}

.imglink a span {
	display: block;
	margin: 10px 0 10px 0;
	background-color: #fff;
	min-height: 2.3em;
	padding: 1em;
	border-radius: 2px;
	text-align: center;
}

/* details overlay -------------------------------------------------------------- */

.pop_overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.5);
	transition: opacity 200ms;
	visibility: hidden;
	opacity: 0;
}
.pop_overlay .pop_cancel {
	position: absolute;
	width: 100%;
	height: 100%;
	cursor: default;
}
.pop_overlay:target {
	visibility: visible;
	opacity: 1;
	z-index: 1;
}

.pop_popup {
	margin: 75px auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #666;
	width: 600px;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
	position: relative;
}
.pop_popup h2 {
	margin: 0 !important;
    padding: 0.3em 0 1em 0 !important;
}
.pop_popup .pop_close {
	position: absolute;
	width: 20px;
	height: 20px;
	top: 20px;
	right: 20px;
	opacity: 0.8;
	transition: all 200ms;
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
	color: #666;
}
.pop_popup .pop_close:hover {
	opacity: 1;
}
.pop_popup .pop_content {
	max-height: 400px;
	overflow: auto;
}

.pop_institution {
	font-size: 1.5em;
	line-height: 1.1em;
	margin-bottom: 1.2em !important;
}
.pop_doc {}
.pop_address { margin-bottom: 2em !important; }
.pop_tel {}
.pop_fax {}
.pop_web {}
.pop_mail {}

/* address plugin -------------------------------------------------------------- */

.dgpp_addr {
	border-collapse: collapse;
	width: 100%;
	margin: 1.5em 0 1.5em 0;
}

.dgpp_addr tr:nth-child(odd) {
	background-color: #fdeedb;
}

.dgpp_addr tr:nth-child(even) {
	background-color: #f9dcbb;
}

.dgpp_addr td, .dgpp_addr th {
	border: 1px solid #ffb65d;
	padding: 0.5em 0.8em 0.5em 1em;
	text-align: left;
}

.dgpp_addr th {
	font-weight: bolder;
	background-color: #fff;
	color: #668065;
}

.dgpp_addr_city {
	width: 15%;
}

.dgpp_addr_institution {
	width: 60%;
}

.dgpp_addr_doc {
	width: 15%;
}

/* recent posts plugin -------------------------------------------------------------- */

.rpwe-block {
}
.rpwe-block ul {
	margin: 1.5em 0 0 0;
}
.rpwe-block li {
	padding: 0.5em 1em 1em 2em;
	margin: 0 -1em 0.5em 1em;
	background: linear-gradient(125deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 70%);
	border-radius: 2px;
}
.rpwe-block li:hover {
	background-color: #fff;
	box-shadow: -5px 5px 15px 0 rgba(0,0,0,0.03);
}
.rpwe-block a {
}
.rpwe-block h3 {
	margin: 0.3em 0 0.2em 0;
}
.rpwe-thumb {
}
.rpwe-summary {
}
.rpwe-time {
	color: #668065;
}
.rpwe-alignleft {
}
.rpwe-alignright {
}
.rpwe-aligncenter {
}
.rpwe-clearfix:before,.rpwe-clearfix:after {
}
.rpwe-clearfix:after {
}
.rpwe-clearfix {
}

.rpwe-title a {
	color: #f28c15;
}
.rpwe-title a:hover {
	color: #ab5c00;
}

/* pdf plugin -------------------------------------------------------------- */

.pdfemb-viewer {
	margin: 2% 0 2% 0 !important;
}

/* staff list plugin -------------------------------------------------------------- */

/*  div wrapped around entire staff list  */
div.staff-member-listing {
}
/*  div wrapped around each staff member  */
div.staff-member {
	padding: 2%;
	margin: 0 -1em 0.5em 1em;
	background: linear-gradient(125deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 70%);
	border-radius: 2px;
}
div.staff-member:hover {
	background-color: #fff;
	box-shadow: -5px 5px 15px 0 rgba(0,0,0,0.03);
}
/*  "Even" staff member  */
div.staff-member.even {
}
/*  "Odd" staff member  */
div.staff-member.odd {
}
/*  Last staff member  */
div.staff-member.last {
}
/*  Wrap around staff info  */
.staff-member-info-wrap {
}
/*  [staff-bio-formatted]  */
div.staff-member-bio {
}
/*  p tags within [staff-bio-formatted]  */
div.staff-member-bio p {
}
/*  [staff-photo]  */
img.staff-member-photo {
	float: left;
	padding: 0 3% 0 0;
	width: 140px;
	height: auto;
}
/*  [staff-email-link]  */
.staff-member-email {
}
/*  [staff-name-formatted]  */
div.staff-member-listing h3.staff-member-name {
	margin: 0 0 0.5em 0;
	font-size: 1.6em;
}
/*  [staff-position-formatted]  */
div.staff-member-listing h4.staff-member-position {
	margin: 0 0 1.5em 0;
}
/* Clearfix */
div.staff-member-info-wrap:after {
	content: "";
	display: block;
	clear: both;
}

/* wp links plugin -------------------------------------------------------------- */

.gallery-columns-3 .gallery-item {
	width: 31% !important;
}

.wplf_display {
	background-color: #fff;
	min-height: 2.3em;
	padding: 1em;
	border-radius: 2px;
}

/* spiffy calendar plugin -------------------------------------------------------------- */

.spiffy-fe-submit {
	width: 100%;
}
.spiffy-fe-submit td {
	padding-right: 1em;
}
.spiffy-fe-submit td input {
	margin-right: 1em;
}
.spiffy-fe-submit select {
	margin: 1em 0 1em 0;
}
.g-recaptcha {
	margin: 1em 0 1em 0;
}

.category-bg .calnk-link {
	border-radius: 0 !important;
	padding: 1em 0.5em 0.7em 0.5em;
}

.spiffy-popup {
	border-radius: 3px !important;
	width: 20% !important;
}
.calnk-link span span.event-title {
	color: #f28c15 !important;
	text-align: left !important;
}
.spiffy-popup span.event-title-break {
	height: 0 !important;
}
.spiffy-popup span.ca-location-p {
	color: #000 !important;
}
.spiffy .ca-desc-p {
	color: #000;
	font-weight: normal;
}

.spiffy-upcoming-day {
	margin: 0 0 1em 0;
}
.spiffy-upcoming-events {
	margin: 0.2em 0 0.1em 1em;
}
.calnk-box a {
	/* color: #f28c15 !important; */
}
.calnk-link .calnk-box .spiffy-title {
	border: 0 !important;
}
.calnk-link .calnk-box .spiffy-title, .calnk-link .calnk-box .calnk-time {
	color: #f28c15;
	border: 0 !important;
}

.spiffy-ics .spiffy-button {
	display: none;
}

.spiffy .ca-location-p {
	color: #000 !important;
}

.spiffy .calendar-heading {
	
}
.spiffy.calendar-table table {
	padding: 0.5em !important;
}

.spiffy .calendar-next a::after {
	border-left-color: #000 !important;
}
.spiffy .calendar-prev a::after {
	border-right-color: #000 !important;
}

/* WP admin -------------------------------------------------------------- */

a.post-edit-link {
	color: #f00;
}

/* Screen Size modificators -------------------------------------------------------------- */

@media all and (max-width: 1024px) {
	
	html {
		min-width: 680px;
	}
	
	body {
		grid-template-columns: 280px auto;
		grid-template-rows: 217px 43px auto 100px;
		grid-template-areas: 
			"logoTops toparea"
			"logoTops menuSmallArea"
			"content content"
			"footer footer";
	}
	
	#content {
		border-radius: 2px;
	}
	
	.sitehead {
		border-radius: 2px 2px 0 0;
	}
	
	#sidebarLeft {
		display: none;
		height: 0;
	}

	#logoTop {
		display: block;
		z-index: 1;
		grid-area: logoTops;
		background-color: #fff;
		background-image: url('img/DGPPLogoRetina.png');
		background-repeat: no-repeat;
		background-position: center center;
		background-size: 210px 200px;
		width:280px;
		height:260px;
		margin: auto;
		box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.1);
		border-radius: 2px 0 0 2px;
	}
	
	#menuSmall {
		display: block;
		height: auto;
		text-align: right;
	}
	
	#topLinks a, #nav-toggle ~ label {
		display: block;
		margin: 0 0 10px 0;
		color: #f28c15;
		padding: 12px;
		font-size: 22px;
		border-radius: 0 2px 2px 0;
	}
	
	#topLinks a:hover, #topLinks a:active, #topLinks a:focus, #nav-toggle:hover ~ label, #nav-toggle:checked ~ label {
		color: #fff;
		background: linear-gradient(270deg, #e98f36 0%, #fff1e0 100%);
	}
	
	.navMain, .navService, .navEvents, .navMembers {
		margin-bottom: 2em;
	}
	
}

/* CSS hacks for IE 10 and 11 -------------------------------------------------------------- */

@media screen and (-ms-high-contrast: active) and (-ms-high-contrast: none) {  
	#topLinks {
		position: relative;
		z-index: 0;
	}

	#sidebarLeft {
		float:left;
		margin: -100px 1em 0 0;
		position: relative;
		z-index: 2;
	}

	#content {
		margin: -20px 0 30px 0;
	}

	h1.sitehead {
		margin: 0 0 0 300px;
	}

	#content {
		position: relative;
		z-index: 1;
	}
	
	#content-text {
		padding: 50px 5% 5% 4em;
		overflow: hidden;
	}
	
	.kbe_search_field {
		width: 60%;
		margin: 0 0 0 300px;
	}
	
	.kbe_content_full {
		width: 60%;
		margin: 0 0 0 4em;
	}
}

@media screen and (-ms-high-contrast: active) and (-ms-high-contrast: none) and (max-width: 1024px) {

	#logoTop {
		position: relative;
		z-index: 5;
		float: left;
	}
	
	h1.sitehead {
		margin: 0;
	}
	
	#content {
		margin-top: 100px;
	}

	.kbe_search_field {
		margin: 0;
	}
}