// Testimonials Section .satag--home-testimonials-container { max-width: 1200px; margin: 0 auto; padding-top: 4rem; h2 { text-align: left; margin-bottom: 3rem; margin-top: 0; } } .satag--home-testimonials { display: flex; flex-direction: column; gap: 2rem; @media (min-width: 768px) { flex-direction: row; align-items: flex-start; } } // Text-Container (links) .satag--home-testimonials-text-container { flex: 1; position: relative; min-height: 250px; @media (min-width: 768px) { flex: 0 0 60%; } @media (max-width: 767px) { min-height: 400px; // Mehr Platz für den Text auf mobilen Geräten } } .satag--home-testimonials-text { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; &.active { opacity: 1; visibility: visible; } blockquote { font-style: normal; margin-bottom: 1.5rem; color: #fff; border-left: none !important; padding-left: 0 !important; @media (max-width: 767px) { font-size: 1rem; // Etwas kleinere Schrift auf mobilen Geräten line-height: 1.5; margin-top: 70px; // Platz für das Logo über dem Text } } } .satag--home-testimonial-author { margin-top: 1rem; @media (max-width: 767px) { margin-top: 1.5rem; // Mehr Abstand nach oben auf mobilen Geräten margin-bottom: 2rem; // Mehr Abstand nach unten auf mobilen Geräten } } .satag--home-testimonial-text-logo { max-width: 120px !important; filter: grayscale(1); @media (max-width: 767px) { display: none; position: absolute; top: 0; left: 0; max-width: 80px !important; // Kleineres Logo margin-bottom: 1rem; } } .satag--home-testimonial-name { font-weight: bold; margin-bottom: 0.25rem; @media (max-width: 767px) { font-size: 1.2rem; // Größerer Name auf mobilen Geräten margin-bottom: 0.1rem; } } .satag--home-testimonial-title { font-size: 0.9rem; color: #666; @media (max-width: 767px) { font-size: 1rem; // Etwas größerer Titel auf mobilen Geräten margin-top: 0; // Kein negativer Abstand mehr } } // Bilder-Container (rechts) .satag--home-testimonials-images { display: flex; gap: 1rem; justify-content: center; @media (min-width: 768px) { flex: 0 0 40%; justify-content: flex-end; } @media (max-width: 767px) { flex-wrap: nowrap; // Keine Umbrüche, damit die Bilder horizontal scrollbar sind overflow-x: auto; // Horizontales Scrollen ermöglichen -webkit-overflow-scrolling: touch; // Für besseres Scrolling auf iOS scrollbar-width: none; // Firefox: Scrollbar ausblenden -ms-overflow-style: none; // IE/Edge: Scrollbar ausblenden padding-bottom: 1rem; // Platz für die Scrollbar margin-top: 1rem; // Weniger Abstand nach oben justify-content: flex-start; // Links ausrichten // Webkit: Scrollbar ausblenden &::-webkit-scrollbar { display: none; } } } .satag--home-testimonial-image-wrapper { position: relative; width: 180px; height: 340px; overflow: hidden; cursor: pointer; opacity: 0.6; transition: all 0.3s ease; border: 1px solid transparent; border-radius: 0; border-color: var(--md-primary-fg-color--dark); img { filter: grayscale(1); } &.active { opacity: 1; border-color: var(--md-primary-fg-color, #9c27b0); transform: scale(1.05); img { filter: grayscale(0); } } &:hover { opacity: 0.8; } @media (max-width: 767px) { width: 120px; // Etwas größer als zuvor height: 180px; // Etwas größer als zuvor flex: 0 0 auto; // Verhindert Schrumpfen margin-right: 0.5rem; // Abstand zwischen den Bildern &:last-child { margin-right: 1rem; // Extra Platz am Ende für besseres Scrollen } } } .satag--home-testimonial-image { width: 100%; height: 100%; object-fit: cover; } .satag--home-testimonial-logo { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: transparent; filter: grayscale(1); border-radius: 50%; padding: 5px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); img { max-width: 60px; } @media (max-width: 767px) { bottom: 15px; // Näher am unteren Rand width: 30px; // Etwas kleiner height: 30px; // Etwas kleiner background: rgba(0, 0, 0, 0.5); // Halbdurchsichtiger Hintergrund für bessere Sichtbarkeit img { max-width: 40px; } } } // Responsive Anpassungen @media (max-width: 767px) { // Verbessertes Layout für mobile Geräte .satag--home-testimonials-container { h2 { margin-bottom: 1.5rem; font-size: 1.5rem; } } // Entfernung der Scrollklasse für die Bilder .satag--home-testimonials-images.scroll { scrollbar-width: none; -ms-overflow-style: none; &::-webkit-scrollbar { display: none; } } }