*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
 }
 header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 99;
}
#not-User {
    position: absolute;
    right: 250px;
}
header h4{
    font-size: 1em;
    color:grey;
    font-weight: 200;
    white-space: nowrap;

}
.navigation {
    display: flex;
    align-items: center;
}
.navigation a {
    position: relative;
    font-size: 1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navigation .btnLogin-popup{
    width: 130px;
    height: 50px;
    background-color: #4589FF;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    transition: .5s;
    margin-left: 40px;
}
.navigation .btnLogin-popup a {
    margin: 0;
    color: #fff;
    text-decoration: none;
}
.navigation .btnLogin-popup:hover{
    background: hwb(218 12% 52%);
    color: #fff;
}
 body{
    display: flex;justify-content:center ;
    align-items: center;
    min-height: 100vh;
}
.wrapper{
    position: relative;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: height .2s ease;

}

.wrapper .form-box-login{
    width: 100%;
    padding: 40px;
}
.form-box-login h2{
    font-size: 2em;
    color: #162938;
    text-align: center;
}
.input-box{
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #162938;
    margin: 30px 0;
}
.input-box input:focus~label,
.input-box input:valid~label{
    top: -5px;
}
.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #162938;
    font-weight: 600;
    padding : 0 35px 0 5px;
}
.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: grey;
    line-height: 57px;
}
.input-box label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: grey;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}
.input-box input:focus~label,
.input-box input:valid~label{
    top: -5px;
}

.remember-forgot{
    font-size: .9em;
    color: grey;
    font-weight: 500;
   
    display: flex;
    justify-content: space-between;
}
.remember-forgot label input{
    accent-color: #162938;
    margin-right: 3px;
}


.btn{
   margin-top: 80px;
  
    width: 100%;
   
    display: flex;
    justify-content: space-around;

}
#log{
    width: 130px;
    height: 50px;
    background: #4589FF;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: .5s;
}
#log:hover{
    background: hwb(218 12% 52%);
    color: #fff;
}
#guest{
    width: 130px;
    height: 50px;
   
    border: none;
    outline: none;
    color: black;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: .5s;
}
.btn a{
    text-decoration: none;
    color: grey;
    font-weight: 500;
}
.img-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}
.img-logo img {
    width: 100px;
    height: auto;
}
@media screen and (max-width: 480px) {
    .img-logo {
        position: fixed;
        top: 20px;
        left: 20px;
    }

    .img-logo img {
        width: 40px;
        height: auto;
    }
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
    header {
        padding: 20px;
        justify-content: center;
    }

    .navigation .btnLogin-popup {
        margin-left: 20px;
    }

    .wrapper {
        width: 90%;
        max-width: 400px;
        margin: 20px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        min-height: 100vh;
        gap: 10px;
        padding-top: 80px;
    }

    header {
        padding: 10px;
        justify-content: center;
    }

    .navigation .btnLogin-popup {
        width: 100px;
        height: 40px;
        font-size: 0.9em;
        margin-left: 0;
    }

    .wrapper {
        width: 90%;
        height: auto;
        min-height: 400px;
        margin: 0;
        padding: 10px;
    }

    .wrapper .form-box-login {
        padding: 20px;
    }

    .form-box-login h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .input-box {
        height: 45px;
        margin: 20px 0;
    }

    .input-box input {
        font-size: 0.9em;
    }

    .input-box label {
        font-size: 0.9em;
    }

    .remember-forgot {
        font-size: 0.8em;
    }

    .btn {
        margin-top: 40px;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    #log, #guest {
        width: 100%;
        max-width: 200px;
        height: 40px;
        font-size: 1em;
    }
}

@media screen and (max-height: 600px) {
    .wrapper {
        height: auto;
        min-height: 350px;
        margin: 60px 0 20px 0;
    }

    .btn {
        margin-top: 30px;
    }
}

#message-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 300px;
    right: auto;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
   
   
}
.end{
    color: #fff;
    font-size: 1.1em;
    font-weight: 200;
    text-align: center;
    display: flex;
    justify-content: center;
}
.privacy{
    color: #fff;
    font-size: 1em;
    font-weight: 200;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-right: 20px;
}
.privacy a{
    color: grey;
    font-size: 1em;
    font-weight: 200;
    text-decoration: none;
    margin-left: 5px;
}
.legal-notice{
    color: grey;
    font-size: 1em;
    font-weight: 300;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.legal-notice a{
    color: grey;
    font-size: 1em;
    font-weight: 200;
    text-decoration: none;
    margin-left: 5px;
}
#msgBox{
    width: 350px;
    height: 40px;
    background-color: transparent;
    color: forestgreen;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-left: 445px;
}
#message-popup {
    display: none;
    position: fixed;
    top: 75px;
    right: 630px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.error {
    background-color: #ff4444;
}

.success {
    background-color: #44b544;
}
/* Responsive Design für kleine Bildschirme */
@media screen and (max-width: 768px) {
    /* Header-Inhalte auf neue Position bringen */
    #not-User {
        position: absolute;
        bottom: 60px; /* 5px höher als vorher */
        left: 40%; /* 10px nach rechts verschoben */
        transform: translateX(-50%); /* Zentriert */
        font-size: 1em;
        color: grey;
        text-align: center;
        margin-bottom: 10px; /* Abstand nach unten */
        z-index: 10;
        display: inline-block;
    }

    .navigation .btnLogin-popup {
        position: fixed;
        bottom: 60px; /* 15px höher als vorher */
        left: 55%; /* 10px nach rechts verschoben */
        transform: translateX(-50%); /* Zentriert */
        width: 100px; /* Kleinerer Button */
        height: 40px;
        font-size: 0.9em;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
        border-radius: 6px;
        margin-right: 20px; /* Button nach rechts verschoben */
    }

    .navigation .btnLogin-popup a {
        text-decoration: none;
        color: #fff;
        display: block; /* Damit der Text vollständig sichtbar ist */
        text-align: center; /* Zentriert */
        width: 100%; /* Füllt den Button aus */
        font-size: 0.8em; /* Kleinere Schriftgröße */
        line-height: 40px; /* Passt die vertikale Zentrierung an */
    }
    .navigation .btnLogin-popup {
        background-color: #4589FF;
        border: 2px solid #fff;
        outline: none;
        color: #fff;
        font-size: 1.1em;
        font-weight: 500;
        cursor: pointer;
        transition: 0.5s;
    }
    .navigation .btnLogin-popup:hover {
        background: hwb(218 12% 52%);
        color: #fff;
    }
    /* Responsives Login-Formular */
    .wrapper {
        width: 90%; /* Breite reduziert */
        margin: 20px auto;
        height: auto; /* Höhe flexibel */
    }
    .form-box-login {
        padding: 20px;
    }
    .form-box-login h2 {
        font-size: 1.5em; /* Kleinere Schriftgröße */
    }
    .input-box {
        height: 45px;
        margin: 20px 0;
    }

    .input-box input {
        font-size: 0.9em;
        padding: 0 30px 0 5px;
    }
    .input-box .icon {
        font-size: 1em;
    }
    .btn {
        margin-top: 30px;
        flex-direction: column;
        gap: 10px; /* Abstand zwischen den Buttons */
    }
    #log, #guest {
        width: 100%; /* Breite 100% */
    }
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px 10px;
    }
    .end {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .privacy, .legal-notice {
        margin: 0 10px;
    }
}
