/* ============================================================
   INVESTMENT MASTERCLASS — Dark Premium Design System
   Benjamin Tischlak | Finanzberatung
   ============================================================ */

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

/* ---- Design Tokens ---------------------------------------- */
:root {
  --mc-bg:           #f8fafc;
  --mc-bg-2:         #f1f5f9;
  --mc-surface:      #ffffff;
  --mc-surface-2:    #f8fafc;
  --mc-surface-3:    #f1f5f9;
  --mc-border:       #e2e8f0;
  --mc-border-2:     #cbd5e1;
  --mc-text:         #0f172a;
  --mc-text-2:       #1e293b;
  --mc-muted:        #475569;
  --mc-subtle:       #94a3b8;
  --mc-green:        #1B6B4E;
  --mc-green-mid:    #2d8a65;
  --mc-green-light:  #16a34a;
  --mc-green-glow:   rgba(27, 107, 78, 0.15);
  --mc-green-bg:     rgba(27, 107, 78, 0.07);
  --mc-locked:       #94a3b8;
  --mc-locked-bg:    rgba(148, 163, 184, 0.2);
  --mc-gold:         #d97706;
  --mc-gold-bg:      rgba(217, 119, 6, 0.08);
  --mc-white:        #ffffff;

  --mc-shadow-card:  0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --mc-shadow-lift:  0 4px 20px rgba(0,0,0,0.09), 0 20px 40px rgba(0,0,0,0.05);
  --mc-shadow-green: 0 4px 20px rgba(27,107,78,0.2), 0 12px 40px rgba(27,107,78,0.1);

  --mc-radius-sm:    8px;
  --mc-radius:       12px;
  --mc-radius-md:    16px;
  --mc-radius-lg:    20px;
  --mc-radius-xl:    24px;
  --mc-radius-pill:  100px;

  --mc-transition:   0.2s ease;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--mc-bg);
  color: var(--mc-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---- Typography ------------------------------------------- */
.mc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mc-green-light);
}

.mc-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--mc-text);
}

.mc-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--mc-muted);
}

/* ---- Layout ----------------------------------------------- */
.mc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mc-container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.mc-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mc-bg);
  position: relative;
  overflow-x: hidden;
}

.mc-login-page::before {
  content: '';
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(27,107,78,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Login Nav */
.mc-login-nav {
  position: relative;
  z-index: 10;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mc-border);
}

.mc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-logo-badge {
  width: 38px;
  height: 38px;
  background: var(--mc-green);
  border-radius: var(--mc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--mc-white);
  box-shadow: var(--mc-shadow-green);
  flex-shrink: 0;
}

.mc-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mc-logo-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-text);
}

.mc-logo-sub {
  font-size: 11px;
  color: var(--mc-muted);
  letter-spacing: 0.5px;
}

.mc-login-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.3);
  border-radius: var(--mc-radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-green-light);
}

.mc-login-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--mc-green-light);
  border-radius: 50%;
  animation: mc-pulse 2s infinite;
}

@keyframes mc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Login Hero */
.mc-login-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.mc-login-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
}

.mc-login-left {}

.mc-login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.3);
  border-radius: var(--mc-radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-green-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mc-login-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--mc-text);
  margin-bottom: 20px;
}

.mc-login-title span {
  color: var(--mc-green-light);
}

.mc-login-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mc-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.mc-teaser-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.mc-teaser-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--mc-text-2);
  line-height: 1.5;
}

.mc-teaser-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.4);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2316a34a' fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.mc-stats-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--mc-border);
}

.mc-stat-item {}

.mc-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--mc-green-light);
  letter-spacing: -0.03em;
}

.mc-stat-label {
  font-size: 12px;
  color: var(--mc-muted);
  margin-top: 2px;
}

.mc-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--mc-border);
}

/* Login Form Box */
.mc-login-box {
  background: var(--mc-surface);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius-xl);
  padding: 40px;
  box-shadow: var(--mc-shadow-lift);
  position: relative;
  overflow: hidden;
}

.mc-login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,107,78,0.5), transparent);
}

.mc-login-box-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--mc-text);
  margin-bottom: 6px;
}

.mc-login-box-sub {
  font-size: 13px;
  color: var(--mc-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Form Elements */
.mc-form-group {
  margin-bottom: 20px;
}

.mc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-text-2);
  margin-bottom: 8px;
}

.mc-form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--mc-bg);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius);
  color: var(--mc-text);
  font-size: 15px;
  transition: border-color var(--mc-transition), box-shadow var(--mc-transition);
  outline: none;
}

.mc-form-input::placeholder { color: var(--mc-subtle); }

.mc-form-input:focus {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 3px var(--mc-green-glow);
}

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--mc-radius);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--mc-transition);
  cursor: pointer;
  border: none;
}

.mc-btn--primary {
  background: var(--mc-green);
  color: var(--mc-white);
  width: 100%;
  box-shadow: var(--mc-shadow-green);
}

