/**
 * SGS Serious Gaming & Simulations Theme
 *
 * This theme was made by SGS Serious Gaming & Simulations GmbH. It's
 * technically based on Pico's default theme.
 *
 * Pico's default theme:
 *     Pico Default Theme v2.0.4 <https://github.com/picocms/pico-theme>
 *     Author: The Pico Community <http://picocms.org/>
 *     License: MIT license
 */

*, *::before, *::after {
    box-sizing: border-box;
    border: 0 none;
    margin: 0;
    padding: 0;
}

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0 none;
}

/*** BASIC LAYOUT ***/

html, body { height: 100%; }

body { display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
#header, #footer { flex: 0 0 auto; }

#main {
    padding: 5em 0 4em;
}

.container {
    max-width: 72em;
    padding: 0 1em;
    margin: 0 auto;
}

/* very ugly overflow fix, avoid this whenever possible! */
#main .container { overflow-x: auto; }

/*** BASIC LAYOUT: BACKGROUND ***/

#header, #footer { position: relative; }
#header::before, #footer::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
    background-image: url("../assets/background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*** BASIC LAYOUT: HEADER ***/

#header { background: rgba(0, 0, 0, 0.8); }
#header::before { background-position: center top; }

#header h1 {
    float: left;
    font-size: 2rem;
    margin: 0;
    padding: 1.5em 1em 1.5em 0;
}
#header h1 a, #header h1 a:hover { color: #fff; }

/*** BASIC LAYOUT: FOOTER ***/

#footer { background: rgba(0, 0, 0, 0.8); }
#footer::before { background-position: center bottom; }

#footer { color: #fff; }
#footer a { color: #c90016; }
#footer a:hover { color: #fff; }

#footer ul {
    padding: 3em 0;
}

ul#legal {
    list-style: none;
    margin: 0;
    padding-left: 0;
    text-align: center;
}
ul#legal li {
    display: inline-block;
    padding-left: 0;
}
ul#legal li:not(:last-child)::after {
    content: ' |';
}

/*** BASIC LAYOUT: EXTRA SMALL DEVICES ***/

@media (max-width: 767px) {
    #main { padding: 2em 0 1em; }

    #header h1 {
        float: none;
        padding: 0.5em 0;
    }

    ul#legal { padding: 1em 0; }
    ul#legal li:first-child {
        display: block;
        margin-bottom: 0.5em;
        text-align: center;
    }
    ul#legal li:first-child::after {
        content: none;
    }

    #imprint dd,
    #imprint dt {
        text-align: left;
    }
}

/*** TYPOGRAPHY ***/

html { font-size: 16px; }

body {
    font-family: 'Droid Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    color: #444;
}

