#testimonial-section {
  background: #e0e0e000 !important;
  padding: 60px 20px;
  font-family: Arial, sans-serif;
  text-align: center;
}


#testimonial-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #000;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  margin-bottom: 30px;
}

.carousel-wrapper:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 20px;
  user-select: none;
}

.testimonial-card {
  flex: 0 0 400px;
  background: #222222;
  color: #000000;
  border-radius: 8px;
  padding: 30px;
  font-size: 1.1rem;
  text-align: left;
}

.google-btn-wrapper {
  margin-top: 40px;
}

.google-btn {
  display: inline-block;
  padding: 12px 24px;
  color: #000;
  border: 2px solid #000;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.google-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Scroll Animation --- */
.track-top { animation: scroll-left 60s linear infinite; }
.track-bottom { animation: scroll-right 60s linear infinite; }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Responsive & Swipe */
@media (max-width: 1024px) { .testimonial-card { flex: 0 0 220px; font-size:1rem; } }
@media (max-width: 768px) {
  .testimonial-card { flex: 0 0 180px; font-size:0.95rem; }
  .carousel-track { animation: none; flex-wrap: nowrap; }
  .carousel-wrapper { overflow-x:auto; -webkit-overflow-scrolling: touch; scroll-behavior:smooth; }
}
@media (max-width:480px){ .testimonial-card{ flex:0 0 150px; font-size:0.9rem; } }


/* Angepasste Testimonial-Karten */
.testimonial-card {
  flex: 0 0 400px;      /* etwas kleinere Breite */
  height: 500px;        /* etwas kleinere Höhe */
  background: #ffffff;  
  color: #000000;
  border-radius: 20px;
  padding: 35px;
  font-size: 1.2rem;    /* deutlich größere Schrift */
  line-height: 1.8;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #ccc; /* grauer Rand außenrum */
  box-sizing: border-box;  /* Rand in Gesamtgröße berücksichtigen */
  transition: none;        /* kein Hover-Effekt */
}

/* Entfernen des Hover-Effekts */
.testimonial-card:hover {
  transform: none;
}

/* Responsive Anpassungen */
@media (max-width: 1024px) { 
  .testimonial-card { flex: 0 0 300px; font-size:1.3rem; height: 350px; padding: 25px; } 
}
@media (max-width: 768px) {
  .testimonial-card { flex: 0 0 240px; font-size:1.1rem; height: 300px; padding: 20px; }
  .carousel-track { animation: none; flex-wrap: nowrap; }
  .carousel-wrapper { overflow-x:auto; -webkit-overflow-scrolling: touch; scroll-behavior:smooth; }
}
@media (max-width:480px){ 
  .testimonial-card { flex:0 0 180px; font-size:1rem; height: 250px; padding: 15px; } 
}
@media (max-width: 1024px) { 
  .testimonial-card { 
    flex: 0 0 300px; 
    font-size:1.3rem; 
    height: 350px; 
    padding: 25px; 
  } 
}

@media (max-width: 768px) {
  .testimonial-card { 
    flex: 0 0 240px;  /* handlicher */
    font-size:1.0rem; 
    height: 300px; 
    padding: 20px; 
  }
  .carousel-track { 
    animation: none; 
    flex-wrap: nowrap; 
  }
  .carousel-wrapper { 
    overflow-x:auto; 
    -webkit-overflow-scrolling: touch; 
    scroll-behavior:smooth; 
    padding-bottom: 10px; 
  }
}

@media (max-width:480px){ 
  .testimonial-card { 
    flex:0 0 180px;  /* klein genug für Handys */
    font-size:1rem; 
    height: 250px; 
    padding: 15px; 
  } 
}

@media (max-width:480px){ 
  .testimonial-card { 
    flex:0 0 200px;  /* Breite der Karte */
    font-size:0.85rem; /* kleinere Schrift auf Handys */
    height: 450px; 
    padding: 12px; 
  } 
}




@media (max-width: 768px) {
  .carousel-wrapper {
    overflow: visible;        /* kein horizontales Scrollen */
  }

  .carousel-track {
    display: block;           /* statt flex → normale Block-Elemente */
    animation: none;          /* keine Auto-Scroll-Animation */
  }

  .testimonial-card {
    width: 100%;              /* volle Breite */
    max-width: 100%;
    margin: 0 auto 20px;      /* Abstand zwischen den Cards */
    height: auto;             /* Höhe flexibel */
    font-size: 1rem;
    padding: 20px;
  }

  /* Nur die ersten 3 Cards anzeigen */
  .testimonial-card:nth-of-type(n+4) {
    display: none;
  }
}






/* --- Button modern & elegant --- */
.load-more-btn {
  display: none; /* standardmäßig ausgeblendet */
  background: linear-gradient(135deg, #1E73BE, #1E73BE);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 20px auto 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.load-more-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #1E73BE, #1E73BE);
}

/* Animation beim Einblenden neuer Cards */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.show-card {
  display: block !important;
  animation: fadeInUp 0.5s ease forwards;
}

/* Mobile Regeln */
@media (max-width: 768px) {
  #load-more-btn {
    display: block;
  }

  #testimonial-section h2 {
    font-size: 1.5rem;
  }

  .carousel-track {
    display: block;
    animation: none;
  }

  .testimonial-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    height: auto;
    padding: 20px;
    font-size: 1rem;
  }

  /* Nur die ersten 3 anzeigen */
  .testimonial-card:nth-of-type(n+4) {
    display: none;
  }
}



