/* Google review cards share the site's type and colors, with a steady reading rhythm. */
.kfz-google-reviews .reviews-grid {
  align-items: start;
  gap: 1.25rem;
}
.kfz-google-reviews__heading { margin-bottom: 2rem; }
.kfz-google-reviews__heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; }
.kfz-google-reviews__heading p { color: var(--color-text-muted, #475569); margin: 0; }
.kfz-google-reviews .review-card {
  min-width: 0;
  padding: 1.5rem;
  gap: 1rem;
  border-radius: 12px;
  box-shadow: none;
}
.kfz-google-reviews [hidden] { display: none !important; }
.kfz-google-reviews .review-author {
  border: 0;
  padding: 0;
  gap: .75rem;
  align-items: center;
}
.kfz-google-reviews .review-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
}
.kfz-google-reviews .review-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #334155;
  font-size: 1rem;
  font-weight: 700;
}
.kfz-google-reviews .review-meta { min-width: 0; }
.kfz-google-reviews .review-meta :is(h3, p) { margin: 0; overflow-wrap: anywhere; }
.kfz-google-reviews .review-meta h3 { font-size: .95rem; line-height: 1.35; margin-bottom: .2rem; letter-spacing: 0; }
.kfz-google-reviews .review-meta p { font-size: .8rem; color: var(--color-text-muted, #475569); }
.kfz-google-reviews .review-rating { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.kfz-google-reviews .review-stars { font-size: 1.15rem; }
.kfz-google-reviews .review-source { font-size: .75rem; color: var(--color-text-muted, #475569); }
.kfz-google-reviews .review-body { min-height: 10.75rem; }
.kfz-google-reviews .review-text {
  margin: 0;
  font-style: normal;
  font-size: .95rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.kfz-google-reviews .review-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.kfz-google-reviews .review-text--empty { color: var(--color-text-muted, #475569); }
.kfz-google-reviews .review-content:has(.review-details[open]) > .review-preview { display: none; }
.kfz-google-reviews .review-details summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  width: fit-content;
  cursor: pointer;
  color: var(--color-primary, #0f172a);
  font-size: .85rem;
  font-weight: 700;
  list-style: none;
  text-underline-offset: .2em;
}
.kfz-google-reviews .review-details summary::-webkit-details-marker { display: none; }
.kfz-google-reviews .review-details summary::after { content: '+'; }
.kfz-google-reviews .review-details[open] summary::after { content: '−'; }
.kfz-google-reviews .review-details summary:hover { text-decoration: underline; }
.kfz-google-reviews :is(summary, button, a):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.kfz-google-reviews .review-details__less,
.kfz-google-reviews .review-details[open] .review-details__more { display: none; }
.kfz-google-reviews .review-details[open] .review-details__less { display: inline; }
.review-pagination { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; text-align: center; }
.review-pagination__status { margin: 0; font-size: .85rem; color: var(--color-text-muted, #475569); }
.review-pagination > a { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; text-decoration: underline; text-underline-offset: .25em; }
.review-load-more { cursor: pointer; min-height: 48px; }
.review-load-more:disabled { cursor: default; opacity: .65; }
@media (max-width: 768px) {
  .kfz-google-reviews .review-body { min-height: 0; }
  .kfz-google-reviews .review-card { padding: 1.25rem; }
  .kfz-google-reviews__heading p { font-size: .9rem; }
}

/* Compact links share the same live aggregate as the full review page. */
.kfz-rating-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #0b1830;
  text-decoration: none;
  font-size: .8125rem;
  line-height: 1.5;
}
.kfz-rating-badge:hover { background: #edf2f7; color: #0b1830; }
.kfz-rating-badge__faces { display: flex; flex-shrink: 0; padding-left: 7px; }
:is(.kfz-rating-badge, .kfz-review-tile) .review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #dfe7ef;
  color: #233950;
  font-weight: 700;
}
.kfz-rating-badge .review-avatar { width: 30px; height: 30px; margin-left: -7px; border: 2px solid #fff; font-size: .75rem; }
.kfz-rating-badge__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; }
.kfz-rating-badge__copy > span { white-space: nowrap; }
.kfz-rating-badge__count { border-left: 1px solid #c6cfda; padding-left: 9px; }
.kfz-rating-badge__star { color: #b87500; font-size: 1.15rem; }
.contact-info-panel > .kfz-rating-badge { margin: 0 0 24px; border: 1px solid #d5deea; }
.section--page-intro .kfz-rating-badge { border: 1px solid #d5deea; margin-top: 24px; }

.kfz-review-showcase { padding: clamp(56px, 6vw, 88px) 0; background: #fff; color: #0b1830; }
.kfz-review-showcase__heading { text-align: center; margin-bottom: 36px; }
.kfz-review-showcase__heading h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.5vw, 3rem); letter-spacing: -.03em; line-height: 1.15; }
.kfz-review-showcase__heading p { margin: 0 auto; max-width: 65ch; color: #475569; }
.kfz-review-showcase__layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; gap: 32px; }
.kfz-google-mark { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.kfz-review-score { text-align: center; }
.kfz-review-score > .kfz-google-mark { margin: 0 auto 12px; width: 28px; height: 28px; }
.kfz-review-score p { font-size: .875rem; margin: 8px 0; }
.kfz-review-score__number { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-top: 12px; }
.kfz-review-score__number strong { font-size: 3rem; line-height: 1.1; letter-spacing: -.03em; }
.kfz-review-score__number > span { color: #475569; font-size: .875rem; }
.kfz-review-score__stars { color: #b87500; font-size: 1.75rem; letter-spacing: .02em; }
.kfz-review-score p a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.kfz-review-showcase__all { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px; color: #0b1830; font-weight: 700; font-size: .9rem; }
.kfz-review-carousel { min-width: 0; }
.kfz-review-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #a5b3c5 #f1f4f8; padding: 4px 4px 16px; scroll-padding: 4px; }
.kfz-review-tile { position: relative; display: flex; flex-direction: column; flex: 0 0 calc((100% - 32px) / 3); min-width: 0; scroll-snap-align: start; padding: 22px; border-radius: 12px; background: #f2f5f8; }
.kfz-review-tile__author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kfz-review-tile__author > div { min-width: 0; flex: 1; }
.kfz-review-tile h3 { font-size: .9rem; line-height: 1.35; letter-spacing: 0; margin: 0 0 3px; overflow-wrap: anywhere; }
.kfz-review-tile time { display: block; color: #475569; font-size: .75rem; }
.kfz-review-tile__stars { color: #b87500; font-size: 1.5rem; margin: 16px 0 10px; line-height: 1.3; }
.kfz-review-tile__text { font-size: .9rem; line-height: 1.6; margin: 0 0 12px; overflow-wrap: anywhere; }
.kfz-review-tile__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font-size: .8125rem; color: #0b1830; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.kfz-review-carousel__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.kfz-review-carousel__footer p, .kfz-review-showcase__updated { font-size: .75rem; color: #475569; margin: 0; }
.kfz-review-showcase__updated { text-align: center; margin-top: 24px; }
.kfz-review-carousel__controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.kfz-review-carousel__controls[hidden] { display: none; }
.kfz-review-carousel__controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #a5b3c5; border-radius: 50%; background: #fff; color: #0b1830; cursor: pointer; font: inherit; font-size: 1.25rem; }
.kfz-review-carousel__controls button:hover { background: #0b1830; color: #fff; }
.kfz-review-carousel__controls button:disabled { opacity: .4; cursor: default; }
.kfz-review-carousel__status { color: #475569; font-size: .75rem; min-width: 42px; text-align: center; }
:is(.kfz-rating-badge, .kfz-review-showcase a, .kfz-review-showcase button, .kfz-review-track):focus-visible { outline: 3px solid #c51e35; outline-offset: 4px; }
.kfz-review-tile:target, .review-card:target { outline: 3px solid #c51e35; outline-offset: 3px; scroll-margin-top: 130px; }
.kfz-review-showcase__fallback { text-align: center; }
@media (max-width: 1100px) {
  .kfz-review-showcase__layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .kfz-review-tile { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 700px) {
  .kfz-review-showcase__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kfz-review-showcase__heading { margin-bottom: 24px; }
  .kfz-review-showcase__heading p { font-size: .9rem; }
  .kfz-review-tile { flex-basis: calc(100% - 20px); padding: 20px; }
  .kfz-review-carousel__footer { align-items: flex-start; }
  .kfz-review-carousel__footer p { max-width: 15ch; }
  .kfz-rating-badge { gap: 8px; padding: 10px; font-size: .75rem; }
  .kfz-rating-badge__copy { flex-direction: column; align-items: flex-start; gap: 0; }
  .kfz-rating-badge__count { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kfz-review-track { scroll-behavior: auto; }
}
