/* ========== C&A ANALYTICS DASHBOARD ==========
   
   BEREINIGT: Dark Mode wurde in zentrales Snippet ausgelagert
   
   ============================================== */

.ca-analytics-wrap {
  max-width: 1400px;
  margin: 20px 20px 40px 0;
}

.ca-analytics-intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

/* Statistik-Karten oben */
.ca-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ca-stat-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  transition: box-shadow .2s ease;
}

.ca-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.ca-stat-icon {
  font-size: 36px;
  line-height: 1;
}

.ca-stat-content {
  flex: 1;
}

.ca-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #0F766E;
  line-height: 1;
  margin-bottom: 5px;
}

.ca-stat-label {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Zwei-Spalten Layout */
.ca-analytics-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1200px) {
  .ca-analytics-columns {
    grid-template-columns: 1fr;
  }
}

.ca-analytics-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Karten */
.ca-analytics-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.ca-analytics-card h2 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #23282d;
}

.ca-empty {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Top Abschnitte */
.ca-sections-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ca-section-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ca-section-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 999px;
  overflow: hidden;
}

.ca-section-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0F766E, #14b8a6);
  transition: width .3s ease;
}

.ca-section-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ca-section-title {
  font-weight: 600;
  color: #23282d;
  flex: 1;
}

.ca-section-count {
  font-size: 14px;
  color: #0F766E;
  font-weight: 600;
  white-space: nowrap;
}

/* Top Artikel Liste */
.ca-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ca-posts-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ca-posts-list li:last-child {
  border-bottom: none;
}

.ca-posts-list a {
  flex: 1;
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.ca-posts-list a:hover {
  color: #0F766E;
  text-decoration: underline;
}

.ca-post-count {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

/* Tag-Verteilung */
.ca-tags-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ca-tag-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ca-tag-label {
  font-size: 13px;
  font-weight: 600;
  color: #23282d;
}

.ca-tag-visual {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ca-tag-bar-bg {
  flex: 1;
  height: 24px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.ca-tag-bar-fill {
  height: 100%;
  background: #0F766E;
  transition: width .3s ease;
}

.ca-tag-count {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

/* Zeitverlauf Chart */
.ca-timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  margin-bottom: 10px;
}

.ca-timeline-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.ca-timeline-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #14b8a6, #0F766E);
  border-radius: 2px 2px 0 0;
  transition: opacity .2s ease;
}

.ca-timeline-bar:hover .ca-timeline-bar-fill {
  opacity: 0.7;
}

.ca-timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  padding-top: 5px;
  border-top: 1px solid #f0f0f0;
}