* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fafafa;
    font-family: "Roboto", sans-serif;
    font-style: normal;
    scrollbar-width: thin;
}

.material-icon {
    user-select: none;
}

a {
    text-decoration: none;
    color: unset;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
    border-bottom: 1px solid #DADADA;
}

header #logo {
    display: flex;
    gap: 13px;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: #3561AF;
}

header #logo img {
    height: 30px;
}

#login_btn {
    font-size: 16px;
    font-weight: 400;
    color: #7C858D;
}

#content {
    max-width: 1040px;
    padding: 50px 20px;
    width: 100%;
}

#content h1 {
    font-weight: 600;
    font-size: 28px;
    color: #272D32;
    text-align: center;
}

#progress {
    margin-top: 50px;
}

#progress #text {
    display: flex;
    justify-content: space-between;
}

#progress #text h3 {
    font-size: 16px;
    font-weight: 500;
    color: #102435;
}

#progress #progressBar {
    height: 15px;
    background-color: #E7ECEE;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

#progress #progressBar #thump {
    position: absolute;
    height: 100%;
    left: 0;
    background-color: #158FFF;
    border-radius: 8px;
    animation: loadBar 1.5s ease-in-out;
    transform-origin: left;
}

#progress #progressBar #thump.loaded {
    animation: none;
}

@keyframes loadBar {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(100%);
    }
}

#lists {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-top: 70px;
    gap: 15px;
}

.list {
    height: 100%;
    width: 100%;
}

.list_headline {
    font-size: 22px;
    font-weight: 500;
    color: #102435;
    margin-bottom: 30px;
}

#rangliste {
    width: 700px;
}

#rangliste .list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    background-color: #ffffff;
    border-radius: 7px;
    padding: 0 25px 0 30px;
    margin-bottom: 5px;
}

#rangliste .list-item div {
    display: flex;
    align-items: center;
}

#rangliste .list-item h2 {
    font-size: 20px;
    font-weight: 500;
    color: #313131;
    margin-right: 30px;
}

#rangliste .list-item h3 {
    font-size: 16px;
    font-weight: 400;
    color: #313131;
}

#rangliste .list-item .percent {
    font-size: 14px;
    font-weight: 300;
    color: #6D869C;
}

#rangliste .list-item .earned {
    font-size: 16px;
    font-weight: 400;
    color: #313131;
    margin: 0 0 0 30px;
    width: 60px;
    text-align: center;
}

#rangliste .list-item .mobile {
    display: none;
}

#rangliste .list-item .material-icon {
    font-size: 26px;
}

#wochenplan {
    width: 285px;
    flex-shrink: 0;
}

#wochenplan .list {
    background-color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
}

#wochenplan .week {
    height: 70px;
    margin-bottom: 35px;
}

#wochenplan .week div {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 9px;
}

#wochenplan .week .name {
    font-size: 14px;
    font-weight: 300;
    color: #474747;
}

#wochenplan .week .date {
    font-size: 13px;
    font-weight: 300;
    color: #6D869C;
}

#wochenplan .week .kurs {
    height: 45px;
    background-color: #FAFAFA;
    border-radius: 7px;
    padding-left: 15px;
    font-size: 18px;
    font-weight: 400;
    color: #313131;
}

#wochenplan .week.this .kurs {
    background-color: #338AE5;
    color: #fff;
}

#viewFull {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #2C8DE5;
    text-decoration: underline;
    cursor: pointer;
}

#viewFull:active {
    color: #0658a5;
}

/************ Kompletter Wochenplan **************/

#overlay {
    background-color: rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    /*backdrop-filter: blur(10px);*/
    opacity: 0;
    display: none;
    transition: all .3s;
}

#wochenplan_komplett {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 23px;
    border-radius: 13px;
    width: 100%;
    height: 100%;
    max-width: 700px;
    max-height: 830px;
    opacity: 0;
    display: none;
    transition: opacity .3s;
}

#wochenplan_komplett .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#wochenplan_komplett .closeBtn {
    font-size: 30px;
    color: #313131;
    padding: 1px;
    background-color: #EFEFEF;
    border-radius: 50%;
    cursor: pointer;
    transition: all .05s;
}

#wochenplan_komplett h2 {
    margin-bottom: 0;
}

#wochenplan_komplett .closeBtn:active {
    transform: scale(0.9)
}

#wochenplan_komplett #table {
    border-radius: 10px;
    border: 1px solid #DADADA;
    height: calc(100% - 50px);
    margin-top: 20px;
    overflow: auto;
    scrollbar-width: none;
}

#wochenplan_komplett #table .row {
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    color: #313131;
    padding: 0 10px;
    gap: 30px;
}

#wochenplan_komplett #table .row.this {
    background-color: #338AE5 !important;
    color: #fff;
}

#wochenplan_komplett #table .row:nth-child(even) {
    background-color: #fafafa;
}

