/* ==================================================================
   solar-pulse.css — Solar Pulse v1 Design System (wattbalkon.de)
   Vollständige Komponenten-Bibliothek mit Responsive Design
   Letztes Update: 27.07.2026
   ================================================================== */

/* --- Color Tokens --- */
:root {
  --sp-amber: #f59e0b;
  --sp-amber-light: #fbbf24;
  --sp-amber-dark: #d97706;
  --sp-amber-glow: rgba(245, 158, 11, 0.15);
  --sp-dark: #0c0c14;
  --sp-dark-2: #16162a;
  --sp-dark-3: #1e1e36;
  --sp-surface: #1a1a2e;
  --sp-text: #e4e4e7;
  --sp-text-muted: #a1a1aa;
  --sp-text-dim: #71717a;
  --sp-border: #27272a;
  --sp-border-light: #3f3f46;
  --sp-radius: 12px;
  --sp-radius-sm: 8px;
  --sp-radius-xs: 4px;
  --sp-transition: 0.2s ease;
  --sp-green: rgba(34, 197, 94, 0.1);
  --sp-green-border: rgba(34, 197, 94, 0.3);
  --sp-red: rgba(239, 68, 68, 0.1);
  --sp-red-border: rgba(239, 68, 68, 0.3);
}

/* ==================================================================
   1. STATS CARDS (.sp-stats > .sp-stat)
   ================================================================== */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.sp-stat {
  background: var(--sp-dark-2);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--sp-transition);
}
.sp-stat:hover {
  border-color: var(--sp-amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--sp-amber-glow);
}
.sp-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sp-amber);
  line-height: 1.2;
  display: block;
}
.sp-lbl {
  font-size: 0.875rem;
  color: var(--sp-text-muted);
  margin-top: 6px;
  font-weight: 500;
  display: block;
}
.sp-sub {
  font-size: 0.75rem;
  color: var(--sp-text-dim);
  margin-top: 4px;
  display: block;
}
/* Backward-compat aliases */
.sp-stats .sp-stat-value { font-size: 1.75rem; font-weight: 700; color: var(--sp-amber); display: block; }
.sp-stats .sp-stat-label { font-size: 0.875rem; color: var(--sp-text-muted); margin-top: 6px; display: block; }
.spec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 28px 0; }
.spec-card { background: var(--sp-dark-2); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); padding: 24px 20px; text-align: center; }
.spec-value { font-size: 1.75rem; font-weight: 700; color: var(--sp-amber); display: block; }
.spec-label { font-size: 0.875rem; color: var(--sp-text-muted); margin-top: 6px; display: block; }

/* ==================================================================
   2. FEATURE BOX (.sp-feature)
   ================================================================== */
.sp-feature {
  background: var(--sp-dark-2);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 24px;
  margin: 16px 0;
  transition: var(--sp-transition);
}
.sp-feature:hover {
  border-color: var(--sp-border-light);
}
.sp-ftitle, .sp-feature h3, .sp-feature h4 {
  color: var(--sp-amber);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}
.sp-feature p {
  color: var(--sp-text-muted);
  line-height: 1.6;
  margin: 0;
}
/* Backward-compat */
.key-feature-box { background: var(--sp-dark-2); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); padding: 24px; margin: 16px 0; }
.kf-title { color: var(--sp-amber); margin-bottom: 10px; font-weight: 600; }

/* ==================================================================
   3. TABLE (.sp-table-wrap)
   Responsive: Horizontal scroll on mobile, sticky first column
   ================================================================== */
