/* You can add global styles to this file, and also import other style files */
@import url('vendor/normalize.css');
@import url('base.css');

/** Layout **/

html, body {
    height: 100%;
    margin: 0;
}


.wrapper {
    height: 100vh;
    padding: 0;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    font-family: "Akkurat Pro Light", 'Roboto Light', sans-serif;
    animation: 1s ease-in 0s 1 fadeIn;

}

.content {
    padding: 1em;
}

.centered-content {
    flex: 1;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center; /* vertikal */

    /* verhindert Überlauf */
    min-height: 0;
    max-height: 100%;
}


footer {
    flex: max-content;
    height: 30vh;
    padding: 1em;
}

/** Links **/
a {
    text-decoration: none;
    border-bottom: 1px dotted #333;
    outline: 0;
}

h1.site-title {
    font-family: "Akkurat Pro Light", 'Roboto Light', sans-serif;
    font-weight: 200;
    font-size: 3em;
    margin: auto;
    text-align: center;
    cursor: default;
}

h1.site-title + h5 {
    text-align: center;
    cursor: default;
}

header.site-header {
    /* padding: 1em; */
    background: #fff;
    /*margin-bottom: 2.5em;*/
}


.logo a span {
    color: #333;
}

.logo a span:last-of-type {
    color: #666;
}

.centered {
    cursor: default;
}


.centered .wrapper {
    width: fit-content;
    margin: auto;
    animation: 2s ease-in 0s 1 fadeIn;
}

.centered .wrapper.home {
    padding: 3em;
}


.content .description {
    line-height: 175%;
}

/** ABOUT **/

section.about {
    display: flex;
    flex-direction: column-reverse;
}

.about .col-left {
    margin-top: -150px;
}

.about figure {
    padding: 0;
    margin: 0 0 0 -64px;
}

.about figure img {
    width: 100%;
    /*border-radius: 5px;*/
    /*box-shadow: 0 0 15px #ccc;*/
}

.about ul li {
    line-height: 150%;
}


/** Contact **/

#contact-details-image {
    margin: auto;
}


span.highlight {
    background-color: rgba(249, 239, 52, 0.513);
    padding: 2px;
    border-radius: 2px;
}

/** ANIMATIONEN **/

@keyframes fadeIn {
    from {
        /*transform: translateY(-1000%);*/
        opacity: 0;
    }
    to {
        /*transform: translateY(0);*/
        opacity: 1;
    }
}

@keyframes slideInFromBelow {
    0% {
        transform: translateY(200%);
    }
    100% {
        transform: translateY(0);
    }
}

.animate.slideInFromBelow {
    overflow-y: hidden;
    animation: 1s ease-out 0s 1 slideInFromBelow;

}


.centered .wrapper ::selection {
    background: none;
}

.centered footer {
    position: absolute;
    bottom: 1.5em;
    left: 48vw;
    /*border: 1px solid darksalmon;*/
    text-align: center;
}

.centered footer .caret-down {
    width: 4vw;
    /*border: 1px solid darksalmon;*/
}

.instagram-icon {
    width: 32px;
    height: 32px;
}

/* NAVIGATION */
nav.site-navigation ul li.logo {
    float: left;
}

.site-navigation ul li.logo a {
    font-family: "Akkurat Pro Light", 'Roboto Light', sans-serif;
    font-size: 30px;
    text-decoration: none;
    color: #000;
    padding: 0;
}

.site-navigation ul li.logo a:hover {
    background: transparent;
}

.site-navigation ul li.logo a,
.site-navigation ul li.logo a:active,
.site-navigation ul li.logo a:focus {
    outline: 0;
}


nav {
    box-sizing: border-box;
    float: left;
    width: 100%;
}

nav ul {
    padding: 0;
    margin: 0;
}

nav a {
    display: block;
    /*width: fit-content;*/
    text-decoration: none;
    color: #222222;
    border: none;
}

ul > li.submenu li:hover {
    box-shadow: inset 0px -6px 6px rgba(180, 180, 180, 0.2);
    z-index: 4;
    transition: 0.2s ease-in
}

nav ul li {
    position: relative;
    list-style: none;
    float: right;
    transition: ease-out 0.5s;
}

nav ul li a {
    padding: 1em 1.5em;
}

