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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette – Modern & Vibrant */
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --primary-glow: rgba(79, 70, 229, 0.35);
    --secondary-color: #06d6a0;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --danger-color: #ef4444;
    --danger-light: #fca5a5;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    --bg-sidebar: #0f172a;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Border & Shadow – Layered depth system */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius – Softer, more modern */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Dark Mode Theme ===== */
body.dark-mode {
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1a2332;
    --bg-dark: #000000;
    --bg-sidebar: #080d19;
    --bg-card: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    
    --border-color: #2d3b4f;
    --border-light: #1e293b;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
    --primary-glow: rgba(129, 140, 248, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
}

/* ===== Container & Layout ===== */
.container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 300px;
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, #0a0f1e 100%);
    color: var(--text-white);
    padding: var(--spacing-lg);
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-white);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

/* Progress Overview */
.progress-overview {
    background: rgba(255, 255, 255, 0.04);
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.progress-overview h3 {
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-light));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

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

#progressPercent {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Navigation */
.nav-menu {
    margin-top: var(--spacing-lg);
}

.nav-btn, .lf-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-btn:hover, .lf-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    transform: translateX(4px);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.lernfelder-list {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lernfelder-list h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}

.lf-btn {
    font-size: 0.875rem;
    padding: var(--spacing-xs) var(--spacing-md);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: 300px;
    flex: 1;
    padding: var(--spacing-xl);
    max-width: 1400px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.content-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

/* ===== Dashboard Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Quick Access Cards ===== */
.quick-access {
    margin-top: var(--spacing-xl);
}

.quick-access h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.quick-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.quick-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(6, 214, 160, 0.03));
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.quick-card:hover::after {
    opacity: 1;
}

.quick-card h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 700;
}

.quick-card p {
    color: var(--text-secondary);
}

/* ===== Lernfeld Cards ===== */
.lernfeld-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.lf-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.lf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.lf-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.lf-card:hover::before {
    transform: scaleX(1);
}

.lf-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.lf-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lf-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.topic-count {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(129, 140, 248, 0.08));
    color: var(--primary-color);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.lf-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
}

.lf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-light));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Quiz Section ===== */
.quiz-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.quiz-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.quiz-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.quiz-card:hover::before {
    transform: scaleX(1);
}

.quiz-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
}

.quiz-card.highlight:hover {
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.4);
}

.quiz-card.highlight h3,
.quiz-card.highlight p {
    color: var(--text-white);
}

