@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');

* {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

:root {
    --bgcolor: 	#0c0c0c;
    --secondbgcolor: #2a2a2a;
    --whitecolor: #f0f0f0;
    --maincolor:  #ff00cc;
    --disabledcolor: grey;
    --bgcolor2: #242424;
    --hover-color: #ff33dd;

}

html {
    font-size: 62.5%;

}

body {
    color: var(--whitecolor);
    background-color: var(--bgcolor);
}


/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: .8rem 9%;
    background: var(--secondbgcolor);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
}

header.active {
    animation: show-header 1.5s linear forwards;
    animation-delay: 1.2s;
}

@keyframes show-header {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.logo {
    font-size: 3rem;
    color: var(--whitecolor);
    font-weight: 700;
}

nav a {
    font-size: 2rem;
    color: var(--whitecolor);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .5s;
}

nav a:hover,
nav a.active {
    color:var(--maincolor)
}

#menu {
    font-size: 4rem;
    display: none;
}


/* Sections*/

section {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10rem 9% 2rem;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

section.active {
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
        overflow: auto;
    }
}

/* Home */

.home {
    display: flex;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.homecontent {
    flex: 1;
    padding-top: 10rem;
    box-sizing: border-box;
}

.homecontent h1 {
    font-size: clamp(4.5rem, 10vw, 5.5rem);
    color: var(--maincolor);
    font-weight: 700;
}


.homecontent h2 {
    font-size: 3.2rem;
    margin-top: .5rem;
}

.homecontent p {
    font-size: 1.6rem;
    margin: 1rem 0 2.5rem;
    overflow-wrap: break-word;
}

.homecontent .button {
    display: flex;
    align-items: center;
}

.buttons {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--maincolor);
    border: .2rem solid var(--maincolor);
    border-radius: 4rem;
    box-shadow: 0 0 .5rem var(--maincolor);
    font-size: 1.6rem;
    color: var(--bgcolor);
    font-weight: 500;
    transition: .5s;
}

.buttons:hover {
    background: transparent;
    color: var(--maincolor);
    box-shadow: 0 0 1rem var(--maincolor);
}

.homecontent .button .sci {
    margin-left:  2rem;
}

.homecontent .button .sci a {
    display: inline-flex;
    padding: .8rem;
    border: .2rem solid var(--maincolor);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--maincolor);
    box-shadow: 0 0 .4rem var(--maincolor);
    margin: 0 .8rem;
    transition: .5s;
}

.homecontent .button .sci a:hover {
    background: var(--maincolor);
    color: var(--bgcolor);
    box-shadow: 0 0 1rem var(--maincolor);
}

.homeimage .imagebox {
    position: relative;
    width: 32vw;
    height: 32vw;
    max-width: 550px;
    max-height: 550px;
    border-radius: 50%;
    padding: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 6rem;
}

.homeimage .imagebox::before,
.homeimage .imagebox::after {
    content: '';
    position: absolute;
    width: 50rem;
    height: 50rem;
    background: conic-gradient(transparent, transparent, transparent, var(--maincolor));
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.homeimage .imagebox::after {
    animation-delay: -5s;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.homeimage .imagebox .imageitem {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bgcolor);
    border-radius: 50%;
    border: .01rem solid var(--bgcolor);
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.homeimage .imagebox .imageitem img {
    position: absolute;
    top: 3rem;
    display: block;
    width: 85%;
    object-fit: cover;
}


/* About */

.aboutcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 6rem;
}

.mindset {
    max-width: 850px;
    width: 100%;
    border: .2rem solid var(--maincolor);
    border-radius: .8rem;
    padding: 2rem;
    padding-top: .8rem;
    box-shadow: 0 0 1.1rem var(--maincolor);
}

.mindset h1 {
    font-size: 3.5rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: .8rem;
}

.mindset p {
    font-size: 1.3rem;
}




/* Bildung */

.profilecontainer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr;
    gap: 2rem;
    height: 700px;
}

