/* =========================================================================
   AUTARK Reviews-Widget — Trust-Boost via Google-Reviews (UWG-konform)
   Iter-6 (2026-05-14): Verify-Badge + Datums-Anker + Disclaimer
   - Floating-Pill mit Google-G-Verify-Icon
   - Inline-Strip mit Datum pro Testimonial + Disclaimer + Live-Link
   ========================================================================= */

#autark-reviews-widget {
  position: fixed;
  bottom: 88px; /* über Sticky-CTA */
  right: 14px;
  z-index: 58;
  background: rgba(14, 22, 32, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 240px;
  cursor: pointer;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  min-height: 44px;
  box-sizing: border-box;
}

#autark-reviews-widget.is-visible {
  transform: translateY(0);
  opacity: 1;
}

#autark-reviews-widget:hover,
#autark-reviews-widget:focus-visible {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 10px 32px rgba(56, 189, 248, 0.25);
}

#autark-reviews-widget .arw-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 2px;
}
#autark-reviews-widget .arw-verified .arw-google-g {
  width: 14px;
  height: 14px;
}

#autark-reviews-widget .arw-stars {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}

#autark-reviews-widget .arw-stars svg {
  width: 12px;
  height: 12px;
  fill: #FFB800;
}

#autark-reviews-widget .arw-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  line-height: 1.25;
  color: #E0EBFF;
  min-width: 0;
}

#autark-reviews-widget .arw-score {
  font-weight: 700;
  color: #FFCC33;
  font-size: 12px;
}

#autark-reviews-widget .arw-source {
  color: rgba(184, 200, 224, 0.85);
  font-size: 10px;
}

#autark-reviews-widget .arw-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0A1428;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

#autark-reviews-widget .arw-close:hover { color: #fff; }

/* Desktop: position bottom-left, kein Sticky-Konflikt */
@media (min-width: 769px) {
  #autark-reviews-widget {
    bottom: 24px;
    right: 24px;
    max-width: 280px;
    padding: 12px 16px;
  }
}

/* Mobil: ab Cookie-Banner-Klassen verstecken */
html.cc-banner-active #autark-reviews-widget {
  transform: translateY(140%) !important;
  pointer-events: none !important;
}
html.footer-visible #autark-reviews-widget {
  transform: translateY(140%) !important;
  pointer-events: none !important;
}

/* =========================================================================
   Inline Reviews-Strip (für statische Einbindung in Pages)
   Wird via JS-Auto-Inject in Hero-Sections oder Footer-Above eingesetzt.
   ========================================================================= */
.autark-reviews-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(15,23,42,0.5));
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 14px;
  font-family: "Inter", system-ui, sans-serif;
  color: #E0EBFF;
  margin: 16px auto;
  max-width: 720px;
  flex-wrap: wrap;
}

.autark-reviews-strip .ars-stars {
  display: flex;
  gap: 2px;
}
.autark-reviews-strip .ars-stars svg {
  width: 16px; height: 16px; fill: #FFB800;
}
.autark-reviews-strip .ars-score {
  font-weight: 800;
  color: #FFCC33;
  font-size: 1.05rem;
}
.autark-reviews-strip .ars-count {
  color: #B8C8E0;
  font-size: 0.9rem;
}
.autark-reviews-strip .ars-rotation {
  flex: 1 1 100%;
  font-style: italic;
  color: #E0EBFF;
  min-height: 1.5em;
  font-size: 0.92rem;
  line-height: 1.45;
}
.autark-reviews-strip .ars-author {
  color: rgba(184,200,224,0.85);
  font-size: 0.82rem;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Iter-6: Header-Row mit Stars + Score + Verify-Link */
.autark-reviews-strip .ars-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 100%;
}

/* Iter-6: Datums-Tag pro Testimonial */
.autark-reviews-strip .ars-date {
  color: rgba(184,200,224,0.6);
  font-size: 0.75rem;
  font-style: normal;
  white-space: nowrap;
}

/* Iter-6: Verifizierungs-Badge (Google-G) klein neben Author */
.autark-reviews-strip .ars-verify {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  opacity: 0.85;
  cursor: help;
}
.autark-reviews-strip .ars-verify .arw-google-g {
  width: 12px;
  height: 12px;
}

/* Iter-6: Live-Link "Bewertungen auf Google prüfen ↗" */
.autark-reviews-strip .ars-count-link {
  color: #7ec9ff;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}
.autark-reviews-strip .ars-count-link:hover,
.autark-reviews-strip .ars-count-link:focus-visible {
  color: #aedcff;
  text-decoration-thickness: 2px;
}

/* Iter-6: UWG-Disclaimer klein + seriös */
.autark-reviews-strip .ars-disclaimer {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(184,200,224,0.55);
  font-style: normal;
}
.autark-reviews-strip .ars-disclaimer a {
  color: rgba(126,201,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .autark-reviews-strip {
    padding: 10px 12px;
    gap: 8px;
    font-size: 0.9rem;
  }
  .autark-reviews-strip .ars-count-link {
    margin-left: 0;
    font-size: 0.78rem;
  }
  .autark-reviews-strip .ars-disclaimer {
    font-size: 0.68rem;
  }
}

/* Iter-6 Mobile: Floating-Pill mit mehr Abstand zur Sticky-Bottom-Bar */
@media (max-width: 768px) {
  #autark-reviews-widget {
    bottom: 104px; /* +16px gegenüber alter Pos. — kollidiert nicht mit CTA */
  }
  html.has-sticky-bottom #autark-reviews-widget {
    bottom: 120px;
  }
}
