/*---Header---*/
header {
    background-image: linear-gradient(to right,#488ed9,#8ca0b8);
    color: white;
    padding: 20px;
    width: 100%-20px;
    margin-bottom: 2%;
    text-align: center;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 2rem; /* Beispiel Standard Schriftgröße */
}

.logo {
    width: 120px;
    height: 120px;
    background-image: url('../images/logo_white.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/*Responsive for smaller screens (mobile phone)*/
@media (max-width: 650px) {
    header {
        padding: 10px;
        font-size: 1.2rem;
    }
    
    header h1 {
        font-size: 1.9rem !important; /* smaller size for h1 */ 
        margin: 0 !important;
    }
    
    header b {
        font-weight: bold;
        font-size: inherit !important;
    }

    .logo {
        width: 60px;
        height: 60px;
        left: 5px;
    }
}


/*---Footer---*/
footer {
    text-align: center;
    padding: 10px;
    background-image: linear-gradient(to right,#488ed9,#8ca0b8);
    color: white;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/*---Sticky footer fix---
Container uses flex column to fill full viewport height; 
empty spacer grows to push footer to bottom (sticky footer)*/
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

}
.spacer {
  flex-grow: 1;
}


/*---Content---*/
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    text-align: center;
}

main {
    padding: 20px;
}


/*Text*/
h1 {
    margin: 0;
    font-size: 60px;
    font-weight: 700;
}

h2 {
    font-size: 30px;
}

p {
    font-size: 18px;
}

.link {
    margin-top: 10%;
    display: inline-block;
}


/*---Align items---*/
.totheright {
    display: flex;
    justify-content: flex-end;
}
.totheleft {
    display: flex;
    justify-content: flex-start;
}


/*---User input---*/
.userinput {
    margin: 2% auto;
    background-color: white ;
    border: 2vh solid white;
    border-radius: 1vh;
    max-width: 40%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/*For smaller screens (mobile phone)*/
@media (max-width: 600px) {
    .userinput {
        max-width: 80%;
    }
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-group label {
    width: 30%;
    text-align: right;
    margin-right: 2%;
}

.input-group input {
    flex: 1;
    max-width: 200px;
    min-width: 100px;
}

input[type="number"]{
    max-width: 10%;
}


/*---Buttons---*/
.button {
    font-size: 18px;
    max-width: fit-content;
}

.button:hover {
    background-color: #488ed9;
}

.login-button {
    background-color: #FFCC00;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: black;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 2%;
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
}

.login-button:hover {
    background-color: #f7e497;
}

.close-button {   /*×*/
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.close-button:hover,
.close-button:focus {
color: black;
text-decoration: none;
cursor: pointer;
}



/*---Table---*/
.table-wrapper {
  width: 100%;
  overflow-x: auto; /*Enable scroll if needed*/
  -webkit-overflow-scrolling: touch; /*Smoother scroll for iOS*/
}

table {
    width: 70%;
    border-collapse: collapse;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
}

th {
    background-color: #FFCC00;
    font-size: 20px;
    border: 1px solid black;
    padding: 8px;
}

td{
    font-size: 20px;
    border: 1px solid black;
    padding: 8px;
}


/*---Modal---*/
.modal {
    display: flex;
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /*Enable scroll if needed*/
    background-color: rgba(0, 0, 0, 0.5); 
}
  
.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border: 2vh solid white;
    border-radius: 1vh;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}