html, body, div { padding: 0; margin: 0; border: none; }

html {
    background-image: url(wally.jpg);
    background-position: top center; background-repeat: no-repeat;
    background-size: cover; background-attachment: fixed;
    width: 100%; height: 100%;
    background-color: black;
    font-family: 'Maven Pro', Garamond;
}
body { width: 100%; font-size: 12pt; overflow-y: scroll; }
a { color: rgb(177, 13, 13); text-decoration: none; }


#kontentsu { display: block; max-width: 860px; margin: 0 auto 0 auto; padding: 0 0 500px; }

nav {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}
    nav div {
        display: inline-block;
        float:left;
        border: solid 1px black;
        background-color: black;
        color: white;
        padding: 15px;
        margin-right: 15px;
        margin-top: 20px;
        flex: 0 1;
        font-family: Raleway, Lato, "Helvetica Neue", Arial, Verdana, sans-serif;
        text-transform: uppercase;
        font-weight: 100;
    }        
        #watashiMenu {
            background-color: rgb(177, 13, 13);
            color: white;
            font-size: 85%;
        }

        nav div:hover, #watashiMenu:hover {
            background-color: rgba(31, 31, 31, .6);
            cursor: pointer;
        }
            


.hako {
    margin-top: 40px;
    display: none;
}

.hako-no-naka {

    border: solid 1px black;
    padding: 25px 30px 15px;
    background-color: rgb(255, 255, 255, 0.66);
    margin-bottom: 40px;
}
    .hako-no-naka a:hover {
        text-decoration: underline;
    }

#watashi img { width: 100%; }


    p {
        margin: 0 0 20px 0;
        text-align: justify;
    }

    td { vertical-align: text-top; }

.linku {
    color: rgb(177, 13, 13);
}
.linku:hover { text-decoration: underline; cursor: pointer; }

h1 {
    display: block;
    background-color: black;
    color: white;
    margin: 0 0 20px 0;
    font-size: 160%;
    font-family: Raleway, Lato, "Helvetica Neue", Arial, Verdana, sans-serif;
    text-transform: uppercase;
    font-weight: 100;
}


/**** #research ****/
#research table {
    margin-bottom: 40px;
}
#research td {
    border: solid 1px black;
}
    #research tr:first-child td:first-child {        
        text-align: center;
        font-size: 90%;
        width: 30px;
    }
    
    table.derArtikel tr:first-child td:first-child { background-color: rgb(177, 13, 13); } /*rot*/
    table.derArtikel tr:first-child td:nth-child(2) {
        background-color: black;
        color: white;
    }
    table.derEntwurf tr:first-child td:first-child {
        background-color: rgb(44, 44, 44);
        color: white;
    }

    table.derEntwurf tr:first-child td:nth-child(2) {
        background-color: rgb(85, 85, 85);
        color: white;
    }
    

    #research tr:nth-child(2) td {
        font-size: 80%;
        background-color: rgb(187, 187, 187);
        padding: 0 5px;
    }

    #research tr:nth-child(3) td {
        background-color: white;
        padding: 5px;
        text-align: justify;
    }




.imageFrame {
    font-size: .6em;
    float: left;
    width: 100px;
    margin: 0px 25px 0 0;
}

    .imageFrame img {
        border: double 3px black;
        width: inherit;
        clear: right;
    }

footer {
    display: block;
    position: fixed;
    width: 100%;
    height: 30px;
    margin: 0;
    bottom: 0px;
    border-top: solid 1px black;
    background: url(hexabump.png) repeat;
    color: white;
    font-family: Lato, sans-serif;
    font-size: 80%;
    box-shadow: 0 0 2px 2px rgb(85, 85, 85);
    color: rgb(85, 85, 85);
}

    footer center {
        margin-bottom: 10px;
    }


.active.fade-left { animation: fade-left .3s ease-in; }
.active.fade-right { animation: fade-right .3s ease-in; }

@keyframes fade-left {
    0% { transform: translateX(-15px); opacity: .3; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-right {
    0% { transform: translateX(15px); opacity: .3; }
    100% { transform: translateX(0); opacity: 1; }
}

/***VITAE***/
#vitae h1 { margin-bottom: 20px; font-size: 145%; }

#vitae table {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 25px;
}
    #vitae td {
        border: solid 1px black;
        background-color: #e1e1e1;
        padding: 0 5px 0 5px;
        text-align: justify;
    }
        #Präsentationen td:first-child:not(:only-child) { width: 40px; } /**/

        

#anstellung > div > div { background-color: white; }

