/*
Theme Name: Kulturforschung Graubünden
Author: Gérard Mathiuet

---
Logofarbe dunkel		rgb(0,61,78)
Logofarbe       				rgb(13,116,140)
Logofarbe hell  			rgb(95,163,178)
Logofarbe heller		rgb(170,206,214)
Grau hell       				rgb(241,241,241)
Grau dunkel     				rgb(145,145,145)
---

*/

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}ins{background-color:#ff9;color:#000;text-decoration:none}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:700}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle}

@font-face {
	font-family: 'DINNextLTPro-Bold';
	src: url('webfonts/25A912_0_0.eot');
	src:
		url('webfonts/25A912_0_0.eot?#iefix') format('embedded-opentype'),
		url('webfonts/25A912_0_0.woff') format('woff'),
		url('webfonts/25A912_0_0.ttf') format('truetype')
	;
}

@font-face {
	font-family: 'DINNextLTPro-Regular';
	src: url('webfonts/25A912_2_0.eot');
	src:
		url('webfonts/25A912_2_0.eot?#iefix') format('embedded-opentype'),
		url('webfonts/25A912_2_0.woff') format('woff'),
		url('webfonts/25A912_2_0.ttf') format('truetype')
	;
}

.preload * {
	transition: 0;
}

html {
	color: #000;
	font: 15px/25px Georgia, serif;
}

body {
	padding-bottom: 50px;
}

.back {
	cursor: pointer;
	margin: 1em 0 0;
}

a {
	text-decoration: none;
	color: rgb(13,116,140);
	transition: color 75ms 50ms;
}

a:focus,
a:hover {
	color: rgb(170,206,214);
	transition-delay: 0;
}

a:active {
	color: rgb(95,163,178);
}

a[target="_blank"],
a[href^="http://"],
a[href^="https://"] {
	background: url('img/external.gif') 0 5px no-repeat;
	text-indent: 16px;
	display: inline-block;
}

a[href*="kulturforschung.ch"],
a[href^="http://kulturforschung"],
a[href^="https://kulturforschung"],
a[href*="kubus-sils.ch"],
a[href^="http://kubus-sils"],
a[href^="https://kubus-sils"] {
	background: none !important;
	text-indent: 0 !important;
}

#content li {
	margin-bottom: .5rem;
    font-size: 15px;
    line-height: 25px;
}

#content li:last-child {
	margin-bottom: 0;
}

ul li {
	list-style: none;
}

ol li {
	list-style-type: decimal;
	list-style-position: inside;
}

.nav {
	background: rgb(11,88,109);
	background: linear-gradient(180deg,rgb(13,116,140),rgb(0,61,78));
	height: 100%;
	left: 0;
	box-sizing: border-box;
	padding: 50px 30px;
	position: fixed;
	top: 0;
	width: 300px;
	z-index: 100;
}

#logo {
	margin: 0 0 50px;
	max-width: 100%;
}

#logo img {
	max-width: 100%;
	height: auto;
}

.menu a {
	font-family: 'DINNextLTPro-Regular', sans-serif;
	font-size: 14px;
	font-size: 15px;
	line-height: 22px;
	color: rgb(95,163,178);
	transition: color 75ms 50ms;
}

.menu > li > a {
	font-weight: 300;
	font-family: "DINNextLTPro-Bold", sans-serif;
}

/* contact 62 */
li#menu-item-62 {
	padding-top: 20px;
}

#mc_embed_signup {
	position:relative;
}

#mc_embed_signup h4 {
	font-weight: 300;
    font-family: "DINNextLTPro-Bold", sans-serif;
    font-size: 14px;
    font-size: 15px;
    line-height: 22px;
    color: rgb(95,163,178);
    transition: color 75ms 50ms;
}

#mc-embedded-subscribe {
	position: absolute;
	bottom: 0;
	right: 60px;
	background: rgb(13,116,140);
    border: none;
    color: white;
    padding: 3px;
}



#searchContainer {
	margin-top: 5px;
}


