/* ============================================
   SwissBeam Google Rating Slider
   Themes: .rating-dark | .rating-gray | .rating-white
   Requires: swiper-bundle.min.css
   ============================================ */

/* === BASE STYLES === */
#googlerating.rating-section {
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

#googlerating .rating-header {
  text-align: center;
  margin-bottom: 48px;
}

#googlerating .rating-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: #c8102e;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

#googlerating .rating-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

#googlerating .rating-title strong {
  font-weight: 700;
}

/* Google Badge */
#googlerating .google-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px;
  border-radius: 4px;
}

#googlerating .google-badge-stars {
  display: flex;
  gap: 2px;
}

#googlerating .google-badge-stars svg {
  width: 14px;
  height: 14px;
  fill: #f5a623;
}

#googlerating .google-badge-score {
  font-size: 16px;
  font-weight: 700;
}

#googlerating .google-badge-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Swiper */
#googlerating .reviewSwiper {
  padding: 4px 0;
}

#googlerating .swiper-wrapper {
  align-items: stretch;
}

#googlerating .swiper-slide {
  height: auto;
}

/* Cards */
#googlerating .review-card {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#googlerating .review-card:hover {
  transform: translateY(-3px);
}

#googlerating .card-top-bar {
  height: 3px;
  background: #c8102e;
  flex-shrink: 0;
}

#googlerating .card-content {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#googlerating .card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
}

#googlerating .card-stars svg {
  width: 14px;
  height: 14px;
  fill: #f5a623;
}

#googlerating .card-review-text {
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
  min-height: 98px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fix: leere <p> Tags von f:format.crop entfernen */
#googlerating .card-review-text p {
  margin: 0 !important;
  padding: 0 !important;
}

#googlerating .card-review-text p:empty {
  display: none !important;
}

#googlerating .card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

/* Avatar — dunkler Kreis als Fallback */
#googlerating .author-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Profilbild im Kreis */
#googlerating .author-avatar .author-avatar-img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  border-radius: 50% !important;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

#googlerating .author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#googlerating .author-name {
  font-weight: 600;
  font-size: 13px;
}

#googlerating .author-date {
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* === Navigation — !important gegen Bootstrap === */
#googlerating .slider-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-top: 40px !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 220px !important;
  float: none !important;
  clear: both !important;
}

#googlerating button.nav-btn {
  width: 44px !important;
  min-width: 44px;
  max-width: 44px;
  height: 44px !important;
  border-radius: 6px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 44px !important;
  float: none !important;
}

#googlerating button.nav-btn:hover {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
}

#googlerating button.nav-btn.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

#googlerating button.nav-btn.swiper-button-disabled:hover {
  background: transparent;
}

#googlerating .nav-btn svg {
  width: 18px;
  height: 18px;
}

#googlerating .slider-counter {
  font-size: 13px;
  min-width: 50px;
  text-align: center;
  font-weight: 500;
}

#googlerating .slider-counter .swiper-pagination-current {
  font-weight: 700;
  font-size: 15px;
}

/* Progress Bar */
#googlerating .slider-progress-wrap {
  margin: 32px auto 0;
  height: 2px;
  position: relative;
  max-width: 400px;
  border-radius: 2px;
}

#googlerating .slider-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #c8102e;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  #googlerating.rating-section { padding: 50px 0 60px; }
  #googlerating .rating-title { font-size: 22px; }
  #googlerating .card-content { padding: 22px 20px 20px; }
  #googlerating .card-review-text { min-height: auto; }
}


/* ============================================
   THEME: DARK
   ============================================ */
#googlerating.rating-dark {
  background: #1e1e1e;
}

#googlerating.rating-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 120px,
    rgba(255,255,255,0.012) 120px,
    rgba(255,255,255,0.012) 121px
  );
  pointer-events: none;
}

#googlerating.rating-dark .rating-title { color: #fff; }
#googlerating.rating-dark .rating-title strong { color: #fff !important; }
#googlerating.rating-dark .google-badge { border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
#googlerating.rating-dark .google-badge-score { color: #fff; }
#googlerating.rating-dark .google-badge-label { color: rgba(255,255,255,0.5); }

#googlerating.rating-dark .review-card { background: #fff; box-shadow: none; }
#googlerating.rating-dark .review-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
#googlerating.rating-dark .card-review-text { color: #444; }
#googlerating.rating-dark .author-name { color: #1e1e1e; }
#googlerating.rating-dark .author-date { color: #888; }

#googlerating.rating-dark button.nav-btn { border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
#googlerating.rating-dark button.nav-btn.swiper-button-disabled:hover { background: transparent; border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
#googlerating.rating-dark .slider-counter { color: rgba(255,255,255,0.35); }
#googlerating.rating-dark .slider-counter .swiper-pagination-current { color: #fff; }
#googlerating.rating-dark .slider-progress-wrap { background: rgba(255,255,255,0.08); }


/* ============================================
   THEME: GRAY
   ============================================ */
#googlerating.rating-gray {
  background: #f1f1f1;
}

#googlerating.rating-gray .rating-title { color: #1e1e1e; }
#googlerating.rating-gray .rating-title strong { color: #1e1e1e !important; }
#googlerating.rating-gray .google-badge { border: 1px solid #e0e0e0; background: #fff; }
#googlerating.rating-gray .google-badge-score { color: #1e1e1e; }
#googlerating.rating-gray .google-badge-label { color: #888; }

#googlerating.rating-gray .review-card { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
#googlerating.rating-gray .review-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
#googlerating.rating-gray .card-review-text { color: #444; }
#googlerating.rating-gray .author-name { color: #1e1e1e; }
#googlerating.rating-gray .author-date { color: #888; }

#googlerating.rating-gray button.nav-btn { border: 1px solid #e0e0e0; background: #fff; color: #1e1e1e; }
#googlerating.rating-gray button.nav-btn.swiper-button-disabled:hover { background: #fff; border-color: #e0e0e0; color: #1e1e1e; }
#googlerating.rating-gray .slider-counter { color: #888; }
#googlerating.rating-gray .slider-counter .swiper-pagination-current { color: #1e1e1e; }
#googlerating.rating-gray .slider-progress-wrap { background: #e0e0e0; }


/* ============================================
   THEME: WHITE
   ============================================ */
#googlerating.rating-white {
  background: #fff;
}

#googlerating.rating-white .rating-title { color: #1e1e1e; }
#googlerating.rating-white .rating-title strong { color: #1e1e1e !important; }
#googlerating.rating-white .google-badge { border: 1px solid #e8e8e8; background: #fafafa; }
#googlerating.rating-white .google-badge-score { color: #1e1e1e; }
#googlerating.rating-white .google-badge-label { color: #888; }

#googlerating.rating-white .review-card { background: #fff; border: 1px solid #e8e8e8; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
#googlerating.rating-white .review-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
#googlerating.rating-white .card-review-text { color: #444; }
#googlerating.rating-white .author-name { color: #1e1e1e; }
#googlerating.rating-white .author-date { color: #888; }

#googlerating.rating-white button.nav-btn { border: 1px solid #e8e8e8; background: #fafafa; color: #1e1e1e; }
#googlerating.rating-white button.nav-btn.swiper-button-disabled:hover { background: #fafafa; border-color: #e8e8e8; color: #1e1e1e; }
#googlerating.rating-white .slider-counter { color: #888; }
#googlerating.rating-white .slider-counter .swiper-pagination-current { color: #1e1e1e; }
#googlerating.rating-white .slider-progress-wrap { background: #e8e8e8; }