:root{
    --bg-color: #212529;
    --color: #ffffffff;
    --hover-color: #7d7d7dff;
    --secundary-color: #393E46;
    --box-color: #555d6aff;
    --databutton-color: #009EE3;
    --font-family: 'monsterrat', sans-serif;
}

h2{
    font-family: var(--font-family);
    color: var(--databutton-color);
    margin: 0px 0px 0px;
    text-align: center;
}

h3{
    font-family: var(--font-family);
    color: var(--color);
    margin: 0px 0px 0px;
}

body{
    background-color: var(--bg-color);
    color: var(--color);
    font-family: var(--font-family);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    height: 10vh;
    font-family: var(--font-family);
    background-color: var(--secundary-color);
    border-bottom: 1px solid var(--box-color);
}

.navlogo{
    width: 300px;
    height: 300px;
    margin-right: 16px;
}

nav a:first-of-type{
    margin-left: auto;
}

nav a{
    color: var(--color);
    
    text-decoration: none;
    background-color: var(--box-color);
    padding: 6px 14px;
    border-radius: 0px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover{
    cursor: pointer;
    color: var(--box-color);
    background-color: var(--hover-color);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: var(--box-color);
    /* Nutzt automatische Margins für perfekte Zentrierung */
    margin: 50px auto; 
    margin-bottom: 100px;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    border: 2px solid var(--secundary-color);
    padding: 40px;
}

main h2{
    color: var(--databutton-color);
    font-size: 30px;
    flex: 1;
    margin-top: 0px;
}

.app{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#fileInput{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.databutton{
    width: 100%;
    max-width: 540px;
    padding: 32px 24px;
    background-color: var(--databutton-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color);
    cursor: pointer;
    transition: background-color 1s ease;
}

.databutton:hover{
    background-color: var(--bg-color);
}

.databutton-title{
    color: var(--color);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.databutton-subtitle{
    color: var(--color);
    font-size: 0.95rem;
    opacity: 0.9;
}

.file-list{
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-list:empty{
    display: none;
}

.file-row{
    display: grid;
    grid-template-columns: 1fr 110px 40px;
    align-items: center;
    background-color: var(--bg-color);
    border: 1px solid var(--bg-color);
    border-radius: 4px;
    padding: 8px 16px;
    color: var(--color);
}

.file-name{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-status{
    font-size: 0.9rem;
    text-align: center;
    color: #9be899;
}

.file-check{
    font-size: 1.1rem;
    color: #9be899;
    text-align: center;
}

.uploadbutton{
    width: 100%;
    max-width: 200px;
    padding: 0px 0px;
    background-color: var(--databutton-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color);
    cursor: pointer;
    transition: background-color 1s ease;
}

.uploadbutton:hover{
    background-color: var(--bg-color);
}

.uploadbutton-title{
    color: var(--color);
    font-size: 30px;
    font-family: var(--font-family);
    font-weight: 600;
}

.uploadbutton-subtitle{
    color: var(--color);
    font-size: 0.95rem;
    opacity: 0.9;
}

footer{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    height: 10vh;
    background-color: var(--secundary-color);
    border-top: 1px solid var(--box-color);
}

.footerlogo{     
    position: relative;
    margin-left: 200px;
    width: 200px;
    height: 50px;
}

footer a{
    color: var(--color);
    margin: 0px 20px;
    text-decoration: none;
    font-size: 15px;
}

footer a:hover{
    color: var(--hover-color);
    cursor: pointer;
}

.liste  {
    font-size: 15px;
    font-family: var(--font-family);
    margin: 0px 15px; 
    line-height: 1; 
}

.page-error {
    text-align: center;
}

.gefahr_hinweis{ 
    margin: 400px;
    width: 400px;
    height: 100px;
}