.quiz-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.quiz-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.quiz-questions {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.quiz-card.highlight .quiz-questions {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

/* ===== Quiz Active ===== */
.quiz-container {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.quiz-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.quiz-progress {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.quiz-question {
    margin-bottom: var(--spacing-xl);
}

.quiz-question h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    line-height: 1.6;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.answer-option {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1rem;
    position: relative;
}

.answer-option:hover {
    background: var(--bg-primary);
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.answer-option.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.answer-option.correct {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.answer-option.incorrect {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ===== Kalkulationen ===== */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.calc-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: all var(--transition-smooth);
}

.calc-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.calc-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.calc-input {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.calc-input label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.calc-input input,
.calc-input select {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.calc-input input:focus,
.calc-input select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-input button {
    margin-top: var(--spacing-sm);
}

.calc-result {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.calc-result h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.calc-result p {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

/* ===== AP Vorbereitung ===== */
.ap-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.ap-card {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.ap-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.ap-details p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.ap-details strong {
    color: var(--text-primary);
}

.ap-details ul {
    list-style: none;
    margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-md);
}

.ap-details li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
}

.ap-details li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.ap-details button {
    margin-top: var(--spacing-md);
    width: 100%;
}

/* ===== Study Tips ===== */
.study-tips {
    margin-top: var(--spacing-xl);
}

.study-tips h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.tip-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--text-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.tip-card h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.tip-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ===== Data Management ===== */
.data-management {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.data-btn {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.data-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: 500;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.dark-mode .theme-btn {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

body.dark-mode .topic-item.completed {
    background: rgba(6, 214, 160, 0.12);
}

.data-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.data-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.data-info {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.data-info p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.data-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.data-actions button {
    flex: 1;
    min-width: 150px;
}

/* ===== Lernfeld Detail ===== */
.lernfeld-detail-content {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.lernfeld-detail-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.topic-item {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.topic-item:hover {
    background: var(--bg-primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-light);
}

.topic-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.topic-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.topic-item.completed {
    opacity: 0.75;
    background: rgba(6, 214, 160, 0.06);
    border-left-color: var(--secondary-color);
}

.topic-item.completed::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: bold;
}

/* ===== Topic Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(79, 70, 229, 0.08);
    max-width: 920px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.03), transparent);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
    border-color: transparent;
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-body h4 {
    color: var(--primary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.modal-body ul, .modal-body ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.modal-body li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.modal-body pre {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--spacing-md) 0;
}

.modal-body .info-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: var(--spacing-md) 0;
    color: #000;
}

.modal-body .warning-box {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    margin: var(--spacing-md) 0;
    color: #000;
}

.modal-body .warning-box strong,
.modal-body .info-box strong,
.modal-body .example-box strong {
    color: #000;
}

.modal-body .example-box {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid #9c27b0;
    margin: var(--spacing-md) 0;
    color: #000;
}

.modal-body .example-box pre {
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

/* ===== Dark Mode Anpassungen für Content-Boxen ===== */
body.dark-mode .modal-body .info-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.1));
    color: var(--text-primary);
    border-left: 4px solid var(--primary-light);
}

body.dark-mode .modal-body .warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
}

body.dark-mode .modal-body .example-box {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
    color: var(--text-primary);
    border-left: 4px solid #ba68c8;
}

body.dark-mode .modal-body .warning-box strong,
body.dark-mode .modal-body .info-box strong,
body.dark-mode .modal-body .example-box strong {
    color: var(--text-white);
}

body.dark-mode .modal-body .example-box pre {
    background: rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

body.dark-mode .modal-body pre {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

body.dark-mode .modal-body code {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

.modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    background: var(--bg-secondary);
}

.topic-content-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.topic-content-section:last-child {
    border-bottom: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    /* --- Grids auf 1 Spalte --- */
    .stats-grid,
    .quick-cards,
    .lernfeld-overview,
    .quiz-selection,
    .calc-grid,
    .ap-info,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    /* --- Typografie verkleinern --- */
    .content-section h2 {
        font-size: 1.45rem;
        letter-spacing: -0.01em;
    }

    .subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.25rem;
    }

    .quick-access h3,
    .data-section h3,
    .study-tips h3 {
        font-size: 1.2rem;
    }

    /* --- Stat Cards kompakter --- */
    .stat-card {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .stat-icon {
        font-size: 1.6rem;
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .stat-info h3 {
        font-size: 1.4rem;
    }

    .stat-info p {
        font-size: 0.78rem;
    }

    /* --- Quick Cards kompakter --- */
    .quick-card {
        padding: 1rem 1.1rem;
    }

    .quick-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
    }

    .quick-card p {
        font-size: 0.85rem;
    }

    /* --- Lernfeld Cards --- */
    .lf-card {
        padding: 1rem 1.1rem;
    }

    .lf-card h3 {
        font-size: 1.05rem;
    }

    .lf-card p {
        font-size: 0.82rem;
    }

    /* --- Quiz --- */
    .quiz-container {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .quiz-header h3 {
        font-size: 1.15rem;
    }

    .quiz-question h4 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .answer-option {
        padding: 0.75rem 0.85rem;
        font-size: 0.92rem;
    }

    .quiz-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .quiz-controls .btn-primary,
    .quiz-controls .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .quiz-card {
        padding: 1.25rem;
    }

    .quiz-card h3 {
        font-size: 1.25rem;
    }

    /* --- Kalkulationen --- */
    .calc-card {
        padding: 1rem;
    }

    .calc-card h3 {
        font-size: 1.1rem;
    }

    /* --- AP Vorbereitung --- */
    .ap-card {
        padding: 1.25rem;
    }

    .ap-card h3 {
        font-size: 1.2rem;
    }

    /* --- Tips --- */
    .tip-card {
        padding: 1rem;
    }

    .tip-card h4 {
        font-size: 1rem;
    }

    .tip-card p {
        font-size: 0.88rem;
    }

    /* --- Daten-Bereich --- */
    .data-info {
        padding: 1rem;
    }

    .data-info p {
        font-size: 0.88rem;
    }

    .data-actions {
        flex-direction: column;
    }

    .data-actions button {
        min-width: unset;
        width: 100%;
    }

    /* --- Modal für Mobile --- */
    .modal-content {
        width: 97%;
        max-height: 90vh;
        border-radius: var(--radius-lg);
        margin: 0.5rem;
    }

    .modal-header {
        padding: 0.85rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.15rem;
    }

    .modal-close {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-body h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .modal-body h4 {
        font-size: 1rem;
    }

    .modal-body p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .modal-body ul, .modal-body ol {
        padding-left: 1.25rem;
    }

    .modal-body li {
        font-size: 0.9rem;
    }

    .modal-body pre {
        padding: 0.75rem;
        font-size: 0.82rem;
    }

    .modal-body .info-box,
    .modal-body .warning-box,
    .modal-body .example-box {
        padding: 0.75rem;
        font-size: 0.88rem;
    }

    .modal-body table {
        font-size: 0.82rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-body table th,
    .modal-body table td {
        padding: 0.5rem;
        white-space: nowrap;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
    }

    /* --- Lernfeld Detail --- */
    .lernfeld-detail-content {
        padding: 1rem;
    }

    .lernfeld-detail-content h3 {
        font-size: 1.3rem;
    }

    .topic-item {
        padding: 0.75rem 1rem;
    }

    .topic-item h4 {
        font-size: 0.95rem;
    }

    .topic-item p {
        font-size: 0.8rem;
    }

    /* --- Buttons --- */
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1.1rem;
        font-size: 0.88rem;
    }

    /* --- Wiederholungen --- */
    .repeat-item {
        padding: 0.85rem 1rem;
    }
}

/* ===== Kleine Smartphones (max 480px) ===== */
@media (max-width: 480px) {
    .main-content {
        padding: 0.65rem;
    }

    .content-section h2 {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    /* Stat Cards noch kompakter */
    .stats-grid {
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.7rem 0.85rem;
        gap: 0.6rem;
        border-radius: var(--radius-lg);
    }

    .stat-icon {
        font-size: 1.3rem;
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .stat-info h3 {
        font-size: 1.15rem;
    }

    .stat-info p {
        font-size: 0.72rem;
    }

    /* Quick Cards enger */
    .quick-cards {
        gap: 0.5rem;
    }

    .quick-card {
        padding: 0.85rem 1rem;
    }

    .quick-card h4 {
        font-size: 0.95rem;
    }

    .quick-card p {
        font-size: 0.8rem;
    }

    /* Quiz */
    .quiz-container {
        padding: 0.75rem;
    }

    .quiz-header h3 {
        font-size: 1rem;
    }

    .quiz-question h4 {
        font-size: 0.95rem;
    }

    .answer-option {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Modal */
    .modal-content {
        width: 99%;
        max-height: 93vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 0.7rem 0.85rem;
    }

    .modal-header h2 {
        font-size: 1.05rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-body h3 {
        font-size: 1rem;
    }

    .modal-body p {
        font-size: 0.85rem;
    }

    .modal-footer {
        padding: 0.6rem 0.85rem;
    }

    /* Lernfeld Cards */
    .lf-card {
        padding: 0.85rem 1rem;
    }

    .lf-card h3 {
        font-size: 1rem;
    }

    /* Kalkulationen */
    .calc-card {
        padding: 0.85rem;
    }

    /* AP-Vorbereitung */
    .ap-card {
        padding: 1rem;
    }

    .ap-card h3 {
        font-size: 1.05rem;
    }

    /* Data section */
    .data-info {
        padding: 0.85rem;
    }

    .data-info p {
        font-size: 0.82rem;
    }

    /* Topic Detail */
    .lernfeld-detail-content {
        padding: 0.75rem;
    }

    .lernfeld-detail-content h3 {
        font-size: 1.15rem;
    }

    .topic-item {
        padding: 0.65rem 0.85rem;
    }

    .topic-item h4 {
        font-size: 0.9rem;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== Suchfunktion ===== */
.search-container {
    position: relative;
    margin-bottom: var(--spacing-md);
}

#globalSearch {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    font-family: inherit;
}

#globalSearch:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-result-item:hover {
    background: var(--bg-secondary);
    padding-left: calc(var(--spacing-md) + 4px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.search-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-md);
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 0.5rem;
    letter-spacing: 0.02em;
}

/* ===== Streak-Anzeige ===== */
.streak-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fbbf24 100%);
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(247, 147, 30, 0.35);
}

.streak-icon {
    font-size: 1.5rem;
    animation: flicker 2s infinite;
}

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

/* ===== Favoriten ===== */
.favoriten-list {
    margin-top: var(--spacing-md);
}

.lf-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 0.5rem;
    letter-spacing: 0.02em;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== Statistiken ===== */
.stats-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-detail-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.stat-detail-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.activity-chart {
    margin-top: var(--spacing-md);
}

#activityCanvas {
    width: 100%;
    height: auto;
}

.lernfeld-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.lf-stat-item {
    background: var(--bg-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.lf-stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-light);
}

.achievement-badge.unlocked {
    background: linear-gradient(135deg, #06d6a0 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(6, 214, 160, 0.3);
    border-color: transparent;
}

.achievement-badge.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 2rem;
}

.achievement-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.achievement-info p {
    font-size: 0.875rem;
    margin: 0;
}

.time-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.time-stat {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.time-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.time-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* ===== Lernziele ===== */
.goal-creator {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-light);
}

.goal-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.goal-form select,
.goal-form input {
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.goal-form select {
    flex: 1;
    min-width: 150px;
}

.goal-form input {
    flex: 1;
    min-width: 100px;
}

.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.goal-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-smooth);
}

.goal-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.goal-card.completed {
    border-left-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.goal-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.goal-progress {
    margin-top: var(--spacing-sm);
}

.goal-progress span {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.goal-completed {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--secondary-color);
    color: white;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
}

/* ===== Wiederholungen ===== */
.repeat-info {
    margin-bottom: var(--spacing-lg);
}

.repeat-info .info-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.25);
}

.repeat-info .info-box h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.repeat-info ul {
    margin-top: var(--spacing-sm);
    padding-left: var(--spacing-lg);
}

.repeat-info li {
    margin-bottom: 0.5rem;
}

.repeat-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.repeat-item {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border-left: 4px solid;
    border-right: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.repeat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.repeat-item.priority-high {
    border-left-color: #ef4444;
}

.repeat-item.priority-medium-high {
    border-left-color: #f59e0b;
}

.repeat-item.priority-medium {
    border-left-color: #eab308;
}

.repeat-item.priority-low {
    border-left-color: #10b981;
}

.repeat-priority {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.repeat-info h4 {
    margin: 0;
    color: var(--text-primary);
}

.repeat-info p {
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.repeat-info small {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ===== Tabellen-Styling ===== */
.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-body table th,
.modal-body table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.modal-body table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.modal-body table tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Farbige Tabellenzeilen mit schwarzem Text */
.modal-body table tr[style*="background"] td,
.modal-body table tr[style*="background"] th {
    color: #000 !important;
}

body.dark-mode .modal-body table tr[style*="background"] td,
body.dark-mode .modal-body table tr[style*="background"] th {
    color: #000 !important;
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 768px) {
    .search-results {
        max-height: 300px;
    }
    
    .stats-details {
        grid-template-columns: 1fr;
    }
    
    .time-stats {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-form {
        flex-direction: column;
    }
    
    .goal-form select,
    .goal-form input {
        width: 100%;
    }
    
    .goals-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Touch-Geräte: Hover-Effekte reduzieren ===== */
@media (hover: none) and (pointer: coarse) {
    .quick-card:hover,
    .stat-card:hover,
    .lf-card:hover,
    .quiz-card:hover,
    .topic-item:hover {
        transform: none;
    }

    .quick-card:active,
    .stat-card:active,
    .lf-card:active,
    .quiz-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ===== Große Bildschirme (ab 1920px) ===== */
@media (min-width: 1920px) {
    .main-content {
        max-width: 1800px;
        padding: var(--spacing-xl) 3rem;
    }

    .sidebar {
        width: 340px;
    }

    .main-content {
        margin-left: 340px;
    }

    /* Typografie */
    .content-section h2 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.15rem;
    }

    /* Grids */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }

    .quick-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .lernfeld-overview {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .quiz-selection {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .stats-details {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .goals-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Cards */
    .stat-card {
        padding: var(--spacing-lg) var(--spacing-xl);
    }

    .stat-icon {
        font-size: 2.75rem;
        width: 76px;
        height: 76px;
    }

    .stat-info h3 {
        font-size: 2.25rem;
    }

    .stat-info p {
        font-size: 0.95rem;
    }

    .quick-card {
        padding: var(--spacing-xl);
    }

    .quick-card h4 {
        font-size: 1.3rem;
    }

    .quick-card p {
        font-size: 1rem;
    }

    .lf-card {
        padding: var(--spacing-xl);
    }

    .lf-card h3 {
        font-size: 1.35rem;
    }

    .lf-card p {
        font-size: 1rem;
    }

    .quiz-card {
        padding: var(--spacing-xl) calc(var(--spacing-xl) + 0.5rem);
    }

    .quiz-card h3 {
        font-size: 1.65rem;
    }

    .quiz-card p {
        font-size: 1.05rem;
    }

    /* Quiz */
    .quiz-question h4 {
        font-size: 1.25rem;
    }

    .answer-option {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
    }

    /* Navigation */
    .nav-btn, .lf-btn {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .logo h1 {
        font-size: 1.65rem;
    }

    .logo p {
        font-size: 0.95rem;
    }

    /* Modal */
    .modal-content {
        max-width: 900px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        font-size: 1.05rem;
    }

    .modal-body h3 {
        font-size: 1.35rem;
    }

    .modal-body p {
        font-size: 1.05rem;
    }

    /* Suche */
    #globalSearch {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 9px;
    }

    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }

    /* Streak */
    .streak-display {
        font-size: 1.05rem;
    }

    /* Statistiken */
    .time-value {
        font-size: 1.75rem;
    }

    .time-label {
        font-size: 0.85rem;
    }

    .achievement-icon {
        font-size: 2.25rem;
    }

    /* Lernziele */
    .goal-card {
        padding: var(--spacing-xl);
    }

    /* Wiederholungen */
    .repeat-item {
        padding: var(--spacing-xl);
    }

    /* Favoriten */
    .search-result-item {
        padding: var(--spacing-md);
    }

    .search-result-item p {
        font-size: 0.95rem;
    }
}

/* ===== QHD / 2K & 4K mit Skalierung (ab 2560px) ===== */
@media (min-width: 2560px) {
    .main-content {
        max-width: 2200px;
        padding: 3rem 4rem;
    }

    .sidebar {
        width: 380px;
        padding: var(--spacing-xl);
    }

    .main-content {
        margin-left: 380px;
    }

    /* Typografie hochskalieren */
    .content-section h2 {
        font-size: 2.75rem;
    }

    .subtitle {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }

    .quick-access h3,
    .data-section h3,
    .study-tips h3 {
        font-size: 1.85rem;
        margin-bottom: var(--spacing-lg);
    }

    /* Grids */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .quick-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .lernfeld-overview {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .quiz-selection {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .stats-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .goals-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

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

    .time-stats {
        gap: 2rem;
    }

    /* Stat Cards */
    .stat-card {
        padding: 2rem 2.5rem;
        gap: 1.75rem;
        border-radius: var(--radius-2xl);
    }

    .stat-icon {
        font-size: 3.25rem;
        width: 90px;
        height: 90px;
        border-radius: var(--radius-xl);
    }

    .stat-info h3 {
        font-size: 2.75rem;
    }

    .stat-info p {
        font-size: 1.1rem;
    }

    /* Quick Cards */
    .quick-card {
        padding: 2rem 2.25rem;
        border-radius: var(--radius-2xl);
    }

    .quick-card h4 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .quick-card p {
        font-size: 1.1rem;
    }

    /* Lernfeld Cards */
    .lf-card {
        padding: 2rem 2.25rem;
        border-radius: var(--radius-2xl);
    }

    .lf-number {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .lf-card h3 {
        font-size: 1.5rem;
    }

    .lf-card p {
        font-size: 1.05rem;
    }

    .topic-count {
        font-size: 0.88rem;
        padding: 0.35rem 0.85rem;
    }

    .lf-progress {
        height: 8px;
    }

    /* Quiz Cards */
    .quiz-card {
        padding: 2.5rem;
        border-radius: var(--radius-2xl);
    }

    .quiz-card h3 {
        font-size: 1.85rem;
    }

    .quiz-card p {
        font-size: 1.15rem;
    }

    /* Quiz Inhalte */
    .quiz-question h4 {
        font-size: 1.4rem;
    }

    .answer-option {
        padding: 1.15rem 1.5rem;
        font-size: 1.15rem;
        border-radius: var(--radius-lg);
    }

    /* Navigation (Sidebar) */
    .nav-btn, .lf-btn {
        font-size: 1.1rem;
        padding: 1.1rem var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    .lf-btn {
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 1.85rem;
    }

    .logo p {
        font-size: 1.05rem;
    }

    .progress-overview h3 {
        font-size: 0.9rem;
    }

    #progressPercent {
        font-size: 1rem;
    }

    .progress-bar {
        height: 10px;
    }

    /* Modal */
    .modal-content {
        max-width: 1100px;
    }

    .modal-header {
        padding: 1.5rem 2rem;
    }

    .modal-header h2 {
        font-size: 1.75rem;
    }

    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 2rem 2.5rem;
        font-size: 1.15rem;
        line-height: 1.75;
    }

    .modal-body h3 {
        font-size: 1.55rem;
    }

    .modal-body h4 {
        font-size: 1.3rem;
    }

    .modal-body p {
        font-size: 1.15rem;
    }

    .modal-body li {
        font-size: 1.1rem;
    }

    .modal-body pre {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .modal-body code {
        font-size: 1rem;
    }

    .modal-body table th,
    .modal-body table td {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
    }

    .modal-footer {
        padding: 1.5rem 2rem;
    }

    /* Suche */
    #globalSearch {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-xl);
    }

    .search-results {
        max-height: 500px;
    }

    .search-result-item {
        padding: 1rem 1.5rem;
    }

    .search-result-item strong {
        font-size: 1.1rem;
    }

    .search-result-item p {
        font-size: 1rem;
    }

    .search-badge {
        font-size: 0.82rem;
        padding: 0.2rem 0.65rem;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 10px;
    }

    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: var(--radius-lg);
    }

    /* Streak */
    .streak-display {
        font-size: 1.15rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .streak-icon {
        font-size: 1.85rem;
    }

    /* Statistiken */
    .stat-detail-card {
        padding: 2rem;
        border-radius: var(--radius-2xl);
    }

    .stat-detail-card h3 {
        font-size: 1.35rem;
    }

    .time-value {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.9rem;
    }

    .time-stat {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
    }

    .achievement-icon {
        font-size: 2.5rem;
    }

    .achievement-badge {
        padding: 1rem 1.25rem;
        border-radius: var(--radius-xl);
    }

    .achievement-info strong {
        font-size: 1.05rem;
    }

    .achievement-info p {
        font-size: 0.95rem;
    }

    /* Lernziele */
    .goal-creator {
        padding: 2rem;
        border-radius: var(--radius-2xl);
    }

    .goal-form select,
    .goal-form input {
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
    }

    .goal-card {
        padding: 2rem;
        border-radius: var(--radius-2xl);
    }

    .goal-header h4 {
        font-size: 1.15rem;
    }

    /* Wiederholungen */
    .repeat-item {
        padding: 2rem;
        border-radius: var(--radius-2xl);
    }

    .repeat-priority {
        font-size: 1rem;
    }

    .repeat-info h4 {
        font-size: 1.15rem;
    }

    .repeat-info p {
        font-size: 1rem;
    }

    /* Favoriten */
    .icon-btn {
        font-size: 1.5rem;
    }

    .lf-badge {
        font-size: 0.82rem;
    }

    /* Lernfeld Detail */
    .lernfeld-detail-content h3 {
        font-size: 1.65rem;
    }

    .topic-item {
        padding: 1.25rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .topic-item h4 {
        font-size: 1.15rem;
    }

    .topic-item p {
        font-size: 1rem;
    }

    /* Lernfelder Section Header */
    .lernfelder-list h4 {
        font-size: 0.85rem;
    }
}

/* ===== 4K UHD Bildschirme ohne Skalierung (ab 3840px) ===== */
@media (min-width: 3840px) {
    body {
        font-size: 1.25rem;
    }

    .main-content {
        max-width: 3200px;
        padding: 4rem 5rem;
    }

    .sidebar {
        width: 460px;
        padding: 2.5rem;
    }

    .main-content {
        margin-left: 460px;
    }

    /* Typografie */
    .content-section h2 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1.6rem;
        margin-bottom: 3.5rem;
    }

    .quick-access h3,
    .data-section h3,
    .study-tips h3 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    /* Grids */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .quick-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .lernfeld-overview {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .quiz-selection {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .stats-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .goals-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

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

    .time-stats {
        gap: 2.5rem;
    }

    /* Stat Cards */
    .stat-card {
        padding: 2.5rem 3rem;
        gap: 2rem;
    }

    .stat-icon {
        font-size: 4rem;
        width: 110px;
        height: 110px;
    }

    .stat-info h3 {
        font-size: 3.5rem;
    }

    .stat-info p {
        font-size: 1.35rem;
    }

    /* Quick Cards */
    .quick-card {
        padding: 2.5rem 3rem;
    }

    .quick-card h4 {
        font-size: 1.85rem;
    }

    .quick-card p {
        font-size: 1.35rem;
    }

    /* Lernfeld Cards */
    .lf-card {
        padding: 2.5rem 3rem;
    }

    .lf-number {
        font-size: 1.1rem;
        padding: 0.5rem 1.25rem;
    }

    .lf-card h3 {
        font-size: 1.85rem;
    }

    .lf-card p {
        font-size: 1.3rem;
    }

    .topic-count {
        font-size: 1.05rem;
        padding: 0.45rem 1rem;
    }

    .lf-progress {
        height: 10px;
    }

    /* Quiz Cards */
    .quiz-card {
        padding: 3rem;
    }

    .quiz-card h3 {
        font-size: 2.25rem;
    }

    .quiz-card p {
        font-size: 1.4rem;
    }

    /* Quiz Inhalte */
    .quiz-question h4 {
        font-size: 1.75rem;
    }

    .answer-option {
        padding: 1.5rem 2rem;
        font-size: 1.4rem;
    }

    /* Navigation */
    .nav-btn {
        font-size: 1.3rem;
        padding: 1.25rem 1.75rem;
    }

    .lf-btn {
        font-size: 1.2rem;
        padding: 0.85rem 1.75rem;
    }

    .logo h1 {
        font-size: 2.25rem;
    }

    .logo p {
        font-size: 1.25rem;
    }

    .progress-overview h3 {
        font-size: 1.05rem;
    }

    #progressPercent {
        font-size: 1.15rem;
    }

    .progress-bar {
        height: 12px;
    }

    /* Modal */
    .modal-content {
        max-width: 1500px;
    }

    .modal-header {
        padding: 2rem 2.5rem;
    }

    .modal-header h2 {
        font-size: 2.15rem;
    }

    .modal-close {
        width: 52px;
        height: 52px;
        font-size: 1.75rem;
    }

    .modal-body {
        padding: 2.5rem 3rem;
        font-size: 1.35rem;
        line-height: 1.8;
    }

    .modal-body h3 {
        font-size: 1.85rem;
    }

    .modal-body h4 {
        font-size: 1.55rem;
    }

    .modal-body p {
        font-size: 1.35rem;
    }

    .modal-body li {
        font-size: 1.3rem;
    }

    .modal-body pre {
        font-size: 1.2rem;
        padding: 1.75rem;
    }

    .modal-body code {
        font-size: 1.15rem;
    }

    .modal-body table th,
    .modal-body table td {
        padding: 1.25rem 1.5rem;
        font-size: 1.25rem;
    }

    .modal-footer {
        padding: 2rem 2.5rem;
    }

    /* Suche */
    #globalSearch {
        font-size: 1.3rem;
        padding: 1.25rem 2rem;
    }

    .search-results {
        max-height: 600px;
    }

    .search-result-item {
        padding: 1.25rem 2rem;
    }

    .search-result-item strong {
        font-size: 1.25rem;
    }

    .search-result-item p {
        font-size: 1.15rem;
    }

    .search-badge {
        font-size: 0.95rem;
        padding: 0.25rem 0.75rem;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 12px;
    }

    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 1.25rem 2.5rem;
        font-size: 1.3rem;
    }

    /* Streak */
    .streak-display {
        font-size: 1.35rem;
        padding: 1.25rem 1.75rem;
    }

    .streak-icon {
        font-size: 2.25rem;
    }

    /* Statistiken */
    .stat-detail-card {
        padding: 2.5rem;
    }

    .stat-detail-card h3 {
        font-size: 1.65rem;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .time-label {
        font-size: 1.05rem;
    }

    .time-stat {
        padding: 2rem;
    }

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

    .achievement-badge {
        padding: 1.25rem 1.5rem;
    }

    .achievement-info strong {
        font-size: 1.2rem;
    }

    .achievement-info p {
        font-size: 1.1rem;
    }

    /* Lernziele */
    .goal-creator {
        padding: 2.5rem;
    }

    .goal-form select,
    .goal-form input {
        font-size: 1.2rem;
        padding: 1rem 1.25rem;
    }

    .goal-card {
        padding: 2.5rem;
    }

    .goal-header h4 {
        font-size: 1.35rem;
    }

    /* Wiederholungen */
    .repeat-item {
        padding: 2.5rem;
    }

    .repeat-priority {
        font-size: 1.15rem;
    }

    .repeat-info h4 {
        font-size: 1.35rem;
    }

    .repeat-info p {
        font-size: 1.15rem;
    }

    /* Favoriten */
    .icon-btn {
        font-size: 1.75rem;
    }

    .lf-badge {
        font-size: 0.95rem;
    }

    /* Lernfeld Detail */
    .lernfeld-detail-content h3 {
        font-size: 2rem;
    }

    .topic-item {
        padding: 1.5rem 2rem;
    }

    .topic-item h4 {
        font-size: 1.35rem;
    }

    .topic-item p {
        font-size: 1.2rem;
    }

    /* Lernfelder Section Header */
    .lernfelder-list h4 {
        font-size: 1rem;
    }
}