/* Level-Up Animation: Sterne */
.levelup-star {
  position: absolute;
  width: 18px;
  height: 18px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gold"><polygon points="12,2 15,9 22,9.5 17,14.5 18.5,22 12,18 5.5,22 7,14.5 2,9.5 9,9"/></svg>') no-repeat center/contain;
  opacity: 0;
  animation: star-explode 3s ease-out forwards;
}
@keyframes star-explode {
  0% { opacity: 1; transform: scale(0.5) translateY(0); }
  60% { opacity: 1; transform: scale(1.2) translateY(-30px); }
  80% { opacity: 1; transform: scale(1) translateY(-50px); }
  100% { opacity: 0; transform: scale(0.7) translateY(-80px); }
}
/* Fortschrittsbalken: Standard nur Desktop anzeigen */
.exp-bar-desktop { display: block; }
.exp-bar-mobile { display: none !important; }
@media (max-width: 700px) {
  .exp-bar-desktop { display: none !important; }
  .exp-bar-mobile { display: flex !important; flex-direction: column; margin-left: 0 !important; margin-right: 0 !important; }
  .exp-bar-mobile-inner { min-width: 0 !important; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #FE2D0E 60%, #FFB300 100%); transition: width 0.3s; }
  .exp-bar-mobile-label { position: absolute; left: 50%; top: 0; transform: translateX(-50%); color: #fff; font-size: 0.9rem; line-height: 18px; font-weight: bold; text-shadow: 0 1px 2px #0008; width: 100%; text-align: center; pointer-events: none; }
  .exp-bar-mobile .exp-bar-inner, .exp-bar-mobile .exp-bar-label { display: none !important; }
}
/* Erfahrungsbalken (Experience Bar) */
.exp-bar-outer {
    display: block;
    width: 140px;
    max-width: 95vw;
    height: 18px;
    background: #222;
    border-radius: 9px;
    border: 2px solid #fff;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}
.exp-bar-inner {
    display: block;
    height: 100%;
    border-radius: 9px;
    background: linear-gradient(90deg, #FE2D0E 60%, #FFB300 100%);
    transition: width 0.3s;
    min-width: 0 !important;
    /* width wird nur per Inline-Style gesetzt! */
}
.exp-bar-label {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.85rem;
    line-height: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px #0008;
    width: 100%;
    text-align: center;
    pointer-events: none;
}
@media (max-width: 700px) {
    .exp-bar-outer {
        width: 98vw !important;
        max-width: 420px;
        min-width: 100px;
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
    .exp-bar-inner {
        min-width: 0 !important;
        /* width wird nur per Inline-Style gesetzt! */
    }
    .exp-bar-label {
        font-size: 0.98rem;
    }
}
/* Navigation Buttons */
.nav-area {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 0;
    margin-bottom: 18px;
    position: absolute;
    top: 120px;
    left: 0;
    width: 100vw;
    z-index: 1;
}
.nav-btn {
    background: #FE2D0E;
    color: #fff;
    border: none;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    display: inline-block;
    margin: 0;
}
.nav-btn:hover {
    background: #c8230a;
    color: #fff;
}
@media (max-width: 700px) {
    html, body {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    body {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        margin: 0;
        padding: 0;
    }
    .nav-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        top: 0;
        left: 0;
        position: fixed;
        width: 80px;
        min-width: 60px;
        max-width: 90px;
        z-index: 200;
        background: #FE2D0E;
        border-radius: 0 0 1.2rem 0.7rem;
        overflow: hidden;
        height: 100vh;
        min-height: 100vh;
        box-shadow: 2px 0 8px #0001;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-btn {
        width: 100%;
        max-width: 100%;
        text-align: left;
        font-size: 1rem;
        padding: 0.9rem 0.7rem 0.9rem 1.1rem;
        border-radius: 0;
        margin: 0;
        border-bottom: 1px solid #fff2;
        border-right: none;
        box-sizing: border-box;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: transparent;
    }
    /* Smartphone-Logo oben in der Nav-Leiste */
    .nav-area .smartlogo-nav {
        width: 60px;
        height: 60px;
        margin: 8px 0 18px 10px;
        display: block;
        border-radius: 50%;
        background: #fff2;
        object-fit: contain;
        align-self: flex-start;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 210;
    }
    .nav-btn:last-child {
        border-bottom: none;
    }
    .main-header {
        z-index: 10;
        position: fixed;
        width: calc(100vw - 80px);
        left: 80px;
        top: 0;
        box-sizing: border-box;
        padding-left: 32px !important;
        background: #FE2D0E;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .header-login-area {
        z-index: 20;
        position: relative;
        background: none;
        width: auto !important;
        min-width: 0;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        margin-left: auto;
        margin-right: 0;
    }
    .container {
        z-index: 1;
        position: relative;
        margin-left: 80px !important;
        margin-top: 120px !important;
        width: calc(100vw - 90px);
        max-width: 100vw;
    }
}
@media (max-width: 700px) {
    .main-header {
        flex-direction: row;
        align-items: center;
        padding: 8px 2vw 8px 2vw;
    }
    .logo-img {
        height: 48px;
        margin-bottom: 0;
        margin-right: 10px;
    }
    .header-login-area {
        gap: 6px;
    }
    .header-login-area form, .header-login-area span {
        width: auto;
        justify-content: flex-start;
    }
    .header-login-area input, .header-login-area button {
        width: 70px;
        min-width: 0;
        font-size: 0.92rem;
        margin-bottom: 0;
        padding-left: 2px;
        padding-right: 2px;
    }
}
/* Header Responsive Styles */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #FE2D0E;
    z-index: 2;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    padding: 0 32px;
    box-sizing: border-box;
}
.logo-img {
    height: 110px;
    background: transparent;
}
.header-login-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 700px) {
    .main-header {
        flex-direction: column;
        height: auto;
        padding: 12px 4vw 8px 4vw;
        align-items: flex-start;
    }
    .logo-img {
        height: 70px;
        margin-bottom: 8px;
    }
    .header-login-area {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 4px;
        flex-wrap: wrap;
    }
    .header-login-area form, .header-login-area span {
        width: auto !important;
        min-width: 0;
        max-width: 100vw;
        justify-content: flex-start;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .header-login-area input, .header-login-area button {
        width: auto !important;
        min-width: 0;
        max-width: 100vw;
        margin-bottom: 6px;
        flex: 0 0 auto;
    }
}
/* style.css */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #f0f4f8 0%, #c9e7fa 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 350px;
    width: 100%;
}

/* Login-Überschrift in Projektfarbe */
h2 {
    text-align: center;
    color: #FE2D0E;
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-size: 1rem;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 0.7rem;
    border: 1px solid #cfd8dc;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #f7fafc;
    transition: border 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border: 1.5px solid #1a73e8;
    outline: none;
}

button {
    padding: 0.8rem;
    background: #FE2D0E;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #c8230a;
}

p {
    margin: 0.5rem 0 0 0;
    text-align: center;
}

@media (max-width: 500px) {
    .container {
        padding: 1.2rem 0.5rem;
        max-width: 98vw;
    }
    h2 {
        font-size: 1.3rem;
    }
    button {
        font-size: 1rem;
    }
}