.mc-btn--primary:hover {
  background: var(--mc-green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(27,107,78,0.45);
}

.mc-btn--primary:active { transform: translateY(0); }

.mc-btn--ghost {
  background: transparent;
  color: var(--mc-text-2);
  border: 1.5px solid var(--mc-border);
}

.mc-btn--ghost:hover {
  border-color: var(--mc-border-2);
  background: var(--mc-surface-2);
}

.mc-btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

.mc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.mc-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--mc-subtle);
}

.mc-login-divider::before,
.mc-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mc-border);
}

.mc-login-note {
  text-align: center;
  font-size: 12px;
  color: var(--mc-subtle);
  margin-top: 20px;
  line-height: 1.6;
}

.mc-login-note a {
  color: var(--mc-green-light);
}

/* Message Alert */
.mc-alert {
  padding: 12px 16px;
  border-radius: var(--mc-radius);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

.mc-alert--error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-alert--success {
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.3);
  color: var(--mc-green-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */

.mc-app {
  min-height: 100vh;
  background: var(--mc-bg);
}

/* App Header */
.mc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mc-border);
}

.mc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mc-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mc-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mc-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--mc-surface-2);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius-pill);
}

.mc-user-avatar {
  width: 28px;
  height: 28px;
  background: var(--mc-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--mc-white);
  flex-shrink: 0;
}

.mc-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-text-2);
}

.mc-logout-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--mc-muted);
  padding: 6px 12px;
  border-radius: var(--mc-radius);
  transition: all var(--mc-transition);
}

.mc-logout-btn:hover {
  color: var(--mc-text);
  background: var(--mc-surface-2);
}

/* Progress Banner */
.mc-progress-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--mc-border);
  box-shadow: 0 1px 0 var(--mc-border);
}

.mc-progress-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.mc-progress-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--mc-text);
  margin-bottom: 4px;
}

.mc-progress-text p {
  font-size: 14px;
  color: var(--mc-muted);
}

.mc-progress-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.mc-progress-stat {
  text-align: center;
}

.mc-progress-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--mc-green-light);
  letter-spacing: -0.04em;
  line-height: 1;
}

.mc-progress-stat-label {
  font-size: 11px;
  color: var(--mc-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mc-progress-bar-wrap {
  width: 240px;
}

.mc-progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mc-muted);
  margin-bottom: 8px;
}

.mc-progress-bar-track {
  height: 6px;
  background: var(--mc-surface-3);
  border-radius: 100px;
  overflow: hidden;
}

.mc-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mc-green), var(--mc-green-light));
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Main */
.mc-dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.mc-section-header {
  margin-bottom: 32px;
}

.mc-section-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--mc-text);
  margin-bottom: 6px;
}

.mc-section-header p {
  font-size: 14px;
  color: var(--mc-muted);
}

/* Module Sections */
.mc-module-section {
  margin-bottom: 52px;
}

.mc-module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mc-border);
}

.mc-module-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--mc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--mc-surface-2);
  border: 1px solid var(--mc-border);
}

.mc-module-icon svg {
  width: 18px;
  height: 18px;
}

.mc-module-header-text {}

.mc-module-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mc-muted);
  margin-bottom: 2px;
}

.mc-module-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--mc-text);
  line-height: 1.2;
}

.mc-module-subtitle {
  font-size: 13px;
  color: var(--mc-subtle);
  margin-top: 2px;
}

.mc-module-progress {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mc-module-progress-text {
  font-size: 12px;
  color: var(--mc-muted);
}

.mc-module-progress-dots {
  display: flex;
  gap: 3px;
}

.mc-module-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mc-border);
}

.mc-module-dot--done { background: var(--mc-green); }
.mc-module-dot--active { background: var(--mc-green-light); }

/* Module wrapper on dashboard (outer) */
#mc-chapter-grid {
  display: block;
}

/* Chapter Grid (inner, within each module section) */
.mc-chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mc-module-section .mc-chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Chapter Card */
.mc-chapter-card {
  background: var(--mc-surface);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--mc-transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.mc-chapter-card:hover:not(.mc-chapter-card--locked) {
  border-color: var(--mc-green);
  transform: translateY(-2px);
  box-shadow: var(--mc-shadow-card);
}

.mc-chapter-card--completed {
  border-color: rgba(27,107,78,0.4);
}

.mc-chapter-card--completed::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mc-green), var(--mc-green-light));
}

.mc-chapter-card--current {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 1px var(--mc-green), var(--mc-shadow-green);
}

.mc-chapter-card--current::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mc-green), var(--mc-green-light));
}

.mc-chapter-card--locked {
  cursor: not-allowed;
  opacity: 0.55;
}

.mc-chapter-card--locked:hover {
  transform: none;
  box-shadow: none;
}

.mc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mc-chapter-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mc-muted);
}

.mc-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--mc-radius-pill);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.mc-card-badge--done {
  background: var(--mc-green-bg);
  color: var(--mc-green-light);
  border: 1px solid rgba(52,211,153,0.2);
}

.mc-card-badge--active {
  background: var(--mc-green);
  color: var(--mc-white);
}

.mc-card-badge--locked {
  background: var(--mc-locked-bg);
  color: var(--mc-subtle);
  border: 1px solid var(--mc-border);
}

.mc-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mc-text);
  line-height: 1.35;
}

