@font-face {
  font-family: 'Raleway';
  src:  url('/css/fonts/Raleway-VariableFont_wght.ttf') format('truetype'),
        url('/css/fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 100%;
    color: #444;
    font-weight: 600;
    background: #0f2027;
    background: linear-gradient(to top, #ffd89b, #19547b);

    background-attachment: fixed;
}

#wrapper {
    margin: 0 auto;
    max-width: 90vmin;
}

a,
a:active,
a:visited {
    color: inherit;
}



#mainNav {
    position: sticky;
    display: grid;
    grid-template-columns: 2fr 1fr;
    top: 0;
    z-index: 10;
    background-color: #eee;
    padding: 0 1em;
    box-shadow: rgba(0, 0, 0, .2) 0 2px 2px;
    text-transform: uppercase;

}

nav ul {
    padding: .5em 0 1em;
    margin: 0;
    list-style: none;
    width: auto;

}

#level1 {
    text-align: left;
}

#level2 {
    text-align: right;

}

nav li {
    display: inline-block;

}

nav li a {
    display: block;
    padding: .5em 1em;
    text-decoration: none;
    font-weight: bold;
}

nav li:hover,
nav a:visited {
    background-color: lightgray;
}

#toTop {
    z-index: 10;
    position: fixed;
    bottom: 0px;
    margin-left: calc(50% - 2em);

    color: #aaa;
    text-align: center;
    pointer-events: none;
    border-radius: .4em .4em 0 0;
}

#toTop a {
    background-color: #19547b;
    text-align: center;
    text-decoration: none;
    color: white;
    ;
    padding: .5em 1em;
    display: block;
    font-weight: 100;
    transform: rotate(-90deg) scale(1, 2);
    pointer-events: all;
}

.linkButton {
    display: block;
    box-sizing: border-box;
    padding: .5em;
    text-align: center;
    background-color: #19547b;
    color: #efefef !important;
    text-decoration: none;
    margin-top: .5em;
    text-shadow: rgba(0, 0, 0, .2) 0px 2px 2px;
    border-radius: .2em;

}

section {
    background-color: #efefef;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "slide title"
        "slide content";
    border-radius: .4em;
    margin-top: 4em;
    overflow: hidden;
    min-height: 40vmin;
    box-shadow: rgba(0, 0, 0, .2) 0 2px 12px;
}

header > section {
    grid-template-areas: "title"
        "content";
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr;
}


footer section {
    grid-template-areas: "title"
        "impressum"
        "haftung "
        "datenschutz";
    grid-template-rows: auto;
    grid-template-columns: 1fr;


}

#impressum_headline {
    grid-area: title;
}

#impressum_content {
    grid-area: content;
}

#impressum {
    grid-area: impressum;
}

#haftung {
    grid-area: haftung;
}

#datenschutz {
    grid-area: datenschutz;
}

footer details {
    padding: 1em;
}

footer {
    padding-top: 30vh;
}

footer > * {
    background: #eee;

}

footer section {
    padding-top: 4em;
}

section > .abschnitt_titel {
    grid-area: title;
    height: auto;


}

section > .abschnitt_slideshow {
    grid-area: slide;
}


.padding {
    box-sizing: border-box;
    padding: 1.2em 2em 2.4em;
}

.abschnitt_titel {
    font-weight: 300;
    font-size: 2em;
    text-align: left;
    line-height: 1em;
    text-transform: uppercase;
    width: 100%;
    padding: 0 1em 0;
}

.abschnitt_titel > span {
    border-bottom: dotted 2px darkgrey;
    width: 100%;
    display: block;
    padding-bottom: .5em;
    margin-top: 1em;
}


.abschnitt_beschreibung {
    font-weight: lighter;
    line-height: 1.5em;
    font-size: 1em;
    align-self: end;
}

.abschnitt_slideshow {
    background-color: #222;
}

li {
    color: grey;
}

.slidearea {
    position: relative;
    overflow: hidden;
}

.slides {
    position: absolute;
    width: 100%;
    height: 100%;

}

details {
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 0 0 0 1em;
    font-weight: 300;
}

details:first-of-type {
    border-top: 2px dotted darkgrey;
}

details article {
    padding: 2em;
    box-sizing: border-box;
}

details summary {
    font-size: 1em;
    box-sizing: border-box;
}

