/* ============================================
   H24 CONSULTING - COURSE PLATFORM STYLES
   Hotel Hochfirst Due Diligence Kurs
   Version 1.0 - November 2025
   ============================================ */

/* === CSS VARIABLES === */
:root {
  /* Primary Colors */
  --h24-navy: #1A365D;
  --h24-navy-dark: #0F172A;
  --h24-gold: #D4A853;
  --h24-gold-light: #E8C97D;
  --h24-sand: #F8F6F1;

  /* Secondary Colors */
  --h24-teal: #2C7A7B;
  --h24-slate: #475569;
  --h24-slate-light: #64748B;

  /* Status Colors (Ampel) */
  --status-green: #10B981;
  --status-green-glow: rgba(16, 185, 129, 0.4);
  --status-yellow: #F59E0B;
  --status-yellow-glow: rgba(245, 158, 11, 0.4);
  --status-red: #EF4444;
  --status-red-glow: rgba(239, 68, 68, 0.4);

  /* Functional */
  --white: #FFFFFF;
  --black: #0F172A;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width: 280px;
  --header-height: 64px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--h24-slate);
  background-color: var(--h24-sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--h24-navy);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: 3.5rem; font-weight: 600; }
h2 { font-size: 2.5rem; font-weight: 500; }
h3 { font-size: 1.75rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: var(--space-lg);
}

a {
  color: var(--h24-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--h24-gold);
}

strong { font-weight: 600; }
em { font-style: italic; }

.text-gold { color: var(--h24-gold); }
.text-navy { color: var(--h24-navy); }
.text-white { color: var(--white); }
.text-slate { color: var(--h24-slate); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--h24-gold);
  margin-bottom: var(--space-sm);
}

/* === LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 768px;
}

.container-wide {
  max-width: 1536px;
}

/* Grid */
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacing */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.py-3xl { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.py-4xl { padding-top: var(--space-4xl); padding-bottom: var(--space-4xl); }

.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }

/* === SECTIONS === */
.section {
  padding: var(--space-4xl) 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--h24-navy) 0%, var(--h24-navy-dark) 100%);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-sand {
  background: var(--h24-sand);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--h24-slate-light);
  max-width: 640px;
  margin: 0 auto;
}

/* === COURSE LAYOUT === */
.course-layout {
  display: flex;
  min-height: 100vh;
}

.course-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  background: var(--h24-navy);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md) 0;
}

.sidebar-section {
  padding: var(--space-md) var(--space-xl);
}

.sidebar-section-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--h24-gold);
  margin-bottom: var(--space-sm);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  color: rgba(255,255,255,0.6);
  border-left: 3px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  font-size: 0.875rem;
}

.sidebar-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.sidebar-item.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-left-color: var(--h24-gold);
}

.sidebar-item.completed .sidebar-icon {
  color: var(--h24-gold);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-progress {
  padding: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--h24-gold);
  transition: width var(--transition-slow);
}

.progress-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-sm);
}

/* === MODULE HERO === */
.module-hero {
  min-height: 320px;
  background: linear-gradient(135deg, var(--h24-navy) 0%, var(--h24-navy-dark) 100%);
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--space-4xl) 0;
}

.module-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.module-hero-content {
  position: relative;
  z-index: 1;
}

.module-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--h24-gold);
  margin-bottom: var(--space-md);
}

.module-title {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.module-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
}

.module-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
}

.module-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--h24-gold), var(--h24-gold-light));
  transition: width var(--transition-slow);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--h24-gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--h24-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--h24-gold);
  border: 2px solid var(--h24-gold);
}

.btn-secondary:hover {
  background: var(--h24-gold);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--h24-slate);
}

.btn-ghost:hover {
  color: var(--h24-gold);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 0.875rem;
}

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(212, 168, 83, 0.15);
  transition: all var(--transition-base);
}

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

.card-glass {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}

.card-dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--h24-sand);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--h24-gold);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--h24-slate-light);
  margin-bottom: 0;
}

/* === AMPEL STATUS === */
.ampel-grid {
  display: grid;
  gap: var(--space-md);
}

.ampel-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-base);
}

.ampel-card:hover {
  background: rgba(255,255,255,0.08);
}

.ampel-indicator {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 4px;
}

.ampel-red .ampel-indicator {
  background: var(--status-red);
  box-shadow: 0 0 20px var(--status-red-glow);
}

.ampel-yellow .ampel-indicator {
  background: var(--status-yellow);
  box-shadow: 0 0 20px var(--status-yellow-glow);
}

.ampel-green .ampel-indicator {
  background: var(--status-green);
  box-shadow: 0 0 20px var(--status-green-glow);
}

.ampel-content h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.ampel-content p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

/* === DATA CARDS (KPIs) === */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.data-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.data-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--h24-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.data-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--h24-slate);
}