.mc-chapter-card--locked .mc-card-title {
  color: var(--mc-muted);
}

.mc-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--mc-subtle);
}

.mc-card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mc-card-arrow {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--mc-transition);
  flex-shrink: 0;
}

.mc-chapter-card:hover:not(.mc-chapter-card--locked) .mc-card-arrow {
  background: var(--mc-green);
  border-color: var(--mc-green);
  transform: translateX(3px);
}

.mc-chapter-card--locked .mc-card-arrow {
  background: var(--mc-locked-bg);
  border-color: var(--mc-border);
}

/* ============================================================
   KAPITEL / CHAPTER PAGE
   ============================================================ */

.mc-chapter-page {
  min-height: 100vh;
  background: var(--mc-bg);
}

/* Chapter Nav */
.mc-chapter-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--mc-border);
}

.mc-chapter-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mc-nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mc-muted);
  transition: color var(--mc-transition);
}

.mc-nav-back:hover { color: var(--mc-text); }

.mc-nav-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mc-muted);
}

.mc-nav-progress-dots {
  display: flex;
  gap: 4px;
}

.mc-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mc-border);
  transition: background var(--mc-transition);
}

.mc-nav-dot--done { background: var(--mc-green); }
.mc-nav-dot--active { background: var(--mc-green-light); width: 18px; border-radius: 3px; }

.mc-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-nav-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--mc-radius-sm);
  border: 1.5px solid var(--mc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-muted);
  transition: all var(--mc-transition);
  background: transparent;
}

.mc-nav-arrow-btn:hover:not(:disabled) {
  border-color: var(--mc-green);
  color: var(--mc-text);
  background: var(--mc-green-bg);
}

.mc-nav-arrow-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Chapter Content Layout */
.mc-chapter-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Video Area */
.mc-video-section {}

.mc-chapter-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mc-chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.3);
  border-radius: var(--mc-radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-green-light);
}

.mc-chapter-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--mc-text);
  margin-bottom: 16px;
}

.mc-chapter-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mc-muted);
  margin-bottom: 28px;
}

/* Video Player */
.mc-video-wrap {
  position: relative;
  background: #000;
  border-radius: var(--mc-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--mc-shadow-lift), 0 0 0 1px var(--mc-border);
}

.mc-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.mc-video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--mc-surface-2);
  color: var(--mc-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.mc-video-placeholder-icon {
  width: 60px;
  height: 60px;
  background: var(--mc-surface-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-subtle);
}

/* Video Complete Banner */
.mc-video-complete {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.4);
  border-radius: var(--mc-radius);
}

.mc-video-complete.is-visible { display: flex; }

.mc-video-complete-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-green-light);
}

/* Key Takeaways */
.mc-takeaways {
  margin-top: 32px;
  padding: 24px;
  background: var(--mc-surface);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
}

.mc-takeaways-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-text-2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-takeaways-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--mc-muted);
  line-height: 1.6;
}

.mc-takeaways-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--mc-green-bg);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2316a34a' fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sidebar */
.mc-chapter-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Notes Panel */
.mc-notes-panel {
  background: var(--mc-surface);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
  overflow: hidden;
}

.mc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mc-border);
  cursor: pointer;
  user-select: none;
}

.mc-panel-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-text-2);
}

.mc-panel-icon {
  width: 30px;
  height: 30px;
  background: var(--mc-gold-bg);
  border-radius: var(--mc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-gold);
  flex-shrink: 0;
}

.mc-notes-icon { background: var(--mc-gold-bg); color: var(--mc-gold); }
.mc-question-icon { background: var(--mc-green-bg); color: var(--mc-green-light); }

.mc-panel-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-subtle);
  transition: transform var(--mc-transition);
}

.mc-panel-header.is-open .mc-panel-toggle {
  transform: rotate(180deg);
}

.mc-panel-body {
  padding: 16px 20px;
}

.mc-panel-body.is-hidden { display: none; }

.mc-notes-area {
  width: 100%;
  min-height: 140px;
  background: var(--mc-bg);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius);
  color: var(--mc-text);
  font-size: 14px;
  line-height: 1.65;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color var(--mc-transition);
}

.mc-notes-area::placeholder { color: var(--mc-subtle); font-style: italic; }

.mc-notes-area:focus {
  border-color: var(--mc-gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.mc-notes-save-hint {
  font-size: 11px;
  color: var(--mc-subtle);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mc-notes-save-hint.is-saved { color: var(--mc-green-light); }

/* Question Panel */
.mc-question-form {}

.mc-question-area {
  width: 100%;
  min-height: 100px;
  background: var(--mc-bg);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius);
  color: var(--mc-text);
  font-size: 14px;
  line-height: 1.65;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  margin-bottom: 12px;
  transition: border-color var(--mc-transition);
}

.mc-question-area::placeholder { color: var(--mc-subtle); font-style: italic; }

.mc-question-area:focus {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 3px var(--mc-green-glow);
}

.mc-question-submit {
  background: var(--mc-green);
  color: var(--mc-white);
  padding: 10px 20px;
  border-radius: var(--mc-radius);
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  transition: all var(--mc-transition);
}

.mc-question-submit:hover {
  background: var(--mc-green-mid);
  transform: translateY(-1px);
}

.mc-question-success {
  display: none;
  padding: 12px 16px;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.3);
  border-radius: var(--mc-radius);
  font-size: 13px;
  color: var(--mc-green-light);
  text-align: center;
}

/* Next Chapter CTA */
.mc-next-chapter {
  background: linear-gradient(135deg, var(--mc-surface) 0%, var(--mc-surface-2) 100%);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
  padding: 24px;
  text-align: center;
}

.mc-next-chapter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mc-muted);
  margin-bottom: 8px;
}

