/*

Kirby Starterkit

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

*/

/* Rutan
-------------------------------------------------- */
@font-face {
  font-family: 'Rutan';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/rutan-regular.woff) format('woff');
}

@font-face {
  font-family: 'Rutan';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/rutan-bold.woff) format('woff');
}

/* 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: #ffed00;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}

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

/* Site
-------------------------------------------------- */
html {
  position: relative;
  height: 101%;
  overflow-x: hidden;
  padding: 0 20px;
  font-family: "Rutan", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  position: relative;
  width: 100%;
  max-width: 50em !important;
  min-height: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
  font-size: 1.25em;
  line-height: 1.2em;
  background-color: #455b63;
  background-image: url("../images/CI-Zwockel-2017-Blitz.svg");
  background-position: 49.7% -1700px;
  background-repeat: no-repeat;
  background-size: 5000px auto;
  color: #ffed00;
}


/* Wrapper
-------------------------------------------------- */
.wrapper {
  position: relative;
  padding: 12rem 0 1.5rem 0;
}

/* Header
-------------------------------------------------- */
.header {
  position: absolute;
  left: 50%;
  top: 6.2rem;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.header h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 600;
  text-transform: uppercase;
}

.header h2 {
  margin-top: -0.6em;
  font-size: 1.03em;
  font-weight: 400;
  text-transform: lowercase;
  text-align: right;
}

/* Navigation
-------------------------------------------------- */
.menu {
  position: absolute;
  right: 0;
  bottom: 27px;
}

.menu a {
  display: inline;
  color: #999;
}

.menu a:hover,
.menu .active {
  color: #999;
}

.menu li {
  list-style: none;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: inline;
  padding: .35em 0 .35em 1em;
  font-weight: 400;
}

.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: 400;
  color: #fff;
  background: #222;
  white-space: nowrap;
}

.submenu a:hover {
  background: #333;
  color: #fff;
}

/* Headings
-------------------------------------------------- */
h1 {
  font-size: 1.5em;
  line-height: 1.25em;
  font-weight: 400;
  margin-bottom: .5em;
}

h2 {
  font-size: 1.5em;
  line-height: 1.25em;
  font-weight: 400;
  margin-bottom: .5em;
}

h3 {
  font-size: 1em;
  line-height: 1.5em;
  font-weight: 400;
  margin-bottom: .5em;
}

h4 {
  font-size: 0.875em;
  font-weight: 600;
  line-height: 1.5em;
  margin-bottom: .5em;
  color: #74b72c;
}

h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
}

.project-headline {
  margin-bottom: 0;
  font-size: 1.03em;
  font-weight: 600;
  text-transform: uppercase;
}

/* 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 #ffed00;
}

.main a:hover {
  border-color: #222;
}

/* Text blocks */
.text {
  font-size: 0.8em;
}

.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: #74b72c;
}

.meta li b {
  font-weight: 400;
  color: #ffed00;
  padding-right: .25em;
}

/* Project teaser
-------------------------------------------------- */
.teaser {
  list-style: none;
}

.teaser li {
  position: relative;
  margin-bottom: 1%;
  list-style: none;
  background-color: #ffed00;
  font-size: 0;
}

.teaser li::before {
  content: '';
  display: block;
  padding-top: 50%;
}

.teaser li a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-bottom: 0;
}

.teaser li h3 {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  margin: 0.35em;
  padding: 0 0.3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  background: #455b63;
  color: #ffed00;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(0, 0, 0, .5);
}

.teaser li .teaser-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition-property: opacity, -webkit-filter, filter;
  -moz-transition-property: opacity, -moz-filter, filter;
  transition-property: opacity, filter;
  -webkit-transition-duration: 0.2s;
  -moz-transition-duration: 0.2s;
  transition-duration: 0.2s;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.teaser li:hover .teaser-img {
  opacity: .25;
  background-blend-mode: color-dodge;
}

@media screen and (min-width: 30em) {
  .teaser li {
    float: left;
    width: 49%;
    margin-left: 1%;
  }

  .teaser li:nth-child(2n+1) {
    margin-left: 0;
  }
}

@media screen and (min-width: 50em) {
  .teaser li {
    float: left;
    width: 32%;
    margin-left: 1%;
  }

  .teaser li:nth-child(2n+1) {
    margin-left: 1%;
  }

  .teaser li:nth-child(3n+1) {
    margin-left: 0;
  }
}

/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 0;
}

.nextprev a {
  border: 0;
}

.nextprev .prev {
  float: left;
}

.nextprev .next {
  float: right;
}

/* Footer
-------------------------------------------------- */
.footer {
  position: fixed;
  z-index: 2;
  bottom: -80px;
  right: -30px;
  width: 500px;
  padding: 20px 32px 52px 52px;
  background-color: #455b63;
  border-top: 1px solid #ffed00;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(-15deg);
}

.copyright {
  float: left;
}

.colophon {
  float: right;
  transform: rotate(15deg);
}

.colophon a b {
  color: #74b72c;
  padding-left: .25em;
}

/* Vimeo
-------------------------------------------------- */

.vimeo {
  position: relative;
  margin-bottom: 0.25em;
  padding-top: 56.25%;
  filter: drop-shadow(0 0 10px rgba(0,0,0,.25));
}

.vimeo iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  margin: auto;
}
