/*
Theme Name: KM15
Author: macREC GmbH (Emanuel Huber, creating)
Author URI: http://www.macrec.ch
Description: 5. Internationaler Kongress für Kirchenmusik | Bern 2015
Version: 1.0
*/

body {
	background: #999;
	margin: 0;
	padding: 0;
	-webkit-text-size-adjust: 100%;
}
#page {
	width: 85%;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
}
a img {
	padding-right: 15px;
}
#logo_km_15 {
	width: 196px;
	height: 60px;
}
#container {
	display: inline-block;
	background: #FFF;
	display: inline-block;
	margin-bottom: 0;
	min-height: 700px;
	width: 100%;
}
#header {
	margin: 30px 40px 0 40px;
	padding-right: 10px;
	padding-bottom: 30px;
	border-bottom-width: 17px;
	border-bottom-style: solid;
	border-bottom-color: #ffdc00;
	height: 120px;
}
#advertising-header {
	width: 100%;
	height: 100px;
	position: relative;
}
#advertising-header img {
	position: absolute;
}
#advertising-header img.left {
	left: 0;
}
#advertising-header img.middle {
	left: 30%;
}
#advertising-header img.right {
	right: 0;
}
.header.img, .header.text {
	float: left;
}
.header.img {
	/*background:url(http://www.kirchenmusikkongress.ch/wp-content/themes/km15/img/kM15.svg) left 14px no-repeat;
	background-size: contain;*/
	margin-top: 10px;
	width: 16% !important;
	height: 100%;
}
.header.img img {
	margin-top: 14px;
}
.header.text {
	padding-left: 28px;
	font-size: 1.2em;
	line-height: 1.2em;
}
.header.small {
	font-size: 0.7em;
}
ul {
	display: inline-block;
	display: table;
	list-style: none;
}
ul.menu {
	padding: 0;
	margin: 5px 0;
	line-height: 18px;
}
ul.menu ul {
	padding: 0 40px;
}
ul.menu li {
	display: inline-block;
	width: 185px;
	float: left;
	position: relative;
}
ul.menu.cat {
	width: 100%;
}
ul.menu.cat li {
	width: auto;
	padding: 1px 0;
}
ul.menu.cat li.alle {
	margin-right: -40px;
	float: right;
	min-width: 100px;
}
ul.menu.cat li div {
	float: left;
	display: inline-block;
	line-height: 16px;
}
ul.menu.cat li div > a.active {
	font-weight: bold;
}
ul.menu.cat li div.link {
	padding: 4px 15px 0 5px;
}
div.button {
	border: solid #ffdc00 3px;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	text-align: center;
	font-size: 0.85em;
	behavior: url(pie/PIE.html);
}
div.button.list {
	position: absolute;
	margin: 8px 5px;
	line-height: 16px;
}
ul.menu li > ul li, ul.menu.cat li {
	padding-left: 5px;
}
ul.menu li > ul li.first-item {
	padding-top: 2px;
	padding-left: 4px;
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #000;
}
.text, .credits, #em-wrapper, #page-content > p {
	padding-left: 32px;
	-moz-hyphens: auto;
	-o-hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}
.text ul, .text ol {
	display: table;
	margin: 0;
	-moz-hyphens: none;
	-o-hyphens: none;
	-webkit-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}
