/* Core Stuff */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html, button, input, select, textarea, .pure-g [class *= "pure-u"] {
    font-family: 'Fira Sans', sans-serif;
}

html {
    font-size: 80%;
}

@media screen and (min-width: 48em) {
    html {
        font-size: 130%;
    }
}

body {
    line-height: 1.7;
    color: #131d32;
    margin: 0;
}


h1, h2, h3, h4, h5, h6 {
    color: #1d3059;
}

h3 {
    margin-bottom: 1rem;
}

a {
    color: #4580d7;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.center {
    text-align: center;
}

.large {
    font-size: 1.3em;
}

.center.large {
    margin-bottom: 2em;
}

.fa-ul {
    margin-left: 4em;
    margin-bottom: 2.5em;
}

.fa-li {
    text-align: right;
    padding-right: 0.8rem;
    line-height: 1.5rem;
}

h1 .fa:first-child, h2 .fa:first-child, h3 .fa:first-child,
h4 .fa:first-child, h5 .fa:first-child, h6 .fa:first-child {
    padding-right: 0.2em;
}

td p {
    margin: 0;
}

tr > td > *:last-child {
    margin-bottom: 1.5rem;
}

tbody > tr:last-child > td > *:last-child {
    margin-bottom: 0;
}

.semi-trans {
    opacity: 0.25;
}

blockquote {
    position: relative;
	padding: 0 2.5rem;
    color: #3B5489;
}

blockquote::before, blockquote::after {
    position: absolute;
    width: 2rem;
    height: 2rem;
    font-size: 4rem;
	font-weight: bold;
    line-height: 1;
}

blockquote::before {
    top: 0;
    left: 0;
    content: "\201C";
}
blockquote::after {
    bottom: 0;
    right: 0;
    content: "\201D";
}

cite {
    display: block;
    text-align: right;
}

cite::before {
    content: "\2014 \0020";
}


/* Header */
#header {
    background-image: url(/user/themes/js-aesch-2017/images/blue.svg);
    background-size: 100rem;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: #0c3489;
    text-align: center;
}

#header > div {
    background-image: url(/user/themes/js-aesch-2017/images/people-2x.png);
    background-position: 50% bottom;
    background-size: 75em auto;
    background-repeat: repeat-x;
    padding: 1px;
}

#header > div > a > img {
    margin: 2rem auto 2.5rem;
    display: block;
    max-width: 100%;
    height: auto;
}

#header > div > a > h1 {
    display: none;
}

/* Menu */
#main-nav {
    font-size: 1.25em;
}

#main-nav ul {
    text-align: center;
    letter-spacing: -1em;
    margin: 0;
    padding: 0;
}

#main-nav ul li {
    display: inline-block;
    letter-spacing: normal;
}

#main-nav ul li a {
    position: relative;
    display: block;
    color: black;
    font-weight: 300;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}

@media screen and (min-width: 35.5em) {
    #main-nav ul li a {
        padding: 0.4rem 2rem;
    }
}

#main-nav ul li a:hover {
    color: #4580d7;
}

/* Selected nav item */
#main-nav ul li.selected > a {
    font-weight: 800;
}

#main-nav div {
    background: #f6f8fb;
    font-size: 0.9em;
}

#main-nav > div {
    margin-bottom: -1.5rem;
}

/* Body */
#body {
    background: #f6f8fb;
    padding: 1.5rem;
}

#body > h1:first-child,
#body > h2:first-child,
#body > h3:first-child,
#body > h4:first-child,
#body > h5:first-child,
#body > h6:first-child {
    margin-top: 0.8rem;
}

#body > p,
#body > ul,
#body > ol,
#body > pre,
#body > table,
#body > form,
#body > blockquote,
#body > div,
#body > h1,
#body > h2,
#body > h3,
#body > h4,
#body > h5,
#body > h6,

#body > .highlight > p,
#body > .highlight > ul,
#body > .highlight > ol,
#body > .highlight > pre,
#body > .highlight > table,
#body > .highlight > form,
#body > .highlight > blockquote,
#body > .highlight > div,
#body > .highlight > h1,
#body > .highlight > h2,
#body > .highlight > h3,
#body > .highlight > h4,
#body > .highlight > h5,
#body > .highlight > h6 {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

#body p video {
    width: 100%;
}

#body img, #body video, #mapcontainer {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

table.spaced td {
    font-variant-numeric: tabular-nums;
}

table.spaced td, table.spaced th {
    padding: 0.1em 0.5em;
}