.slide {
    opacity: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #222;
    display: inline-block;
    background-size: cover;
    background-position: center center;
    animation-name: fadeAnimation;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.slide:nth-child(1) {
    animation-delay: -16s;
}

.slide:nth-child(2) {
    animation-delay: -12s;
}

.slide:nth-child(3) {
    animation-delay: -8s;
}

.slide:nth-child(4) {
    animation-delay: -4s;
}

.slide:nth-child(5) {
    animation-delay: 0s;
}
.rightAlign{
    text-align: right;
}
.signet{
    background-image: url("../images/mathias_juesche_signet.png");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 50%;
    

}

@keyframes fadeAnimation {

    0%,
    5% {
        opacity: 0;
    }

    10%,
    30% {
        opacity: 1;
    }

    35%,
    100% {
        opacity: 0;
    }

}

.abschnitt_slideshow{
   min-height: 30vmax;
}

.hintergrund {}

/* Dozent */
#dozent_1 {
    background-image: url("../images/dozent/juesche_indesign.jpg");
}

#dozent_2 {
    background-image: url("../images/dozent/juesche_3d_mesh.jpg");
}

#dozent_3 {
    background-image: url("../images/dozent/juesche_3d_edit.jpg");
}

#dozent_4 {
    background-image: url("../images/dozent/juesche_programmieren.jpg");
}

#dozent_5 {
    background-image: url("../images/dozent/juesche_3d_modifier.jpg");
}

/* Arbeit */
#arbeit_1 {
    background-image: url("../images/arbeit/juesche_game_art.jpg");
}

#arbeit_2 {
    background-image: url("../images/arbeit/juesche_ms_schaubild_detail.jpg");
}

#arbeit_3 {
    background-image: url("../images/arbeit/juesche_arbeit_02.png");
}

#arbeit_4 {
    background-image: url("../images/arbeit/juesche_concept_game.jpg");
}

#arbeit_5 {
    background-image: url("../images/arbeit/juesche_3d_modell.jpg");
}

/* Bücher */
#buecher_1 {
    background-image: url("../images/buecher/matjuse_robotik_01.jpg");
}

#buecher_2 {
    background-image: url("../images/buecher/matjuse_monster_01.jpg");
}

#buecher_3 {
    background-image: url("../images/buecher/matjuse_unicorn_01.jpg");
}

#buecher_4 {
    background-image: url("../images/buecher/matjuse_robo_02.jpg");
}

#buecher_5 {
    background-image: url("../images/buecher/matjuse_irrgarten_01.jpg");
}

/* Social */
#social_1 {
    background-image: url("../images/social/matjuse_logo.jpg");
}

#social_2 {
    background-image: url("../images/social/matjuse_unicorn_frog.jpg");
}

#social_3 {
    background-image: url("../images/social/matjuse_foto.jpeg");
}

#social_4 {
    background-image: url("../images/social/matjuse_social_artwork_.jpeg");
}

#social_5 {
    background-image: url("../images/social/matjuse_social_foto.jpeg");
}

copyright {
    display: block;
    margin: 2em 0 4em;
    font-size: 80%;
}

#mobileNavButton {
    z-index: -1;
    display: none;
}

#mainNav {
    display: grid;
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    #wrapper {
        margin: 0 auto;
        max-width: 95vw;
    }

    section {
        margin-top: 2em;
    }

    #mainNav li {
        display: block;
        padding: .5em 0;

    }

    #mainNav ul,
    #mainNav ul li {
        margin: 0;
        padding: .1em 0;
    }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
    #mainNav li {
        display: block;
        padding: 1em 0;
        font-size: 1.1em;

    }

    section {
        margin: 4em 0 0;
    }

    .content {

        grid-template-areas: "title"
            "slide"
            "content";
        grid-template-rows: 1fr 3fr auto;
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    #mobileNavButton {
        visibility: visible;
        display: block;
        cursor: pointer;
        position: sticky;
        right: 0;
        top: 0;

        height: 1.5em;
        color: #222;
        font-size: 2em;
        background-color: white;
        z-index: 20;
        text-align: center;
    }

    body {
        font-size: 60%;
    }

    #mainNav {
        position: sticky;
        top: 0;
        display: block;
        height: 100vh;
        z-index: 10;
        font-size: 1.4em;

    }

    #mainNav ul {
        text-align: left;
    }



    #mainNav li:first-child {

        margin-top: 4em;

    }

    #mainNav li:not(:last-child) {
        border-bottom: dotted 1px grey;
    }

    section {

        height: auto;
        min-height: 1em;
        font-size: 1.5em;
    }



    header > section {
        grid-template-areas: "title"
            "content";
        grid-template-rows: 1fr auto;
        grid-template-columns: 1fr;
        margin: 1em 0;
    }

    footer section {
        grid-template-areas: "title"
            "impressum"
            "haftung"
            "datenschutz";
        grid-template-columns: 1fr;
        padding-top: 2em;


    }


}
