/**
 * testimonials.css
 * Kundenstimmen / Testimonials Cards
 * Upload nach: /media/css/testimonials.css
 */

/* ========== TESTIMONIALS GRID ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

/* ========== TESTIMONIAL CARD ========== */
.testimonial-card {
  position: relative;
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(23, 86, 140, 0.2);
  border-color: var(--gold);
}

/* Card Background Image */
.testimonial-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.20;
  z-index: 1;
  transition: opacity 0.4s, transform 0.4s;
}

.testimonial-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card:hover .testimonial-bg {
  opacity: 0.30;
  transform: scale(1.05);
}

/* Card Content */
.testimonial-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Quote Icon */
.testimonial-quote-icon {
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Stars */
.testimonial-stars {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
}

/* Text */
.testimonial-text {
  font-family: var(--font-main);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: auto;
  flex-grow: 1;
}

/* Meta Information */
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.testimonial-company {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.testimonial-details {
  font-family: var(--font-main);
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.testimonial-details span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.testimonial-details span::before {
  content: "📍";
  font-size: 0.9rem;
}

/* ========== DARK MODE ========== */
body.dark-mode .testimonial-card {
  background: var(--bg-soft);
  border-color: var(--line);
}

body.dark-mode .testimonial-text {
  color: var(--text-light);
}

body.dark-mode .testimonial-company {
  color: var(--primary-light);
}

body.dark-mode .testimonial-quote-icon {
  opacity: 0.15;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    min-height: auto;
  }

  .testimonial-content {
    padding: 2rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-stars {
    font-size: 1.1rem;
  }

  .testimonial-quote-icon {
    font-size: 3rem;
  }
}
