/* Font */
@font-face { font-family: 'Formation_Sans_Regular'; src: url('../assets/Formation_Sans_Regular.ttf') format('truetype'); }
@font-face { font-family: 'IBM Plex Sans'; src: url('../font/IBM_Plex_Sans/IBMPlexSans-Regular.ttf') format('truetype'); }
@font-face {
   font-family: 'Material Icons';
   font-style: normal;
   font-weight: 400;
   src: local('Material Icons'),
        local('MaterialIcons-Regular'),
        url(../font/material-icons/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

html, body {
    font: 400 20px/1.35 "IBM Plex Sans",Helvetica,Arial,sans-serif;
    color: #000;
    scroll-behavior: smooth;
}

section {
    position: relative;
    min-height: 30rem;
}

h1, h2, h3, h4, h5 {
    font-family: "Formation_Sans_Regular",Helvetica,Arial,sans-serif;
}

section > h1 {
    font-size: 4rem;
    text-transform: uppercase;
    padding: 0 0.5em;
    margin: 0;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.5em;
}

/* Normalize */
body, body * {
    box-sizing: border-box;
}

body {
    background: #fff;
}

div {
    margin: 0;
}

main {
    position: relative;
}

/* Loading Container */
#loading-container {
    width: 100%;
    height: 100%;
}

#loading-container > div {
    margin: 0 auto;
    width: 498px;
}

#loading-container > div > img {
    width: 100%;
}

#loading-container > div > h1 {
    margin: 0;
    margin-top: -3.5em;
    text-align: center;
    font-size: 2em;
}


/* Container */
.container {
    width: 1400px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px;
    overflow: hidden;
}

/* Header */
.introduction {
    background: #081218;
    color: #fff;
}

.introduction main {
    padding: 0;
}

.introduction main > img {
    width: 100%;
    border: 0;
}

#intrdescr, #intrimg {
    width: auto;
    max-width: 700px;
}

#intrdescr {
    padding: 20px;
    padding-top: 0;
}

.introduction main > div > img {
    max-width: 200px;
    border-radius: 3px;
    border: 1px solid #014a73;
}

.introduction h1 {
    margin-top: 0;
    font-size: 1.3rem;
}
 
.introduction p {
    font-size: 1.1rem;
    margin-top: 0;
    text-align: justify;
}

.introduction p + p {
    font-size: 1.0rem;
    margin: 0;
    color: #bbb;
    text-align: justify;
}

.introduction nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    font-family: "Formation_Sans_Regular",Helvetica,Arial,sans-serif;
    font-size: 2.5em;
}

.introduction nav ul {
    margin: 0 auto;
    padding: 0;
}

.introduction nav ul li {
    float: right;
    list-style: none;
    margin: 10px;
    padding: 5px 10px;
}

.introduction nav ul li a {
    text-decoration: none;
    color: #adadad;
}

.introduction .navmenu {
    position: absolute;
    top: 1em;
    right: 1em;
    color: #adadad;
    z-index: 2;
    cursor: pointer;
    display: none;
}

.navmenu .custom-size {
    font-size: 36px;
}

#menu-open {
    display: inline;
}

#menu-close {
    display: none;
}

/* News */
.news {
    background-color: #1a3849;
    color: #ddd;
}

.news .flex-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}

.news article {
    font-size: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #000;
    padding: 0;
    width: calc(33% - 5px);
    margin: 0;
}

.news article a{
    text-decoration: none;
    color: #000;
}

.news .news-link {
    width: 100%;
    text-align: right;
}

.news .news-link > a {
    color: #fff;
}

.instaheader {
    padding: 0.5rem;
}

.instaheader .instacaption {
    display: inline-block;
    vertical-align: top;
}

.instaheader .instalogo {
    width: 2rem;
    height: 2rem;
    display: inline-block;
}

.instaheader .instalogo img{
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.instaheader,
.instacaption .username {
    font-weight: bold;
}

.instaimg {
    width: 100%;
}

.instacaption {
    padding: 0.5rem;
    text-align: left;
}

.instacaption .more-pictures {
    margin-top: -0.5rem;
}

#news-loading-error > p > a {
    color: #ddd;
}

/* Team */
.team {
    background-color: #ddd;
}

.team .container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    width: 1200px;
    max-width: 1200px;
}

.team article {
    width: calc(50% - 10px);
    margin: 0;
}

.team article img{
    width: 100%;
    margin: 0;
}

.team h2 {
    margin: 0;
}

.align-right {
    text-align: right;
}

/* References */
.references .ref-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.references .ref {
    width: 260px;
    height: 260px;
    position: relative;
}

.references .refimg {
    width: 100%;
    height: 100%;
}

.references .refimg img {
    width: 100%;
    height: 100%;
    transition: filter 0.5s;
    cursor: pointer;
}

.references .ref:hover .refimg img {
    filter: blur(3px);
}

.references .refcaption {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0.5rem;
    background-color: rgba(250, 250, 250, 0.1);
    width: 100%;
    color: #fff;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s;
}

.references .ref:hover .refcaption {
    opacity: 1;
}

.references .partner {
    width: 250px;
    margin-right: 10px;
    display: inherit;
}

.references .partner a {
    width: 100%;
}

.references .partner img {
    width: 100%;
}

/* Contact */
.contact {
    background-color: #ddd;
}

.contact > .container {
    padding-top: 25px;
}

.contact .link-contact {
    color: #000;
}

form {
    display: grid;
    grid-template-rows: 1fr 1fr auto auto;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 1rem;
    grid-column-gap: 1rem;
    max-height: 2000px;
    transition: max-height .3s ease-out .3s;
}

