/* Hauck Lift-Systeme Bewertungs-Widget – GHL-Optik ab 06.09.2026 */

.hl-bewertungen {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: 0;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Kopfbereich: Große Note, Sterne, Button */
.hl-bewertungen-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hl-bewertungen-score {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hl-bewertungen-stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

/* Sterne mit anteiliger Füllung */
.hl-stars-container {
  display: inline-block;
  position: relative;
  font-family: Arial, sans-serif;
  letter-spacing: 0.15em;
  line-height: 1;
}

.hl-stars-bg {
  color: #d1d5db;
  display: block;
}

.hl-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  color: #f5b301;
  white-space: nowrap;
  overflow: hidden;
}

.hl-bewertungen-divider {
  width: 1px;
  height: 1.5rem;
  background: #d1d5db;
}

.hl-bewertungen-count {
  color: #666;
  font-size: 0.95rem;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Button: Rezension schreiben / Bewertungen auf Google */
.hl-bewertungen-btn {
  display: inline-block;
  background: #297735;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}

.hl-bewertungen-btn:hover {
  background: #1f5a26;
  opacity: 0.9;
}

/* Bewertungs-Grid: 3 Spalten ≥ 900px, 2 ≥ 600px, 1 darunter */
.hl-bewertungen-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .hl-bewertungen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hl-bewertungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Einzelne Karte */
.hl-bewertung-karte {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.hl-bewertung-karte:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Kartenkopf: Note + Sterne, rechts Datum */
.hl-karte-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.hl-karte-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hl-karte-sterne-zahl {
  font-weight: 700;
  color: #111;
  font-size: 1rem;
}

.hl-karte-sterne {
  color: #f5b301;
  font-size: 1rem;
  letter-spacing: 0.15em;
  font-family: Arial, sans-serif;
}

.hl-karte-datum {
  font-size: 0.875rem;
  color: #666;
  white-space: nowrap;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Kartenkörper: Text mit mehr/weniger */
.hl-karte-body {
  flex: 1;
  margin-bottom: 1rem;
}

.hl-bewertung-text {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 0.5rem;
  text-align: left;
}

.hl-bewertung-mehr {
  display: inline-block;
  background: none;
  border: none;
  color: #297735;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
  transition: opacity 0.2s;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hl-bewertung-mehr:hover {
  opacity: 0.7;
}

/* Kartenfuß: Autor-Kreis + Name, rechts "über Google" */
.hl-karte-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.hl-karte-autor-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hl-autor-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #eef5ef;
  color: #297735;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hl-autor-name {
  font-weight: 600;
  color: #111;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
}

.hl-karte-quelle {
  font-size: 0.75rem;
  color: #999;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Antwort des Unternehmens */
.hl-bewertung-antwort {
  background: #f9f9f9;
  border-left: 3px solid #297735;
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hl-bewertung-antwort-label {
  font-weight: 600;
  color: #297735;
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Footer: "alle ansehen" */
.hl-bewertungen-footer {
  text-align: center;
}

.hl-bewertungen-link {
  display: inline-block;
  color: #297735;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hl-bewertungen-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Helles Band-Styling (bestehend) */
section:has(> .hl-bewertungen) {
  background: #eef5ef !important;
  padding-top: 72px !important;
  padding-bottom: 72px !important;
  border-top: 1px solid #dce8de;
  border-bottom: 1px solid #dce8de;
}

section:has(> .hl-bewertungen) .hl-bewertung-karte {
  background: white;
}

section:has(> .hl-bewertungen) > .hl-bewertungen {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}
