/*

Kirby Starterkit

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

*/


/* Source Sans Pro
-------------------------------------------------- */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(../fonts/sourcesanspro-300.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/sourcesanspro-600.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400-italic.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: #000;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}


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


/* Site
-------------------------------------------------- */
html {
  height: 101%;
  font-family: "Source Sans Pro", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0 auto;
  font-size: 1em;
  line-height: 1.5em;
  padding: 1.5em;
  max-width: 70em;
  background: #fff;
  color: #222;
}


/* Header
-------------------------------------------------- */
.header {
  border-bottom: 2px solid #EEE;
  margin-bottom: 1.5em;
}
.logo {
  display: block;
  margin-bottom: 1.5em;
  font-size: 1.75em;
	font-weight: 700;
	line-height: 2em;
}
.logo img {
	display: inline-block;
  width: auto;
  margin-right: .5em;
  vertical-align: bottom;
}

/* Navigation
-------------------------------------------------- */
.menu a {
  display: block;
  color: #AAA;
}
.menu a:hover {
  color: #333;
  text-decoration: none;
}
.menu .active {
  color: #333;
}
.menu li {
  list-style: none;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  padding: .75em 0;
  border-top: 1px solid #EEE;
  font-size: 1.1em;
  font-weight: 400;
}

.login {
    float: right;
    padding: .75em 0;
}

.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;
}

.aside-menu {
  float: right;
  width: 12em;
}
.aside-menu ul {
  border: 1px solid #DDD;
  border-radius: 2px;
}
.aside-menu ul li {
  list-style: none;
}
.aside-menu ul li a {
  display: block;
  padding: .5em 1em;
}
.aside-menu ul li:hover a {
  color: #FFD700;
  background: #555;
}
.aside-menu ul li + li {
  border-top: 1px solid #DDD;
}

@media screen and (min-width: 40em) {
  body {
    padding: 2em 3em 3em;
  }
  .logo {
	  display: block;
	  margin: 2em 0;
  }
  .menu {
    margin-right: -1em;
  }
  .menu > li {
    float: left;
  }
  .menu > li > a {
		margin-right: 1em;
    border: 0;
  }
  .menu > li:hover .submenu {
    display: block;
  }
}


/* Headings
-------------------------------------------------- */
h1 {
  font-size: 2em;
  line-height: 1.25em;
  font-weight: 600;
  margin-bottom: .5em;
}
h2 {
  font-size: 1.5em;
  line-height: 1.25em;
  font-weight: 500;
  padding-bottom: .25em;
  margin-top: 1em;
  margin-bottom: 1.25em;
  border-bottom: 1px solid #DDD;
}
h3 {
  font-size: 1.4em;
  line-height: 1.5em;
  font-weight: 400;
  margin-bottom: .5em;
}
h4 {
  font-size: 1.125em;
  font-weight: 600;
  line-height: 1.5em;
  margin-bottom: .5em;
}
h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
}
.arrow-seperator {
	color: #CCC;
	padding: 0 .25em;
}


/* Main
-------------------------------------------------- */
.main {
  padding-bottom: 1.5em;
  border-bottom: 2px solid #EEE;
  float: left;
  width: 100%;
}

.main--aside {
  width: calc(100% - 14rem);
}

.main hr {
  margin: 2em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1em;
}
.main a {
  border-bottom: 2px solid #ddd;
}
.main a:hover {
  border-color: #333;
}
.main .image {
	margin-bottom: 1em;
}
.main time {
	display: inline-block;
	min-width: 4.5em;
}

/* Text blocks */

.text ul,
.text ol {
  margin-left: 1em;
}

.text li {
  margin-bottom: .25em;
}

.table {
	width: 100%;
	border-spacing: 0;
  border-collapse: collapse;
  border: 1px solid #DDD;
  border-radius: 3px;
}
.table tr td {
	margin: 0;
	padding: .5em 1em;
}
.table tr + tr td {
	border-top: 1px solid #DDD;
}
.table tr:hover td {
	background: #F3F3F3;
}
.table a {
	border: none;
}
.table .fa {
	margin-right: .75em;
	color: #AAA;
}
.table .grey-right {
	color: #999;
	font-weight: 300;
	text-align: right;
}

/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
}
.meta li {
  list-style: none;
  margin-right: 2em;
}
.meta li b {
	display: inline-block;
  font-weight: 400;
  color: #AAA;
  padding-right: .25em;
  min-width: 5.5em;
}


/* Camps teaser
-------------------------------------------------- */
.camp {
  list-style: none;
  margin-bottom: 3em;
}
.camp .meta {
	margin-bottom: 2em;
}
@media screen and (min-width: 50em) {
	.camp {
		float: left;
		width: 33%;
	}
}

.camp-list li {
	list-style: none;
	width: 100%;
	margin-bottom: 2px;
	padding: .75em 0;
}
.camp-list li a {
	border: none;
}
.camp-list li + li {
	border-top: 1px solid #EEE;
}
.camp-list li > span {
	display: inline-block;
	width: 33%;
}
.camp-list .contact {
	text-align: right;
}

/* Forms
-------------------------------------------------- */
.main form input {
    font-family: "Source Sans Pro", sans-serif;
}
.main form input[type="text"], .main form input[type="password"] {
  display: block;
  width: 20em;
  padding: .5em .75em;
  font-size: 1em;
  border: 1px solid #CCC;
  border-radius: 3px;
}

.main form textarea {
  width: 100%;
  height: 20rem;
  padding: .5rem;
  border: 1px solid #CCC;
  border-radius: 3px;
  resize: vertical;
}

.main form label {
    display: block;
    margin-bottom: .35em;
    font-weight: 600;
}

.main form .check-label {
  display: inline-block; 
  margin-left: .25rem;
}

.main .validation-error {
    color: #AA0000;
}

.form-field {
  margin-bottom: .75rem;
}

/* Buttons
-------------------------------------------------- */
.main .button {
  display: inline-block;
	border: 1px solid #CCC;
	padding: .5em .75em;
	margin: .75em 0;
  font-size: 1em;
	border-radius: 3px;
	background: transparent;
}
.main .button:hover {
	border-color: #333;
}

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


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

.search__input, .search__button {
  float: left;
}
