* {
    box-sizing: border-box;
}
body {
    margin: 0px;
    font-family: "Fira Sans", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 16px;
    margin-top: 55px;
}
#onecol {
    display: none;
}
#twocol {
    display: block;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#onecol {
    scroll-snap-type: mandatory;
}
#onecol article {
    scroll-snap-align: none start;
}

header {
    background-color: white;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 55px;
    z-index: 5;
}
header h1 {
    margin: 0px;
    margin-left: 50px;
    margin-top: 13px;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 1ex;
    white-space: nowrap;

    font-weight: bold;
    background-image: url(/user/themes/neatful2/img/the-neatful.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}
header h1 a {
    text-decoration: none;
    color: inherit;
}

header nav {
    position: absolute;
    top: 0;
    right: 10px;
    width: 200px;
    height: 55px;
}
header nav div {
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url(/user/themes/neatful2/img/ts.gif);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}
header nav a {
    z-index: 1;
    display: block;
    position: absolute;
    height: 17px;
    width: 150px;

    background-size: auto 100%;
    background-repeat: no-repeat;
    color: transparent;
}
header nav a#nav-ad
{
    left: 50px;
    top: 5%;
    background-image: url(/user/themes/neatful2/img/nav-ad.png);
}
header nav a#nav-ad.active,
header nav a#nav-ad:hover {
    background-image: url(/user/themes/neatful2/img/nav-ad.st.png);
}
header nav a#nav-ad:hover ~ div {
    background-image: url(/user/themes/neatful2/img/ts-kick.h.gif);
}

header nav a#nav-il {
    left: 73px;
    top: 35%;
    background-image: url(/user/themes/neatful2/img/nav-il.png);
}
header nav a#nav-il.active,
header nav a#nav-il:hover {
    background-image: url(/user/themes/neatful2/img/nav-il.st.png);
}
header nav a#nav-il:hover ~ div {
    background-image: url(/user/themes/neatful2/img/ts-kick.m.gif);
}

header nav a#nav-br {
    left: 94px;
    top: 65%;
    background-image: url(/user/themes/neatful2/img/nav-br.png);
}
header nav a#nav-br.active,
header nav a#nav-br:hover {
    background-image: url(/user/themes/neatful2/img/nav-br.st.png);
}
header nav a#nav-br:hover ~ div {
    background-image: url(/user/themes/neatful2/img/ts-kick.l.gif);
}

@media (max-width: 739px) {
    header nav {
        display: none;
    }
}
@media (min-width: 740px) {
    body {
        margin-top: 4.7vw;
    }
    header {
        height: 4.7vw;
    }
    header h1 {
        margin-left: 0;
        margin-top: 1.4vw;
        font-size: 1.5vw;
        font-weight: bold;
        background-image: url(/user/themes/neatful2/img/the-neatful.png);
        background-size: auto 100%;
        background-repeat: no-repeat;
        background-position: center;
        color: transparent;
    }

    header nav {
        right: 0;
        width: 16.2vw;
        height: 4.7vw;
    }
    header nav div {
        right: 0;
        width: 16.8vw;
        top: 0.7vw;
        height: 3.5vw;
    }
    header nav a {
        width: 10vw;
    }
    header nav a#nav-ad {
        top: 0.8vw;
        left: 3.1vw;
        height: 1.36vw;
    }
    header nav a#nav-il {
        top: 1.7vw;
        left: 5vw;
        height: 1.3vw;
    }
    header nav a#nav-br {
        top: 2.7vw;
        left: 6.5vw;
        height: 1.16vw;
    }
    
    #sidebar .button {
        height: 4.7vw !important;
        width: 4.7vw !important;
    }
    #sidebar .button a {
        line-height: 4.9vw !important;
        font-size: 2.0vw !important;
    }
}


article {
    position: relative;
}
article img {
    display: inline-block;
    width: 100%;
    height: auto;
}
article h2 {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0px;
    padding: 0.5ex 2ex;
    background-color: #00000099;
    color: white;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.5s;
}
article:hover h2 {
    opacity: 1;
    display: block;
    /* Tim mag die nicht, Suchmaschinen schon */
    display: none;
}

