@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@600&display=swap');

html,body {
    width: 100%;
    font-family: "Dosis", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Inhalte am unteren Rand ausrichten */
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

html {
    height: 100%;
}

.startseite{
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#frame{
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}



.top-bar-content{
    display:none;
}




.top-bar {
    position: fixed;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    background-color: var(--background-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    z-index: 1000;
    transition: height 0.3s ease;
}

.top-bar-icons {
    display: flex;
    justify-content: space-between;
    width: 90%;
}

/* Keine Umrandung im Standardzustand */
.top-bar-content {
    scale: 0.3;
    transform-origin: top center;
    transition:scale 0.15s cubic-bezier(0.24, 0.39, 0.64, 0.95);
    display: none;
    width: 100%;
    background-color: var(--background-color);
    color: white;
    text-align: left;
    border-radius: 12px;
    padding: 10px;
    padding-bottom: 15px;
    padding-top: 8px;
    margin-top: 10px;
    border: 3px solid var(--line-color);
}

.streak-button {
    display: flex;
    align-items: center;
    background-color: var(--line-color);
    border: none;
    padding: 5px;
    border-radius: 5px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}


.streak-button:active {
    transform: scale(0.95);
}


.streak-icon{
    width: 20px;
}


.streak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.streak-header p {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}



.XP-Pfad-Container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px; /* Abstand nach oben */
    width: 100%; /* Breite der Top-Bar */
}

/* XP-Pfad-Button */
.xp-pfad-button {
    background-color: var(--background-color);
    color: white;
    text-decoration: none;
    border: 2px solid var(--line-color);
    border-radius: 10px;
    padding-top: 25px;
    padding: 10px 10px;
    font-size: 1.2em;
    font-family: "Dosis", sans-serif;
    text-align: left;
    width: 90%; /* Breite anpassen */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Interaktionsstil für den Button */
.xp-pfad-button:hover {
    background-color: var(--line-color);
}

.xp-pfad-button:active {
    background-color: #e48d45;
    box-shadow: none;
    transform: translateY(4px);
}





.stat {
    display: flex;
    align-items: center;
    color: white;
    font-family: "Dosis", sans-serif;
}

.streak-img {
    width: 32px;
    height: 32px;
    margin-right: 4px;
}

.coins-img {
    width: 27px;
    height: 27px;
    margin-right: 4px;
}

.xp-img {
    width: 30px;
    height: 30px;
    margin-right: 4px;
}

.notifications-img {
    width: 27px;
    height: 27px;
    margin-right: 4px;
}

.stat-value {
    font-size: 1.4em;
}








.week-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 28px;
    color: white;
}

.week-calendar .days {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9em;
}

.week-calendar .day {
    flex: 1;
    text-align: center;
    font-size: 1.1em;
    align-items: center;
    justify-content: center;
    display: flex;
}

.week-calendar .day-row {
    display: flex;
    width: 100%;
    margin-top: 5px;
    background-color: var(--line-color);
    border-radius: 3rem;
}

.week-calendar .day div {
    border-radius: 3rem;
    padding: 0.15rem;
    font-size: 0.95em;
    color: white;
    width: 100%;
}




.week-calendar .day div.current-day {
    background-color: #4f7d95;
    color: #ffffff;
    font-weight: bold;
}

.week-calendar .day div.streak-done.first {
    border-radius: 0;
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.8), rgba(190, 90, 40, 0.8)); /* Braun -> Dunkles Orange-Braun */
    color: white;
    font-weight: bold;
}

.week-calendar .day div.streak-done.second {
    border-radius: 0;
    background: linear-gradient(90deg, rgba(190, 90, 40, 0.8), rgba(215, 110, 45, 0.8)); /* Dunkles Orange-Braun -> Warmes Orange */
    color: white;
    font-weight: bold;
}

.week-calendar .day div.streak-done.third {
    border-radius: 0;
    background: linear-gradient(90deg, rgba(215, 110, 45, 0.8), rgba(235, 130, 50, 0.8)); /* Warmes Orange -> Sattes Orange */
    color: white;
    font-weight: bold;
}

.week-calendar .day div.streak-done.fourth {
    border-radius: 0;
    background: linear-gradient(90deg, rgba(235, 130, 50, 0.8), rgba(245, 100, 40, 0.8)); /* Sattes Orange -> Kräftiges Orange-Rot */
    color: white;
    font-weight: bold;
}

