/* ============================================================
   TRELONIX – Dashboard Promo Section
   Genutzt auf index.html & pages/dashboard-vorteile.html
   ============================================================ */

.dash-promo {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-1);
  overflow: hidden;
}

.dash-promo__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.dash-promo__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.dash-promo__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(41,151,255,0.12) 0%, transparent 60%), var(--color-bg-2);
  box-shadow: var(--shadow-lg);
}

.dash-promo__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Feature Grid (für dashboard-vorteile.html) ── */
.dash-features {
  padding: var(--space-20) 0;
}

.dash-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  align-items: stretch;
}

.dash-feature-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.dash-features__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .dash-features__grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dash-features__grid--3 {
    grid-template-columns: 1fr;
  }
}

.dash-feature-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(41, 151, 255, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.dash-feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.dash-feature-card__title {
  font-size: var(--font-size-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.dash-feature-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Devices Showcase (zweispaltig, iMac hell/dunkel) ── */
.dash-showcase {
  padding: var(--space-20) 0;
  border-top: 1px solid var(--color-border);
}

.dash-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.dash-showcase__image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.dash-showcase__image-wrap img {
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .dash-promo__grid,
  .dash-showcase__grid {
    grid-template-columns: 1fr;
  }
  .dash-promo__visual { order: -1; }
}

/* ── Dashboard Page Hero: layered light/dark screenshot composition ── */
.dash-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.dash-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
}

.dash-hero__visual-light,
.dash-hero__visual-dark {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  object-fit: cover;
}

.dash-hero__visual-light {
  top: 0;
  left: 0;
  width: 72%;
  height: 62%;
  z-index: 1;
  opacity: 0.92;
}

.dash-hero__visual-dark {
  bottom: 0;
  right: 0;
  width: 88%;
  height: 78%;
  z-index: 2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

@media (max-width: 900px) {
  .dash-hero__grid {
    grid-template-columns: 1fr;
  }
  .dash-hero__visual {
    aspect-ratio: 1 / 0.85;
    margin-top: var(--space-8);
  }
}

/* ── Upgraded Stats Bar ── */
.stats__grid--4 {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
}

.stats__item {
  position: relative;
  padding: var(--space-4) var(--space-6);
}

.stats__item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--color-border);
}

.stats__item-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(41, 151, 255, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats__item-icon svg {
  width: 18px;
  height: 18px;
}

.badge-popular {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(41, 151, 255, 0.3);
  background: rgba(41, 151, 255, 0.08);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.badge-popular::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease infinite;
}

.badge-popular--inline {
  position: static;
  margin-left: var(--space-3);
  vertical-align: middle;
}

/* ── Korrektur für die Stats Bar auf Smartphones ── */
@media (max-width: 768px) {
  .stats__grid--4 {
    grid-template-columns: 1fr !important; /* Alle Elemente untereinander */
    gap: var(--space-8) !important;       /* Angenehmer Abstand zwischen den Boxen */
  }
  
  /* Entfernt alle vertikalen Trennstriche im Handyformat */
  .stats__item::before { 
    display: none !important; 
  }
  
  /* Zentriert den Text im Handyformat (optional, falls gewünscht) */
  .stats__item {
    text-align: center;
  }
}

/* ============================================================
   TRELONIX – Dashboard VS-Vergleich (Modern Cards)
   ============================================================ */

.vs-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.vs-card {
  /* Nutzt Ihre Standard-Hintergrundfarbe (bg-1 oder bg-2) statt Weiß */
  background: var(--color-bg-2, transparent); 
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vs-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.vs-card__title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.vs-card__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.vs-side {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Rote "Ohne Dashboard"-Seite */
.vs-side--bad {
  background: rgba(248, 113, 113, 0.05); /* Sehr zartes Rot */
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.vs-side--bad .vs-side__label {
  color: #f87171;
}

/* Blaue "Mit Dashboard"-Seite */
.vs-side--good {
  background: rgba(41, 151, 255, 0.05); /* Sehr zartes Accent-Blau */
  border: 1px solid rgba(41, 151, 255, 0.2);
}

.vs-side--good .vs-side__label {
  color: var(--color-accent);
}

.vs-side__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vs-side__label svg {
  width: 18px;
  height: 18px;
}

.vs-side p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── Handy-Ansicht: Untereinander statt nebeneinander ── */
@media (max-width: 768px) {
  .vs-card__split {
    grid-template-columns: 1fr; /* Alles untereinander */
    gap: var(--space-4);
  }
  
  .vs-card {
    padding: var(--space-4);
  }
}

/* Standardmäßig (für Laptop/PC): Tabelle zeigen, Karten verstecken */
.desktop-version {
  display: block;
}
.mobile-version {
  display: none;
}

/* Sobald der Bildschirm kleiner als 768px (Tablet/Handy) wird: Umschalten! */
@media (max-width: 768px) {
  .desktop-version {
    display: none !important;
  }
  .mobile-version {
    display: flex !important; /* Macht die Karten sichtbar */
  }
}