@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@600&display=swap');

.rangliste{
    -ms-overflow-style: none;  /* IE & Edge */
    scrollbar-width: none;  /* Firefox */
}

.rangliste::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.rangliste {
    height: 100%;
    width: 100%;
    font-family: "Dosis", sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: var(--background-color);
    color: white;
    align-items: top;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: scroll;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    box-sizing: border-box;
}


.rangliste header {
    width: 75%;
    max-width: 20em;
    text-align: left;
    margin-top: 15%;
}

.rangliste #spieler-container {
    width: 90%;
    padding-left: 5%;
    padding-top: 5%;
}

.header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem; /* Abstand zu den Input-Feldern */
}

.back-arrow {
    color: white;
    text-decoration: none;
    position: relative;
    font-size: 2rem;
    margin-right: 0.2rem;
    width: 2rem;
    height: 2rem;
    z-index: 999;
}

.pfeil {
    height: 2rem;
    width: 2rem;
}

.Überschrift {
    padding-top:1.5rem;
    top:0;
    padding-bottom: 1rem;
    border-bottom: 1px solid white;
    color: white;
    position: absolute;
    background-color: var(--background-color);
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    text-align: center;
    font-size: var(--font-size-header);
}

.spieler-container{
    margin-top: 2rem;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8rem;
    gap: 0.6rem;
}

.spieler {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    padding: 1rem;
    border-radius: 1.1rem;
    background-color: var(--line-color);
    height: 1.5rem;
    font-size: 1.1rem;

}

.podest {
    align-items: flex-end;
    display: flex;
    justify-content: flex-start;
    width: calc(85% + 2rem);
    padding-top: 5%;
    margin-bottom:0.6rem;
}

.podest-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 34%;
}

.img-div{
    display: flex;
    align-items: flex-end;
    width: 92%;
    height: 92%;
}

.img-div img{
    width: 100%;
    height: 100%;
}

#spieler1{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background-color: #368ab8;
    height: 5.3rem;
    font-size: 1.1rem;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 0;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 0;
    z-index: 10;
}

.podest-wrapper .spieler-name{
    transform: translate(0, -1rem);
}

#spieler1 .spieler-name{
    transform: translate(0, -1.5rem);
}

.podest-wrapper .spieler-punkte{
    transform: translate(0, -1rem);
}

#spieler1 .spieler-punkte{
    transform: translate(0, -2.1rem);
}

#spieler3 .spieler-name{
    transform: translate(0, -1.5rem);
}

#spieler3 .spieler-punkte{
    transform: translate(0, -1.5rem);
}

#spieler2{
    margin-left: 1rem;
    width: calc(100% - 1rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background-color: #0073b1;
    height: 3.5rem;
    font-size: 1.1rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 0.75rem;
}

#spieler3{
    margin-right: 0.5rem;
    width: calc(100% - 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background-color: #1f6e99;
    height: 3rem;
    font-size: 1.1rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 0.75rem;
}

.ich {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    padding: 1rem;
    border-radius: 1.1rem;
    background-color: var(--line-color);
    border: 3px solid #ffffff;
    height: 1.5rem;
    font-size: 1.1rem;
}



.spieler-name {
    position: relative;
    text-align: left;
}

.spieler-platz{
    position: relative;
    text-align: right;
    margin-right:calc(1rem + 50% - 1rem);
}

.scroll-button {
    padding: 0.4rem 1rem;
    position: fixed;
    bottom: 6.5rem;
    right: 1rem;
    height: 2.5rem;
    background-color: #1b323f;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    backdrop-filter: blur(5px);
    text-align: center;
    transition: opacity 0.3sease;
    opacity: 0.9;
}


.spieler-platz-img{
    width: 2.3rem;
    transform: translate(-6vw, -1.6rem);
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
}



