:root{
    /* Hintergrundfarben */
    --bg-1: #b7b7b7;
    --bg-2: #878787;
    --bg-3: #6e6e6e;
    --bg-4: #4f4f4f;
    --bg-hover: #e4e4e4;
}

html,body{
    margin: 0;
    padding: 0;
}

body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.2em;
    line-height: 1.4em;
}

footer{
    height: 4rem;
    width: 100%;
    background-color: darkgray;
    padding: 0.3rem;
}

.box-index{
    max-width: 75ch;
    margin: 2rem auto 2rem auto;
    padding: 1rem;
    border: 4px var(--bg-4) solid;
    border-radius: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

nav{
    width: 100%;
    display: flex;
    justify-content:left;
    align-items: center;
    margin: 0;
}

.navleiste{
    display: flex;
    flex-grow: 1;
    padding: 1rem;
    justify-content: left;
    align-items: center;
    
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.menueleiste{
    height: 3rem;
    display: flex;
}

.navbox1{
    background-color: var(--bg-1);
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    
}
.navbox1:hover, .navbox2:hover, .navbox3:hover, .navbox4:hover{
    background-color: var(--bg-hover);
}
.navbox2{
    background-color: var(--bg-2);
    padding: 0.5rem 1rem 0.5rem 1rem;
    transition: all ease-in-out 300ms;
    
}
.navbox3{
    background-color: var(--bg-3);
    padding: 0.5rem 1rem 0.5rem 1rem;
    transition: all ease-in-out 300ms;
    
}
.navbox4{
    background-color: var(--bg-4);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    transition: all ease-in-out 300ms;
    
}

a:link {
    color: rgb(227, 227, 227);
    
    text-decoration: none;
}
  
a:visited {
    color: rgb(227, 227, 227);
    
    text-decoration: none;
}
  
a:hover {
    color: rgb(0, 0, 0);
    
    text-decoration: underline;
}
  
a:active {
    color: rgb(227, 227, 227);
    
    text-decoration: underline;
}

#header-image{
    height: 10rem;
    width: 100%;
    object-fit: cover;
}

.logo{
    height: 10rem;
}

.logo>img{
    height: 100%;
    object-fit: cover;
}

.profil{
    height: 250px;
}

.profil>img{
    height: 100%;
    object-fit: cover;
    display: block;
    margin: auto;
    
}

.burger{
    height: 50px;
    display: none;
}

.burger>img{
    height: 100%;
    object-fit: cover;
}

h1{
    line-height: 1.4em;
    text-align: center;
}

.projekt-item{
        max-width: 90%;
        background-color: var(--bg-1);
        border: 2px var(--bg-4) solid;
        border-radius: 2rem;
        padding: 1rem;
        margin: 2rem auto 2rem auto;
        text-align: center;
}

.projektgrid{
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.projekt-images{
    max-width: 90%;
    max-height: 96%;
    background-color: white;
    border: 2px var(--bg-4) solid;
    border-radius: 2rem;
    padding: 1rem;
    
}

.image-projektgrid{
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.projektgrid-item>img{
    border-radius: 1rem;
    height: auto;
    width: 50%;
    object-fit: cover;
    margin: 1rem 1rem 1rem 1rem;
}

.projekte-text{
    display: block;
    max-width: 75ch;
    background-color: white;
    border: 2px var(--bg-4) solid;
    border-radius: 2rem;
    padding: 1rem;
   
}

.box-skills>h2{
    margin-top: 2rem;
    text-align: center;
}

.linkanschrift>a:link {
    color: var(--bg-4);
    
    text-decoration: none;
}
  
.linkanschrift>a:visited {
    color: var(--bg-4);
    
    text-decoration: none;
}
  
.linkanschrift>a:hover {
    color: rgb(0, 0, 0);
    
    text-decoration: underline;
}
  
.linkanschrift>a:active {
    color: var(--bg-4);
    
    text-decoration: underline;
}

.fusszeile{
    text-align: center;
    font-size: medium;
    color: var(--bg-4);
}

.projekt-kniffel{

    max-width: 90%;
    background-color: white;
    border: 2px var(--bg-4) solid;
    border-radius: 2rem;
    padding: 1rem;
}

.kniffelimage{
    
    max-width: 100%;
    border-radius: 2rem;
    margin-top: 10rem;
}

.kniffelimage>img{
    border-radius: 1rem;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.rnimage{
    border-radius: 1rem;
    max-width: 100%;
    
    margin-top: 4rem;
}

.rnimage>img{
    border-radius: 2rem;
    max-width: 100%;
    object-fit: cover;
    display: block;
}


@media screen and (max-width: 890px) {
    .box-index, .projekte-text, .projekt-images, .projekt-item, .projekt-kniffel{
        margin: 1rem 1rem 1rem 1rem;
        border-radius: 0;
    }
}

/* Responsive Styles */
@media screen and (max-width: 630px) {

    .navleiste{
        max-height: 50px;
        max-width: 50px;
    }

    .menueleiste{
        display: none;
    }

    .burger{
        height: 50px;
        display: block;
    }

    .navleiste:hover .menueleiste{
        display: grid;
        height: 300px;
        width: 210px;
        background-color: darkgrey;
        border: 0;
        position: absolute;
        top: 0;
        left: 0;
    }

    .navbox1{
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
    }
    .navbox4{
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    #header-image{
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .image-grid{
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr 1fr;
    }

    .projektgrid{
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .kniffelimage{
        margin-top: 1rem;
    }

    .rnimage{
        margin-top: 1rem;
    }
}