#searchContainer h4 {
	font-weight: 300;
	font-family: "DINNextLTPro-Bold", sans-serif;
	font-size: 15px;
	line-height: 22px;
	color: rgb(95,163,178);
	transition: color 75ms 50ms;
}

#searchContainer #searchForm {
	display: flex;
	flex-direction: row;
}


#searchContainer #search {
	border: 0;
	line-height: 1;
	webkit-appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	outline: none;
	border: none;
	padding: .1rem .3rem;
}

#searchContainer #searchSubmit {
	bottom: 0;
	right: 0;
	background: rgb(13,116,140);
	border: none;
	color: white;
	padding: 3px;

	width: 52px;
	height: 22px;

	cursor: pointer;
	transition: background-color .2s ease;
}

/**
 * 	MailChimp Form Styling
 */

#mce-EMAIL {
	width: calc(100% - 60px);
	height: 18px;
	line-height: 1;
	webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	outline: none;
	border: none;
	margin-top: .2rem;
	padding: .1rem .3rem;
}

#mc-embedded-subscribe {
	width: 52px;
	height: 22px;
	right: 0;
	cursor: pointer;
	transition: background-color .2s ease;
}

#mc-embedded-subscribe:hover {
	background-color: rgb(95,163,178);
}


.menu .current_page_item > a,
.menu .current_page_ancestor > a,
.menu a:focus,
.menu a:hover {
	color: rgb(170,206,214);
	transition-delay: 0;
}

.menu a:active {
	color: #fff;
}

.sub-menu {
	display: none;
	margin: 0 0 0 10px;
}

.content {
	/*max-width: 980px;*/
	border-top: 15px solid transparent;
	border-left: 320px solid transparent;
	line-height: 22px;
	font-size: 13px;
}

.bottom-link {
	position: relative;
	transition: .5s;
	border-left: 320px solid transparent;
}

.calendar {
	float: right !important;
	width: 225px;
	border: none;
	overflow: hidden;
}

.agenda li {
	margin: 0 0 15px;
}

.agenda_title a {
	font-weight: 300;
	font-family: "DINNextLTPro-Bold", sans-serif;
}

/*
	LANDINGPAGE
*/

.m-calendar__landingpage {
	margin: 2.2rem 4%;
	width: 100%;
	justify-content: space-between;
}

.m-calendar__element_sils {
	margin-top: 30px;
}

@media only screen and (min-width: 780px) {
	.m-calendar__landingpage {
		display: flex;
		flex-direction: row;
	}

	.m-calendar__element_sils {
		margin-top: 0;
	}
}

body.landingpage {
    background-color: #fff;
    overflow: scroll;
}

body.landingpage .content,
body.landingpage .content_selection {
	display: flex;
	flex-direction: row;
    justify-content: space-around; /*center*/
    flex-wrap: wrap;
	width: 100%;
    max-width: 980px;
    margin: 100px auto;
    border: 0;
}

body.landingpage .content_selection {
	margin: 0 auto;
}

#ikg, #kubus {
    flex-basis: 45%;
    text-align: center;
    padding: 2rem 0;
    /*border: solid 2px black;*/
    background-color: #e4e4e4 !important;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    flex-direction: column;
	transition: box-shadow .5s ease;
}

#kubus {
	background-color: #660006 !important;
}

#ikg:hover, #kubus:hover {
	box-shadow: 0px 0px 5px 1px #848484;
}

#ikg img, #kubus img {
    align-self: center;
    max-width: 65%;
}


@media only screen and (max-width: 780px) {
	#ikg {
		order: 1;
	}

	#ikg-link {
		order: 2;
	}

	#kubus {
		order: 3;
	}

	#kubus-link {
		order: 4;
	}

	.content_selection h3 {
		margin-top: 0;
		margin-bottom: 2rem;
	}
}

.home-link-text {
    margin-top: 2rem;
}

.landingpage .intro {
	margin: 2.2rem 4%;
}

.landingpage .calendar {
    margin: 5rem 0 0 0;
}

