/*
 * RLQuest -- Suchseiten (Orte, Ideen, Vergleiche).
 *
 * Baut auf site.css auf und fuehrt keine neuen Farben ein: Die Seiten sollen aussehen
 * wie die Landing-Seite, von der sie Besucher in die App schicken. Neu sind nur die
 * Bausteine, die es dort nicht gibt -- Wabenkarte, Ortskarten, Listen, Tabellen.
 */

.muted { color: var(--muted); }
h2.small { font-size: var(--step-2); }

/* Brotkrumen: klein, ueber dem Kopf, nicht klebend -- die Navigation klebt schon. */
nav.crumbs {
  position: static; background: none; backdrop-filter: none; border: 0;
  font-size: 14px; color: var(--muted);
}
nav.crumbs .wrap { height: auto; display: block; padding-top: 18px; }
nav.crumbs a:hover { color: var(--text); }
nav.crumbs .sep { opacity: .5; margin: 0 6px; }

header.seo-hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
header.seo-hero .wrap { position: relative; z-index: 1; max-width: 860px; }
header.seo-hero h1 { font-size: clamp(32px, 5.2vw, 52px); }
.intro { margin-top: 22px; max-width: 64ch; color: var(--muted); font-size: var(--step-1); }
.intro p + p { margin-top: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pills .pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.pills .pill { color: var(--muted); font-weight: 500; }

/* --- Wabenkarte -------------------------------------------------------------- */
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.mapgrid h2 + p { margin-top: 14px; }
.hexmap { width: 100%; height: auto; display: block; }
.hexmap .cells polygon { stroke: var(--border); stroke-width: 1; }
.hexmap .center { fill: var(--text); }
.hexmap .pins circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.hexmap .pins text {
  fill: var(--text); font-size: 11px; font-weight: 700; text-anchor: middle; dominant-baseline: central;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.legend { display: flex; align-items: center; gap: 4px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1px solid var(--border); }
.legend .l1 { background: rgba(255,107,74,.16); }
.legend .l2 { background: rgba(255,107,74,.32); }
.legend .l3 { background: rgba(255,107,74,.52); }
.legend .l4 { background: rgba(255,107,74,.78); margin-right: 8px; }

/* --- Hoehepunkte ------------------------------------------------------------- */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 36px; }
.place { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.place figure { margin: 0; }
.place img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-raised); }
.place figcaption { padding: 6px 14px 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.place figcaption a { text-decoration: underline; text-decoration-color: var(--border); }
.place .noimg { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--surface-raised); }
.place .noimg img { width: 40%; height: auto; aspect-ratio: auto; opacity: .35; background: none; }
.place .body { position: relative; padding: 14px 18px 20px; }
.place .num {
  position: absolute; top: -18px; right: 16px;
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--accent); font-size: 13px; font-weight: 800;
}
.place h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; padding-right: 36px; }
.place .kind { margin-top: 2px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.place .meta { margin-top: 6px; color: var(--muted); font-size: 14px; }
.place .wiki { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* --- Listen je Art ------------------------------------------------------------ */
.kindlists { columns: 3 260px; column-gap: 32px; margin-top: 36px; }
.kindlist { break-inside: avoid; margin-bottom: 28px; }
.kindlist h3 { font-size: var(--step-1); font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.kindlist h3 small { color: var(--muted); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.kindlist ul { list-style: none; margin-top: 8px; }
.kindlist li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.kindlist li small { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kindlist .more { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* --- Verweise --------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 15px; font-weight: 600;
}
.chip:hover { background: var(--surface-raised); }
.chip.all { border-color: var(--accent); }
.source { margin-top: 32px; font-size: 13px; color: var(--muted); max-width: 80ch; }
.source a { text-decoration: underline; }

.citygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 20px 0 44px; }
.citygrid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.citycard {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}
.citycard:hover { background: var(--surface-raised); border-color: var(--accent); }
.citycard b { font-size: var(--step-1); }
.citycard small { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* --- Artikel (Ideen, Vergleiche) ------------------------------------------ */
.article { max-width: 860px; }
.article > * { max-width: 760px; }
.article .block + .block { margin-top: 44px; }
.article h2 { font-size: clamp(24px, 3vw, 32px); }
.article p { margin-top: 14px; color: var(--muted); font-size: var(--step-1); }
.article h2 + p { margin-top: 14px; }
ol.ideas { margin-top: 18px; padding-left: 0; list-style: none; counter-reset: idee; display: grid; gap: 10px; }
ol.ideas li {
  counter-increment: idee; position: relative; padding: 14px 18px 14px 58px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--muted);
}
ol.ideas li::before {
  content: counter(idee); position: absolute; left: 18px; top: 13px;
  font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums;
}
ol.ideas li b { color: var(--text); display: block; }
.tablewrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-raised); font-weight: 700; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  .mapgrid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Regionskarte --------------------------------------------------------- */
/* Umriss statt Waben: Eine Region ist zu gross fuer r7-Waben, und der Umriss ist das,
   woran man Bayern oder Maine erkennt. */
.regionmap .land { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.regionmap .dots circle { fill: rgba(255, 107, 74, .55); }
.kindlist.wide { break-inside: auto; }
.kindlists:has(.kindlist.wide) { columns: 1; }
.kindlist.wide ul { columns: 2 280px; column-gap: 32px; }
.kindlist.wide li { break-inside: avoid; }
h2.small.spaced { margin-top: 36px; }