.mc-next-chapter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-text-2);
  margin-bottom: 16px;
  line-height: 1.4;
}

.mc-next-chapter-btn {
  background: var(--mc-green);
  color: var(--mc-white);
  padding: 12px 24px;
  border-radius: var(--mc-radius);
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  transition: all var(--mc-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--mc-shadow-green);
  text-decoration: none;
}

.mc-next-chapter-btn:hover {
  background: var(--mc-green-mid);
  transform: translateY(-1px);
}

.mc-next-chapter-btn:disabled,
.mc-next-chapter-btn.is-locked {
  background: var(--mc-surface-3);
  box-shadow: none;
  color: var(--mc-subtle);
  cursor: not-allowed;
  transform: none;
}

.mc-next-hint {
  font-size: 12px;
  color: var(--mc-subtle);
  margin-top: 10px;
}

/* ============================================================
   LOADING STATE
   ============================================================ */

.mc-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: var(--mc-bg);
}

.mc-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--mc-border);
  border-top-color: var(--mc-green);
  border-radius: 50%;
  animation: mc-spin 0.7s linear infinite;
}

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

.mc-loading-text {
  font-size: 14px;
  color: var(--mc-muted);
}

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

@media (max-width: 1024px) {
  .mc-chapter-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mc-chapter-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .mc-next-chapter {
    grid-column: 1 / -1;
  }

  .mc-chapter-grid,
  .mc-module-section .mc-chapter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mc-module-progress { display: none; }
}

@media (max-width: 768px) {
  .mc-login-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mc-login-nav {
    padding: 20px 24px;
  }

  .mc-login-hero {
    padding: 40px 24px;
    align-items: flex-start;
  }

  .mc-stats-row {
    display: none;
  }

  .mc-progress-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
  }

  .mc-progress-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .mc-progress-bar-wrap {
    width: 100%;
  }

  .mc-chapter-grid,
  .mc-module-section .mc-chapter-grid {
    grid-template-columns: 1fr;
  }

  .mc-module-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mc-module-section {
    margin-bottom: 36px;
  }

  .mc-dashboard-main {
    padding: 32px 20px 60px;
  }

  .mc-header-inner {
    padding: 0 20px;
    gap: 12px;
  }

  .mc-chapter-layout {
    padding: 24px 16px 60px;
  }

  .mc-chapter-nav-inner {
    padding: 0 16px;
    gap: 8px;
  }

  /* Hide 26 progress dots on mobile – only show X/26 counter */
  .mc-nav-progress-dots {
    display: none;
  }

  .mc-chapter-sidebar {
    grid-template-columns: 1fr;
  }

  /* Chapter card: larger touch target */
  .mc-chapter-card {
    padding: 20px;
  }

  /* Quiz options: ensure comfortable touch targets */
  .mc-quiz-option {
    padding: 16px;
    min-height: 52px;
  }

  /* Takeaways box padding */
  .mc-takeaways {
    padding: 20px;
  }

  /* Reading progress bar below nav */
  .mc-reading-progress {
    top: 56px;
  }
}

@media (max-width: 480px) {
  .mc-login-title {
    font-size: 28px;
  }

  .mc-login-badge { display: none; }

  .mc-login-box { padding: 28px 20px; }

  /* Dashboard header: hide username + logout, keep only avatar (avatar click = logout) */
  .mc-user-name {
    display: none !important;
  }

  .mc-header-right .mc-logout-btn {
    display: none !important;
  }

  /* Smaller user-info pill on mobile */
  .mc-header-right .mc-user-info {
    padding: 6px 10px;
  }

  /* Quiz submit: full width, no min-width */
  .mc-quiz-submit {
    min-width: unset;
    width: 100%;
  }

  .mc-quiz-footer {
    padding: 0 20px 24px;
  }

  .mc-quiz-body {
    padding: 20px;
  }

  .mc-quiz-header {
    padding: 18px 20px;
  }

  .mc-quiz-result {
    margin: 0 20px 20px;
  }

  .mc-quiz-passed-badge {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Nav back text: shorten on very small screens */
  .mc-nav-back {
    font-size: 12px;
  }

  /* Chapter title smaller on tiny screens */
  .mc-chapter-title {
    font-size: 22px;
  }

  /* Progress banner stat number */
  .mc-progress-stat-num {
    font-size: 24px;
  }

  /* Module title wrapping */
  .mc-module-title {
    font-size: 16px;
  }

  /* Notes & question panels */
  .mc-panel-body {
    padding: 14px 16px;
  }

  .mc-panel-header {
    padding: 14px 16px;
  }

  /* Next chapter panel */
  .mc-next-chapter {
    padding: 20px;
  }

  /* Section header */
  .mc-section-header h3 {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .mc-login-title {
    font-size: 24px;
  }

  .mc-login-box {
    padding: 24px 16px;
  }

  .mc-login-nav {
    padding: 16px 16px;
  }

  .mc-login-hero {
    padding: 32px 16px;
  }

  .mc-chapter-nav-inner {
    padding: 0 12px;
  }

  .mc-header-inner {
    padding: 0 16px;
  }
}

/* ============================================================
   NETLIFY IDENTITY WIDGET OVERRIDES
   ============================================================ */

[data-netlify-identity-menu] { display: none !important; }

#netlify-identity-widget {
  font-family: 'Inter', sans-serif !important;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

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

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */

.mc-reading-progress {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mc-border);
  z-index: 99;
}

.mc-reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mc-green), var(--mc-green-light));
  transition: width 0.1s linear;
  width: 0%;
}