@media only screen and (max-width: 980px) {

    body.landingpage #content {
        position: static;
        /* right: 300px; */
    }

}

@media only screen and (max-width: 780px) {

    #ikg, #kubus {
        flex-basis: 94%;
        margin-bottom: 1.7rem;
    }

    .landingpage .calendar {
        margin-top: 0;
    }

}
/*
	END: LANDINGPAGE
*/

h1,
h2 {
	font-family: 'DINNextLTPro-Regular', sans-serif;
}

h1 {
	margin: 0 0 22px;
	font-weight: 300;
	font-family: "DINNextLTPro-Bold", sans-serif;
	font-size: 23px;
	line-height: 28px;
	color: #000;
}

h1 a {
	color: #000;
	font-size: 23px;
	line-height: 28px;
}

h1 + strong,
h1 + b {
	font-weight: 300;
	font-family: "DINNextLTPro-Bold", sans-serif;
	font-size: 15px;
	line-height: 25px;
	color: #000;
}

h2 {
	font-weight: 300;
	font-family: "DINNextLTPro-Bold", sans-serif;
	font-size: 16px;
	line-height: 18px;
}

p, a, strong, i {
	font-size: 15px;
	line-height: 25px;
}

.category {
	margin: 15px 0 10px;
}

.artikelbild + h1 {
	margin: 17px 0 22px;
}

.box {
	float: left;
	max-width: 715px;
	/*border-top: 5px solid #000;*/
	padding-top: 17px;
	margin: 0 20px 20px 0;
}

.home .box {
    box-sizing: border-box;
    padding: 17px !important;
    background-color: #e4e4e4;
}

.mitarbeitende .box {
	display: flex;
	flex-wrap: wrap;
	border-top: 0;
	width: 960px !important;
	max-width: none;
}

.mitarbeitende .back {
	
	min-width: 100%;

}

.box.single {
	width: 715px;
	overflow: hidden;
}

.box.single .attachment img {
    width: 100%;
    height: auto;
}

.buendner-monatsblatt-beihefte .box,
.reihe-cultura-alpina .box,
.publikationen-des-instituts .box {
	width: auto;
	max-width: none;
}

.archive p.last {
	margin-bottom: 22px !important;
}

#content ul li {
	position: relative;
	padding-left: 1em;
}

#content ul li em {
	font-style: normal;
	width: 340px;
	display: inline-block;
}

#content ul li:before {
	position: absolute;
	top: 0;
	left: 0;
	content: '- ';
}

.agenda li { padding-left: 0 !important; }
.agenda li:before { content: '' !important; }

.artikelbild {
	//background: rgb(155,155,155);
	//background: linear-gradient(30deg,rgb(145,145,145),rgb(195,195,195));
	text-align: center;
    margin-bottom: 1rem;
	//padding: 20px;
	//margin: -17px 0 1em;
}

.artikelbild > a {
	background: none !important;
	text-indent: 0 !important;
	width: 100%;
}

.artikelbild.publikation img {
	max-width: 96%;
	width: auto;
	height: auto;
}

.artikelbild img {
	width: auto;
	height: auto;
	max-height: 450px;
	max-width: 660px;
}

.content h1,
.content h2,
.content ul,
.content p {
	/*max-width: 415px;*/
	margin: 0 0 22px;
	text-align: left !important;
}

.content p + ul {
	margin-top: -22px;
}

.content ul,{
	max-width: 415px;
}

.content h2 {
	margin-bottom: 11px;
}

.box p.last {
	margin: 0;
}

.single-row    		{ width: 225px }
.single-row img		{ max-height: 100px }

.double-row      	{ width: 470px }
/*.double-row img	{ max-height: 200px }*/

.triple-row    		{ width: 715px }
.triple-row img		{ max-height: 300px }

/* publikationen */
.filter_title {
	float: left;
	width: 12%;
	line-height: 31px;
	height: 31px;
	margin: 0;
}

.filtaa {
	position: fixed;
	top: 15px;
	width: 960px;
	background: white;
	height: 65px;
	/*border-top: 5px solid black; */
	padding-top: 25px;
	z-index: 10;
}

