/* =========================================================
   wasmachen.ch – Regionsseiten "Was machen in <Ort>?"
   (/was-machen-in-<ort>, /was-machen-in-der-schweiz – vom Backend gerendert)
   ========================================================= */
.rg-page { padding-bottom: 36px; }
.rg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------------- Kopf ---------------- */
.rg-hero { background: var(--primary); color: #fff; padding: 18px 0 22px; }
.rg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); font-size: .9rem; font-weight: 700; }
.rg-crumbs a { color: #fff; text-decoration: none; }
.rg-crumbs a:hover { text-decoration: underline; }
.rg-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-shadow: 0 2px 0 rgba(14, 42, 88, .14);
}
.rg-intro { margin: 0; max-width: 64ch; color: rgba(255, 255, 255, .95); font-size: 1.06rem; line-height: 1.45; }
.rg-intro strong { color: #fff; }

/* Suche in eigenen Worten (wie Startseite) */
.rg-search {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 720px;
  height: 56px;
  margin: 16px 0 0;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(14, 42, 88, .24);
}
.rg-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 193, 138, .75), 0 14px 34px rgba(14, 42, 88, .24); }
.rg-search__icon { flex: none; width: 21px; height: 21px; fill: none; stroke: #8a97ad; stroke-width: 2.3; stroke-linecap: round; }
.rg-search input { flex: 1; min-width: 0; height: 100%; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.04rem; }
.rg-search input::placeholder { color: #8a97ad; opacity: 1; }
.rg-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.rg-search__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 0 #b5702f;
  cursor: pointer;
}
.rg-search__go svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.rg-search__go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Sprungmarken zu den Abschnitten */
.rg-jump { display: flex; gap: 8px; margin: 14px -16px 0 0; padding: 2px 16px 2px 0; overflow-x: auto; scrollbar-width: none; }
.rg-jump::-webkit-scrollbar { display: none; }
.rg-jump a {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.rg-jump a:hover { background: rgba(255, 255, 255, .28); }

/* ---------------- Abschnitte ---------------- */
.rg-sec { margin-top: 30px; scroll-margin-top: 84px; }
.rg-sec h2 { margin: 0; color: #0e2a58; font-size: clamp(1.3rem, 4.4vw, 1.65rem); line-height: 1.2; }
.rg-lead { margin: 4px 0 14px; color: var(--muted); font-weight: 700; }

/* Karten */
.rg-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.rg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(14, 42, 88, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rg-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14, 42, 88, .13); }
.rg-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.rg-card img,
.rg-card__noimg { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e7edf6; }
.rg-card__body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.rg-card h3 { margin: 0; color: #0e2a58; font-size: 1.08rem; line-height: 1.22; }
.rg-card__meta { display: flex; align-items: center; gap: 5px; color: #4f5d73; font-size: .88rem; font-weight: 700; }
.rg-card__meta svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rg-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: #22324d;
  font-size: .95rem;
  line-height: 1.42;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.rg-card__tag { align-self: flex-start; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: #eef4ff; color: #2f5fa8; font-size: .78rem; font-weight: 700; }

/* "Noch mehr Ideen": kompakte Liste */
.rg-list { margin: 12px 0 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 28px; }
.rg-list li { padding: 8px 0; border-bottom: 1px solid var(--border); break-inside: avoid; }
.rg-list a { color: #0e2a58; font-weight: 700; text-decoration: none; }
.rg-list a:hover { text-decoration: underline; }
.rg-list span { color: var(--muted); font-size: .88rem; }

/* Orte in der Nähe / Übersicht nach Kanton */
.rg-near { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rg-near a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 15px;
  border: 1px solid #d3dceb;
  border-radius: 999px;
  background: #f5f8fd;
  color: #0e2a58;
  font-weight: 700;
  text-decoration: none;
}
.rg-near a:hover { background: #e9f0fb; }
.rg-near span { color: var(--muted); font-size: .85rem; }
.rg-canton { margin-top: 22px; }
.rg-more { padding-top: 18px; border-top: 1px solid var(--border); }
.rg-more h2 { font-size: 1.25rem; }
.rg-more .rg-near + h2 { margin-top: 24px; }
.rg-tipps { margin: 0 0 16px; font-weight: 700; }
.rg-tipps a { color: #2f6dc2; }
.rg-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }

/* Handy: kompakte Karten (Bild links) -> weniger Scrollen */
@media (max-width: 599px) {
  .rg-grid { grid-template-columns: 1fr; gap: 10px; }
  .rg-card { flex-direction: row; border-radius: 16px; }
  .rg-card img,
  .rg-card__noimg { flex: none; align-self: stretch; width: 112px; height: auto; min-height: 104px; aspect-ratio: auto; }
  .rg-card__body { padding: 10px 12px 11px; gap: 4px; }
  .rg-card h3 { font-size: 1rem; }
  .rg-card__text { font-size: .9rem; -webkit-line-clamp: 2; }
  .rg-card__tag { display: none; }
}

@media (min-width: 760px) {
  .rg-hero { padding: 26px 0 30px; }
  .rg-search { height: 62px; }
  .rg-jump { flex-wrap: wrap; margin-right: 0; padding-right: 0; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .rg-card:hover { transform: none; }
}
