/* Franklin To-Do - Complete Styles with Modal Fix */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffa500;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gold-color: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* ========================================
   HERO/LANDING PAGE STYLES
======================================== */

.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
}

.hero-header {
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.hero-header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slogan {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.cta-button:active {
    transform: scale(0.95);
}

.demo-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    animation: slideInFromTop 0.5s ease-out;
}

.demo-links {
    margin-top: 20px;
}

.demo-link {
    display: inline-block;
    background: var(--light-color);
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.demo-link:hover {
    background: var(--primary-color);
    color: white;
}

.demo-link span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

.how-it-works {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step p {
    color: #666;
    line-height: 1.6;
}

.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   TODO APP STYLES
======================================== */

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

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    animation: fadeInDown 1s ease-out;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.list-info {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.list-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.share-btn, .home-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-btn:hover, .home-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Gamification Dashboard */
.gamification-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    animation: slideInFromTop 1s ease-out;
}

.level-display {
    text-align: center;
    background: linear-gradient(135deg, var(--gold-color) 0%, #ffed4e 100%);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.level-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8b4513;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.level-title {
    font-size: 1rem;
    color: #8b4513;
    font-weight: bold;
}

.xp-container {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 15px;
}

.xp-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.xp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.streak-counter {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 15px;
    padding: 15px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.streak-counter::before {
    content: '🔥';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 2rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.achievements-mini {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 15px;
    padding: 15px;
    color: white;
    text-align: center;
}

/* Task Sections */
.task-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.task-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    min-height: 600px;
}

.section-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: headerShine 3s infinite;
}

@keyframes headerShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-count {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.task-input-section {
    padding: 30px;
}

.priority-section {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}

.priority-btn {
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0.5;
    color: white;
}

.priority-btn.selected {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.priority-btn.high { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%); }
.priority-btn.medium { background: linear-gradient(135deg, var(--warning-color) 0%, #ff8c00 100%); }
.priority-btn.low { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%); }

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.task-input, .timer-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.task-input:focus, .timer-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.add-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

/* Task Lists */
.task-list {
    padding: 0 30px 30px 30px;
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--light-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.task-item:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.task-item.completing {
    animation: taskComplete 1s ease-out forwards;
}

/* ========================================
   COMPLETED TASKS STYLING - KRITISCH!
======================================== */

.task-item.completed {
    opacity: 0.65 !important;
    background: linear-gradient(135deg, #e8f5e8 0%, #d1edcc 100%) !important;
    border-left-color: var(--success-color) !important;
}

.task-item.completed:hover {
    opacity: 0.85 !important;
    transform: translateX(3px) scale(1.01) !important;
}

.task-item.completed .task-text {
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    text-decoration-color: #6c757d !important;
    color: #6c757d !important;
    font-style: italic !important;
}

.task-item.completed .task-meta {
    opacity: 0.7 !important;
    color: #8a8a8a !important;
}

.task-item.completed .priority-badge {
    opacity: 0.6 !important;
    filter: grayscale(30%) !important;
}

.task-item.completed .delete-btn {
    opacity: 0.7 !important;
    background: rgba(220, 53, 69, 0.5) !important;
}

.task-item.completed .delete-btn:hover {
    opacity: 1 !important;
    background: var(--danger-color) !important;
}

.task-item.completed .task-checkbox {
    accent-color: var(--success-color) !important;
    transform: scale(1.1) !important;
}

/* ========================================
   ENDE COMPLETED TASKS STYLING
======================================== */

.task-item.removing {
    animation: taskRemove 0.8s ease-out forwards;
}

.task-item.high-priority { border-left-color: #ff6b6b; }
.task-item.medium-priority { border-left-color: var(--warning-color); }
.task-item.low-priority { border-left-color: #4ecdc4; }

/* Task Completion Animation */
@keyframes taskComplete {
    0% {
        transform: scale(1);
        background: var(--light-color);
    }
    25% {
        transform: scale(1.1);
        background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
        color: white;
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.6);
    }
    50% {
        transform: scale(1.05) rotateZ(2deg);
        background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    }
    75% {
        transform: scale(1.02) rotateZ(-1deg);
        background: linear-gradient(135deg, #e8f5e8 0%, #d1edcc 100%);
        color: var(--dark-color);
    }
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, #e8f5e8 0%, #d1edcc 100%);
        color: var(--dark-color);
    }
}

@keyframes taskRemove {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-20px) scale(0.9);
        background: #ff6b6b;
        color: white;
    }
    100% {
        opacity: 0;
        transform: translateX(-100px) scale(0);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

/* Strikethrough Animation */
.task-item.completing .task-text {
    animation: strikethrough 0.6s ease-out forwards;
}

@keyframes strikethrough {
    0% {
        text-decoration: none;
        color: inherit;
    }
    50% {
        text-decoration: line-through;
        text-decoration-thickness: 1px;
        color: #6c757d;
    }
    100% {
        text-decoration: line-through;
        text-decoration-thickness: 2px;
        text-decoration-color: #6c757d;
        color: #6c757d;
        font-style: italic;
    }
}

/* Celebration Effects */
.celebration-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gold-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: celebrate 2s ease-out forwards;
}

@keyframes celebrate {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-200px);
    }
}

.xp-popup {
    position: fixed;
    background: linear-gradient(135deg, var(--gold-color) 0%, #ffed4e 100%);
    color: #8b4513;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    z-index: 1001;
    animation: xpGain 2s ease-out forwards;
    pointer-events: none;
}

@keyframes xpGain {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(0);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) translateY(-20px);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateY(-40px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-80px);
    }
}

.task-checkbox {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--success-color);
    transform: scale(1.2);
}

.task-content {
    flex: 1;
}

.task-text {
    font-size: 16px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

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

.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.priority-badge.high { background: #ff6b6b; }
.priority-badge.medium { background: var(--warning-color); }
.priority-badge.low { background: #4ecdc4; }

.delete-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Timer Section */
.timer-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.timer-section {
    text-align: center;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timer-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pomodoro-presets {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: var(--primary-color);
    color: white;
}

.progress-section {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 0%;
    transition: width 1s ease;
}

.timer-active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Statistics */
.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ========================================
   SHARE MODAL STYLES - ERWEITERT MIT FIXES
======================================== */

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    backdrop-filter: blur(5px) !important;
}

.modal-content {
    background: white !important;
    border-radius: 20px !important;
    padding: 40px !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    margin-bottom: 20px !important;
    color: var(--primary-color) !important;
    text-align: center !important;
    font-size: 1.5rem !important;
}

.modal-content p {
    margin-bottom: 20px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.share-url-container {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 30px !important;
    align-items: center !important;
}

.share-url-container input {
    flex: 1 !important;
    padding: 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background: #f8f9fa !important;
    color: #333 !important;
}

.copy-btn {
    padding: 15px 20px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.copy-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

.qr-section {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.qr-section p {
    margin-top: 15px !important;
    font-size: 14px !important;
    color: #666 !important;
}

.modal-close {
    width: 100% !important;
    padding: 15px !important;
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.modal-close:hover {
    background: #5a6268 !important;
    transform: translateY(-2px) !important;
}

/* QR Code Fallback Styles */
#qrCode {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 220px !important;
}

#qrFallback {
    display: flex !important;
    width: 200px !important;
    height: 200px !important;
    background: #f0f0f0 !important;
    border: 2px dashed #ccc !important;
    border-radius: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    flex-direction: column !important;
}

/* ========================================
   NOTIFICATIONS
======================================== */

.notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    padding: 15px 25px !important;
    border-radius: 10px !important;
    color: white !important;
    font-weight: bold !important;
    z-index: 10000 !important;
    transform: translateX(400px) !important;
    transition: all 0.3s ease !important;
    max-width: 300px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.notification.show {
    transform: translateX(0) !important;
}

.notification.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%) !important;
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ff8c00 100%) !important;
}

.notification.info {
    background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%) !important;
}

.notification.error {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%) !important;
}

/* ========================================
   ANIMATIONS
======================================== */

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

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

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
    .task-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gamification-bar {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 2.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .list-info {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .timer-btn {
        width: 100%;
    }
    
    .pomodoro-presets {
        flex-direction: column;
        gap: 8px;
    }
    
    .preset-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .task-input-section {
        padding: 20px;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    .add-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .priority-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .priority-btn {
        width: 100%;
        padding: 12px;
    }
    
    .modal-content {
        padding: 30px 20px !important;
        margin: 20px !important;
        width: calc(100% - 40px) !important;
    }
    
    .share-url-container {
        flex-direction: column !important;
    }
    
    .share-url-container input {
        margin-bottom: 10px !important;
    }
    
    .copy-btn {
        width: 100% !important;
    }
    
    .gamification-bar {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .task-list {
        padding: 0 20px 20px 20px;
        max-height: 300px;
    }
    
    .task-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .task-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .delete-btn {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-header h1 {
        font-size: 2rem;
    }
    
    .hero-slogan {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .level-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .task-text {
        font-size: 14px;
    }
    
    .task-meta {
        font-size: 11px;
    }
    
    .notification {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .hero-container,
    .timer-card,
    .gamification-bar,
    .modal-overlay,
    .notification {
        display: none !important;
    }
    
    .task-sections {
        grid-template-columns: 1fr;
    }
    
    .task-item {
        break-inside: avoid;
        margin-bottom: 5px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   DARK MODE PREPARATION
======================================== */

@media (prefers-color-scheme: dark) {
    /* Hier können später Dark Mode Styles eingefügt werden */
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

button:focus,
input:focus,
.task-checkbox:focus {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .task-item {
        border: 2px solid;
    }
    
    .priority-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}