/* wohin.org v3 – landing page styles on top of Bootstrap 5.
   Adapted from the Claude Design "wohin.org v3 Landingpage" concept. */

:root {
  --rg-red: #C9252D;
  --rg-red-dark: #a81d24;
  --rg-ink: #212529;
  --rg-muted: #575e61;
  --rg-line: #e9ecef;
  --rg-bg: #eceef0;
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--rg-bg);
  color: var(--rg-ink);
  font-size: 15px;
}

a { color: var(--rg-red); text-decoration: none; }
a:hover { color: var(--rg-red-dark); text-decoration: underline; }

.rg-page { display: flex; flex-direction: column; min-height: 100vh; }
.rg-container { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Inline Font Awesome sprite symbols behave like text-sized icons. */
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: 0 0 auto; }
.rg-ic-sm { width: .72em; height: .72em; vertical-align: 0; }
.rg-ic-md { width: 1.3em; height: 1.3em; }
.rg-ic-xl { width: 2.2em; height: 2.2em; }

/* ---------- brand header ---------- */
.rg-brandbar { background: #fff; }
.rg-brandbar .rg-container { padding-top: 18px; padding-bottom: 14px; }
.rg-logo { display: inline-block; line-height: 0; text-decoration: none; }
.rg-logo img { height: 34px; width: auto; display: block; }
.rg-tagline { font-size: 12px; color: var(--rg-muted); margin-top: 3px; }

/* ---------- red nav ---------- */
.rg-nav { background: var(--rg-red); }
.rg-nav-inner { display: flex; align-items: stretch; gap: 2px; padding-top: 0; padding-bottom: 0; }
.rg-nav-link { color: rgba(255,255,255,.86); padding: 14px 16px; display: flex; align-items: center; font-size: 15px; }
.rg-nav-link:hover { background: rgba(0,0,0,.14); color: #fff; text-decoration: none; }
.rg-nav-link.active { background: var(--rg-bg); color: var(--rg-red); font-weight: 500; }
.rg-nav-meta { margin-left: auto; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.9); font-size: 14px; }
.rg-nav-stat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- hero ---------- */
.rg-hero { background: #fff; border-bottom: 1px solid var(--rg-line); }
.rg-hero-grid {
  padding-top: 56px; padding-bottom: 48px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) 360px; gap: 48px; align-items: center;
}
.rg-badge-soft {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fdeaea; color: var(--rg-red); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.rg-hero-title {
  font-size: 52px; font-weight: 700; line-height: 1.08; letter-spacing: -.025em;
  margin: 0 0 18px; min-height: 2.16em;
}
.rg-caret {
  display: inline-block; width: 3px; height: .92em; margin-left: 3px; vertical-align: -.08em;
  background: var(--rg-red); animation: rgCaret 1s step-end infinite;
}
.rg-hero-lead { font-size: 19px; line-height: 1.55; color: #495057; max-width: 56ch; margin: 0 0 12px; }
.rg-hero-sub { font-size: 16px; color: var(--rg-muted); max-width: 56ch; margin: 0 0 28px; }
.rg-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rg-btn-red { background: var(--rg-red); color: #fff; white-space: nowrap; padding: 12px 24px; font-size: 17px; }
.rg-btn-red:hover { background: var(--rg-red-dark); color: #fff; }
.rg-btn-red.rg-btn-wrap { white-space: normal; text-align: center; max-width: 260px; }
.rg-btn-white { background: #fff; color: var(--rg-red); font-weight: 500; white-space: nowrap; }
.rg-btn-white:hover { background: #fff; color: var(--rg-red-dark); }

/* quick picks */
.rg-quick { border: 1px solid #dee2e6; border-radius: 12px; padding: 20px 22px 22px; background: #fff; }
.rg-quick-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--rg-muted); margin-bottom: 12px; }
.rg-quick-list { display: grid; gap: 8px; }
.rg-quick-btn {
  display: flex; align-items: center; gap: 10px; font-size: 15px; text-align: left;
  border: 1px solid #ced4da; border-radius: 8px; background: #fff; color: var(--rg-ink);
  padding: 10px 14px; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.rg-quick-btn:hover { border-color: var(--rg-red); background: #fff5f5; }
.rg-quick-hint { margin-left: auto; color: #969ca3; font-size: 13px; }

/* ---------- sections ---------- */
.rg-section { padding-top: 44px; }
.rg-section:last-of-type { padding-bottom: 8px; }
.rg-h2 { font-size: 28px; font-weight: 600; margin: 0 0 4px; }
.rg-sub { color: var(--rg-muted); margin: 0 0 20px; }
.rg-section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.rg-more { font-size: 15px; white-space: nowrap; }

/* category tiles */
.rg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rg-tile {
  padding: 16px 16px 14px; cursor: pointer; text-align: left;
  background: #fff; border: 1px solid #dee2e6; border-radius: 12px;
  transition: background .12s ease, border-color .12s ease;
}
.rg-tile:hover { background: #fff5f5; border-color: var(--rg-red); }
.rg-tile-ic { color: var(--rg-red); }
.rg-tile-name { font-size: 17px; font-weight: 600; margin-top: 10px; }
.rg-tile-count { font-size: 13px; color: var(--rg-muted); }

/* ---------- cards ---------- */
.rg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rg-card {
  padding: 18px 18px 16px; cursor: pointer; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #dee2e6; border-radius: 12px;
  transition: box-shadow .15s ease, transform .15s ease; animation: rgIn .25s ease both;
}
.rg-card:hover { box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.1); transform: translateY(-2px); }
.rg-card-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.rg-card-title { font-size: 19px; font-weight: 600; line-height: 1.25; }
.rg-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rg-badge-neu { background: #ffc107; color: #212529; font-size: 11px; padding: 5px 9px; margin-top: 2px; }
.rg-badge-cat { background: #e9ecef; color: #495057; font-weight: 500; font-size: 12px; padding: 5px 10px; }
.rg-badge-cost { background: #d1e7dd; color: #0f5132; font-weight: 500; font-size: 12px; padding: 5px 10px; }
.rg-badge-dist { background: #cfe2ff; color: #084298; font-weight: 500; font-size: 12px; padding: 5px 10px; }
.rg-card-facts { color: #495057; font-size: 14px; display: grid; gap: 5px; margin-bottom: 12px; }
.rg-fact-ic { color: #adb5bd; }
.rg-card-text { margin: 0 0 14px; color: var(--rg-muted); font-size: 14px; line-height: 1.5; }
.rg-card-cta { color: var(--rg-red); font-size: 14px; font-weight: 500; }
.rg-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rg-card-make { color: var(--rg-muted); font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.rg-card-make:hover { color: var(--rg-red); }

/* ---------- steps ---------- */
.rg-steps {
  background: #fff; border: 1px solid #dee2e6; border-radius: 12px; padding: 26px 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.rg-step { display: flex; gap: 14px; align-items: flex-start; }
.rg-step-n {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 999px;
  background: #fdeaea; color: var(--rg-red); display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.rg-step-t { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.rg-step-x { color: var(--rg-muted); font-size: 14px; line-height: 1.5; }

/* ---------- filter panel ---------- */
.rg-filter { background: #fff; border-radius: 12px; box-shadow: 0 .125rem .25rem rgba(0,0,0,.06); padding: 20px 24px 22px; margin-bottom: 24px; }
.rg-filter-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--rg-muted); margin: 0 0 8px; }
.rg-filter-label:not(:first-child) { margin-top: 18px; }
.rg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-pill {
  border: 1px solid #b9c6d4; color: #2d6ca2; background: #fff; border-radius: 4px;
  padding: 5px 12px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .12s ease, background .12s ease;
}
.rg-pill:hover { border-color: #2d6ca2; }
.rg-pill.on { background: #2d6ca2; border-color: #2d6ca2; color: #fff; }
.rg-search-row { display: flex; flex-wrap: wrap; gap: 12px; }
.rg-search-input { flex: 2 1 320px; min-width: 0; }
.rg-plz-input { flex: 1 1 200px; min-width: 0; }
.rg-search-input .input-group-text, .rg-plz-input .input-group-text { background: #f8f9fa; }
.rg-radius { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.rg-badge-origin { background: #d1e7dd; color: #0f5132; font-weight: 500; font-size: 12px; padding: 6px 11px; }
.rg-quick-pills { margin-top: 14px; }
.rg-filter-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--rg-line); }
.rg-more-panel { padding-top: 4px; }
#moreFiltersCount:empty { display: none; }

/* grouped results */
.rg-group { margin-bottom: 26px; }
.rg-group-head { background: #6c757d; color: #fff; padding: 9px 16px; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rg-group-title { font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.rg-group-count { font-size: 13px; opacity: .85; }

.rg-empty { background: #fff; border-radius: 12px; box-shadow: 0 .125rem .25rem rgba(0,0,0,.06); text-align: center; padding: 48px 24px; }
.rg-empty .icon { color: #adb5bd; }
.rg-empty-t { font-size: 22px; font-weight: 600; margin: 14px 0 6px; }

/* ---------- CTA ---------- */
.rg-cta { background: var(--rg-red); color: #fff; margin-top: 48px; }
.rg-cta-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.rg-cta-t { font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.rg-cta-x { opacity: .9; max-width: 60ch; }
.rg-cta-inner .rg-btn-white { margin-left: auto; }

/* ---------- footer ---------- */
.rg-footer { background: #fff; border-top: 1px solid var(--rg-line); padding: 24px 0; }
.rg-footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; color: var(--rg-muted); font-size: 14px; }
.rg-footer a { color: var(--rg-muted); text-decoration: underline; }

/* ---------- detail overlay ---------- */
.rg-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1050; }
.rg-modal { background: #fff; border-radius: 12px; box-shadow: 0 1rem 3rem rgba(0,0,0,.3); max-width: 620px; width: 100%; animation: rgIn .2s ease both; overflow: hidden; max-height: 90vh; display: flex; flex-direction: column; }
.rg-modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--rg-line); }
.rg-modal-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--rg-muted); margin-bottom: 6px; display: inline-flex; align-items: center; gap: 6px; }
.rg-modal-title { font-size: 27px; font-weight: 600; line-height: 1.2; }
.rg-modal-body { padding: 20px 24px; overflow-y: auto; }
.rg-modal-text { font-size: 16px; line-height: 1.6; color: #343a40; margin: 0 0 18px; text-wrap: pretty; white-space: pre-line; }
.rg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.rg-fact { background: #f8f9fa; border-radius: 8px; padding: 11px 13px; }
.rg-fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--rg-muted); margin-bottom: 3px; display: inline-flex; align-items: center; gap: 5px; }
.rg-fact-value { font-size: 15px; font-weight: 500; }
.rg-modal-hint { font-size: 12px; color: var(--rg-muted); margin: 14px 0 0; }
.rg-modal-foot { padding: 14px 24px 20px; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--rg-line); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .rg-hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 32px; }
  .rg-hero-title { font-size: 40px; }
}
@media (max-width: 575px) {
  .rg-container { padding-left: 16px; padding-right: 16px; }
  .rg-hero-title { font-size: 32px; }
  .rg-nav-link { padding: 12px 12px; }
}

@keyframes rgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rgCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rg-card, .rg-tile, .rg-quick-btn { transition: none; }
  .rg-card { animation: none; }
  .rg-card:hover { transform: none; }
  .rg-caret { animation: none; }
}
