:root {
    --nsr-primary: #8fa89a;
    --nsr-primary-dark: #6d8577;
    --nsr-text: #3a3a3a;
    --nsr-text-light: #6a6a6a;
    --nsr-bg: #f8faf9;
    --nsr-white: #ffffff;
    --nsr-border: #e5e5e5;
    --nsr-sidebar: 280px;
}

.nsr-kurs-container { display: flex; min-height: 100vh; background: var(--nsr-bg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.7; }

/* Sidebar */
.nsr-sidebar { width: var(--nsr-sidebar); background: var(--nsr-white); border-right: 1px solid var(--nsr-border); position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; }
.nsr-sidebar-header { padding: 20px 18px; background: linear-gradient(135deg, var(--nsr-primary), var(--nsr-primary-dark)); color: white; }
.nsr-sidebar-header h2 { font-size: 1.1rem; margin: 0 0 4px; }
.nsr-sidebar-header p { font-size: 0.78rem; margin: 0; opacity: 0.9; }
.nsr-nav { padding: 10px 0; }
.nsr-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: var(--nsr-text) !important; text-decoration: none !important; font-size: 0.88rem; transition: all 0.2s; }
.nsr-nav-item:hover { background: var(--nsr-bg); }
.nsr-nav-item.active { background: var(--nsr-primary); color: white !important; }
.nsr-nav-item.active svg { stroke: white; }
.nsr-nav-item svg { stroke: var(--nsr-text-light); flex-shrink: 0; }
.nsr-nav-divider { height: 1px; background: var(--nsr-border); margin: 10px 18px; }
.nsr-nav-section-title { padding: 8px 18px 4px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--nsr-text-light); }
.nsr-nav-module { margin: 5px 0; }
.nsr-nav-module-header { padding: 8px 18px; }
.nsr-module-week { font-size: 0.62rem; font-weight: 600; color: var(--nsr-primary-dark); text-transform: uppercase; display: block; }
.nsr-module-title { font-size: 0.82rem; font-weight: 600; color: var(--nsr-text); }
.nsr-nav-lessons { background: var(--nsr-bg); }
.nsr-nav-lesson { display: flex; align-items: center; gap: 8px; padding: 9px 18px 9px 26px; color: var(--nsr-text) !important; text-decoration: none !important; font-size: 0.8rem; transition: all 0.2s; }
.nsr-nav-lesson:hover { background: rgba(143,168,154,0.12); }
.nsr-nav-lesson.active { background: rgba(143,168,154,0.22); font-weight: 600; }
.nsr-lesson-id { font-weight: 600; color: var(--nsr-primary-dark); min-width: 22px; }
.nsr-nav-exercise { font-size: 0.82rem; padding: 10px 18px; }

/* Main */
.nsr-main { flex: 1; margin-left: var(--nsr-sidebar); padding: 35px 60px 35px 40px; }
.nsr-main > * { width: 100%; max-width: 900px; }

/* Welcome */
.nsr-welcome { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.nsr-welcome-header { text-align: center; padding: 45px 0; border-bottom: 1px solid var(--nsr-border); margin-bottom: 35px; }
.nsr-welcome-header h1 { font-size: 2rem; color: var(--nsr-primary-dark); margin: 0 0 8px; }
.nsr-subtitle { font-size: 1.05rem; color: var(--nsr-text-light); margin: 0; }
.nsr-welcome-content { font-size: 1rem; line-height: 1.8; }
.nsr-welcome-content h2 { font-size: 1.3rem; color: var(--nsr-primary-dark); margin: 0 0 18px; }
.nsr-welcome-content p { margin-bottom: 16px; }
.nsr-greeting { font-size: 1.05rem; color: var(--nsr-primary-dark); }
.nsr-signature { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--nsr-border); }
.nsr-course-overview { background: var(--nsr-bg); border-radius: 12px; padding: 24px; margin: 28px 0; }
.nsr-course-overview h4 { margin: 0 0 16px; font-size: 1rem; color: var(--nsr-text); }
.nsr-module-preview { display: flex; flex-direction: column; gap: 10px; }
.nsr-module-preview-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: white; border-radius: 8px; border: 1px solid var(--nsr-border); }
.nsr-module-num { width: 28px; height: 28px; background: var(--nsr-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }
.nsr-welcome-cta { text-align: center; padding: 35px 0; }

/* Lesson */
.nsr-lesson { animation: fadeIn 0.4s ease; }
.nsr-lesson-header { margin-bottom: 28px; }
.nsr-breadcrumb { font-size: 0.85rem; color: var(--nsr-text-light); display: block; margin-bottom: 6px; }
.nsr-lesson-header h1 { font-size: 1.6rem; color: var(--nsr-text); margin: 0; line-height: 1.3; }

/* Lesson Content */
.nsr-lesson-content { font-size: 1rem; color: var(--nsr-text); }
.nsr-lesson-content p { margin-bottom: 16px; }
.nsr-lesson-content h4, .nsr-lesson-content .nsr-section-title { font-size: 1.1rem; color: var(--nsr-primary-dark); margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--nsr-primary); font-weight: 600; }
.nsr-lesson-content ul.nsr-list, .nsr-lesson-content ol.nsr-list { margin: 16px 0 16px 22px; }
.nsr-lesson-content li { margin-bottom: 8px; }