.text ul {
	padding-left: 15px;
}
.text ul > li, .text ol > li {
	margin-bottom: -1.3em;
}
.text ul > li:before {
	content: "-";
	position: absolute;
	width: 0.8em;
	margin-left: -0.8em;
}
.credits {
	padding-bottom: 15px;
}
.credits > div.links a, #sidebar > div.links a {
	padding-left: 24px;
}
.credits a, .text a, a.arrow div span {
	padding-left: 18px;
}
.credits > div.links a, #sidebar > div.links a, .credits a {
	background: url(img/link.svg) 2px 1px no-repeat;
	background-size: 13px 13px;
}
.text a, a.arrow div span {
	background: url(img/link.svg) 2px 1px no-repeat;
	background-size: 13px 13px;
}
#search {
	margin-top: -2px;
	max-width: 130px;
}
#magnifier {
	background: url(img/magnifier.svg) center right no-repeat;
	background-size: 13px 13px;
	padding-right: 23px;
	max-width: 135px;
	padding-left: 160px
}
ul.menu li a, a, a:visited, a:active {
	color: #000;
	text-decoration: none;
}
a:hover, ul.menu li a:hover, a div:hover {
	/*color: #ffdc00;*/
	text-decoration: underline;
}
ul.menu li.current-menu-item a, ul.menu.sub li.current_page_item a {
	font-weight: 700;
	font-variant: normal;
}
#content {
	position: relative;
	line-height: 1.3em;
	min-height: 500px;
}
#primary > div, #secondary > div {
	float: left;
}
#primary {
	padding-top: 20px;
	padding-left: 40px;
	padding-right: 246px;
	padding-bottom: 50px;
	overflow: hidden;
	min-height: 50px;
}
#primary.full {
	padding-right: 40px;
}
#secondary {
	float: right;
	min-height: 50px;
	position: absolute;
	width: 194px;
	top: 20px;
	right: 40px;
}
#primary > div.content {
	width: 100%;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #000;
	padding-bottom: 30px;
}
#primary > div.content.cats {
	padding: 0;
}
#primary div.title {
	padding: 36px 32px 18px 27px;
	margin-top: 18px;
	margin-bottom: 30px;
	margin-left: 5px;
	border-radius: 50%;
	background: #ffdc00;
	width: 30px;
	height: 30px;
	line-height: 1em;
	behavior: url(pie/PIE.html);
}
#primary span.title {
	width: auto;
	min-width: 230px;
	display: block;
}
#primary span.normal {
	font-weight: normal;
	font-variant: normal;
}
#primary div.content.posts {
	width: 25%;
	float: left;
}
#primary div.content.posts div.title {
	position: absolute;
	padding: 12px 32px 42px 27px;
}
#primary div.content.posts span.title, #primary div.content.posts div.text {
	line-height: 1.3em;
	padding: 0 5px 0 32px;
	max-width: 100%;
	width: auto;
	position: relative;
}
#primary div.content.posts span.title {
	margin-top: 44px;
}
#credits {
	width: 100%;
	background: #999;
	padding: 3px;
	font-size: 0.5em;
}
#stadtplan {
	border: solid #ffdc00 7px;
	border-radius: 50%;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	line-height: 180px;
	text-align: center;
	text-decoration: none;
	behavior: url(pie/PIE.html);
}
#stadtplan:hover {
	background: #ffdc00;
	cursor: pointer;
}
img {
	border: none !important;
	max-width: 100%;
	height: auto;
}
div.img-portrait {
	height: 200px;
	width: 200px;
	margin-bottom: 20px;
	margin-left: 32px;
}
span.back {
	margin-top: -119px;
	float: right;
}
.gallery-item {
	text-align: left !important;
	margin-right: 27px;
	width: auto !important;
}
div.events-artist {
	margin-right: 330px;
}
div.events-event {
	margin-right: 495px;
}
div.event {
	padding: 10px 0;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #000;
}
div.event.primary {
	border-top: none;
}
div.event.artist-main, div.event.event-main {
	clear: left;
	width: 100%;
	float: left;
}
div.event.artist-sub, div.event.event-sub {
	margin-left: 10px;
	float: right;
	width: 150px;
}
div.event.artist-sub.first {
	margin-right: -330px;
}
div.event.artist-sub.second {
	margin-right: -165px;
}
div.event.event-sub.first {
	margin-right: -495px;
}
div.event.event-sub.second {
	margin-right: -330px;
}
div.event.event-sub.third {
	margin-right: -165px;
}
a.ticket {
	padding: 1px 3px;
	border-width: 3px;
	border-style: solid;
	border-color: #ffdc00;
	background: none;
}
a.ticket:hover {
	background: #ffdc00;
	text-decoration: none;
}
.content > a.ticket {
	margin-left: 32px;
}
.mitwirkende.left, .mitwirkende.right {
	width: 50%;
	float: left;
}
/* Stadtplan overlay */
@media screen and (min-width: 961px) {
#page {
	min-width: 1100px;
	max-width: 1100px;
}
}
@media screen and (max-width: 960px) {
#page {
	width: 100%;
}
#header {
	font-size: 0.95em;
	padding-top: 20px;
	padding-right: 20px;
	padding-bottom: 30px;
	padding-left: 0;
	margin: 0 20px;
	border-bottom-width: 10px;
}
.header.img {
	width: 20%;
}
ul.menu ul {
	padding: 0 20px;
}
ul.menu li {
	font-size: 0.95em;
	width: 110px;
}
ul.menu.cat li {
	padding-left: 6px;
}
ul.menu.cat li div {
	line-height: 16px;
}
ul.menu.cat li div.link {
	padding: 3px 5px 0 6px;
}
div.button {
	border: solid #ffdc00 3px;
	width: 15px;
	height: 15px;
	font-size: 0.8em;
}
#primary {
	padding-top: 20px;
	padding-left: 20px;
	padding-right: 184px;
}
#primary.full {
	padding-right: 20px;
}
#secondary {
	right: 20px;
	width: 164px;
}
#stadtplan {
	width: 150px;
	height: 150px;
	line-height: 150px;
}
ul li#magnifier {
	padding-left: 160px;
	display: inline-block;
	width: 185px;
	position: absolute;
	right: 23px;
}
}
@media screen and (max-width: 800px) {
#magnifier {
	display: none;
}
div.events-artist, div.events-event {
 margin-right: 0;
}
div.event.artist-sub, div.event.event-sub {
 border-top: none;
}
div.event.artist-main, div.event.event-main {
 clear: both;
 width: 100%;
 padding-bottom: 0;
}
div.event.artist-sub, div.event.event-sub {
 float: left;
 margin-left: 0;
 width: 90%;
 padding-top: 0;
 padding-left: 32px;
}
div.event.artist-sub.first, div.event.event-sub.first, div.event.event-sub.second {
 margin-right: 0;
 padding-bottom: 0;
 padding-top: 20px;
}
div.event.artist-sub.second, div.event.event-sub.third {
 margin-right: 0;
}
ul.menu.cat li.alle {
 margin-right: none;
 float: left;
 min-width: auto;
}
div.button.list {
 margin-left: 6px;
}
#primary div.content.posts {
 width: 50%;
}
.mitwirkende.left, .mitwirkende.right {
	clear: both;
	width: 100%;
}
}
@media screen and (max-width: 640px) {
#primary {
	padding-top: 20px;
	padding-left: 20px;
	padding-right: 140px;
}
#secondary {
	right: 20px;
	width: 120px;
}
#stadtplan {
	border-width: 5px;
	width: 110px;
	height: 110px;
	line-height: 110px;
}
span.back {
	padding-right: 0;
}
ul.menu.cat li {
	width: 118px;
}
ul li#magnifier {
	display: none;
}
}
@media screen and (max-width: 320px) {
#header {
	font-size: 0.7em;
	padding-bottom: 0;
	margin: 0 10px;
	padding-left: 0;
	border-bottom-width: 8px;
	height: 105px;
}
#advertising-header {
	height: 80px;
}
#advertising-header img {
	height: 80px;
}
.text {
	padding-right: 10px;
}
ul.menu ul {
	padding: 0 10px;
}
ul.menu li {
	font-size: 0.85em;
	width: 78px;
}
#magnifier {
	display: none;
}
.header.img {
	width: 35%;
}
.header.text {
	padding-left: 15px;
	padding-bottom: 0;
}
.text, .credits, #em-wrapper, #page-content > p, div.event.artist-sub, div.event.event-sub {
	padding-left: 10px;
}
#primary div.title {
	padding: 24px 44px 30px 10px;
	margin-top: 18px;
	margin-bottom: 30px;
	margin-left: 0;
	width: 20px;
	height: 20px;
}
#primary div.content.posts div.title, #primary div.content.posts span.title, #primary div.content.posts div.text {
	margin-left: 0;
	padding-left: 10px;
	padding-right: 44px;
}
#primary span.title.event {
	margin-left: 20px;
}
div.button.list {
	margin-left: 6px;
}
#primary {
	padding-top: 20px;
	padding-left: 10px;
	padding-right: 10px;
}
#primary.full {
	padding-right: 10px;
}
#secondary {
	width: 76px;
	right: 15px;
	top: -178px;
}
#stadtplan {
	border-width: 5px;
	width: 70px;
	height: 70px;
	line-height: 70px;
	font-size: 0.7em;
}
div.img-portrait {
	margin-left: 10px;
}
#primary div.content.posts {
	width: 100%;
}
}
@media print {
#page, #content, #primary, #credits {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: #FFF;
}
#page {
	margin-left: 40px;
}
#header {
	margin: 10px;
	border-bottom-width: 0px;
	background: #FFF;
}
.text, .credits, #em-wrapper, #page-content > p, div.event.artist-sub, div.event.event-sub {
	padding-left: 10px;
}
.content > a.ticket {
	margin-left: 10px;
}
div.button.list {
	margin-left: 4px;
}
#primary div.title {
	padding: 24px 44px 30px 10px;
	margin-top: 18px;
	margin-bottom: 30px;
	margin-left: 0;
	width: 20px;
	height: 20px;
}
#primary div.content.posts div.title, #primary div.content.posts span.title, #primary div.content.posts div.text {
	margin-left: 0;
	padding-left: 0;
}
#primary span.title.event {
	margin-left: 25px;
}
#advertising-header, ul.menu, #secondary, span.back, div.img-portrait {
	display: none;
}
#credits {
	background: #FFF;
	margin-left: 10px;
}
div.events-artist, div.events-event {
 margin-right: 0;
}
div.event.artist-sub, div.event.event-sub {
 border-top: none;
}
div.event.artist-main, div.event.event-main {
 clear: both;
 width: 100%;
 padding-bottom: 0;
}
div.event.artist-sub, div.event.event-sub {
 float: left;
 margin-left: 10px;
 width: 90%;
 padding-top: 0;
 padding-left: 0px;
}
div.event.artist-sub.first, div.event.event-sub.first, div.event.event-sub.second {
 margin-right: 0;
 padding-bottom: 0;
 padding-top: 20px;
}
div.event.artist-sub.second, div.event.event-sub.third {
 margin-right: 0;
}
.gallery-item {
	width: 20% !important;
}
}

