/* main.css - Neu Programmierte Version */

/* Globale Einstellungen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Controls & allgemeine Styles */
.top-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Toggle Buttons */
.toggle-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.toggle-btn:hover {
    background-color: #ddd;
}
.toggle-btn.active {
    background-color: var(--primary, #007BFF);
    color: #fff;
}

/* Feedback Styles */
.feedback {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
}
.feedback.correct {
    background-color: #d4edda;
    color: #155724;
}
.feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

/* Fortschrittsanzeige */
.progress-container {
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.progress-bar {
    background: #28a745;
    height: 20px;
    width: 0;
    transition: width 0.3s ease;
}

/* Group Selector */
.group-selector {
    text-align: center;
    margin-top: 20px;
}
.group-btn {
    background: #141b20;
    border: none;
    color: #fff;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}
.group-btn.current {
    background: #84cbfa93;
    color: #000;
    font-weight: bold;
    border: 2px solid var(--primary, #007BFF);
}
.group-btn.completed {
    background: #07ec6675;
    color: #000;
}
.group-btn:hover:not(:disabled) {
    background: #fff;
}
.group-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .top-controls {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .top-controls {
        flex-direction: column;
    }
}

/* Motivation Section - Modern Glassmorphism Design */
.motivation-section {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    position: relative;
}
.streak-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.streak-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.fire-icon {
    font-size: 1.2em;
    animation: flame 1.5s infinite alternate;
}
.dance-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dance-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.motivation-ticker {
    flex: 1 1 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.motivation-ticker::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shine 3s infinite;
}
@keyframes flame {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}
@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}
@media (min-width: 768px) {
    .motivation-section {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .motivation-ticker {
        flex: 1;
        max-width: 600px;
        margin: 0 1rem;
    }
}

/* Sprich Deutsch Button */
.speak-btn {
    background: #bcf090;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}
.speak-btn:hover {
    background: #78af49;
}

/* Rewards Section */
.rewards-section {
    margin: 20px 0;
    text-align: center;
}
.achievement-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.badge {
    background: #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
}
.badge.unlocked {
    background: #f1c40f;
}
