* {
    box-sizing: border-box;
}

:root {
    --header-height: max(75px, 8vh);
    --section-height: calc(100vh - var(--header-height));
  }

@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}   

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    background-color: #14263b;
    margin: 0;
    text-align: center;
    color: white; /* text color white unless otherwhise specified */
}

nav {
    background-color: #404962;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var( --header-height);
    display: flex;
    justify-content: left;
    align-items: center;
    border-bottom: solid 1px black;
    padding: 0 5vw;
}
nav a{
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}
nav a:hover{

    color:#ff5e00;
}

main {
    margin-top: var(--header-height);
}
main section{
    scroll-margin-top: var(--header-height);
}

.infotext-container{
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5% 10%;
    height: var(--section-height);
    width: 100%;
    background-color: #14263b;
}

.infotext-h1{
    font-size: 3em;
    margin-bottom: -0.3em;
}
.thumbnail{
    width: 100%;
    aspect-ratio: 16 / 9;   /* Einheitliches Bildformat */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}
.hovertext{
    visibility:hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    color:#ff5e00;
}
#projects a:hover .hovertext{
    opacity: 1;
    visibility:visible;
}
.info-p{
    font-size: 1em;
    color: #ff5e00;
    font-family:'Courier New', Courier, monospace;
    font-style: italic;
}
#contact a:hover{
    transition: transform 0.3s ease;
    transform: scale(1.3) translate(5px,5px);
}

#profile-link{
    margin-top: 1em;
}

#projects{
    background-color: #121c27;
}
#tile-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    padding: 2em 15%;
    /*height: var(--section-height);*/
}

.project-tile{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

a{
    text-decoration: none;
    color: white;
}
footer{
    background-color: #404962;
    text-align: right;
    width: 100%;
}
footer li{  
    display: inline;
    margin: 0 10px;
}
footer p{
    font-size: 0.8em;
    margin-right: 10px;
    color: #e2914f; 
}

@media (max-width: 900px){
    #plan-container {
        flex-direction: column;
    }
    #tile-container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .icon-text{
        text-align: center;
    }
}


 @media (max-width: 450px){
    header{
        display: flex;
        justify-content: center;
        align-items: center;
    }
 }