/* Pagefind live search (appended, does not alter existing rules above).
   #search-dropdown is position:fixed with left/width/top set from JS (search.js)
   so it always spans the page width, regardless of where #magnifier sits. */
#magnifier {
	position: relative;
}
#search-dropdown {
	position: fixed;
	z-index: 100;
	background: #fff;
	border: 1px solid #ddd;
	border-top: 3px solid #ffdc00;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	padding: 6px 0;
	box-sizing: border-box;
}
#search-dropdown[hidden] {
	display: none;
}
#search-dropdown .content.posts {
	width: auto;
	float: none;
	padding: 8px 24px;
	border-bottom: 1px solid #eee;
	box-sizing: border-box;
}
#search-dropdown .content.posts:last-of-type {
	border-bottom: none;
}
#search-dropdown .content.posts .title {
	display: none;
}
#search-dropdown .content.posts span.title {
	min-width: 0;
	padding: 0;
	margin-top: 0;
	font-weight: 700;
}
#search-dropdown .content.posts div.text {
	padding: 2px 0 0 0;
	font-size: 0.85em;
	line-height: 1.3em;
}
#search-dropdown-empty,
.search-dropdown-empty {
	padding: 8px 24px;
	font-size: 0.85em;
	color: #666;
}
.search-dropdown-more {
	display: block;
	padding: 8px 24px 4px 24px;
	font-size: 0.85em;
	font-weight: 700;
}
#search-query-info {
	margin-bottom: 20px;
}
#search-dropdown .content.posts div.text mark,
#search-results .content.posts div.text mark {
	background: #ffdc00;
	padding: 0 1px;
}