/*
Theme Name: Jack
Author: Frank Seidel
Author URI: https://www.webentwickler.de
Description: A WordPress theme crafted specifically to fulfill the developer's preference for simplicity.
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

* {
    margin: 0;
    padding: 0;
}
html {
    height: 83.5%;
}
body {
    position: relative;
    min-height: 100%;
    font-family: 'Courier 10 Pitch',monospace;
    font-size: 1.7em;
    color: #585858;
    padding-bottom: 4rem;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid #585858;
}

body.admin-bar {
    top: 33px;
}
body.admin-bar nav {
    top: 33px;
}

nav img {
    display: block;
    height: auto;
    width: 100%;
    max-width: 90%;
}

nav > ul
{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav > ul > li > ul
{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Logo */
nav > ul > li:first-child {
    margin-right: auto;
}
nav > ul > li:first-child a:hover {
    background-color: transparent;
}
nav > ul > li:last-child {
}

.sub-menu > li > a,
nav > ul > li > a,
nav > ul > li > ul > li > a,
nav > ul > li > ul > li > button
{
    height: 70px;
}

nav > ul > li > a,
nav > ul > li > ul > li > a,
nav > ul > li > ul > li > button
{
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #585858;
    font-weight: bold;
    border: none;
    background-color: transparent;
}

nav a:hover,
.dropdown-btn:hover,
.dropdown-btn span:hover {
    background-color: #f0f0f0;
}

.menu-hamburger-button{
    display: none;
}
.menu-cross-button {
    display: none;
}

nav > ul > li.hideOnNarrow > ul > li > a > button {
    background-color: transparent;
    border: 1px solid transparent;
    margin: 0 -10px 0 5px;
    height: 25px;
    overflow: hidden;
}
nav > ul > li.hideOnNarrow > ul > li > a > button:hover {
    border: 1px solid #d8d8d8;
    cursor: pointer;
}
nav > ul > li.hideOnNarrow > ul > li > a > button > svg {
    fill: #585858;
    margin: 0 2px;
}
.rotate svg {
    rotate: 180deg;
}

.sub-menu.show {
    display: flex;
}

@media(min-width: 1001px) {
    .hide {
        display: block;
    }

    .sub-menu {
        width: inherit;
        display: none;
        position: absolute;
        top: 56px;
        background-color: #ffffff;
        list-style: none;
        flex-direction: column;
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
        border: 4px solid #585858;
    }
    .sub-menu > li > a {
        padding: 0 40px 0 30px;
        text-decoration: none;
        display: flex;
        align-items: center;
        color: #585858;
        font-weight: bold;
        border: none;
    }
}


main {
    padding: 10px 10px 0 10px;
    max-width: 1200px;
    min-width: 280px;
    margin: 90px auto 0 auto;
    background-color: white;
    border-radius: 1px;
    text-align: center;
}
p {
    margin: 20px;
}
h1 {
    margin: 0 0 0 0;
}
h2 {
    margin: 0 0 1em 0;
}

aside.kontakt {
    margin-top: 2em;
    display: flex;
    align-items: center;
}
aside.kontakt div.image {
    flex: 2;
    text-align: right;
	margin-right: 20px;
}
aside.kontakt div.image div {
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #585858;
    overflow: hidden;
    align-self: center;
}
aside.kontakt div.image div img {
    width:150px;
    height:150px;
}
aside.kontakt div.text {
    flex: 3;
    text-align: left;
}
aside a {
    text-decoration: none;
}
aside a:hover {
    text-decoration: underline;
}

.leistungen p
{
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin-left: 0;
}
.leistungen h2 {
    text-align: left;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
h2.job-title {
    text-align: center;
}
.leistungen ul li {
    text-align: left;
    margin-left: 150px;
}
.leistungen div.item {
    margin-top: 2em;
}


main p
{
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin-left: 0;
}
main h2 {
    text-align: left;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

main ul li {
    text-align: left;
    margin-left: 150px;
}
main div.item {
    margin-top: 2em;
}

main section:first-of-type {
    margin-top: 1.5em;
}

main .center {
    text-align: center;
}


.responsive {
    width: 100%;
    height: auto;
}
.screenshot {
    border: 1px solid #535353;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.umbruch {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin-left: 0;
}


@media(max-width: 1000px){
    .leistungen ul li {
        text-align: left;
        margin-left: 30px;
    }

    main ul li {
        text-align: left;
        margin-left: 30px;
    }

    h1 {
        font-size: 1.7em;
        line-height: 1.0em;
        hyphens: auto;
        -webkit-hyphens: auto;
        margin-left: 0;
    }
    h2 {
        font-size: 1.5em;
        line-height: 0.9em;
        hyphens: auto;
        -webkit-hyphens: auto;
        margin-left: 0;
    }
    .wrap {
        flex-flow: column wrap;
    }

    .dropdown-btn {
        font-weight: normal;
    }

    nav ul li.hideOnNarrow {
        width: 100%;
        position: absolute;
        top: 74px;
        left: 0;
        margin: 0;
    }
    nav > ul > li > ul {
        width: 100%;
        list-style: none;
        padding: 0 0 0 0;
        background-color: rgba(255, 255, 255, 0.99);
        display: block;
        margin: 0 auto;
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    }
    nav > ul > li > ul > li > a,
    nav > ul > li > ul > li > button {
        padding: 0 30px;
        text-decoration: none;
        font-weight: normal;
    }

    .sub-menu {
        width: inherit;
        display: block;
        top: 56px;
        background-color: #ffffff;
        list-style: none;
        flex-direction: column;
        box-shadow: none;
        border: none;
        margin: 0 0 0 25px;
    }
    .sub-menu > li > a {
        padding: 0 30px 0 30px;
        text-decoration: none;
        display: flex;
        align-items: center;
        color: #585858;
        border: none;
    }
    nav > ul > li.hideOnNarrow > ul > li > a > button {
        display: none;
    }
    .menu-hamburger-button{
        display: block;
    }
    .menu-cross-button {
        display: block;
    }

    .hide {
        display: none;
    }
    aside.kontakt {
        flex-direction: column;
    }
    aside.kontakt .text p {
        text-align: center;
    }
    main {
        margin-bottom: 30px;
    }
}

#kontaktButton {
    border: 3px solid #535353;
    border-radius: 50px;
    height: 70px;
    width: 70px;
    position: fixed;
    right: 10px;
    bottom: 10px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    background-color: #dddddd;
    z-index: 2;
}
#kontaktButton:hover {
    background-color: #e8e8e8;
}
#kontaktButton svg {
    position: relative;
    left: 10px;
    top: 10px;
    margin-top: 4px;
    fill: #535353;
}

footer {
    width: 100%;
    text-align: center;
    border-top: 1px solid #bbbbbb;
    position: absolute;
    bottom: 0;
}
footer a {
    color: #8f8f8f;
}
footer a:hover {
    color: #808080;
}