/* ============================================================
   ARTICLE READER
   ============================================================ */

.mc-article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.mc-article-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mc-muted);
}

.mc-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--mc-surface-2);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-text-2);
  transition: all var(--mc-transition);
  cursor: pointer;
  margin-left: auto;
}

.mc-pdf-btn:hover {
  border-color: var(--mc-green);
  color: var(--mc-green-light);
  background: var(--mc-green-bg);
}

/* Article body typography */
.mc-article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mc-text-2);
  margin-bottom: 40px;
}

.mc-article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--mc-text);
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mc-border);
  line-height: 1.3;
}

.mc-article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mc-text);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.mc-article-body p {
  margin-bottom: 18px;
}

.mc-article-body p:last-child { margin-bottom: 0; }

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

.mc-article-body em {
  color: var(--mc-green-light);
  font-style: normal;
  font-weight: 600;
}

.mc-article-body ul,
.mc-article-body ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-article-body ul li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.65;
}

.mc-article-body ul li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--mc-green-bg);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2316a34a' fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.mc-article-body ol {
  counter-reset: mc-ol;
}

.mc-article-body ol li {
  counter-increment: mc-ol;
  display: flex;
  gap: 14px;
  font-size: 15px;
  line-height: 1.65;
}

.mc-article-body ol li::before {
  content: counter(mc-ol);
  min-width: 26px;
  height: 26px;
  background: var(--mc-green);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* Callout boxes */
.mc-callout {
  padding: 20px 24px;
  border-radius: var(--mc-radius);
  margin: 28px 0;
}

.mc-callout--info {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-left: 3px solid #6366f1;
}

.mc-callout--tip {
  background: var(--mc-green-bg);
  border: 1px solid rgba(27, 107, 78, 0.22);
  border-left: 3px solid var(--mc-green-light);
}

.mc-callout--warning {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 3px solid var(--mc-gold);
}

.mc-callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-callout--info .mc-callout-label { color: #a5b4fc; }
.mc-callout--tip .mc-callout-label { color: var(--mc-green-light); }
.mc-callout--warning .mc-callout-label { color: var(--mc-gold); }

.mc-callout p { margin-bottom: 0; font-size: 15px; line-height: 1.7; }

/* Definition box */
.mc-definition {
  background: var(--mc-surface-2);
  border: 1.5px solid var(--mc-border);
  border-left: 3px solid var(--mc-green);
  border-radius: var(--mc-radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.mc-definition-term {
  font-size: 16px;
  font-weight: 700;
  color: var(--mc-text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mc-definition-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--mc-green);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.mc-definition p { margin-bottom: 0; font-size: 15px; color: var(--mc-muted); }

/* Stat highlight */
.mc-stat-highlight {
  background: linear-gradient(135deg, var(--mc-surface-2), var(--mc-surface-3));
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
  padding: 28px 24px;
  margin: 24px 0;
  text-align: center;
}

.mc-stat-highlight-num {
  font-size: 52px;
  font-weight: 800;
  color: var(--mc-green-light);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.mc-stat-highlight-label {
  font-size: 14px;
  color: var(--mc-muted);
  line-height: 1.6;
}

/* Two column grid for stats */
.mc-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .mc-cols-2 { grid-template-columns: 1fr; }
}

/* Comparison table */
.mc-compare-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--mc-radius);
  border: 1.5px solid var(--mc-border);
}

.mc-compare-table {
  width: 100%;
  border-collapse: collapse;
}

.mc-compare-table th {
  background: var(--mc-surface-2);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-text-2);
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--mc-border);
  white-space: nowrap;
}

.mc-compare-table th:first-child { color: var(--mc-muted); }

.mc-compare-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--mc-muted);
  border-bottom: 1px solid var(--mc-border);
  vertical-align: top;
  line-height: 1.55;
}

.mc-compare-table tr:last-child td { border-bottom: none; }
.mc-compare-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

