.auth-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.form-container {
    display: none;
    max-width: 400px;
    margin: 0 auto;
    transition: opacity 0.3s ease;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Support und Review Buttons */
/* Support und Review Buttons - Neue Farben */
.support-btn {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.review-btn {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #e0a800, #ffc107) !important;
    color: #212529;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.review-btn:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    color: #212529;
}

/* Support Popup */
.support-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.support-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.support-popup h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-popup .form-group {
    margin-bottom: 20px;
}

.support-popup label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.support-popup select,
.support-popup textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.support-popup select:focus,
.support-popup textarea:focus {
    outline: none;
    border-color: #52BBEF;
}

.support-popup textarea {
    resize: vertical;
    min-height: 120px;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Popup Button Styles - Neue Klassen */
.popup-btn-primary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white;
}

.popup-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1e9e8a);
    transform: translateY(-2px);
}

.popup-btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.popup-btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #6c757d !important;
    color: white;
}

.popup-btn-secondary:hover {
    background: #5a6268;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .support-popup-content {
        padding: 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .support-btn, .review-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

input[type=checkbox], input[type=radio] {
 margin-right: 12px;   
}

/* Download-Button Styles */
.download-button {
    transition: all 0.3s ease !important;
}

.download-button:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

/* Arbeitsauftrag Box Responsive */
@media (max-width: 768px) {
    .download-button {
        display: flex !important;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Video-Links Styling */
.video-link {
    color: #007cba !important;
    text-decoration: none !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.video-link:hover {
    color: #005a87 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #007cba;
    transform: translateX(2px);
}

.video-link:visited {
    color: #5a2d91 !important;
}

.external-link-icon {
    font-size: 12px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.video-link:hover .external-link-icon {
    color: #007cba;
    transform: scale(1.2);
}

/* Responsive Design für Video-Links */
@media (max-width: 768px) {
    .video-link {
        font-size: 14px;
        display: block;
        margin: 8px 0;
        padding: 8px 12px;
        background: rgba(0, 124, 186, 0.1);
        border-radius: 6px;
        border: 1px solid rgba(0, 124, 186, 0.2);
    }
    
    .video-link:hover {
        background: rgba(0, 124, 186, 0.2);
        transform: none;
        border-bottom: 1px solid transparent;
    }
}

#download-arbeitsblatt-4:hover, #download-arbeitsblatt-3:hover, #download-arbeitsblatt-2:hover {
    background: linear-gradient(135deg, #4aa3d9, #3d8bba) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 187, 239, 0.4) !important;
}

#download-arbeitsblatt-4:active, #download-arbeitsblatt-3:active, #download-arbeitsblatt-2:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(82, 187, 239, 0.3) !important;
}

#download-arbeitsblatt-4:disabled, #download-arbeitsblatt-3:disabled, #download-arbeitsblatt-2:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    transform: none !important;
}

#download-arbeitsblatt-1:hover {
    background: linear-gradient(135deg, #3fba5b, #218838) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 235, 119, 0.4) !important;
}

#download-arbeitsblatt-1:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(84, 235, 119, 0.3) !important;
}

#download-arbeitsblatt-1:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    transform: none !important;
}

.form-container.active {
    display: block;
}

.payment-container {
    display: none;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.payment-container.active {
    display: block;
}

.course-container {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
}

.course-container.active {
    display: block;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.payment-header p {
    color: #6c757d;
    font-size: 16px;
}

.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.price-option {
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.price-option:hover {
    border-color: #52BBEF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 187, 239, 0.15);
}

.price-option.selected {
    border-color: #52BBEF !important;
    background: #f8fdff !important;
    box-shadow: 0 0 0 1px rgba(82, 187, 239, 0.2) !important;
}

.price-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #52BBEF;
}

.price-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.student-badge {
    background: #ffeaa7;
    color: #d63031;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.student-verification {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #856404;
}

.student-verification input[type="checkbox"] {
    margin-right: 8px;
}

#paypal-button-container {
    margin-top: 20px;
    min-height: 50px;
    display: block;
    opacity: 1;
    visibility: visible;
}

#paypal-button-container.hide {
    display: none;
}

.payment-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #52BBEF;
}

