/**
 * Frontend Review Boxes Styles for Tierversicherung Hund Vergleich
 * Fully responsive matching HTML/insurance-review-boxes (12).html
 */

:root {
  --tv-card-bg: #FFFFFF;
  --tv-ink: #2B2F36;
  --tv-border: #364154;
  --tv-title-blue: #2C6091;
  --tv-star: #F2BC41;
  --tv-badge-bg-start: #D7E9FA;
  --tv-badge-bg-end: #B9D5EE;
  --tv-badge-text: #2E6690;
  --tv-cta-green: #5ECD8B;
  --tv-cta-green-dark: #48B476;
  --tv-link-blue: #2E6ACB;
  --tv-panel-pink: #FEF9FB;
  --tv-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tv-comparison-wrapper {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--tv-font);
  color: var(--tv-ink);
  width: 100%;
  box-sizing: border-box;
}

/* ---- Trust & Advertising Disclosure Bar ---- */
.tv-trust-disclosure-bar {
  position: relative;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.tv-trust-meta-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5B6472;
  text-align: left;
}

.tv-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tv-trust-label {
  color: #64748B;
  font-weight: 500;
}

.tv-trust-author-link {
  color: #2E6ACB;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tv-trust-author-link:hover {
  color: #1a51a4;
  text-decoration: underline;
}

.tv-trust-dot {
  color: #CBD5E1;
  font-size: 14px;
  user-select: none;
}

.tv-ad-disclosure-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #2E6ACB;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tv-ad-disclosure-trigger:hover {
  background: transparent;
  color: #1a51a4;
  text-decoration: underline;
}

.tv-info-icon {
  color: #2E6ACB;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.tv-ad-disclosure-trigger:hover .tv-info-icon {
  color: #1a51a4;
}

/* ---- Ad Disclosure Popover Modal ---- */
.tv-ad-disclosure-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  z-index: 1050;
  width: 380px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.tv-ad-disclosure-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tv-ad-disclosure-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.tv-ad-disclosure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.tv-ad-disclosure-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
}

.tv-ad-disclosure-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  border: none;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tv-ad-disclosure-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.tv-ad-disclosure-body {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.tv-ad-disclosure-body p {
  margin: 0 0 10px;
}

.tv-ad-disclosure-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .tv-trust-disclosure-bar {
    padding: 10px 12px;
  }
  .tv-trust-meta-line {
    font-size: 12px;
    gap: 6px 10px;
  }
  .tv-ad-disclosure-popover {
    position: fixed;
    top: auto;
    bottom: 20px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    transform: translateY(20px);
  }
  .tv-ad-disclosure-popover.active {
    transform: translateY(0);
  }
}

.tv-review-list,
.list {
  display: flex;
  flex-direction: column;
  gap: 44px;
  width: 100%;
  box-sizing: border-box;
}

/* Individual Review Card */
.tv-comparison-wrapper .review-card,
.tv-review-list .review-card,
.list .review-card,
.review-card {
  position: relative;
  display: grid;
  grid-template-columns: 230px 1fr;
  border: 2px solid var(--tv-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--tv-card-bg);
  box-sizing: border-box;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
  width: 100%;
}

.review-card.tv-hidden-card {
  display: none !important;
}

.review-card.tv-fade-in {
  animation: tvCardFadeIn 0.35s ease forwards;
}

@keyframes tvCardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1st Position Flame Ribbon */
.ribbon-svg,
.tv-comparison-wrapper .ribbon-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25));
  z-index: 5;
}

/* Left Column */
.tv-comparison-wrapper .review-left,
.tv-review-list .review-left,
.list .review-left,
.review-left {
  background: var(--tv-panel-pink);
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 18px;
  text-align: center;
  box-sizing: border-box;
}

.review-logo {
  max-width: 150px;
  max-height: 64px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.review-logo-fallback {
  font-family: var(--tv-font);
  font-weight: 800;
  font-size: 24px;
  color: var(--tv-title-blue);
}

.stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tv-stars-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  vertical-align: middle;
}

.tv-stars-rating .tv-star {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
}

/* Right Column */
.tv-comparison-wrapper .review-right,
.tv-review-list .review-right,
.list .review-right,
.review-right {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: start;
  box-sizing: border-box;
}

.review-title {
  grid-column: 1;
  font-family: var(--tv-font);
  font-size: 21px;
  font-weight: 700;
  color: var(--tv-title-blue);
  margin-bottom: 16px;
  line-height: 1.3;
}