.sp-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-border);
  -webkit-overflow-scrolling: touch;
}
.sp-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}
.sp-table-wrap th {
  background: var(--sp-dark-3);
  color: var(--sp-amber);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.sp-table-wrap td {
  padding: 12px 16px;
  border-top: 1px solid var(--sp-border);
  color: var(--sp-text);
  font-size: 0.9rem;
}
.sp-table-wrap tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.sp-table-wrap tbody tr:hover td {
  background: var(--sp-amber-glow);
}
/* Backward-compat */
.comparison-table-wrapper { overflow-x: auto; margin: 28px 0; border-radius: var(--sp-radius); border: 1px solid var(--sp-border); -webkit-overflow-scrolling: touch; }
.comparison-table-wrapper table { width: 100%; border-collapse: collapse; min-width: 400px; }
.comparison-table-wrapper th { background: var(--sp-dark-3); color: var(--sp-amber); padding: 14px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
.comparison-table-wrapper td { padding: 12px 16px; border-top: 1px solid var(--sp-border); }
.comparison-table-wrapper tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ==================================================================
   4. PROS/CONS SPLIT (.sp-split)
   Mobile: Stack vertically below 768px
   ================================================================== */
.sp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.sp-box {
  border-radius: var(--sp-radius);
  padding: 24px;
}
.sp-box.sp-pros {
  background: var(--sp-green);
  border: 1px solid var(--sp-green-border);
}
.sp-box.sp-cons {
  background: var(--sp-red);
  border: 1px solid var(--sp-red-border);
}
.sp-box h4, .sp-box h3 {
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 1rem;
}
.sp-box.sp-pros h4 { color: #4ade80; }
.sp-box.sp-cons h4 { color: #f87171; }
.sp-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-box ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--sp-text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.sp-box ul li:last-child { border-bottom: none; }
/* Backward-compat */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.pros-col { border-radius: var(--sp-radius); padding: 24px; background: var(--sp-green); border: 1px solid var(--sp-green-border); }
.cons-col { border-radius: var(--sp-radius); padding: 24px; background: var(--sp-red); border: 1px solid var(--sp-red-border); }
.pros-col h4 { color: #4ade80; margin-bottom: 14px; }
.cons-col h4 { color: #f87171; margin-bottom: 14px; }
.pros-col ul, .cons-col ul { list-style: none; padding: 0; margin: 0; }
.pros-col ul li, .cons-col ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--sp-text); font-size: 0.9rem; }

/* ==================================================================
   5. CTA BUTTON (.sp-cta)
   ================================================================== */
.sp-cta-wrap {
  margin: 28px 0;
  text-align: center;
}
.sp-cta {
  display: inline-block;
  background: var(--sp-amber);
  color: var(--sp-dark) !important;
  padding: 14px 32px;
  border-radius: var(--sp-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--sp-transition);
  border: none;
  cursor: pointer;
}
.sp-cta:hover {
  background: var(--sp-amber-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--sp-amber-glow);
}
/* Backward-compat */
.cta-wrapper { margin: 28px 0; text-align: center; }
.cta-button { display: inline-block; background: var(--sp-amber); color: var(--sp-dark) !important; padding: 14px 32px; border-radius: var(--sp-radius-sm); font-weight: 700; text-decoration: none; transition: var(--sp-transition); }
.cta-button:hover { background: var(--sp-amber-light); transform: translateY(-2px); }

/* ==================================================================
   6. VERDICT BOX (.sp-verdict)
   ================================================================== */
.sp-verdict {
  background: linear-gradient(135deg, var(--sp-dark-2), var(--sp-dark-3));
  border: 1px solid var(--sp-amber);
  border-radius: var(--sp-radius);
  padding: 28px;
  margin: 28px 0;
}
.sp-vlabel {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sp-amber);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.sp-vscore {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sp-text);
  margin-bottom: 10px;
}
.sp-vdesc {
  color: var(--sp-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
/* Backward-compat */
.verdict-box { background: linear-gradient(135deg, var(--sp-dark-2), var(--sp-dark-3)); border: 1px solid var(--sp-amber); border-radius: var(--sp-radius); padding: 28px; margin: 28px 0; }
.verdict-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sp-amber); font-weight: 600; display: block; margin-bottom: 8px; }
.verdict-rating { font-size: 1.5rem; font-weight: 700; color: var(--sp-text); margin-bottom: 10px; }
.verdict-text { color: var(--sp-text-muted); line-height: 1.6; }

/* ==================================================================
   7. FAQ (.sp-faq) — Native <details><summary>
   ================================================================== */
.sp-faq {
  margin: 28px 0;
}
.sp-faq h2, .sp-faq h3 {
  color: var(--sp-text);
  margin-bottom: 16px;
}
.sp-faq details {
  background: var(--sp-dark-2);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--sp-transition);
}
.sp-faq details[open] {
  border-color: var(--sp-amber);
}
.sp-faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--sp-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
  content: '+';
  color: var(--sp-amber);
  font-size: 1.3rem;
  font-weight: 700;
  transition: var(--sp-transition);
}
.sp-faq details[open] summary::after {
  transform: rotate(45deg);
}
.sp-faq summary + *, .sp-faq details p {
  padding: 0 20px 16px;
  color: var(--sp-text-muted);
  line-height: 1.6;
  margin: 0;
}
/* Backward-compat */
.inline-faq { margin: 28px 0; }
.inline-faq details { background: var(--sp-dark-2); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-sm); margin-bottom: 8px; overflow: hidden; }
.inline-faq details[open] { border-color: var(--sp-amber); }
.inline-faq summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--sp-text); list-style: none; }
.inline-faq summary::-webkit-details-marker { display: none; }
.inline-faq summary + *, .inline-faq details p { padding: 0 20px 16px; color: var(--sp-text-muted); line-height: 1.6; }

/* ==================================================================
   8. AUTHOR BOX (.sp-author)
   Mobile: Stack vertically
   ================================================================== */
