/*

Kirby Starterkit

Author: Bastian Allgeier / Sascha Lack
URL:    http://getkirby.com
Email:  support@getkirby.com

*/


/* Reset
-------------------------------------------------- */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}

/* Pix
-------------------------------------------------- */
img {
/*
  display: block;
  max-width: 100%;
*/
}


/* Links
-------------------------------------------------- */
a {
  color: #222;
  text-decoration: none;
}
menu a:hover {
  color: black;
  background-color: #222;
}


/* Clearfix + Tools
-------------------------------------------------- */
.cf:after {
  content: "";
  display: table;
  clear: both;
}
.hide { display: none; }

/* Site
-------------------------------------------------- */
html {
  height: 100%;
  font-size: 100%;
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
/*   margin: 0 auto; */
  font-size: 0.875rem;
  line-height: 1rem;
  padding: 1.25rem;
  padding-top: 3.125rem;
  max-width: 100%;
  background: #fff;
  color: #222;
}


/* Header
-------------------------------------------------- */
.header {
	margin-bottom: 2rem;
}
body.page.pola .header {
	margin-bottom: 0;
}
.logo {
	display: block;
	margin-bottom: 2.5rem;
}
@media screen and (min-width: 26.25rem) {
	.logo {
		display: block;
		margin-bottom: 1.5rem;
		margin-right: 2rem;
		float: left;
		padding-top: 2px;
	}
}
	
.logo img {
	height: 27px;
	width: auto;
}

/* Site
-------------------------------------------------- */
body.page.video #main {
	max-width: 120rem;
}

/* Thumbs
-------------------------------------------------- */
a.thumb {
	overflow: hidden;	
	width: auto;
	display: block;
	margin-bottom: 0.625rem;
	margin-right: 0;
	border: 0 !important;
	background-color: black;
	line-height: 0;
	float: none;
}

a.thumb img {
	width: 100%;
	height: auto;
	opacity: 1;
	transition: opacity .25s ease-in-out;
	-moz-transition: opacity .25s ease-in-out;
	-webkit-transition: opacity .25s ease-in-out;
}
a.thumb:hover img {
	opacity: 0;
	transition: opacity .25s ease-in-out;
	-moz-transition: opacity .25s ease-in-out;
	-webkit-transition: opacity .25s ease-in-out;
	line-height: 0;
}
img.landscape {
	width: 188px;
	height: 116px;
	overflow: hidden;	
}
.portrait {
	width: 92px;
	height: 116px;
	overflow: hidden;	
}

@media screen and (min-width: 26.25rem) {
	a.thumb {
		overflow: hidden;	
		width: auto;
		display: inline-block;
		margin-bottom: 10px;
		margin-right: 10px;
		border: 0 !important;
		background-color: black;
		line-height: 0;
		float: left;
	}
	a.thumb img {
		width: auto;
		height: 180px;
		opacity: 1;
		transition: opacity .25s ease-in-out;
		-moz-transition: opacity .25s ease-in-out;
		-webkit-transition: opacity .25s ease-in-out;
	}

}

/* Navigation
-------------------------------------------------- */
.menu {
	text-transform: uppercase;
}
.menu a {
  display: block;
  position: relative;
  color: #222;
}
.menu a:hover,
.archivelist li.tag a:hover,
.main a.barred:hover {
  color: #222;
  text-decoration: none;
  background-color: #222;
}
.menu .active {
  color: #222;
  text-decoration: none;
  background-color: #222;
}
.menu li {
  list-style: none;
  margin: 0 10px 0 0;
}
.menu > li {
  position: relative;
}
.menu > li > a {
}

.menu > li:last-child {
	position: inherit;
	left: auto;
}
@media screen and (min-width: 26.25rem) {
	.menu {
		width: 285px;
		float: left;
	}
	.menu > li {
		float: left;
	}
	.menu > li:last-child {
		position: absolute;
		left: 465px;
	}
}
.submenu {
  position: absolute;
  z-index: 1;
  display: none;
  left: 1em;
}
.submenu:before {
  position: absolute;
  z-index: -1;
  content: '';
  top: -.5em;
  left: 0;
  border-top: .5em solid transparent;
  border-bottom: .5em solid transparent;
  border-left: .5em solid #222;
}
.submenu li {
  border-bottom: 1px solid #444;
}
.submenu a {
  padding: .5em 1.5em;
  font-size: .9em;
  font-weight: 300;
  color: #fff;
  background: #222;
  white-space: nowrap;
}
.submenu a:hover {
  background: #333;
  color: #fff;
}

@media screen and (min-width: 768px) {}


/* Headings
-------------------------------------------------- */
h1, h2, h3, h4 {
  font-size: 0.875rem;
  font-weight: normal;
  margin-bottom: 1rem;
  color: black;
}
h1 a, h2 a, h3 a, h4 a {
  color: black;
  border: 0 !important;
}

h2 { margin: 2.5rem 0 0.5rem; }

/* Main
-------------------------------------------------- */
.main {
  padding-bottom: 1.5em;
}
.main hr {
  margin: 3em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}