.review-features {
  grid-column: 1;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.review-features li {
  position: relative;
  padding-left: 20px;
  font-family: var(--tv-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tv-ink);
  margin-bottom: 8px;
}

.review-features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tv-ink);
}

/* Discount Badge Pill */
.discount-badge {
  grid-column: 1;
  display: inline-block;
  width: fit-content;
  background: linear-gradient(180deg, var(--tv-badge-bg-start), var(--tv-badge-bg-end));
  color: var(--tv-badge-text);
  font-family: var(--tv-font);
  font-weight: 700;
  font-size: 14.5px;
  padding: 9px 18px;
  border-radius: 100px;
  box-sizing: border-box;
}

/* CTA and Review Link Column */
.tv-comparison-wrapper .review-cta-col,
.tv-review-list .review-cta-col,
.list .review-cta-col,
.review-cta-col {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
  gap: 14px;
}

.cta-btn {
  background: var(--tv-cta-green);
  color: #fff !important;
  font-family: var(--tv-font);
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 34px;
  border-radius: 10px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(94, 205, 139, .35);
  transition: background .18s ease, transform .12s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.cta-btn:hover {
  background: var(--tv-cta-green-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.review-link {
  font-family: var(--tv-font);
  color: var(--tv-link-blue);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity .15s ease;
  text-align: center;
}

.review-link:hover {
  opacity: .8;
  color: var(--tv-link-blue);
}

/* Load More Wrap */
.tv-load-more-wrap {
  max-width: 980px;
  margin: 36px auto 0;
  display: flex;
  justify-content: center;
}

.tv-load-more-btn {
  background: #fff;
  color: var(--tv-title-blue);
  font-family: var(--tv-font);
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 38px;
  border-radius: 100px;
  border: 2px solid var(--tv-title-blue);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}

.tv-load-more-btn:hover {
  background: var(--tv-title-blue);
  color: #fff;
  transform: translateY(-1px);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 860px) {
  .tv-comparison-wrapper .review-right,
  .tv-review-list .review-right,
  .list .review-right,
  .review-right {
    padding: 24px 22px !important;
    column-gap: 16px !important;
  }

  .tv-comparison-wrapper .review-left,
  .tv-review-list .review-left,
  .list .review-left,
  .review-left {
    padding: 26px 14px !important;
  }
}

@media (max-width: 640px) {
  .tv-comparison-wrapper .review-card,
  .tv-review-list .review-card,
  .list .review-card,
  .review-card {
    grid-template-columns: 1fr !important;
  }

  .tv-comparison-wrapper .review-left,
  .tv-review-list .review-left,
  .list .review-left,
  .review-left {
    border-radius: 18px 18px 0 0 !important;
    padding: 24px !important;
  }

  .tv-comparison-wrapper .review-right,
  .tv-review-list .review-right,
  .list .review-right,
  .review-right {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
  }

  .tv-comparison-wrapper .review-cta-col,
  .tv-review-list .review-cta-col,
  .list .review-cta-col,
  .review-cta-col {
    grid-column: 1 !important;
    grid-row: auto !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: 14px !important;
    gap: 14px !important;
  }

  .tv-comparison-wrapper .cta-btn,
  .tv-review-list .cta-btn,
  .list .cta-btn,
  .cta-btn {
    padding: 13px 26px !important;
  }

  .tv-comparison-wrapper .ribbon-svg,
  .tv-review-list .ribbon-svg,
  .list .ribbon-svg,
  .ribbon-svg {
    width: 120px !important;
    height: 120px !important;
  }
}

@media (max-width: 440px) {
  .tv-comparison-wrapper .review-title,
  .tv-review-list .review-title,
  .list .review-title,
  .review-title {
    font-size: 18px !important;
  }

  .tv-comparison-wrapper .review-cta-col,
  .tv-review-list .review-cta-col,
  .list .review-cta-col,
  .review-cta-col {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .tv-comparison-wrapper .cta-btn,
  .tv-review-list .cta-btn,
  .list .cta-btn,
  .cta-btn {
    width: 100% !important;
    text-align: center !important;
  }

  .tv-comparison-wrapper .discount-badge,
  .tv-review-list .discount-badge,
  .list .discount-badge,
  .discount-badge {
    font-size: 13px !important;
    padding: 8px 14px !important;
  }

  .tv-comparison-wrapper .ribbon-svg,
  .tv-review-list .ribbon-svg,
  .list .ribbon-svg,
  .ribbon-svg {
    width: 100px !important;
    height: 100px !important;
  }
}
