/* ── Ratgeber – Avolya Design ────────────────────────────────────────────── */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.rg-hero {
  padding: 72px 0 56px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.rg-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rg-hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink-900);
}

.rg-hero-title em {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--green-700);
}

.rg-hero-sub {
  margin: 0 0 28px;
  color: var(--ink-700);
  font-size: 1.1rem;
  line-height: 1.72;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.rg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(209, 248, 67, 0.18);
  border: 1px solid rgba(209, 248, 67, 0.5);
  border-radius: 999px;
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Filter-Bar ─────────────────────────────────────────────────────────────── */
.rg-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(20, 59, 50, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  position: sticky;
  top: calc(16px + 72px + 16px); /* below topbar */
  z-index: 20;
}

.rg-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rg-search-icon {
  position: absolute;
  left: 16px;
  color: var(--ink-700);
  pointer-events: none;
  flex-shrink: 0;
}

.rg-search-input {
  width: 100%;
  padding: 13px 18px 13px 48px;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--radius-md);
  background: var(--sand-100);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  outline: none;
  -webkit-appearance: none;
}

.rg-search-input::placeholder { color: var(--ink-700); opacity: 0.6; }
.rg-search-input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(93, 144, 152, 0.15);
}

.rg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rg-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--sand-300);
  background: transparent;
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 160ms ease;
}

.rg-tag:hover {
  border-color: var(--green-700);
  color: var(--green-800);
  background: rgba(47, 112, 105, 0.06);
}

.rg-tag.active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--lime-400);
  box-shadow: 0 4px 14px rgba(0, 88, 64, 0.22);
}

/* ── Results count ──────────────────────────────────────────────────────────── */
.rg-results-info {
  margin-bottom: 18px;
  color: var(--ink-700);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 20px;
}

/* ── Article Grid ───────────────────────────────────────────────────────────── */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Article Card ───────────────────────────────────────────────────────────── */
.rg-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 59, 50, 0.07);
  box-shadow: 0 4px 20px rgba(0, 42, 31, 0.06);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.rg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.rg-card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.rg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  display: block;
}

.rg-card:hover .rg-card-img {
  transform: scale(1.04);
}

.rg-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
  gap: 12px;
}

.rg-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tag chips on cards */
.rg-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rg-chip.tag--teal   { background: rgba(93, 144, 152, 0.14); color: #2f7069; }
.rg-chip.tag--lime   { background: rgba(209, 248, 67, 0.25); color: #4a6800; }
.rg-chip.tag--sand   { background: rgba(223, 216, 208, 0.6); color: #5c4e42; }
.rg-chip.tag--rose   { background: rgba(255, 100, 90, 0.12); color: #a83328; }
.rg-chip.tag--green  { background: rgba(0, 88, 64, 0.1);     color: #005840; }
.rg-chip.tag--blue   { background: rgba(80, 120, 180, 0.12); color: #2d5a8e; }

.rg-card-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.rg-card-title a {
  color: var(--ink-900);
  transition: color 160ms ease;
}

.rg-card-title a:hover {
  color: var(--green-700);
}

.rg-card-excerpt {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.rg-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--sand-200);
  margin-top: auto;
  gap: 8px;
}

.rg-card-date,
.rg-card-read {
  font-size: 0.78rem;
  color: var(--ink-700);
  font-weight: 600;
  opacity: 0.75;
}

/* ── Empty State ────────────────────────────────────────────────────────────── */
.rg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 24px;
  text-align: center;
  color: var(--ink-700);
}

.rg-empty p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.rg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 52px 0 24px;
  flex-wrap: wrap;
}

.rg-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--sand-300);
  background: var(--white);
  color: var(--ink-900);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
}

.rg-page-btn:hover:not(:disabled) {
  border-color: var(--green-700);
  color: var(--green-800);
  background: rgba(47, 112, 105, 0.06);
}

.rg-page-btn.active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--lime-400);
  box-shadow: 0 4px 14px rgba(0, 88, 64, 0.22);
}

.rg-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rg-page-prev,
.rg-page-next {
  padding: 0;
  width: 44px;
}

.rg-page-ellipsis {
  color: var(--ink-700);
  font-weight: 700;
  padding: 0 4px;
  line-height: 44px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .rg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .rg-filter-bar {
    position: static;
  }
}

@media (max-width: 600px) {
  .rg-hero {
    padding: 48px 0 40px;
  }

  .rg-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rg-filter-bar {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .rg-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