.mc-compare-table .mc-td-rücklage { color: #60a5fa; }
.mc-compare-table .mc-td-investment { color: var(--mc-green-light); }

/* Article placeholder for chapters without content yet */
.mc-article-placeholder {
  background: var(--mc-surface-2);
  border: 1.5px dashed var(--mc-border);
  border-radius: var(--mc-radius-lg);
  padding: 56px 32px;
  text-align: center;
  margin: 32px 0;
}

.mc-article-placeholder-icon {
  width: 64px;
  height: 64px;
  background: var(--mc-surface-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--mc-subtle);
}

.mc-article-placeholder h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mc-text-2);
  margin-bottom: 10px;
}

.mc-article-placeholder p {
  font-size: 14px;
  color: var(--mc-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   QUIZ COMPONENT
   ============================================================ */

.mc-quiz {
  background: var(--mc-surface);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-xl);
  overflow: hidden;
  margin-top: 40px;
}

.mc-quiz-header {
  background: linear-gradient(135deg, var(--mc-surface-2), var(--mc-surface-3));
  padding: 24px 28px;
  border-bottom: 1px solid var(--mc-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.mc-quiz-icon {
  width: 44px;
  height: 44px;
  background: var(--mc-green-bg);
  border: 1.5px solid rgba(27, 107, 78, 0.3);
  border-radius: var(--mc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-green-light);
  flex-shrink: 0;
}

.mc-quiz-header-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--mc-text);
  margin-bottom: 4px;
}

.mc-quiz-header-text p {
  font-size: 13px;
  color: var(--mc-muted);
  margin: 0;
}

.mc-quiz-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mc-question-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mc-muted);
  margin-bottom: 10px;
}

.mc-question-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--mc-text);
  margin-bottom: 16px;
  line-height: 1.5;
}

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

.mc-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--mc-surface-2);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius);
  cursor: pointer;
  transition: all var(--mc-transition);
  user-select: none;
}

.mc-quiz-option:hover:not(.is-disabled) {
  border-color: var(--mc-green);
  background: var(--mc-green-bg);
}

.mc-quiz-option.is-selected {
  border-color: var(--mc-green);
  background: var(--mc-green-bg);
}

.mc-quiz-option.is-correct {
  border-color: var(--mc-green-light);
  background: rgba(52, 211, 153, 0.08);
}

.mc-quiz-option.is-wrong {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.06);
}

.mc-quiz-option.is-disabled { cursor: default; }

.mc-option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--mc-border-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--mc-transition);
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
  color: transparent;
}

.mc-quiz-option.is-selected .mc-option-indicator {
  border-color: var(--mc-green);
  background: var(--mc-green);
}

.mc-quiz-option.is-correct .mc-option-indicator {
  border-color: var(--mc-green-light);
  background: var(--mc-green-light);
  color: white;
}

.mc-quiz-option.is-wrong .mc-option-indicator {
  border-color: #ef4444;
  background: #ef4444;
  color: white;
}

.mc-option-text {
  font-size: 14px;
  color: var(--mc-text-2);
  line-height: 1.55;
  flex: 1;
}

.mc-option-explanation {
  display: none;
  font-size: 13px;
  color: var(--mc-muted);
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--mc-surface-3);
  border-radius: var(--mc-radius-sm);
  line-height: 1.65;
  width: 100%;
}

.mc-option-explanation.is-visible { display: block; }

/* Quiz footer */
.mc-quiz-footer {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mc-quiz-submit {
  background: var(--mc-green);
  color: var(--mc-white);
  padding: 14px 40px;
  border-radius: var(--mc-radius);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--mc-transition);
  box-shadow: var(--mc-shadow-green);
  min-width: 220px;
}

.mc-quiz-submit:hover:not(:disabled) {
  background: var(--mc-green-mid);
  transform: translateY(-1px);
}

.mc-quiz-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mc-quiz-retry {
  background: transparent;
  color: var(--mc-muted);
  padding: 10px 20px;
  border-radius: var(--mc-radius);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--mc-border);
  transition: all var(--mc-transition);
  display: none;
}

.mc-quiz-retry:hover {
  color: var(--mc-text);
  border-color: var(--mc-border-2);
}

.mc-quiz-retry.is-visible { display: inline-flex; align-items: center; gap: 6px; }

/* Quiz result banner */
.mc-quiz-result {
  display: none;
  margin: 0 28px 28px;
  padding: 20px 24px;
  border-radius: var(--mc-radius);
  align-items: flex-start;
  gap: 16px;
}

.mc-quiz-result.is-visible { display: flex; }

.mc-quiz-result--pass {
  background: var(--mc-green-bg);
  border: 1px solid rgba(27, 107, 78, 0.3);
}

.mc-quiz-result--fail {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.mc-quiz-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mc-quiz-result--pass .mc-quiz-result-icon {
  background: rgba(52, 211, 153, 0.15);
  color: var(--mc-green-light);
}

.mc-quiz-result--fail .mc-quiz-result-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--mc-gold);
}

.mc-quiz-result-content {}

.mc-quiz-result-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mc-quiz-result--pass .mc-quiz-result-title { color: var(--mc-green-light); }
.mc-quiz-result--fail .mc-quiz-result-title { color: var(--mc-gold); }

.mc-quiz-result-text {
  font-size: 13px;
  color: var(--mc-muted);
  line-height: 1.65;
}