#wochenplan_komplett #table .name {
    width: 180px;
}

#wochenplan_komplett #table hr {
    width: 100%;
    height: 1px;
    border: 0;
    background-color: #9e9e9e;
}

@media only screen and (max-width: 470px) {
    #rangliste .list-item {
        position: relative;
    }
    #rangliste .list-item h3 {
        position: absolute;
        left: 70px;
        top: 9px;
    }  
    #rangliste .list-item .dt .percent, 
    #rangliste .list-item .dt .earned {
        display: none;
    } 
    #rangliste .list-item .mobile {
        margin: 0;
        text-align: left;
        font-size: 14px;
        font-weight: 300;
        color: #6D869C;
        margin-top: 19px;
        width: unset;
        display: block;
    }
    #rangliste {
        width: calc(100% - 300px);
    }
}

@media only screen and (max-width: 770px) {
    #lists {
        flex-direction: column-reverse;

    }
    #rangliste, #wochenplan {
        width: 100%;
    }
    #wochenplan_komplett {
        border-radius: 0;
        max-height: 100%;
    }
    #mobile_add {
        display: block !important;
    }
}

@media only screen and (max-width: 455px) {
    #wochenplan_komplett #table .date {
        flex-shrink: 0;
        width: 100px;
    }
    #wochenplan_komplett {
        padding: 12px;
    }
}


.bottomText {
    font-size: 16px;
    text-align: center;
    font-weight: 400;
    color: #6D869C;
    margin: 4px auto 0 auto;
    display: block;
}

#impressum {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin-top: 50px;
}


/**************** Admin *******************/

#admin .list_headline {
    margin-bottom: 20px;
}

#admin #wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 50px;
}

#admin #add {
    width: 485px;
    margin-bottom: 28px;
}

#admin .input {
    width: 100%;
    margin-bottom: 12px;
    position: relative;
}

#admin #add label {
    font-size: 16px;
    font-weight: 400;
    color: #121417;
}

#admin .input input, #admin .input select {
    width: 100%;
    height: 55px;
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 0;
    outline: 0;
    margin-top: 8px;
    padding-left: 22px;
    font-size: 16px;
    color: #6D869C;
}

#admin .arrow_down {
    top: 43px !important;
    font-size: 26px;
}

#admin .input select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#admin .input input::-webkit-inner-spin-button,
#admin .input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#admin .input input {
    -moz-appearance: textfield;
    appearance: textfield;
    padding-right: 40px;
}

#admin .input-icon {
    position: absolute;
    right: 20px;
    top: 46px;
    color: #6D869C;
}

#admin .wrapper {
    display: flex;
    gap: 15px;
    align-items: end;
}

#admin #submit_btn {
    width: 145px;
    height: 55px;
    background-color: #338AE5;
    border-radius: 12px;
    border: 0;
    font-family: "Lexend", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    margin-bottom: 12px;
    flex-shrink: 0;
}


#admin #ranking {
    width: 485px;
}

#admin #ranking .kurs {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
    height: 45px;
    align-items: center;
    border-bottom: 1px solid #E5E8EB;
}

#admin #ranking .kurs h3 ,#admin #ranking .kurs p {
    font-size: 16px;
    font-weight: 400;
    color: #313131;
}

#admin #ranking .kurs div {
    display: flex;
    gap: 20px;
}

#admin .card {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
}

#admin #settings {
    width: 485px;
}

#admin #settings .card {
    padding: 18px;
    margin-bottom: 30px;
}

#admin .setting div {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 2px;
}

#admin .setting .edit_btn {
    font-size: 18px;
    padding: 2px;
    color: #313131;
    background-color: #EFEFEF;
    border-radius: 5px;
    cursor: pointer;
}

#admin .setting .name {
    font-size: 16px;
    font-weight: 400;
    color: #607385;
}

#admin .setting .current {
    font-size: 14px;
    color: #313131;
}

#earnings .einnahme {
    display: flex;
    justify-content: space-between;
    height: 52px;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #E5E8EB;
}

#earnings .einnahme:last-child {
    border-bottom: none;
}

#earnings .einnahme .mobile p {
    display: none;
    margin-top: 2px;
    font-size: 13px;
}

#earnings .einnahme h3 {
    font-size: 16px;
    font-weight: 400;
    color: #313131;
    width: 180px;
}

#earnings .einnahme .betrag, #earnings .einnahme .datum {
    font-size: 14px;
    font-weight: 400;
    color: #6D869C;
}

#earnings .einnahme .buttons {
    display: flex;
    gap: 6px;
}

#earnings .einnahme .btn {
    font-size: 20px;
    padding: 3px;
    border-radius: 7px;
    background-color: #EFEFEF;
    cursor: pointer;
}

#admin #earnings .card {
    max-height: 425px;
    overflow: auto;
    scrollbar-width: none;
}

/**** Popup Form ****/

#admin #overlay {
    backdrop-filter: blur(5px);
}

