/* Allgemeine Stile */
body {
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: #444;
    background-color: #fafafa;
    margin: 80px 0 0 0;
}

header {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    text-align: center;
    border-top: 0.5px solid black;
    background-color: #fafafa;
    z-index: 1;
}

header h1 {
    width: 100%;
    font-size: 24px;
    line-height: 24px;
    transform: scaleX(1.15);
    letter-spacing: 1px;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    font-weight: 100;
}

header h2 {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0 !important;
    width: 100%;
    transform: scaleY(0.75);
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 500;
}

strong {
    font-weight: 500;
}

p {
    margin: 0.5rem 0;
}

a {
    text-decoration: none;
    color: #000;
    cursor: pointer;
}

a:visited,
a:link,
a:hover,
a:active {
    text-decoration: none;
    color: unset;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0 0;
    border-bottom: 0.5px solid #00000055;
}

.nav ul {
    display: flex;
    margin: 0;
}

.nav-overlay {
    background: #000000aa;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    display: none;
}

.nav a {
    color: #333;
    text-decoration: none;
    margin: 0 2rem;
    transition: color 0.3s;
    height: 30px;
    text-transform: uppercase;
    cursor: pointer;
}

.nav .active {
    border-bottom: 1px solid #000;
    font-weight: 300;
    color: #000;
}

.nav a:hover {
    color: #444;
}

/* Hauptinhalt */
.main {
    padding: 2rem;
    text-align: left;
    max-width: 800px;
    margin: auto;
    opacity: 1;
    -webkit-animation-name: show;
    -webkit-animation-duration: 1s;
    animation-name: show;
    animation-duration: 1s;
}

.main h1 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 2rem;
    text-transform: uppercase;
}

.main h2 {
    font-size: 14px;
    font-weight: 500;
    margin-top: 2rem;
    line-height: 1.6;
}

.main h3 {
    font-size: 14px;
    font-weight: 500;
    margin-top: 2rem;
    line-height: 1.6;
}

h1:first-child,
h2:first-child,
h3:first-child {
    margin-top: unset;
    margin-bottom: 1.5rem;
}


.main p {
    line-height: 1.6;
    max-width: 800px;
    color: #444;
}

/* Produkte */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.product {
    margin: 1rem;
    text-align: center;
    max-width: 300px;
}

.product img {
    max-width: 100%;
    height: auto;
    border: 1px solid #000;
}

.product h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.product p {
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #fafafa;
    border-top: 1px solid #ddd;
    color: #000;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer .footer-nav {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: auto;
    padding: 2rem;
    text-align: left;
    max-width: 800px;
    margin: auto;
}

.footer .footer-nav li {
    margin: 0.5rem 1rem;
    flex: 1 1 calc(25% - 2rem);
    /* Four columns on desktop */
}

.footer .footer-nav li a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.footer .footer-nav li a:hover {
    color: #444;
}

.show {
    opacity: 1;
    -webkit-animation-name: show;
    -webkit-animation-duration: 0.3s;
    animation-name: show;
    animation-duration: 0.3s;
}

.hide {
    opacity: 0;
    -webkit-animation-name: hide;
    -webkit-animation-duration: 0.3s;
    animation-name: hide;
    animation-duration: 0.3s;
}

.pulsar {
    padding-right: 6px;
    display: flex;
    font-size: 12px;
    font-weight: 100;
    width: 35px;
    height: 35px;
    background-color: transparent;
    color: black;
    border-bottom: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

@-webkit-keyframes show {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Standard syntax */
@keyframes show {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes hide {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
    }
}

/* Standard syntax */
@keyframes hide {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
    }
}

.nav button {
    display: none;
}

@media (max-width: 768px) {
    .header {
        border-bottom: 0.5px solid #ddd;
    }

    .main {
        padding: 1rem;
    }

    .nav {
        flex-direction: row;
        padding: 0;
        justify-content: left;
        height: 100vh;
        width: 100vw;
        z-index: 1;
        top: 0px;
        left: calc(70px - 100vw);
        background-color: transparent;
        overflow-x: hidden;
        transition: 0.5s;
        margin-top: 80.5px;
        position: fixed;
        overflow: hidden;
    }

    .nav-overlay {
        display: block;
    }

    .nav ul {
        position: relative;
        background-color: #fefefe;
        left: 0;
        margin: 0;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        width: calc(100% - 70px);
        height: 100%;
        overflow: hidden;
        border-top: 0.5px solid #444;
        border-bottom: 0.5px solid #444;
        border-right: 0.5px solid #444;
        box-shadow: 2px 0 5px -2px #aaa;
    }

    .nav button {
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        border-top-right-radius: 50%;
        border-bottom-right-radius: 50%;
        position: absolute;
        right: 20.5px;
        top: calc(80vh - 81px - 35px);
        width: 50px;
        height: 50px;
        z-index: 100;
        border-top: 0.1px solid #444;
        border-bottom: 0.1px solid #444;
        border-right: 0.1px solid #444;
        border-left: none;
        background-color: #fefefe;
        font-size: 14px;
        font-weight: 100;
        color: #444;
        box-shadow: 2px 0 5px -2px #aaa;
    }

    .nav a {
        font-size: small;
        color: #444;
        display: flex;
        margin: 0px 10px 0 5px;
        padding: 10px;
        font-size: small;
        justify-content: left;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        border-top: 0.5px solid #ddd;
    }

    .nav .active {
        border-bottom: none;
        font-weight: 500;
    }

    .products {
        flex-direction: column;
    }

    .footer .footer-nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin: 1rem 0;
    }

    .footer .footer-nav li {
        max-width: 800px;
        flex: 1 1 100%;
        /* One column on mobile */
        text-align: center;
        font-size: small;
    }

    .notdisplayed {
        display: none;
    }
}