.filtaa:before {
	content: '';
	position: absolute;
	top: -20px;
	left: 0;
	width: 100%;
	background: #fff;
	height: 20px;
}

#filter {
	float: right;
	width: 88%;
	box-sizing: border-box;
	border: none;
	color: rgb(145,145,145);
	background: rgb(241,241,241);
	padding: 9px;
}

#publikationen {
	margin: 71px 0;
	border-collapse: collapse;
	width: 960px;
	position: relative;
	top: 44px;
}

#publikationen thead {
	position: fixed;
	top: 105px;
	width: 960px;
}

#publikationen th,
#publikationen td {
	text-align: left;
	padding: 9px;
	vertical-align: top;
}

.publikations-link {
	font-weight: 300;
	font-family: "DINNextLTPro-Bold", sans-serif;
	color: #000;
	font-size: 16px;
}

#publikationen thead tr {
	background: #111;
	color: #fff;
	height: 20px;
	cursor: pointer;
}

#publikationen tbody tr {
	background: rgb(241,241,241);
	color: #111;
	border-bottom: 2px solid #fff;
	height: 132px;
	vertical-align: top;
}

#publikationen th {
	text-indent: 20px;
	position: relative;
	background: url(img/arrow.png) no-repeat 9px 50%;
}

#sorttable_sortrevind,
#sorttable_sortfwdind {
	position: absolute;
	left: 9px;
	top: 50%;
	margin-top: -5px;
	text-indent: -999em;
	display: inline-block;
	width: 8px;
	height: 10px;
}

#sorttable_sortrevind { background: url(img/arrow-desc.png) no-repeat #111; }
#sorttable_sortfwdind { background: url(img/arrow-asc.png) no-repeat #111; }

.pub_bild { width: 14% }

.pub_titel { width: 40% }

.pub_autor { width: 15% }

.pub_jahr { width: 5% }

.pub_verlag { width: 30% }

.person {
	/*border-top: 5px solid #000; */
	width: 225px;
	margin: 0 20px 35px 0;
	float: left;
}

.person.last {
	padding: 0 0 1em;
}

/*.person img {
	max-width: 225px;
	height: auto;
}

.person .placeholder {
	width: 225px;
	height: 330px;
	background: #888;
}*/

.person h1 {
	margin: 6px 0 4px;
}

.person h2 {
	margin: 0 0 22px;
	line-height: 1;
}

.wpcf7-form {
	margin: 0 0 1em;
	width: 350px;
}

.wpcf7-form select,
.wpcf7-form input,
.wpcf7-form textarea {
	border: 1px solid #000;
	padding: 5px;
	font-size: 14px;
	box-sizing: border-box;
	width: 100% ;
	min-width: 100% ;
	max-width: 100% ;
}

.wpcf7-validation-errors,
.wpcf7-not-valid-tip-no-ajax {
	display: block;
	color: rgb(200,60,60);
}

.events_show_all,
.front .events_title,
.em-events-search {
	display: none !important;
}

.front .events_show_all {
	display: block !important;
}


/*
	Media Queries
*/

/* Hamburger Icon */
.btn-offcanvas {
    display: none;
	position: fixed;
	top: 0;
	right: 0;
	width: 50px;
	height: 45px;
	background-color: rgb(13,116,140);
	cursor: pointer;
	z-index: 100;
}

.btn-offcanvas>span {
    width:28px;
    height:4px;
    background-color:#fff;
    position:absolute;
    top: 12px;
    left: 11px;
}

.btn-offcanvas>span:after, .btn-offcanvas>span:before {
    content: '';
    width: 100%;
    height:4px;
    background-color:#fff;
    position:absolute;
}

.btn-offcanvas>span:after {
    top:9px;
}

.btn-offcanvas>span:before {
    top:18px;
}