.main a {
  border-bottom: 2px solid #ddd;
}
.main a:hover {
  border-color: #222;
}

/* Text blocks */
.text ul,
.text ol {
  margin-left: 1em;
}

/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
}
.meta li {
  float: left;
  list-style: none;
  margin-right: 2em;
  color: black;
}
.meta li b {
  font-weight: 400;
  color: #000;
  padding-right: .25em;
}


/* Project teaser
-------------------------------------------------- */
.teaser {
  list-style: none;
}
.teaser li {
  margin-bottom: 1.5em;
  list-style: none;
}
@media screen and (min-width: 50em) {
  .teaser li {
    float: left;
    width: 30%;
    margin-left: 5%;
  }
  .teaser li:first-child {
    margin-left: 0;
  }
}


/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 1em 0;
}
.nextprev a {
  border: 0;
}
.nextprev .prev {
  float: left;
}
.nextprev .next {
  float: right;
}

/* Archive
-------------------------------------------------- */
body.page.archive h1 {}

.archivelist {
	columns: 1;
}
.archivelist ul {
	list-style-type: none;
	margin: 0;
	margin-bottom: 1rem;
}
.archivelist li.leadingletter {
	font-weight: bold;
	margin-bottom: 1rem;
}
.archivelist li.tag a {
	border: 0;
}

@media screen and (min-width: 480px) {
	.archivelist {
		columns: 2;
	}
}
@media screen and (min-width: 768px) {
	.archivecontainer {
		display: grid;
		grid-template-columns: 152px 1fr;
	}
	.archivelist {
		columns: 3;
		column-gap: 1rem;
	}
}
@media screen and (min-width: 1280px) {
	.archivelist {
		columns: 5;
		column-gap: 1rem;
	}
}
@media screen and (min-width: 1440px) {
	.archivelist {
		columns: 6;
		column-gap: 1rem;
	}
}
@media screen and (min-width: 1680px) {
	.archivelist {
		columns: 7;
		column-gap: 1rem;
	}
}
@media screen and (min-width: 1920px) {
	.archivelist {
		columns: 8;
		column-gap: 1rem;
	}
}
@media screen and (min-width: 2560px) {
	.archivelist {
		columns: 10;
		column-gap: 1rem;
	}
}

/* Default Textpages Grid
-------------------------------------------------- */
@media screen and (min-width: 768px) {
	body.page.contact div.text,
	body.page.datenschutz div.text {
		display: grid;
		grid-template-columns: 152px 1fr;
	}
}

/* Kirby Columns
-------------------------------------------------- */
@media screen and (min-width: 40em) {
	.columns {
	  margin-right: -1rem;
	}
	.column {
	  display: inline-block;
	  vertical-align: top;
	  padding-right: 1rem;
	}
	.columns-1 .column {
	  width: 100%;
	}
	.columns-2 .column {
	  width: 50%;
	}
	.columns-3 .column {
	  width: 33.33%;
	}
	.columns-4 .column {
	  width: 25%;
	}
	.columns-5 .column {
	  width: 20%;
	}
}
/*
.home .site-main {
   display: flex;
   flex-wrap: wrap;
}
 
.home .site-main > article {
   flex: 1;
}
*/


/* Footer
-------------------------------------------------- */
.footer {
  padding: 1em 0 6em;
  font-size: .8em;
}
.copyright {
  float: left;
}
.colophon {
  float: right;
}
.colophon a b {
  color: black;
  padding-left: .25em;
}


/* Preload images */
body:after {
  content: url(../images/close.png) url(../images/loading.gif) url(../images/prev.png) url(../images/next.png);
  display: none;
}

body.lb-disable-scrolling {
  overflow: hidden;
}

.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: white;
  display: none;
}

.lightbox {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
}

.lightboxOverlay { position: fixed !important; top: 0; left: 0; height: 100% !important; width: 100% !important; }
.lightbox { position: fixed !important; top: 50% !important; transform: translateY(-55%); }

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  background-color: white;
  *zoom: 1;
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-container {
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url(../images/loading.gif) no-repeat;
}

.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  width: 50%;
  left: 0;
  float: left;
  background: url(../images/prev.png) left 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-prev:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-nav a.lb-next {
  width: 50%;
  right: 0;
  float: right;
  background: url(../images/next.png) right 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-next:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-dataContainer {
  margin: 0 auto;
  *zoom: 1;
  width: 100%;
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
}

.lb-data .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1rem;
}
.lb-data.top .lb-details {
	float: none;
}
.lb-data .lb-caption {
	display: inline-block;
	line-height: 1rem;
	height: 26px;
	line-height: 26px;
}

.lb-data .lb-number {
	display: none !important;
	clear: left;
	line-height: 1.625rem;
}

.lb-closeContainer {
	width: 15%;
	float: right;
	text-align: right;
	line-height: 1.625rem;
}

.lb-data .lb-close {
  display: block;
  outline: none;
  font-size: 20px;
}
.lb-data .lb-close:after {
/*
	content: ' ×';
	font-size: 1rem;
	line-height: 1.625rem;
*/
}
.lb-data .lb-close:hover {
  cursor: pointer;
}
