.ratgeber-page {
  --rg-green: #2e4f20;
  --rg-ink: #1f2b20;
  --rg-muted: #526154;
  --rg-line: #dbe6da;
  --rg-soft: #f3f7f1;
  padding: 50px 0 60px;
}

.ratgeber-page__container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.ratgeber-intro {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rg-line);
}

.ratgeber-intro h1 {
  margin: 0 0 10px;
  color: var(--rg-green);
  line-height: 1.18;
  font-size: clamp(1.85rem, 1.35rem + 1vw, 2.45rem);
  max-width: 26ch;
}

.ratgeber-intro p,
.ratgeber-overview p {
  margin: 0 0 11px;
  line-height: 1.75;
  color: var(--rg-ink);
}

.ratgeber-overview {
  background: linear-gradient(180deg, #fff, #fbfdf9);
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 var(--rg-line);
}

.ratgeber-overview h2 {
  margin: 0 0 8px;
  color: var(--rg-green);
  line-height: 1.3;
  font-size: clamp(1.18rem, 1.03rem + 0.42vw, 1.4rem);
}

.ratgeber-overview ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.ratgeber-overview li {
  margin-bottom: 7px;
  line-height: 1.7;
  color: var(--rg-ink);
}

.ratgeber-overview li:last-child {
  margin-bottom: 0;
}

.ratgeber-overview p:last-child {
  margin-bottom: 0;
}

.ratgeber-topics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ratgeber-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fbfdf9);
  box-shadow: 0 1px 0 var(--rg-line);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ratgeber-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.ratgeber-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #f7faf6;
}

.ratgeber-card h3 {
  margin: 0;
  padding: 12px 10px 14px;
  color: var(--rg-green);
  text-align: center;
  line-height: 1.35;
  font-size: 0.98rem;
}

.ratgeber-card:focus-visible {
  outline: 2px solid var(--rg-green);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .ratgeber-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ratgeber-page {
    padding: 50px 0 50px;
  }

  .ratgeber-page__container {
    width: min(1200px, calc(100% - 24px));
  }

  .ratgeber-overview {
    padding: 14px 12px;
  }

  .ratgeber-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ratgeber-card img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
  }
}

@media (max-width: 520px) {
  .ratgeber-topics {
    grid-template-columns: 1fr;
  }
}