/* Small Desktop */
@media only screen and (max-width: 1300px) {

	/* TABEL */
	#publikationen thead {
		width: auto;
		padding-right: 20px;
	}

	#publikationen,
	#publikationen thead tr {
		width: 100%;
	}

	#publikationen .pub_verlag {
		display: none;
	}

	.filtaa {
		width: 100%;
		margin-right: 20px;
		display: block;
	}

	/* SHAME */
	.filtaa::after {
		content: "";
		position: fixed;
		right: 0px;
		top: 0;
		bottom: 0;
		width: 20px;
		background-color: #fff;
	}

	.filter_title {
		width: 10%;
	}

	#filter {
		width: 85%;
		float: left;
	}

}


/* Notebook */
@media only screen and (max-width: 1050px) {

	/* Team */
	.mitarbeitende .box {
		width: 100% !important;
		border: none !important;
	}

	.person {
		width: 31%;
		margin-right: 2%;
		height: 100%;
	}

	.person img {
		width: 100%;
		max-width: none;
	}

	/* Tabel */

	.filtaa {
		width: 95%;
		width: calc(100% - 50px);
	}


}


/* Tablets - Portrait */
@media only screen and (max-width: 980px) {

	/* Off-Canvas */
	body {
		overflow: hidden;
	}

	h1 {
		font-size: 23px;
		line-height: 28px;
	}

	#content {
		width: 100%;
		font-size: 14px;
		line-height: 22px;
	}


	.btn-offcanvas {
		display: block;
	}

	.offcanvas_hover {
		background-color: #111;
		opacity: 0.4;
		position: fixed;
		left: 0;
		bottom: 0;
		top: 0;
		right: 0;
		display: block;
		z-index: 90;
		cursor: pointer;
	}

	.box {
		border-top: 5px solid transparent;
		width: 96% !important;
	}

	.nav {
		position: fixed;
		right: 0;
		left: auto;
		transition: .5s;
	}

	#content {
		position: absolute;
		right: 300px;
		transition: .5s;
	}

	.off-canvas .btn-offcanvas {
		right: 0;
	}

	.btn-offcanvas {
		right: 300px;
		transition: .5s;
	}



	.home.off-canvas #content,
	.home.off-canvas .bottom-link {
		left: 0;
	}

	.home #content,
	.home .bottom-link {
		left: -630px;
	}

	/* Active Off-Canvas */
	.off-canvas {
		overflow: auto;
	}

	.off-canvas .box {
		//border-top: 5px solid #000;
        margin-bottom: 22px;
	}

	.off-canvas .offcanvas_hover {
		display: none;
	}

	.off-canvas .nav {
		/*left: -300px;*/
		right: -300px;
	}

	.off-canvas #content,
	.off-canvas .bottom-link {
		border-left-width: 20px;
		width: 94%;
		right: 0;
	}

	body.off-canvas {
		overflow: scroll;
	}


	/* TABEL */

	/* SHAME */
	#publikationen thead {
		width: 93%;
		padding-right: 0;
		top: 108px !important;
	}

	.rwd-table tr {
		border: none !important;
	}


	/* NAV */
	.nav {
		overflow-y: scroll;
	}

	#menu a {
		font-size: 18px;
		line-height: 25px;
		padding-top: 5px;
		padding-bottom: 5px;
	}


	/* Filter */
	#filter {
		left: 20px;
	}

	.filter_title {
		float: left;
		width: 10% !important;
	}


}



/* Masonry Grid Override */
@media only screen and (max-width: 815px) {

	.box {
		position: static !important;
		display: block !important;
		width: 95% !important;
		height: auto !important;
		float: left !important;
		margin: 0;
		padding-bottom: 20px;
	}

	#publikationen thead {
		width: 90%;
	}

	.artikelbild img {
		max-width: 100%;
	}

	.wpcf7-form {
		width: 100%;
	}



}