article nav.scrollbtns {
    position: absolute;
    top: 6ex;
}
article nav.scrollbtns div,
article nav.scrollbtns a,
article a.detailbtn {
    display: block;
    margin-top: 1px;
    width: 48px;
    height: 48px;
    color: white;
    background-color: black;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    line-height: 48px;
}
article nav.scrollbtns div.scrollpos {
    font-size: 13px;
}
article nav.scrollbtns a {
    font-family: "neatful-awesome-icons";
}
article nav.scrollbtns a:hover,
article a.detailbtn:hover {
    color: black;
    background-color: white;
}

/* hover */
article nav.scrollbtns {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.5s;
}
article:hover nav.scrollbtns {
    opacity: 1;
}

article a.detailbtn {
    position: absolute;
    left: auto;
    right: 0;
    z-index: 4;
}

/* no hover = touch */
@media(hover: none) {
    article nav.scrollbtns {
        opacity: 1;
    }
    article nav.scrollbtns a {
        opacity: 0;
        transition-property: opacity;
        transition-duration: 0.5s;
    }
    article nav.scrollbtns:hover a {
        opacity: 1;
    }
}

article .scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
article .scroller::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

article a {
    display: block;
    line-height: 0px;
}

article.img-2 a {
    width: 200%;
}
article.img-2 img {
    width: 50%;
}

article.img-3 a {
    width: 300%;
}
article.img-3 img {
    width: 33.33%;
}

article.img-4 a {
    width: 400%;
}
article.img-4 img {
    width: 25%;
}

article.img-5 a {
    width: 500%;
}
article.img-5 img {
    width: 20%;
}

article div.grav-vimeo,
article div.grav-youtube,
article video {
    width: 100%;
    height: 100%;

    padding: 0;
    margin: 0;
}

#sidebar {
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;

    width: 40ex;
    z-index: 5;
    background-color: white;
    padding-left: 4ex;
    padding-top: 5ex;

    font-size: 14px;

    transition-property: left;
    transition-duration: 0.5s;
}
#sidebar .sbcontent {
    overflow-y: auto;
    height: 100%;
}
#sidebar.hidden {
    left: -40ex;
}

#sidebar h1 {
    font-size: 24px;
    text-transform: uppercase;
    margin-top: 0px;
}
#sidebar .what {
    text-transform: uppercase;
    letter-spacing: 0.4ex;
}
#sidebar h3 {
    text-transform: uppercase;
    font-weight: normal;
    border-top: 1px dashed black;
    padding-top: 2ex;
}
#sidebar ul {
    list-style: none;
    padding-left: 0px;
}
#sidebar .button {
    z-index: 6;
    position: fixed;
    top: 0px;
    left: 40ex;
    width: 50px;
    height: 50px;
    background-color: white;

    transition: left 0.5s;
}
#sidebar.hidden .button {
    left: 0px;
}

#sidebar .button a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: black;
    text-decoration: none;
    font-family: "neatful-awesome-icons";
    font-size: 20px;
    line-height: 50px;

    transition: transform 0.2s;
}
#sidebar .button:hover a {
    transform: rotate(90deg);
}
#sidebar.hidden .button a.hide {
    display: none;
}
#sidebar.visible .button a.show {
    display: none;
}

#sidebar nav.social li {
    display: inline;
}
#sidebar nav.social a {
    color: black;
    text-decoration: none;
    font-family: "neatful-awesome-icons";
    margin-right: 2ex;
}

.pagination a {
    color: white;
    background-color: black;
    text-decoration: none;
    padding: 2ex;
}
.pagination a:hover {
    color: black;
    background-color: white;
}

.pagination a span {
    font-family: "neatful-awesome-icons";
}
#loading {
    display: none;
    padding: 1ex 2ex;
    position: fixed;
    bottom: 1ex;
    left: 50%;
    right: 50%;
    transform: translate(-50%, 0);
    background-color: black;
    color: white;
    text-align: center;
    width: 30ex;
    border: 1px solid white;
}


@media (max-width: 740px) {
    #onecol {
        display: block;
    }
    #twocol {
        display: none;
    }
    article {
        width: 100%;
        float: none;
    }
    #sidebar {
        width: 98vw;
        padding-left: 60px;
    }
    #sidebar.hidden {
        left: -100vw;
    }
    #sidebar .button {
        left: 0px;
    }
}


