/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Answer Buttons - SIMPLE! */
.answer-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: none !important;  /* KEINE TRANSITION! */
}

.answer-btn:hover:not(:disabled) {
    transform: translateX(5px);
    border-color: #667eea;
}

/* GRÜNER BUTTON - RICHTIG! */
.btn-correct {
    background: #10b981 !important;
    color: white !important;
    border-color: #059669 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.8) !important;
    transform: scale(1.05) !important;
    font-weight: bold !important;
}

/* ROTER BUTTON - FALSCH! */
.btn-wrong {
    background: #ef4444 !important;
    color: white !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.8) !important;
    font-weight: bold !important;
}

/* DISABLED BUTTONS - AUSGEGRAUT */
.btn-disabled {
    opacity: 0.3 !important;
    filter: grayscale(100%) !important;
}

.answer-btn:disabled {
    cursor: not-allowed;
}

/* Rest of the styles from original */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.loading-content {
    text-align: center;
    color: white;
}

.lulu-avatar {
    font-size: 80px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.header {
    text-align: center;
    padding: 2rem 1rem;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stats-banner {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    margin: 0 1rem 2rem;
    padding: 1rem;
    border-radius: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-buttons {
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.menu-btn {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.menu-btn:active {
    transform: scale(0.95);
}

.btn-icon {
    font-size: 3rem;
}

.btn-title {
    font-weight: 600;
    color: #333;
}

.quiz-header {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s;
}

.question-counter {
    color: white;
    font-weight: bold;
}

.quiz-content {
    padding: 2rem 1rem;
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.question-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.5rem;
    color: #333;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-footer {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.lesson-selector {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

.lesson-selector select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: white;
}

@media (max-width: 600px) {
    .menu-buttons {
        grid-template-columns: 1fr;
    }
}

/* ===================================== */
/* KARTEIKARTEN */
/* ===================================== */

.karte-container {
    padding: 2rem 1rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.karte-side {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.karte-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.karte-emoji {
    font-size: 5rem;
    margin: 1rem 0;
}

.karte-text {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin: 1rem 0;
}

.karte-answer {
    color: #764ba2;
}

.karte-flip-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.karte-question {
    font-size: 1.2rem;
    color: #555;
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.karte-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.karte-btn {
    flex: 1;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.karte-no {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.karte-yes {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.karte-help {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: white;
    transition: width 0.3s;
}


/* ===================================== */
/* ENHANCED STATS SCREEN */
/* ===================================== */

.stats-header {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-header h2 {
    flex: 1;
    text-align: center;
    color: white;
    margin: 0;
}

.stats-container {
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    font-size: 4rem;
}

.profile-info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.profile-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.profile-level span {
    font-weight: bold;
    color: #667eea;
}

.level-stars {
    color: #ffd700;
}

.profile-points {
    font-size: 1.2rem;
    font-weight: bold;
    color: #764ba2;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.progress-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-title {
    font-weight: bold;
    color: #333;
}

.progress-score {
    color: #667eea;
    font-weight: bold;
}

.progress-bar-wrapper {
    background: #e9ecef;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.achievement-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.achievement-box.unlocked {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.achievement-box.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.achievement-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.75rem;
    color: #666;
}

.achievement-box.unlocked .achievement-desc {
    color: rgba(255,255,255,0.9);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-row span:first-child {
    color: #666;
}

.stat-row span:last-child {
    font-weight: bold;
    color: #667eea;
}

.session-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-info {
    flex: 1;
}

.session-mode {
    font-weight: bold;
    color: #333;
}

.session-time {
    font-size: 0.85rem;
    color: #999;
}

.session-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}


/* ===================================== */
/* LEADERBOARD */
/* ===================================== */

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.podium-place {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    flex: 1;
    max-width: 120px;
}

.podium-place.first {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    transform: translateY(-20px);
}

.podium-place.second {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.podium-place.third {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
}

.podium-crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 1s infinite;
}

.podium-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.podium-user {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-points {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
}

.podium-rank {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.leaderboard-list {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 0.75rem;
}

.leaderboard-item.current-user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.leaderboard-item.current-user .leaderboard-rank {
    background: white;
    color: #667eea;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.leaderboard-meta {
    font-size: 0.85rem;
    color: #666;
}

.leaderboard-item.current-user .leaderboard-meta {
    color: rgba(255,255,255,0.8);
}

.leaderboard-points {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.leaderboard-item.current-user .leaderboard-points {
    color: white;
}

.switch-user-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
}

.switch-user-btn:active {
    transform: scale(0.95);
}

/* ===================================== */
/* GAMIFICATION STATS SCREEN */
/* ===================================== */

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    font-size: 4rem;
}

.profile-info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.profile-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.profile-level span {
    font-weight: bold;
    color: #667eea;
}

.level-stars {
    color: #ffd700;
}

.profile-points {
    font-size: 1.2rem;
    font-weight: bold;
    color: #764ba2;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.achievement-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.achievement-box.unlocked {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.achievement-box.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.achievement-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.75rem;
    color: #666;
}

.achievement-box.unlocked .achievement-desc {
    color: rgba(255,255,255,0.9);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-row span:first-child {
    color: #666;
}

.stat-row span:last-child {
    font-weight: bold;
    color: #667eea;
}

/* ===================================== */
/* VERBEN TRAINER STYLES */
/* Add to styles.css */
/* ===================================== */

.verben-content {
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.verben-question-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.verben-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.verben-question-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.verben-hint {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.verben-answer-area {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Free Input */
.verben-input-container {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.verben-input {
    padding: 1.5rem;
    font-size: 1.2rem;
    border: 3px solid #667eea;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
}

.verben-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.verben-submit-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.verben-submit-btn:hover {
    transform: scale(1.05);
}

.verben-submit-btn:active {
    transform: scale(0.95);
}

/* Multiple Choice */
.verben-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.verben-option-btn {
    padding: 1.5rem;
    font-size: 1.1rem;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.verben-option-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.verben-option-btn:active {
    transform: translateY(0);
}

/* Sentence Building */
.verben-word-tiles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verben-selected-area {
    background: #f8f9fa;
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 1.5rem;
    min-height: 60px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verben-tiles-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.verben-word-tile {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s;
}

.verben-word-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.verben-word-tile.used {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.verben-reset-btn {
    padding: 0.75rem 1.5rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* Feedback */
.verben-feedback {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    animation: fadeIn 0.3s ease;
}

.verben-feedback.correct {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.verben-feedback.wrong {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.verben-feedback .feedback-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.verben-feedback .feedback-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .verben-options {
        grid-template-columns: 1fr;
    }
    
    .verben-question-text {
        font-size: 1.1rem;
    }
}
