/**
 * Text-Card Block Styles
 * Moderne Card-Komponente mit Gradient-Hintergrund
 */

/* Block-Basis */
.text-card {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

/* Content-Bereich */
.text-card__content {
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .text-card__content {
    margin-bottom: 0;
    padding-right: 2rem;
  }
  
  .flex-row-reverse .text-card__content {
    padding-right: 0;
    padding-left: 2rem;
  }
}

/* Subline */
.text-card__subline {
  font-size: clamp(0.875rem, 1vw, 1rem);
  letter-spacing: 0.05em;
}

/* Headline */
.text-card__headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
}

/* Card-Wrapper */
.text-card__card-wrapper {
  display: flex;
  align-items: stretch;
}

/* Card-Komponente */
.text-card__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3.75rem);
  background: transparent 
    linear-gradient(
      180deg, 
      color-mix(in srgb, var(--brand-primary-color) 10%, white) 0%, 
      rgba(255, 255, 255, 0) 100%
    ) 
    0% 0% no-repeat padding-box;
  border-radius: var(--bs-border-radius, 0.375rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* Icon */
.text-card__icon {
  margin: 0;
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
}

.text-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card-Titel */
.text-card__card-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

/* Link-Liste */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-list__item:not(:last-child) {
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.link-list__link {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bs-body-color, inherit);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-list__link::after {
  content: '→';
  font-style: normal;
  transition: transform 0.2s ease;
}

.link-list__link:hover {
  color: var(--brand-secondary-color, var(--bs-link-color));
}

.link-list__link:hover::after {
  transform: translateX(4px);
}

/* Responsive Anpassungen */
@media (max-width: 991px) {
  .text-card {
    padding: 2rem 0;
  }
  
  .text-card__card-wrapper {
    margin-top: 2rem;
  }
}