.week-calendar .day div.streak-done.second.fifth {
    border-radius: 0;
    background: rgba(245, 100, 40, 0.8); /* Endstufe in Orange-Rot */
    color: white;
    font-weight: bold;
}

#end{
    border-top-right-radius: 3rem !important;
    border-bottom-right-radius: 3rem !important;
}

#start{
    border-top-left-radius: 3rem !important;
    border-bottom-left-radius: 3rem !important;
}

#start-end{
    border-radius: 3rem !important;
}

#streak-freeze-start{
    border-top-left-radius: 3rem !important;
    border-bottom-left-radius: 3rem !important;
}

#streak-freeze-end{
    border-top-right-radius: 3rem !important;
    border-bottom-right-radius: 3rem !important;
}

#streak-freeze-start-end{
    border-radius: 3rem !important;
}

.week-calendar .day #streak-freeze, .week-calendar .day #streak-freeze-start, .week-calendar .day #streak-freeze-end, .week-calendar .day #streak-freeze-start-end {
    border-radius:0;
    left: 0;
    width: 100%;
    position: relative;
    color: var(--line-color);
    font-weight: bold;
    align-items: center;
    justify-content: center;
    display: flex;
    z-index: 1; /* Text bleibt über dem Hintergrund */
}

.week-calendar .day #streak-freeze::before, .week-calendar .day #streak-freeze-start::before, .week-calendar .day #streak-freeze-end::before, .week-calendar .day #streak-freeze-start-end::before {
    content: "";
    position: absolute;
    top: -35%; /* Falls es über den Rand hinausragen soll */
    bottom: -35%;
    left:10%;
    right: 10%;
    background-image: url('ice.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120% auto;
    transform: rotate(45deg); /* Hier kannst du den Winkel anpassen */
    z-index: -1; /* Bild bleibt im Hintergrund */
}

























.nav-bar {
    bottom:0;
    z-index: 10001;
    position: fixed;
    width: 100vw;
    background-color: var(--background-color);
    display: flex;
    justify-content: space-around;
    padding: 1em 0;
    padding-bottom: 2em;
    border-top: 3px solid var(--line-color);
    border-top-left-radius: 5px; 
    border-top-right-radius: 5px;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.3);
}

.nav-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3em;
    height: 2.3em;
    background-color: var(--background-color);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    transition: scale 0.1s ease-in-out;
    transition: width 0.5s ease-in-out;
}

.nav-button img {
    position: relative;
    width: 2.3em;
    height: 2.3em;
    color: white;
    scale: 1;
    transition: scale 0.12s cubic-bezier(0.42, 0, 0.52, 1.87);
}
/*
.nav-button:active{
    scale: 0.75 !important;
}*/

.nav-button::before {
    content: "";
    position: absolute;
    top: -1rem;
    bottom: -1rem;
    left: -1rem;
    right: -1rem;
}




.notification-dot {
    display: none;
    position: absolute;
    top: -0.4rem; /* Abstand von oben */
    right: -8px; /* Abstand von rechts */
    background-color: rgb(237, 73, 73); /* Hintergrundfarbe */
    border-radius: 1.5rem; /* Rundung für den Punkt */
    padding: 0.2rem 0.45rem; /* Seitenabstand */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Optionaler Schatten */
    color: white; /* Schriftfarbe */
    font-size: 0.9rem; /* Schriftgröße */
    font-weight: bold; /* Fettschrift */
    text-align: center; /* Textausrichtung */
    display: flex; /* Flexbox für Zentrierung */
    justify-content: center; /* Horizontale Zentrierung */
    align-items: center; /* Vertikale Zentrierung */
    min-width: 1.1rem; /* Mindestbreite für Ein-Zeichen-Zahlen */
    height: 1.6rem; /* Feste Höhe */
    line-height: 1.5rem; /* Setzt die Zeilenhöhe auf die Schriftgröße */
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    vertical-align: middle; /* Zusätzliche Sicherstellung */
}

.Fehler-container {
    width: 100%;
    position: relative; /* Wichtiger Bezugspunkt für die roten Punkte */
    display: inline-block; /* Für korrekte Positionierung der Elemente */
}

/* Entfernt Umrandung bei Fokus */
input {
    outline: none !important;
}


