/**
 * Anbieter Landing Page CSS
 * Ergaenzt ratgeber-landing.css (die meisten Klassen werden wiederverwendet)
 * Mobile-First Design fuer /versicherungsanbieter/
 */

/* ===== ANBIETER GRID ===== */
.anbieter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

/* ===== ANBIETER-KACHEL ===== */
.anbieter-kachel {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--ratgeber-card-bg, #ffffff);
  border: 1px solid var(--ratgeber-border, #e2e8f0);
  border-radius: var(--ratgeber-radius, 12px);
  padding: 20px;
  transition: all 0.2s ease;
  width: 100%;
  min-width: 0;
}

.anbieter-kachel:hover {
  border-color: var(--ratgeber-primary, #23cfb2);
  box-shadow: var(--ratgeber-shadow-hover, 0 4px 16px rgba(0, 0, 0, 0.12));
  transform: translateY(-2px);
  z-index: 200;
}

.anbieter-kachel__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  min-width: 0;
  flex: 1;
}

.anbieter-kachel__logo-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.anbieter-kachel__logo {
  max-width: 100%;
  height: 40px;
  object-fit: contain;
}

.anbieter-kachel__logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #23cfb2 0%, #1db89d 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anbieter-kachel__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ratgeber-text, #2d3748);
  margin: 0;
}

/* ===== TARIFF COUNT (unter Logo) ===== */
.anbieter-kachel__tariff-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ratgeber-text-light, #718096);
  margin-top: 10px;
}

.anbieter-kachel__tariff-icon {
  flex-shrink: 0;
  color: var(--ratgeber-text-light, #718096);
}

/* ===== BADGES (shared styles in anbieter-badges.css) ===== */
.anbieter-kachel__badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
}

/* Badges im Kachel-Kontext kleiner darstellen */
.anbieter-kachel .anbieter-badge {
  font-size: 11px;
  padding: 3px 10px;
}

/* ===== V5: DETAILS LINK ===== */
.anbieter-kachel__details-link {
  font-size: 13px;
  font-weight: 500;
  color: #23cfb2;
  margin-top: 16px;
}

/* ===== V1: INFO WRAPPER ===== */
.anbieter-kachel__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex: 1;
}

.anbieter-kachel__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.anbieter-kachel__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ratgeber-primary-dark, #1db89d);
  margin-top: 12px;
}

/* ===== COMING SOON KACHELN ===== */
.anbieter-kachel--coming-soon {
  cursor: default;
  opacity: 0.7;
}

.anbieter-kachel--coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--ratgeber-border, #e2e8f0);
}

.anbieter-kachel__coming-soon {
  font-size: 12px;
  color: var(--ratgeber-text-light, #718096);
  font-style: italic;
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
  .anbieter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .anbieter-kachel {
    padding: 24px;
  }

  .anbieter-kachel__logo-wrapper {
    width: 100%;
  }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .anbieter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .anbieter-kachel__title {
    font-size: 17px;
  }
}

/* ===== V4: CTA BLOCK ===== */
.anbieter-cta-block {
  background: #f0fdfb;
  border-top: 1px solid #d1ede8;
  border-bottom: 1px solid #d1ede8;
  padding: 20px 16px;
}

.anbieter-cta-block__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.anbieter-cta-block__text {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.anbieter-cta-block__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #23cfb2;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.anbieter-cta-block__button:hover {
  background: #1db89d;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .anbieter-cta-block__container {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .anbieter-cta-block__text {
    font-size: 17px;
  }
}

/* ===== V2: MOBILE COMPACT (640px-) ===== */
@media (max-width: 640px) {
  .anbieter-kachel {
    padding: 12px 16px;
  }

  .anbieter-kachel__content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0;
  }

  .anbieter-kachel__logo-wrapper {
    width: 80px;
  }

  .anbieter-kachel__logo-fallback {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 8px;
  }

  .anbieter-kachel__tariff-count {
    font-size: 11px;
  }

  .anbieter-kachel__meta {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .anbieter-kachel__badges {
    align-items: flex-start;
    margin-top: 2px;
  }

  .anbieter-kachel .anbieter-badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* Right section takes available space */
  .anbieter-kachel__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    margin-left: 24px;
  }

  .anbieter-kachel__price {
    font-size: 15px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .anbieter-kachel__details-link {
    align-self: flex-end;
    font-size: 12px;
    margin-top: 4px;
  }
}
