/* === RATGEBER DETAIL PAGE === */

.rd-wrap { padding-top: 60px; padding-bottom: 100px; }

.rd-hero {
  text-align: center;
  margin-bottom: 40px;
}

.rd-hero__cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.rd-hero__cat {
  display: inline-flex;
  align-items: center;
  background: rgb(245, 245, 245);
  border-radius: 50px;
  padding: 10px 15px;
  font-size: 16px;
  color: rgb(0, 45, 45);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .rd-hero__cat {
  background: #1D1D1D;
  color: #E0E0E0;
}

.rd-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 64px;
  letter-spacing: -0.01em;
  color: var(--color-text-heading);
  margin: 0 0 16px;
}

.rd-hero__meta {
  font-family: var(--font-sans);
  font-size: 12.8px;
  color: var(--color-text-heading);
  margin: 0;
}

.rd-hero__meta .rd-hero__sep {
  color: var(--color-border-light);
  margin: 0 4px;
}

.rd-cover {
  width: 100%;
  height: 670px;
  border-radius: 25px;
  background: url('../assets/about.webp') center/cover no-repeat, rgb(214,217,222);
  margin-bottom: 40px;
}

.rd-grid {
  display: grid;
  grid-template-columns: 60px 1fr 400px;
  gap: 40px;
  align-items: start;
}

.rd-rail {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.rd-rail__progress {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(rgb(97,206,112) 0 var(--progress,0%), rgb(220,228,232) var(--progress,0%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rd-rail__progress::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--color-surface);
  border-radius: 50%;
}

.rd-rail__progress span {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-heading);
  z-index: 1;
}

.rd-rail__socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rd-rail__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-heading);
  text-decoration: none;
}

.rd-rail__icon svg { width: 25px; height: 25px; fill: currentColor; }
.rd-rail__icon:hover { color: rgb(97,206,112); }

.rd-content { display: flex; flex-direction: column; gap: 22px; max-width: 820px; overflow-wrap: break-word; min-width: 0; }

.rd-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: var(--color-text-heading);
  margin: 8px 0 20px;
}

.rd-content p, .rd-content li {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22.4px;
  color: var(--color-text-body);
  margin: 0;
}

.rd-content ul { padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 8px; margin: 0; }

.rd-content strong { font-weight: 700; }

.rd-feedback {
  background: var(--color-feedback-bg);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  min-height: 200px;
}

.rd-feedback .rd-feedback__q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text-heading);
  margin: 0;
}

.rd-feedback__meta {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin: 0;
}

.rd-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--color-text-heading);
  border: 1px solid var(--color-border-input);
  border-radius: 55px;
  height: 36px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  text-decoration: none;
  width: max-content;
}

.rd-newsletter {
  background: var(--color-surface);
  border: 5px solid var(--color-border-light);
  border-radius: 18px;
  padding: 22px;
}

.rd-newsletter__small {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text-heading);
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 14px;
}

.rd-newsletter__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text-heading);
  margin: 0 0 16px;
}

.rd-newsletter__input {
  width: 100%;
  border: 1px solid var(--color-border-input);
  border-radius: 20px;
  height: 54px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text-heading);
  margin-bottom: 10px;
  background: var(--color-surface);
}

.rd-newsletter__check {
  display: flex; gap: 8px; align-items: flex-start;
  font-family: var(--font-sans); font-size: 16px; line-height: 22px;
  color: var(--color-text-heading);
  margin: 8px 0 14px;
}

.rd-newsletter__btn {
  background: var(--color-primary); color: var(--color-on-primary); border: 0; border-radius: 55px;
  height: 47px; padding: 0 22px; font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  cursor: pointer;
}

.rd-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }

.rd-side__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text-heading);
  margin: 0 0 14px;
}

.rd-news-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text-heading);
  margin: 30px 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-light);
}

.rd-news { display: flex; flex-direction: column; gap: 25px; }

.rd-news__item {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 25px;
  text-decoration: none;
}

.rd-news__thumb {
  width: 360px; height: 250px; border-radius: 25px;
  background: rgb(214,217,222) center/cover no-repeat;
}
.rd-news__thumb--1 { background-image: url('../assets/jobs-team-bar.png'); }
.rd-news__thumb--2 { background-image: url('../assets/hero-bg.webp'); }

.rd-news .rd-news__txt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: var(--color-text-heading);
  margin: 0 0 20px;
}

.rd-news__meta {
  font-family: var(--font-sans);
  font-size: 14.4px;
  line-height: 1.4;
  color: var(--color-text-heading);
  margin: 4px 0 0;
}

.rd-news__break {
  display: block;
  height: 20px;
}

.rd-news__sep {
  color: var(--color-border-light);
  margin: 0 4px;
}

.rd-cats {
  background: var(--color-surface-muted);
  border-radius: 14px;
  padding: 20px;
}

.rd-cats ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:4px; }
.rd-cats ul li a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-sans); font-size: 14px; color: var(--color-text-heading);
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.rd-cats ul li:last-child a { border-bottom: 0; }

@media (max-width: 1100px) {
  .rd-hero__title { font-size: 36px; line-height: 1.15; }
  .rd-cover { height: 300px; }
  .rd-grid { grid-template-columns: 1fr; }
  .rd-rail, .rd-side { position: static; }
  .rd-rail { flex-direction: row; }
  .rd-rail__socials { flex-direction: row; }
  .rd-news__item { grid-template-columns: 1fr; }
  .rd-news__thumb { width: 100%; height: 200px; }
}

@media (max-width: 720px) {
  .rd-hero__title { font-size: 26px; line-height: 1.2; overflow-wrap: break-word; }
  .rd-hero__cat { font-size: 13px; padding: 7px 12px; }
  .rd-cover { height: 220px; }
  .news-cats { padding: 20px; }
  .news-cats__title { font-size: 24px; }
  .news-cats__link { font-size: 16px; }
}
