:root {
    --efv-blau: #3c99ce;
    --efv-gelb: #ffe100;
    --ui: #185ca4;
}

@font-face {
    font-family: oswald;
    src: url(../assets/fonts/Oswald-Regular.ttf);
  }

/*Animationen*/

@keyframes separator-width {
    0% {
      width: 0;
    }
    100% {
      width: 80%;
    }
}

@keyframes separator-height {
    0% {
        height: 0;
    }
    100% {
        height: 80%;
    }
}

/*navigation + ham-bar CSS*/

.mobile-header {
    display: flex !important;
    background-color: var(--ui) !important;
    z-index: 9999;
    position: fixed;
    top: 0;
    width: 100%;
}

.ham-menu {
    cursor: pointer;
    margin-top: 15px;
    margin-left: 15px;
}

.ham-bar {
    display: block;
    width: 40px;
    height: 3px;
    margin: 9px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background: rgb(255, 255, 255) !important;
}

.ham-menu.active .ham-bar:nth-child(2) {
    opacity: 0;
}

.ham-menu.active .ham-bar:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
    background: var(--ui) !important;
}

.ham-menu.active .ham-bar:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
    background: var(--ui) !important;
}

.nav-menu {
    display: flex;
    position: fixed;
    left: -100%;
    top: 0;
    padding: 1rem 0;
    margin-top: -3%;
    padding-top: 3rem;
    gap: 0;
    flex-direction: column;
    background-color: rgb(255, 255, 255) !important;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: 0.3s;
}

.nav-menu img {
    width: 5vh;
}

.nav-item {
    margin: 8px 0;
    transition: all .2s ease-in-out;
    text-align: left;
}

.nav-item a {
    color: var(--ui);
    font-weight: 600;
    font-size: 150%;
    text-decoration: none;
    font-family: oswald;
    text-align: left;
    margin-left: 50%;
}

.nav-menu:first-child {
    padding-top: 10vh;
}

.nav-menu.active {
    left: -30%;
    top: 12px;
}

.credit-display {
    
}

.credit-grid {
    display: grid;
    width: 50%;
    margin-left: 50%;
    text-align: left;
    grid-template-columns: 30% 70%;
}

.credit-grid img {
    display: block;
}

#credits {
    font-family: oswald;
    color: var(--ui);
    font-size: 150%;
    font-weight: 600;
    text-align: left;
    margin-right: 5%;
    transform: translateY(-1.5rem);
}

/*main*/

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/*devider*/

hr.devide {
    border-top: 3px solid var(--ui);
    margin: 15%;
    margin-top: 8%;
    margin-bottom: 8%;
}

main {
    overflow-x: hidden;
}

.title {
    width: 100%;
    height: 80vw;
    background-image: url(../assets/img/erdachse.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.profile {
    border-top: 3px solid var(--ui)
}

#profile-picture {
    border-radius: 500px;
    width: 12rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -35vw;
    border: 5px solid var(--ui);
    transform: translateY(-50%);
    background-color: white;
    aspect-ratio: 1/1;
    object-fit: cover;
    
}

.profile-name {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#fullname {
    font-family: oswald;
    color: var(--ui);
    font-size: 250%;
    text-align: center;
    margin-bottom: -7.5vw;
}

#username {
    font-family: oswald;
    color: rgb(90, 90, 90);
    font-size: 100%;
    text-align: center;
}

.user-badges {
    padding: 0.3rem;
    text-align: center;
}

.user-badges h3 {
    margin-bottom: 1rem;
    color: #185ca4;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr)); /* Min. Breite 3rem */
    gap: 0.1rem;  /* Sehr kleiner Abstand */
    justify-items: center;
    width: 80vw;
    margin: 0 auto;
    padding: 0;
}