/* Übungs-Titel mit Link */
.nsr-exercise-title { margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--nsr-primary); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.nsr-exercise-title h4 { font-size: 1.1rem; color: var(--nsr-primary-dark); margin: 0; font-weight: 600; }
.nsr-try-exercise { font-size: 0.8rem; color: var(--nsr-primary-dark) !important; text-decoration: none !important; background: rgba(143,168,154,0.15); padding: 5px 12px; border-radius: 15px; font-weight: 500; transition: all 0.2s; }
.nsr-try-exercise:hover { background: var(--nsr-primary); color: white !important; }

/* Wichtig/Tipp - elegant */
.nsr-tip-box { margin: 20px 0; padding: 16px 20px; background: linear-gradient(135deg, rgba(143,168,154,0.08), rgba(143,168,154,0.15)); border-radius: 10px; border-left: 4px solid var(--nsr-primary); }
.nsr-tip-box strong { color: var(--nsr-text); font-weight: 600; }

/* Reflexion/Aufgabe Box */
.nsr-reflection-box { margin: 30px 0 20px; padding: 20px 24px; background: linear-gradient(135deg, #f0f5f2, #e8f0eb); border-radius: 12px; border: 1px solid rgba(143,168,154,0.25); }
.nsr-reflection-box h5 { color: var(--nsr-primary-dark); margin: 0; font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nsr-reflection-box h5::before { content: '✦'; color: var(--nsr-primary); }

/* Plan-Titel */
.nsr-plan-title { font-size: 1rem; color: var(--nsr-text); margin: 24px 0 12px; font-weight: 600; }

/* Gefühlsbeschreibung */
.nsr-feeling { font-style: italic; color: var(--nsr-text-light); background: var(--nsr-bg); padding: 12px 16px; border-radius: 8px; margin: 14px 0; border-left: 3px solid var(--nsr-border); }

/* Workbook Link */
.nsr-workbook-link { background: var(--nsr-bg); border-left: 4px solid var(--nsr-primary); padding: 14px 18px; margin: 22px 0; border-radius: 0 8px 8px 0; }
.nsr-workbook-link a { color: var(--nsr-primary-dark) !important; font-weight: 600; text-decoration: none !important; }

/* Exercise Tools Box */
.nsr-exercise-tools { background: linear-gradient(135deg, var(--nsr-primary), var(--nsr-primary-dark)); border-radius: 14px; padding: 20px 24px; margin: 0 0 30px; color: white; }
.nsr-exercise-tools-title { font-size: 0.9rem; margin-bottom: 14px; opacity: 0.95; }
.nsr-exercise-tools-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nsr-exercise-tools-links a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.18); color: white !important; padding: 10px 16px; border-radius: 8px; text-decoration: none !important; font-size: 0.88rem; font-weight: 500; transition: all 0.2s; }
.nsr-exercise-tools-links a:hover { background: rgba(255,255,255,0.28); }
.nsr-exercise-tools-links svg { stroke: white; }

/* Workbook Card - SCHÖN */
.nsr-lesson-workbook, .nsr-workbook-card { background: var(--nsr-white); border-radius: 16px; margin-top: 40px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--nsr-border); }
.nsr-workbook-card { margin-top: 0; margin-bottom: 24px; }
.nsr-workbook-card-header { display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px; background: linear-gradient(135deg, #f8faf9, #f0f5f2); border-bottom: 1px solid var(--nsr-border); }
.nsr-workbook-card-icon { width: 48px; height: 48px; background: var(--nsr-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nsr-workbook-card-icon svg { stroke: white; }
.nsr-workbook-card-header h3 { font-size: 1.05rem; color: var(--nsr-text); margin: 0 0 3px; font-weight: 600; }
.nsr-workbook-card-header p { font-size: 0.82rem; color: var(--nsr-text-light); margin: 0; }
.nsr-workbook-card-body { padding: 26px; }

/* Workbook Page */
.nsr-workbook-page { animation: fadeIn 0.4s ease; }
.nsr-workbook-page-header { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--nsr-border); }
.nsr-workbook-page-header h1 { font-size: 1.6rem; color: var(--nsr-text); margin: 0 0 6px; }
.nsr-workbook-page-header > p { color: var(--nsr-text-light); margin: 0 0 18px; }

/* Fields */
.nsr-fields { display: flex; flex-direction: column; gap: 22px; }
.nsr-field label { display: block; font-weight: 600; color: var(--nsr-text); margin-bottom: 10px; font-size: 0.95rem; }
.nsr-textarea-wrapper { position: relative; }
.nsr-textarea { width: 100%; min-height: 100px; padding: 14px 16px; border: 2px solid var(--nsr-border); border-radius: 10px; font-size: 0.95rem; font-family: inherit; line-height: 1.6; resize: vertical; transition: all 0.2s; background: #fafbfa; }
.nsr-textarea:focus { outline: none; border-color: var(--nsr-primary); background: white; box-shadow: 0 0 0 4px rgba(143,168,154,0.1); }
.nsr-textarea::placeholder { color: #aaa; }
.nsr-save-status { position: absolute; right: 12px; bottom: 12px; font-size: 0.75rem; color: #4caf50; opacity: 0; transition: opacity 0.3s; background: white; padding: 3px 10px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.nsr-save-status.visible { opacity: 1; }

/* Buttons */
.nsr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; text-decoration: none !important; cursor: pointer; border: none; transition: all 0.2s; }
.nsr-btn-primary { background: var(--nsr-primary); color: white !important; }
.nsr-btn-primary:hover { background: var(--nsr-primary-dark); }
.nsr-btn-secondary { background: var(--nsr-bg); color: var(--nsr-text) !important; border: 1px solid var(--nsr-border); }
.nsr-btn-secondary:hover { border-color: var(--nsr-primary); }
.nsr-btn-lg { padding: 14px 32px; font-size: 1rem; }
.nsr-btn svg { flex-shrink: 0; }
.nsr-btn-primary svg { stroke: white; }
.nsr-lesson-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--nsr-border); }

/* Exercise Page */
.nsr-exercise { animation: fadeIn 0.4s ease; text-align: center; }
.nsr-exercise-header { margin-bottom: 35px; }
.nsr-exercise-tag { display: inline-block; background: var(--nsr-primary); color: white; padding: 5px 14px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; margin-bottom: 14px; }
.nsr-exercise-header h1 { font-size: 1.7rem; color: var(--nsr-text); margin: 0 0 8px; }
.nsr-exercise-header p { color: var(--nsr-text-light); margin: 0; }

/* Breathing */
.nsr-breathing-exercise { padding: 30px 0; }
.nsr-breathing-circle { width: 220px; height: 220px; border-radius: 50%; background: linear-gradient(135deg, var(--nsr-primary), var(--nsr-primary-dark)); margin: 0 auto 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; transition: transform 4s ease-in-out; }
.nsr-breathing-circle.inhale { transform: scale(1.18); }
.nsr-breathing-circle.exhale { transform: scale(1); }
.nsr-breathing-text { font-size: 1.4rem; font-weight: 600; }
.nsr-breathing-count { font-size: 2.8rem; font-weight: 700; margin-top: 4px; }
.nsr-exercise-controls { margin-bottom: 22px; }
.nsr-breathing-settings { display: flex; justify-content: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.nsr-breathing-settings label { font-size: 0.85rem; color: var(--nsr-text-light); }
.nsr-breathing-settings select { padding: 4px 8px; border: 1px solid var(--nsr-border); border-radius: 5px; margin-left: 4px; }
.nsr-breathing-progress { color: var(--nsr-text-light); font-size: 0.9rem; }

/* Timer Exercise */
.nsr-timer-exercise { padding: 30px 0; }
.nsr-timer-display { background: var(--nsr-white); border: 2px solid var(--nsr-border); border-radius: 20px; padding: 35px; margin: 0 auto 28px; max-width: 320px; }
.nsr-timer-icon { color: var(--nsr-primary); margin-bottom: 18px; }
.nsr-timer-instruction { font-size: 1.05rem; color: var(--nsr-text); margin-bottom: 18px; line-height: 1.5; }
.nsr-timer-time { font-size: 2.4rem; font-weight: 700; color: var(--nsr-primary-dark); }
.nsr-touch-display { display: flex; flex-direction: column; align-items: center; }
.nsr-touch-body { color: var(--nsr-text-light); margin-bottom: 16px; }
#touch-heart, #touch-belly { opacity: 0.5; transition: all 0.5s; }
#touch-heart.active, #touch-belly.active { opacity: 1; stroke-width: 4; }

/* Steps */
.nsr-exercise-steps { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 28px auto 0; text-align: left; }
.nsr-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--nsr-bg); border-radius: 8px; font-size: 0.92rem; }
.nsr-step span { width: 26px; height: 26px; background: var(--nsr-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.82rem; flex-shrink: 0; }
.nsr-exercise-info { background: var(--nsr-bg); border-radius: 12px; padding: 22px; margin-top: 28px; max-width: 450px; margin-left: auto; margin-right: auto; text-align: left; }
.nsr-exercise-info h4 { color: var(--nsr-primary-dark); margin: 0 0 8px; font-size: 0.95rem; }
.nsr-exercise-info p { margin: 0; font-size: 0.92rem; }

.nsr-login-required { text-align: center; padding: 60px 20px; background: var(--nsr-white); border-radius: 12px; max-width: 380px; margin: 40px auto; }

@media (max-width: 900px) {
    .nsr-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .nsr-main { margin-left: 0; padding: 25px 20px; }
    .nsr-main > * { max-width: 100%; }
    .nsr-lesson-nav { flex-direction: column; gap: 12px; }
}