/* Deaktiviert Autofill-Hintergrund in Chrome */
/* Entfernt den weißen Hintergrund bei Autofill */
input:-webkit-autofill {
    background-color: transparent !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: rgb(255, 255, 255) !important; /* Setzt die Schriftfarbe */
    transition: background-color 5000s ease-in-out 0s; /* Verzögert das Styling */
}



.error-message{
    width:90%;
    margin-left:5%;
}

.nointernet{
    display:flex;
    justify-content: center;
    align-items: center;
}

.internet-text{
    color:#d8e1e6;
    font-size: 1.2rem;
    margin-left:0.5rem;
}

.internet-img{
    width:2rem;
    height: 2rem;
    transition: scale 0.15s cubic-bezier(0.42, 0, 0.23, 2.12);
}

.login-button{
    padding:0.7rem;
    background-color: rgb(27, 143, 79);
    box-shadow: 0px 6px 0px 0px rgb(21, 112, 62);
    width: calc(70% - 1.4rem);
    margin-left:15%;
    border-radius: 2rem;
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.6rem;
}

.login-container{
    padding:0.3rem 0rem;
    display:flex;
    flex-direction: column;
}

.login-button-text{
    font-size: 1.2rem;
    color: #d1dfe5;
    text-align: center;
    padding-bottom:0.5rem;
}

#fehler{
    padding-left:calc(50% - 2.85rem);
    width: 100%;
    display:flex;
    align-items: center;
    background-color: var(--background-block-color);
    box-shadow: 0px 6px 10px 1px rgba(0,0,0,0.2);
    text-align: left;
}

.repeat{
    width:3rem;
    height:3rem;
    margin-top:-0.7rem;
    margin-bottom: -0.7rem;
    padding-left: 0.3rem;
    transform: rotate(60deg);
}

.pfad{
    color: white;
    border: none;
    border-radius: 2rem;
    border-radius: 1em;
    font-size: 1.6em;
    width: 100%;
    height: 43vw;
    max-height: 30vh;
    font-family: "Dosis", sans-serif;
    position: relative;
}

.pfad-anzeige{
    width:100%;
    border-radius: 1em;
    height: 100%;
    opacity: 0.9;
}

.pfad-absolute{
    z-index:100;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 3.2rem);
    height: calc(100% - 2.5rem);
    border-radius: 2rem;
    border-radius: 1em;
    padding:1rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 1.5rem;
}

.pfad-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.2rem;
    padding-top:0.8rem;
    height: 3rem;

}

.pfad-header a{
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.231);
}

.arrow{
    width: 2.5rem;
    height: 2.5rem;
    transform: rotate(180deg);
}

.pfad-start{
    background-color: var(--button-blue);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 1.3rem;
    font-size: 1.6rem;
    font-family: "Dosis", sans-serif;
    box-shadow: 0px 6px 0px 0px var(--button-shadow);
}

.quiz{
    width: 90vw;
    border-radius: 2rem;
    background-color: var(--background-block-color);
    position: relative;
    object-fit: contain;
    flex: 1;
    flex-direction: column;
    display: flex;
    object-fit: cover;
    min-height: 0;
}



.quiz-background{
    width:100%;
    height:100%;
    border-radius: 2rem;
    object-fit: cover;
}

.quiz-absolute{
    display: flex;
    align-items: flex-end;
    position:absolute;
    height: calc(100% - 1.6rem);
    width: 90%;
    top: 0;
    padding-left: 1.6rem;
}

.quiz-button{
    background-color: var(--button-blue);
    color: white;
    border: none;
    padding: 1.25rem 2.4rem;
    border-radius: 1.3rem;
    font-size: 1.65rem;
    font-family: "Dosis", sans-serif;
    box-shadow: 0px 6px 0px 0px var(--button-shadow);
    z-index:999;
    position:relative;
    transition: opacity 0.2s ease;
}

.quiz-button-absolute{
    position:relative;
    width:100%;
    height: 4.4rem;
}

.button{
    position:relative;
    width: 90%;
    height: 4.4rem;
}

.quiz-button-absolute-absolute{
    display:flex;
    position:absolute;
    top:0;
    left:0;
    gap: 0rem;
    transition: width 0.3s ease;
    width: 12.664rem;
    display: flex;
}

