.ratgeber-categories-page {
  --categories-ink: #172131;
  --categories-muted: #667085;
  --categories-line: #e4e9f0;
  --categories-brand: #de6666;
  color: var(--categories-ink);
}

.ratgeber-categories-page a {
  text-decoration: none;
}

.ratgeber-categories-hero {
  padding: 28px 0 72px;
  border-bottom: 1px solid #edf1f5;
  background:
    radial-gradient(circle at 88% 12%, rgba(222, 102, 102, .14), transparent 25%),
    linear-gradient(120deg, #fff, #f8fafc 60%, #f5f1f2);
}

.ratgeber-categories-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  color: #7a8699;
  font-size: 13px;
}

.ratgeber-categories-breadcrumb a {
  color: #59677b;
}

.ratgeber-categories-breadcrumb a:hover {
  color: #bd4f56;
}

.ratgeber-categories-hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.ratgeber-categories-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #bd4f56;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ratgeber-categories-hero h1 {
  margin: 0;
  font-size: clamp(37px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.ratgeber-categories-hero-content > p {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--categories-muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.ratgeber-categories-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.ratgeber-categories-stats span {
  padding: 8px 13px;
  border: 1px solid #e4d9db;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: #59677b;
  font-size: 13px;
}

.ratgeber-categories-stats strong {
  color: var(--categories-ink);
}

.ratgeber-categories-section {
  padding: 74px 0;
}

.ratgeber-categories-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.ratgeber-categories-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.035em;
}

.ratgeber-categories-heading p {
  margin: 7px 0 0;
  color: var(--categories-muted);
}

.ratgeber-categories-all-link {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid #d4dce7;
  border-radius: 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.ratgeber-categories-all-link:hover {
  border-color: var(--categories-brand);
  color: #bd4f56;
}

.ratgeber-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ratgeber-category-card {
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  border: 1px solid var(--categories-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(28, 44, 69, .05);
  color: var(--categories-ink);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ratgeber-category-card:hover {
  border-color: #e4b8bb;
  box-shadow: 0 15px 36px rgba(28, 44, 69, .1);
  color: var(--categories-ink);
  transform: translateY(-3px);
}

.ratgeber-category-image {
  height: 145px;
  background: #f4f6f9;
  overflow: hidden;
}

.ratgeber-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.ratgeber-category-card:hover .ratgeber-category-image img {
  transform: scale(1.025);
}

.ratgeber-category-icon {
  display: grid;
  height: 112px;
  place-items: center;
  background:
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, .8), transparent 18%),
    linear-gradient(135deg, #f9eeee, #f5f7fa);
  color: var(--categories-brand);
  font-size: 35px;
}

.ratgeber-category-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px;
}

.ratgeber-category-count {
  align-self: flex-start;
  margin-bottom: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8ecec;
  color: #b64a52;
  font-size: 11px;
  font-weight: 800;
}

.ratgeber-category-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.ratgeber-category-content p {
  display: -webkit-box;
  margin: 0 0 20px;
  color: var(--categories-muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ratgeber-category-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #bd4f56;
  font-size: 13px;
  font-weight: 800;
}

.ratgeber-category-card:hover .ratgeber-category-action i {
  transform: translateX(2px);
}

.ratgeber-category-action i {
  transition: transform .18s ease;
}

.ratgeber-categories-empty {
  padding: 48px 24px;
  border: 1px dashed #ccd6e3;
  border-radius: 18px;
  background: #fafbfc;
  text-align: center;
}

.ratgeber-categories-empty > i {
  color: var(--categories-brand);
  font-size: 36px;
}

.ratgeber-categories-empty h2 {
  margin: 13px 0 6px;
}

.ratgeber-categories-empty p {
  color: var(--categories-muted);
}

.ratgeber-categories-cta-section {
  padding: 0 0 74px;
}

.ratgeber-categories-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 20px;
  background: linear-gradient(120deg, #172033, #29364f);
  color: #fff;
  box-shadow: 0 20px 45px rgba(16, 24, 40, .14);
}

.ratgeber-categories-cta span {
  display: block;
  margin-bottom: 5px;
  color: #f2aeb2;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ratgeber-categories-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.035em;
}

.ratgeber-categories-cta p {
  margin: 7px 0 0;
  color: #d8deea;
}

.ratgeber-categories-cta > a {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  border-radius: 11px;
  background: #22a956;
  color: #fff;
  font-weight: 800;
}

.ratgeber-categories-cta > a:hover {
  background: #198f47;
  color: #fff;
}

@media (max-width: 991.98px) {
  .ratgeber-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ratgeber-categories-hero {
    padding: 20px 0 52px;
  }

  .ratgeber-categories-breadcrumb {
    margin-bottom: 28px;
  }

  .ratgeber-categories-section {
    padding: 54px 0;
  }

  .ratgeber-categories-heading,
  .ratgeber-categories-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ratgeber-categories-all-link,
  .ratgeber-categories-cta > a {
    width: 100%;
    justify-content: center;
  }

  .ratgeber-categories-cta-section {
    padding-bottom: 54px;
  }
}

@media (max-width: 575.98px) {
  .ratgeber-categories-hero h1 {
    font-size: 36px;
  }

  .ratgeber-category-grid {
    grid-template-columns: 1fr;
  }

  .ratgeber-category-card {
    min-height: 0;
  }
}