.profilebox {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.buttonbox {
    grid-column: 1;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 100%;
    
}

.buttonbox .desc {
    
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 2rem;
    border: .2rem solid var(--maincolor);
    border-radius: .8rem;
    padding: 1.8rem;
    margin-bottom: 3rem;
    box-shadow: 0 0 1rem var(--maincolor);
}

.buttonbox .desc span {
    font-weight: 600;
}

.buttonbox .profilebutton {
    display: end;
    width: 100%;
    height: 5rem;
    background: var(--secondbgcolor);
    border: .2rem solid var(--secondbgcolor);
    font-size: 1.6rem;
    color: var(--whitecolor);
    font-weight: 400;
    margin-bottom: .6rem;
    border-radius: .8rem;
    cursor: pointer;
}

.buttonbox .profilebutton.active {
    border-color: var(--maincolor);
    color: var(--maincolor);
}

.profilebox .heading {
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
}

.profiledetail {
    display: none;
    width: 100%;
}

.profiledetail.active {
    display: block;
}

.profilelist {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1.5rem;
    width: 100%;
    max-width: 80rem;
    margin: 0;
    height: 45rem;
    overflow-y: auto;
}

.profiledetail.skills .profilelist .profileitem {
    height: 25rem;
}

.profiledetail.school .profilelist .profileitem {
    height: 17rem;
}

.profiledetail.work .profilelist .profileitem {
    height: 17rem;
}

.profilelist::-webkit-scrollbar {
    width: .7rem;
}

.profilelist::-webkit-scrollbar-thumb {
    background: var(--maincolor);
    border-radius: 1rem;
}

.profilelist .profileitem {
    width: 100%;
    background: var(--secondbgcolor);
    border-radius: .8rem;
    padding: 2.5rem 2rem;
    padding-left: 5rem;
    padding-right: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profileitem h3 {
    font-size: 2.3rem;
    font-weight: 550;
}

.profileitem .inlinerow {
    font-size: 1.05rem;
    margin-top: .8rem;
    margin-bottom: 1rem;
}

.profileitem time {
    color: var(--maincolor);
}

.profileitem p {
    font-size: 1.2rem;
}





/* Skills */



.profileitem ul {
  list-style: none;
  padding-left: .1rem;
  margin-top: 1rem;
}

.profileitem ul li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
  font-size: 1.1rem;
}

.profileitem ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--maincolor);
}



/* Portfolio */

.portfoliocontainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding-top: 2rem;
}

.portfoliodetail {
    display: none;
}

.portfoliodetail.active {
    display: block;
}

.portfoliobox .number {
    font-size: 5rem;
    -webkit-text-stroke: .2rem var(--maincolor);
    color: transparent;
    line-height: 1;
}

.portfoliobox h3 {
    font-size: 3rem;
    margin: .8rem 0 1.5rem;
    font-weight: 600;
}

.portfoliobox p {
    font-size: 1.3rem;
}

.portfoliobox .tech {
    margin: 2rem 0;
    color: var(--maincolor);
    border-bottom: .1rem solid var(--whitecolor);
    padding-bottom: 2rem;
}

.portfoliobox .github a {
    position: relative;
    display: inline-flex;
    padding: 1rem;
    font-size: 2.5rem;
    color: var(--whitecolor);
    border-radius: 50%;
    background: var(--secondbgcolor);
    transition: .5s;
    border: .2rem solid var(--maincolor);
    box-shadow: 0 0 .5rem var(--maincolor);
}

.portfoliobox .github a:hover {
    color: var(--maincolor);
    box-shadow: 0 0 1rem var(--maincolor);
}

.portfoliobox .github a span {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    font-size: 1.6rem;
    white-space: nowrap;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    background: var(--whitecolor);
    color: var(--bgcolor);
    opacity: 0;
    transition: .2s;
}