#vitae .eineDivTabelle {
    display: inline-grid;
    width: 100%;
}

    #vitae .eineDivTabelle > div {
        display: contents;
    }

        #vitae .eineDivTabelle > div > div {
            border: solid 1px black;
            text-align: justify;
            padding: 0 5px 0 5px;
            margin-bottom: 10px;
        }
            #vitae .eineDivTabelle > div > div:first-child {
                grid-column: 1;                
                height: fit-content;
            }
            #vitae .eineDivTabelle > div > div:nth-child(2) { grid-column: 2; height: fit-content;}
            #vitae .eineDivTabelle > div > div:nth-child(3) { grid-column: 3; }
            #vitae .eineDivTabelle > div > div:empty {
                display: none;
            }


    #vitae .zweispaltige { grid-template-columns: 51px auto; }
    #vitae .zweispaltige > div > div { text-align: justify; }
    #vitae .zweispaltige > div > div:first-child {
        background-color: rgb(177, 13, 13);
    }
    #vitae .zweispaltige > div > div:nth-child(2) {
        background-color: rgba(255, 255, 255, 0.45);
    }

@media screen and (min-width: 531px) {
    #vitae .zweispaltige > div > div:first-child {        
        border-right: none;
    }
    #vitae .vierspaltige > div > div:nth-child(2) {
        border-left: none;
        border-right: none;
    }

    #vitae .vierspaltige > div > div:nth-child(3) {
        border-right: none;
    }
}


#vitae .vierspaltige {
    grid-template-columns: 51px 45px 1fr 1fr; /**/
}

    #vitae .vierspaltige > div > div { text-align: left; }
        
    


#explanandum div {
    background-color: transparent;
}


#vitae div.phd {
    background-color: rgb(44, 44, 44);
    color: white;
}
    #vitae td.schwarz { background-color: black; }





#Präsentationen > table {
    border-collapse: collapse;
}

#Präsentationen > table tr:first-child > td {
    text-align: center;
    background-color: rgb(154, 154, 154, 0.65);
}

#explanans {
    display: none;
    margin: 10px auto 30px auto;
    border: solid 1px black;
    background-color: rgba(255, 255, 255, 0.45);
    padding: 0 5px 0 5px;
}

.slideshow {
    width: 100%; margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: left;
    flex-wrap: wrap;
}

    .slideshow img {
        display: block;
        width: 33.33%;
        margin: 0;
    }

#Lehren > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#Lehren table {
    width: 49.5%;
    margin: 0;
    border-collapse: collapse;
    height: fit-content;
}
#Lehren td {
    border: solid 1px black;
    padding: 0 3px;
    background-color: rgb(236, 236, 236);
}
    #Lehren tr:first-child td {
        background-color: rgb(177, 13, 13);        
        text-align: center;        
    }
#Lehren td.dieUniversität {
    background-color: rgb(44, 44, 44);
    color: white;
}


    #Lehren td.dieKlasse { background-color: rgb(210, 210, 210); width: 185px; }
    
/*******TEACHING********/
#teaching span.dieFrage {
    color: rgb(100, 131, 255);
}

img.dieKlassenfolie {
    width:100%;
    margin-bottom: 20px;
}

#diePaperanleitung {
    background-color: white;
    padding: 0pt 20pt 10pt 20pt;
    display: none;
}

    div.dasPapierbeispiel {
        background-color: rgb(237, 237, 237);
        font-family: Garamond;
        font-size: 110%;
        padding: 10pt 20pt;
    }

div.dasPapierbeispiel h2 {
    font-size: 100%;
    font-weight: 600;
}

span.dieTaste {
    border: solid 2px rgb(177, 13, 13);
    color: rgb(177, 13, 13);
    cursor: pointer;
    border-radius: 5px;
    padding: 0 2px;
}
    span.dieTaste:hover {
        background-color: rgba(177, 13, 13, .3);
    }






@media screen and (max-width: 530px) {
    body {
        /*font-size: 13pt;*/
    }

    #kontentsu, .hako {
        padding-left: 0;
        padding-right: 0;
    }

    nav, .hako-no-naka {
        margin-left: 10px;
        margin-right: 10px;
    }

    .hako-no-naka {
        padding-left: 10px;
        padding-right: 10px;
    }

    /*nav div { padding: 10px; }*/

    #vitae .eineDivTabelle {
        display: block;
    }

        #vitae .eineDivTabelle > div {
            display: block;
            margin-bottom: 20px;
        }

            #vitae .eineDivTabelle > div > div {
                display: inline-block;
                border: solid 1px black;
                margin: 1px;
            }

                #vitae .eineDivTabelle > div > div:first-child {
                    background-image: url(rot.jpg);
                    background-repeat: repeat;
                }

    #Präsentationen img {
        width: 100%;
    }
}

@media screen and (max-width: 780px) {   
    #Lehren > div { display: block; }
        #Lehren table { width: 100%; }
        #Lehren table:first-of-type { margin-bottom: 30px; }
    footer { height: 20px; }
}