nav ul li:hover {
    background-color: #eaeaea;
    /*color: #fff;*/
    transition: background-color 0.5s ease-in;
}

/* ul li:hover ul {*/
/*opacity: 1;*/
/*transition: opacity 1s ease-in 0.2s;*/
/*}*/

nav a.active {
    font-weight: bold;
}

nav ul li:hover > ul {
    top: 100%;
    left: 0;
    transition: opacity 0.5s ease-in;
    opacity: 1;
}

/** Sub-Menus **/
nav ul ul {
    position: absolute;
    width: 100%;
    top: -9999px;
    left: -9999px;
    background: #eaeaea;
    /*box-shadow: 0 5px 10px rgba(10, 10, 10, 0.3);*/
    /*box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);*/
    z-index: 999;
    opacity: 0;
    transition: opacity ease-out 0.5s;
}

nav ul ul li {
    float: none;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    /*left: -20px;*/
}

nav ul ul li:last-child {
    border-bottom: none;
}


nav ul ul li a {
    padding: 1em 1.5em;
    /*font-size: .9em;*/
}

nav ul ul li:hover ul {
    top: 0;
    left: 200px;
}

/* Caret */
nav ul li.submenu > a:after {
    position: relative;
    float: right;
    content: '';
    margin-left: 10px;
    margin-top: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    border-bottom: 5px solid transparent;
}

/* hide responsive nav button */
.responsive-nav-label,
#responsive-nav {
    display: none;
}

/* GALLERY */

.content.centered.gallery {
    height: 100vh;
}

section.preview .container {
    max-width: 100vw;
    box-sizing: border-box;
    gap: 1vw;
}

.preview .thumbnail a {
    border: none;
    display: block;
}

.preview .thumbnail img {
    max-width: 45vw;
}

.picture-detail {
    overflow: hidden;
    background: #000000;
    display: none;
    height: 100vh;
}

.picture-detail.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.picture-detail .toolbar-wrapper {
    position: absolute;
    bottom: 2em;
    padding: 2em;
    width: 100vw;
    box-sizing: border-box;
    /*height: 5em;*/
    display: block;
    /*border-top: 1px dashed darkred;*/
}


.picture-detail a.button.back {
    color: #ccc;
    /*font-size: smaller;*/
    font-weight: bold;
    font-variant: all-small-caps;
    padding: .5em 1em;
    border-radius: 0;
    border: 0;

    margin: auto;
}


.picture-detail a.button.back:hover {
    background-color: rgba(17, 17, 17, 0.5);
}


.picture-detail picture {
    /*-webkit-box-shadow: inset 0px 0px 5px #000;*/
    /*-moz-box-shadow: inset 0px 0px 5px #000;*/
    /*box-shadow: inset 0px 0px 5px #000;*/
    /*display: block;*/
    overflow: hidden;
    max-height: 100vh;
    max-width: 100vw;

    display: flex;
    flex-direction: column;
}

.picture-detail picture img {
    box-sizing: border-box;
    margin: auto;
    /*padding: 1em;*/
    max-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
}


.hidden {
    display: none;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */


@media screen and (max-width: 1024px) {

    .centered .wrapper {
        margin: 20vh auto 0;
    }

    h1.site-title {
        font-size: 2em;
    }

    header.site-header {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }

    input#responsive-nav,
    label.responsive-nav-label {
        display: none;
    }

    label.responsive-nav-label {
        position: relative;
        display: block;
        padding: 20px;
        /*background: #222;*/
        cursor: pointer;
        /*color: #fff;*/
        color: #222;
        background: rgba(194, 194, 194, .3);
        margin-top: 62px;
    }

    label.responsive-nav-label span {
        margin-right: 10px;
    }

    nav {
        position: absolute;
        top: -9999px;
        padding: 10px;
    }

    input#responsive-nav[type=checkbox]:checked ~ nav {
        position: relative;
        top: 0;
    }

    nav a:after {
        display: none;
    }

    nav li {
        float: none !important;
        width: 100% !important;
        border-bottom: none !important;
        transition: none !important;
    }

    nav li a {
        display: block !important;
        margin-bottom: 10px !important;
        padding: 10px 20px !important;
        /*background: #4a4a4a;*/
        background: rgba(194, 194, 194, .3);
        /*border-bottom: 1px solid #4a4a4a;*/
    }

    nav ul li:hover {
        background: none;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: #4a4a4a;
        color: #fff;
    }

    nav ul ul {
        position: relative !important;
        width: 100%;
        left: 0 !important;
        top: 0 !important;
        background: none !important;
        box-shadow: none;
        opacity: 1;
    }

    nav ul ul li {
        padding-left: 20px;
        transition: none;
    }

    nav.site-navigation ul li.logo {
        position: fixed;
        top: 0;
        left: 0;
    }

    nav.site-navigation ul li.logo a {
        background: #fff;

    }

    .trigger {
        display: none;
    }

    .preview {
        padding: 1em 0;
    }

    .preview .container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;

        gap: .5em;
        justify-content: center;

    }


}


