/* Basics */

html {

    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 300;

}

html, body {

    width: 100%;
    min-width: 100%;
    max-width: 100%;

    height: 100%;
    min-height: 100%;

}

img {

    /* fix padding-bottom on images */
    display: block;

}

a, a:link, a:visited {

    color: inherit;
    text-decoration: none;

}

a:hover, a:active, a:focus {

    text-decoration: none;

}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
}


/* Page */

.page {

    display: flex;
    flex-direction: column;
    align-items: center;

    height: 100%;
    min-height: 300px; /* TODO: Find optimum min/max-sizes. */
    max-height: 100%;

    width: 100%;
    min-width: 300px; /* TODO: Find optimum min/max-sizes. */
    max-width: 100%;

    box-sizing: border-box;
    padding: 1em;

}

.page > .content > h2 {

    margin: 2em 0 1em;

}

.page > .content > section > h3 {

    margin: 2em 0 1em;

}

.page > .content > section > h4 {

    margin: 1.5em 0 0.5em;

}


/* Header */

header {

    margin: 1.5em 0; /* TODO: Find optimum spacings. */

}

header h1 {

    display: none;

}

header img {

    height: 20vh; /* TODO: Find optimum min/max-sizes. */
    min-width: 50px; /* TODO: Find optimum min/max-sizes. */
    max-width: 90vw;
    min-height: 100px; /* TODO: Find optimum min/max-sizes. */

}


/* Slideshow */

.slideshow {

    min-height: 200px; /* TODO: Find optimum min/max-sizes. */

    /* Take as much space as available/free. */
    width: 100%;

    /* Switch to 1, if the slideshow should take all available vertical space.
     * Prevents empty space at the bottom of the page, when the screen is very tall, but creates empty space above and below the image. */
    /* For the absolute positioning of images to work, this NEEDS to be set something greater than 0! */
    flex-grow: 1;

}

.slideshow .image {

    /* Fill entire container. */
    width: 100%;
    height: 100%;

    /* Align content dead center. */
    display: flex;
    justify-content: center;
    align-items: center;

    /* For absolute positioning of images. */
    position: relative;

    /* Alternative to real image, works just as well, even without additional flex on this element.
    background-image: url(/assets/slideshow/01_src.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50%;
    */

}

.slideshow .image img {

    /* Fill container as best as possible, without deformation or overflow. */
    width: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;

    /* Absolute positioning to allow overlapping images in the same location. */
    /* Needs "flex-grow: 1" on `.slideshow`! */
    position: absolute;

    /* Fade-in new images. */
    transition: opacity 0.8s ease-in;
    opacity: 1;

}

.slideshow .image img.loading {

    visibility: hidden;
    pointer-events: none;

}

.slideshow .image img.new {

    opacity: 0;

}


/* Contact */

.info {

    margin: 1.5em 0; /* TODO: Find optimum spacings. */

}

.info,
.info ul {

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

}

.info ul {

    margin: 0;
    padding: 0;

}

.info li {

    list-style: none;

    white-space: nowrap;
    padding: 0.2em 0.5em; /* TODO: Find optimum spacings. */

}

.info li.name,
.info li.title {

}

.info li.title {

    font-weight: 400;

    color: rgb(207, 164, 43); /* Original GOLD: #cfa42b / rgb(207, 164, 43) */
    text-transform: uppercase;

}

/* Contact: Portrait */
@media (max-aspect-ratio: 1/1) {

    .info,
    .info ul {
        flex-direction: column;
    }

    .info li.title {
        padding: 1em 0 2em;
    }

}


/* Social */

.social {

    margin-bottom: 1.5em;

}

.social,
.social ul {

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

}

.social ul {

    margin: 0;
    padding: 0;

}

.social li {

    list-style: none;

    white-space: nowrap;

}

.social a {

    padding: 0.5em;

}

.social svg {

    width: 1.6em;
    fill: #333;
    transition:
        transform 0.1s ease-out,
        fill 0.15s linear;

}

.social a:hover svg,
.social a:active svg,
.social a:focus svg {

    fill: #000;
    transform: scale(1.1);

}


/* Footer */

footer {

    margin-bottom: 1.5em; /* TODO: Find optimum spacings. */

}

footer ul {

    padding: 0;
    margin: 0;

    font-size: 0.8em;

}

footer li {

    list-style: none;

}

footer a {

    padding: 0.5em;

}


/* Page: Imprint */

body.imprint .page {

    height: initial;
    max-height: initial;

}

body.imprint .content {

    max-width: 600px;
    margin-bottom: 1em;

}

body.imprint .contact {

    margin: 0.5em 0 2em;
    padding: 0;
    list-style: none;

}

body.imprint .disclaimer p {

    font-size: 0.9em;
    margin: 0.5em 0;

}