.payment-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.payment-info ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
}

.payment-info li {
    margin-bottom: 5px;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.back-to-login a {
    color: #52BBEF;
    text-decoration: none;
    font-weight: 600;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.payment-success {
    text-align: center;
    padding: 40px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    color: #155724;
}

.payment-success h3 {
    color: #155724;
    margin-bottom: 15px;
}

.payment-success .success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.auth-form-wrapper .form-group {
    margin-bottom: 20px;
}

.auth-form-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.auth-form-wrapper input[type="text"],
.auth-form-wrapper input[type="email"],
.auth-form-wrapper input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.auth-form-wrapper input:focus {
    outline: none;
    border-color: #4285f4;
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: auto;
    transform: scale(1.2);
}

.auth-form-wrapper button {
    background: #212C32;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-form-wrapper button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-form-wrapper button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-form-wrapper button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.password-requirements {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.form-switch {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.form-switch p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.form-switch a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-switch a:hover {
    color: #3367d6;
    text-decoration: underline;
}

/* E-Mail Verification Popup Styling */
.email-verification-popup {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.email-verification-popup .swal2-title {
    font-size: 22px !important;
    margin-bottom: 15px !important;
}

.email-verification-popup .swal2-html-container {
    text-align: left !important;
    padding: 15px 0 !important;
}

.email-verification-popup .swal2-confirm {
    background: #52BBEF !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.email-verification-popup .swal2-cancel {
    background: #6c757d !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.email-verification-popup .swal2-confirm:hover {
    background: #4aa3d9 !important;
}

.email-verification-popup .swal2-cancel:hover {
    background: #5a6268 !important;
}

.auth-form-wrapper h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #2c3e50;
    font-weight: 700;
    font-size: 28px;
}

/* Course Interface Styles */
.course-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(160deg, rgba(82, 187, 239, 0.6) 0%, rgba(72, 182, 197, 0.6) 25%, rgba(61, 177, 154, 0.6) 50%, rgba(51, 172, 112, 0.6) 75%, rgba(40, 167, 69, 0.6) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 15px 15px 0 0 ;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.course-header .course-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
    opacity: 0.9;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #212C32;
    padding: 0 25px 0 25px;
}

.course-content {
    display: flex;
    min-height: 700px;
    overflow: hidden;
    overflow-x: hidden;
}

/* Sidebar-Größe stabilisieren */
.course-sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex-shrink: 0 !important;
    transition: none !important;
    background: #f8f9fa;
    border-right: 1px solid #e1e8ed;
}

/* Sidebar-Content stabilisieren */
.course-sidebar > div:first-child {
    width: 100% !important;
    min-width: 100% !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 100px) !important;
}

/* Lesson Items Container stabilisieren */
.lesson-item {
    width: 100% !important;
    min-width: 280px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* Course Content Bereich anpassen */
.course-main {
    flex: 1 !important;
    min-width: 0 !important;
    width: calc(100% - 350px) !important;
}

/* Content Container stabilisieren */
.course-content {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

/* Video Container responsive halten */
.video-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    cursor: pointer;
}

/* Lesson Content Bereich */
.lesson-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
}

/* Mobile Anpassungen */
@media (max-width: 1024px) {
    .course-content {
        flex-direction: column !important;
    }
    
    .course-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
    }
    
    .course-main {
        width: 100% !important;
        order: 1 !important;
    }
}

.course-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.lesson-item {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e8ed;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lesson-item:hover {
    background: #e9ecef;
}

.lesson-item.active {
    background: #fff;
    border-right: 4px solid #53BDF0;
    box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.1);
}

.lesson-item.active:hover {
    transform: none;
}

.lesson-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.4;
}

.lesson-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Custom Video Player Styles */
.video-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #000;
    overflow: hidden;
}

#lesson-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-container:hover .custom-video-controls,
.custom-video-controls.show {
    opacity: 1;
    pointer-events: all;
}

.video-progress-container {
    margin-bottom: 15px;
    cursor: pointer;
}