.badge-item {
    margin: 0;
    padding: 0;
    width: 3rem;     /* Einheitliche Größe */
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-item img {
    max-width: 100%;
    max-height: 100%;
    display: block;  /* Vermeidet kleinen Abstand unter dem Bild */
}

.edit-user {
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: white;
    background-color: var(--ui);
    font-weight: 600;
    font-size: 150%;
    text-decoration: none;
    font-family: oswald;
    text-align: left;
    border-radius: 10px;
    padding: 2%;
    padding-left: 10%;
    padding-right: 10%;
    width: 50vw;
    text-align: center;
}

.level-indicator {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 20vw;
    height: 20vw;
    background-image: url(../assets/img/icons/xp.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.level-indicator p {
    font-family: oswald;
    color: white;
    font-size: 150%;
    text-align: center;
    padding-top: 29%;
}

.progress-wrapper {
    display: none;
    margin-left: auto;
    margin-right: auto;
    width: 65%;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 2vw;
    width: 0%;
    background-color: var(--ui);
    text-align: center;
    line-height: 2vw;
    color: white;
    transition: width 0.3s;
}

.user-data {
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #e1f1ff;
    width: 80vw;
    height: auto;
    border-radius: 5px;
}

.user-data-grid {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: repeat(2, auto);
    column-gap: 2vw;
    padding: 15%;
}

.user-info-item {
    display: block;
    align-items: center;
    padding: 5vw 0;
}

.user-data-grid i {
    font-size: 2rem;
    margin-right: 15vw;
}

.user-data-grid p {
    margin: 0; /* Entfernt den Standardrand von <p> */
    text-align: center;
    font-family: oswald;
    font-size: 125%;
}

.sharing-link {
    display: block;
    margin-left: 5%;
    margin-right: 5%;
}

.sharing-link h3 {
    margin-top: 5%;
    font-family: oswald;
    color: var(--ui);
    font-size: 200%;
    text-align: center;
    margin-bottom: 5%;
    font-weight: 600;
}

.sharing-link p {
    margin-top: 5%;
    font-family: oswald;
    color: black;
    font-size: 100%;
    text-align: center;
}

.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h2 {
    margin-top: 20%;
    font-family: oswald;
    color: var(--ui);
    font-size: 300%;
    text-align: center;
    font-weight: 600;
    margin-bottom: 5%;
}

.verified-banner {
    display: grid;
    margin-left: auto;
    margin-right: auto;
    width: 90vw;
    grid-template-columns: 0.5fr 1.5fr;
    column-gap: 2vw;
}

.verified-banner img {
    width: 4rem;
    transform: translateY(5vh);
}

.verified-banner h4 {
    font-family: oswald;
    color: var(--ui);
    font-size: 150%;
    text-align: left;
    font-weight: 600;
    margin-bottom: -5%;
}

.verified-banner p {
    font-family: oswald;
    color: black;
    font-size: 100%;
    text-align: left;
    font-weight: 500;
}

/* Label und Input Styling */
label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    font-family: oswald;
    text-align: center;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80vw;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: oswald;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: var(--ui);
    color: white;
    text-decoration: none;
    width: 50vw;
    text-align: center;
    box-shadow: none;
}

button:hover {
    background-color: var(--efv-blau);
}

/* Mobile Responsiveness (Media Queries) */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    h2 {
        font-size: 22px;
    }

    input[type="text"],
    input[type="password"],
    input[type="file"],
    button {
        font-size: 14px;
        padding: 12px;
    }
}

.user-profile {
    display: grid;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3vh;
    width: 85vw;
    grid-template-columns: 30% 70%;
}

.userlist h2 {
    font-size: 250%;
}

.user-profile img {
    width: 5rem;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50px;
    border: 3px solid var(--ui);
    margin-top: 2vh;
}

.user-profile h3 {
    font-family: oswald;
    color: var(--ui);
    font-size: 150%;
    font-weight: 600;
}

.user-profile p {
    font-family: oswald;
    color: var(--efv-blau);
    font-size: 110%;
    font-weight: 600;
    margin-top: -5%;
}

footer {
    margin-top: 2rem;
    padding: 2%;
    padding-top: 5%;
    background-color: var(--ui);
}

.footer-top h4 {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-family: oswald;
    font-size: 100%;
    text-align: center;
    margin-top: 15%;
}

.footer_head, .footer_end {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: oswald;
}

.footer_body {
    text-align: center;
    font-family: oswald;
}

.footer_body div li {
    list-style: none;
    margin-top: 4px;
}

.footer_body div hr {
    padding: 0 10%;
    margin: 10px 0;
}

.footer_body div a {
    font-size: 110%;
    line-height: 1.5;
    transition: 0.5s ease-in-out;
    color: #e7e7e7;
}

.footer_end {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.footer_end h4 {
    color: #ffffff;
}
