
:root {
    --text-size: 24px;
    --menu-height: 55px;
    --primary-color: #16697A;
    --accent-color: #FFA62B;
    --accent-color2: #82C0CC;
    --background-color: #EDE7E3;
    --title-size: 64px;
    --subtitle-size: 14px;
    --content-margin: 50px;
    --content-font-size: 48px;
    --background-border-radius: 50px;
    --transition: 250ms;
    --icon-margin-top: calc(40px + var(--menu-height));
}
html, body {
    scroll-behavior: smooth;
}
:target {
    scroll-margin-top: calc(var(--icon-margin-top) + 10px);
}
body{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: var(--text-size);
    color: var(--primary-color);
    text-align: center;
}
ul,
body{
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition-duration: 150ms;
    transition-property: color, transform, width;
}
a:hover {
    color: var(--accent-color);
}
.flex li,
.flex section,
.flex .images,
.flex .info,
.flex {
    display: flex;
    align-items: center;
}
.logo {
    height: var(--menu-height);
    font-weight: bold;
}
nav ul {
    list-style: none;
    gap: 20px;
    flex: 1;
    justify-content: right;
}
nav {
    box-sizing: border-box;
    position: fixed;
    padding: 20px;
    justify-content: space-between;
    gap: 30px;
    background-color: var(--background-color);
    width: 100vw;
    z-index: 100;
}
li {
    justify-content: center;
    height: var(--menu-height);
}
.contact a{
    justify-content: center;
    height: var(--menu-height);
    background-color: var(--primary-color);
    border-radius: 1000px;
    min-width: 240px;
    color: var(--accent-color);
    font-weight: bold;
    transition-duration: var(--transition);
    transition-property: background, color;
}
.contact:hover a{
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.title {
    flex-direction: column;
}
.title-1,
.title-2{
    font-size: var(--title-size);
    font-weight: bold;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.25);
    margin: 0 50px;
}
.title-1{
    margin-top: 50px;
    color: var(--accent-color);  
}
.title-2{
    color: var(--accent-color2);
}
.subtitle{
    font-size: var(--subtitle-size);
    width: 360px;
}
.icon{
    height: 50px;
    position: absolute;
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.25));
    transition-duration: 200ms;
}
.icons{
    width: calc(100vw - 50px);
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
}
.icon:hover {
    transform: scale(1.2);
}
#code {
    left: 30%;
    top: 20%;
}
#bulb {
    left: 87%;
    top: 30%;
}
#map {
    left: 5%;
    top: 27%
}
#video{
    left: 60%;
    top: 80%;
}
#page {
    left: 96%;
    top: 70%;
}
#site {
    left: 5%;
    top: 75%;
}
#hero{
    padding: calc(100px + var(--menu-height)) 0;
    flex-direction: column;
    position: relative;
    height: fit-content;
    background-color: var(--background-color);
    border-radius:  0 0 var(--background-border-radius) var(--background-border-radius);
}
.services section,
#me{
    gap: 100px;
    margin: var(--content-margin);
}
.info{
    padding: 20px 0;
    gap: 50px;
    flex-direction: column;
    flex: 1;
}
.stickman{
    min-width: 50vw;
    justify-content: center;
}
.stickman img{
    max-width: 100%;
}
.heading {
    font-size: var(--content-font-size);
    font-weight: bold;
}

#me .text{    
    max-width: 350px;
    background-color: var(--background-color);
}
.contactinfo,
.text {
    padding: 50px;
}
.services section .images a img,
.contact,
.contactinfo,
.text {
    border-radius: 1000px;
}
.source span{
    font-size: 0;
    transition-duration: var(--transition);
}
.source:hover span{
    position: absolute;
    color: var(--accent-color);
    font-size: 10px;
}
.services {
    background-color: var(--primary-color);
    border-radius: var(--background-border-radius);
    flex-direction: column;
    color: var(--accent-color);
    flex-wrap: wrap;
}
.services .images{
    flex: 1;
    gap: 20px;
}
.services section .images a{
    width: 33%;
    transition-duration: var(--transition);
    transition-timing-function: ease;
}
.services section .images a:hover{
    width: 40%;
}
.panda a{
    min-width: 100%;
    transition-duration: var(--transition);
}
.panda a:hover {
    transform: scale(1.1);
}
.services section .images a img{
    width: 100%;  
}
.services .text{
    border: 2px solid var(--accent-color);
}
footer {
    margin: 100px;
    justify-content: space-between;
    flex-direction: column;
    gap: 50px;
}
footer .contactinfo {
    background-color: var(--background-color);
}
.impressum {
    margin: 20px;
    font-size: 10px;
}
.hamburger{
    display: none;
    cursor: pointer;
}
.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: var(--primary-color);
}
@media (max-width: 1000px) {
    :root {
        --text-size: 20px;
    }
    
    #me,
    .services section{
        flex-direction: column-reverse;
    }
    #me {
        margin: 100px var(--content-margin);
        gap: 50px;
    }
    .stickman {
        transform: translate(8%);
    }
    #videos {
        flex-direction: column;
    }
    .services {
        gap: 200px;
    }
}
@media (max-width: 900px) {
    .hamburger{
        display: block;
        z-index: 300;
    }
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu{
        position: fixed;
        top: -130%;
        gap: 30px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100vw;
        text-align: center;
        transition: 0.4s;
        transition-property: top;
        padding-bottom: 100px;
        box-sizing: border-box;
        left: 0;
        z-index: 200;
    }
    .nav-menu li a {
        font-size: 24px;
    }
    .nav-menu.active{
        top: var(--icon-margin-top);
    }
}
@media (max-width: 600px) {
    .title-1,
    .title-2 {
        font-size: 48px;
    }
}