.popupForm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    z-index: 1001;
    opacity: 0;
    display: none;
    transition: all .3s;
}

.popupForm .head {
    display: flex;
    justify-content: space-between;
}

.popupForm .close_btn {
    font-size: 24px;
    padding: 2px;
    background-color: #EFEFEF;
    height: 26px;
    width: 26px;
    display: flex;
    align-items: center;
    border-radius: 7px;
    cursor: pointer;
    color: #313131;
}

#zielForm {
    max-width: 330px;
    width: 100%;
}

#zielForm input {
    height: 40px;
    border: 0;
    outline: 0;
    background-color: #fafafa;
    border-radius: 7px;
    padding-left: 10px;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
    margin-right: 5px;
}

#zielForm input:not(#zielForm #save_btn) {
    width: calc(100% - 116px);
} 

#zielForm input::-webkit-inner-spin-button,
#zielForm input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#zielForm #save_btn {
    background-color: #338AE5;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    padding: 0 15px;
}

#editForm {
    max-width: 480px;
    width: 100%;
}

#editForm .list_headline {
	margin-bottom: 42px;	
}

#editForm .input input, #editForm .input select {
    background-color: #fafafa;
    font-family: "Roboto", sans-serif;
}

#editForm #cancel_btn {
    height: 55px;
    width: 145px;
    background-color: #FAFAFA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #606060;
    font-family: "Lexend", sans-serif;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 12px;
}

@media only screen and (max-width: 1030px) {
    #admin #wrapper {
        flex-direction: column;
    }
    #sub2 {
        display: flex;
        flex-direction: column-reverse;
        margin-top: 40px;
        gap: 40px;
    }
    #admin #settings,
    #admin #ranking,
    #admin #add {
        width: 100%;
    }
    #admin #settings .card {
        margin-bottom: 0px;
    }
}

@media only screen and (max-width: 485px) {   
    #editForm {
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 475px) {   
    #earnings .einnahme .mobile p {
        display: block;
    } 
    #earnings .einnahme .betrag, 
    #earnings .einnahme .datum:not(#earnings .einnahme .mobile p) {
        display: none;
    }
    #earnings .einnahme,
    #admin #ranking .kurs {
        padding: 0 10px;
    }
    #admin #ranking .kurs div {
        gap: 10px;
    }
}

/*** Login ***/

#login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100svh;
}

#login form {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 475px;
}

#login form h1 {
    font-size: 28px;
    font-weight: 600;
    color: #454545;
    text-align: center;
    text-transform: uppercase;
    margin: 3px 0 50px 0;
    letter-spacing: 2px;
}

#login form label {
    font-size: 16px;
    font-weight: 400;
    color: #121417;
    margin-bottom: 4px;
}

#login form input {
    width: 100%;
    height: 48px;
    background-color: #F1F2F2;
    border-radius: 8px;
    border: 0;
    outline: 0;
    padding: 0 20px;
    font-size: 16px;
    color: #627383;
    margin-bottom: 22px;
    flex-shrink: 0;
}

#login form #submit {
    background-color: #338AE5;
    color: #fff;
    margin-top: 38px;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 600;
    font-family: "Lexend", sans-serif;
    cursor: pointer;
}

#login form a {
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    color: #6D869C;
    margin-top: 30px;
}

@media only screen and (max-width: 550px) {   
    #login form {
        height: 100%;
        justify-content: center;
        max-width: unset;
        border-radius: 0;
    }
}

#mobile_add {
    display: none;
}

#mobile_banner {
    display: none;
    position: fixed;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 998;
    width: min-content;
}

#add_wrap {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

@media only screen and (max-width:1360px) {   
    #add_wrap .add:nth-child(1) {
        display: none;
    }
}

@media only screen and (max-width:1220px) {   
    #add_wrap .add {
        display: none;
    }
}

@media only screen and (max-width:650px) {   
    #mobile_banner {
        display: block;
    }
}

/*************** Datenschutz ***************/

#datenschutz {
    padding: 50px 5%;
    text-align: left;
    font-weight: 300;
}

#datenschutz h1 {
    font-size: 36px;
    font-weight: 400;
    margin: 50px 0 30px 0;
    overflow-wrap: break-word;
}

#datenschutz h2 {
    font-size: 28px;
    font-weight: 400;
    margin: 30px 0 20px 0;
}

#datenschutz h3 {
    font-size: 22px;
    font-weight: 400;
    margin: 20px 0 10px 0;
}

#datenschutz p {
    padding-left: 10px;
    margin: 12px 0;
    color: #474747;
}

#datenschutz strong {
    font-weight: 500;
    color: #313131;
}

#datenschutz ul {
    padding-left: 35px;
    margin: 15px 0;
}

#datenschutz li {
    margin-bottom: 8px;
}

#datenschutz a {
    color: #338AE5;
    text-decoration: underline;
    overflow-wrap: break-word;
}