.animated-button {
    background-color: #fa8e29;
    color: white;
    border: none;
    padding-top: clamp(0rem, 1.8rem, 4vh);
    padding-bottom: clamp(0rem, 1.8rem, 4vh);
    border-radius: 1em;
    font-size: 1.6em;
    width: 100%;
    font-family: "Dosis", sans-serif;
    box-shadow: 0px 6px 0px 0px #bb691d;
    position: relative;
}

.einzelspieler-button, .mehrspieler-button{
    background-color: var(--button-blue);
    transition: border-radius 0.3s ease;
    color: white;
    border: none;
    padding: 1rem 0;
    font-family: "Dosis", sans-serif;
    box-shadow: 0px 6px 0px 0px var(--button-shadow);
    width: 50%;
}

.einzelspieler-button{
    border-radius: 1.3rem 0rem 0rem 1.3rem;
}

.mehrspieler-button{
    border-radius: 0 1.3rem 1.3rem 0;
    transition: margin 0.3s ease, border-radius 0.3s ease;
    margin:0;
}

.einzelspieler-button img, .mehrspieler-button img{
    width: 2.5rem;
    height: 2.5rem;
}

.datenschutz-text-u {
    color: white;
    text-align: center;
    font-size: var(--font-size-header);
}

.datenschutz1{
    width: calc(100% - 3rem);
    padding: 0rem 1.5rem;
    overflow: scroll;
    color: white;
    padding-top: 2rem;
    padding-bottom: 6rem;
    font-size: 1rem;
}

.startseite-container{
    top: 3.5rem;
    height: 100%;
    width: 195vw;
    padding-left: 5vw;
    position: relative;
    display: flex;
    justify-content: center;
    bottom: clamp(0rem, 6rem, calc(4rem + 3.5vh));
    transform: translateX(-100vw);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.buttons-container {
    height: calc(100% - 10.5rem);
    width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0rem, 1.9rem, 3.5vh);
    bottom: clamp(0rem, 8rem, calc(6rem + 3.5vh)); /* Vergrößerter Abstand zur Navigationsleiste */
}

.lernpfad{
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    bottom: clamp(0rem, 6rem, calc(4rem + 3.5vh));
    margin-left: 5vw;
    padding: 1rem;
    color:#ebf1f4;
    padding-top: 0;
}









#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none; /* alles bleibt klickbar außer das Popup */
}

.dimmed-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 4rem); /* Höhe minus Nav-Bar */
    pointer-events: auto;
}

.overlay-dim {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.overlay-popup {
    position: fixed;
    bottom: 4rem;
    left: 0;
    width: 100%;
    background-color: var(--background-color);; /* leicht wärmeres, moderneres Grau */
    border-top-left-radius: 1.4rem;
    border-top-right-radius: 1.4rem;
    border-top: 2px solid var(--line-color);;
    color: white;
    font-family: "Dosis", sans-serif;
    box-sizing: border-box;
    z-index: 10000;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    padding: 2.1rem 1.5rem 2.35rem 1.5rem;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35); /* ☁️ Card-Effekt */
    gap: 1rem;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.overlay-title {
    font-size: 1.9rem;
    font-weight: 700;
    text-align: left;
    color: white;
}

.overlay-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #d4d4d4; /* weicher als pures Weiß */
    text-align: left;
    margin-bottom: 0.25rem;
}

.overlay-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.overlay-button {
    background-color: rgb(27, 143, 79);
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    font-size: 1.6rem;
    font-family: "Dosis", sans-serif;
    font-weight: bold;
    color: white;
    box-shadow: 0px 6px 0px 0px rgb(21, 112, 62);
    width: 100%;
    text-align: center;
    transition: background-color 0.2s ease;
}

.overlay-button:active {
    background-color: rgb(22, 120, 68);
}

@keyframes popupBumpIn {
    0% {
        transform: translateY(20%) scale(0.99);
        opacity: 0;
    }
    80% {
        transform: translateY(0) scale(1.005);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.overlay-popup.animate-in {
    animation: popupBumpIn 0.25s ease-out;
}

.highlight-green {
    color: rgb(31, 199, 106);
    font-weight: bold;
    font-size: 1.3rem;
}

.highlight-blue {
    color: rgb(31, 199, 106);;
    font-weight: bold;
    font-size: 1.4rem;
}