.video-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    transition: height 0.2s ease;
}

.video-progress-container:hover .video-progress-bar {
    height: 6px;
}

.video-progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #52BBEF 0%, #6DDFB6 100%);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 2px;
}

.video-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-controls-left,
.video-controls-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.video-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.play-pause-btn {
    background: rgba(82, 187, 239, 0.8);
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.play-pause-btn:hover {
    background: rgba(82, 187, 239, 1);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
} 

.volume-container button {
    width: 70px;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.volume-container:hover .volume-slider-container {
    width: 80px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
} 

input[type=range] {
    margin: 5.7px 0 17px 0;
    outline: 0;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: #52BBEF;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #52BBEF;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.time-display {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    min-width: 100px;
}

.speed-btn {
    font-size: 14px;
    font-weight: 600;
    min-width: 35px;
}

.fullscreen-btn {
    font-size: 20px;
}

/* Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    display: none;
}

.video-loading.show {
    display: block;
}

/* Video Error State */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    display: none;
}

.video-error.show {
    display: block;
}

.video-error h3 {
    margin-bottom: 10px;
    color: #ff6b6b;
}

.video-error p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.quiz-container {
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
}

.quiz-container h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

.quiz-question {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.quiz-question h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fafbfc;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: #f0f2f5;
    border-color: #52BBEF;
}

.quiz-option.selected {
    background: #e8f4fd;
    border-color: #52BBEF;
    box-shadow: 0 0 0 1px rgba(82, 187, 239, 0.2);
}

.quiz-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.quiz-option label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    color: #2c3e50;
    flex: 1;
}

.quiz-submit-btn {
    background: #212C32;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.quiz-submit-btn:hover:not(:disabled) {
    background: #52BBEF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 187, 239, 0.4);
}

.quiz-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quiz-results {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.quiz-results.passed {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.quiz-results.failed {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.quiz-results h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.quiz-results p {
    margin: 5px 0;
    font-size: 14px;
}

.quiz-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e9ecef;
    color: #6c757d;
}

.quiz-status.passed {
    background: #d4edda;
    color: #155724;
}

.quiz-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.show-quiz-btn {
    background: #52BBEF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.show-quiz-btn:hover {
    background: #4aa3d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(82, 187, 239, 0.3);
}

.quiz-toast {
    z-index: 9998 !important;
}

.quiz-toast .toast-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.quiz-toast .toast-close:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

.quiz-toast .toast-content {
    padding-right: 30px; /* Platz für Close-Button */
}

.quiz-toast.category-perfect {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4) !important;
}

.quiz-toast.category-passed {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
}

.quiz-toast.category-close {
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3) !important;
}

.quiz-toast.category-failed {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3) !important;
}

.course-completed {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.course-completed h3 {
    margin-bottom: 10px;
    color: #155724;
}

.course-completion-popup {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.course-completion-popup .swal2-title {
    font-size: 24px !important;
    margin-bottom: 20px !important;
}

.course-completion-popup .swal2-html-container {
    text-align: left !important;
    white-space: pre-line !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 20px !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    margin: 20px 0 !important;
}

.course-completion-popup .swal2-confirm {
    background: #28a745 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.course-completion-popup .swal2-confirm:hover {
    background: #218838 !important;
}

.lesson-content {
    padding: 40px 25px;
    flex: 1;
}

.lesson-content h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
}

/* Erweiterte CSS-Stile für HTML-Content in Lektionen - zu dwi.css hinzufügen */

/* Lesson Content HTML Styling */
.lesson-text {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
}

.lesson-text h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.lesson-text h4 {
    color: #2c3e50;
    font-size: 18px;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.lesson-text h5 {
    color: #2c3e50;
    font-size: 16px;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

.lesson-text p {
    margin: 15px 0;
    line-height: 1.7;
}

.lesson-text ul, .lesson-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.lesson-text li {
    margin: 8px 0;
    line-height: 1.6;
}

.lesson-text strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Content Images */
.content-image-container {
    text-align: center;
    margin: 25px 0;
} .content-image-container img {
    width: 100%;
}

.lesson-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.lesson-image:hover {
    transform: scale(1.02);
}

/* Special Content Boxes */
.tip-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-left: 4px solid #52BBEF;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(82, 187, 239, 0.1);
}

.tip-box h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box p {
    margin: 0;
    color: #34495e;
    font-size: 15px;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.1);
}

.warning-box h4 {
    margin: 0 0 12px 0;
    color: #856404;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.1);
}

.research-highlight {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
}

.study-reference {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

/* Grid Layouts */
.target-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.target-group-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #52BBEF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.target-group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-card {
    background: #fff;
    border: 2px solid #52BBEF;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 187, 239, 0.2);
}

.stat-card:nth-child(2) {
    border-color: #28a745;
}

.stat-card:nth-child(3) {
    border-color: #ffc107;
}

/* Training Phases */
.training-phases {
    margin: 25px 0;
}

.phase-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #52BBEF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phase-item:nth-child(2) {
    border-left-color: #28a745;
}

