:root {
    --body-margin: 6rem;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Jost", sans-serif;
    color: black;
    background-color: #fbfaf5;
    margin: 0;
}
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background: #fbfaf5;
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}
.sidebar a {
    width: 100%;
}
.menu-button {
    display: none;
}
@media (max-width: 800px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
    .sidebar {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 90px;
        width: 280px;
    }
    .sidebar li {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .sidebar li:first-child {
        position: absolute;
        top: 18px;
        right: 18px;
        width: auto;
    }
    .sidebar a {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.3rem;
        padding: 16px 20px;
        text-decoration: none;
    }
    .sidebar .project-button {
        background: none;
    }
    .sidebar .project-button:hover {
        background: none;
    }
}
@media (max-width: 400px) {
    .sidebar {
        width: 100%;
        display: none;
    }
}

/*damit beim handy das menü komplett abgedeckt wird*/
header {
    position: sticky;
    top: 0;
    background-color: #fbfaf5;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rm 0;
    padding-left: 100px;
    padding-right: 100px;

    ul {
        display: flex;
        align-items: right;
        gap: 1rem;
        list-style-type: none;
        justify-content: flex-end;
    }
    nav {
        margin-top: 20px;
    }
    .logo {
        margin-top: 20px;
    }
    a {
        text-decoration: none;
        color: inherit;
    }

    a:hover {
        text-decoration: underline;
        color: inherit;
    }
    .project-button {
        padding: 0.5rem 2rem;
        background-color: #ff9ee4;
        border-radius: 9999px;
        color: black;
    }
    .project-button:hover {
        background-color: #ffd9f4;
        text-decoration: none;
        font-weight: 500;
    }
}
img {
    display: block;
    max-width: 100%;
}
main {
    padding-left: var(--body-margin);
    padding-right: var(--body-margin);
}
h1 {
    font-family: "Cal Sans";
    margin-top: 100px;
    padding: 20px;
    font-size: 6rem;
    margin-bottom: 450px; /*margin-bottom =  Abstand nach unten*/
}
h2 {
    font-family: "Cal Sans";
    margin-top: 100px;
    padding: 20px;
    font-size: 5rem;
    margin-bottom: 1px;
}
.social-icons ul {
    padding-left: 20px;
}
.social-icons p {
    padding-left: 20px;
}
.social-icons svg {
    width: 60px;
    height: 60px;
}
.social-icons {
    font-size: 32px;
}

.social-icons a {
    text-decoration: none;
    color: inherit;
}

.social-icons a:hover {
    text-decoration: underline;
    color: inherit;
}

section {
    ul {
        list-style-type: none;
    }
}
.aboutme-text {
    max-width: 37.5rem;
    margin: 0 auto;
    margin-left: 400px;
    padding: 0 20px;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.aboutme-text-2 {
    max-width: 37.5rem;
    margin-left: 400px;
    font-size: 2rem;
    padding: 0 20px;
    margin-top: 0;
    margin-bottom: 0;
}
.icon {
    height: 80px;
    width: 80px;
} /* Richtig anordnen? Abstände noch mehr verkleinern? */
.icon-tool {
    display: flex;
    gap: 0px;
    justify-content: center;
    padding: 0 20px;
}
.image-securva {
    max-width: 300px;
}
.cow {
    max-width: 300px;
}
.image-platzhalter {
    max-width: 300px;
}

#about {
    scroll-margin-top: 250px;
}
#projekte {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    scroll-margin-top: 250px;
}
#projekte figure {
    text-align: center;
}

#projekte figcaption a,
#projekte figcaption a:visited {
    text-decoration: none;
    color: inherit;
}
#projekte figcaption .title {
    display: block;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 10px;
    font-family: "Cal Sans";
}
#projekte figcaption .Untertitel {
    font-size: 20px;
    margin-top: 0px;
}
.kontakt-text {
    padding-left: 32px;
    font-size: 2rem;
}
footer .wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
}
footer .wrapper p {
    color: gray;
    margin: 0;
    margin-top: 50px;
}
footer nav menu {
    margin: 0px;
    display: flex;
    gap: 40px;
    list-style: none;
    margin-bottom: 20px;
    margin-top: 50px;
}
footer nav a {
    text-decoration: none;
    color: inherit;
}
.Impressum {
    padding: 100px;
}

@media (max-width: 400px) {
    h1 {
        font-size: 2rem;
        margin-top: 40px;
        margin-bottom: 80px;
    }
    h2 {
        font-size: 2rem;
        margin-top: 40px;
    }

    footer .wrapper p,
    footer nav a {
        font-size: 0.3rem;
        line-height: 1.2;
    }
    footer .wrapper {
        gap: 10px;
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    header {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 0px;
    }
    h1 {
        font-size: 3rem;
        margin-top: 40px;
        margin-bottom: 80px;
    }
    h2 {
        font-size: 2.5rem;
        margin-top: 40px;
    }
    :root {
        --body-margin: 1rem;
    }
    .aboutme-text {
        margin-bottom: 1rem;
    }
    .aboutme-text-2 {
        margin-top: 0;
        margin-bottom: 0;
    }
    .aboutme-text,
    .aboutme-text-2,
    .kontakt-text,
    .social-icons-text {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.25rem;
        padding: 0;
    }
    footer .wrapper p,
    footer nav a {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    footer .wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 12px;
        flex-wrap: nowrap;
    }
    footer nav menu {
        display: flex;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
        flex-wrap: nowrap;
    }
    footer nav a {
        white-space: nowrap;
        font-size: 0.55rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    footer .wrapper p {
        margin: 0;
        color: gray;
        font-size: 0.55rem;
        line-height: 1.2;
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .aboutme-text,
    .aboutme-text-2 {
        margin-left: 0;
        margin-right: 0;
        padding: 0 20px;
    }
}
