/* ============================================
   MODULE 04 - SYSTEM-PROMPTS
   Blue Theme (#3B82F6)
   Sprint 2: Rollen & Kontext definieren
   ============================================ */

/* Module 4 Color Variables */
:root {
  --mod-04-primary: #3B82F6;
  --mod-04-secondary: #2563EB;
  --mod-04-tertiary: #60A5FA;
  --mod-04-accent: #3B82F6;
  --mod-04-bg-1: rgba(59, 130, 246, 0.15);
  --mod-04-bg-2: rgba(37, 99, 235, 0.1);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.module-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(59, 130, 246, 0.1);
  z-index: 1000;
}

.module-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.m04-hero {
  min-height: 100vh;
  padding: 180px 0 80px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

/* Smooth transition from Hero to section */
.section-intro {
  position: relative;
}

.section-intro::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, 
    rgba(253, 252, 247, 0) 0%,
    rgba(253, 252, 247, 0.3) 30%,
    rgba(253, 252, 247, 0.7) 60%,
    #FDFCF7 100%);
  pointer-events: none;
  z-index: 10;
}

[data-theme="dark"] .section-intro::before {
  background: linear-gradient(to bottom, 
    rgba(15, 20, 30, 0) 0%,
    rgba(15, 20, 30, 0.3) 30%,
    rgba(15, 20, 30, 0.7) 60%,
    #1a1d24 100%);
}

.m04-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.m04-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.m04-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 54, 59, 0.88) 0%,
    rgba(42, 54, 59, 0.75) 50%,
    rgba(244, 162, 97, 0.25) 100%
  );
  z-index: 1;
}

.m04-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 600px;
  margin: 0;
  margin-left: 8%;
  padding: 0 40px;
}

[data-theme="light"] .m04-hero-content {
  /* No glassmorphism background needed */
}

.m04-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
}

.m04-hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #F8F5F0;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.m04-hero-title em {
  color: #60A5FA;
  font-style: normal;
}

.m04-hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: rgba(248, 245, 240, 0.9);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: 0;
  margin-right: auto;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.m04-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.m04-hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.m04-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.m04-hero-cta:hover::before {
  transform: translateX(100%);
}

.m04-hero-cta i {
  transition: transform 0.3s ease;
}

.m04-hero-cta:hover i {
  transform: translateY(3px);
}

/* ============================================
   SECTION SHARED COMPONENTS
   ============================================ */
.section-intro,
.section-rollen,
.section-tester,
.section-examples,
.section-quiz,
.section-roadmap {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 20px;
}

.section-title-premium {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #2A363B;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .section-title-premium {
  color: #F8F5F0;
}

.section-subtitle-premium {
  color: #6B7280;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="dark"] .section-subtitle-premium {
  color: rgba(248, 245, 240, 0.7);
}

/* ============================================
   SECTION 1: INTRO (Was sind System-Prompts?)
   ============================================ */
