:root {
    --primary-color: #4CAF50;
    --error-color: #ff4444;
    --text-color: #333;
    --bg-color: #fff;
    --shadow-color: rgba(0,0,0,0.1);
    --transition-speed: 0.3s;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #45a049;
    --error-color: #cc0000;
    --text-color: #fff;
    --bg-color: #1a1a1a;
    --shadow-color: rgba(255,255,255,0.1);
}

/* Performance optimizations */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 0 20px var(--shadow-color);
    border-radius: 15px;
    background-color: var(--bg-color);
    color: var(--text-color);
    will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

input {
    display: block;
    margin: 10px 0;
    padding: 15px; /* Vergrößert von 8px */
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1em; /* Neue Eigenschaft */
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
    outline: none;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px; /* Vergrößert von 10px 15px */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 1.1em; /* Neue Eigenschaft */
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#vokabelliste {
    margin-top: 20px;
}

#ergebnis {
    margin-top: 10px;
    font-weight: bold;
}

.vokabel-eintrag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px; /* Vergrößert von 5px */
    margin: 10px 0; /* Vergrößert von 5px */
    border-bottom: 1px solid #ddd;
    font-size: 1.1em; /* Neue Eigenschaft */
    border-radius: 8px;
    background: #f8f8f8;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    animation: erscheinen 0.3s ease-out;
}