p, td, th, li, dd {
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, hr, table, .table-responsive, ol, ul, dl, pre, blockquote, fieldset {
    margin-bottom: 1em;
}

a {
    color: #c90016;
    text-decoration: none;
    -webkit-transition: color .2s ease-in;
            transition: color .2s ease-in;
}
a:hover { color: #444; }

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.6em;
    font-weight: bold;
    color: #333;
}
h1 { font-size: 2em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.1em; }
h5 { font-size: 1em; }
h6 { font-size: 1em; font-weight: normal; font-style: italic; }

img { max-width: 100%; }

hr {
    border: 0.15em solid #f5f5f5;
    border-radius: 0.3em;
    background: #f5f5f5;
}

abbr { text-decoration: underline dotted; }

/*** TABLES ***/

table { border-spacing: 0; }

td, th {
    padding: 0.4em 1em;
    vertical-align: top;
}
th {
    font-weight: bold;
    text-align: center;
    background: #f5f5f5;
    color: #333;
}

td, th {                                         border: 1px solid #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th {                         border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) {       border-right: 0 none; }

tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child {   border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child {                           border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child {                            border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td {                        border-radius: 0 !important; }

.table-responsive { overflow-x: auto; }
.table-responsive > table { margin-bottom: 0; }

/*** LISTS ***/

ol, ul {
    list-style-position: outside;
    padding-left: 1.5em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }

dt { font-weight: bold; }
dd { margin-left: 2em; }
dd + dd, dd + dt { margin-top: 1em; }

/*** CODE ***/

code {
    margin: 0 0.1em;
    padding: 0.1em 0.2em;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    background: #f5f5f5;
    font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
    font-size: 0.9em;
}

pre {
    padding: 0 1em;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    background: #f5f5f5;
    line-height: 1.4;
}
pre code {
    display: block;
    margin: 0;
    padding: 1.1111em 0;
    border: 0 none;
    background: transparent;
    overflow-x: auto;
}

/*** BLOCKQUOTE ***/

blockquote {
    font-style: italic;
    margin-left: 1em;
    padding-left: 1em;
    border-left: 0.5em solid #f5f5f5;
}

/*** FORMS ***/

label, fieldset legend { font-weight: bold; }

input:not([type="checkbox"]):not([type="radio"]), button, .button, select, textarea, fieldset, fieldset legend {
    border: solid 1px #ccc;
    border-radius: 0.3em;
    background: #fff;
    -webkit-transition: none .2s ease-in;
            transition: none .2s ease-in;
    -webkit-transition-property: border-color, background, box-shadow;
            transition-property: border-color, background, box-shadow;
}

input:not([type="checkbox"]):not([type="radio"]), button, .button, select, textarea {
    padding: 0.5em 1em;
    outline: 0 none;
    font-size: 1em;
}
input:focus:not([type="checkbox"]):not([type="radio"]), button:focus, .button:focus, select:focus, textarea:focus {
    border-color: #c90016;
    box-shadow: 0 0 8px #c90016;
}
input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, button:focus, .button:focus,
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover, .button:hover {
    background: #f5f5f5;
    cursor: pointer;
}
.button {
    color: #444;
    cursor: pointer;
}

textarea, select[multiple] {
    vertical-align: bottom;
    overflow: auto;
}

fieldset {
    padding: 1em;
    background: #f5f5f5;
}
fieldset legend { padding: 0 1em; }

fieldset label, fieldset input, fieldset button, fieldset .button,
fieldset select, fieldset textarea {
    margin: 0.2em 0.5em;
}
fieldset label:first-child, fieldset input:first-child, fieldset button:first-child, fieldset .button:first-child,
fieldset select:first-child, fieldset textarea:first-child {
    margin-left: 0;
}
fieldset label:last-child, fieldset input:last-child, fieldset button:last-child, fieldset .button:last-child,
fieldset select:last-child, fieldset textarea:last-child {
    margin-right: 0;
}

/* Firefox input size fix */
input::-moz-focus-inner, button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/*** LANDING PAGE ***/

#landing-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#landing-main > .inner { font-size: 2em; }
#landing-aside > .inner { font-size: 0.9em; }

#landing-main h1 {
    width: max-content;
    border-bottom: 5px solid #c90016;
}

#landing-aside #imprint { display: flex; }
#landing-aside #imprint hr { display: none; }

#landing-aside #imprint dl:not(:last-child) { margin-right: 2rem; }

#landing-aside ul#legal li:first-child {
    display: block;
    margin-bottom: 0.5em;
    text-align: center;
}
#landing-aside ul#legal li:first-child::after {
    content: none;
}

@media (min-width: 1400px) and (min-height: 576px) {
    #landing { flex-direction: row; }
    #landing-main {
        width: 40%;
        min-width: 550px;
    }
    #landing-aside {
        width: 60%;
    }

    #landing { background: #ffffff; }
    #landing::after, #landing-aside::after, #landing-aside::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    #landing::after {
        left: 30%;
        width: 300px;
        z-index: -1;
        background-image: url("../assets/separator.svg");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        transform: scale(-1);
    }
    #landing-aside::before {
        left: calc(30% + 300px);
        width: calc(70% - 300px);
        z-index: -2;
        background: rgba(0, 0, 0, 0.8);
    }
    #landing-aside::after {
        left: 30%;
        width: 70%;
        z-index: -3;
        background-image: url("../assets/background.jpg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    #landing-main > .inner {
        padding: 4rem 6rem;
    }
    #landing-aside > .inner {
        position: absolute;
        right: 0;
        bottom: 0;
        padding: 4rem 6rem;
    }

    #landing-aside, #landing-aside h1, #landing-aside h2 { color: #fff; }
    #landing-aside a { color: #c90016; }
    #landing-aside a:hover { color: #fff; }
    #landing-aside a.button { color: #444; }
}

@media (max-width: 1399px), (max-height: 575px) {
    #landing-main {
        min-height: calc(100% - 50px - 4rem);
        margin-bottom: calc(50px + 4rem);
    }

    #landing { background: #ffffff; }
    #landing::after, #landing-main::after, #landing-main::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    #landing::after {
        top: calc(100% - 100px - 4rem);
        height: 100px;
        z-index: -1;
        background-image: url("../assets/separator.svg");
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    #landing-main::before {
        height: calc(100% - 100px - 4rem);
        z-index: -2;
        background: rgba(0, 0, 0, 0.8);
    }
    #landing-main::after {
        height: calc(100% - 4rem);
        z-index: -3;
        background-image: url("../assets/background.jpg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    #landing-main > .inner { max-width: 16em; }
    #landing-aside > .inner { max-width: 48em; }
    #landing-main > .inner, #landing-aside > .inner {
        padding: 0 1em;
        margin: 0 auto;
    }

    #landing-main, #landing-main h1, #landing-main h2 { color: #fff; }
    #landing-main a { color: #c90016; }
    #landing-main a:hover { color: #fff; }
    #landing-main a.button { color: #444; }
    #landing-main h1 { font-size: 1.7em; }
}

@media (max-height: 575px) {
    #landing-main {
        min-height: calc(100% - 50px);
        margin-bottom: calc(50px + 4rem);
    }
    #landing::after { top: calc(100% - 100px); }
    #landing-main::before { height: calc(100% - 100px); }
    #landing-main::after { height: 100%; }

    #landing-main > .inner { font-size: 1.5em; }
}