.phase-item:nth-child(3) {
    border-left-color: #ffc107;
}

.phase-item > div:first-child {
    background: #52BBEF;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.phase-item:nth-child(2) > div:first-child {
    background: #28a745;
}

.phase-item:nth-child(3) > div:first-child {
    background: #ffc107;
}

/* Intensity Zones */
.intensity-zones {
    margin: 25px 0;
}

.intensity-zones > div:first-child {
    background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
    height: 25px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intensity-zones > div:last-child {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.lesson-nav {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid #e1e8ed;
    background: #f8f9fa;
}

.nav-btn {
    background: #212C32;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #52BBEF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#next-btn, #prev-btn {
    width: max-content;
}

/* Kurs-Statistik in der Sidebar */
.course-stats-sidebar {
    margin: 48px 25px 0 25px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 12px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
}

.course-stats-sidebar.show {
    opacity: 1;
    transform: translateY(0);
}

.course-stats-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.course-stats-header-sidebar {
    text-align: center;
    margin-bottom: 15px;
}

.course-stats-title-sidebar {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.course-stats-content-sidebar {
    text-align: center;
}

.completion-count-sidebar {
    font-size: 36px;
    font-weight: 700;
    color: #28a745;
    margin: 15px 0 10px 0;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.completion-count-label-sidebar {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.completion-info-sidebar {
    font-size: 13px;
    color: #6c757d;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(40, 167, 69, 0.2);
    line-height: 1.4;
}

.praxis-info-sidebar {
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.praxis-info-icon-sidebar {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.praxis-info-text-sidebar {
    font-size: 13px;
    color: #856404;
    line-height: 1.4;
}

.praxis-info-text-sidebar strong {
    color: #856404;
    font-weight: 600;
}

.course-stats-header {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.course-stats-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.course-stats-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    margin-bottom: 8px;
}

.course-stats-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.completion-count {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.completion-count-label {
    font-size: 14px;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 15px;
}

.praxis-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.praxis-info-icon {
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.praxis-info strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-top: 8px;
}

.forgot-password-link a {
    color: #52BBEF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #4aa3d9;
    text-decoration: underline;
}

/* Form Help Text */
.form-help-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    line-height: 1.5;
}

/* Password Error Message */
#password-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

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

/* Forgot Password Form Verbesserungen */
#forgot-password-form .form-group {
    position: relative;
}

#forgot-password-form input[type="email"] {
    transition: all 0.3s ease;
}

#forgot-password-form input[type="email"]:focus {
    border-color: #52BBEF;
    box-shadow: 0 0 0 3px rgba(82, 187, 239, 0.1);
}

#forgot-password-form input[type="email"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

#forgot-password-form input[type="email"].success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Loading Spinner für Button */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Validation Messages */
.form-validation-message {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    display: none;
}

.form-validation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-validation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Mobile Responsive */
@media (max-width: 921px) {
    .user-info {
        padding: 0 25px 25px 25px;
    }
    
    .course-completion-popup {
        font-size: 13px !important;
        margin: 10px !important;
    }
    
    .course-completion-popup .swal2-title {
        font-size: 20px !important;
    }
    
    .course-completion-popup .swal2-html-container {
        padding: 15px !important;
        max-height: 300px !important;
    }
    
    .course-stats-sidebar {
        margin: 42px 20px 24px 20px;
        padding: 15px;
    }
    
    .completion-count-sidebar {
        font-size: 28px;
    }
    
    .praxis-info-sidebar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .praxis-info-icon-sidebar {
        margin-top: 0;
    }
    
    .course-stats-close {
        display: none;
    }
    
    .course-stats-header {
        display: block;
    }
    
    .target-groups-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .phase-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .phase-item > div:first-child {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .lesson-text {
        font-size: 15px;
    }
    
    .tip-box, .warning-box, .safety-box, .research-highlight {
        padding: 15px;
        margin: 20px 0;
    }
    
    .content-image-container {
        margin: 20px 0;
    }
    
    .quiz-toast {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        font-size: 14px !important;
    }
    
    .quiz-toast .toast-title {
        font-size: 15px !important;
    }
    
    .quiz-toast .toast-message {
        font-size: 13px !important;
    }
    
    .intensity-zones > div:last-child {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sparkle Animation */
@keyframes sparkle {
    0% { opacity: 1; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0) translateY(-50px); }
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Success Ping Animation */
@keyframes successPing {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #28a745; color: white; }
    100% { transform: scale(1); }
}

/* Firework Animation */
@keyframes firework {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    50% { transform: translateY(-300px) scale(1); opacity: 1; }
    100% { transform: translateY(-400px) scale(1.5); opacity: 0; }
}

/* Toast Notifications */
.encouragement-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #52BBEF, #28a745);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 9999;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Streak Notification */
.streak-notification {
    position: fixed;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 600;
    animation: bounceIn 0.5s ease-out;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Progress Ring Animation */
.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
}

.achievement-showcase {
    margin: 48px 25px;
    padding-top: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-top: 4px solid #52BBEF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.achievement-showcase h4 {
    text-align: center;
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.achievement-count {
    color: #52BBEF;
    font-weight: 700;
}

.achievement {
    padding: 8px 6px;
    text-align: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.achievement.earned {
    background: linear-gradient(135deg, #52BBEF, #28a745);
    color: white;
    box-shadow: 0 2px 8px rgba(82, 187, 239, 0.3);
    transform: scale(1);
    z-index: 10001 !important;
    position: relative;
}

/* Achievement Grid anpassen wenn weniger Items */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
    min-height: 40px; /* Mindesthöhe auch wenn leer */
}

/* Wenn keine Achievements vorhanden */
.achievement-grid:empty::after {
    content: "Noch keine Erfolge freigeschaltet";
    grid-column: 1 / -1;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
    padding: 20px;
}

/* Achievement Hover-Effekte verstärken */
.achievement.earned:hover {
    transform: translateY(-3px) scale(1.05);
    z-index: 10002 !important;
    box-shadow: 0 8px 25px rgba(82, 187, 239, 0.4);
}

.achievement.locked {
    background: #e9ecef;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

.achievement.locked:hover {
    background: #f8f9fa;
    border-color: #52BBEF;
}

/* Leere Achievement-Grid Styles */
.achievement-grid.empty {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-grid.empty::after {
    content: "🏆 Schalten Sie Erfolge frei, indem Sie den Kurs durchlaufen!";
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    padding: 15px;
}

/* Verbessertes Toast-Management */
.achievement-notification {
    animation: achievementSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, top;
}

/* Smooth Repositioning */
.achievement-notification {
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.achievement {
    position: relative;
    cursor: help;
}

.achievement.earned {
    cursor: pointer;
}

.achievement:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease-out;
}

.achievement:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Einheitliches Toast-System */
.toast-notification {
    /* Basis-Styles nur */
    position: fixed;
    right: 20px;
    background: linear-gradient(135deg, #52BBEF, #4aa3d9);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.4s ease;
}

/* Toast Hover-Effekte */
.toast-notification:hover {
    transform: translateX(-5px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

.achievement-notification:hover {
    transform: translateX(-5px) !important;
    box-shadow: 0 12px 35px rgba(82, 187, 239, 0.4) !important;
}

.encouragement-toast.category-perfect:hover {
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4) !important;
}

.encouragement-toast.category-passed:hover {
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4) !important;
}

.encouragement-toast.category-close:hover {
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4) !important;
}

.encouragement-toast.category-failed:hover {
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4) !important;
}

.toast-notification.achievement-notification:hover {
    box-shadow: 0 12px 35px rgba(82, 187, 239, 0.4) !important;
}

.toast-notification.encouragement-toast.category-perfect:hover {
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4) !important;
}

.toast-notification.encouragement-toast.category-passed:hover {
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4) !important;
}

.toast-notification.encouragement-toast.category-close:hover {
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4) !important;
}

.toast-notification.encouragement-toast.category-failed:hover {
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4) !important;
}

/* Einheitliche Close-Button-Styles */
.toast-close {
    font-size: '24px';
    cursor: 'pointer';
    opacity: '0.7';
    padding: '0 5px';
    transition: 'all 0.3s ease';
    min-width: '24px';
    height: '24px';
    display: 'flex';
    align-items: 'center';
    justify-content: 'center';
}

.toast-close:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
}

/* Smooth Repositioning für alle Toast-Typen */
.toast-notification {
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Toast-Counter für Debug */
.achievement-notification::before {
    content: attr(data-achievement);
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.achievement-notification:hover::before {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 921px) {
    .achievement:hover::after {
        position: fixed;
        bottom: auto;
        top: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        text-align: center;
        white-space: normal;
        font-size: 14px;
    }
    
    .achievement:hover::before {
        display: none;
    }
    
    .achievement-showcase {
        margin: 48px 25px;
        padding: 20px;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .achievement {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .toast-notification {
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
    
    .achievement-notification {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        position: fixed !important;
    }
    
    .achievement-grid.empty::after {
        font-size: 13px;
        padding: 10px;
    }
    
    /* Mobile: Kleinerer Abstand zwischen Toasts */
    .achievement-notification:nth-child(n+2) {
        top: 80px !important;
    }
    
    .achievement-notification:nth-child(n+3) {
        top: 150px !important;
    }
    
    .achievement-notification:nth-child(n+4) {
        top: 220px !important;
    }
}

.achievement {
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.achievement.earned {
    background: linear-gradient(135deg, #52BBEF, #28a745);
    color: white;
    box-shadow: 0 2px 8px rgba(82, 187, 239, 0.3);
}

.achievement.earned:hover {
    transform: translateY(-2px);
}

.achievement.locked {
    background: #e9ecef;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

/* Smooth Transitions für Lesson Content */
.lesson-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lesson-content.transitioning {
    opacity: 0;
    transform: translateY(20px);
}

/* Mobile Responsive */
@media (max-width: 921px) {
    .custom-video-controls {
        padding: 15px;
    }
    
    .email-verification-popup {
        font-size: 13px !important;
        margin: 10px !important;
    }
    
    .email-verification-popup .swal2-title {
        font-size: 18px !important;
    }
    
    .video-controls-left,
    .video-controls-right {
        gap: 10px;
    }
    
    .video-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .play-pause-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .volume-container:hover .volume-slider-container {
        width: 60px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .time-display {
        font-size: 12px;
        min-width: 80px;
    }
    
    .quiz-container {
        padding: 20px;
        margin-top: 20px;
    }
    
    .quiz-question {
        padding: 15px;
    }
    
    .quiz-option {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .payment-container {
        max-width: 100%;
        padding: 20px;
        margin: 0 20px;
    }
    
    .pricing-options {
        gap: 15px;
    }
    
    .price-option {
        padding: 20px;
    }
    
    .course-container {
        display: flex;
        flex-direction: column;
    }
    
    .course-content {
        flex-direction: column-reverse;
    }
    
    .lesson-content {
        padding: 20px;
    }
    
    .lesson-nav {
        padding: 20px;
    }
    
    .course-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}