/* Smartphones */
@media only screen and (max-width: 768px) {

	h1 {
		font-size: 25px;
		line-height: 32px;
	}

	#content {
		font-size: 15px;
		line-height: 25px;
	}


	.off-canvas #content {
		width: 96%;
	}

	/* TABLE */
	.filtaa {
		top: 0;
		height: 45px;
		border-top: none;
		padding-top: 10px;
	}

	.filter_title {
		width: 25% !important;
	}

	#filter {
		width: 75% !important;
	}

	#publikationen {
		margin-top: 0;
	}

	#publikationen thead {
		display: none;
	}

	#publikationen tr {
		border-bottom: 5px solid #fff !important;
	}

	#publikationen tbody .pub_verlag {
		display: inline-block;
	}

	/* Table Content */
	.rwd-table td.pub_bild::before {
		display: none;
	}

	.pub_bild {
		float: left;
		padding: 10px 15px 10px 10px !important;
		width: 100px;
	}

	.pub_titel,
	.pub_autor,
	.pub_jahr,
	.pub_verlag {
		float: right;
		width: calc(100% - 163px) !important;
		padding: 2px !important;
	}

	.pub_titel {
		margin-top: 10px;
	}

}



/* Custom Breakpoint */
@media only screen and (max-width: 680px) {

	/* Person */
	.person {
		width: 46%;
		margin-right: 4%;
	}


}



/* Phones in Portrait */
@media only screen and (max-width: 480px) {

	.off-canvas #content {
		width: 94%;
	}

	.person {
		width: 94%;
		margin-right: 0;
	}

	/* Table Content */
	.pub_bild {
		float: none;
		width: 50% !important;
	}

	/* Make image larger
	.pub_bild img, .pub_bild a  {
		width: 100%;
		height: auto;
	}
	*/

	#publikationen tr {
		width: 90% !important;
	}

	#publikationen tr td {
		width: 90% !important;
	}

	.pub_titel,
	.pub_autor,
	.pub_jahr,
	.pub_verlag {
		float: left;
		width: 100% !important;
		padding-left: 10px !important;
	}

	.pub_titel {
		margin-top: 0;
	}

	.pub_verlag {
		margin-bottom: 15px;
	}


}




/* Table */

.rwd-table {
  margin: 1em 0;
  min-width: 300px;
}
.rwd-table tr {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.rwd-table th {
  display: none;
}
.rwd-table td {
  display: block;
}
.rwd-table td:before {
  content: attr(data-th) ": ";
  font-weight: bold;
  width: 6.5em;
  display: inline-block;
}
@media (min-width: 769px) {
  .rwd-table td:before {
    display: none;
  }
}
.rwd-table th, .rwd-table td {
  text-align: left;
}
@media (min-width: 769px) {
  .rwd-table th, .rwd-table td {
    display: table-cell;
    padding: .25em .5em;
  }
  .rwd-table th:first-child, .rwd-table td:first-child {
    padding-left: 0;
  }
  .rwd-table th:last-child, .rwd-table td:last-child {
    padding-right: 0;
  }
}

.rwd-table {
  background: #34495E;
  color: #fff;
  overflow: hidden;
}
.rwd-table tr {
  border-color: #46627f;
}
@media (min-width: 769px) {
  .rwd-table th, .rwd-table td {
    padding: 1em !important;
  }
}

/* Gallery - 22.12.2017, mw */
/*.gallery {
	display: inline-block;
}
.gallery-item {
	float: left;
	margin-top: 10px;
	text-align: center;
	width: 29%;
    background-color: #e4e4e4;
    margin: 2%;
}
.gallery-item a {
	padding-top: 8px;
	padding-left: .5rem;
	padding-right: .5rem;
}
.gallery-caption {
   display: none;
}
@media only screen and (max-width: 768px) {
	.gallery-item {
		width: 46%;
	}
} */

.gallery {
	display: flex;
	flex-wrap: wrap;
}
.gallery img {
	width: 100%;
	height: auto;
}
.gallery a {
	width: 100%;
}

.gallery-item {
	width: calc(100% / 4 - 1rem);
	margin-right: 1rem;
}

@media only screen and (max-width: 640px) {
	.gallery-item {
		width: calc(100% / 3 - 1rem);
	}
}

.gallery-item a {
	margin-top: .5rem;
}


