/* JURiAL Bewertungs-Slider — Ersatz fuer Elfsight Google Reviews
   Nachbau des Carousel-Layouts "Balloon" (Dark Theme) */

.jurial-reviews {
  /* Farben/Masse aus dem Original-Widget */
  --jrw-card-bg: rgba(255, 255, 255, 0.05);
  --jrw-text: #ffffff;
  --jrw-muted: rgba(255, 255, 255, 0.5);
  --jrw-star: #fcbf02;
  --jrw-arrow-bg: rgba(255, 255, 255, 0.5);
  --jrw-arrow-color: #ffffff;
  --jrw-arrow-bg-hover: #111111;
  --jrw-arrow-color-hover: #ffffff;
  --jrw-radius: 30px;
  --jrw-gap: 20px;
  --jrw-min-card: 240px;

  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.jurial-reviews *,
.jurial-reviews *::before,
.jurial-reviews *::after {
  box-sizing: border-box;
}

/* ---- Carousel-Grundgeruest ---- */

.jrw-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.jrw-track {
  display: flex;
  align-items: flex-start;
  transition: transform 740ms ease;
  will-change: transform;
}

.jrw-track.jrw-dragging {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .jrw-track {
    transition: none;
  }
}

.jrw-slide {
  flex: 0 0 auto;
  margin-right: var(--jrw-gap);
  user-select: none;
  -webkit-user-select: none;
}

/* ---- Sprechblase ---- */

.jrw-balloon {
  position: relative;
  background: var(--jrw-card-bg);
  border-radius: var(--jrw-radius);
  padding: 24px;
}

.jrw-tail {
  position: absolute;
  left: 24px;
  top: 100%;
  width: 19px;
  height: 13px;
  display: block;
  fill: var(--jrw-card-bg);
}

.jrw-stars {
  display: flex;
  margin-bottom: 6px;
}

.jrw-stars svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: var(--jrw-star);
}

.jrw-text {
  color: var(--jrw-text);
  font-size: 16px;
  line-height: 23px;
  overflow-wrap: break-word;
}

.jrw-text-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.jrw-card.jrw-open .jrw-text-clamp {
  display: block;
  -webkit-line-clamp: none;
  overflow: visible;
}

.jrw-more {
  display: inline-block;
  color: var(--jrw-muted);
  font-size: 16px;
  line-height: 23px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.jrw-more:hover {
  text-decoration: underline;
}

.jrw-more[hidden] {
  display: none;
}

.jrw-logo {
  display: inline-block;
  margin-top: 16px;
  line-height: 0;
}

.jrw-logo svg {
  height: 32px;
  width: auto;
  display: block;
}

/* ---- Autor-Zeile unter der Blase ---- */

.jrw-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-left: 4px;
}

.jrw-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: var(--jrw-card-bg);
}

.jrw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jrw-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.jrw-authorinfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.jrw-name {
  color: var(--jrw-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
}

.jrw-name:hover {
  text-decoration: underline;
  color: var(--jrw-text);
}

.jrw-date {
  color: var(--jrw-muted);
  font-size: 12px;
  line-height: 16px;
  margin-top: 2px;
}

/* ---- Pfeile ---- */

.jrw-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--jrw-arrow-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease;
}

.jrw-arrow:hover {
  background: var(--jrw-arrow-bg-hover);
}

.jrw-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: var(--jrw-arrow-color);
}

.jrw-arrow:hover svg {
  fill: var(--jrw-arrow-color-hover);
}

.jrw-arrow[hidden] {
  display: none;
}

/* Pfeile komplett sichtbar innerhalb des Widgets
   (Original: -16px, dadurch halb abgeschnitten) */
.jrw-arrow-prev {
  left: 0;
}

.jrw-arrow-prev svg {
  transform: scaleX(-1);
}

.jrw-arrow-next {
  right: 0;
}
