:root {
  --primary-color: #6b46c1; --primary-light: #f3e8ff; --primary-dark: #553c9a;
  --secondary-color: #764ba2; --accent-color: #667eea; --background-color: #f8f9fa;
  --card-background: #ffffff; --text-color: #2d3748; --heading-color: #1a202c;
  --border-color: #e2e8f0; --success-color: #34a853; --warning-color: #fbbc05;
  --danger-color: #ea4335; --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --border-radius: 12px; --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-light: linear-gradient(135deg, #f3e8ff 0%, #e9ecef 100%);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--background-color); color: var(--text-color); line-height: 1.7; overflow-x: hidden; min-height: 100vh; padding-top: 90px; }
.container { max-width: 900px; margin: 0 auto; padding: 24px 20px 40px; position: relative; z-index: 1; }
.main-content { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; position: relative; overflow: visible; z-index: 1; margin-top: 0; }
.main-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #667eea, #764ba2, #6b46c1); border-radius: 24px 24px 0 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; background: linear-gradient(135deg, #6b46c1, #8b5cf6, #a78bfa); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #374151; margin: 24px 0 12px; padding-left: 20px; position: relative; }
h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 30px; background: linear-gradient(135deg, #6b46c1, #8b5cf6); border-radius: 2px; }
h3 { font-size: 1.4rem; font-weight: 600; color: #4b5563; margin: 18px 0 8px; }
p { margin-bottom: 20px; color: #374151; font-size: 16px; line-height: 1.6; }
ul, ol { margin: 20px 0; padding-left: 20px; } li { margin-bottom: 8px; color: #4b5563; } ul li::marker { color: var(--primary-color); }
.hero-image { width: 100%; max-width: 320px; height: auto; object-fit: contain; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); display: block; border: 3px solid #fff; }
.hero-container { text-align: center; margin-bottom: 40px; }
.hero-meta { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.hero-tag { background: var(--gradient-primary); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
.hero-date { background: rgba(248,250,252,0.9); color: var(--text-color); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border-color); }
.hero-reading-time { background: rgba(107,70,193,0.1); color: var(--primary-color); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.content-section { background: rgba(248,250,252,0.8); backdrop-filter: blur(10px); border-radius: 16px; padding: 18px; margin: 18px 0; border: 1px solid rgba(203,213,225,0.3); }
.highlight-box { background: linear-gradient(135deg, rgba(103,70,193,0.1), rgba(139,92,246,0.05)); border: 1px solid rgba(103,70,193,0.2); border-radius: 16px; padding: 14px; margin: 14px 0; position: relative; overflow: hidden; }
.highlight-box::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(135deg, #6b46c1, #8b5cf6); }
.inline-links { margin: 20px 0; padding: 16px; background: var(--gradient-primary); border-radius: 12px; text-align: center; }
.inline-links a { background: rgba(255,255,255,0.2); color: #fff; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; margin: 4px; display: inline-block; transition: all 0.3s ease; }
.inline-links a:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: rgba(107,70,193,0.1); z-index: 1003; }
.reading-progress-bar { height: 100%; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); width: 0%; transition: width 0.1s ease; box-shadow: 0 0 10px rgba(102,126,234,0.6); }
.chapter-navigator { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-radius: 16px; padding: 16px 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 999; max-height: 80vh; overflow-y: auto; min-width: 220px; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.chapter-navigator.visible { opacity: 1; visibility: visible; }
.chapter-nav-item { display: flex; align-items: center; padding: 10px 14px; margin: 6px 0; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; font-size: 0.85rem; color: var(--text-color); text-decoration: none; }
.chapter-nav-item:hover { background: var(--primary-light); color: var(--primary-color); transform: translateX(6px); }
.chapter-nav-item.active { background: var(--gradient-primary); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
.chapter-nav-item .chapter-emoji { margin-right: 10px; font-size: 1.1rem; }
.fab-reading { display: none !important; }
.fab-reading:hover { transform: scale(1.1); }
.current-chapter { position: fixed; top: 135px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); padding: 10px 18px; border-radius: 22px; font-size: 0.85rem; font-weight: 600; color: var(--primary-color); box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; max-width: 280px; text-align: center; }
.current-chapter.visible { opacity: 1; visibility: visible; }
.toc-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.toc-overlay.active { opacity: 1; visibility: visible; }
.toc-modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.9); background: #fff; border-radius: 24px; padding: 40px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); transition: all 0.3s ease; }
.toc-overlay.active .toc-modal { transform: translate(-50%,-50%) scale(1); }
.toc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.toc-title { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.toc-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
.toc-content a { display: block; padding: 12px 0; color: #475569; text-decoration: none; font-weight: 500; border-bottom: 1px solid #f0f0f0; transition: color 0.2s; }
.toc-content a:hover { color: var(--primary-color); }

/* Neue dynamische Elemente */
.intro-special { 
  min-height: 200px; 
  overflow: hidden;
}
.intro-stats { display: flex; justify-content: space-around; margin: 20px 0; gap: 15px; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 15px; background: rgba(255,255,255,0.8); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); flex: 1; min-width: 100px; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.stat-label { font-size: 0.8rem; color: #666; font-weight: 600; margin-top: 5px; display: block; }

.warning-box { background: linear-gradient(135deg, rgba(234,67,53,0.1), rgba(251,188,5,0.05)); border: 1px solid rgba(234,67,53,0.3); border-radius: 12px; padding: 15px; margin: 15px 0; display: flex; align-items: flex-start; gap: 12px; }
.warning-box i { color: var(--warning-color); font-size: 1.2rem; margin-top: 2px; }
.warning-box p { margin: 0; }

.pro-tip-box { background: linear-gradient(135deg, rgba(52,168,83,0.1), rgba(103,70,193,0.05)); border: 1px solid rgba(52,168,83,0.3); border-radius: 12px; padding: 18px; margin: 20px 0; position: relative; overflow: hidden; }
.pro-tip-box::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(135deg, var(--success-color), var(--primary-color)); }
.tip-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tip-header i { color: var(--success-color); font-size: 1.1rem; }
.tip-header span { font-weight: 700; color: var(--success-color); font-size: 0.9rem; }
.pro-tip-box p { margin: 0; font-weight: 500; }

.strain-recommendation { background: rgba(248,250,252,0.9); border-radius: 12px; padding: 18px; margin: 20px 0; border: 1px solid #e2e8f0; }
.strain-recommendation h4 { margin: 0 0 15px 0; color: var(--primary-color); font-size: 1.1rem; }
.strain-list { list-style: none; padding: 0; margin: 0; }
.strain-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.strain-list li:last-child { border-bottom: none; }
.strain-name { font-weight: 600; color: #374151; }
.thc-badge { background: var(--gradient-primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

.inline-article-suggestion { background: rgba(103,70,193,0.05); border: 1px solid rgba(103,70,193,0.15); border-radius: 8px; padding: 12px; margin: 20px 0; display: flex; align-items: center; gap: 10px; }
.inline-article-suggestion i { color: var(--primary-color); font-size: 1.1rem; }
.inline-article-suggestion span { font-size: 0.9rem; color: #4b5563; }
.inline-article-suggestion a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.inline-article-suggestion a:hover { text-decoration: underline; }

.nutrient-timeline { background: rgba(248,250,252,0.9); border-radius: 12px; padding: 18px; margin: 20px 0; border: 1px solid #e2e8f0; }
.nutrient-timeline h4 { margin: 0 0 15px 0; color: var(--primary-color); font-size: 1.1rem; }
.timeline-item { display: flex; align-items: flex-start; gap: 15px; margin: 12px 0; padding: 12px; background: #fff; border-radius: 8px; border-left: 3px solid var(--primary-color); }
.week-badge { background: var(--gradient-primary); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; min-width: 80px; text-align: center; }
.timeline-content { flex: 1; }
.timeline-content strong { color: var(--primary-color); }

.progress-tracker { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-radius: 16px; padding: 20px 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.progress-tracker.visible { opacity: 1; visibility: visible; }
.progress-tracker h4 { margin: 0 0 15px 0; font-size: 0.9rem; color: var(--primary-color); font-weight: 700; }
.progress-step { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 6px; border-radius: 8px; transition: all 0.2s; }
.progress-step.completed { background: rgba(52,168,83,0.1); }
.progress-step.active { background: rgba(103,70,193,0.1); }
.step-icon { width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; color: #666; }
.progress-step.completed .step-icon { background: var(--success-color); color: #fff; }
.progress-step.active .step-icon { background: var(--primary-color); color: #fff; }
.step-label { font-size: 0.8rem; color: #4b5563; font-weight: 500; }

.thc-calculator { background: linear-gradient(135deg, rgba(103,70,193,0.08), rgba(139,92,246,0.03)); border: 1px solid rgba(103,70,193,0.2); border-radius: 16px; padding: 20px; margin: 25px 0; }
.calc-header { text-align: center; margin-bottom: 20px; }
.calc-header h4 { color: var(--primary-color); margin-bottom: 5px; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.calc-input { display: flex; flex-direction: column; }
.calc-input label { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #374151; }
.calc-input input, .calc-input select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.9rem; }
.calc-result { background: #fff; border-radius: 12px; padding: 15px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.potential-thc { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }

.final-checklist { background: rgba(248,250,252,0.9); border-radius: 12px; padding: 20px; margin: 25px 0; border: 1px solid #e2e8f0; }
.final-checklist h4 { margin: 0 0 20px 0; color: var(--primary-color); font-size: 1.2rem; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.checklist-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 8px; border-left: 3px solid var(--success-color); }
.checklist-item i { color: var(--success-color); font-size: 1.2rem; }
.checklist-item div { flex: 1; }
.checklist-item strong { display: block; color: #374151; font-weight: 600; }
.checklist-item span { font-size: 0.85rem; color: #666; }

.success-story { background: linear-gradient(135deg, rgba(52,168,83,0.1), rgba(34,197,94,0.05)); border: 1px solid rgba(52,168,83,0.3); border-radius: 12px; padding: 20px; margin: 25px 0; }
.success-story h4 { margin: 0 0 15px 0; color: var(--success-color); font-size: 1.1rem; }
.success-story blockquote { font-style: italic; color: #374151; margin: 0; position: relative; padding-left: 20px; }
.success-story blockquote::before { content: '"'; position: absolute; left: 0; top: 0; font-size: 2rem; color: var(--success-color); line-height: 1; }
.success-story cite { display: block; margin-top: 10px; font-size: 0.9rem; color: #666; font-weight: 600; }

@media (max-width: 768px) {
  .reading-progress { display: none !important; }
  body { padding-top: 70px; overflow-x: hidden; }
  .container { max-width: 100%; padding: 100px 10px 30px; }
  .main-content { padding: 16px; margin: 0; overflow-x: hidden; }
  .chapter-navigator { display: none; } .fab-reading { display: none !important; }
  .current-chapter { top: 165px; padding: 8px 14px; font-size: 0.8rem; }
  h1 { font-size: 2.2rem; line-height: 1.3; } 
  h2 { font-size: 1.6rem; } 
  h3 { font-size: 1.2rem; }
  .hero-image { max-width: 280px; }
  .hero-meta { gap: 12px; }
  .hero-tag, .hero-date, .hero-reading-time { font-size: 0.8rem; padding: 5px 12px; }
  .intro-stats { flex-direction: column; gap: 10px; }
  .stat-item { min-width: auto; }
  .calc-inputs { grid-template-columns: 1fr; gap: 10px; }
  .strain-list li { flex-direction: column; gap: 8px; align-items: flex-start; }
  
  /* Fix table overflow for ALL pages */
  table { 
    font-size: 12px; 
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  table thead,
  table tbody,
  table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
  table th,
  table td {
    padding: 8px 4px;
    min-width: 70px;
    word-wrap: break-word;
    font-size: 11px;
  }
  
  /* Header image responsive for ALL pages */
  .header-image-wrapper { 
    width: 100%; 
    overflow: hidden; 
    border-radius: 12px;
    margin-bottom: 20px;
  }
  .hero-image { 
    width: 100%; 
    height: auto; 
    max-width: none;
    object-fit: cover;
  }
}
@media (min-width: 769px) { .fab-reading { display: none !important; } }

/* Reader Toolbar Styles */
.reader-toolbar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}
.reader-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.12);
  transition: all 0.2s;
}
.reader-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6b46c1 100%);
  transform: translateY(-2px);
}

/* Social Share Styles */
.social-share {
  position: relative;
}
.share-btn {
  background: #34a853;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(52,168,83,0.12);
  transition: all 0.2s;
}
.share-btn:hover {
  background: #2d8a43;
  transform: translateY(-2px);
}
.share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
}
.share-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}
.share-option:hover {
  background: #f3f4f6;
  color: var(--primary-color);
}
.share-option i {
  width: 16px;
  text-align: center;
}
.share-option i.fab.fa-whatsapp { color: #25D366; }
.share-option i.fab.fa-twitter { color: #1DA1F2; }
.share-option i.fab.fa-facebook { color: #1877F2; }
.share-option i.fab.fa-linkedin { color: #0077B5; }
.share-option i.fas.fa-link { color: var(--primary-color); }
.reading-mode .main-content {
  max-width: 700px;
  margin: 40px auto !important;
  box-shadow: 0 8px 40px rgba(107,70,193,0.10);
  background: #fff !important;
  border-radius: 24px;
  padding: 40px 28px !important;
}
.reading-mode body > *:not(.container):not(script):not(style) {
  display: none !important;
}
.reading-mode .container {
  box-shadow: none;
  background: none;
  padding: 0 !important;
}
.reading-mode .reader-toolbar {
  justify-content: center;
  margin-bottom: 32px;
}