form > .input-l {
    grid-column: 1/span 2;
}

form > .input-s {
    grid-column: span 1;
}

input, textarea, select {
    display: block;
    width: 100%;
    margin: 0;
    padding: calc(.5em + 2px) 1rem .5em;
    border: 2px solid #adadad;
    border-top-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-width: 0 0 2px;
    background-color: #fff;
    color: #262626;
    box-shadow: 0 none !important;
    border-radius: 0;
    transition: all .3s ease-out 0s;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.select-container {
    position:relative;
    display: inline;
}

.select-container:after {
    content:"";
    width:0;
    height:0;
    position:absolute;
    pointer-events: none;
}

.select-container:after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: .75em;
    right: .75em;
    border-top: 8px solid black;
    opacity: 0.5;
}

select::-ms-expand {
    display: none;
}

/* IE11 hack */
*::-ms-backdrop, input, textarea {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

input:focus, textarea:focus {
    border-color: #014a73;
}

input[type=submit] {
    background: #014a73;
    border-color: #014a73;
    color: #fff;
    cursor: pointer;
    grid-column: span 1;
}

input[type=submit]:hover {
    background: #002b44;
    border-color: #002b44;
}

input[type=submit]:active {
    background: #333;
    border-color: #333;
}

input[type=submit]:disabled {
    background: #333;
    border-color: #333;
    cursor: not-allowed !important;
}

/* Footer */
footer {
    background: #081218;
    color: #ddd;
}

.footercon {
    text-align: center;
}

footer h3 {
    margin: 0;
}

footer p {
    font-size: 0.8rem;
    margin: 0;
}

footer .linkp {
    margin-top: 1rem;
}

footer .link-contact {
    color: #ddd;
}

footer .link {
    color: #ddd;
    font-size: 0.7rem;
}

/* Impressum / Datenschutz */
.backbutton {
    background: #014a73;
    border-color: #014a73;
    color: #fff;
    cursor: pointer;
    padding: calc(.5em + 2px) 1rem .5em;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all .3s ease-out 0s;
}

.backbutton:hover {
    background: #002b44;
    border-color: #002b44;
}

.backbutton:active {
    background: #333;
    border-color: #333;
}

.source {
    font-size: 0.7rem;
}

/* Error & Success */
#servermsg {
    font-size: 0.8rem;
    border-radius: 0.25rem;
}

.error {
    border: 1px solid;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 0.5rem;
}

.success {
    border: 1px solid;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 0.5rem;
}

/* Media */
@media (max-width: 1550px) {
    .container {
        width: 1200px;
        max-width: 1200px;
    }

    .references .ref {
        width: 220px;
        height: 220px;
        position: relative;
    }

    .references .partner {
        width: 210px;
    }
} 

@media (max-width: 1320px) {
    .container {
        width: 1000px !important;
        max-width: 1000px !important;
    }
}

@media (min-width: 1150px) {
    section > h1 {
        position: absolute;
        transform-origin: top left;
        transform: rotate(-90deg);
        top: calc(30rem + 50px);
        left: 10px;
        height: 4rem;
        width: 30rem;
        margin: 0;
        padding: 0;
        line-height: 4rem;
        text-align: right;
    }

    .introduction nav {
        display: block;
    }
}

@media (max-width: 1149px) {
    section {
        min-height: 0;
    }

    .introduction .navmenu {
        display: block;
    }

    .introduction nav {
        display: none;
    }

    .introduction nav ul {
        background-color: #fff;
        display: block;
        transform: rotate(180deg);
    }

    .introduction nav ul li:last-child {
        padding-top: 50px;
    }

    .introduction nav ul li {
        display: block;
        float: none;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #adadad;
        transform: rotate(-180deg);
    }

    .introduction nav ul li a {
        display: block;
        width: 100%;
        transition: color 0.5s;
    }

    .introduction nav ul li a:hover {
        color: #000;
    }

    .team h2 {
        line-height: 2.5rem;
        top: -15px;
        position: relative;
    }

    .references h2 {
        margin: 0;
        line-height: 2.5rem;
        top: -15px;
        position: relative;
    }

    .references .ref-container {
        margin-bottom: 2rem;
    }

    .references .ref-container:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 1000px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .team h2 {
        font-size: 2em;
    }
}

@media (max-width: 800px) {
    .team h2 {
        font-size: 1.7em;
    }
}

@media (max-width: 768px) {
    html, body {
        font-size: 18px !important;
    }
    
    .container {
        padding: 25px;
    }

    section > h1 {
        font-size: 3rem;
        padding: 0 25px;
    }

    .news article {
        width: calc(50% - 5px);
        margin-bottom: 10px;
    }

    .references .ref {
        width: 33%;
        height: auto;
    }

    .references .partner {
        width: 33%;
        height: auto;
        margin: 0;
    }

    .references .refcaption {
        opacity: 1;
    }

    .flex {
        display: block;
    }

    form > .input-s {
        grid-column: 1/span 2;
    }

    form > input[type=submit] {
        grid-column: 1/span 2;
    }

    #loading-container > div {
        width: 80%;
    }
}

@media (max-height: 450px) {
    #loading-container > div {
        margin: -125px auto;
    }
}

@media (max-width: 600px) {
    .team article {
        width: 100%;
        margin-bottom: 1rem;
    }

    .team article > h2 {
        text-align: right;
    }

    .references .ref {
        width: 50%;
    }

    .references .partner {
        width: 50%;
    }
}

@media (max-width: 450px) {
    html, body {
        font-size: 16px !important;
    }

    .news article {
        width: 100%;
    }
}