.sp-author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--sp-dark-2);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 24px;
  margin: 28px 0;
}
.sp-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--sp-amber);
  color: var(--sp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sp-author h4 {
  color: var(--sp-text);
  margin: 4px 0 8px;
  font-size: 1.1rem;
}
.sp-arole {
  font-size: 0.8rem;
  color: var(--sp-amber);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sp-author p {
  color: var(--sp-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
/* Backward-compat */
.author-bio { display: flex; gap: 16px; align-items: flex-start; background: var(--sp-dark-2); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); padding: 24px; margin: 28px 0; }
.author-bio-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--sp-amber); color: var(--sp-dark); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; flex-shrink: 0; }

/* ==================================================================
   9. SOURCES (.sp-sources)
   ================================================================== */
.sp-sources {
  background: var(--sp-dark-2);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 24px;
  margin: 28px 0;
}
.sp-sources h3 {
  color: var(--sp-amber);
  margin-bottom: 14px;
  font-size: 1rem;
}
.sp-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-sources li {
  padding: 8px 0;
  border-bottom: 1px solid var(--sp-border);
  font-size: 0.85rem;
}
.sp-sources li:last-child { border-bottom: none; }
.sp-sources a {
  color: var(--sp-amber-light);
  text-decoration: none;
  transition: var(--sp-transition);
}
.sp-sources a:hover { text-decoration: underline; }
.sp-date {
  color: var(--sp-text-dim);
  font-size: 0.8rem;
  margin-left: 4px;
}
/* Backward-compat */
.sources-section { background: var(--sp-dark-2); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); padding: 24px; margin: 28px 0; }
.sources-section h3 { color: var(--sp-amber); margin-bottom: 14px; }
.sources-section li { padding: 8px 0; border-bottom: 1px solid var(--sp-border); font-size: 0.85rem; }
.sources-section a { color: var(--sp-amber-light); text-decoration: none; }
.source-date { color: var(--sp-text-dim); font-size: 0.8rem; }

/* ==================================================================
   10. DISCLOSURE (.sp-disclosure)
   ================================================================== */
.sp-disclosure {
  font-size: 0.8rem;
  color: var(--sp-text-dim);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--sp-radius-sm);
  margin: 16px 0;
  border-left: 3px solid var(--sp-border-light);
}
.affiliate-disclosure {
  font-size: 0.8rem;
  color: var(--sp-text-dim);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--sp-radius-sm);
  margin: 16px 0;
}

/* ==================================================================
   11. CTA SECTION (.sp-cta-section)
   ================================================================== */
.sp-cta-section {
  background: linear-gradient(135deg, var(--sp-dark-2), var(--sp-dark-3));
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 32px;
  text-align: center;
  margin: 28px 0;
}
.sp-cta-section h3 {
  color: var(--sp-amber);
  margin-bottom: 12px;
}
.sp-cta-section p {
  color: var(--sp-text-muted);
  margin-bottom: 20px;
}

/* ==================================================================
   12. READING PROGRESS BAR
   ================================================================== */
.sp-reading-time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--sp-text-dim);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--sp-border);
  margin-bottom: 16px;
}

/* ==================================================================
   RESPONSIVE DESIGN — Mobile Anpassungen
   ================================================================== */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .sp-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  .sp-stat {
    padding: 18px 14px;
  }
  .sp-val {
    font-size: 1.5rem;
  }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  /* Stats: 2-spaltig auf Mobile */
  .sp-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
  }
  .sp-stat {
    padding: 16px 12px;
  }
  .sp-val {
    font-size: 1.3rem;
  }
  .sp-lbl {
    font-size: 0.8rem;
  }
  .sp-sub {
    font-size: 0.7rem;
  }

  /* Pros/Cons: Vertikal stapeln */
  .sp-split {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }

  /* Author: Vertikal */
  .sp-author {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .sp-avatar {
    margin: 0 auto;
  }

  /* Feature Box: weniger Padding */
  .sp-feature {
    padding: 18px;
    margin: 12px 0;
  }

  /* Tables: Horizontal scroll + erste Spalte sticky */
  .sp-table-wrap {
    margin: 20px 0;
  }
  .sp-table-wrap th {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  .sp-table-wrap td {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  /* CTA: Full width */
  .sp-cta {
    display: block;
    text-align: center;
  }

  /* Verdict: weniger Padding */
  .sp-verdict {
    padding: 20px;
  }
  .sp-vscore {
    font-size: 1.2rem;
  }

  /* Backward-compat */
  .pros-cons-grid { grid-template-columns: 1fr; }
  .spec-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Small Mobile: ≤ 480px */
@media (max-width: 480px) {
  /* Stats: 1-spaltig */
  .sp-stats {
    grid-template-columns: 1fr;
  }

  /* CTA Button: Full width */
  .sp-cta-wrap {
    margin: 20px 0;
  }
  .sp-cta {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Sources: Kleinere Schrift */
  .sp-sources {
    padding: 16px;
  }
  .sp-sources li {
    font-size: 0.8rem;
  }

  /* FAQ: Kleinere Padding */
  .sp-faq summary {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  .sp-faq details p {
    padding: 0 16px 14px;
    font-size: 0.85rem;
  }

  /* Backward-compat */
  .spec-cards { grid-template-columns: 1fr; }
}

/* Print: Tabellen nicht abschneiden */
@media print {
  .sp-table-wrap { overflow: visible; }
  .sp-table-wrap table { min-width: auto; }
}