.highlight {
    background: #30529b;
    background-image: url(/user/themes/js-aesch-2017/images/light-blue.svg);
    background-size: 100rem;
    background-position: bottom center;
    background-repeat: no-repeat;
    box-sizing: content-box;
    max-width: 100% !important;
    margin: 2.3rem -1.5rem !important;
    padding: 0.8rem 1.5rem !important;
}

.highlight > :first-child {
    margin-top: 0.5em;
}

.highlight,
.highlight a,
.highlight h1,
.highlight h2,
.highlight h3,
.highlight h4,
.highlight h5,
.highlight h6 {
    color: white;
}

.highlight > h1:first-child,
.highlight > h2:first-child,
.highlight > h3:first-child,
.highlight > h4:first-child,
.highlight > h5:first-child,
.highlight > h6:first-child {
    text-align: center;
}

.highlight a {
    color: #acceff;
}

.no-shadow, #mapcontainer img {
    box-shadow: none !important;
}

#mapcontainer {
    max-width: 800px !important;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* tricks for fixed aspect ratio: */
#mapcontainer:before {
    content: "";
    float: left;
    padding-bottom: 75%;
}
#mapcontainer:after {
    content: "";
    display: table;
    clear: both;
}

.middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.middle > :first-child, .middle > div > :first-child {
    margin-top: 0;
}

.middle > :last-child, .middle > div > :last-child  {
    margin-bottom: 0;
}

/* no middle alignment for IE, since flexboxes are broken... */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   .middle {
       display: block;
   }
}

.pad-left {
    padding-left: 1.5rem;
}

.pad-right {
    padding-right: 1.5rem;
}

@media screen and (min-width: 35.5em) {
    .pad-left-sm {
        padding-left: 1.5rem;
    }

    .pad-right-sm {
        padding-right: 1.5rem;
    }
}

.pad-bottom > :last-child  {
    margin-bottom: 1.5rem;
}

.ratio-16-9 {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ratio-16-9-wrapper {
    display: inline-block;
    position: relative;
}

.ratio-16-9-wrapper:after {
  padding-top: 56.25%;
  display: block;
  content: '';
}

.image-grid {
    margin-top: 1.5rem;
}

.image-grid > div {
    margin-right: -1.5rem;
}

.image-grid-box {
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    line-height: 1.5em;
}

.image-grid-box img {
    margin-bottom: -0.8rem;
}

.image-grid-box.middle > :last-child {
    margin-bottom: 0;
}

.teamler-funktion {
    color: #777;
}

/* Forms */
.form-field {
    padding-bottom: 1em;
}

.form-spacer {
    padding-top: 0.5em;
}

.buttons {
    padding: 1em 0;
}

.buttons button {
    margin-right: 1em;
}

.same-line {
    float: left;
    padding-right: 2em;
}

.same-line + * {
    float: left;
    clear: none !important;
}

.same-line + * + * {
    clear: left;
}

.radio label, .checkboxes label {
    padding-right: 1em;
}

.form-field textarea {
    width: 100%;
}

input.biggerfield {
	width: 20em;
}

/* Footer */
#footer {
    background-image: url(/user/themes/js-aesch-2017/images/blue.svg);
    background-size: 100rem;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: #0c3489;
    color: white;
    font-size: 0.8em;
    text-align: center;
    padding: 1rem;
}

#footer a {
    color: white;
}

#footer a:hover {
    color: white;
    text-decoration: underline;
}

#footer > p {
    margin: 0;
}

#footer-logo {
    height: 3.4em;
    vertical-align: -79%
}

#footer > p > a {
    padding-left: 0.5em;
}

/* flickr photos */

.flickr section {
	font-size: 0; /* to remove spaces between pictures */
    margin-right: -1.5rem;
}

.flickr-photo {
	padding: 0 !important;
	min-width: 0 !important;
}

.flickr-photo figure {
	margin: 0 1rem 1rem 0;
}

.flickr-photo figcaption {
	display: none;
}

.flickr-lightbox-title, .flickr-lightbox-links {
	display: none;
}

figure.flickr-lightbox {
	margin: 0;
	font-size: 0;
}

figure.flickr-lightbox img {
	max-width: 100%;
}

@media screen and (max-width: 48em) {
    .flickr-photo img {
		height: 120px;
        width: 120px;
    }
}

/* EASTER EGG */
#header > div {
    animation: move 100s 300s linear infinite;
}

@keyframes move {
    from { background-position: 50% bottom;}
    to   { background-position: calc(50% + 75rem) bottom;}
}