/* detail page */
#detail {
    width: 100%;
    max-width: 900px;
    margin: 0px auto;
    padding-top: 20px;
    padding-bottom: 20px;
}
#detail figure {
    margin-bottom: 100px;
}
#detail picture img,
#detail img,
#detail video {
    display: block;
    height: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1ex;
}

@media (min-width: 900px) {
    #detail picture img,
    #detail img,
    #detail video {
        /* full width
         * https://css-tricks.com/full-width-containers-limited-width-parents/
         */
        position: relative;
        max-width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
}
#detail .categories {
    text-align: right;
}

nav.articleside {
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateX(0) translateY(-50%);
    z-index: 500;
}
nav.articleside a {
    display: block;
    margin-top: 1px;
    width: 48px;
    height: 48px;
    color: white;
    background-color: black;

    text-decoration: none;
    text-align: center;
    font-family: "neatful-awesome-icons";
    font-weight: bold;
    line-height: 48px;

    transition: background-color 0.2s, color 0.2s;
}
nav.articleside a:hover {
    color: black;
    background-color: white;
}
nav.articleside a.disabled {
    color: grey;
    background-color: black;
}


#overlay {
    cursor: pointer;
    position: fixed;
    z-index: 50;
    top:  0px;
    left: 0px;
    width: 100%;
    height: 100%;

    background-color: #e0e6e6;
    background-position: top right;
    background-repeat: no-repeat;
    background-size: auto 100%;

    opacity: 1;
    font-size: 50px;

    color: white;
    text-shadow: 0 0 20px black;
}

#overlay {
    background-image: url(/user/themes/neatful2/overlay/cover.full.orig.jpg);
}
@media (max-height: 2160px) {
    #overlay {
        background-image: url(/user/themes/neatful2/overlay/cover.full.2160.jpg);
    }
}
@media (max-height: 1280px) {
    #overlay {
        background-image: url(/user/themes/neatful2/overlay/cover.full.1280.jpg);
    }
}
@media (max-height: 720px) {
    #overlay {
        background-image: url(/user/themes/neatful2/overlay/cover.full.720.jpg);
    }
}

@media (max-aspect-ratio: 2/1) {
    #overlay {
        background-image: url(/user/themes/neatful2/overlay/cover.2-1.orig.jpg);
    }
    @media (max-height: 2160px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.2-1.2160.jpg);
        }
    }
    @media (max-height: 1280px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.2-1.1280.jpg);
        }
    }
    @media (max-height: 720px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.2-1.720.jpg);
        }
    }
}
@media (max-aspect-ratio: 3/2) {
    #overlay {
        background-image: url(/user/themes/neatful2/overlay/cover.3-2.orig.jpg);
    }
    @media (max-height: 2160px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.3-2.2160.jpg);
        }
    }
    @media (max-height: 1280px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.3-2.1280.jpg);
        }
    }
    @media (max-height: 720px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.3-2.720.jpg);
        }
    }
}
@media (max-aspect-ratio: 1/1) {
    #overlay {
        background-image: url(/user/themes/neatful2/overlay/cover.1-1.orig.jpg);
    }
    @media (max-height: 2160px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.1-1.2160.jpg);
        }
    }
    @media (max-height: 1280px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.1-1.1280.jpg);
        }
    }
    @media (max-height: 720px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.1-1.720.jpg);
        }
    }
}
@media (max-aspect-ratio: 2/3) {
    #overlay {
        background-image: url(/user/themes/neatful2/overlay/cover.2-3.orig.jpg);
    }
    @media (max-height: 2160px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.2-3.2160.jpg);
        }
    }
    @media (max-height: 1280px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.2-3.1280.jpg);
        }
    }
    @media (max-height: 720px) {
        #overlay {
            background-image: url(/user/themes/neatful2/overlay/cover.2-3.720.jpg);
        }
    }
}

#overlay nav {
    /* Tim mag nicht */
    display: none;
}
#overlay nav a {
    position: fixed;
    width: 48px;
    height: 48px;
    right: 10px;
    font-size: 16px;
    line-height: 48px;
    text-align: center;
    text-decoration: none;

    background-color: black;
    color: white;
}
#overlay nav a:hover {
    color: black;
    background-color: white;
}
#overlay .centerer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Kein Text erstmal */
    display: none;
}
