/* ==========================================================================
   TESTIMONIAL COMPONENT — Hero Inline Badge
   Dezentes, transparentes Element. Klickbar → testimonials.html
   ========================================================================== */

.testimonial-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  animation: testimonialFadeIn 0.8s ease 0.6s forwards;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.testimonial-banner:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.30);
  transform: translateY(-2px);
}

@keyframes testimonialFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-banner__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.testimonial-banner__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-banner__quote {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-primary);
  white-space: nowrap;
}

.testimonial-banner__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.testimonial-banner__name {
  font-weight: 600;
  color: var(--text-secondary);
}

.testimonial-banner__separator {
  opacity: 0.4;
}

.testimonial-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 0.7rem;
}

.testimonial-banner__cta i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.testimonial-banner:hover .testimonial-banner__cta i {
  transform: translateX(3px);
}

/* Mobile */
@media (max-width: 640px) {
  .testimonial-banner {
    margin-top: var(--space-6);
    padding: var(--space-2) var(--space-3);
  }

  .testimonial-banner__quote {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   FEATURED BANNER — "Neu im Universe" (z. B. KI Academy Premium)
   ========================================================================== */

.featured-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  animation: testimonialFadeIn 0.8s ease 0.4s forwards;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.featured-banner:hover {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.50);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.20), 0 0 40px rgba(139, 92, 246, 0.10);
}

.featured-banner__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f97316 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.featured-banner__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-banner__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.featured-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.40);
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.40);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.60);
    transform: scale(1.05);
  }
}

.featured-banner__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.featured-banner__separator {
  opacity: 0.4;
}

.featured-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fb923c;
  font-weight: 500;
  font-size: 0.7rem;
}

.featured-banner__cta i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.featured-banner:hover .featured-banner__cta i {
  transform: translateX(3px);
}

/* ==========================================================================
   FEATURED CAROUSEL — "Neuheiten" rotierendes Banner (Grid-Overlay)
   ========================================================================== */

.featured-carousel {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(20px);
  animation: testimonialFadeIn 0.8s ease 0.4s forwards;
  max-width: 100%;
}

.featured-carousel__track {
  display: grid;
  grid-template-areas: "slide";
  width: 100%;
  max-width: 480px;
}

/* Each slide sits in the same grid cell */
.featured-banner--slide {
  grid-area: slide;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.5s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.featured-banner--slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Slide 2: Senior styling */
.featured-banner--slide:nth-child(2) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(236, 72, 153, 0.20);
}

.featured-banner--slide:nth-child(2):hover {
  background: rgba(236, 72, 153, 0.10);
  border-color: rgba(236, 72, 153, 0.40);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.15);
}

.featured-banner--slide:nth-child(2) .featured-banner__icon {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.30);
}

.featured-banner--slide:nth-child(2) .featured-banner__badge--secondary {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  animation: none;
  box-shadow: none;
}

.featured-banner--slide:nth-child(2) .featured-banner__cta {
  color: #ec4899;
}

/* Explicit badge styles inside carousel */
.featured-carousel .featured-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.40);
  flex-shrink: 0;
}

/* Dots */
.featured-carousel__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.featured-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.featured-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.50);
}

.featured-carousel__dot.is-active {
  width: 24px;
  background: linear-gradient(135deg, #f97316 0%, #8b5cf6 100%);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.40);
}

/* Mobile */
@media (max-width: 640px) {
  .featured-carousel {
    margin-top: var(--space-4);
  }
  
  .featured-banner--slide {
    padding: var(--space-2) var(--space-3);
  }
  
  .featured-banner__title {
    font-size: 0.8rem;
  }
  
  .featured-banner__meta {
    flex-wrap: wrap;
    gap: var(--space-1);
    font-size: 0.65rem;
  }
}

/* Light Mode */
html.light-theme .featured-banner {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(249, 115, 22, 0.30);
}

html.light-theme .featured-banner:hover {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(249, 115, 22, 0.50);
}

html.light-theme .featured-banner__title {
  color: #111827;
}

html.light-theme .featured-banner__meta {
  color: #374151;
}

/* Light Mode — gleiche Transparenz wie Ghost-Button */
html.light-theme .testimonial-banner {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(88, 166, 255, 0.25);
}

html.light-theme .testimonial-banner:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(88, 166, 255, 0.40);
}

html.light-theme .testimonial-banner__quote {
  color: #111827;
}

html.light-theme .testimonial-banner__meta,
html.light-theme .testimonial-banner__name {
  color: #374151;
}