.portfoliobox .github a:hover span {
    top: -70%;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.portfoliobox .portfoliocarousel {
    width: 100%;
    height: 42rem;
    border-radius: 1rem;
    overflow: hidden;
    border: .2rem solid var(--maincolor);
    box-shadow: 0 0 1rem var(--maincolor);
}

.portfoliocarousel .imageslide {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 2rem;
    height: inherit;
    transition: .5s;
}

.portfoliocarousel .imageitem {
    height: inherit;
}

.portfoliocarousel .imageitem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .8rem;
}

.portfoliobox .navigation {
    text-align: right;
    margin-top: 2rem;
}

.portfoliobox .navigation button {
    display: inline-flex;
    padding: .4rem;
    background: var(--secondbgcolor);
    border: .2rem solid var(--maincolor);
    border-radius: .6rem;
    font-size: 3.2rem;
    color: var(--maincolor);
    cursor: pointer;
}

.portfoliobox .navigation button.disabled {
    border-color: var(--secondbgcolor);
    color: var(--disabledcolor);
}

.portfoliobox .navigation .arrowright {
    margin-left: 1rem;
}



/* Kontakt */

.contactbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 6rem;
}

.contactbox form {
    width: 100%;
    max-width: 850px;
    background: var(--secondbgcolor);
    padding: 1.5rem 2rem 2rem;
    border-radius: .8rem;
    text-align: center;
    box-sizing: border-box;
    border: .2rem solid var(--maincolor);
    box-shadow: 0 0 1rem var(--maincolor);
}