/* Quiz passed persistent state (once chapter is done) */
.mc-quiz-passed-badge {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--mc-green-bg);
  border-top: 1px solid rgba(27, 107, 78, 0.2);
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-green-light);
}

.mc-quiz-passed-badge.is-visible {
  display: flex;
}

/* ============================================================
   ACCORDION
   ============================================================ */

.mc-accordion {
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
  overflow: hidden;
  margin: 28px 0;
}

.mc-accordion-item {
  border-bottom: 1px solid var(--mc-border);
}

.mc-accordion-item:last-child { border-bottom: none; }

.mc-accordion-trigger {
  width: 100%;
  padding: 16px 20px;
  background: var(--mc-surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background var(--mc-transition);
  text-align: left;
  border: none;
}

.mc-accordion-trigger:hover {
  background: var(--mc-surface-3);
}

.mc-accordion-trigger.is-open {
  background: var(--mc-surface-3);
  border-bottom: 1px solid var(--mc-border);
}

.mc-accordion-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-text-2);
  flex: 1;
  line-height: 1.45;
}

.mc-accordion-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mc-green-bg);
  border: 1px solid rgba(27,107,78,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-green-light);
  flex-shrink: 0;
  transition: transform var(--mc-transition);
}

.mc-accordion-trigger.is-open .mc-accordion-icon {
  transform: rotate(45deg);
  background: var(--mc-green);
  color: white;
}

.mc-accordion-body {
  display: none;
  padding: 16px 20px;
  background: var(--mc-surface);
  font-size: 14px;
  color: var(--mc-muted);
  line-height: 1.75;
}

.mc-accordion-body.is-open { display: block; }

.mc-accordion-body p { margin-bottom: 10px; }
.mc-accordion-body p:last-child { margin-bottom: 0; }

/* ============================================================
   INTERACTIVE CALCULATORS
   ============================================================ */

.mc-interactive {
  background: linear-gradient(135deg, var(--mc-surface) 0%, var(--mc-surface-2) 100%);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-xl);
  overflow: hidden;
  margin: 32px 0;
}

.mc-interactive-header {
  padding: 18px 24px;
  background: var(--mc-surface-2);
  border-bottom: 1px solid var(--mc-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-interactive-header-icon {
  width: 36px;
  height: 36px;
  background: var(--mc-green-bg);
  border: 1.5px solid rgba(27,107,78,0.3);
  border-radius: var(--mc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-green-light);
  flex-shrink: 0;
}

.mc-interactive-header-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--mc-text);
  margin-bottom: 2px;
}

.mc-interactive-header-text p {
  font-size: 12px;
  color: var(--mc-muted);
  margin: 0;
}

.mc-interactive-body {
  padding: 24px;
}

/* Range slider inputs */
.mc-range-group {
  margin-bottom: 20px;
}

.mc-range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mc-range-label-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-text-2);
}

.mc-range-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--mc-green-light);
  min-width: 90px;
  text-align: right;
}

.mc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 100px;
  background: var(--mc-surface-3);
  outline: none;
  cursor: pointer;
}

.mc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mc-green);
  cursor: pointer;
  border: 2.5px solid var(--mc-green-light);
  box-shadow: 0 0 0 4px rgba(27,107,78,0.2);
  transition: box-shadow var(--mc-transition);
}

.mc-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(27,107,78,0.3);
}

.mc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mc-green);
  cursor: pointer;
  border: 2.5px solid var(--mc-green-light);
}

/* Divider in interactive */
.mc-interactive-divider {
  height: 1px;
  background: var(--mc-border);
  margin: 20px 0;
}

/* Result grid for Rücklage calc */
.mc-ruecklage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .mc-ruecklage-grid { grid-template-columns: 1fr; }
}

.mc-ruecklage-card {
  background: var(--mc-surface-3);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius);
  padding: 16px;
  text-align: center;
  transition: border-color var(--mc-transition);
}

.mc-ruecklage-card--highlight {
  border-color: rgba(27,107,78,0.5);
  background: var(--mc-green-bg);
}

.mc-ruecklage-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mc-muted);
  margin-bottom: 6px;
}

.mc-ruecklage-card--highlight .mc-ruecklage-card-label {
  color: var(--mc-green-light);
}

.mc-ruecklage-card-months {
  font-size: 12px;
  color: var(--mc-subtle);
  margin-bottom: 8px;
}

.mc-ruecklage-card-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--mc-text);
  letter-spacing: -0.03em;
}

.mc-ruecklage-card--highlight .mc-ruecklage-card-amount {
  color: var(--mc-green-light);
}

/* SVG Chart */
.mc-chart-wrap {
  margin-top: 20px;
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  padding: 16px;
  overflow: hidden;
}

.mc-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mc-chart-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mc-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mc-muted);
}

.mc-legend-item::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  border-radius: 100px;
}

.mc-legend-linear::before {
  background: #374151;
  background: repeating-linear-gradient(90deg, #4b5563 0, #4b5563 5px, transparent 5px, transparent 9px);
}

.mc-legend-compound::before {
  background: #34d399;
}

/* Zinseszins result row */
.mc-zins-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .mc-zins-results { grid-template-columns: 1fr; }
}

