@font-face {
    font-family: 'poppins'; /* Gewünschter Name */
    src: url('fonts/Poppins-Regular.ttf');
    font-weight: normal; /* oder ein anderer Wert */
    font-style: normal; /* oder italic */
}

@font-face {
    font-family: 'poppins'; /* Gewünschter Name */
    src: url('fonts/Poppins-Light.ttf');
    font-weight: light; /* oder ein anderer Wert */
    font-style: normal; /* oder italic */
}

@font-face {
    font-family: 'poppins'; /* Gewünschter Name */
    src: url('fonts/Poppins-Medium.ttf');
    font-weight: medium; /* oder ein anderer Wert */
    font-style: normal; /* oder italic */
}

@font-face {
    font-family: 'poppins'; /* Gewünschter Name */
    src: url('fonts/Poppins-Bold.ttf');
    font-weight: bold; /* oder ein anderer Wert */
    font-style: normal; /* oder italic */
}

:root {
    --color-blue: #297ae3; 
    --color-black: #15171c;
    --color-darkgrey: #232933;
    --color-grey: #2e3744;
    --color-lightgrey: #b3b4b6;
    --color-white: #fff;
}

* {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background-color: var(--color-lightgrey);
    font-family: 'poppins';
    font-size: 20px;
    color: var(--color-darkgrey);
}

h1 {
    font-size: 80px;
    line-height: 115%;
}

h2 {
    text-transform: uppercase;
}

h3 {
   font-size: 32px; 
}

.subheading {
    margin-top: 25px;
    color: var(--color-darkgrey)
}

header {
    padding: 100px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.logo img {
    margin: 0px 0 30px 5px;
    width: 350px;
    height: auto;
}

header h1 {
    text-transform: uppercase;
}

.header_text {
    width: 850px;
}

.impressum {
    width: 1200px;
    max-width: 90vw;
}

.circle {
    height: 500px;
    width: 500px;

    max-height: 80vw;
    max-width: 80vw;

    overflow: hidden;
    border-radius: 50%;
    border: 20px solid var(--color-blue);

    display: flex;
    justify-content: center;
    align-items: center;
}

.circle img {
    height: 100%;
    width: auto;    
}

nav {
    margin-bottom: 120px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    padding: 3px;
}

nav a:hover {
    color: var(--color-white);
}

nav a::after {
    content: '';
    height: 2px;
    width: 0;
    background: var(--color-blue);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 150ms ease-in-out;
}

nav a:hover::after{
    width: 100%;
}

#toggle_button {
    display: none;
}

label[for="toggle_button"] {
    display: none;
}

label[for="toggle_button"] span img {
    width: 40px;
    height: auto;
}

@media (max-width: 800px) {
    
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo img {
        margin: 0 0 50px 0;
    }

    h1 {
        font-size: 12vw;
        text-align: center;
    }

    .subheading {
        text-align: center;
    }

    nav {
        position: absolute;
        top: 0;
        left: 0;
        background: var(--color-grey);
        color: var(--color-white);
        padding: 15px;
        border-radius: 0 0 25px 0;
    }

    nav ul {
        display: none;
        flex-direction: column;
    }

    nav ul li {
        margin: 30px 50px;
    }

    #toggle_button:checked ~ ul {
        display: flex;
        width: 100%;
    }

    label[for="toggle_button"] {
        display: block;
    }
}

#about_me {
    color: var(--color-white);
    padding: 100px 0;
    background-color: var(--color-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    flex-wrap: wrap-reverse;
}

.about_me_container {
    width: 750px;
    max-width: 90%;
}

#about_me img {
    width: 400px;
    max-width: cal(90% - 30px);
    border: 15px solid var(--color-white);
}

.about_me_container h2 {
    font-size: 50px;
}

.about_me_container p {
    text-align: justify;
    line-height: 175%;
}

.skills {
    margin-left: 20px;
}

#services {
    padding:70px 0;
    background-color: var(--color-lightgrey);
}

#services h2 {
    font-size: 50px;
    text-align: center;
}

.flex_container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.card {
    color: var(--color-white);
    width: 350px;
    max-width: calc(90% - 40px);
    background-color: var(--color-grey);
    border-radius: 60px;
    padding: 60px 20px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.card * {
    text-align: center;
}

.card a {
    background-color: var(--color-blue);
    width: min-content;
    padding: 15px 20px;
    border-radius: 30px;
    margin: 0 auto;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-white);
}

footer {
    padding: 70px 0;
    background-color: var(--color-darkgrey);
}

footer h2 {
    font-size: 50px;
    text-align: center;
    color: var(--color-white);
}

.grid_container {
    margin: 60px auto;
    width: 1500px;
    max-width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 15px;
    grid-template-areas:
    "item1 item1 item2 item3"
    "item4 item5 item5 item3";
}

.grid_item {
    background-color: var(--color-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 50px;
    color: var(--color-white);
}

.grid_item img {
    height: 150px;
    width: 150px;
}

#item1 {
    grid-area: item1;
}

#item2 {
    grid-area: item2;
    flex-direction: column;
    gap: 10px;
}

#item3 {
    grid-area: item3;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#item3 a {
    color: var(--color-white);
    text-decoration: none;
}

#item4 {
    grid-area: item4;
    flex-direction: column;
    gap: 10px;
}

#item5 {
    grid-area: item5;
}

@media (max-width: 1300px) {
   .grid_container {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 300px 300px 300px;
        grid-template-areas:
        "item1 item1 item3"
        "item4 item2 item3"
        'item5 item5 item3';
    } 
}

@media (max-width: 900px) {
   .grid_container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
        "item1 item1"
        "item5 item5"
        "item2 item4"
        "item3 item3";
    } 
}

@media (max-width: 650px) {
    footer h2 {
        font-size: 9vw;
    }

    .grid_item {
        padding: 20px;
    }

    .grid_item img {
        height: 100px;
        width: 100px;
    }

    .grid_item h3 {
        font-size: 24px;;
    }

    body {
        font-size: 16px;
    }
}

.disclaimer {
    display: flex;
    justify-content: center;
    align-content: center;
    color: var(--color-lightgrey);
    margin: 0 auto;
    font-size: 0.75em;
}