.contactbox .heading {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.contactbox .fieldbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contactbox .fieldbox textarea {
    grid-column: 1 / -1;
    height: 5rem;
    resize: none;
    overflow-y: auto;
}

.contactbox .fieldbox input,
.contactbox .fieldbox textarea {
    padding: 1rem;
    background: var(--bgcolor);
    border: .15rem solid var(--bgcolor);
    border-radius: .6rem;
    font-size: 1.3rem;
    color: var(--whitecolor);
}

.contactbox .fieldbox textarea {
    grid-column:  1 /-1;
    height: 17.5rem;
    resize: none;
}

.contactbox .fieldbox input:focus,
.contactbox .fieldbox textarea:focus {
    border-color: var(--maincolor);
}

.contactbox .buttons {
    margin-top: 2rem;
    cursor: pointer;
}


/* Footer

.footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--secondbgcolor);
    z-index: 100;
}

.footertext p {
    font-size: 1.6rem;
}

.footericonTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--maincolor);
    border: .2rem solid var(--maincolor);
} */ 




/* Breakpoints*/

/*1440px*/
@media screen and (max-width: 1440px) {
    .home {
        padding: 0 4rem;
        gap: 30px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        width: 100%;
        margin: 0 auto;
        max-width: none;
    }

    .homecontent {
        padding-top: 0;
    }

    .homecontent h1 {
        font-size: clamp(4.2rem, 9vw, 5.2rem);
    }

    .homecontent h2 {
        font-size: 3rem;
        margin-top: .4rem;
    }

    .homecontent p {
        font-size: 1.5rem;
        margin: 0.9rem 0 2.2rem;
        max-width: 650px;
    }

    .homecontent .button {
        gap: 1.8rem;
    }

    .buttons {
        padding: 0.95rem 2.9rem;
        font-size: 1.5rem;
    }

    .homecontent .button .sci a {
        padding: .75rem;
        font-size: 1.9rem;
    }

    .homeimage .imagebox {
        width: 33vw;
        height: 33vw;
        max-width: 500px;
        max-height: 500px;
        margin-top: 0;
    }

    .homeimage .imagebox::before,
    .homeimage .imagebox::after {
        width: 45rem;
        height: 45rem;
    }

    .homeimage .imagebox .imageitem img {
        top: 2.5rem;
        width: 82%;
    }
}


/*1200px*/
@media screen and (max-width: 1200px) {
    
    .home {
        gap: 15px;
        padding: 0 4rem;
        min-height: 100vh; 
        display: flex; 
        align-items: center; 
        justify-content: center;
        flex-direction: row;
    }

    .homecontent {
        padding-top: 0; 
    }

    .homecontent h1 {
        font-size: clamp(4rem, 8vw, 5rem);
    }

    .homecontent h2 {
        font-size: 2.5rem;
        margin-top: .4rem;
    }

    .homecontent p {
        font-size: 1.125rem;
        margin: 0.8rem 0 2rem;
        max-width: 600px;
    }

    .homecontent .button {
        gap: 1.5rem;
    }

    .buttons {
        padding: 0.9rem 2.8rem;
        font-size: 1rem;
    }

    .homecontent .button .sci a {
        padding: .7rem;
        font-size: 1.25rem;
    }

    .homeimage .imagebox {
        width: 35vw;
        height: 35vw;
        max-width: 450px;
        max-height: 450px;
        margin-top: 0; 
    }

    .homeimage .imagebox::before,
    .homeimage .imagebox::after {
        width: 40rem;
        height: 40rem;
    }

    .homeimage .imagebox .imageitem img {
        top: 2rem;
        width: 80%;
    }
}

/*1024px*/
@media screen and (min-width: 1024px) {
    html {
        font-size: 70%;
    }

    .homeimage .imagebox .imageitem img {
        /* HIER IST DIE ANPASSUNG */
        top: 1rem; /* Leicht nach oben verschieben, falls es zu weit unten ist */
        width: 90%; /* WICHTIG: Erhöht die Größe des Bildes im Kreis */
    }
}



/*768px*/
@media screen and (max-width: 768px) {
    #menu {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        background: var(--bgcolor);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        text-align: center;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        margin: 4rem 0;
    }

    .home {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;
        padding-top: 15rem;
    }

    .homecontent,
    .profilebox h2,
    .profilebox .heading,
    .profilebox .desc,
    .profiledetail.about .profileitem {
        text-align: center;
    }

    .homecontent {
        width: 90vw;       /* mehr Platz */
        max-width: none;   /* keine Beschränkung */
        text-align: center; /* zentrieren */
    }
    
    .homecontent h2 {
        display: block;    /* block nehmen, damit die volle Breite genutzt wird */
        margin: 0 auto;    /* zentriert */
    }

    .homecontent p {
        font-size: 1.6rem; /* Behält deine Originalgröße bei */
        margin: 1rem auto 2.5rem; /* Fügt 'auto' für die linke/rechte Margin hinzu, um das Blockelement zu zentrieren */
        overflow-wrap: break-word;
        text-align: center; /* ZENTRIERT DEN TEXT INNEN */
        max-width: 500px; /* Optional: Setze hier eine max-width, wenn der Text bei 90vw zu breit wird */
    }

    .homeimage .imagebox {
        width: 35rem;
        height: 35rem;
    }

    .homecontent .button {
        flex-direction: column-reverse;
    }

    .homecontent .button .sci {
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .homeimage .imagebox .imageitem img {
        /* HIER IST DIE ANPASSUNG */
        top: 1rem; /* Leicht nach oben verschieben, falls es zu weit unten ist */
        width: 90%; /* WICHTIG: Erhöht die Größe des Bildes im Kreis */
    }

    .profilecontainer,
    .portfoliocontainer,
    .contactcontainer {
        grid-template-columns: 1fr;
    }

    .profilecontainer {
        gap: 3rem;
    }

    .portfoliocontainer .portfoliobox:first-child {
        order: 1;
    }

    .contactbox .fieldbox {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*425px*/
@media screen and (max-width: 425px) {
    html {
        font-size: 55%;
    }

    .homecontent,
    .profilebox h2,
    .profilebox .heading,
    .profilebox .desc,
    .profiledetail.about .profileitem {
        text-align: center;
    }

    .homecontent .button {
        flex-direction: column-reverse;
    }

    .homecontent .button .sci {
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .homeimage .imagebox .imageitem img {
        /* HIER IST DIE ANPASSUNG */
        top: 1rem; /* Leicht nach oben verschieben, falls es zu weit unten ist */
        width: 90%; /* WICHTIG: Erhöht die Größe des Bildes im Kreis */
    }

    .contactbox form {
        padding: 2.5rem 3rem 3.5rem;
    }

    .contactbox h2 {
        font-size: 3.5rem;
    }
}

/*375*/
@media screen and (max-width: 375px) {
    html {
        font-size: 56%;
    }

    .homecontent,
    .profilebox h2,
    .profilebox .heading,
    .profilebox .desc,
    .profiledetail.about .profileitem {
        text-align: center;
    }

    .home {
        gap: 1.5rem;
        padding: 8rem 1rem 3rem;
        min-height: calc(100vh - 11rem);
        justify-content: center;
        align-items: center;
    }

    .homecontent h1 {
        font-size: clamp(2.8rem, 8.5vw, 3.8rem);
        line-height: 1.2;
    }

    .homecontent h2 {
        font-size: 2.2rem;
        margin-top: .3rem;
    }

    .homecontent p {
        font-size: 1rem;
        margin: 0.8rem auto 1.5rem;
        max-width: 350px;
    }

    .homecontent .button {
        flex-direction: column; /* Sicherstellen, dass sie untereinander bleiben */
        align-items: center; /* Sicherstellen, dass sie mittig sind */
        gap: 1.2rem;
    }

    .homecontent .button .sci {
        margin-left: 0; /* Alte Ränder entfernen */
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .buttons {
        padding: 0.9rem 2.8rem;
        font-size: 1rem;
        /* Optional: Falls der Text im Button auch verrutscht, line-height anpassen */
        line-height: 1; /* Oft hilft dies, Text/Icons vertikal zu zentrieren */
        display: inline-flex; /* Damit align-items/justify-content greifen können */
        align-items: center;
        justify-content: center;
    }

    /* ************************************************************ */
    /* ANPASSUNG FÜR ICON-BILDER IN BUTTONS (SCI) */
    /* ************************************************************ */
    .homecontent .button .sci a {
        padding: .7rem; /* Etwas mehr Padding, um Icons Raum zu geben */
        font-size: 1.5rem; /* Icon-Größe anpassen */
        display: inline-flex; /* Wichtig: Ermöglicht vertikale Zentrierung */
        justify-content: center; /* Horizontale Zentrierung des Icons im Kreis */
        align-items: center; /* Vertikale Zentrierung des Icons im Kreis */
        line-height: 1; /* Sicherstellen, dass der Icon-Font nicht unnötigen Zeilenabstand erzeugt */
    }


    /* ************************************************************ */
    /* ANPASSUNG FÜR HAUPTBILD INNERHALB DER BOX */
    /* ************************************************************ */
    .homeimage .imagebox {
        width: 25rem;
        height: 25rem;
    }

    .homeimage .imagebox::before,
    .homeimage .imagebox::after {
        width: 30rem;
        height: 30rem;
    }

    .homeimage .imagebox .imageitem img {
        top: 2rem; /* WICHTIG: Erhöht den top-Wert, um das Bild weiter nach unten zu verschieben */
        width: 85%; /* WICHTIG: Das Bild innerhalb der Box etwas größer machen, z.B. von 75% auf 85% */
        height: auto; /* Stellt sicher, dass das Seitenverhältnis beibehalten wird */
        object-fit: contain; /* Stellt sicher, dass das Bild in die Box passt, ohne zu clippen */
    }

    .contactbox form {
        padding: 2rem 1.2rem 2.5rem;
    }

    .contactbox h2 {
        font-size: 3rem;
    }

    .contactbox .fieldbox {
        grid-template-columns: 1fr;
    }
}


@media screen and (max-width: 325px) {
    html {
        font-size: 57%;
    }

    .homecontent,
    .profilebox h2,
    .profilebox .heading,
    .profilebox .desc,
    .profiledetail.about .profileitem {
        text-align: center;
    }

    .home {
        gap: 1.2rem;
        /* KEIN min-height: 100vh ODER calc() HIER */
        /* Paddings direkt setzen, um den Inhalt nach unten zu schieben */
        padding: 8rem 0.8rem 2.5rem; /* Oben 8rem, Unten 2.5rem, Seiten 0.8rem */
        /* justify-content und align-items können bleiben, haben aber eine andere Wirkung */
        justify-content: center; /* Zentriert den Inhalt innerhalb des verfügbaren Raums */
        align-items: center;
        min-height: auto; /* Lassen wir die Höhe vom Inhalt bestimmen */
    }

    .homecontent h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        line-height: 1.2;
    }

    .homecontent h2 {
        font-size: 2rem;
        margin-top: .2rem;
    }

    .homecontent p {
        font-size: 0.95rem;
        margin: 0.7rem auto 1.5rem;
        max-width: 290px;
    }

    .homecontent .button {
        gap: 1rem;
    }

    .homecontent .button .sci {
        margin-bottom: 1.5rem;
        gap: 0.8rem;
    }

    .buttons {
        padding: 0.8rem 2.5rem;
        font-size: 0.95rem;
    }

    .homecontent .button .sci a {
        padding: .5rem;
        font-size: 1.25rem;
    }

    .homeimage .imagebox {
        width: 20rem;
        height: 20rem;
    }

    .homeimage .imagebox::before,
    .homeimage .imagebox::after {
        width: 25rem;
        height: 25rem;
    }

    .homeimage .imagebox .imageitem img {
        top: 1rem;
        width: 85%;
    }

    .contactbox form {
        padding: 2rem 1.2rem 2.5rem;
    }

    .contactbox h2 {
        font-size: 3rem;
    }

    .contactbox .fieldbox {
        grid-template-columns: 1fr;
    }
}



/*2560px*/

@media screen and (min-width: 2560px) {
    html {
        font-size: 100%;
    }

    .home {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 180px;
        padding: 180px 0;
        min-height: 100vh;
        width: 1800px; /* Feste Breite für den Home-Container */
        margin: 0 auto; /* Zentriert den Home-Container */
        overflow: hidden; /* Zusätzliche Absicherung gegen Home-spezifisches Überlaufen */
    }

    .homecontent {
        width: 800px;
        flex-shrink: 0;
        flex-grow: 0;
        text-align: left;
    }

    .homecontent h1 {
        font-size: 80px;
        line-height: 1.1;
    }

    .homecontent h2 {
        font-size: 55px;
        margin-top: 15px;
    }

    .homecontent p {
        font-size: 35px;
        margin: 30px 0 60px;
    }

    .homecontent .button {
        gap: 40px;
    }

    .homecontent .button .sci {
        margin-left: 40px;
        gap: 25px;
    }

    .buttons {
        padding: 25px 60px;
        font-size: 20px;
    }

    .homecontent .button .sci a {
        padding: 18px;
        font-size: 35px;
    }

    .homeimage {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .homeimage .imagebox {
        width: 900px;
        height: 900px;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .homeimage .imagebox::before,
    .homeimage .imagebox::after {
        width: 1000px;
        height: 1000px;
    }

    .homeimage .imagebox .imageitem img {
        top: 40px;
        width: 85%;
    }

    .profilecontainer,
    .portfoliocontainer,
    .contactcontainer {
        gap: 120px;
        max-width: 1800px;
        margin: 0 auto;
    }

    .contactbox form {
        padding: 90px 120px;
    }

    .contactbox h2 {
        font-size: 90px;
    }
}