.mc-zins-result-card {
  background: var(--mc-surface-3);
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius);
  padding: 14px 16px;
  text-align: center;
}

.mc-zins-result-card--green {
  background: var(--mc-green-bg);
  border-color: rgba(27,107,78,0.4);
}

.mc-zins-result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mc-muted);
  margin-bottom: 6px;
}

.mc-zins-result-card--green .mc-zins-result-label {
  color: var(--mc-green-light);
}

.mc-zins-result-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--mc-text);
  letter-spacing: -0.02em;
}

.mc-zins-result-card--green .mc-zins-result-value {
  color: var(--mc-green-light);
}

/* Inflation bar visualization */
.mc-inflation-bars {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mc-infl-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mc-infl-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-muted);
  width: 60px;
  flex-shrink: 0;
  text-align: right;
}

.mc-infl-bar-track {
  flex: 1;
  height: 28px;
  background: var(--mc-surface-3);
  border-radius: var(--mc-radius-sm);
  overflow: hidden;
  position: relative;
}

.mc-infl-bar-fill {
  height: 100%;
  border-radius: var(--mc-radius-sm);
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: hidden;
  min-width: 40px;
}

.mc-infl-bar-fill--today {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.mc-infl-bar-fill--future {
  background: linear-gradient(90deg, var(--mc-green), var(--mc-green-light));
}

.mc-infl-bar-fill--loss {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.mc-inflation-summary {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--mc-radius);
  display: flex;
  align-items: center;
  gap: 16px;
}

.mc-inflation-summary-icon {
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  flex-shrink: 0;
}

.mc-inflation-summary-text {
  font-size: 14px;
  color: var(--mc-muted);
  line-height: 1.55;
}

.mc-inflation-summary-text strong {
  color: #f87171;
}

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

@media print {
  .mc-chapter-nav,
  .mc-chapter-sidebar,
  .mc-quiz,
  .mc-reading-progress,
  .mc-video-complete,
  .mc-article-actions .mc-pdf-btn,
  .mc-interactive,
  .mc-accordion,
  .mc-takeaways {
    display: none !important;
  }

  body {
    background: white !important;
    color: #1a1a1a !important;
  }

  .mc-chapter-layout {
    display: block !important;
    padding: 24px !important;
    max-width: none !important;
  }

  .mc-chapter-title { color: #1a1a1a !important; font-size: 26px !important; }
  .mc-chapter-desc { color: #555 !important; }

  .mc-article-body { color: #333 !important; }
  .mc-article-body h2 { color: #1a1a1a !important; border-bottom-color: #ddd !important; }
  .mc-article-body h3 { color: #1a1a1a !important; }
  .mc-article-body strong { color: #1a1a1a !important; }

  .mc-callout { border: 1px solid #ccc !important; background: #f7f7f7 !important; }
  .mc-callout-label { color: #555 !important; }
  .mc-callout p { color: #444 !important; }

  .mc-definition {
    background: #f5f5f5 !important;
    border-color: #888 !important;
  }

  .mc-definition-term { color: #1a1a1a !important; }
  .mc-definition-tag { background: #555 !important; }
  .mc-definition p { color: #444 !important; }

  .mc-stat-highlight {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
  }

  .mc-stat-highlight-num { color: #1B6B4E !important; }
  .mc-stat-highlight-label { color: #555 !important; }

  .mc-compare-table-wrap { border-color: #ccc !important; }
  .mc-compare-table th { background: #eee !important; color: #1a1a1a !important; }
  .mc-compare-table td { color: #444 !important; border-color: #ddd !important; }
  .mc-compare-table .mc-td-rücklage { color: #1a5fa0 !important; }
  .mc-compare-table .mc-td-investment { color: #1B6B4E !important; }

  .mc-article-body ul li::before {
    background-image: none !important;
    content: '✓  ' !important;
    color: #1B6B4E !important;
    font-weight: bold !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: none !important;
    font-size: 14px !important;
  }

  .mc-article-body ol li::before {
    background: #555 !important;
  }
}

/* ==========================================================
   CAREER TEASER
   ========================================================== */

.mc-career-teaser {
  margin-top: 2rem;
  border-top: 2px solid var(--mc-border);
  padding-top: 2rem;
}

.mc-career-teaser__inner {
  display: flex;
  gap: 1.25rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: var(--mc-radius-lg);
  padding: 1.75rem;
}

.mc-career-teaser__icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.mc-career-teaser__content {
  flex: 1;
  min-width: 0;
}

.mc-career-teaser__intro {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mc-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.mc-career-teaser__headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mc-text);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.mc-career-teaser__body {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.65;
  margin: 0 0 0.6rem;
}

.mc-career-teaser__body--light {
  color: #6b7280;
  font-size: 0.85rem;
}

.mc-career-teaser__btn {
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--mc-green);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--mc-radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mc-career-teaser__btn:hover {
  background: #155c3e;
  transform: translateY(-1px);
}

.mc-career-teaser__hint {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0.5rem 0 0;
}

@media (max-width: 480px) {
  .mc-career-teaser__icon {
    display: none;
  }

  .mc-career-teaser__inner {
    padding: 1.25rem;
  }
}