.section-intro {
  background: linear-gradient(180deg, #FDFCF7 0%, #F8F5F0 100%);
}

[data-theme="dark"] .section-intro {
  background: linear-gradient(180deg, #1a1d24 0%, #151820 100%);
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Restaurant-Analogie als Hero-Card */
.analogy-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

[data-theme="dark"] .analogy-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.analogy-visual {
  text-align: center;
}

.analogy-icon {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 4rem;
  color: white;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.analogy-content h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2A363B;
  margin-bottom: 20px;
}

[data-theme="dark"] .analogy-content h3 {
  color: #F8F5F0;
}

.analogy-content > p {
  color: #6B7280;
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

[data-theme="dark"] .analogy-content > p {
  color: rgba(248, 245, 240, 0.7);
}

.analogy-example {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-left: 4px solid #3B82F6;
  padding: 24px;
  border-radius: 0 16px 16px 0;
}

.analogy-example strong {
  color: #2563EB;
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analogy-example p {
  color: #5D4037;
  font-style: italic;
  line-height: 1.6;
}

[data-theme="dark"] .analogy-example p {
  color: rgba(248, 245, 240, 0.9);
}

/* ============================================
   SECTION 2: ROLLEN-ÜBERSICHT (6 Karten)
   ============================================ */
.section-rollen {
  background: linear-gradient(180deg, #F8F5F0 0%, #FDFCF7 50%, #F8F5F0 100%);
}

[data-theme="dark"] .section-rollen {
  background: linear-gradient(180deg, #1a1d24 0%, #151820 50%, #1a1d24 100%);
}

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

/* Rollen Grid - 6 Karten in 2 Reihen */
.rollen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.rollen-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  border-top: 4px solid var(--card-color, #3B82F6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .rollen-card {
  background: rgba(255,255,255,0.05);
}

.rollen-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: var(--card-color, #3B82F6);
}

/* Individuelle Kartenfarben */
.rollen-card[data-rolle="lehrer"] { --card-color: #3B82F6; }
.rollen-card[data-rolle="kreativ"] { --card-color: #F4A261; }
.rollen-card[data-rolle="analytiker"] { --card-color: #9B59B6; }
.rollen-card[data-rolle="experte"] { --card-color: #90A955; }
.rollen-card[data-rolle="coach"] { --card-color: #E76F51; }
.rollen-card[data-rolle="berater"] { --card-color: #3B82F6; }

.rollen-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color)dd 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.rollen-card h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2A363B;
  margin-bottom: 12px;
}

[data-theme="dark"] .rollen-card h4 {
  color: #F8F5F0;
}

.rollen-card > p {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

[data-theme="dark"] .rollen-card > p {
  color: rgba(248, 245, 240, 0.6);
}

.rollen-example {
  padding: 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #5D4037;
  border-left: 3px solid var(--card-color);
}

[data-theme="dark"] .rollen-example {
  background: rgba(255,255,255,0.05);
  color: rgba(248, 245, 240, 0.8);
}

.rollen-example strong {
  color: var(--card-color);
}

/* ============================================
   PARALLAX QUOTE SECTIONS
   ============================================ */
.parallax-quote-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 54, 59, 0.55) 0%,
    rgba(42, 54, 59, 0.45) 50%,
    rgba(42, 54, 59, 0.35) 100%
  );
  z-index: 1;
}

[data-theme="dark"] .parallax-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 29, 36, 0.75) 0%,
    rgba(26, 29, 36, 0.65) 50%,
    rgba(26, 29, 36, 0.55) 100%
  );
}

.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 60px 30px;
  text-align: center;
  color: white;
}

.parallax-content i {
  font-size: 3.5rem;
  color: #3B82F6;
  margin-bottom: 30px;
  display: block;
  opacity: 0.9;
}

.parallax-content blockquote {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.parallax-content blockquote em {
  color: #60A5FA;
  font-style: italic;
  position: relative;
}

/* Parallax Background Images for M04 */
.parallax-bg-m04-1 {
  background-image: url('../assets/images/sprints/m04_parallax_1.jpg');
}

.parallax-bg-m04-2 {
  background-image: url('../assets/images/sprints/m04_parallax_2.jpg');
}

/* ============================================
   SECTION 3: ROLLEN-TESTER (INTERAKTIV)
   ============================================ */
.section-tester {
  background: linear-gradient(180deg, #FDFCF7 0%, #F8F5F0 100%);
}

[data-theme="dark"] .section-tester {
  background: linear-gradient(180deg, #1a1d24 0%, #151820 100%);
}

.tester-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.tester-workspace {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .tester-workspace {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* Tabs */
.tester-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  padding-bottom: 20px;
}

.tester-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(0,0,0,0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="dark"] .tester-tab {
  background: rgba(255,255,255,0.05);
  color: rgba(248, 245, 240, 0.7);
}

.tester-tab:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.tester-tab.active {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.tester-tab i {
  font-size: 1.3rem;
}

/* Panels */
.tester-panel {
  display: none;
}

.tester-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* System Prompt Block */
.tester-system-prompt {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.tester-system-prompt h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tester-system-prompt h4 i {
  font-size: 1.1rem;
}

.tester-prompt-text {
  font-style: italic;
  color: #5D4037;
  line-height: 1.7;
  font-size: 0.95rem;
}

[data-theme="dark"] .tester-prompt-text {
  color: rgba(248, 245, 240, 0.9);
}

/* User Prompt Block */
.tester-user-prompt {
  background: rgba(0,0,0,0.03);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

[data-theme="dark"] .tester-user-prompt {
  background: rgba(255,255,255,0.05);
}

.tester-user-prompt h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tester-user-text {
  font-size: 1rem;
  color: #2A363B;
  font-weight: 500;
}

[data-theme="dark"] .tester-user-text {
  color: #F8F5F0;
}

/* Response Block */
.tester-response {
  background: white;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .tester-response {
  background: rgba(255,255,255,0.05);
}

.tester-response h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tester-response-text {
  color: #5D4037;
  line-height: 1.8;
}

[data-theme="dark"] .tester-response-text {
  color: rgba(248, 245, 240, 0.9);
}

.tester-response-text p {
  margin-bottom: 12px;
}

.tester-response-text p:last-child {
  margin-bottom: 0;
}

.tester-response-text strong {
  color: #2563EB;
}

.tester-response-text ul {
  margin: 12px 0;
  padding-left: 20px;
}

.tester-response-text li {
  margin-bottom: 8px;
}

/* ============================================
   SECTION 4: VORHER/NACHHER BEISPIELE
   ============================================ */
.section-examples {
  background: linear-gradient(180deg, #F8F5F0 0%, #FDFCF7 100%);
}

[data-theme="dark"] .section-examples {
  background: linear-gradient(180deg, #1a1d24 0%, #151820 100%);
}

.examples-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Example Card - Premium Design */
.example-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.example-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
}

[data-theme="dark"] .example-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* Header mit Icon */
.example-header {
  padding: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
}

.example-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.example-icon i {
  font-size: 1.5rem;
  color: white;
}

.example-header h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2A363B;
  margin: 0;
}

[data-theme="dark"] .example-header h4 {
  color: #F8F5F0;
}

/* Comparison Layout */
.example-comparison {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Weak Side (Vorher) */
.example-weak {
  background: linear-gradient(135deg, rgba(231, 111, 81, 0.08) 0%, rgba(231, 111, 81, 0.03) 100%);
  border: 2px solid rgba(231, 111, 81, 0.2);
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.example-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.example-badge.weak {
  background: #E76F51;
  color: white;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
}

.example-badge.strong {
  background: #90A955;
  color: white;
  box-shadow: 0 4px 15px rgba(144, 169, 85, 0.3);
}

.example-badge i {
  font-size: 1rem;
}

.weak-prompt {
  font-size: 1rem;
  color: #5D4037;
  line-height: 1.6;
  padding: 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  border-left: 4px solid #E76F51;
  font-style: italic;
}

/* Problem Tags */
.example-problems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.problem-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(231, 111, 81, 0.15);
  border: 1px solid rgba(231, 111, 81, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: #E76F51;
  font-weight: 600;
}

.problem-tag i {
  font-size: 0.85rem;
}

/* Arrow Connector */
.example-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 16px;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.example-arrow i {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Strong Side (Nachher) */
.example-strong {
  background: linear-gradient(135deg, rgba(144, 169, 85, 0.08) 0%, rgba(144, 169, 85, 0.03) 100%);
  border: 2px solid rgba(144, 169, 85, 0.25);
  border-radius: 16px;
  padding: 20px;
}

.strong-prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Prompt Blocks */
.prompt-block {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.prompt-block:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

[data-theme="dark"] .prompt-block {
  background: rgba(255,255,255,0.08);
}

.prompt-block.system { border-left-color: #3B82F6; }
.prompt-block.kontext { border-left-color: #3B82F6; }
.prompt-block.rolle { border-left-color: #8B5CF6; }
.prompt-block.aufgabe { border-left-color: #F4A261; }
.prompt-block.format { border-left-color: #10B981; }
.prompt-block.einschraenkung { border-left-color: #EF4444; }

.block-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prompt-block.system .block-label { color: #2563EB; }
.prompt-block.kontext .block-label { color: #3B82F6; }
.prompt-block.rolle .block-label { color: #8B5CF6; }
.prompt-block.aufgabe .block-label { color: #D97706; }
.prompt-block.format .block-label { color: #059669; }
.prompt-block.einschraenkung .block-label { color: #DC2626; }

.block-label i {
  font-size: 0.9rem;
}

.prompt-block p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #2A363B;
}

[data-theme="dark"] .prompt-block p {
  color: rgba(248, 245, 240, 0.9);
}

/* ============================================
   SECTION 5: QUIZ - Premium Glassmorphism
   ============================================ */
.section-quiz {
  padding: 120px 0;
  background: linear-gradient(180deg, #F8F5F0 0%, #FDFCF7 100%);
  position: relative;
}

.section-quiz::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.quiz-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.06);
}

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

.quiz-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.quiz-card-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quiz-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2A363B;
  margin: 0;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.quiz-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.quiz-option:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.03);
  padding-left: 28px;
}

.quiz-option:hover::before {
  transform: scaleY(1);
}

.quiz-option.correct {
  border-color: #90A955;
  background: rgba(144, 169, 85, 0.15);
}

.quiz-option.correct::before {
  background: #90A955;
  transform: scaleY(1);
}

.quiz-option.wrong {
  border-color: #E76F51;
  background: rgba(231, 111, 81, 0.1);
}

.quiz-option.wrong::before {
  background: #E76F51;
  transform: scaleY(1);
}

.quiz-option:disabled {
  pointer-events: none;
  opacity: 0.7;
}

.quiz-feedback {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 14px;
  display: none;
  animation: fadeIn 0.4s ease;
  position: relative;
  z-index: 1;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background: linear-gradient(135deg, rgba(144, 169, 85, 0.12) 0%, rgba(144, 169, 85, 0.05) 100%);
  border: 1px solid rgba(144, 169, 85, 0.3);
  color: #2A363B;
}

.quiz-feedback.wrong {
  background: linear-gradient(135deg, rgba(231, 111, 81, 0.1) 0%, rgba(231, 111, 81, 0.03) 100%);
  border: 1px solid rgba(231, 111, 81, 0.3);
  color: #2A363B;
}

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

/* Dark Mode */
[data-theme="dark"] .section-quiz {
  background: linear-gradient(180deg, #12151c 0%, #1a1d24 100%);
}

[data-theme="dark"] .section-quiz::before {
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%);
}

[data-theme="dark"] .quiz-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .quiz-card::before {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
}

[data-theme="dark"] .quiz-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .quiz-card-title {
  color: #F8F5F0;
}

[data-theme="dark"] .quiz-option {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: #F8F5F0;
}

[data-theme="dark"] .quiz-option:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .quiz-option.correct {
  background: rgba(144, 169, 85, 0.15);
  border-color: rgba(144, 169, 85, 0.4);
}

[data-theme="dark"] .quiz-option.wrong {
  background: rgba(231, 111, 81, 0.15);
  border-color: rgba(231, 111, 81, 0.4);
}

[data-theme="dark"] .quiz-feedback.correct {
  background: linear-gradient(135deg, rgba(144, 169, 85, 0.15) 0%, rgba(144, 169, 85, 0.05) 100%);
  border-color: rgba(144, 169, 85, 0.4);
  color: #F8F5F0;
}

[data-theme="dark"] .quiz-feedback.wrong {
  background: linear-gradient(135deg, rgba(231, 111, 81, 0.15) 0%, rgba(231, 111, 81, 0.05) 100%);
  border-color: rgba(231, 111, 81, 0.4);
  color: #F8F5F0;
}

/* Mobile */
@media (max-width: 768px) {
  .section-quiz {
    padding: 80px 0;
  }
  
  .quiz-card {
    padding: 24px;
    margin: 0 16px 20px;
    border-radius: 20px;
  }
  
  .quiz-card-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
  }
  
  .quiz-card-title {
    font-size: 1.1rem;
  }
  
  .quiz-option {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  
  .quiz-container {
    padding: 0 16px;
  }
}

/* ============================================
   SECTION 6: ROADMAP
   ============================================ */
.section-roadmap {
  background: linear-gradient(180deg, #F8F5F0 0%, #FDFCF7 100%);
  padding: 100px 0;
}

[data-theme="dark"] .section-roadmap {
  background: linear-gradient(180deg, #1a1d24 0%, #151820 100%);
}

.container-premium {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-roadmap-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-roadmap-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 20px;
}

.section-roadmap-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #2A363B;
  margin-bottom: 16px;
}

[data-theme="dark"] .section-roadmap-title {
  color: #F8F5F0;
}

.section-roadmap-subtitle {
  color: #6B7280;
  font-size: 1.1rem;
}

[data-theme="dark"] .section-roadmap-subtitle {
  color: rgba(248, 245, 240, 0.7);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.roadmap-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
}

[data-theme="dark"] .roadmap-card {
  background: rgba(255,255,255,0.05);
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.roadmap-card.completed {
  border-color: rgba(144, 169, 85, 0.4);
  background: linear-gradient(135deg, rgba(144, 169, 85, 0.08) 0%, white 100%);
}

.roadmap-card.current {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, white 100%);
  transform: scale(1.02);
}

.roadmap-card.upcoming {
  opacity: 0.7;
}

.roadmap-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.roadmap-card.completed .roadmap-card-badge {
  background: rgba(144, 169, 85, 0.15);
  color: #7A9048;
}

.roadmap-card.current .roadmap-card-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #2563EB;
}

.roadmap-card.upcoming .roadmap-card-badge {
  background: rgba(0,0,0,0.05);
  color: #6B7280;
}

.roadmap-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.roadmap-card.completed .roadmap-card-icon {
  background: rgba(144, 169, 85, 0.15);
  color: #7A9048;
}

.roadmap-card.current .roadmap-card-icon {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.roadmap-card.upcoming .roadmap-card-icon {
  background: rgba(0,0,0,0.05);
  color: #6B7280;
}

.roadmap-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2A363B;
  margin-bottom: 8px;
}

[data-theme="dark"] .roadmap-card-title {
  color: #F8F5F0;
}

.roadmap-card-desc {
  font-size: 0.9rem;
  color: #6B7280;
  margin: 0;
}

[data-theme="dark"] .roadmap-card-desc {
  color: rgba(248, 245, 240, 0.6);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.section-final-cta {
  background: linear-gradient(180deg, #FDFCF7 0%, #F8F5F0 100%);
  padding: 100px 0;
}

[data-theme="dark"] .section-final-cta {
  background: linear-gradient(180deg, #1a1d24 0%, #151820 100%);
}

.final-cta-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .final-cta-container {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.final-cta-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.final-cta-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #2A363B;
  margin-bottom: 16px;
}

[data-theme="dark"] .final-cta-title {
  color: #F8F5F0;
}

.final-cta-text {
  color: #6B7280;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

[data-theme="dark"] .final-cta-text {
  color: rgba(248, 245, 240, 0.7);
}

.btn-final-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  margin-bottom: 24px;
}

.btn-final-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.final-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.final-cta-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6B7280;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.final-cta-links a:hover {
  color: #2563EB;
}

.final-cta-divider {
  color: rgba(0,0,0,0.2);
}

[data-theme="dark"] .final-cta-divider {
  color: rgba(255,255,255,0.2);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav-senior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #2A363B 0%, #1a2024 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  min-width: 64px;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.bottom-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3B82F6;
}

/* nav-next button styled like other buttons - transparent (consistent with M00) */

.bottom-nav-btn.home {
  background: rgba(244, 162, 97, 0.15);
  border-color: rgba(244, 162, 97, 0.3);
  color: #F4A261;
}

.bottom-nav-btn.home:hover {
  background: rgba(244, 162, 97, 0.25);
}

.bottom-nav-btn i {
  font-size: 1.4rem;
}

.bottom-nav-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  max-width: 200px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

body.module-page {
  padding-bottom: 100px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #3B82F6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #2563EB;
  transform: translateY(-3px);
}

.back-to-top svg {
  color: white;
  width: 24px;
  height: 24px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .bausteine-grid,
  .rollen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .examples-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .analogy-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .analogy-icon {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .section-intro,
  .section-rollen,
  .section-tester,
  .section-examples,
  .section-quiz,
  .section-roadmap {
    padding: 80px 0;
  }
  
  .m04-hero {
    min-height: 100vh;
    padding: 100px 0 40px;
  }
  
  .m04-hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .m04-hero-subtitle {
    font-size: 1rem;
    padding: 0 16px;
  }
  
  .m04-hero-cta {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .m04-hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .bausteine-grid,
  .rollen-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .tester-tabs {
    flex-direction: column;
  }
  
  .tester-tab {
    width: 100%;
    justify-content: center;
  }
  
  .parallax-quote-section {
    min-height: 50vh;
  }
  
  .parallax-content blockquote {
    font-size: 1.4rem;
  }
  
  .bottom-nav-senior {
    padding: 8px 12px;
  }
  
  .bottom-nav-btn {
    min-width: 56px;
    min-height: 48px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .bottom-nav-btn i {
    font-size: 1.2rem;
  }
  
  .back-to-top {
    bottom: 100px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 380px) {
  .bottom-nav-btn {
    min-width: 48px;
    padding: 6px 8px;
  }
  
  .bottom-nav-btn span {
    font-size: 0.7rem;
  }
}

/* Touch-optimierte Buttons */
@media (max-width: 768px) {
  .quiz-option {
    min-height: 48px;
    padding: 12px 20px;
  }
  
  .rollen-card,
  .example-card {
    padding: 1.5rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .example-arrow i {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .bottom-nav-btn {
    border-width: 2px;
  }
  
  .bottom-nav-btn.nav-next {
    border: 2px solid #fff;
  }
  
  .quiz-option {
    border-width: 2px;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] .m04-hero::after {
  background: linear-gradient(to bottom, 
    rgba(42, 54, 59, 0) 0%, 
    rgba(42, 54, 59, 0.4) 60%,
    rgba(26, 29, 36, 1) 100%);
}

[data-theme="dark"] .m04-hero-title {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .bottom-nav-senior {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
}

[data-theme="dark"] .back-to-top {
  background: #3B82F6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .back-to-top:hover {
  background: #2563EB;
}

[data-theme="dark"] .example-weak {
  background: linear-gradient(135deg, rgba(231, 111, 81, 0.15) 0%, rgba(231, 111, 81, 0.05) 100%);
  border-color: rgba(231, 111, 81, 0.3);
}

[data-theme="dark"] .weak-prompt {
  background: rgba(0,0,0,0.2);
  color: rgba(248, 245, 240, 0.9);
}

[data-theme="dark"] .problem-tag {
  background: rgba(231, 111, 81, 0.2);
  border-color: rgba(231, 111, 81, 0.3);
  color: #F4A261;
}

[data-theme="dark"] .example-strong {
  background: linear-gradient(135deg, rgba(144, 169, 85, 0.15) 0%, rgba(144, 169, 85, 0.05) 100%);
  border-color: rgba(144, 169, 85, 0.3);
}

[data-theme="dark"] .roadmap-card.completed {
  background: linear-gradient(135deg, rgba(144, 169, 85, 0.15) 0%, rgba(255,255,255,0.05) 100%);
}

[data-theme="dark"] .roadmap-card.current {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(255,255,255,0.05) 100%);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .bottom-nav-senior,
  .back-to-top,
  .module-progress {
    display: none !important;
  }
  
  body.module-page {
    padding-bottom: 0;
  }
  
  .tester-tabs,
  .quiz-options {
    display: none;
  }
  
  .tester-panel {
    display: block !important;
    page-break-inside: avoid;
  }
}

/* ============================================
   BOTTOM NAVIGATION - Senior Premium (from M02)
   ============================================ */
.bottom-nav-senior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #2A363B 0%, #1a2024 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.bottom-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  min-width: 64px;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-sizing: border-box;
  flex-shrink: 0;
}

.bottom-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 162, 97, 0.4);
  color: #F4A261;
}

.bottom-nav-btn i {
  font-size: 1.4rem;
}

/* nav-next button styled like other buttons - transparent (consistent with M00) */

.bottom-nav-btn.home {
  background: rgba(144, 169, 85, 0.15);
  border-color: rgba(144, 169, 85, 0.3);
  color: #90A955;
}

.bottom-nav-btn.home:hover {
  background: rgba(144, 169, 85, 0.25);
}

.bottom-nav-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  max-width: 200px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F4A261 0%, #E76F51 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Body Padding für Bottom Nav */
body.module-page {
  padding-bottom: 100px;
}

/* ============================================
   MOBILE ANPASSUNGEN - Bottom Navigation
   ============================================ */
@media (max-width: 768px) {
  .bottom-nav-senior {
    padding: 10px 12px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .bottom-nav-inner {
    gap: 8px;
  }
  
  .bottom-nav-btn {
    min-width: 56px;
    min-height: 52px;
    padding: 6px 10px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  
  .bottom-nav-btn i {
    font-size: 1.2rem;
  }
  
  .bottom-nav-btn span {
    display: none;
  }
  
  .bottom-nav-progress {
    max-width: 100px;
    min-width: 60px;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .bottom-nav-senior {
    padding: 8px 10px;
  }
  
  .bottom-nav-inner {
    gap: 6px;
  }
  
  .bottom-nav-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .bottom-nav-btn i {
    font-size: 1.1rem;
  }
  
  .bottom-nav-progress {
    max-width: 80px;
    min-width: 50px;
  }
}

@media (max-width: 380px) {
  .bottom-nav-inner {
    gap: 4px;
  }
  
  .bottom-nav-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 4px 6px;
  }
  
  .bottom-nav-progress {
    max-width: 60px;
    min-width: 40px;
  }
}

/* Print */
@media print {
  .bottom-nav-senior {
    display: none !important;
  }
  
  body.module-page {
    padding-bottom: 0;
  }
}

/* Light Mode: Reduced hero overlay opacity */
[data-theme="light"] .m04-hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(42, 54, 59, 0.35) 0%,
    rgba(42, 54, 59, 0.25) 50%,
    rgba(244, 162, 97, 0.15) 100%
  );
}

/* ============================================
   BOTTOM NAV - Light Mode Support
   ============================================ */
[data-theme="light"] .bottom-nav-senior {
  background: linear-gradient(180deg, #FDFCF7 0%, #F5F0E8 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bottom-nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #5D4037;
}

[data-theme="light"] .bottom-nav-btn:hover {
  background: rgba(244, 162, 97, 0.1);
  border-color: rgba(244, 162, 97, 0.4);
  color: #E76F51;
}

[data-theme="light"] .bottom-nav-btn.home {
  background: rgba(144, 169, 85, 0.1);
  border-color: rgba(144, 169, 85, 0.3);
  color: #5D4037;
}

[data-theme="light"] .bottom-nav-btn.home:hover {
  background: rgba(144, 169, 85, 0.2);
  color: #5D4037;
}


/* ============================================
   NO-JS FALLBACK - Content always visible
   ============================================ */
/* If JavaScript is disabled or fails to load, ensure content is visible */
.reveal:not(.is-visible) {
  opacity: 1;
  transform: none;
}

/* Reduced motion preference should also show content immediately */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================
   CLASSROOM MODE
   ============================================ */
body.classroom-mode {
  font-size: 1.35rem;
  line-height: 1.7;
}

body.classroom-mode .container-premium,
body.classroom-mode .intro-container,
body.classroom-mode .rollen-container,
body.classroom-mode .tester-container,
body.classroom-mode .examples-container,
body.classroom-mode .quiz-container,
body.classroom-mode .builder-container {
  max-width: 100%;
  padding-left: 60px;
  padding-right: 60px;
}

body.classroom-mode .m04-hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
}

body.classroom-mode .m04-hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

body.classroom-mode .section-title-premium {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
}

body.classroom-mode .section-subtitle-premium {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

body.classroom-mode p,
body.classroom-mode li {
  font-size: 1.25rem;
  line-height: 1.8;
}

body.classroom-mode .rollen-card h4,
body.classroom-mode .example-card h4 {
  font-size: 1.5rem;
}

body.classroom-mode .rollen-card > p,
body.classroom-mode .example-card p {
  font-size: 1.15rem;
}

body.classroom-mode .quiz-option {
  font-size: 1.2rem;
  padding: 22px 28px;
}

body.classroom-mode .parallax-content blockquote {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

body.classroom-mode .m04-hero-badge,
body.classroom-mode .section-tag-premium {
  font-size: 1.1rem;
  padding: 14px 28px;
}

body.classroom-mode .btn-final-cta,
body.classroom-mode .m04-hero-cta {
  font-size: 1.3rem;
  padding: 22px 44px;
}

body.classroom-mode .tester-tab {
  font-size: 1.2rem;
  padding: 18px 28px;
}

body.classroom-mode .analogy-content h3 {
  font-size: 1.8rem;
}

body.classroom-mode .analogy-content > p,
body.classroom-mode .analogy-example p {
  font-size: 1.25rem;
}
