/* Google Bewertungsbox */
.google-header-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
  max-width: 920px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.google-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.google-logo {
  height: 36px;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

.rating-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.rating-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.average-rating {
  font-size: 1.6rem;
  font-weight: 700;
  color: #202124;
}

.stars {
  display: flex;
  gap: 2px;
}

.total-reviews {
  color: #5f6368;
  font-size: 0.9rem;
}

.write-review-btn {
  background-color: #1a73e8;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  user-select: none;
  cursor: pointer;
  margin-left: auto;
  text-align: right;
}

.write-review-btn:hover,
.write-review-btn:focus {
  background-color: #1669c1;
  outline: none;
}

/* Mobile */
@media (max-width: 799px) {
  .google-header-box {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    max-width: 90vw;
  }

  .google-header {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }

  .google-logo {
    height: 36px;
  }

  .rating-info {
    justify-content: center;
  }

  .write-review-btn {
    width: 100%;
    text-align: center;
  }
}

/* Review Carousel */
.review-carousel {
  max-width: 920px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: auto;
  user-select: auto;
  cursor: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.review-carousel::-webkit-scrollbar {
  display: none;
}

.review-carousel:active {
  cursor: grabbing;
}

.review-track {
  display: flex;
  gap: 16px;
  transform: translateZ(0);
  will-change: transform;
}

.review-card {
  scroll-snap-align: start;
  min-width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.1);
  padding: 12px;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  position: relative;
  overflow: hidden;
  transition: height 0.3s ease;
}

/* Review Header */
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.review-author {
  font-weight: 700;
  font-size: 1rem;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  width: 15px !important;
  height: 15px !important;
  margin-left: 1px;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
  border: none;
  padding: 0;
}

/* Review Meta */
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5f6368;
  font-size: 0.8rem;
  margin-top: 4px;
}

.review-date,
.review-stars {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #fbbc04;
}

/* Review Text */
.review-text {
  color: #3c4043;
  font-size: 0.9rem;
  flex-grow: 1;
  overflow: hidden;
  white-space: normal;
  line-height: 1.4;
  padding-bottom: 1.5em;
  position: relative;
  transition: max-height 0.3s ease;
  text-align: left;
}

/* Read More Link */
.read-more {
  color: #004aad;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  user-select: none;
  text-decoration: underline;
  margin-left: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  display: inline;
  background: none;
  border: none;
  padding: 0;
}

.read-more:hover,
.read-more:focus {
  opacity: 1;
  outline: none;
  text-decoration: underline;
}

/* Responsive Card Widths */
@media (min-width: 1200px) {
  .review-card {
    flex: 0 0 calc((100% - 48px) / 4);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .review-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .review-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 599px) {
  .review-card {
    flex: 0 0 100%;
  }
}