.data-card-dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.data-card-dark .data-label {
  color: rgba(255,255,255,0.6);
}

/* === CHECKLISTS === */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(248, 246, 241, 0.5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.checklist-item:hover {
  background: rgba(248, 246, 241, 0.8);
  border-color: rgba(212, 168, 83, 0.3);
}

.checklist-checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--h24-gold);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.checklist-checkbox:checked {
  background: var(--h24-gold);
}

.checklist-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.checklist-item:hover .checklist-content h4 {
  color: var(--h24-gold);
}

.checklist-content p {
  font-size: 0.8125rem;
  color: var(--h24-slate-light);
  margin-bottom: 0;
}

.checklist-item.completed {
  opacity: 0.6;
}

.checklist-item.completed .checklist-content h4 {
  text-decoration: line-through;
}

/* === COMPARISON TABLES === */
.comparison-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--h24-navy);
}

.comparison-header .comparison-col {
  padding: var(--space-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: var(--white);
  text-align: center;
}

.comparison-header .comparison-col.highlight {
  background: var(--h24-gold);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-col {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-col:first-child {
  background: rgba(239, 68, 68, 0.05);
}

.comparison-col:last-child {
  background: rgba(16, 185, 129, 0.05);
}

/* === STATUS BADGES === */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.status-badge.status-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-red);
}

.status-badge.status-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
}

.status-badge.status-green {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--h24-gold);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 6px);
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--h24-gold);
  border-radius: var(--radius-full);
  border: 3px solid var(--h24-sand);
}

.timeline-item.completed::before {
  background: var(--status-green);
}

.timeline-item.active::before {
  box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.3);
}

.timeline-phase {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--h24-gold);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--h24-navy);
  margin-bottom: var(--space-xs);
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--h24-slate-light);
}

/* === ARTICLE CONTENT === */
.article-content {
  max-width: 768px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.article-content h2 {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: var(--space-2xl);
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.article-content li {
  margin-bottom: var(--space-sm);
}

.article-content blockquote {
  border-left: 4px solid var(--h24-gold);
  padding-left: var(--space-xl);
  margin: var(--space-2xl) 0;
  font-style: italic;
  color: var(--h24-slate-light);
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--h24-gold);
  padding-right: var(--space-md);
  padding-top: var(--space-xs);
}

/* === CHARTS CONTAINER === */
.chart-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.chart-wrapper {
  position: relative;
  height: 300px;
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--h24-navy);
}

/* === ICONS === */
.icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .course-content {
    margin-left: 0;
  }

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

@media (max-width: 768px) {
  html { font-size: 15px; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .module-hero {
    min-height: 260px;
    padding: var(--space-3xl) 0;
  }

  .module-title {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: var(--space-3xl) 0;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-col:first-child {
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container {
    padding: 0 var(--space-md);
  }

  .module-hero {
    min-height: 200px;
  }

  .module-title {
    font-size: 1.75rem;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }
}

/* === MAGAZINE-STYLE ILLUSTRATIONS === */
.illustration {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.illustration-caption {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  color: var(--h24-slate-light);
  font-style: italic;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Floating illustrations for magazine layout */
.illustration-float-left {
  float: left;
  width: 45%;
  margin: 0 var(--space-xl) var(--space-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.illustration-float-right {
  float: right;
  width: 45%;
  margin: 0 0 var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.illustration-float-left img,
.illustration-float-right img {
  width: 100%;
  height: auto;
  display: block;
}

.illustration-float-left .illustration-caption,
.illustration-float-right .illustration-caption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
  color: var(--h24-slate-light);
  font-style: italic;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

/* Full-width illustration */
.illustration-full {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
}

.illustration-full img {
  width: 100%;
  height: auto;
  display: block;
}

.illustration-full .illustration-caption {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  color: var(--h24-slate-light);
  font-style: italic;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

/* Dark section illustrations */
.section-dark .illustration,
.section-dark .illustration-float-left,
.section-dark .illustration-float-right,
.section-dark .illustration-full {
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.section-dark .illustration-caption,
.section-dark .illustration-float-left .illustration-caption,
.section-dark .illustration-float-right .illustration-caption,
.section-dark .illustration-full .illustration-caption {
  background: rgba(255,255,255,0.95);
}

/* Clearfix for floating elements */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive adjustments for illustrations */
@media (max-width: 768px) {
  .illustration-float-left,
  .illustration-float-right {
    float: none;
    width: 100%;
    margin: var(--space-lg) 0;
  }
}

/* === PRINT === */
@media print {
  .sidebar,
  .btn {
    display: none;
  }

  .course-content {
    margin-left: 0;
  }

  .module-hero {
    background: none;
    color: var(--black);
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  .module-title {
    color: var(--black);
  }

  .illustration-float-left,
  .illustration-float-right {
    float: none;
    width: 100%;
    margin: var(--space-md) 0;
  }
}