@media screen and (min-width: 1280px) {
    body {
        /*overflow-y: hidden;*/
    }

    .wrapper {
        padding: 4em;
        height: 100vh;
    }


    footer {
        display: block;
        padding: 0;
        height: 2em;
        flex: none;
    }

    .content {
        padding: 0;
    }


    /** About */
    section.about {
        display: flex;

        flex-direction: row;
        padding: 0;
    }

    .col {
        /*float: left;*/
        /*padding: 1em;*/
        margin: 0;
        padding: 0;
    }

    .about .col p {
        line-height: 175%;
    }

    .col.col-half {
        min-width: 320px;
        width: 50%;
    }

    .col.col-left {
        margin-left: -1em;
    }

    .col.col-right {
        padding: 0;

    }


    .about figure img {
        width: 500px;
    }

    section.preview {
        position: fixed;
        /*bottom: -100%;*/
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 100%); /* start off-screen */
        transition: transform 0.5s ease, opacity 0.5s ease;

        width: 100%;
        padding: 4em;
        box-sizing: border-box;

        /*background: rgba(200, 200, 200, 0.75);*/
        background: #FAF0F0;

        opacity: 0;
        z-index: 999;
        pointer-events: none; /* optional: hide interaction while hidden */
    }

    section.preview.show {
        transform: translate(-50%, 0); /* slide into view */
        opacity: 1;
        pointer-events: auto;

        cursor: pointer;
    }

    .preview .container {
        width: auto;
        /*max-width: 1152px;*/
        padding: .1em 0;

        margin: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1em;
    }


    .trigger {
        transition: 1s opacity ease-out;
    }

    .trigger a {
        cursor: pointer;
        text-decoration: none !important;
        border: none;
        color: #000;
    }

    /*.trigger.fadeOut {*/
    /*    opacity: 0;*/
    /*    transition: .5s opacity ease-out;*/
    /*}*/
    section.preview {
        float: left;
    }

    section.preview .thumbnail img {
        border-radius: 2px;
        opacity: .3
    }

    section.preview.show .container .thumbnail a:hover img {
        opacity: 1;
        transition: .2s opacity ease-in;
    }


    .preview .container {
        width: auto;
        max-width: 1152px;
        margin: auto;
    }


    .trigger {
        display: block;
        position: absolute;
        padding: 0;
        margin-left: -4rem;
        width: 100%;
        max-width: inherit;
        bottom: 1vh;
        text-align: center;
        font-size: 24px;
        color: #333333;
        font-family: 'Akkurat Pro Light', Helvetica, sans-serif;
    }

    .preview .container {
        max-width: 100vw;
        padding: 0;
    }

    /**
     * Impressum / Datenschutz
     */
    section.impressum div.scroll-wrapper {
        overflow-y: auto;
        max-height: 70vh;
    }
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/**
 * inline text span with all small caps, a light gray background and padding and slightly smaller font-size
 */
span.all-small-caps {
    font-variant: all-small-caps;
    background-color: #f0f0f0;
    padding: 2px 4px;
    font-size: 0.9em;
    color: #666;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */

}

@media print,
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


section.content dt {
    font-size: smaller;
    font-variant: all-small-caps;
    color: #666666;
    padding-top: 1em;
}

section.content dd {
    margin: 0;
}

.projects {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1em;
}

.project {
    /*padding-bottom: 1.5em;*/
    flex: 0 0 max-content;
    max-width: 320px;
}

.project h2 {
    /*padding: 1em .75rem;*/
}

.project h2 em {
    opacity: 0.70;
    font-style: normal;
    text-align: right;
    font-weight: 50;
}