/* ==================================================
   Three Card Module
   ================================================== */

.three-card-section {
  margin: 4rem auto;
}

.three-card-section__title {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
}

.three-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.three-card {
  display: flex;
  flex-direction: column;
  min-width: 0;

  overflow: hidden;

  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.three-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.three-card__image-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.three-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;

  transition: transform 0.35s ease;
}

.three-card:hover .three-card__image {
  transform: scale(1.04);
}

.three-card__content {
  padding: 1.4rem;
}

.three-card__kicker {
  margin: 0 0 0.6rem;
  color: var(--color-accent, #f57d00);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.three-card__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.25rem, 1.5vw, 1.6rem);
  line-height: 1.15;
  font-weight: 600;
}

.three-card__text {
  margin: 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
}

.three-card__button {
  display: inline-flex;
  margin-top: 1.2rem;

  color: var(--color-accent, #f57d00);
  font-weight: 700;
}

/* Nur-Bild-Karten */

.three-card:has(.three-card__image-wrap):not(:has(.three-card__content)) {
  background: transparent;
}

.three-card:has(.three-card__image-wrap):not(:has(.three-card__content))
  .three-card__image {
  aspect-ratio: 1 / 1;
}

/* Nur-Text-Karten */

.three-card:not(:has(.three-card__image-wrap)) {
  justify-content: center;
}

/* Tablet */

@media (max-width: 1024px) {
  .three-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 768px) {
  .three-card-section {
    margin: 3rem auto;
  }

  .three-card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .three-card__content {
    padding: 1.25rem;
  }
}