/* =============================== */
/*   Tablet: bis 1024px Breite     */
/* =============================== */
@media (max-width: 1024px) {
  .carousel-wrapper {
    overflow: visible;
  }

  .carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 nebeneinander */
    gap: 20px;
    animation: none;
  }

  .testimonial-card {
    width: 100%;
    height: auto;
    padding: 20px;
    font-size: 1rem;
    margin: 0;
  }

  /* Nur die ersten 3 sichtbar beim Start */
  .testimonial-card:nth-of-type(n+4) {
    display: none;
  }

  /* Button sichtbar auf Tablet */
  #load-more-btn {
    display: block;
  }
}


/* =============================== */
/*   Handy-Layout: eine Karte pro Reihe   */
/* =============================== */
@media (max-width: 768px) {

  .carousel-wrapper {
    overflow: visible;
  }

  .carousel-track {
    display: block;       /* alle Cards untereinander */
    animation: none;      /* keine Bewegung */
  }

  .testimonial-card {
    width: 100%;          /* volle Breite */
    max-width: 100%;
    margin: 0 auto 20px;  /* Abstand nach unten */
    height: auto;
    padding: 20px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  /* Nur die ersten 3 sichtbar */
  .testimonial-card:nth-of-type(n+4) {
    display: none;
  }

  /* Button sichtbar, zentriert */
  #load-more-btn {
    display: block;
    margin: 10px auto 20px;
  }
}


.load-more-btn {
  display: block;            /* wird per JS nur auf Handy/Tablet gezeigt */
  background: none;
  border: none;
  color: #000;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  margin: 20px auto 10px;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.load-more-btn:hover {
  opacity: 0.55;
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  60% {
    opacity: 1;
    transform: translateY(10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-card {
  animation: cardReveal 0.55s cubic-bezier(.16,.84,.44,1) forwards;
}

.load-more-btn {
  display: block;
  margin: 20px auto 10px;
  background: #1E73BE;
  color: white;
  border: none;
  padding: 14px 26px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.load-more-btn:active {
  transform: scale(0.97);
}



@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  60% {
    opacity: 1;
    transform: translateY(8px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-card {
  animation: cardReveal .55s cubic-bezier(.16,.84,.44,1);
}


.load-more-btn {
  background: #1E73BE;
  padding: 14px 26px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: all .25s ease;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}


.load-more-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 25px auto;
  display: block;

  font-size: 0.95rem;
  letter-spacing: 1.5px;
  font-weight: 500;

  color: rgba(0,0,0,0.55);   /* exakt dieser graue Look */
  cursor: pointer;

  text-transform: uppercase;
  transition: opacity .25s ease;
}