.vokabel-eintrag:hover {
    transform: translateX(5px);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.loeschen-button {
    background-color: #00ff22;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.loeschen-button:hover {
    background-color: #22cc00;
}

.statistik {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
}

.vokabel-stats {
    color: #666;
    margin-right: 10px;
    font-size: 0.9em;
}

/* Verbesserte Animation für richtige Antworten */
@keyframes richtig {
    from { background-color: #4CAF50; }
    to { background-color: transparent; }
}

.richtig-animation {
    animation: richtig 1.5s ease-out;
}

/* ...existing code... */

.loeschen-alle-button {
    background-color: #ff4444;
    color: white;
    padding: 15px 25px; /* Angepasst an andere Buttons */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 1.1em; /* Angepasst an andere Buttons */
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loeschen-alle-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.popup-content {
    background-color: white;
    position: relative;
    margin: 2vh auto;
    padding: 20px;
    width: 85%;
    max-width: 1200px;
    border-radius: 12px;
    max-height: 95vh;
    overflow-y: auto;
}

.einstellung {
    margin: 15px 0;
}

.einstellung label {
    display: block;
    margin-bottom: 5px;
}

.einstellung select,
.einstellung input[type="number"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.header h2 {
    text-align: center;
    margin: 0;
    font-size: 1.8em; /* Neue Eigenschaft */
}

.vorgegeben-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    color: #666;
}

.vorgegeben-button:hover {
    color: #333;
    background: none;
}

.listen-download {
    background: linear-gradient(135deg, #2a17db, #4834f5);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(42, 23, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.listen-download:hover {
    background: linear-gradient(135deg, #4834f5, #2a17db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 23, 219, 0.3);
    color: white;
}

.listen-download:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(42, 23, 219, 0.2);
}

.listen-Popup {
    color: #333;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background-color: #f8f8f8;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.listen-Popup:hover {
    color: #e41e3f;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.listen-Popup:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popup-listen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-listen.active {
    opacity: 1;
    display: flex !important;
    background-color: rgba(0, 0, 0, 0.75); /* Ensure background is semi-transparent */
}

.popup-listen .popup-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Start with opacity 0 */
}

.popup-listen.active .popup-content {
    transform: translateY(0);
    opacity: 1; /* Show content when active */
}

.listen-eintrag {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.listen-eintrag:hover {
    background-color: #f0f0f0;
}

.einstellungen-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: #666;
}

.einstellungen-button:hover {
    color: #333;
    background: none;
}

.timer, .bestzeit {
    font-size: 1.2em;
    margin: 10px 0;
    font-family: monospace;
}

.timer {
    color: #2196F3;
}

.bestzeit {
    color: #4CAF50;
}

.bestzeit-badge {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 8px;
    color: #2196F3;
}

/* ...existing code... */

/* Einstellungen Styling */
.einstellungen-gruppe {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.einstellungen-gruppe:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.einstellungen-gruppe h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

.einstellungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-Spalten Layout */
    gap: 15px;
    margin-bottom: 20px;
}

/* Dark Mode Anpassungen */
.dark-mode .einstellungen-gruppe {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-mode .einstellungen-gruppe h4 {
    color: #fff;
    border-bottom-color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .einstellungen-grid {
        grid-template-columns: 1fr;
    }
    
    .einstellungen-gruppe {
        margin-bottom: 10px;
    }
}

/* ...existing code... */

.einstellungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Grid */
    gap: 25px; /* Vergrößert von 15px */
    margin-bottom: 40px; /* Vergrößert von 20px */
}

.einstellung {
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.einstellung:hover {
    background-color: rgba(76,175,80,0.1);
}

.einstellung.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    transition: background-color 0.2s;
}

.einstellung.checkbox:hover {
    background-color: rgba(76,175,80,0.1);
}

.einstellung.checkbox input {
    margin-right: 10px;
    width: auto;
}

.einstellung select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 1em;
    padding-right: 30px;
}

.einstellung.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.einstellung label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.einstellungen-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.speichern-button {
    background-color: #4CAF50;
    position: relative;
    overflow: hidden;
}

.speichern-button.save-success {
    background-color: #45a049;
    transform: scale(1.05);
}

.abbrechen-button {
    background-color: #f44336;
}

.reset-button {
    background-color: #2196F3;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

.dark-mode .container {
    background-color: #2d2d2d;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.dark-mode .einstellung {
    background: #444;
}

.dark-mode .vokabel-eintrag {
    background: #3d3d3d;
    border-color: #4d4d4d;
}

.dark-mode input, 
.dark-mode select {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #fff;
}

.dark-mode .popup-content {
    background-color: #2d2d2d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .einstellung:hover {
    background-color: rgba(76,175,80,0.2);
}

.dark-mode .einstellung select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Schriftgrößen */
.text-klein { 
    font-size: 1.1em; 
    line-height: 1.4;
}
.text-mittel { 
    font-size: 1.3em; 
    line-height: 1.5;
}
.text-gross { 
    font-size: 1.5em; 
    line-height: 1.6;
}

/* Animationen */
@keyframes erscheinen {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes saveSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.save-success {
    animation: saveSuccess 0.3s ease-in-out;
}

/* Responsive Design Verbesserungen */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    .einstellungen-grid {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }

    .popup-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 15px;
    }
}

/* Dark Mode Styles verbessert */
.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

.dark-mode .container {
    background-color: #2d2d2d;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.dark-mode .vokabel-eintrag {
    background: #3d3d3d;
    border-color: #4d4d4d;
}

.dark-mode button {
    background-color: #4d4d4dc9;
}

.dark-mode button:hover {
    background-color: #5d5d5dd0;
}

.dark-mode input,
.dark-mode select {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #ffffff;
}

.dark-mode .popup-content {
    background-color: #2d2d2d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.dark-mode .statistik {
    background-color: #3d3d3d;
}

.dark-mode .bestzeit-badge {
    background-color: #4d4d4d;
    color: #ffffff;
}

.dark-mode .loeschen-alle-button {
    background-color: #ff4444cc;
}

.dark-mode .loeschen-alle-button:hover {
    background-color: #cc0000cc;
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Dark Mode Anpassungen für Scrollbar */
.dark-mode .popup-content::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.dark-mode .popup-content::-webkit-scrollbar-thumb {
    background: #666;
}

.dark-mode .popup-content::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .einstellungen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .einstellungen-grid {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }
    
    .einstellungen-buttons {
        grid-template-columns: 1fr;
    }
}

/* ...existing code... */

/* Verbesserte Karteikarten Styles */
.karteikarte {
    width: 100%;
    max-width: 600px;  /* Vergrößert von 500px */
    height: 400px;     /* Vergrößert von 300px */
    margin: 20px auto;
    perspective: 2000px;  /* Erhöht für besseren 3D-Effekt */
    transform-style: preserve-3d;
    position: relative;
    touch-action: none; /* Für bessere Touch-Interaktion */
}

.karte-fortschritt {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.fortschritt-punkt {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
    position: relative;
}

.fortschritt-punkt.aktiv {
    background: #2196F3;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.fortschritt-punkt.richtig {
    background: #4CAF50;
}

.fortschritt-punkt.falsch {
    background: #ff4444;
}

.karte-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.karte-inhalt {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.karte-seite {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.karte-rueckseite {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #f8f8f8, #ffffff);
}

.karte-steuerung {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.karte-button {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.karte-button.richtig {
    background: #4CAF50;
    color: white;
}

.karte-button.falsch {
    background: #ff4444;
    color: white;
}

.karte-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.karte-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.9em;
    color: #666;
}

.swipe-hint {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    opacity: 0.7;
}

#karteInhalt {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;  /* Verlängert für smoothere Animation */
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 20px;
}

.karte-vorderseite, .karte-rueckseite {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 30px;
}

.karte-vorderseite {
    transform: rotateY(0deg);
}

.karte-rueckseite {
    transform: rotateY(180deg);
    background: #f8f8f8;  /* Leicht anderer Hintergrund */
}

.karteikarte.umgedreht #karteInhalt {
    transform: rotateY(180deg);
}

.karteikarte h3 {
    font-size: 2.5em;  /* Größere Schrift */
    margin-bottom: 30px;
    color: #333;
}

.flip-button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flip-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76,175,80,0.3);
}

/* Dark Mode Anpassungen */
.dark-mode .karte-vorderseite,
.dark-mode .karte-rueckseite {
    background: #2d2d2d;
    color: white;
}

.dark-mode .karte-rueckseite {
    background: #333;
}

.dark-mode .karteikarte h3 {
    color: #fff;
}

.dark-mode .karte-seite {
    background: #2d2d2d;
    color: white;
}

.dark-mode .karte-rueckseite {
    background: linear-gradient(145deg, #333, #2d2d2d);
}

.dark-mode .fortschritt-punkt {
    background: #444;
}

/* ...existing code... */

/* Zeitdruck-Modus Styling */
.timer-bar {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.timer-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ff4444);
    transition: width 10s linear;
}

.zeitdruck-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.zeitdruck-container h3 {
    font-size: 2em;
    margin: 20px 0;
    animation: erscheinen 0.3s ease-out;
}

.zeitdruck-container input {
    font-size: 1.2em;
    margin: 20px auto;
    max-width: 400px;
}

/* Dark Mode Anpassungen */
.dark-mode .timer-bar {
    background: #444;
}

.dark-mode .timer-bar-fill {
    background: linear-gradient(90deg, #45a049, #cc0000);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .zeitdruck-container {
        padding: 0 15px;
    }
    
    .zeitdruck-container h3 {
        font-size: 1.5em;
    }
}

/* ...existing code... */

/* Einstellungen Animations */
.einstellung.checkbox input[type="checkbox"] {
    position: relative;
    width: 60px;
    height: 30px;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.einstellung.checkbox input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.einstellung.checkbox input[type="checkbox"]:checked {
    background: #4CAF50;
}

.einstellung.checkbox input[type="checkbox"]:checked::before {
    transform: translateX(30px);
}

.einstellung.checkbox label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

/* Animation für Ein/Aus-Effekte */
@keyframes switchOn {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes switchOff {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.einstellung.checkbox input[type="checkbox"]:checked + label {
    animation: switchOn 0.3s ease-out;
}

.einstellung.checkbox input[type="checkbox"]:not(:checked) + label {
    animation: switchOff 0.3s ease-out;
}

/* Dark Mode Anpassungen für Schalter */
.dark-mode .einstellung.checkbox input[type="checkbox"] {
    background: #666;
}

.dark-mode .einstellung.checkbox input[type="checkbox"]::before {
    background: #ddd;
}

.dark-mode .einstellung.checkbox input[type="checkbox"]:checked {
    background: #45a049;
}

/* Hover-Effekte für Schalter */
.einstellung.checkbox:hover input[type="checkbox"]::before {
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

.einstellung.checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

/* ...existing code... */

/* Animation Kontrollklassen */
.no-animations,
.no-animations * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.animations-enabled .fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animations-enabled .slide-in {
    animation: slideIn 0.3s ease-out;
}

.animations-enabled .scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Animation Definitionen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Einstellungs-Animationen */
.animations-enabled .einstellung.checkbox input[type="checkbox"] {
    transition: all 0.3s ease;
}

.animations-enabled .einstellung.checkbox input[type="checkbox"]::before {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animations-enabled .einstellungen-gruppe {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animations-enabled .einstellung:hover {
    transition: background-color 0.3s ease;
}

/* ...existing code... */

/* Verbesserte Listen-Popup Styles */
.popup-listen {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-listen .popup-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideInUp 0.4s ease-out;
}

.popup-listen h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.listen-links {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.listen-link {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.listen-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76,175,80,0.3);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.listen-link .icon {
    font-size: 1.5em;
    margin-left: 10px;
}

.popup-listen .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: all 0.3s ease;
}

.popup-listen .close-button:hover {
    color: #333;
    transform: rotate(90deg);
}

/* Dark Mode Anpassungen */
.dark-mode .popup-listen .popup-content {
    background: #2d2d2d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.dark-mode .popup-listen h3 {
    color: #fff;
}

.dark-mode .popup-listen .close-button {
    color: #999;
}

.dark-mode .popup-listen .close-button:hover {
    color: #fff;
}

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

/* ...existing code... */

/* ...existing code... */

.dark-mode footer {
    background-color: rgba(45, 45, 45, 0.9) !important;
    border-top-color: #444 !important;
    color: #999 !important;
}